...
When you show a TV monitor, sofa, etc. on the camera, the object name and frame are drawn on the corresponding model. Try it yourself.
...
Appendix
...
How to change preferences
This application has some preferneces which a user is able to change.
When changing some preferneces, push "AppPrefs" button in "ADAM OPERATION UI" html page.
Resoultion:
Resolution to get YUV images. Specfify HD(1280x720) or FHD(1920x1080).
However, by the ability of the camera, it may not work with the specified value.Frame rate:
Frame rate to get YUV images. Specify 1 or more.
However, by the ability of the camera, it may not work with the specified value.
How to change AI model
Please replace data/cnn/mobilenetv1_ssd_cavalry.bin and data/cnn/mobilenet_priorbox_fp32.bin with your model.
Please change the following part of main.cpp according to your model.
#define OUTSIZE_HEIGHT<Input height of your model>
#define OUTSIZE_WIDTH<Input width of your model>
#define NETNAME<File name of your model>
#define PRIORBOXFILE<File name of prior box>
#define LAYERNAMEIN<Input layer name of your model>
#define LAYERNAMEOUT_MBOX_LOC<Output layer name of your model to indicate boundary box location>
#define LAYERNAMEOUT_MBOX_CONF_FLATTEN<Output layer name of your model to indicate boundary box confidence>
#define PROPERTY_NUMCLASSES<Number of classes including background label>
#define PROPERTY_MBOXLOCSIZE<Number of boundary boxes * 4> : 4 means (x,y,w,h)
#define PROPERTY_BACKGROUND_LABEL_ID<Background label id>
Following parameters are valid only for tensorflow SSD. For caffe SSD, please set these values to 0.
#define X_SCALE<X scale value>
#define Y_SCALE<Y scale value>
#define WIDTH_SCALE<Width scale value>
#define HEIGHT_SCALE<Height scale value>Please describe "objectname" (label-objectname matrix) according to your model.
Port in use
This application uses 8081 port for websocket communication.
License
MIT License
Copyright (c) 2018 chuanqi305
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.