PDA

View Full Version : Using DFK ECU010-M12 in Linux



aakashthakkar
March 24, 2015, 07:49:43
Hello,
Thank you for the previous help on question, http://www.theimagingsourceforums.com/showthread.php?325238-Blank-Frames-in-IC-Capture-using-DFK-ECU010-M12-driver-problem.
I have received the replacement, also ordered one more and both are working great!

What is the correct way to use this camera on linux?

Connecting the camera, dmesg output:
[ 67.173255] uvcvideo 1-1:1.0: usb_probe_interface
[ 67.173284] uvcvideo 1-1:1.0: usb_probe_interface - got id
[ 67.173422] uvcvideo: Found UVC 1.00 device DFK ECU010-M12 (199e:0109)
[ 67.178417] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 67.181422] input: DFK ECU010-M12 as /devices/ocp.2/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/input/input3
[ 67.184527] usbcore: registered new interface driver uvcvideo
[ 67.184547] USB Video Class driver (1.1.1)
[ 69.205652] usb 1-1: usb auto-suspend, wakeup 0
[ 69.219051] hub 1-0:1.0: hub_suspend
[ 69.219087] usb usb1: bus auto-suspend, wakeup 1

Hence the camera is detected correctly and is seen on /dev/video0, and the following command:
mplayer tv:// -tv driver=v4l2:device=/dev/video0
Works but the quality of image is very poor, I assume this is because of the YUV format not being compatible in mplayer?
17611761
The mplayer output is attached as an image.

How can I set the correct format I am interested in?

Secondly, Using OpenCV to read video:
On opening the capture I get:
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

After which I keep getting following errors on reading frames:
Corrupt JPEG data: 5 extraneous bytes before marker 0xd9
Corrupt JPEG data: 6 extraneous bytes before marker 0xd9
Corrupt JPEG data: 4 extraneous bytes before marker 0xd9
Corrupt JPEG data: 4 extraneous bytes before marker 0xd9

This seems to also be a problem with the format of read frames.

Third thing, https://github.com/TheImagingSource/tiscamera/wiki/Getting-Started-with-USB-Cameras the following guide, euvccam-fw tool is not able to detect the camera correctly.

Thank You.

aakashthakkar
March 24, 2015, 08:18:19
One more issue I am facing is the following 1762

The attached image shows a bunch of small dots, which are maybe dust on lens or sensor itself? Can you suggest how I can get rid of them?

aakashthakkar
March 24, 2015, 08:18:34
One more issue I am facing is the following 1762

The attached image shows a bunch of small dots, which are maybe dust on lens or sensor itself? Can you suggest how I can get rid of them?

Stefan Geissler
March 24, 2015, 10:02:50
The dust can be on the sensor. You can try to clean it carefully

Please try the camera with guvcview. This allows to change the video formats in a simple way. I am not experiences with mplayer, therefore I suggest to search in the mplayer help files or forums for a way to set the video format.

Stefan Geissler
March 24, 2015, 10:02:51
The dust can be on the sensor. You can try to clean it carefully

Please try the camera with guvcview. This allows to change the video formats in a simple way. I am not experiences with mplayer, therefore I suggest to search in the mplayer help files or forums for a way to set the video format.

aakashthakkar
March 24, 2015, 10:23:28
The dust can be on the sensor. You can try to clean it carefully

Please try the camera with guvcview. This allows to change the video formats in a simple way. I am not experiences with mplayer, therefore I suggest to search in the mplayer help files or forums for a way to set the video format.

Thank you will try the same, Any advice on how to do it in Opencv or if it is possible? I realize both use the driver v4l2.

Stefan Geissler
March 26, 2015, 12:29:59
You can combine the V4L2 image capture and OpenCV image processing.