zamal_

Results 3 comments of zamal_

This is moved inside SerialModule Here's the correct implementation ``` import cv2 from cvzone.HandTrackingModule import HandDetector from cvzone.SerialModule import SerialObject cap = cv2.VideoCapture(1) detector = HandDetector(maxHands=1, detectionCon=0.7) mySerial = SerialObject("COM3",...

``` from cvzone.HandTrackingModule import HandDetector import cv2 cap = cv2.VideoCapture(0) detector = HandDetector(detectionCon=0.8, maxHands=2) while True: success, img = cap.read() hands, img = detector.findHands(img) if hands: for hand in hands:...

Hi @QuLogic, To address the dtype warning, you can explicitly cast A_scaled to float32 after clipping. Add the following line after the np.clip operation: ` A_scaled = A_scaled.astype(np.float32)` This should...