AI Slop Code RIsk Monitor

google-ai-edge/mediapipe

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

12.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google-ai-edge/mediapipe, a C++ project with 37,215 GitHub stars. SynthScan examined 390,572 lines of code across 2161 source files, recording 3773 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 12.5 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

12.5
Adjusted Signal
12.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
37.2K
Stars
C++
Language
390.6K
Lines of Code
2.2K
Files
3.8K
Pattern Hits
2026-10-12
Scan Date
0.10
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 40.3/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3405 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.6/100 · LOW

Are imports declared and package/API names verified? 234 finding(s).

Agent Over-Engineering Ratio 14.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 742 finding(s).

PR Review Velocity Impact 47.6/100 · MEDIUM

Which changes need focused human review? 3773 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 7HIGH 203MEDIUM 102LOW 3461

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3773 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block2551 hits · 2520 pts
SeverityFileLineSnippetContext
LOWsetup_opencv.sh1#!/bin/bashCOMMENT
LOWsetup_android_sdk_and_ndk.sh1#!/bin/bashCOMMENT
LOWrequirements_lock_3_14.txt1#COMMENT
LOWrequirements_lock_3_14.txt21kiwisolver==1.5.1COMMENT
LOWbuild_desktop_examples.sh1#!/bin/bashCOMMENT
LOWrequirements_lock_3_13.txt1#COMMENT
LOWrequirements_lock_3_13.txt21kiwisolver==1.5.1COMMENT
LOWrequirements_lock_3_12.txt1#COMMENT
LOWrequirements_lock_3_12.txt21jax==0.4.30COMMENT
LOWrequirements_lock_3_12.txt41 # matplotlibCOMMENT
LOWrequirements_lock_3_12.txt61scipy==1.13.1COMMENT
LOWrequirements_lock_3_10.txt1#COMMENT
LOWrequirements_lock_3_10.txt21jax==0.4.30COMMENT
LOWrequirements_lock_3_10.txt41 # matplotlibCOMMENT
LOWrequirements_lock_3_10.txt61scipy==1.13.1COMMENT
LOWrequirements_lock.txt1#COMMENT
LOWrequirements_lock.txt21importlib-metadata==8.5.0COMMENT
LOWrequirements_lock.txt41 # -r mediapipe/opensource_only/requirements.txtCOMMENT
LOWrequirements_lock.txt61pyparsing==3.1.4COMMENT
LOWrequirements_lock_3_11.txt1#COMMENT
LOWrequirements_lock_3_11.txt21jax==0.4.30COMMENT
LOWrequirements_lock_3_11.txt41 # matplotlibCOMMENT
LOWrequirements_lock_3_11.txt61scipy==1.13.1COMMENT
LOWbuild_ios_examples.sh1#!/bin/bashCOMMENT
LOWbuild_android_examples.sh1#!/bin/bashCOMMENT
LOWdocs/build_java_api_docs.py1# Copyright 2022 The MediaPipe Authors.COMMENT
LOWdocs/build_py_api_docs.py1# Copyright 2022 The MediaPipe Authors.COMMENT
LOWdocs/build_model_maker_api_docs.py1# Copyright 2022 The MediaPipe Authors.COMMENT
LOW…asksDocGen/MediaPipeTasksDocGen/MediaPipeTasksDocGen.h1//COMMENT
LOWdocs/framework_concepts/calculators.md361#include <vector>COMMENT
LOWdocs/getting_started/install.md521 ```bashCOMMENT
LOWdocs/getting_started/install.md641COMMENT
LOWdocs/getting_started/install.md761 # Should print:COMMENT
LOWdocs/getting_started/install.md801 # ---> f5d5f402071bCOMMENT
LOWmediapipe/__init__.py1# Copyright 2019 - 2022 The MediaPipe Authors.COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29601collarboneCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29621##)COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29641##{COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29661##¶COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29681##ɕCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29701##ʌCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29721##βCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29741##бCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29761##іCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29781##պCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29801##םCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29821##حCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29841##چCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29861##थCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29881##।COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29901##দCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29921##டCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29941##යCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29961##་COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt29981##თCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30001##ᄌCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30021##ᆨCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30041##ᵖCOMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30061##„COMMENT
LOWmediapipe/tasks/testdata/text/mobilebert_vocab.txt30081##ⁿCOMMENT
2491 more matches not shown…
Hyper-Verbose Identifiers598 hits · 639 pts
SeverityFileLineSnippetContext
LOWsetup.py115def _modify_opencv_cmake_rule(link_opencv):CODE
LOWmediapipe/tasks/python/core/mediapipe_c_bindings.py90def convert_strings_to_ctypes_array(CODE
LOWmediapipe/tasks/python/test/core/base_options_test.py23 def test_convert_to_ctypes_with_model_asset_path(self):CODE
LOWmediapipe/tasks/python/test/core/base_options_test.py34 def test_convert_to_ctypes_with_model_asset_buffer(self):CODE
LOWmediapipe/tasks/python/test/core/base_options_test.py45 def test_convert_to_ctypes_with_gpu_delegate(self):CODE
LOWmediapipe/tasks/python/test/core/base_options_test.py57 def test_convert_to_ctypes_without_delegate(self):CODE
LOW⚡…apipe/tasks/python/test/core/serial_dispatcher_test.py40 def test_delegates_to_registered_methods(self):CODE
LOW⚡…apipe/tasks/python/test/core/serial_dispatcher_test.py48 def test_method_calls_are_serialized(self):CODE
LOW⚡…apipe/tasks/python/test/core/serial_dispatcher_test.py57 def side_effect_long_running_func():CODE
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py86 def test_method_calls_are_invoked_from_same_thread(self):CODE
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py129 def test_continues_after_error(self):CODE
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py148 def test_calls_after_close_are_not_dispatched(self):CODE
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py160 def test_calls_status_functions_with_error_argument(self):CODE
LOW…apipe/tasks/python/test/core/serial_dispatcher_test.py188 def test_uses_error_message_for_status_functions(self, error_message):CODE
LOW…apipe/tasks/python/test/core/mediapipe_c_utils_test.py81 def test_handle_status_raises_correct_errors(CODE
LOW…tasks/python/test/core/async_result_dispatcher_test.py39 def test_throws_error_if_callback_already_set(self):CODE
LOW…tasks/python/test/core/async_result_dispatcher_test.py47 def test_callback_invoked_with_converted_data(self):CODE
LOW…tasks/python/test/core/async_result_dispatcher_test.py58 def test_exception_in_callback_does_not_block_dispatcher(self):CODE
LOW…tasks/python/test/core/async_result_dispatcher_test.py85 def test_calls_callbck_in_separate_thread(self):CODE
LOW…tasks/python/test/core/async_result_dispatcher_test.py108 def test_ignores_calls_after_close(self):CODE
LOW⚡…ython/test/vision/interactive_segmenter_legacy_test.py130 def test_create_from_file_succeeds_with_valid_model_path(self):CODE
LOW⚡…ython/test/vision/interactive_segmenter_legacy_test.py137 def test_create_from_options_succeeds_with_valid_model_path(self):CODE
LOW⚡…ython/test/vision/interactive_segmenter_legacy_test.py144 def test_create_from_options_fails_with_invalid_model_path(self):CODE
LOW…ython/test/vision/interactive_segmenter_legacy_test.py156 def test_create_from_options_succeeds_with_valid_model_content(self):CODE
LOW…ython/test/vision/interactive_segmenter_legacy_test.py195 def test_segment_succeeds_with_category_mask(CODE
LOW…ython/test/vision/interactive_segmenter_legacy_test.py262 def test_segment_succeeds_with_confidence_mask(CODE
LOW…ython/test/vision/interactive_segmenter_legacy_test.py297 def test_segment_succeeds_with_rotation(self):CODE
LOW…ython/test/vision/interactive_segmenter_legacy_test.py327 def test_segment_fails_with_roi_in_image_processing_options(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py92 def test_create_from_file_succeeds_with_valid_model_path(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py97 def test_create_from_options_succeeds_with_valid_model_path(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py104 def test_create_from_options_fails_with_invalid_model_path(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py318 def test_calling_detect_for_video_in_image_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py327 def test_calling_detect_async_in_image_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py336 def test_calling_detect_in_video_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py345 def test_calling_detect_async_in_video_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py354 def test_detect_for_video_succeeds_with_full_range_model(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py457 def test_calling_detect_in_live_stream_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py467 def test_calling_detect_for_video_in_live_stream_mode(self):CODE
LOW⚡…diapipe/tasks/python/test/vision/face_detector_test.py477 def test_detect_async_calls_with_illegal_timestamp(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py60def _get_expected_face_detector_result(file_name: str) -> FaceDetectorResult:CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py116 def test_create_from_options_succeeds_with_valid_model_content(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py125 def _expect_keypoints_correct(self, actual_keypoints, expected_keypoints):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py139 def _expect_bounding_box_correct(self, actual_bbox, expected_bbox):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py161 def _expect_face_detector_results_correct(CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py238 def test_detect_succeeds_with_full_range_model(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py259 def test_detect_succeeds_with_rotated_image(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py281 def test_empty_detection_outputs(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py294 def test_missing_result_callback(self):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py306 def test_illegal_result_callback(self, running_mode):CODE
LOW…diapipe/tasks/python/test/vision/face_detector_test.py372 def test_detect_for_video_with_out_of_order_timestamp(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py165 def test_create_from_file_succeeds_with_valid_model_path(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py170 def test_create_from_options_succeeds_with_valid_model_path(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py177 def test_create_from_options_fails_with_invalid_model_path(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py476 def test_calling_classify_for_video_in_image_mode(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py485 def test_calling_classify_async_in_image_mode(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py494 def test_calling_classify_in_video_mode(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py503 def test_calling_classify_async_in_video_mode(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py512 def test_classify_for_video_with_out_of_order_timestamp(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py561 def test_calling_classify_in_live_stream_mode(self):CODE
LOW⚡…pipe/tasks/python/test/vision/image_classifier_test.py571 def test_calling_classify_for_video_in_live_stream_mode(self):CODE
538 more matches not shown…
Docstring Block Structure113 hits · 565 pts
SeverityFileLineSnippetContext
HIGHmediapipe/tasks/python/vision/image_classifier.py243Creates an `ImageClassifier` object from a TensorFlow Lite model and the default `ImageClassifierOptions`. Note thaSTRING
HIGHmediapipe/tasks/python/vision/image_classifier.py270Creates the `ImageClassifier` object from image classifier options. Args: options: Options for the image clasSTRING
HIGHmediapipe/tasks/python/vision/image_classifier.py335Performs image classification on the provided MediaPipe Image. Only use this method when the ImageClassifier is creSTRING
HIGHmediapipe/tasks/python/vision/image_classifier.py375Performs image classification on the provided video frames. Only use this method when the ImageClassifier is createSTRING
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py234Creates an `InteractiveSegmenterLegacy` object from a TensorFlow Lite model and the default `InteractiveSegmenterLegacyOSTRING
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py262Creates the `InteractiveSegmenterLegacy` object from interactive segmenter options. Args: options: Options foSTRING
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 RGBSTRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py364Creates a `PoseLandmarker` object from a model bundle file and the default `PoseLandmarkerOptions`. Note that the cSTRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py391Creates the `PoseLandmarker` object from pose landmarker options. Args: options: Options for the pose landmarSTRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py449Performs pose landmarks detection on the given image. Only use this method when the PoseLandmarker is created with STRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py490Performs pose landmarks detection on the provided video frame. Only use this method when the PoseLandmarker is creaSTRING
HIGHmediapipe/tasks/python/vision/object_detector.py283Creates an `ObjectDetector` object from a TensorFlow Lite model and the default `ObjectDetectorOptions`. Note that STRING
HIGHmediapipe/tasks/python/vision/object_detector.py310Creates the `ObjectDetector` object from object detector options. Args: options: Options for the object detecSTRING
HIGHmediapipe/tasks/python/vision/object_detector.py374Performs object detection on the provided MediaPipe Image. Only use this method when the ObjectDetector is created STRING
HIGHmediapipe/tasks/python/vision/object_detector.py419Performs object detection on the provided video frames. Only use this method when the ObjectDetector is created witSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py3113Creates an `FaceLandmarker` object from a TensorFlow Lite model and the default `FaceLandmarkerOptions`. Note that STRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py3140Creates the `FaceLandmarker` object from face landmarker options. Args: options: Options for the face landmarSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py3198Performs face landmark detection on the provided MediaPipe Image. Only use this method when the FaceLandmarker is cSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py3240Performs face landmarks detection on the provided video frame. Only use this method when the FaceLandmarker is creaSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py245Creates an `GestureRecognizer` object from a TensorFlow Lite model and the default `GestureRecognizerOptions`. NoteSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py272Creates the `GestureRecognizer` object from gesture recognizer options. Args: options: Options for the gesturSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py341Performs hand gesture recognition on the given image. Only use this method when the GestureRecognizer is created wiSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py385Performs gesture recognition on the provided video frame. Only use this method when the GestureRecognizer is createSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py360Creates an `HolisticLandmarker` object from a TensorFlow Lite model and the default `HolisticLandmarkerOptions`. NoSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py387Creates the `HolisticLandmarker` object from holistic landmarker options. Args: options: Options for the holiSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py446Performs holistic landmarks detection on the given image. Only use this method when the HolisticLandmarker is creatSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py489Performs holistic landmarks detection on the provided video frame. Only use this method when the HolisticLandmarkerSTRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py360Creates an `HandLandmarker` object from a TensorFlow Lite model and the default `HandLandmarkerOptions`. Note that STRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py387Creates the `HandLandmarker` object from hand landmarker options. Args: options: Options for the hand landmarSTRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py447Performs hand landmarks detection on the given image. Only use this method when the HandLandmarker is created with STRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py492Performs hand landmarks detection on the provided video frame. Only use this method when the HandLandmarker is creaSTRING
HIGHmediapipe/tasks/python/vision/image_segmenter.py285Creates an `ImageSegmenter` object from a TensorFlow Lite model and the default `ImageSegmenterOptions`. Note that STRING
HIGHmediapipe/tasks/python/vision/image_segmenter.py312Creates the `ImageSegmenter` object from image segmenter options. Args: options: Options for the image segmenSTRING
HIGHmediapipe/tasks/python/vision/image_segmenter.py370Performs the actual segmentation task on the provided MediaPipe Image. Args: image: MediaPipe Image. imSTRING
HIGHmediapipe/tasks/python/vision/image_segmenter.py410Performs segmentation on the provided video frames. Only use this method when the ImageSegmenter is created with thSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py241Creates an `ImageEmbedder` object from a TensorFlow Lite model and the default `ImageEmbedderOptions`. Note that thSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py268Creates the `ImageEmbedder` object from image embedder options. Args: options: Options for the image embedderSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py322Performs image embedding extraction on the provided MediaPipe Image. Extraction is performed on the region of inteSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py361Performs image embedding extraction on the provided video frames. Extraction is performed on the region of interestSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py467Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if STRING
HIGHmediapipe/tasks/python/vision/face_detector.py195Creates an `FaceDetector` object from a TensorFlow Lite model and the default `FaceDetectorOptions`. Note that the STRING
HIGHmediapipe/tasks/python/vision/face_detector.py220Creates the `FaceDetector` object from face detector options. Args: options: Options for the face detector taSTRING
HIGHmediapipe/tasks/python/vision/face_detector.py281Performs face detection on the provided MediaPipe Image. Only use this method when the FaceDetector is created withSTRING
HIGHmediapipe/tasks/python/vision/face_detector.py325Performs face detection on the provided video frames. Only use this method when the FaceDetector is created with thSTRING
HIGHmediapipe/tasks/python/vision/core/image.py298Creates an `Image` object from an image file. Args: file_name: The path to the image file. Returns: STRING
HIGHmediapipe/tasks/python/vision/core/image.py440Use the indexer operators to access pixel data. Args: key: A tuple of integers representing the row, column, STRING
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: STRING
HIGHmediapipe/tasks/python/audio/audio_embedder.py153Creates an `AudioEmbedder` object from a .litertlm model and the default `AudioEmbedderOptions`. Args: model_STRING
HIGHmediapipe/tasks/python/audio/audio_embedder.py175Creates the `AudioEmbedder` object from audio embedder options. Args: options: Options for the audio embedderSTRING
HIGHmediapipe/tasks/python/audio/audio_embedder.py208Performs embedding extraction on the provided audio clips. The audio clip is represented as a MediaPipe AudioData. STRING
HIGHmediapipe/tasks/python/audio/audio_embedder.py245Creates an AudioRecord instance to record audio stream. The returned AudioRecord instance is initialized and clientSTRING
HIGHmediapipe/tasks/python/audio/audio_embedder.py282Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if STRING
HIGHmediapipe/tasks/python/audio/audio_classifier.py218Creates an `AudioClassifier` object from a TensorFlow Lite model and the default `AudioClassifierOptions`. Note thaSTRING
HIGHmediapipe/tasks/python/audio/audio_classifier.py245Creates the `AudioClassifier` object from audio classifier options. Args: options: Options for the audio clasSTRING
HIGHmediapipe/tasks/python/audio/audio_classifier.py299Performs audio classification on the provided audio clip. The audio clip is represented as a MediaPipe AudioData. TSTRING
HIGHmediapipe/tasks/python/audio/audio_classifier.py405Creates an AudioRecord instance to record audio stream. The returned AudioRecord instance is initialized and clientSTRING
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. STRING
HIGHmediapipe/tasks/python/retrieval/universal_embedder.py208Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if STRING
HIGHmediapipe/tasks/python/text/text_summarizer.py209Creates a `TextSummarizer` object from model path. Args: model_path: Path to the model. Returns: `STRING
HIGHmediapipe/tasks/python/text/text_summarizer.py231Creates the `TextSummarizer` object from text summarizer options. Args: options: Options for the text summariSTRING
53 more matches not shown…
Cross-File Repetition86 hits · 430 pts
SeverityFileLineSnippetContext
HIGHsetup.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/tasks/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/tasks/python/vision/core/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGH…diapipe/tasks/python/benchmark/vision/core/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/tasks/python/audio/core/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/util/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/util/sequence/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/examples/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/examples/desktop/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/examples/desktop/media_sequence/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/examples/desktop/youtube8m/__init__.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/util/sequence/media_sequence_test.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/util/sequence/media_sequence_util_test.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGHmediapipe/model_maker/setup.py0copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not uSTRING
HIGH…chmark/vision/face_detector/face_detector_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…/vision/image_classifier/image_classifier_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…rk/vision/object_detector/object_detector_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…rk/vision/pose_landmarker/pose_landmarker_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…rk/vision/face_landmarker/face_landmarker_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…mark/vision/image_embedder/image_embedder_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…rk/vision/image_segmenter/image_segmenter_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
HIGH…rk/vision/hand_landmarker/hand_landmarker_benchmark.py0run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run STRING
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 obSTRING
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 obSTRING
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 obSTRING
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 obSTRING
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 obSTRING
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 obSTRING
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 obSTRING
HIGHmediapipe/tasks/python/vision/image_classifier.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/object_detector.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/image_segmenter.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/image_embedder.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/face_detector.py0creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the cSTRING
HIGHmediapipe/tasks/python/vision/interactive_segmenter.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGH…pe/tasks/python/vision/interactive_segmenter_legacy.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/vision/image_embedder.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/text/text_summarizer.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/text/text_proofreader.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/text/text_embedder.py0shuts down the mediapipe task instance on exit of the context manager.STRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/object_detector.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/face_detector.py0initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to thSTRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py0performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created wSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py0performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created wSTRING
HIGHmediapipe/tasks/python/vision/gesture_recognizer.py0performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created wSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created wSTRING
HIGHmediapipe/tasks/python/vision/hand_landmarker.py0performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created wSTRING
HIGHmediapipe/tasks/python/vision/pose_landmarker.py0sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" proviSTRING
HIGHmediapipe/tasks/python/vision/face_landmarker.py0sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" proviSTRING
HIGHmediapipe/tasks/python/vision/holistic_landmarker.py0sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" proviSTRING
26 more matches not shown…
Unused Imports222 hits · 210 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/python/__init__.py17CODE
LOWmediapipe/tasks/python/__init__.py18CODE
LOWmediapipe/tasks/python/__init__.py20CODE
LOWmediapipe/tasks/python/__init__.py21CODE
LOWmediapipe/tasks/python/__init__.py22CODE
LOWmediapipe/tasks/python/__init__.py23CODE
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py17CODE
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py18CODE
LOW…ipe/tasks/python/test/metadata/metadata_parser_test.py19CODE
LOW…test/metadata/metadata_writers/object_detector_test.py25CODE
LOWmediapipe/tasks/python/vision/interactive_segmenter.py16CODE
LOWmediapipe/util/sequence/media_sequence_test.py18CODE
LOWmediapipe/util/sequence/media_sequence_test.py19CODE
LOWmediapipe/util/sequence/media_sequence_test.py20CODE
LOWmediapipe/util/sequence/media_sequence.py155CODE
LOWmediapipe/util/sequence/media_sequence.py156CODE
LOWmediapipe/util/sequence/media_sequence.py157CODE
LOWmediapipe/util/sequence/media_sequence_util.py21CODE
LOWmediapipe/util/sequence/media_sequence_util.py22CODE
LOWmediapipe/util/sequence/media_sequence_util.py23CODE
LOWmediapipe/util/sequence/media_sequence_util_test.py18CODE
LOWmediapipe/util/sequence/media_sequence_util_test.py19CODE
LOWmediapipe/util/sequence/media_sequence_util_test.py20CODE
LOWmediapipe/python/solution_base.py43CODE
LOWmediapipe/python/solution_base.py44CODE
LOWmediapipe/python/solution_base.py45CODE
LOWmediapipe/python/solution_base.py46CODE
LOWmediapipe/python/solution_base.py47CODE
LOWmediapipe/python/solution_base.py48CODE
LOWmediapipe/python/solution_base.py49CODE
LOWmediapipe/python/__init__.py17CODE
LOWmediapipe/python/__init__.py18CODE
LOWmediapipe/python/__init__.py19CODE
LOWmediapipe/python/__init__.py20CODE
LOWmediapipe/python/__init__.py21CODE
LOWmediapipe/python/__init__.py22CODE
LOWmediapipe/python/__init__.py23CODE
LOWmediapipe/python/__init__.py24CODE
LOWmediapipe/python/__init__.py25CODE
LOWmediapipe/python/__init__.py26CODE
LOWmediapipe/python/__init__.py27CODE
LOWmediapipe/python/__init__.py28CODE
LOWmediapipe/python/__init__.py29CODE
LOWmediapipe/python/solutions/hands.py23CODE
LOWmediapipe/python/solutions/hands.py24CODE
LOWmediapipe/python/solutions/hands.py25CODE
LOWmediapipe/python/solutions/hands.py26CODE
LOWmediapipe/python/solutions/hands.py27CODE
LOWmediapipe/python/solutions/hands.py28CODE
LOWmediapipe/python/solutions/hands.py29CODE
LOWmediapipe/python/solutions/hands.py30CODE
LOWmediapipe/python/solutions/hands.py31CODE
LOWmediapipe/python/solutions/hands.py32CODE
LOWmediapipe/python/solutions/hands.py33CODE
LOWmediapipe/python/solutions/hands.py34CODE
LOWmediapipe/python/solutions/hands.py35CODE
LOWmediapipe/python/solutions/hands.py36CODE
LOWmediapipe/python/solutions/hands.py37CODE
LOWmediapipe/python/solutions/hands.py41CODE
LOWmediapipe/python/solutions/selfie_segmentation.py22CODE
162 more matches not shown…
Self-Referential Comments47 hits · 148 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py136 # Create an empty __init__.py file in the root directory.COMMENT
MEDIUMsetup.py153 # Create an empty __init__.py file in the extension directory.COMMENT
MEDIUMmediapipe/tasks/python/benchmark/vision/benchmark.py66 # Define a mapping of modes to their respective function argument listsCOMMENT
MEDIUM…/vision/image_classifier/image_classifier_benchmark.py38 # Initialize the image classifierCOMMENT
MEDIUM…rk/vision/object_detector/object_detector_benchmark.py38 # Initialize the object detectorCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py69 # Create a model with two inputs and one output, which matches the metadataCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py103 # Create a model with two inputs and one output.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py432 # Create a model with two inputs and one output.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py496 # Create a dummy metadata without Subgraph.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py512 # Create a dummy metadata with no input tensor metadata, while the expectedCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py533 # Create a dummy metadata with no output tensor metadata, while the expectedCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py554 # Create a src model with metadata and two associated files.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py561 # Create a model to be populated with the metadata and files fromCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py583 # Create a source model with two associated files but no metadata.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py589 # Create a model to be populated with the files from `src_model_buf`.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py623 # Create the tensor with process units.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py627 # Create the subgrah with the tensor.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py641 # Create a model metadata with the subgraph metadataCOMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py679 # Create the subgraph with process units.COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py694 # Create a model metadata with the subgraph metadataCOMMENT
MEDIUM⚡…n/test/metadata/metadata_writers/metadata_info_test.py481 # Create a dummy model using the tensor metadata.COMMENT
MEDIUM⚡…n/test/metadata/metadata_writers/metadata_info_test.py487 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM⚡…n/test/metadata/metadata_writers/metadata_info_test.py497 # Create a dummy model using the tensor metadata.COMMENT
MEDIUM⚡…n/test/metadata/metadata_writers/metadata_info_test.py503 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM⚡…n/test/metadata/metadata_writers/metadata_info_test.py521 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py49 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py75 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py312 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUMmediapipe/tasks/python/vision/core/image.py324 # Create an empty Image object and then populate it.COMMENT
MEDIUMmediapipe/tasks/python/vision/core/image.py359 # Create an empty Image object and then populate it.COMMENT
MEDIUMmediapipe/tasks/python/audio/core/audio_record.py61 # Create a ring buffer to store the input audio.COMMENT
MEDIUMmediapipe/tasks/python/audio/core/audio_record.py76 # Create an input stream to continuously capture the audio data.COMMENT
MEDIUMmediapipe/tasks/python/metadata/metadata.py247 # Creating the deleting such a tempfile is handled by the class,COMMENT
MEDIUMmediapipe/tasks/python/metadata/metadata.py907# Create an individual method for getting the metadata json file, so that it canCOMMENT
MEDIUM…ks/python/metadata/metadata_writers/object_detector.py99# Create an individual method for getting the metadata json file, so that it canCOMMENT
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py372 # Create the subgraph metadata.COMMENT
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py387 # Create the whole model metadata.COMMENT
MEDIUM…asks/python/metadata/metadata_writers/metadata_info.py264 # Create the RegexTokenizer.COMMENT
MEDIUM…ks/python/metadata/metadata_writers/image_segmenter.py52# Create an individual method for getting the metadata json file, so that it canCOMMENT
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh153 # Create the temporary directory for the given framework.COMMENT
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh171 # Create the parent folder which will hold the graph libraries of all architectures.COMMENT
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh190 # Create the parent folder which will hold the genai libraries of all architectures.COMMENT
MEDIUMmediapipe/tasks/ios/build_ios_framework.sh212 # Create the framework archive directory.COMMENT
MEDIUMmediapipe/python/solution_base.py377 # Create a NamedTuple object where the field names are mapping to the graphCOMMENT
MEDIUMmediapipe/model_maker/python/core/utils/file_util.py89 # Create the parent dir of absolute_path and copy the contents of theCOMMENT
MEDIUM…/model_maker/python/vision/image_classifier/dataset.py84 # Create a dataset if (image, label) pairsCOMMENT
MEDIUM…odel_maker/python/vision/gesture_recognizer/dataset.py243 # Create a dataset with (hand_embedding, one_hot_label) pairsCOMMENT
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMsetup_opencv.sh15# =========================================================================COMMENT
MEDIUMsetup_android_sdk_and_ndk.sh15# =========================================================================COMMENT
MEDIUMbuild_desktop_examples.sh15# =========================================================================COMMENT
MEDIUMbuild_ios_examples.sh15# =========================================================================COMMENT
MEDIUMbuild_android_examples.sh15# =========================================================================COMMENT
MEDIUMdocs/build_java_api_docs.py14# ==============================================================================COMMENT
MEDIUMdocs/build_py_api_docs.py14# ==============================================================================COMMENT
MEDIUMdocs/build_model_maker_api_docs.py14# ==============================================================================COMMENT
MEDIUM…ipe/tasks/python/test/metadata/metadata_parser_test.py14# ==============================================================================COMMENT
MEDIUMmediapipe/tasks/python/test/metadata/metadata_test.py14# ==============================================================================COMMENT
MEDIUM…est/metadata/metadata_writers/image_classifier_test.py14# ==============================================================================COMMENT
MEDIUM…n/test/metadata/metadata_writers/face_stylizer_test.py14# ==============================================================================COMMENT
MEDIUM…data/metadata_writers/model_asset_bundle_utils_test.py14# ==============================================================================COMMENT
MEDIUM…test/metadata/metadata_writers/metadata_writer_test.py14# ==============================================================================COMMENT
MEDIUM…test/metadata/metadata_writers/image_segmenter_test.py14# ==============================================================================COMMENT
MEDIUM…n/test/metadata/metadata_writers/metadata_info_test.py14# ==============================================================================COMMENT
MEDIUM…test/metadata/metadata_writers/text_classifier_test.py14# ==============================================================================COMMENT
MEDIUM…test/metadata/metadata_writers/object_detector_test.py14# ==============================================================================COMMENT
MEDIUMmediapipe/tasks/python/metadata/metadata.py14# ==============================================================================COMMENT
MEDIUM…iapipe/tasks/python/metadata/metadata_displayer_cli.py14# ==============================================================================COMMENT
MEDIUM…s/python/metadata/metadata_writers/image_classifier.py14# ==============================================================================COMMENT
MEDIUM…ks/python/metadata/metadata_writers/object_detector.py14# ==============================================================================COMMENT
MEDIUM…/metadata/metadata_writers/model_asset_bundle_utils.py14# ==============================================================================COMMENT
MEDIUM…ks/python/metadata/metadata_writers/metadata_writer.py14# ==============================================================================COMMENT
MEDIUM…asks/python/metadata/metadata_writers/metadata_info.py14# ==============================================================================COMMENT
MEDIUM…ks/python/metadata/metadata_writers/text_classifier.py14# ==============================================================================COMMENT
MEDIUM…ks/python/metadata/metadata_writers/image_segmenter.py14# ==============================================================================COMMENT
MEDIUM…tasks/python/metadata/metadata_writers/writer_utils.py14# ==============================================================================COMMENT
MEDIUMmediapipe/model_maker/python/core/data/data_util.py14# ==============================================================================COMMENT
MEDIUM…/model_maker/python/vision/core/image_preprocessing.py14# ==============================================================================COMMENT
MEDIUMmediapipe/model_maker/python/vision/core/image_utils.py14# ==============================================================================COMMENT
MEDIUM…er/python/vision/gesture_recognizer/metadata_writer.py14# ==============================================================================COMMENT
MEDIUM…thon/vision/gesture_recognizer/metadata_writer_test.py14# ==============================================================================COMMENT
MEDIUM…odel_maker/python/text/text_classifier/preprocessor.py14# ==============================================================================COMMENT
MEDIUM.github/bot_config.yml14# ============================================================================COMMENT
MEDIUM.github/workflows/stale.yaml14# ==============================================================================COMMENT
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICAL…/com/google/mediapipe/tasks/core/BaseOptionsUtils.java250 InferenceCalculatorProto.InferenceCalculatorOptions.Delegate.LiteRt.Cpu.newBuilder();CODE
CRITICAL…/com/google/mediapipe/tasks/core/BaseOptionsUtils.java257 InferenceCalculatorProto.InferenceCalculatorOptions.Delegate.LiteRt.Gpu.newBuilder();CODE
CRITICAL…/com/google/mediapipe/tasks/core/BaseOptionsUtils.java291 return InferenceCalculatorProto.InferenceCalculatorOptions.Delegate.LiteRt.Npu.newBuilder()CODE
CRITICAL…pipe/tasks/vision/facedetector/FaceDetectorResult.java44 com.google.mediapipe.tasks.components.containers.Detection.createFromProto(CODE
CRITICAL…/vision/gesturerecognizer/GestureRecognizerResult.java60 com.google.mediapipe.tasks.components.containers.NormalizedLandmark.create(CODE
CRITICAL…/vision/gesturerecognizer/GestureRecognizerResult.java71 com.google.mediapipe.tasks.components.containers.Landmark.create(CODE
CRITICAL…/tasks/vision/objectdetector/ObjectDetectorResult.java38 com.google.mediapipe.tasks.components.containers.Detection.createFromProto(CODE
AI Slop Vocabulary16 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUM⚡…e/tasks/python/test/vision/holistic_landmarker_test.py342 # Performs holistic landmarks detection on the input.COMMENT
MEDIUM⚡…e/tasks/python/test/vision/holistic_landmarker_test.py361 # Performs holistic landmarks detection on the input.COMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py266 # Creates holistic landmarker.COMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py287 # Performs holistic landmarks detection on the input.COMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py296 # Closes the holistic landmarker explicitly when the holistic landmarker isCOMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py321 # Creates holistic landmarker.COMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py469 # Creates holistic landmarker.COMMENT
MEDIUM…e/tasks/python/test/vision/holistic_landmarker_test.py483 # Performs holistic landmarks detection on the input.COMMENT
MEDIUMmediapipe/gpu/gl_calculator_helper.h223// calculator. This is the preferred way to utilize the memory pool inside ofCOMMENT
MEDIUMmediapipe/util/tracking/motion_analysis.h16// locally filtered (robust) feature tracking, camera motion estimation, andCOMMENT
MEDIUMmediapipe/util/tracking/motion_estimation.h374 // Replace each features irls weight by robust min-filtered irls weightCOMMENT
MEDIUMmediapipe/framework/deps/status_macros.h21// with the goal of having a single, consistent, and robust implementation.COMMENT
MEDIUMmediapipe/web/graph_runner/graph_runner_webgpu.ts88 // Our inference engines can utilize the adapter info to optimize WebGPUCOMMENT
MEDIUM…maker/python/vision/object_detector/object_detector.py169 # TODO: Refactor this method to utilize shared training functionCOMMENT
MEDIUM…sktop/autoflip/calculators/scene_cropping_calculator.h62// target aspect ratio, padding will be applied. In this case, a seamlessCOMMENT
MEDIUMmediapipe/calculators/tensor/tensor_span.h26// *without* making any deep-copies or keeping any memory alive. EssentiallyCOMMENT
Example Usage Blocks26 hits · 39 pts
SeverityFileLineSnippetContext
LOW…cognizer/calculators/handedness_to_matrix_calculator.h38// Usage example:COMMENT
LOW…ecognizer/calculators/landmarks_to_matrix_calculator.h35// Usage example:COMMENT
LOW…ecognizer/calculators/combined_prediction_calculator.h37// Usage example:COMMENT
LOW…enter/calculators/tensors_to_segmentation_calculator.h40// Usage example:COMMENT
LOW…s/cc/components/processors/image_preprocessing_graph.h34// Example usage:COMMENT
LOW…components/processors/detection_postprocessing_graph.h31// Example usage:COMMENT
LOW…nents/processors/classification_postprocessing_graph.h34// Example usage:COMMENT
LOW…ks/cc/components/processors/text_preprocessing_graph.h32// Example usage:COMMENT
LOW…components/processors/embedding_postprocessing_graph.h33// Example usage:COMMENT
LOWmediapipe/gpu/gl_app_texture_support.h41// Usage example:COMMENT
LOWmediapipe/gpu/gl_app_texture_support.h86// Usage example:COMMENT
LOWmediapipe/util/annotation_renderer.h28// Example usage:COMMENT
LOWmediapipe/util/tracking/region_flow.h381// Usage example:COMMENT
LOWmediapipe/util/tracking/motion_analysis.h21// Usage example:COMMENT
LOWmediapipe/util/tracking/tracking.h267// Example usage:COMMENT
LOWmediapipe/framework/memory_manager.h33// Example usage:COMMENT
LOWmediapipe/framework/packet.h176 // Example usage:COMMENT
LOWmediapipe/framework/deps/requires.h26// Example usage:COMMENT
LOWmediapipe/framework/deps/registration_token.h30// Example usage:COMMENT
LOWmediapipe/framework/deps/mathutil.h47 // Example usage:COMMENT
LOWmediapipe/framework/tool/sink.h68// Example usage:COMMENT
LOW…esktop/autoflip/quality/scene_camera_motion_analyzer.h41// Example usage:COMMENT
LOW…pipe/examples/desktop/autoflip/quality/scene_cropper.h40// Example usage:COMMENT
LOW…iapipe/calculators/util/filter_collection_calculator.h34// Example usage:COMMENT
LOWmediapipe/calculators/image/warp_affine_calculator.h57// Usage example:COMMENT
LOW…alculators/tensor/tensors_to_segmentation_calculator.h41// Usage example:COMMENT
Deep Nesting26 hits · 26 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/python/core/mediapipe_c_utils.py169CODE
LOWmediapipe/tasks/python/test/test_utils.py121CODE
LOWmediapipe/tasks/python/retrieval/semantic_retriever.py460CODE
LOWmediapipe/tasks/python/retrieval/semantic_retriever.py538CODE
LOWmediapipe/tasks/python/decision/decision_maker.py684CODE
LOWmediapipe/tasks/python/decision/decision_maker.py710CODE
LOW…ks/python/metadata/metadata_writers/metadata_writer.py776CODE
LOW…asks/python/metadata/metadata_writers/metadata_info.py411CODE
LOWmediapipe/python/solution_base.py109CODE
LOWmediapipe/python/solution_base.py300CODE
LOWmediapipe/python/solution_base.py469CODE
LOWmediapipe/python/solution_base.py491CODE
LOWmediapipe/python/solutions/face_mesh_test.py133CODE
LOWmediapipe/python/solutions/hands_test.py131CODE
LOWmediapipe/model_maker/python/core/utils/hub_loader.py45CODE
LOWmediapipe/model_maker/python/core/utils/file_util.py47CODE
LOW…ker/python/vision/image_classifier/image_classifier.py39CODE
LOW…ython/vision/image_classifier/image_classifier_demo.py55CODE
LOW…l_maker/python/text/text_classifier/text_classifier.py579CODE
LOW…iapipe/examples/desktop/media_sequence/demo_dataset.py175CODE
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py224CODE
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py286CODE
LOW…pe/examples/desktop/media_sequence/kinetics_dataset.py329CODE
LOW…pe/examples/desktop/media_sequence/charades_dataset.py245CODE
LOW…pe/examples/desktop/media_sequence/charades_dataset.py291CODE
LOWmediapipe/examples/desktop/youtube8m/viewer/server.py101CODE
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/python/benchmark/vision/benchmark.py72 # Check if the mode is supported and get the argument dictionaryCOMMENT
LOW…ython/test/vision/interactive_segmenter_legacy_test.py228 # Check if data type of `category_mask` is correct.COMMENT
LOW…ython/test/vision/interactive_segmenter_legacy_test.py281 # Check if confidence mask shape is correct.COMMENT
LOW…ython/test/vision/interactive_segmenter_legacy_test.py320 # Check if confidence mask shape is correct.COMMENT
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py208 # Check if data type of `category_mask` is correct.COMMENT
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py243 # Check if confidence mask shape is correct.COMMENT
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py381 # Check if confidence mask shape is correct.COMMENT
LOW…apipe/tasks/python/test/vision/image_segmenter_test.py492 # Check if confidence mask shape is correct.COMMENT
LOWmediapipe/tasks/python/test/metadata/metadata_test.py277 # Check if the model buffer read from file is the same as that read fromCOMMENT
LOWmediapipe/tasks/python/test/metadata/metadata_test.py331 # Check if the model buffer read from file is the same as that read fromCOMMENT
LOWmediapipe/tasks/python/metadata/metadata.py657 # Check if metadata has already been populated.COMMENT
LOWmediapipe/tasks/python/metadata/metadata.py712 # Verify if the number of tensor metadata matches the number of tensors.COMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmediapipe/tasks/python/core/async_result_dispatcher.py204except OSError:CODE
HIGHmediapipe/tasks/python/core/async_result_dispatcher.py215except OSError:CODE
HIGH…apipe/tasks/python/test/core/serial_dispatcher_test.py142except ValueError:CODE
Excessive Try-Catch Wrapping7 hits · 9 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/python/core/async_result_dispatcher.py161 except Exception as e: # pylint: disable=broad-exceptCODE
LOWmediapipe/tasks/python/core/async_result_dispatcher.py173 except Exception as e: # pylint: disable=broad-exceptCODE
LOWmediapipe/tasks/python/metadata/metadata.py149 except Exception:CODE
LOWmediapipe/tasks/python/metadata/metadata.py163 except Exception as e:CODE
LOWmediapipe/examples/ios/link_local_profiles.py88 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMmediapipe/examples/ios/link_local_profiles.py159 print("Error: Unable to find any provisioning profiles " +CODE
MEDIUMmediapipe/examples/ios/link_local_profiles.py82def get_app_id(profile_path) -> Optional[str]:CODE
AI Structural Patterns10 hits · 8 pts
SeverityFileLineSnippetContext
LOW…asks/python/metadata/metadata_writers/metadata_info.py391CODE
LOW…asks/python/metadata/metadata_writers/metadata_info.py757CODE
LOWmediapipe/python/solution_base.py204CODE
LOWmediapipe/python/solutions/objectron.py172CODE
LOWmediapipe/python/solutions/pose_test.py127CODE
LOWmediapipe/python/solutions/holistic.py77CODE
LOWmediapipe/python/solutions/pose.py117CODE
LOWmediapipe/model_maker/python/core/utils/quantization.py64CODE
LOW…ython/vision/image_classifier/image_classifier_test.py57CODE
LOW…n/vision/gesture_recognizer/gesture_recognizer_test.py42CODE
Fake / Example Data5 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡…pipe/tasks/python/test/audio/core/audio_record_test.py77 dummy_data = np.random.rand(chunk_size, _CHANNELS).astype(float)CODE
LOW⚡…pipe/tasks/python/test/audio/core/audio_record_test.py78 input_data.append(dummy_data)CODE
LOW⚡…pipe/tasks/python/test/audio/core/audio_record_test.py79 callback_fn(dummy_data)CODE
LOW⚡…pipe/tasks/python/test/audio/core/audio_record_test.py95 dummy_data = np.zeros([_BUFFER_SIZE, 1], dtype=float)CODE
LOW⚡…pipe/tasks/python/test/audio/core/audio_record_test.py96 callback_fn(dummy_data)CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHmediapipe/util/tracking/region_flow.h451 // track with a direction as requested by the flow direction of theCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/web/vision/core/drawing_utils.test.ts203 // TODO: Add tests for drawConnectors/drawLandmarks/drawBoundingBoxCOMMENT
LOWmediapipe/gpu/webgpu/webgpu_texture_buffer.h65 // TODO: implement.COMMENT
LOWmediapipe/framework/api2/contract.h357// TODO: implement multiple callers for syncsets.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…/model_maker/python/text/text_classifier/model_spec.py40 # `learning_rate` is unused for the average word embedding modelCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWmediapipe/tasks/python/vision/interactive_segmenter.py195 def set_image(self, image: image_module.Image) -> None:CODE
LOWmediapipe/tasks/python/decision/__init__.py29__all__ = [CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…e/tasks/web/genai/llm_inference/model_loading_utils.ts50 // cancel() may be called at any time, so we need to check if thisCOMMENT