The program freetrack ([url removed, login to view]) tracks Light emitting diodes (LEDs) and gives it's coordinate on the screen.
This is for my own personal usage and freetrack is modifiable under GNU license.
As you can see in the picture attached, freetrack detects a point (which is the LED) via camera or webcam, and gives it's coordinate at bottom left of image.
If 50< x <100 and 50< y < 100 (x, y coordinate)
then add "01" to a text file name [url removed, login to view] ---> as shown in attachment. ([url removed, login to view] might have to be created beforehand)
If 100< x <150 and 100< y < 150 (x, y coordinate)
then add "10" to a text file name [url removed, login to view]
If -50< x <0 and -50< y < 0 (x, y coordinate)
then add "11" to a text file name [url removed, login to view]
Note that each addition of "01", "11" or "10" does not erase previous characters. If the process is done repetitively, the result should be as shown in file attached "output2.txt"
There is also a "wait" function of approximately 100 ms before repeating each loop.
You can find the source codes of freetrack in the "download" section of freetrack website.
Please write source codes such that it shows clearly which part does what, and is easy to modify, especially the coordinate conditions (?<x<? and ?<y<?) generating each unique output.