- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I'm working on a combination of NCS2 and Raspberry Pi.
The main code at present is as follows.
I think it's probably asynchronous.
【 My Code 】
frame = PiAvLib.PiCamCapture(vs) #Get image data
blob = cv2.dnn.blobFromImage(frame, size=(640,480),ddepth=cv2.CV_8U)
net.setInput(blob)
out = net.forward()
out = np.squeeze(out)
Tagget_Chk(out, frame) #Add a box to a recognized object in the image
【 Question 】
Q1.Please tell me ,how to switch between synchronous and asynchronous processing of NCS2?
Q2.Please tell me ,the function to switch between synchronous and asynchronous.
Q3.Please tell me ,Where can I find a manual for switching between synchronous and asynchronous?
Best regards,
Aoki
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aoki,
Thanks for reaching out.
For running synchronous or asynchronous inference, you can use the infer() or start_async() functions respectively. You can check these functions here.
Additionally, some demos such as the Object Detection YOLO* V3 Python* Demo feature the "Sync" and the "Async" ways toggled by the Tab key.
Best Regards,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello David
thank you for your answer.
I am currently changing the code.
Best Regards,
Aoki
![](/skins/images/872293744008A34B36F8ABF94A46CC66/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