Skip to content

Commit

Permalink
don't force ALPR for next when yolo doesn't find an object
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jul 6, 2019
1 parent 81ca75e commit bb6300e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hook/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,19 @@ def append_suffix(filename, token):
try_next_image = False
else: # objects, no vehicles
if filename == filename1 and filename2:
g.logger.debug ('There was no vehicle detected here, but we have another image to try')
g.logger.debug ('There was no vehicle detected by Yolo in this image')
'''
# For now, don't force ALPR in the next (snapshot image)
# only do it if yolo gets a vehicle there
# may change this later
try_next_image = True
saved_bbox = b
saved_labels = l
saved_conf = c
saved_classes = m.get_classes()
saved_image = image.copy()
saved_file = filename
'''
else:
g.logger.debug ('No vehicle detected, and no more images to try')
if saved_bbox:
Expand Down

0 comments on commit bb6300e

Please sign in to comment.