This commit is contained in:
2021-09-08 18:58:59 +02:00
parent be4d8e0ff9
commit 24b8fa0a58
9 changed files with 163 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
import math
import os
import cv2
import mediapipe as mp
import pyautogui
os.chdir("..")
class Hands_AI:
def __init__(self):
@@ -79,6 +81,12 @@ class Hands_AI:
else:
self.x, self.y = None, None
cv2.imshow("Image", img)
cv2.imwrite("UI/video_capture_.png", img)
try:
os.remove("UI/video_capture.png")
os.rename("UI/video_capture_.png", "UI/video_capture.png")
except:
pass
cv2.waitKey(1)

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB