FRC Camera Test is an application I wrote to facilitate developing image processing routines for the Axis camera and NI Vision library provided with the 2009 control system. It makes it possible to develop and test camera code for FRC robots without requiring access to the control system.

Screenshot

FRC Camera Test
screenshot

Description

FRC Camera Test is written in C++ using the Win32 and Winsock APIs, as well as the NI Vision library, the Windows version of which was made available to teams along with the rest of the control system software. The camera is connected to the PC by Ethernet cable, and the application acquires a continuous stream of JPEG images from the camera with a framerate and video settings that are configurable in the code. The software requires a connected camera in order to function. On the left side, the original image is displayed, as well as the RGB and HSL values for the pixel currently beneath the mouse cursor. The image processing routine applied to the source image is modular, and the right side of the application displays whatever image and/or textual information results from it.

Download

FRC Camera Test is available under the terms of the BSD license, which means that anyone is free to use, modify and distribute the software. The most recent version can be obtained from the GitHub page.

Please contact me with any suggestions, questions or comments. Pull requests are welcome.

Building the Project

This application was written using Microsoft Visual C++ 2005 Express Edition, but any Windows-capable C++ build platform should work.

In order to build this project, the directory containing nivision.h (usually C:\Program Files\National Instruments\Vision\Include) must be added to the list of include directories. Similarly, the directory containing nivision.lib (usually C:\Program Files\National Instruments\Vision\Lib\MSVC) must be added to the list of library directories, and wsock32.lib and nivision.lib must be specified as dependencies.