Defaults to False , treating the input image as a video stream. It will try to detect the most prominent person in the first image and further locate pose landmarks after successful detection. In subsequent images, it simply tracks those landmarks without calling another detection until tracking of the target is lost, which can reduce computation and latency. If True , the human detection method will be performed on each input image, which is very suitable for processing a batch of static, possibly irrelevant images.
MODEL_COMPLEXITY
The default is 1, the complexity of the posture landmark model: 0, 1, 2. Landmark accuracy and inference latency generally increase with model complexity.
smooth_landmarks
Defaults to True to smooth images, filtering pose landmarks on different input images to reduce jitter, but ignored if static_image_mode is also set to True.
upper_body_only
The default is False, whether to only detect landmarks on the upper body. There are 33 landmarks for human body posture and 25 landmarks for upper body posture.
enable_segmentation
Default is False. If set to true, the solution generates segmentation masks in addition to pose landmarks.
smooth_segmentation
Defaults to True, filters segmentation masks on different input images to reduce jitter, but is ignored if enable_segmentation is set to False, or static_image_mode is set to True.
min_tracking_confidence
Default is 0.5. Minimum confidence value (between 0-1) from the landmark tracking model for pose landmarks that will be considered successfully tracked, otherwise person detection will be automatically invoked on the next input image. Setting it to a higher value improves the robustness of the solution, but at the cost of higher latency. If static_image_mode is True, person detection will run on every image frame.
min_detection_confidence
The default is 0.5, which is the minimum confidence value (between 0-1) from the person detection model. If the threshold is higher than this threshold, the detection is considered successful.