background image

Also watch a demo video ‘Capture and Select’ at following URL: 

http://nxtcamview.sourceforge.net/DemoScreenCam.htm

Tips on using NXTCam in your environment

Object Colors in Line Tracking Vs Object Tracking Modes

In the object tracking mode, you can track objects comprising of 8 distinct colors. 
While selecting colors, avoid any overlap between colors of different objects.
In line tracking mode, only the first color from the Colormap is used, and it is 
recommended to limit the number of colors to one.

Lighting conditions

The NXTCam is designed to operate under 

white fluorescent light

. If you notice 

reddish image color, which tends to happen when your environment has lot of 
ambient Infrared light, try to find the source of Infrared light and reduce it by 
replacing it with fluorescent light.
For advanced operations it is possible to change color gain, brightness and contrast 
of NXTCam by manipulating the I2C register values.

Focus

As a factory default, NXTCam lens is set for optimal focus between 2 and 4 feet. 
The lens is screwed in it’s holder and it is designed to be tight to prevent accidental 
rotation and loss of focus. To refocus the lens, gently turn the lens from the holder, 
capture images and see if the new focus is satisfactory. Do not apply excessive 
force, as it may damage the lens. For better grip while turning lens, you may wrap a 
rubber-band around the exposed threads of the lens. To check the focus, you can 
use Viewer software and perform a 'capture' to see the new focus results.

Updating your Colormap

Human eye (and brain) is conditioned to adapt to ambient light conditions and see. 
Whereas based on ambient light, the colors of objects appear different to a camera 
CCD. In other words, a blue ball in your laboratory lighting conditions will appear to 
be a different shade of blue in Gymnasium lighting.  Considering this aspect, ensure 
to update your NXTCam Colormap based on your final lighting conditions.

Selecting Colors of your Target Object for Colormap

Due to angle of light and shadows cast on the object, to 
NXTCam, the object appears to be a mix of dark and 
light shades. In choosing color for your colormap, try to 
select the lighter shade of your object’s colors. If with 
lighter shades you have trouble tracking darker shades, 
then select complete range of colors.

 mindsensors.com

 7/14

Содержание NXTCam v4

Страница 1: ...econd Configure the NXTCam using USB interface on Windows XP Windows Vista Supports two tracking modes Object tracking and Line tracking Provide real time tracked object statistics number of objects color of objects bounding box coordinates or line coordinates through a standard NXT sensor port Tracked image resolution of 88 x 144 pixels at 30 frames second Perform full resolution 176 x 144 pixels...

Страница 2: ...nd AMD processors Mac OS X v10 4 10 PowerPC G4 Download the drivers and installation instructions from following location http www mindsensors com NXTCam_Driver_Installation htm Viewer and Configuration Software To see the picture that s in the field of view of NXTCam capture that picture for analysis and configure the Colormaps for onboard processing you will need to install and use Viewer and Co...

Страница 3: ...to any of the sensor ports of NXT using standard NXT connector cable In your program select the appropriate port number to which NXTCam is connected WARNING Do not connect the NXTCam to any motor port as the voltage applied by the motor port may damage the electronics of NXTCam During offline operations such as programming and configuration NXTCam must be connected to PC using USB cable as well as...

Страница 4: ...nk occasionally Configuring NXTCam Colormaps using NXTCamView What s a Colormap The objects of interest are recognized by NXTCam by matching the stored color values with the captured image To do that color values of the objects of interest need to be stored in NXTCam s memory These color values are known as Colormaps NXTCam can store up to 8 Colormaps and provide processed information of the objec...

Страница 5: ... in the picture below shows the field of view of NXTCam The objects of interest from this view are the red and blue pens In the object tracking mode the bounding box coordinates are returned as shown mindsensors com 5 14 ...

Страница 6: ...nsure the NXTCam is plugged into one of your PCs USB ports 4 In NXTCamView setup communications to the NXTCam via Tools Options Often only the COMPort needs to be set 5 Connect to your NXTCam 6 Capture an image or two to check the focus and lighting conditions 7 Select some colors to track by clicking on the image you captured Colors are shown as ranges of red green and blue min max values of each...

Страница 7: ...is designed to be tight to prevent accidental rotation and loss of focus To refocus the lens gently turn the lens from the holder capture images and see if the new focus is satisfactory Do not apply excessive force as it may damage the lens For better grip while turning lens you may wrap a rubber band around the exposed threads of the lens To check the focus you can use Viewer software and perform...

Страница 8: ...s com index php module documents JAS_DocumentManager_op viewDocument JAS_Document_id 52 Troubleshooting NXTCam communication Troubleshooting NXTCam communication with your PC To ensure USB drivers are installed properly follow these steps 1 Ensure to install the USB drivers as mentioned in this document 2 Connect the NXTcam using a USB cable to your computer 3 From Start menu Right click on Comput...

Страница 9: ... the configuration say mynxtcam 6 In the next dialog box specify Connect Using NXTCam COM Port the port you noted from Ports Com and LPT entry in Device Manager 7 Click OK 8 In next window Specify Bits per second 115200 Data bits 8 Parity None Stop bits 1 Flow Control None 9 Click OK 10 In the main terminal window just press enter You should get a response from NXTCam as NCK 11 In the same window ...

Страница 10: ...he block and examine the bottom left corner of NXT G window where block control panel is located 7 You should see NXTCam version number shown in the bottom left corner as shown in the adjacent picture 8 If the NXTCam is not connected correctly to your NXT this status will indicate No Device If that happens ensure the port and Address in your program match to what s on NXTCam Reference Information ...

Страница 11: ...ored in NVRAM P 0x50 Ping NXTCam Engine R 0x52 Reset NXTCam Engine S 0x53 Send the color map to NXTCam Engine T 0x54 Illumination Off U 0x55 Sort tracked objects by color V 0x56 Get NXTCam Engine firmware version No Read resulting string at 0x42 12 bytes X 0x58 Do not Sort tracked objects While programming in NXC you can use the API function NXTCam_SendCommand to send the command to NXTCam While u...

Страница 12: ...45 1st object Y upper left Upper left Y coordinate of first object 0x46 1st object X lower right Lower right X coordinate of first object 0x472 1st object Y lower right Lower right Y coordinate of first object 0x48 2nd object color 0x49 0x4C 2nd object co ordinates 0x4D 3rd object color 0x4E 0x51 3rd object co ordinates 0x52 4th object color 0x53 0x56 4th object co ordinates 0x57 5th object color ...

Страница 13: ...gister Data 0x804 Color map data Red 0 Color map data Red 0 0x80 0xAF These registers are used for Colormap data reading and writing 0x80 Color map data Red 0 Color map data Red 0 3 If you need to read image sensor register 0x00 i e 1 register then follow this Write 0x01 to register 0x6B Write 0x00 to register 0x6C Run command H Results will be stored in register 0x6D If you need to write to image...

Страница 14: ...x86 Color map data Red 6 Color map data Red 6 0x87 Color map data Red 7 Color map data Red 7 0x8F Color map data Red 15 Color map data Red 15 0x90 Color map data Green 0 Color map data Green 0 0x91 Color map data Green 1 Color map data Green 1 0x9F Color map data Green 15 Color map data Green 15 0xA0 Color map data Blue 0 Color map data Blue 0 0xA1 Color map data Blue 1 Color map data Blue 1 0xAF ...

Отзывы: