Skip to content

Instantly share code, notes, and snippets.

@remoharsono
Last active November 21, 2022 04:36
Show Gist options
  • Select an option

  • Save remoharsono/e8dc8d4cc148d0f32005f723812e6a29 to your computer and use it in GitHub Desktop.

Select an option

Save remoharsono/e8dc8d4cc148d0f32005f723812e6a29 to your computer and use it in GitHub Desktop.

Revisions

  1. remoharsono revised this gist Nov 21, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion selectROI.py
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    import cv2
    import numpy as np

    image = cv2.imread("image.png")
    x = cv2.selectROI("Select area", image, fromCenter=False)
  2. remoharsono created this gist Nov 21, 2022.
    7 changes: 7 additions & 0 deletions selectROI.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import cv2
    import numpy as np

    image = cv2.imread("image.png")
    x = cv2.selectROI("Select area", image, fromCenter=False)

    print("Selected box: ", format(x))