Vision software and documentation for Martti
Documentation
Martti has Captivator PCI card with Bt848 video capture chip. You can capture images with Martti through /usr/include/linux/videodev.h interface. It is part of Video4linux, which is a project to provide a common API to video sources.
Documents available on Web
- Draft API document for Video4Linux
- Manuals for the Captivator PCI card
- Technical information about the Bt848 video capture chip
- Camera Techs
- Lens Techs
Vision software
Basic image capturing and bitmap handling
I've developed some basic routines for image capturing and basic bitmap handling, which you can use. With them, it's only possible to capture 640x480 24-bit RGB images, but you can convert them to another formats. If you figure out, how to capture images in another formats (or sizes), please let me know.You can view the bitmaps with xv on any Linux running X.
Color area detection
Student Software Engineering Project Group called Martti is developing control software for an autonomous robot. Part of the project is developing vision software, which can detect colored landmarks in test environment.
Older stuff
Quickly developed capturePicture program, for basic capturing.Example image:
- Picture 0 (JPG) (24-bit bitmap)
Grapper Information
Throughvideodev.h-library you can get
some information about frame grapper.grapperInfo-program prints some information about grapper onto screen. You can also find the program in Martti at
/home/ttkurppa/vision/info/. Output of the
grapperInfo:
Video capabilities: name: BT848(Hauppauge old) type: 239 ,which means Can capture: yes Can tune: yes Does teletext: yes Overlay onto frame buffer: yes Overlay by chromakey: no Can clip: yes Uses the frame buffer memory: yes Scalable: yes Monochrome only: no Can capture subareas of the image: no channels : 3 audios : 3 maxwidth : 768 maxheight : 576 minwidth : 32 minheight : 32 ---------------------------- Channel Information: Channel 0 Name : Television tuners: 1 flags : 3 ,which means Channel has a tuner: yes Channel has audio: yes type : 1 ,which means TV norm : 1 Channel 1 Name : Composite1 tuners: 0 flags : 2 ,which means Channel has a tuner: no Channel has audio: yes type : 2 ,which means CAMERA norm : 1 Channel 2 Name : SVHS tuners: 0 flags : 2 ,which means Channel has a tuner: no Channel has audio: yes type : 2 ,which means CAMERA norm : 1 ---------------------------- Picture properties (current setting): brightness: 32768 hue : 32768 colour : 32512 contrast : 27648 whiteness : 0 depth : 0 palette : 3 ,which means: 565 16 bit RGB ---------------------------- Overlay window properties (current setting): x : 0 y : 0 width : 768 height: 576 chromakey: 0 flags : 1 clipcount: 3 ----------------------------
Teemu Kurppa

