Search found 9 matches

by vitsin
2012-06-15T08:45:57-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

hi,
2nd solution with pixel enumeration working great now!!!
Thanks a lot!
--vs
by vitsin
2012-06-14T17:01:46-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

Please correct me if I'm wrong, but for the last method the offset is always +0+0: # trim convert negated.png -trim +repage negated_trim.gif # print first row convert negated_trim.gif[210x1+0+0] txt: # ImageMagick pixel enumeration: 210,1,255,gray 0,0: (255,255,255) #FFFFFF gray(255,255,255 ...
by vitsin
2012-06-14T16:06:51-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

hi again, althoug the method of using separate new script is slower, but its the most precise to the solution I'm looking for. I've tried with new_negated.png the following: ./separate2.sh -m 5 -t -v -l -g 5 new_negated tt.gif Got: for ex one square: tt-28.gif: 56x56+39+215 (and tt-3.gif 56x56+215 ...
by vitsin
2012-06-14T14:59:34-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

2nd method is definitely faster and clear now, thank you. One issue with it: convert negated.png -trim +repage negated_trim.gif -> this one trimmed the black border/margin around image resizing it from 300x300 into 225x225. And than now the 0,0 coords for corner image are incorrect if I'm searching ...
by vitsin
2012-06-14T10:22:42-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

Could you please elaborate on 2nd approach?
I did not und at all "Then look for changes between white and black (gray(255) and gray(0))" ...

thank you.
by vitsin
2012-06-14T10:13:38-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

"Cut out one corner square to use as a template" - how?
Also, square could change, its not a static size template.
by vitsin
2012-06-13T11:57:20-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

Thank you for looking into it.
The image is qr code while background and foreground colors are simply reversed. Try to use any qr code scan software to read it.

regards,
--vs
by vitsin
2012-06-13T07:15:46-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Re: Corner squares coord+size detection

hi,
thank you for reply.
Here is the example image link: https://dl.dropbox.com/u/85152046/negated.png
What I looking for is to extract coords+size of those 3 corner thick white squares please.

regards,
--vs
by vitsin
2012-06-12T15:34:27-07:00
Forum: Users
Topic: Corner squares coord+size detection
Replies: 17
Views: 19718

Corner squares coord+size detection

hi, I've tried separate Fred's script to detect XY coords(and size) of 3 corner squares: ./separate.sh -v -l -m 5 -b black -g 2 negated.png t5.png Instead, separate detected 34 objects and created 34 t* files. 3 of 34 t-files are the black background with white suqares - exactly what I need. So I'm ...