- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello developers, I am very new to OpenVINO, Kindly help me with the following:
# --------------------------- Performing inference ----------------------------------------------------
log.info("Loading model to the device")
exec_net = ie.load_network(network=net, device_name=args.device)
log.info("Creating infer request and starting inference")
res = exec_net.infer(inputs={input_blob: images}) # I am assuming this is the input.
# --------------------------- -----------------------------------------------------------------------------------
In the above piece of code I wanna perform object detection in real-time with Intel Realsense D435 camera, so how do I take the input from the camera and inference it using .xml and .bin files.
You can find the entire code in deployment_tools/inference_engine/samples/python_samples/object_detection_sample_ssd.
Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Manoj,
From my understanding, you are trying to run the object detection ssd sample with the RealSense D435 camera as your input device, correct?
In that case, after you have successfully installed OpenVINO, use the Model Optimizer to convert the model to .xml and .bin files so they can then be used to deploy your model with the Inference Engine. If you would like to use the RealSense D435, use the command -i <path_to_video> in your Inference Engine command. This will allow the model to use the RealSense camera when running inference.
See the documentation for the Object Detection SSD Sample.
I hope this information is helpful.
Best Regards,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes @Sahira R. that is correct. The object_detection_ssd sample only inputs an image and creates an output image. But I want to run the inference engine in real time, as in when I give the -i parameter the camera should turn on, keep on detecting the objects that comes in the range of the camera until and unless I terminate it. So how do I modify the same to do the real-time object detection??
Can I use this
https://docs.openvinotoolkit.org/2018_R5/_samples_object_detection_demo_README.html
to do the real-time object detection? or this https://docs.openvinotoolkit.org/2018_R5/_samples_object_detection_demo_ssd_async_README.html? ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Manoj,
Thank you for clarifying!
Yes, you can use this model: https://github.com/opencv/open_model_zoo/tree/master/demos/object_detection_demo_ssd_async to do real time object detection. You can just pass the video input in with the -i parameter.
The Open Model Zoo also has some models you can try out: https://github.com/opencv/open_model_zoo/tree/master/demos/object_detection_demo_yolov3_async
I hope this is helpful!
Best Regards,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, thank you Sahira R for your help. Also I have found an interesting code that fits my application.
https://github.com/PINTO0309/MobileNet-SSD-RealSense
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page