Ask Your Question
0

Create_capture video compression

asked 2012-11-23 22:16:54 -0600

theuberchad gravatar image

updated 2012-11-23 22:18:55 -0600

Hello All,

I am new to the OpenCV world and have been playing around with face tracking and other image manipulation. The project I am currently working on is an augmented reality/wearable targeting system.

I am trying to run this on my Raspberry Pi but have encountered some problems with frame rate and the CPU is running through the roof, I have written my program in Python.

I was wondering if there is a way to change the compression format of what I am getting from my webcam to get better performance.

As I am pretty new at this any information anyone could provide would be greatly appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-24 05:33:09 -0600

Hi!

Welcome to the world of OpenCV. Actually, the problem that you describe has nothing to do with the compression format of your images. The speed of the face tracking depends on the size of your input images, you will have to find a compromise between image size (speed) and face detection accuracy (as the smaller the image, the more difficult for the face detector to reliably detect a face)

Also, if you are interested in detecting only one face on the image, limiting the face detector to detect only the biggest face on the image might improve your frame rate.

I hope this helps you.

edit flag offensive delete link more

Comments

Hello Martin,

Thanks for the information!

I have been waiting for the new raspberry pi CSI based camera which should utilize the GPU for image capturing instead of the CPU. Do you believe if this would be a method to better increase the frame rate?

Is there anyway I could utilize some OpenGL processing to off load some of the processing to the GPU? I know there is some Cuda based processing I have seen reference to but the RaspberryPI does not have any Nvidia hardware on it.

theuberchad gravatar imagetheuberchad ( 2012-11-25 13:59:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2012-11-23 22:16:54 -0600

Seen: 832 times

Last updated: Nov 24 '12