Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Eric-Canas/qrdet
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Canas committed Feb 2, 2023
2 parents 2a138e5 + 8d6cd28 commit 1838ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ detections = detector.detect(image=image, is_bgr=True)
# Draw the detections
for (x1, y1, x2, y2), confidence in detections:
cv2.rectangle(image, (x1, y1), (x2, y2), color=(0, 255, 0), thickness=2)
cv2.putText(image, f'{confidence:.2f}', (x1, y1 - 10), fontFace=cv2.FONT_HERSHEY_SIMPLEX, fontScale=1,
color=(0, 255, 0), thickness=2)
cv2.putText(image, f'{confidence:.2f}', (x1, y1 - 10), fontFace=cv2.FONT_HERSHEY_SIMPLEX,
fontScale=1, color=(0, 255, 0), thickness=2)
# Save the results
cv2.imwrite(filename='resources/qreader_test_image_detections.jpeg', img=image)
```
Expand Down

0 comments on commit 1838ee2

Please sign in to comment.