This project supports multiple CNN models for detection. Please make sure you have already set up environment and installed this project correctly. You can refer to the following links for your interested models then.
Compile NCS graph.
cd /opt/movidius/ncappzoo/caffe/SSD_MobileNet
make
Launch object detection service.
cd ~/ros2_ws
echo "param_file: mobilenetssd.yaml" > src/ros2_intel_movidius_ncs/movidius_ncs_launch/config/default.yaml
ament build
source install/local_setup.bash
launch `ros2 pkg prefix movidius_ncs_launch`/share/movidius_ncs_launch/launch/ncs_image_launch.py
Run the example application with an absolute path of an image on another console. For example,
ros2 run movidius_ncs_example movidius_ncs_example_image_detection /opt/movidius/ncappzoo/data/images/cat.jpg
Compile NCS graph.
cd /opt/movidius/ncappzoo/caffe/TinyYolo
make
Launch object detection service.
cd ~/ros2_ws
echo "param_file: tinyyolo_v1.yaml" > src/ros2_intel_movidius_ncs/movidius_ncs_launch/config/default.yaml
ament build
source install/local_setup.bash
launch `ros2 pkg prefix movidius_ncs_launch`/share/movidius_ncs_launch/launch/ncs_image_launch.py
Run the example application with an absolute path of an image on another console. For example,
ros2 run movidius_ncs_example movidius_ncs_example_image_detection /opt/movidius/ncappzoo/data/images/cat.jpg
Arguments | Description | Default Value | Valid Values |
---|---|---|---|
device_index | ncs device index | 0 | 0~N-1(N is the maximum number of inserted NCS devices) |
log_level | ncs log level | 0 | 0:Nothing / 1:Errors / 2:Verbose |
cnn_type | indicate different cnn models | tinyyolo_v1 | tinyyolo_v1 / mobilenetssd |