streameye icon indicating copy to clipboard operation
streameye copied to clipboard

Implementing OpenCV

Open vdb-sander opened this issue 8 years ago • 3 comments

The raspimjpeg.py script uses the picamera library to capture frames. Would it be possible to implement OpenCV to process the JPEG frames and send them to the Streameye server?

vdb-sander avatar Feb 16 '17 19:02 vdb-sander

Frankly I have no idea. I believe the JPEG frames are already encoded by the GPU when using the picamera library. But if you think you can increase the performance, please feel free to experiment and prepare a pull request.

ccrisan avatar Feb 17 '17 11:02 ccrisan

@vdb-sander @ccrisan I have added facial detection support with OpenCV in my fork, but it is very slow because of the lack of hardware acceleration in OpenCV and the way I send the images to STDOUT. I would really like for a proper implementation of this to come to fruition but I have minimal experience with Python.

owenthewizard avatar Aug 05 '17 04:08 owenthewizard

@owenthewizard you can write it in whatever language/platform you're familiar with. If it's something useful and stable enough, we can add it to the extra folder of streamEye and document it in a wiki page or so. Users can then choose to add it to the pipeline if they need it.

What I insist on though is that we have this work of yours as a separate program/executable, totally separated from raspimjpeg.py or streamEye programs, so that it doesn't affect their performance in any way.

ccrisan avatar Aug 05 '17 07:08 ccrisan