Last active
November 21, 2022 04:36
-
-
Save remoharsono/e8dc8d4cc148d0f32005f723812e6a29 to your computer and use it in GitHub Desktop.
OpenCV: Select ROI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
image = cv2.imread("image.png") | |
x = cv2.selectROI("Select area", image, fromCenter=False) | |
print("Selected box: ", format(x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment