Skip to content

Commit

Permalink
Merge pull request #215 from Glas42/main
Browse files Browse the repository at this point in the history
TrafficLightDetection assets update.
  • Loading branch information
Glas42 authored Feb 15, 2024
2 parents d4649e7 + e47365c commit 352f687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified assets/TrafficLightDetection/setupexample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions plugins/TrafficLightDetection/screen_capture_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def make_button(text="NONE", x1=0, y1=0, x2=100, y2=100, round_corners=30, butto
cv2.namedWindow('Example Image', cv2.WINDOW_NORMAL)
exampleimage_width = exampleimage.shape[1]
exampleimage_height = exampleimage.shape[0]
cv2.resizeWindow('Example Image', round(exampleimage_width/2), round(exampleimage_height/2))
cv2.resizeWindow('Example Image', round(frame_width/2.5), round(frame_width/5.93))
cv2.imshow('Example Image', exampleimage)
cv2.imshow('TrafficLightDetection - Screen Capture Setup', startframe)
cv2.waitKey(1)
Expand Down Expand Up @@ -129,7 +129,7 @@ def CreateSettings(category:str, name:str, data:any):
cv2.namedWindow('Example Image', cv2.WINDOW_NORMAL)
exampleimage_width = exampleimage.shape[1]
exampleimage_height = exampleimage.shape[0]
cv2.resizeWindow('Example Image', round(exampleimage_width/2), round(exampleimage_height/2))
cv2.resizeWindow('Example Image', round(frame_width/2.5), round(frame_width/5.93)))

try:
window_x, window_y, window_width, window_height = cv2.getWindowImageRect('TrafficLightDetection - Screen Capture Setup')
Expand Down

0 comments on commit 352f687

Please sign in to comment.