billmccord / OpenCV-Android

A project for porting and optimizing OpenCV for Google's Android OS
http://billmccord.github.com/OpenCV-Android/
444 stars 162 forks source link

(Not really and Issue) Very slow performance with VideoEmulation #15

Closed matiasfha closed 13 years ago

matiasfha commented 13 years ago

(sorry for my english)

The slow speed of the VideoEmulation app due to the use of Socket to emulate a live preview of the camera or slow OpenCV or simply because it's run in the emulator?

billmccord commented 13 years ago

The socket camera definitely affects performance, but even with a real camera it still isn't extremely fast. For the purposes I am using it for, it is sufficient though. This also greatly depends on the processor you are using. I am using one that is similar to what is in the G1, so it's quite slow. If you use a faster processor, you will get better performance.

Another trick to getting better performance is to turn off the redisplay of the tracked face. I'm doing that in my application, but it may not be an option for you.