-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Tom Krajnik edited this page Dec 4, 2013
·
4 revisions
WhyCon-Mini is a minimalistic version of the WhyCon localization system. While the core of the WhyCon-Mini system is the same as the WhyCon one, it was designed to have as least dependencies as possible. Therefore, WhyCon-Mini is especially suitable for embedded applications and demonstration purposes.
To start with the software:
- Install the SDL libraries.
- Download the software from GitHub and go to the src directory.
- Adjust the camera resolution in the main/whycon.cpp.
- Compile the software - just type make.
- Print one circular pattern.
- Try a test run - you need to run the binary from the bin directory. Type ./whycon /dev/videoX, where X is the number of the camera.
- You should see the image with some numbers below the circle. Pressing D shows the segmentation result.
- Open your browser to view localhost:6666. You should see the circle position.
To setup a coordinate system :
- Calibrate your camera using the MATLAB (or Octave) calibration toolbox and put the Calib_result.m in the etc directory.
- Adjust the circle diameter in the main/whycon.cpp, (default diameter is 122 mm) and you should get real pattern position in meters.
- Print another four circular patterns to use them to define the global coordinate system.
- Put them on positions [0,0], [x,0], [y,0] and [x,y] of the coordinate system you want to use.
- Adjust the x,y values from the previous point in the main/whycon.cpp and recompile.
- Run the software, press r and click the four patterns.
- The positions of the detected patterns are now transformed in the global coordinate system given by the four circles.
- You can press 1,2,3 to switch between local camera 3D coordinates, 2D and 3D localization.
To proceed further :
- Pressing h displays help.
- The values from the last calibration are automagically loaded at the start of the system.
- Running the system with as ./whycon /dev/videoM N causes the method to search for N patterns with the Mth camera.
- Pressing +,- changes the number of localized patterns.
- Clicking a mouse to a particular position causes the system to start tracking from this point.
All the following libraries are probably in your packages.
- libSDL-1.2 for graphical user interface.
- libSDL_ttf-2.0 to print stuff in the GUI