Improve comment of 'region.isValid()' bug.

This commit is contained in:
Albert Cervera i Areny 2008-09-15 00:00:58 +02:00
parent fa654c1837
commit ea1541a331
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ class Ocr:
# If we use 'if region:' instead of comparing with None
# rects with top (or left) >= bottom (or right), will return
# False and thus return _all_ boxes instead of _none_.
# Indeed, 'if region:' is equivalent to 'if region.isValid():'
if region != None:
# Filter out boxes not in the given region
boxes = []