Monday, September 7, 2009

Mightex USB Camera

Just thought I'd share my experiences with the Mightex Systems USB camera that I'm using for my project. There's not a lot of info available on these, at least not the last time I did search. The device I'm using is an 8 bit buffered USB 2.0 camera listed here on Mightex's webiste: http://www.mightexsystems.com/family_info.php?cPath=1_16&categories_id=16

So far their support has been pretty good, every query I've made has been replied to within a day at most and the developers always seem keen help. Unfortunately while I was able to get the Windows drivers and applications to work straight up, the Linux drivers needed some modifications to compile. Luckily the source code was included so I was able to do the modifications and provide the developers with my .diff file.

The issue with the drivers is that they were originally written for and tested with Fedora Core 5, which is based on an earlier version of the 2.6 kernel than the Ubuntu 9.04 I'm using now. The Video4Linux library has since undergone some changes but the driver was not updated to follow suit. This unfortunately leads to compilation errors as the Mightex driver tries to reference some deprecated functions. Luckily the changes were relatively minor as the functions still exist, they've just been moved to different locations and so the new relevant header files have to be included. If you're really interested let me know and I can provide the .diff file to patch your driver.

After fixing that up I was able to compile the included application to test the camera. Quality is pretty good, and I'm getting a steady 25 fps at 1280 x 1024 resolution. Right now I'm trying to get it working with my OpenCV program so stay tuned for more info.

6 comments:

  1. Without doubt the most poorly documented SDK I have ever come across. Reasonable camera, but what the units & valid values for many of the API calls are remains a mystery.

    ReplyDelete
  2. Tell me about it, never got it working with the Gumstix although with some work it's probably possible.

    ReplyDelete
  3. Hi,

    I am also trying to use this camera for my project. Needless to say, the linux SDK has like NO DOCUMENTATION. Although they claim that it "worked" on Fedora 5, I am using Fedora 12. The thing doesnt compile at all. I changed the makefile a bit and then I get the error "implicit declaration of function "info" ... ".

    Can you tell me how you got it to work ?

    Regards.


    P.S. Is there any place where I can send you an email ?

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Did u succed with OpenCv! I think it doesnt bear that resolution.. ^^

    ReplyDelete
  6. Yeah I got working eventually but it was a bit of a mess. I ended up integrating my program into one of their applications.

    ReplyDelete