Expose ImageSegmenter and GestureRecognizer APIs in PyPI packages.
PiperOrigin-RevId: 486176206
This commit is contained in:
parent
57759aedaf
commit
5fd3701cfd
|
@ -15,17 +15,25 @@
|
||||||
"""MediaPipe Tasks Vision API."""
|
"""MediaPipe Tasks Vision API."""
|
||||||
|
|
||||||
import mediapipe.tasks.python.vision.core
|
import mediapipe.tasks.python.vision.core
|
||||||
|
import mediapipe.tasks.python.vision.gesture_recognizer
|
||||||
import mediapipe.tasks.python.vision.image_classifier
|
import mediapipe.tasks.python.vision.image_classifier
|
||||||
|
import mediapipe.tasks.python.vision.image_segmenter
|
||||||
import mediapipe.tasks.python.vision.object_detector
|
import mediapipe.tasks.python.vision.object_detector
|
||||||
|
|
||||||
|
GestureRecognizer = gesture_recognizer.GestureRecognizer
|
||||||
|
GestureRecognizerOptions = gesture_recognizer.GestureRecognizerOptions
|
||||||
ImageClassifier = image_classifier.ImageClassifier
|
ImageClassifier = image_classifier.ImageClassifier
|
||||||
ImageClassifierOptions = image_classifier.ImageClassifierOptions
|
ImageClassifierOptions = image_classifier.ImageClassifierOptions
|
||||||
|
ImageSegmenter = image_segmenter.ImageSegmenter
|
||||||
|
ImageSegmenterOptions = image_segmenter.ImageSegmenterOptions
|
||||||
ObjectDetector = object_detector.ObjectDetector
|
ObjectDetector = object_detector.ObjectDetector
|
||||||
ObjectDetectorOptions = object_detector.ObjectDetectorOptions
|
ObjectDetectorOptions = object_detector.ObjectDetectorOptions
|
||||||
RunningMode = core.vision_task_running_mode.VisionTaskRunningMode
|
RunningMode = core.vision_task_running_mode.VisionTaskRunningMode
|
||||||
|
|
||||||
# Remove unnecessary modules to avoid duplication in API docs.
|
# Remove unnecessary modules to avoid duplication in API docs.
|
||||||
del core
|
del core
|
||||||
|
del gesture_recognizer
|
||||||
del image_classifier
|
del image_classifier
|
||||||
|
del image_segmenter
|
||||||
del object_detector
|
del object_detector
|
||||||
del mediapipe
|
del mediapipe
|
||||||
|
|
Loading…
Reference in New Issue
Block a user