Getting OpenCV 1.1.0 to work with a PAL camera


diff -r --exclude=Makefile opencv-1.1.0/otherlibs/highgui/cvcap_v4l.cpp opencv-1.1.0-PAL/otherlibs/highgui/cvcap_v4l.cpp
231,232c231,234
< #define DEFAULT_V4L_WIDTH 640
< #define DEFAULT_V4L_HEIGHT 480
---
> #define DEFAULT_V4L_WIDTH 704
> #define DEFAULT_V4L_HEIGHT 576
1032c1036
< // selectedChannel.norm = VIDEO_MODE_NTSC;
---
> selectedChannel.norm = VIDEO_MODE_PAL;

This entry was posted in OpenCV, Robots, vision. Bookmark the permalink.

2 Responses to Getting OpenCV 1.1.0 to work with a PAL camera

  1. Mukesh says:

    what is use of that code?? :( cant understand..

  2. Luke Cole says:

    Its the output of a Linux/Unix diff command. Basically it is saying you need to change the default V4L width/height to 704/576 and ensure the selectedChannel.norm is set to \PAL\.

Leave a Reply to Mukesh Cancel reply

Your email address will not be published. Required fields are marked *

To use reCAPTCHA you must get an API key from http://recaptcha.net/api/getkey