Skip to content

Commit

Permalink
Merge pull request #50 from intel/devel
Browse files Browse the repository at this point in the history
merge latest readme and config yaml
  • Loading branch information
chaoli2 authored Jan 25, 2019
2 parents 66a481f + 1ff9c60 commit 585e472
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ One-step installation scripts are provided for the dependencies' installation. P
* run object detection service sample code input from Image
Run image processing service:
```bash
ros2 run dynamic_vino_sample image_object_server
ros2 run dynamic_vino_sample image_object_server "image_object_server_oss.yaml"
```
Run example application with an absolute path of an image on another console:
```bash
ros2 run dynamic_vino_sample image_object_client "~/Pictures/car.jpeg"
ros2 run dynamic_vino_sample image_object_client ~/Pictures/car.png
```

# TODO Features
Expand Down
10 changes: 10 additions & 0 deletions doc/BINARY_VERSION_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ This project is a ROS2 wrapper for CV API of [OpenVINO™](https://software.inte
```bash
ros2 launch dynamic_vino_sample pipeline_video.launch.py
```
* run object detection service sample code input from Image
Run image processing service:
```bash
ros2 run dynamic_vino_sample image_object_server "image_object_server.yaml"
```
Run example application with an absolute path of an image on another console:
```bash
ros2 run dynamic_vino_sample image_object_client ~/Pictures/car.png
```

## 6.Known Issues
* Possible problems
* When running sample with Intel® Neural Compute Stick 2 occurred error:
Expand Down
2 changes: 1 addition & 1 deletion sample/param/image_object_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Pipelines:
right: [ObjectDetection]
- left: ObjectDetection
right: [RosService]
input_path: "/home/intel/Pictures/timg.jpeg"
input_path: "/home/intel/Pictures/car.png"

Common:
19 changes: 19 additions & 0 deletions sample/param/image_object_server_oss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Pipelines:
- name: object
inputs: [Image]
infers:
- name: ObjectDetection
model: /opt/openvino_toolkit/open_model_zoo/model_downloader/object_detection/common/ssd/300/caffe/output/ssd300.xml
engine: CPU
label: to/be/set/xxx.labels
batch: 16
outputs: [RosService]
confidence_threshold: 0.2
connects:
- left: Image
right: [ObjectDetection]
- left: ObjectDetection
right: [RosService]
input_path: "/home/intel/Pictures/car.png"

Common:
3 changes: 2 additions & 1 deletion sample/src/image_object_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ std::string getConfigPath(int argc, char * argv[]) {
std::string prefix_path;
ament_index_cpp::get_resource("packages", "dynamic_vino_sample", content,
&prefix_path);
return prefix_path + "/share/dynamic_vino_sample/param/image_object_server.yaml";
//return prefix_path + "/share/dynamic_vino_sample/param/image_object_server.yaml";
return prefix_path + "/share/dynamic_vino_sample/param/" + argv[1];
}

int main(int argc, char ** argv) {
Expand Down

0 comments on commit 585e472

Please sign in to comment.