Green Outline: This means that the cutoff value for confidence matching was not reached by the program. Also, make sure the barcode you are using is of an acceptable format for the ARToolkit SDK. Try clearing you image area, and try reprinting your barcodes to fix these errors.
ARTOOLKIT TUTORIAL FULL
This can happen when barcodes are not printed properly, are skewed/scaled improperly on the page, or when something is obstructing the full barcode. Purple/Pink Outline: These two outlines have to do specifically with the barcode recognition in the ARToolkit SDK. This can be fixed by adjusting printer settings, print quality settings on your computer, or by replacing ink/toner cartridges. This means that the contrast between the black and the white in the marker is not high enough, and therefore the marker is not properly processed.
ARTOOLKIT TUTORIAL CODE
When this code comes up, try printing a new marker, or recalibrating your camera.īrown Outline: This is the most common error to get with the pattern recognition. Often when this comes up, it can be similar problems to the light blue outline. Try fixing this by playing with the settings on your printer, or changing the layout/scaling of the marker on the page.īlue Outline: This is a generic matching error. This can be caused by uneven lines in printing, or scaling issues with the pattern onto the paper. Light Blue Outline: This means that the pattern extraction has failed. This means that the program is able to detect the marker and full track its movement. Below I will explain the different cases you can have, and what to do to fix them. The marker will be outlined in a different color depending on the results of each step of the recognition process. When you start this program, your output should look something like this: You can use any of the square markers for this, but i recommend using the Hiro marker because it has the best contrast. This program will run through the different steps of the ARToolkit marker recognition process, and will help you figure out where your program is failing. If even after calibrating your camera, you are still having marker recognition or tracking problems, then you may need to run the check_id.exe program provided in the ARToolkit5 directory, bin folder. Optional: Step 4: Debugging Marker Recognition If you are still having issues with tracking or recognizing markers, refer to the next step for debugging these issues.
Now run the simpleLite program again to see if these new parameters will help with tracking issues. The last thing that you need to do is to replace this camera_para.dat file with the camera_para.dat file located in the Data folder of the bin directory. Just press enter and the file will be saved into the bin folder. Once you have captured 10 frames, the program will ask you to save the camera_para.dat file. Try multiple angles and locations of the board, in order to get a variety of test data. Keep your camera in a fixed position, and move the board with the pattern around your area. Press space bar to capture the frame once all the corners have turned red.
The output should look something like this when the chessboard is in full view: The video will look for all the corners on the chessboard, and these will turn red when it is ready to use these for calibration. Once your video is streaming, use the chessboard pattern glued onto a flat surface, to calibrate the camera.
Select the defaults for the camera configuration before the program runs. Open the bin folder inside the ARToolkit5 directory, and run the calib_camera.exe file as administrator. Glue this page to a flat surface such a foam-board or cardboard so that the squares do not move around during calibration. This should be located with the other ARToolkit patterns (in the doc folder of the ARToolkit5 directory), but i have also linked it here for download. Before calibrating your camera, you will need to print out the calibration chessboard. If the marker is not recognized by the ARToolkit simpleLite program, or if the marker tracking is not smooth, you may want to calibrate your camera parameters.