Page 1 of 1

Video Processing

Posted: Sun Feb 23, 2014 9:25 pm
by Kirk Fraser
My Pi works fine but I need tips on how to get started with video software, first simply to convey a clean image from a security camera (or webcam) to a TFT Display. I expect this has already been done - anyone have code or tutorial? I know OpenCV is available but I need tutoring or code on how to get the image stream going to the display and control the camera so it is switched to 5 megapixel mode instead of 3 or less.

The next stage will be image manipulation. Whether the image is simply magnified or taken apart, modified, and displayed side by side with the original, or alone, I need some guidance to get started. If nobody knows a good link or three, any inexpensive Pi C++ (or Python) programmer recommendations for my fairly newbie mentoring/tutoring/hand-holding need? Thanks.

Re: Video Processing

Posted: Mon Feb 24, 2014 8:28 am
by ghans
This all depends on the display you're going to use and of course the camera itself.
Webcams are working quite OK now , but analog cameras need USB digitizers which people had quite a lot of
problems with in the past. IP cameras which seemingly only work with ActiveX (*gag*) or Flash are still around , too.


Lots of Python tutorials : http://www.themagpi.com/home/
Using a webcam with pyGame (Python) : http://blog.danielkerris.com/?p=225
Using an SPI display with pyGame : https://github.com/notro/fbtft/wiki/Pygame

Please provide links and datasheets for the display and the camera you plan on using. This is essential.


ghans

Re: Video Processing

Posted: Mon Feb 24, 2014 12:33 pm
by Kirk Fraser
ghans wrote:Please provide links and datasheets for the display and the camera you plan on using. This is essential.

ghans
I ordered
Camera http://www.amazon.com/Bullet-Camera-4-9 ... B00HXW2BVO
I have emailed the seller asking for a data sheet.

Display http://www.adafruit.com/products/946
The tab Technical Details I hope has the information you need.

I also have a Logitech webcam and an analog CCTV camera. I hope the new one will provide higher 5 MP resolution even if only at 10 fps plus be weather proof. Thank you for the help.

Re: Video Processing

Posted: Tue Feb 25, 2014 8:36 am
by ghans
I am not sure if omxplayer can play RTP streams properly , but that is the player you need (because it has hardware-acceleration).
You should not have any problem with HD playback (the display you've linked to is only SD though).

You might need to use mplayer to dump the stream similiar to following approach :

http://www.raspberrypi.org/forum/viewto ... 98#p176321

ghans