TensorflowLite::Image::FaceDetection
Inherits TensorflowLite::Image::Common < Reference < Object
Instance methods
adjust the detections so they can be applied directly to the source image (or a scaled version in the same aspect ratio)
you can run detection_adjustments just once and then apply them to detections for each invokation using this function
adjust the detections so they can be applied directly to the source image (or a scaled version in the same aspect ratio)
you can run detection_adjustments just once and then apply them to detections for each invokation using this function
This is a trimmed down version of the C++ code; all irrelevant parts have been removed. (reference: mediapipe/calculators/tflite/ssd_anchors_calculator.cc) also: https://github.com/patlevin/face-detection-tflite/blob/main/fdlite/face_detection.py#L58
add the detection details to an image
if marking up the original image, you'll need to take into account how it was scaled
attempts to classify the object, assumes the image has already been prepared
Mapping to (0,1) score limit is 100 in mediapipe and leads to overflows with IEEE 754 floats this lower limit is safe for use with the sigmoid functions and float32