Skip to content

Commit ad298cf

Browse files
committed
Update logo detection example to draw marker instead of circle for center
1 parent 0df676a commit ad298cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ex06_detect_sfe_logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def my_pipeline(frame):
145145
# draw the bounding box and center of the logo for visualization,
146146
# and add text of the position and size of the logo
147147
frame = cv.rectangle(frame, (left, top), (left + width, top + height), (255, 0, 0), 2)
148-
frame = cv.circle(frame, (center_x, center_y), 3, (0, 255, 0), -1)
148+
frame = cv.drawMarker(frame, (center_x, center_y), (0, 255, 0), cv.MARKER_CROSS, 10, 2)
149149
frame = cv.putText(frame, f"({center_x}, {center_y})", (center_x - 45, center_y - 10), cv.FONT_HERSHEY_SIMPLEX, 0.5, (0, 255, 0), 2)
150150
frame = cv.putText(frame, f"{width}x{height}", (left, top - 10), cv.FONT_HERSHEY_SIMPLEX, 0.5, (255, 0, 0), 2)
151151

0 commit comments

Comments
 (0)