Repository Analysis

google-ai-edge/mediapipe

Cross-platform, customizable ML solutions for live and streaming media.

11.9 Low AI signal View on GitHub
11.9
Adjusted Score
11.9
Raw Score
100%
Time Factor
2026-05-27
Last Push
35,405
Stars
C++
Language
366,912
Lines of Code
2006
Files
3556
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 134MEDIUM 101LOW 3317

Pattern Findings

3556 matches across 15 categories. Click a row to expand file-level details.

Over-Commented Block2438 hits · 2406 pts
SeverityFileLineSnippet
LOWsetup_opencv.sh1#!/bin/bash
LOWsetup_android_sdk_and_ndk.sh1#!/bin/bash
LOWbuild_desktop_examples.sh1#!/bin/bash
LOWrequirements_lock_3_12.txt1#
LOWrequirements_lock_3_12.txt21jax==0.4.30
LOWrequirements_lock_3_12.txt41 # matplotlib
LOWrequirements_lock_3_12.txt61scipy==1.13.1
LOWrequirements_lock_3_10.txt1#
LOWrequirements_lock_3_10.txt21jax==0.4.30
LOWrequirements_lock_3_10.txt41 # matplotlib
LOWrequirements_lock_3_10.txt61scipy==1.13.1
LOWrequirements_lock.txt1#
LOWrequirements_lock.txt21importlib-metadata==8.5.0
LOWrequirements_lock.txt41 # -r mediapipe/opensource_only/requirements.txt
LOWrequirements_lock.txt61pyparsing==3.1.4
LOWrequirements_lock_3_11.txt1#
LOWrequirements_lock_3_11.txt21jax==0.4.30
LOWrequirements_lock_3_11.txt41 # matplotlib
LOWrequirements_lock_3_11.txt61scipy==1.13.1
LOWbuild_ios_examples.sh1#!/bin/bash
LOWbuild_android_examples.sh1#!/bin/bash
LOWdocs/build_java_api_docs.py1# Copyright 2022 The MediaPipe Authors.
LOWdocs/build_py_api_docs.py1# Copyright 2022 The MediaPipe Authors.
LOWdocs/build_model_maker_api_docs.py1# Copyright 2022 The MediaPipe Authors.
LOW…asksDocGen/MediaPipeTasksDocGen/MediaPipeTasksDocGen.h1//
LOWdocs/framework_concepts/calculators.md361namespace mediapipe {
LOWdocs/getting_started/install.md521 ```bash
LOWdocs/getting_started/install.md641
LOWdocs/getting_started/install.md761 # Should print:
LOWdocs/getting_started/install.md801 # ---> f5d5f402071b
LOWmediapipe/__init__.py1# Copyright 2019 - 2022 The MediaPipe Authors.
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29601collarbone
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29621##)
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29641##{
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29661##¶
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29681##ɕ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29701##ʌ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29721##β
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29741##б
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29761##і
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29781##պ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29801##ם
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29821##ح
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29841##چ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29861##थ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29881##।
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29901##দ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29921##ட
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29941##ය
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29961##་
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29981##თ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30001##ᄌ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30021##ᆨ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30041##ᵖ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30061##„
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30081##ⁿ
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30101##₤
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30121##∂
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30141##⊗
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30161##⽥
2378 more matches not shown…
Hyper-Verbose Identifiers595 hits · 637 pts
SeverityFileLineSnippet
LOWsetup.py115def _modify_opencv_cmake_rule(link_opencv):
LOWmediapipe/tasks/python/core/mediapipe_c_bindings.py90def convert_strings_to_ctypes_array(
LOWmediapipe/tasks/python/test/core/base_options_test.py23 def test_convert_to_ctypes_with_model_asset_path(self):
LOWmediapipe/tasks/python/test/core/base_options_test.py33 def test_convert_to_ctypes_with_model_asset_buffer(self):
LOWmediapipe/tasks/python/test/core/base_options_test.py43 def test_convert_to_ctypes_with_gpu_delegate(self):
LOWmediapipe/tasks/python/test/core/base_options_test.py54 def test_convert_to_ctypes_without_delegate(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py40 def test_delegates_to_registered_methods(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py48 def test_method_calls_are_serialized(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py57 def side_effect_long_running_func():
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py86 def test_method_calls_are_invoked_from_same_thread(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py129 def test_continues_after_error(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py148 def test_calls_after_close_are_not_dispatched(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py160 def test_calls_status_functions_with_error_argument(self):
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py188 def test_uses_error_message_for_status_functions(self, error_message):
LOW…apipe/tasks/python/test/core/mediapipe_c_utils_test.py81 def test_handle_status_raises_correct_errors(
LOW…tasks/python/test/core/async_result_dispatcher_test.py39 def test_throws_error_if_callback_already_set(self):
LOW…tasks/python/test/core/async_result_dispatcher_test.py47 def test_callback_invoked_with_converted_data(self):
LOW…tasks/python/test/core/async_result_dispatcher_test.py58 def test_exception_in_callback_does_not_block_dispatcher(self):
LOW…tasks/python/test/core/async_result_dispatcher_test.py85 def test_calls_callbck_in_separate_thread(self):
LOW…tasks/python/test/core/async_result_dispatcher_test.py108 def test_ignores_calls_after_close(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py130 def test_create_from_file_succeeds_with_valid_model_path(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py137 def test_create_from_options_succeeds_with_valid_model_path(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py144 def test_create_from_options_fails_with_invalid_model_path(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py156 def test_create_from_options_succeeds_with_valid_model_content(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py195 def test_segment_succeeds_with_category_mask(
LOW…ython/test/vision/interactive_segmenter_legacy_test.py262 def test_segment_succeeds_with_confidence_mask(
LOW…ython/test/vision/interactive_segmenter_legacy_test.py297 def test_segment_succeeds_with_rotation(self):
LOW…ython/test/vision/interactive_segmenter_legacy_test.py327 def test_segment_fails_with_roi_in_image_processing_options(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py92 def test_create_from_file_succeeds_with_valid_model_path(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py97 def test_create_from_options_succeeds_with_valid_model_path(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py104 def test_create_from_options_fails_with_invalid_model_path(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py318 def test_calling_detect_for_video_in_image_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py327 def test_calling_detect_async_in_image_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py336 def test_calling_detect_in_video_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py345 def test_calling_detect_async_in_video_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py354 def test_detect_for_video_succeeds_with_full_range_model(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py457 def test_calling_detect_in_live_stream_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py467 def test_calling_detect_for_video_in_live_stream_mode(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py477 def test_detect_async_calls_with_illegal_timestamp(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py60def _get_expected_face_detector_result(file_name: str) -> FaceDetectorResult:
LOW…diapipe/tasks/python/test/vision/face_detector_test.py116 def test_create_from_options_succeeds_with_valid_model_content(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py125 def _expect_keypoints_correct(self, actual_keypoints, expected_keypoints):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py139 def _expect_bounding_box_correct(self, actual_bbox, expected_bbox):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py161 def _expect_face_detector_results_correct(
LOW…diapipe/tasks/python/test/vision/face_detector_test.py238 def test_detect_succeeds_with_full_range_model(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py259 def test_detect_succeeds_with_rotated_image(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py281 def test_empty_detection_outputs(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py294 def test_missing_result_callback(self):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py306 def test_illegal_result_callback(self, running_mode):
LOW…diapipe/tasks/python/test/vision/face_detector_test.py372 def test_detect_for_video_with_out_of_order_timestamp(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py165 def test_create_from_file_succeeds_with_valid_model_path(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py170 def test_create_from_options_succeeds_with_valid_model_path(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py177 def test_create_from_options_fails_with_invalid_model_path(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py476 def test_calling_classify_for_video_in_image_mode(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py485 def test_calling_classify_async_in_image_mode(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py494 def test_calling_classify_in_video_mode(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py503 def test_calling_classify_async_in_video_mode(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py512 def test_classify_for_video_with_out_of_order_timestamp(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py561 def test_calling_classify_in_live_stream_mode(self):
LOW…pipe/tasks/python/test/vision/image_classifier_test.py571 def test_calling_classify_for_video_in_live_stream_mode(self):
535 more matches not shown…
Docstring Block Structure101 hits · 505 pts
SeverityFileLineSnippet
HIGHmediapipe/tasks/python/vision/image_classifier.py243Creates an `ImageClassifier` object from a TensorFlow Lite model and the default `ImageClassifierOptions`. Note tha
HIGHmediapipe/tasks/python/vision/image_classifier.py270Creates the `ImageClassifier` object from image classifier options. Args: options: Options for the image clas
HIGHmediapipe/tasks/python/vision/image_classifier.py335Performs image classification on the provided MediaPipe Image. Only use this method when the ImageClassifier is cre
HIGHmediapipe/tasks/python/vision/image_classifier.py375Performs image classification on the provided video frames. Only use this method when the ImageClassifier is create
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py234Creates an `InteractiveSegmenterLegacy` object from a TensorFlow Lite model and the default `InteractiveSegmenterLegacyO
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py262Creates the `InteractiveSegmenterLegacy` object from interactive segmenter options. Args: options: Options fo
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py291Performs the actual segmentation task on the provided MediaPipe Image. The image can be of any size with format RGB
HIGHmediapipe/tasks/python/vision/pose_landmarker.py364Creates a `PoseLandmarker` object from a model bundle file and the default `PoseLandmarkerOptions`. Note that the c
HIGHmediapipe/tasks/python/vision/pose_landmarker.py391Creates the `PoseLandmarker` object from pose landmarker options. Args: options: Options for the pose landmar
HIGHmediapipe/tasks/python/vision/pose_landmarker.py449Performs pose landmarks detection on the given image. Only use this method when the PoseLandmarker is created with
HIGHmediapipe/tasks/python/vision/pose_landmarker.py490Performs pose landmarks detection on the provided video frame. Only use this method when the PoseLandmarker is crea
HIGHmediapipe/tasks/python/vision/object_detector.py283Creates an `ObjectDetector` object from a TensorFlow Lite model and the default `ObjectDetectorOptions`. Note that
HIGHmediapipe/tasks/python/vision/object_detector.py310Creates the `ObjectDetector` object from object detector options. Args: options: Options for the object detec
HIGHmediapipe/tasks/python/vision/object_detector.py374Performs object detection on the provided MediaPipe Image. Only use this method when the ObjectDetector is created
HIGHmediapipe/tasks/python/vision/object_detector.py419Performs object detection on the provided video frames. Only use this method when the ObjectDetector is created wit
HIGHmediapipe/tasks/python/vision/face_landmarker.py3109Creates an `FaceLandmarker` object from a TensorFlow Lite model and the default `FaceLandmarkerOptions`. Note that
HIGHmediapipe/tasks/python/vision/face_landmarker.py3136Creates the `FaceLandmarker` object from face landmarker options. Args: options: Options for the face landmar
HIGHmediapipe/tasks/python/vision/face_landmarker.py3194Performs face landmark detection on the provided MediaPipe Image. Only use this method when the FaceLandmarker is c
HIGHmediapipe/tasks/python/vision/face_landmarker.py3236Performs face landmarks detection on the provided video frame. Only use this method when the FaceLandmarker is crea
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py245Creates an `GestureRecognizer` object from a TensorFlow Lite model and the default `GestureRecognizerOptions`. Note
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py272Creates the `GestureRecognizer` object from gesture recognizer options. Args: options: Options for the gestur
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py341Performs hand gesture recognition on the given image. Only use this method when the GestureRecognizer is created wi
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py385Performs gesture recognition on the provided video frame. Only use this method when the GestureRecognizer is create
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py360Creates an `HolisticLandmarker` object from a TensorFlow Lite model and the default `HolisticLandmarkerOptions`. No
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py387Creates the `HolisticLandmarker` object from holistic landmarker options. Args: options: Options for the holi
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py446Performs holistic landmarks detection on the given image. Only use this method when the HolisticLandmarker is creat
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py489Performs holistic landmarks detection on the provided video frame. Only use this method when the HolisticLandmarker
HIGHmediapipe/tasks/python/vision/hand_landmarker.py360Creates an `HandLandmarker` object from a TensorFlow Lite model and the default `HandLandmarkerOptions`. Note that
HIGHmediapipe/tasks/python/vision/hand_landmarker.py387Creates the `HandLandmarker` object from hand landmarker options. Args: options: Options for the hand landmar
HIGHmediapipe/tasks/python/vision/hand_landmarker.py447Performs hand landmarks detection on the given image. Only use this method when the HandLandmarker is created with
HIGHmediapipe/tasks/python/vision/hand_landmarker.py492Performs hand landmarks detection on the provided video frame. Only use this method when the HandLandmarker is crea
HIGHmediapipe/tasks/python/vision/image_segmenter.py285Creates an `ImageSegmenter` object from a TensorFlow Lite model and the default `ImageSegmenterOptions`. Note that
HIGHmediapipe/tasks/python/vision/image_segmenter.py312Creates the `ImageSegmenter` object from image segmenter options. Args: options: Options for the image segmen
HIGHmediapipe/tasks/python/vision/image_segmenter.py370Performs the actual segmentation task on the provided MediaPipe Image. Args: image: MediaPipe Image. im
HIGHmediapipe/tasks/python/vision/image_segmenter.py410Performs segmentation on the provided video frames. Only use this method when the ImageSegmenter is created with th
HIGHmediapipe/tasks/python/vision/image_embedder.py241Creates an `ImageEmbedder` object from a TensorFlow Lite model and the default `ImageEmbedderOptions`. Note that th
HIGHmediapipe/tasks/python/vision/image_embedder.py268Creates the `ImageEmbedder` object from image embedder options. Args: options: Options for the image embedder
HIGHmediapipe/tasks/python/vision/image_embedder.py322Performs image embedding extraction on the provided MediaPipe Image. Extraction is performed on the region of inte
HIGHmediapipe/tasks/python/vision/image_embedder.py361Performs image embedding extraction on the provided video frames. Extraction is performed on the region of interest
HIGHmediapipe/tasks/python/vision/image_embedder.py467Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if
HIGHmediapipe/tasks/python/vision/face_detector.py195Creates an `FaceDetector` object from a TensorFlow Lite model and the default `FaceDetectorOptions`. Note that the
HIGHmediapipe/tasks/python/vision/face_detector.py220Creates the `FaceDetector` object from face detector options. Args: options: Options for the face detector ta
HIGHmediapipe/tasks/python/vision/face_detector.py281Performs face detection on the provided MediaPipe Image. Only use this method when the FaceDetector is created with
HIGHmediapipe/tasks/python/vision/face_detector.py325Performs face detection on the provided video frames. Only use this method when the FaceDetector is created with th
HIGHmediapipe/tasks/python/vision/core/image.py298Creates an `Image` object from an image file. Args: file_name: The path to the image file. Returns:
HIGHmediapipe/tasks/python/vision/core/image.py440Use the indexer operators to access pixel data. Args: key: A tuple of integers representing the row, column,
HIGHmediapipe/tasks/python/vision/core/image.py522Return True if each row of the data is aligned to alignment boundary, which must be 1 or a power of 2. Args:
HIGHmediapipe/tasks/python/audio/audio_classifier.py218Creates an `AudioClassifier` object from a TensorFlow Lite model and the default `AudioClassifierOptions`. Note tha
HIGHmediapipe/tasks/python/audio/audio_classifier.py245Creates the `AudioClassifier` object from audio classifier options. Args: options: Options for the audio clas
HIGHmediapipe/tasks/python/audio/audio_classifier.py299Performs audio classification on the provided audio clip. The audio clip is represented as a MediaPipe AudioData. T
HIGHmediapipe/tasks/python/audio/audio_classifier.py405Creates an AudioRecord instance to record audio stream. The returned AudioRecord instance is initialized and client
HIGHmediapipe/tasks/python/audio/core/audio_record.py108Reads the latest audio data captured in the buffer. Args: size: Number of samples to read from the buffer.
HIGHmediapipe/tasks/python/text/language_detector.py193Creates an `LanguageDetector` object from a TensorFlow Lite model and the default `LanguageDetectorOptions`. Args:
HIGHmediapipe/tasks/python/text/language_detector.py218Creates the `LanguageDetector` object from language detector options. Args: options: Options for the language
HIGHmediapipe/tasks/python/text/language_detector.py243Predicts the language of the input `text`. Args: text: The input text. Returns: A `LanguageDetecto
HIGHmediapipe/tasks/python/text/text_embedder.py212Creates an `TextEmbedder` object from a TensorFlow Lite model and the default `TextEmbedderOptions`. Args: mo
HIGHmediapipe/tasks/python/text/text_embedder.py232Creates the `TextEmbedder` object from text embedder options. Args: options: Options for the text embedder ta
HIGHmediapipe/tasks/python/text/text_embedder.py258Performs text embedding extraction on the provided text. Args: text: The input text. format_context: Op
HIGHmediapipe/tasks/python/text/text_embedder.py298Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if
HIGHmediapipe/tasks/python/text/text_classifier.py175Creates an `TextClassifier` object from a TensorFlow Lite model and the default `TextClassifierOptions`. Args:
41 more matches not shown…
Unused Imports218 hits · 206 pts
SeverityFileLineSnippet
LOWmediapipe/tasks/python/__init__.py17
LOWmediapipe/tasks/python/__init__.py18
LOWmediapipe/tasks/python/__init__.py20
LOWmediapipe/tasks/python/__init__.py21
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py17
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py18
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py19
LOW…test/metadata/metadata_writers/object_detector_test.py25
LOWmediapipe/util/sequence/media_sequence_test.py18
LOWmediapipe/util/sequence/media_sequence_test.py19
LOWmediapipe/util/sequence/media_sequence_test.py20
LOWmediapipe/util/sequence/media_sequence.py155
LOWmediapipe/util/sequence/media_sequence.py156
LOWmediapipe/util/sequence/media_sequence.py157
LOWmediapipe/util/sequence/media_sequence_util.py21
LOWmediapipe/util/sequence/media_sequence_util.py22
LOWmediapipe/util/sequence/media_sequence_util.py23
LOWmediapipe/util/sequence/media_sequence_util_test.py18
LOWmediapipe/util/sequence/media_sequence_util_test.py19
LOWmediapipe/util/sequence/media_sequence_util_test.py20
LOWmediapipe/python/solution_base.py43
LOWmediapipe/python/solution_base.py44
LOWmediapipe/python/solution_base.py45
LOWmediapipe/python/solution_base.py46
LOWmediapipe/python/solution_base.py47
LOWmediapipe/python/solution_base.py48
LOWmediapipe/python/solution_base.py49
LOWmediapipe/python/__init__.py17
LOWmediapipe/python/__init__.py18
LOWmediapipe/python/__init__.py19
LOWmediapipe/python/__init__.py20
LOWmediapipe/python/__init__.py21
LOWmediapipe/python/__init__.py22
LOWmediapipe/python/__init__.py23
LOWmediapipe/python/__init__.py24
LOWmediapipe/python/__init__.py25
LOWmediapipe/python/__init__.py26
LOWmediapipe/python/__init__.py27
LOWmediapipe/python/__init__.py28
LOWmediapipe/python/__init__.py29
LOWmediapipe/python/solutions/hands.py23
LOWmediapipe/python/solutions/hands.py24
LOWmediapipe/python/solutions/hands.py25
LOWmediapipe/python/solutions/hands.py26
LOWmediapipe/python/solutions/hands.py27
LOWmediapipe/python/solutions/hands.py28
LOWmediapipe/python/solutions/hands.py29
LOWmediapipe/python/solutions/hands.py30
LOWmediapipe/python/solutions/hands.py31
LOWmediapipe/python/solutions/hands.py32
LOWmediapipe/python/solutions/hands.py33
LOWmediapipe/python/solutions/hands.py34
LOWmediapipe/python/solutions/hands.py35
LOWmediapipe/python/solutions/hands.py36
LOWmediapipe/python/solutions/hands.py37
LOWmediapipe/python/solutions/hands.py41
LOWmediapipe/python/solutions/selfie_segmentation.py22
LOWmediapipe/python/solutions/selfie_segmentation.py23
LOWmediapipe/python/solutions/selfie_segmentation.py24
LOWmediapipe/python/solutions/selfie_segmentation.py25
158 more matches not shown…
Cross-File Repetition32 hits · 160 pts
SeverityFileLineSnippet
HIGHmediapipe/tasks/python/core/base_options.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…sks/python/components/processors/classifier_options.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…diapipe/tasks/python/components/containers/keypoint.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGHmediapipe/tasks/python/components/containers/rect.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…ipe/tasks/python/components/containers/bounding_box.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…apipe/tasks/python/components/containers/detections.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…apipe/tasks/python/components/containers/detections.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…diapipe/tasks/python/components/containers/category.py0checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py0shuts down the mediapipe task instance on exit of the context manager.
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0shuts down the mediapipe task instance on exit of the context manager.
HIGHmediapipe/tasks/python/vision/image_embedder.py0shuts down the mediapipe task instance on exit of the context manager.
HIGHmediapipe/tasks/python/text/text_embedder.py0shuts down the mediapipe task instance on exit of the context manager.
HIGHmediapipe/util/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/util/sequence/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/examples/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/examples/desktop/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/examples/desktop/media_sequence/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/examples/desktop/youtube8m/__init__.py0copyright 2019 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not use th
HIGHmediapipe/python/solution_base_test.py0input_stream: 'image_in' output_stream: 'image_out' node { calculator: 'imagetransformationcalculator' input_stream: 'im
HIGHmediapipe/python/solution_base_test.py0input_stream: 'image_in' output_stream: 'image_out' node { calculator: 'imagetransformationcalculator' input_stream: 'im
HIGHmediapipe/python/solution_base_test.py0input_stream: 'image_in' output_stream: 'image_out' node { calculator: 'imagetransformationcalculator' input_stream: 'im
HIGHmediapipe/python/calculator_graph_test.py0max_queue_size: 1 input_stream: 'in' output_stream: 'out' node { calculator: 'passthroughcalculator' input_stream: 'in'
HIGHmediapipe/python/calculator_graph_test.py0max_queue_size: 1 input_stream: 'in' output_stream: 'out' node { calculator: 'passthroughcalculator' input_stream: 'in'
HIGHmediapipe/python/calculator_graph_test.py0max_queue_size: 1 input_stream: 'in' output_stream: 'out' node { calculator: 'passthroughcalculator' input_stream: 'in'
HIGHmediapipe/python/calculator_graph_test.py0max_queue_size: 1 input_stream: 'in' output_stream: 'out' node { calculator: 'passthroughcalculator' input_stream: 'in'
HIGHmediapipe/python/calculator_graph_test.py0max_queue_size: 1 input_stream: 'in' output_stream: 'out' node { calculator: 'passthroughcalculator' input_stream: 'in'
HIGH…apipe/model_maker/python/core/tasks/classifier_test.py0a mock class with implementation of abstract methods for testing.
HIGH…ipe/model_maker/python/core/tasks/custom_model_test.py0a mock class with implementation of abstract methods for testing.
HIGH…e/model_maker/python/core/utils/loss_functions_test.py0a mock class with implementation of abstract methods for testing.
HIGH…iapipe/examples/desktop/media_sequence/demo_dataset.py0runs mediapipe over mediasequence tf.train.sequenceexamples. args: path_to_mediapipe_binary: path to the compiled binary
HIGH…pe/examples/desktop/media_sequence/kinetics_dataset.py0runs mediapipe over mediasequence tf.train.sequenceexamples. args: path_to_mediapipe_binary: path to the compiled binary
HIGH…pe/examples/desktop/media_sequence/charades_dataset.py0runs mediapipe over mediasequence tf.train.sequenceexamples. args: path_to_mediapipe_binary: path to the compiled binary
Self-Referential Comments47 hits · 148 pts
SeverityFileLineSnippet
MEDIUMsetup.py136 # Create an empty __init__.py file in the root directory.
MEDIUMsetup.py153 # Create an empty __init__.py file in the extension directory.
MEDIUMmediapipe/tasks/python/benchmark/vision/benchmark.py66 # Define a mapping of modes to their respective function argument lists
MEDIUM…/vision/image_classifier/image_classifier_benchmark.py38 # Initialize the image classifier
MEDIUM…rk/vision/object_detector/object_detector_benchmark.py38 # Initialize the object detector
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py69 # Create a model with two inputs and one output, which matches the metadata
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py103 # Create a model with two inputs and one output.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py432 # Create a model with two inputs and one output.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py496 # Create a dummy metadata without Subgraph.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py512 # Create a dummy metadata with no input tensor metadata, while the expected
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py533 # Create a dummy metadata with no output tensor metadata, while the expected
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py554 # Create a src model with metadata and two associated files.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py561 # Create a model to be populated with the metadata and files from
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py583 # Create a source model with two associated files but no metadata.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py589 # Create a model to be populated with the files from `src_model_buf`.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py623 # Create the tensor with process units.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py627 # Create the subgrah with the tensor.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py641 # Create a model metadata with the subgraph metadata
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py679 # Create the subgraph with process units.
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py694 # Create a model metadata with the subgraph metadata
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py481 # Create a dummy model using the tensor metadata.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py487 # Create the Flatbuffers object and convert it to the json format.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py497 # Create a dummy model using the tensor metadata.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py503 # Create the Flatbuffers object and convert it to the json format.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py521 # Create the Flatbuffers object and convert it to the json format.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py49 # Create the Flatbuffers object and convert it to the json format.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py75 # Create the Flatbuffers object and convert it to the json format.
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py312 # Create the Flatbuffers object and convert it to the json format.
MEDIUMmediapipe/tasks/python/vision/core/image.py324 # Create an empty Image object and then populate it.
MEDIUMmediapipe/tasks/python/vision/core/image.py359 # Create an empty Image object and then populate it.
MEDIUMmediapipe/tasks/python/audio/core/audio_record.py61 # Create a ring buffer to store the input audio.
MEDIUMmediapipe/tasks/python/audio/core/audio_record.py76 # Create an input stream to continuously capture the audio data.
MEDIUMmediapipe/tasks/python/metadata/metadata.py247 # Creating the deleting such a tempfile is handled by the class,
MEDIUMmediapipe/tasks/python/metadata/metadata.py907# Create an individual method for getting the metadata json file, so that it can
MEDIUM…ks/python/metadata/metadata_writers/object_detector.py99# Create an individual method for getting the metadata json file, so that it can
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py372 # Create the subgraph metadata.
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py387 # Create the whole model metadata.
MEDIUM…asks/python/metadata/metadata_writers/metadata_info.py264 # Create the RegexTokenizer.
MEDIUM…ks/python/metadata/metadata_writers/image_segmenter.py52# Create an individual method for getting the metadata json file, so that it can
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh151 # Create the temporary directory for the given framework.
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh169 # Create the parent folder which will hold the graph libraries of all architectures.
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh188 # Create the parent folder which will hold the genai libraries of all architectures.
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh210 # Create the framework archive directory.
MEDIUMmediapipe/python/solution_base.py376 # Create a NamedTuple object where the field names are mapping to the graph
MEDIUMmediapipe/model_maker/python/core/utils/file_util.py89 # Create the parent dir of absolute_path and copy the contents of the
MEDIUM…/model_maker/python/vision/image_classifier/dataset.py83 # Create a dataset if (image, label) pairs
MEDIUM…odel_maker/python/vision/gesture_recognizer/dataset.py243 # Create a dataset with (hand_embedding, one_hot_label) pairs
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippet
MEDIUMsetup_opencv.sh15# =========================================================================
MEDIUMsetup_android_sdk_and_ndk.sh15# =========================================================================
MEDIUMbuild_desktop_examples.sh15# =========================================================================
MEDIUMbuild_ios_examples.sh15# =========================================================================
MEDIUMbuild_android_examples.sh15# =========================================================================
MEDIUMdocs/build_java_api_docs.py14# ==============================================================================
MEDIUMdocs/build_py_api_docs.py14# ==============================================================================
MEDIUMdocs/build_model_maker_api_docs.py14# ==============================================================================
MEDIUM…ipe/tasks/python/test/metadata/metadata_parser_test.py14# ==============================================================================
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py14# ==============================================================================
MEDIUM…est/metadata/metadata_writers/image_classifier_test.py14# ==============================================================================
MEDIUM…n/test/metadata/metadata_writers/face_stylizer_test.py14# ==============================================================================
MEDIUM…data/metadata_writers/model_asset_bundle_utils_test.py14# ==============================================================================
MEDIUM…test/metadata/metadata_writers/metadata_writer_test.py14# ==============================================================================
MEDIUM…test/metadata/metadata_writers/image_segmenter_test.py14# ==============================================================================
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py14# ==============================================================================
MEDIUM…test/metadata/metadata_writers/text_classifier_test.py14# ==============================================================================
MEDIUM…test/metadata/metadata_writers/object_detector_test.py14# ==============================================================================
MEDIUMmediapipe/tasks/python/metadata/metadata.py14# ==============================================================================
MEDIUM…iapipe/tasks/python/metadata/metadata_displayer_cli.py14# ==============================================================================
MEDIUM…s/python/metadata/metadata_writers/image_classifier.py14# ==============================================================================
MEDIUM…ks/python/metadata/metadata_writers/object_detector.py14# ==============================================================================
MEDIUM…/metadata/metadata_writers/model_asset_bundle_utils.py14# ==============================================================================
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py14# ==============================================================================
MEDIUM…asks/python/metadata/metadata_writers/metadata_info.py14# ==============================================================================
MEDIUM…ks/python/metadata/metadata_writers/text_classifier.py14# ==============================================================================
MEDIUM…ks/python/metadata/metadata_writers/image_segmenter.py14# ==============================================================================
MEDIUM…tasks/python/metadata/metadata_writers/writer_utils.py14# ==============================================================================
MEDIUMmediapipe/model_maker/python/core/data/data_util.py14# ==============================================================================
MEDIUM…/model_maker/python/vision/core/image_preprocessing.py14# ==============================================================================
MEDIUMmediapipe/model_maker/python/vision/core/image_utils.py14# ==============================================================================
MEDIUM…er/python/vision/gesture_recognizer/metadata_writer.py14# ==============================================================================
MEDIUM…thon/vision/gesture_recognizer/metadata_writer_test.py14# ==============================================================================
MEDIUM…odel_maker/python/text/text_classifier/preprocessor.py14# ==============================================================================
MEDIUM.github/bot_config.yml14# ============================================================================
MEDIUM.github/workflows/stale.yaml14# ==============================================================================
AI Slop Vocabulary16 hits · 51 pts
SeverityFileLineSnippet
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py342 # Performs holistic landmarks detection on the input.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py361 # Performs holistic landmarks detection on the input.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py266 # Creates holistic landmarker.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py287 # Performs holistic landmarks detection on the input.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py296 # Closes the holistic landmarker explicitly when the holistic landmarker is
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py321 # Creates holistic landmarker.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py469 # Creates holistic landmarker.
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py483 # Performs holistic landmarks detection on the input.
MEDIUMmediapipe/gpu/gl_calculator_helper.h223// calculator. This is the preferred way to utilize the memory pool inside of
MEDIUMmediapipe/util/tracking/motion_analysis.h16// locally filtered (robust) feature tracking, camera motion estimation, and
MEDIUMmediapipe/util/tracking/motion_estimation.h374 // Replace each features irls weight by robust min-filtered irls weight
MEDIUMmediapipe/framework/deps/status_macros.h21// with the goal of having a single, consistent, and robust implementation.
MEDIUMmediapipe/web/graph_runner/graph_runner_webgpu.ts88 // Our inference engines can utilize the adapter info to optimize WebGPU
MEDIUM…maker/python/vision/object_detector/object_detector.py169 # TODO: Refactor this method to utilize shared training function
MEDIUM…sktop/autoflip/calculators/scene_cropping_calculator.h62// target aspect ratio, padding will be applied. In this case, a seamless
MEDIUMmediapipe/calculators/tensor/tensor_span.h26// *without* making any deep-copies or keeping any memory alive. Essentially
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippet
CRITICAL…pipe/tasks/vision/facedetector/FaceDetectorResult.java44 com.google.mediapipe.tasks.components.containers.Detection.createFromProto(
CRITICAL…/vision/gesturerecognizer/GestureRecognizerResult.java60 com.google.mediapipe.tasks.components.containers.NormalizedLandmark.create(
CRITICAL…/vision/gesturerecognizer/GestureRecognizerResult.java71 com.google.mediapipe.tasks.components.containers.Landmark.create(
CRITICAL…/tasks/vision/objectdetector/ObjectDetectorResult.java38 com.google.mediapipe.tasks.components.containers.Detection.createFromProto(
Example Usage Blocks26 hits · 39 pts
SeverityFileLineSnippet
LOW…cognizer/calculators/handedness_to_matrix_calculator.h38// Usage example:
LOW…ecognizer/calculators/landmarks_to_matrix_calculator.h35// Usage example:
LOW…ecognizer/calculators/combined_prediction_calculator.h37// Usage example:
LOW…enter/calculators/tensors_to_segmentation_calculator.h40// Usage example:
LOW…s/cc/components/processors/image_preprocessing_graph.h34// Example usage:
LOW…components/processors/detection_postprocessing_graph.h31// Example usage:
LOW…nents/processors/classification_postprocessing_graph.h34// Example usage:
LOW…ks/cc/components/processors/text_preprocessing_graph.h32// Example usage:
LOW…components/processors/embedding_postprocessing_graph.h33// Example usage:
LOWmediapipe/gpu/gl_app_texture_support.h41// Usage example:
LOWmediapipe/gpu/gl_app_texture_support.h86// Usage example:
LOWmediapipe/util/annotation_renderer.h28// Example usage:
LOWmediapipe/util/tracking/region_flow.h381// Usage example:
LOWmediapipe/util/tracking/motion_analysis.h21// Usage example:
LOWmediapipe/util/tracking/tracking.h267// Example usage:
LOWmediapipe/framework/memory_manager.h33// Example usage:
LOWmediapipe/framework/packet.h176 // Example usage:
LOWmediapipe/framework/deps/requires.h26// Example usage:
LOWmediapipe/framework/deps/registration_token.h30// Example usage:
LOWmediapipe/framework/deps/mathutil.h47 // Example usage:
LOWmediapipe/framework/tool/sink.h68// Example usage:
LOW…esktop/autoflip/quality/scene_camera_motion_analyzer.h41// Example usage:
LOW…pipe/examples/desktop/autoflip/quality/scene_cropper.h40// Example usage:
LOW…iapipe/calculators/util/filter_collection_calculator.h34// Example usage:
LOWmediapipe/calculators/image/warp_affine_calculator.h57// Usage example:
LOW…alculators/tensor/tensors_to_segmentation_calculator.h41// Usage example:
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippet
LOWmediapipe/tasks/python/core/mediapipe_c_utils.py169
LOWmediapipe/tasks/python/test/test_utils.py121
LOW…ks/python/metadata/metadata_writers/metadata_writer.py776
LOW…asks/python/metadata/metadata_writers/metadata_info.py411
LOWmediapipe/python/solution_base.py109
LOWmediapipe/python/solution_base.py300
LOWmediapipe/python/solution_base.py468
LOWmediapipe/python/solution_base.py490
LOWmediapipe/python/solutions/face_mesh_test.py133
LOWmediapipe/python/solutions/hands_test.py131
LOWmediapipe/model_maker/python/core/utils/hub_loader.py45
LOWmediapipe/model_maker/python/core/utils/file_util.py47
LOW…ker/python/vision/image_classifier/image_classifier.py39
LOW…ython/vision/image_classifier/image_classifier_demo.py55
LOW…l_maker/python/text/text_classifier/text_classifier.py579
LOW…iapipe/examples/desktop/media_sequence/demo_dataset.py175
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py224
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py286
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py329
LOW…pe/examples/desktop/media_sequence/charades_dataset.py245
LOW…pe/examples/desktop/media_sequence/charades_dataset.py291
LOWmediapipe/examples/desktop/youtube8m/viewer/server.py101
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippet
LOWmediapipe/tasks/python/benchmark/vision/benchmark.py72 # Check if the mode is supported and get the argument dictionary
LOW…ython/test/vision/interactive_segmenter_legacy_test.py228 # Check if data type of `category_mask` is correct.
LOW…ython/test/vision/interactive_segmenter_legacy_test.py281 # Check if confidence mask shape is correct.
LOW…ython/test/vision/interactive_segmenter_legacy_test.py320 # Check if confidence mask shape is correct.
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py208 # Check if data type of `category_mask` is correct.
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py243 # Check if confidence mask shape is correct.
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py381 # Check if confidence mask shape is correct.
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py492 # Check if confidence mask shape is correct.
LOWmediapipe/tasks/python/test/metadata/metadata_test.py277 # Check if the model buffer read from file is the same as that read from
LOWmediapipe/tasks/python/test/metadata/metadata_test.py331 # Check if the model buffer read from file is the same as that read from
LOWmediapipe/tasks/python/metadata/metadata.py657 # Check if metadata has already been populated.
LOWmediapipe/tasks/python/metadata/metadata.py712 # Verify if the number of tensor metadata matches the number of tensors.
Excessive Try-Catch Wrapping7 hits · 9 pts
SeverityFileLineSnippet
LOWmediapipe/tasks/python/core/async_result_dispatcher.py161 except Exception as e: # pylint: disable=broad-except
LOWmediapipe/tasks/python/core/async_result_dispatcher.py173 except Exception as e: # pylint: disable=broad-except
LOWmediapipe/tasks/python/metadata/metadata.py149 except Exception:
LOWmediapipe/tasks/python/metadata/metadata.py163 except Exception as e:
LOWmediapipe/examples/ios/link_local_profiles.py88 except Exception: # pylint: disable=broad-except
MEDIUMmediapipe/examples/ios/link_local_profiles.py159 print("Error: Unable to find any provisioning profiles " +
MEDIUMmediapipe/examples/ios/link_local_profiles.py82def get_app_id(profile_path) -> Optional[str]:
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHmediapipe/util/tracking/region_flow.h451 // track with a direction as requested by the flow direction of the
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOW…e/tasks/web/genai/llm_inference/model_loading_utils.ts50 // cancel() may be called at any time, so we need to check if this