Category : mediapipe

I have built a program in Python that analyzes a video and provides pose estimation and custom feedback on squats using Google’s BlazePose pose estimation ML model via the MediaPipe package. I am also using some openCV features to provide additional information and annotate selected frames from the video sequence. I would like to get ..

Read more

if len(lmList) !=0: fingers = [] for id in range(0,5): if lmList[tipIds[id]][2] < lmList[tipIds[id] -2][2]: ######THE ERROR COMES HEERE!! fingers.append(1) else: fingers.append(0) raceback (most recent call last): File "C:UsersSonyPycharmProjectsHandTrackingProjectFingerCountingProject.py", line 44, in if lmList[tipIds[id]][2] < lmList[tipIds[id] -2][2]: IndexError: list index out of range [ WARN:0] global C:UsersrunneradminAppDataLocalTemppip-req-build-sgoydvi3opencvmodulesvideoiosrccap_msmf.cpp (438) `anonymous-namespace’::SourceReaderCB::~SourceReaderCB terminating async callback Source: Python..

Read more

I wrote this code for face detection using MediaPipe and flask. There is no error when compiling the code but the website keep on loading with no results shown. I don’t know what’s the issue here. mp_drawing = mp.solutions.drawing_utils mp_holistic = mp.solutions.holistic cap = cv2.VideoCapture(0) def generate_frames(): while True: success, frame = cap.read() if not ..

Read more

error: INFO: Created TensorFlow Lite XNNPACK delegate for CPU. INFO: Replacing 117 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 2 partitions. INFO: Replacing 64 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions. Traceback (most recent call last): File "f:/pycharm/virtualmouse/vm.py", line 40, in fingers = detector.fingersUp() File "f:pycharmvirtualmouseHand_Movement_Tracking.py", line 90, in fingersUp if self.lmks_lst[self.tipId[0]][1] < self.lmks_lst[self.tipId[0] – ..

Read more