brandonagr / gocupi

Polargraph (vertical plotter / drawing machine) written in Go
GNU Lesser General Public License v3.0
101 stars 26 forks source link

QR and Raster imageoutput not working #7

Closed kvanbiesen closed 10 years ago

kvanbiesen commented 10 years ago

GenerateRaster isnt working

therefo QR isnt working either... Doesnt print anything, just a empty lined field

brandonagr commented 10 years ago

Can you paste in some examples of the command line parameters you were using that failed to work? Posting the resulting files from adding -toimage flag would also be helpful

kvanbiesen commented 10 years ago

arc works fine;.. no matter what settings;..

Qr works for when i try this command gocupi qr 400 5 "Kris Van Biesen"

when i try gocupi qr 400 10 "Kris Van Biesen" it gives a empty output output

imageraster: i use: (result +source is included) gocupi -toimage imageraster 400 5 goku2.jpg

goku2 output

brandonagr commented 10 years ago

The -toimage doesn't accurately represent what would be drawn as it only shows the center of the pen and doesn't take into account thickness of the pen

The second parameter in qr is the thickness of the pen, a number closer to 1 or 2mm should work as expected (a 10mm / 1cm thick line would be a really huge marker), doing gocupi qr 400 1 "Kris Van Biesen" or gocupi -toimage qr 1000 5 "test" should work better

brandonagr commented 10 years ago

For imageraster the issue was the size of the input image was too large to produce good results, after resizing the image to be only 200 pixels tall and calling imageraster 1000 1 goku.jpg it produced some results, but it was not very good as imageraster can only draw a pixel as on or off, so only the really dark pixels were drawn at all

You would probably get much better results by first converting the image into a single line svg, but that requires a slightly detailed manual process as described in http://www.makerbot.com/blog/2012/03/12/single-line-art-traveling-salesman-problem-tutorial/