Browse Source

Update 'README.md'

天问 1 month ago
parent
commit
0c74ac7db0
1 changed files with 23 additions and 0 deletions
  1. 23 0
      README.md

+ 23 - 0
README.md

@@ -1,2 +1,25 @@
 # cvzone
 
+基于 OpenCV 和 Mediapipe ,对象检测和识别,如手势检测
+
+## Usage
+
+```
+import cvzone
+import cv2
+
+cap = cv2.VideoCapture(0)
+cap.set(3, 1280)
+cap.set(4, 720)
+
+detector = cvzone.HandDetector(detectionCon=0.5, maxHands=1)
+
+while True:
+    success, img = cap.read()
+    img = detector.findHands(img)
+    lmList, bbox = detector.findPosition(img)
+
+    cv2.imshow("Image", img)
+    cv2.waitKey(1)
+
+```