Skip to content

Commit

Permalink
keep more detected road signs
Browse files Browse the repository at this point in the history
  • Loading branch information
cquest committed Jul 16, 2023
1 parent 8268a6d commit 8c852e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blur/blur.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def blurPicture(picture, keep):
salt = str(uuid.uuid4())
for c in range(len(crops)):
if ((keep == '1' and info[c]['confidence'] < 0.5 and info[c]['class'] in ['face', 'plate'])
or (info[c]['confidence'] > 0.5 and info[c]['class'] == 'sign')):
or (info[c]['confidence'] > 0.2 and info[c]['class'] == 'sign')):
h = hashlib.sha256()
h.update(((salt if not info[c]['class'] == 'sign' else str(info))+str(info[c])).encode())
cropname = h.hexdigest()+'.jpg'
Expand Down

0 comments on commit 8c852e2

Please sign in to comment.