This OpenCV tutorial is a very simple code example of GPU Cuda optical flow in OpenCV written in c++. The configuration of the project, code, and explanation are included for farneback Optical Flow method. Farneback algorithm is a dense method that is used to process all the pixels in the given image. The dense methods are slower but more accurate as all the pixels of the image are processed. In the following example, I am displaying just a few pixes based on a grid. I am not displaying all the pixes. In the opposite to dense method the sparse method like Lucas Kanade using just a selected subset of pixels. They are faster. Both methods have specific applications. Lucas-Kanade is widely used in tracking. The farneback can be used for the analysis of more complex movement in image scene and furder segmentation based on these changes. As dense methods are slightly slower, the GPU and Cuda implementation can lead to great performance improvements to calculate optical flow for all pixels o
Opencv 4 DNN, People detection CPU performance with yolo 2 tiny model
I am still working on tutorial how to simply run yolo and others model in opencv 4. I try to do as simple as possible. Not like a general sample in Opencv. Differently, simply, and described as much as possible.
Some technical specifications video
Testing opencv 4.0 DNN with yolo tiny 2 model on people detection in a mall. Pure CPU, I7 (4 cores), running by the following command under windows 10. Performance for CPU without 2 much optimization effort is 500 ms per image approximately on my configuration. Let me know if there is some problem with the parameters.
testOpecv.exe --config=C:\darknet-master\cfg\yolov2-tiny.cfg
--model=C:\darknet-master\weights\yolov2-tiny.weights
--classes=C:\opencv32\darknet-master\data\coco.names
--width=616 --height=616 --scale=0.00192 --rgb
Sources:
Thank you for a great job
บริษัท Modern De รับสร้างบ้านและออกแบบบ้านสไตล์โมเดิร์น ในพื้นที่ภาคอีสานและจังหวัดใกล้เคียง ขอนแก่น รับสร้างบ้าน อุดร มีแบบให้เลือกมากกว่า 50 แบบ ราคาเป็นอันเอง
ReplyDelete