Skip to content

Commit b105bb2

Browse files
committed
use cv2 to show image
1 parent 2442958 commit b105bb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/detector_cpu.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from img2vec_pytorch import Img2Vec
1212
from PIL import Image
13+
import cv2
1314

1415
from LabelStudioClient import LabelStudioClient
1516

@@ -78,6 +79,12 @@ def submit_image():
7879
# for x in range(len(ids)):
7980
# red.set(str(ids[x]), paths[x])
8081

82+
# img = cv2.imread(filename, cv2.IMREAD_ANYCOLOR)
83+
# cv2.namedWindow("Screen", cv2.WINDOW_NORMAL)
84+
# cv2.setWindowProperty("Screen", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
85+
# cv2.imshow("Screen", img)
86+
# cv2.waitKey(10)
87+
8188
os.remove(filename)
8289
return 'ok', 200
8390

0 commit comments

Comments
 (0)