손가락을 인식해서 손가락 개수를 만족하면 cmd로 프린트를 하는데 프린트가 중복되서 출력이 됩니다.
if (now1-before1).seconds >= 2: cv2.putText(frame, 'hello', (0, 100), font, 2, (0, 0, 255), 3, cv2.LINE_AA) print("mode1")
소스는 대략 이런 형식인데 어떻게 조건을 줘야 한번만 출력될까요,...
if(now1-before1).seconds>=2: cv2.putText(frame, 'hello', (0, 100), font, 2, (0, 0, 255), 3, cv2.LINE_AA) print("mode1")