2013-10-14 08:10:03 -0600 | received badge | ● Supporter (source) |
2013-10-14 05:13:43 -0600 | received badge | ● Editor (source) |
2013-10-14 04:24:09 -0600 | asked a question | Different range of len captured by one webcam I encounter a weird problem when capturing frames of my webcam. When I preview the webcam using other's application, which needs to be reverse engineered, the frame is complete: complete len's contour and normal size objects. However, in my program (see below), the frame is incomplete: the len seems to be biased and the frame is enlarged a little compared to the normal size. Fig.1 and Fig.2 shows the screenshots of the same object captured by two programs I just mentioned. (The frame resolution is 422x314) Fig.1 Other's application's preview Fig.2 My program's preview My code The main OpenCV function employed in my code is To go further, I use MATLAB image acquisition tool to preview the webcam in different resolutions. I surprisedly find that the two previews can be seen when choosing different resolutions! In default (written in MATLAB) resolution 352x288, the preview is same as the normal one, but in resolution like 640x480, 320x240, the preview is same as my program. So is the problem caused by the hardware? I can't change the hardware (webcam), so how can I modify the OpenCV code to make my frame be complete and normal? Please tell me what you want to know about my webcam specification if it matters. My working is on Windows 7, Visual Studio 2008 and OpenCV 2.4.5. |