Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv on Android how to get Smooth video

I am running the DNN tutorial https://docs.opencv.org/master/d0/d6c/tutorial_dnn_android.html

It is working as intended. The FPS counter on my phone shows 200FPS.

However the on screen image grab updates only after a few seconds. i.e stuttered image

I have downloaded a Tensorflow object detection app from here

https://www.tensorflow.org/mobile/tflite/demo_android

In the TensorFlow demo the video is not stuttered, it is real time. the object detection is happening on a different thread.

Is it possible to achieve similar functionality on opencv?. The current tutorial is consuming lots of CPU just to update the screen and resulting in the device heating up.

Opencv on Android how to get Smooth video

I am running the DNN tutorial https://docs.opencv.org/master/d0/d6c/tutorial_dnn_android.html

It is working as intended. The FPS counter on my phone shows 200FPS.2.00FPS.

However the on screen image grab updates only after a few seconds. i.e stuttered image

I have downloaded a Tensorflow object detection app from here

https://www.tensorflow.org/mobile/tflite/demo_android

In the TensorFlow demo the video is not stuttered, it is real time. the object detection is happening on a different thread.

Is it possible to achieve similar functionality on opencv?. The current tutorial is consuming lots of CPU just to update the screen and resulting in the device heating up.

EDIT: This Question partially arose from the fact that FPS counter's decimal point wasn't visible and it looked as if its showing 200 FPS where as it was doing 2 FPS.