test area shown in negative

git-svn-id: https://callirhoe.googlecode.com/svn/trunk@133 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
geortz@gmail.com 2014-09-24 12:39:57 +00:00
parent 39d9c5d077
commit 25c380c28d

View File

@ -188,7 +188,9 @@ if __name__ == '__main__':
if options.test: if options.test:
subprocess.call(['convert', img, '-region', '%dx%d+%d+%d' % (nw,nh,dx,dy), subprocess.call(['convert', img, '-region', '%dx%d+%d+%d' % (nw,nh,dx,dy),
'-border', '2', '-bordercolor', 'black', '-border', '1', base+'-0'+ext]) '-negate', base+'-0'+ext])
# subprocess.call(['convert', img, '-region', '%dx%d+%d+%d' % (nw,nh,dx,dy),
# '-border', '2', '-bordercolor', 'black', '-border', '1', base+'-0'+ext])
if options.test_rect: if options.test_rect:
print dx, dy, nw, nh print dx, dy, nw, nh