I am using PS3 Eye camera (model 5SLEH-00448) to take photos with OpenCV (C++) on Rapsberry Pi. It runs via v4l2 driver that only supports YUYV uncompressed capture mode. I save the images as PNG. I need uncompressed image with best possible quality.
Sample image in 320x240 (downsampled either by camera or by driver) - strange image artefacts can be seen on diagonal edges in the photos - when zoomed in there is a zig-zag artefact on the LCD screen's top edge which looks like a "staircase":
The camera's native 640x480 looks quite decent (I can not see many artefacts there):
Here is the capture mode:
$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV
Does anyone know what is happening? Looks like the native image looks quite good and the artefacts come from the downsampling algorithm in the driver probably?