_
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
BIN
hand tracking/video_capture.png
Normal file
BIN
hand tracking/video_capture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 357 KiB |
Reference in New Issue
Block a user