need something to work out how to follow the lines
Closed this issue ยท 12 comments
I have what is needed to make the images, and I am working on the hardware end (I guess that this would be the "front" end ๐ ), but this would need some sort of input coordinates. Could @jozsefsallai work on a system to turn a black&white png (or ppm if you prefer) image (white lines need following) output by an edge-detection algorithm into a route (preferred format would be something like an arbitrary number of lines, each containing "$x $y" pairs (pixel coloumn and row(I'll take care of the coordinate transformation)))? A simulation of a line-following robot might do the trick. ๐
Wouldn't it be better if we decided on a single format instead of having .png or .ppm? (I think PNG would be a better option here)
Added coordinates generator application source code to the repo. Please refer to the comment in the commit to build from source.
Added a go run
command to makeNew.sh
. If this output is ok with you then I will close the issue.
By png/ppm I meant that the choice is yours.
Also, the order would be better as a route for a "pencil" to follow. Another thing, what are the dependencies of go (as in apt)?
Ah. forget about the dependency problem, didn't see the readme modifications.
Just ran it, and "output .txt" is not the best of names. If you could change it to be something like $name.coords.txt, that would be better.
Also, the order would be better as a route for a "pencil" to follow
I'll think about this.
Just ran it, and "output .txt" is not the best of names. If you could change it to be something like $name.coords.txt, that would be better.
Sure!
$name.coords.txt
naming done in 68d653b
right. any way of either from the makefile, or the go... thing... (is it a program or a script?) find out what the shell script just made? I have separated the calling of the coordinator and the imaginator (:grin:), but have no Idea on how to get the right parameter for the former.
abc5733 has the last sort-of resolved. (very dirty hack.)
is it a program or a script?
with go run
, it's a script, when compiled, it becomes an executable program
very dirty hack
made it less dirty and more precise in ed59067
I stopped following this when Perl started to get involved. No offense, but Perl needs to die already.