Repository navigation
Async mode for dnn's object detection sample - #14516
Conversation
89fd70e to
5ff42f4
Compare
alalek
left a comment
There was a problem hiding this comment.
What is about protection of the queue size limit? (case where network FPS < capture FPS).
Latency information would be useful in async samples.
| import sys | ||
| import time | ||
| from threading import Thread | ||
| if sys.version[0] == '2': |
| predictionsQueue.put(np.copy(outs)) | ||
|
|
||
| while futureOutputs and futureOutputs[0].wait_for(0) == 0: | ||
| out = futureOutputs[0].get() |
There was a problem hiding this comment.
BTW, callback-based approach would look better here (instead of pulling).
There was a problem hiding this comment.
For now it adds outputs in the order of frames. With callbacks we will need to introduce something like frames indices.
|
Ported #14538 here. |
|
Please fix this warning:
|
|
@dkurt
|
|
@AlexeyAB, thanks! That's a good point. Feel free to propose a PR or open an issue. |
|
[email protected]
From: Dmitry Kurtaev
Date: 2019-07-15 11:10
To: opencv/opencv
CC: Subscribed
Subject: Re: [opencv/opencv] Async mode for dnn's object detection sample (#14516)
@AlexeyAB, thanks! That's a good point. Feel free to propose a PR or open an issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|

This pullrequest changes
resolves #13667
Camera with 60fps @ 1280x720 is used (Logitech C922 PRO)
--async=0--async=1--async=2--async=3--async=4CPU: Intel® Core™ i7-6700K CPU @ 4.00GHz × 8
NCS: Intel® Movidius™ Neural Compute Stick
NCS2: Intel® Neural Compute Stick 2