Cross-platform, customizable ML solutions for live and streaming media.
This report presents the forensic synthetic code analysis of google-ai-edge/mediapipe, a C++ project with 36,096 GitHub stars. SynthScan v2.0 examined 371,040 lines of code across 2032 source files, recording 3650 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 12.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3650 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup_opencv.sh | 1 | #!/bin/bash | COMMENT |
| LOW | setup_android_sdk_and_ndk.sh | 1 | #!/bin/bash | COMMENT |
| LOW | build_desktop_examples.sh | 1 | #!/bin/bash | COMMENT |
| LOW | requirements_lock_3_12.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_12.txt | 21 | jax==0.4.30 | COMMENT |
| LOW | requirements_lock_3_12.txt | 41 | # matplotlib | COMMENT |
| LOW | requirements_lock_3_12.txt | 61 | scipy==1.13.1 | COMMENT |
| LOW | requirements_lock_3_10.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_10.txt | 21 | jax==0.4.30 | COMMENT |
| LOW | requirements_lock_3_10.txt | 41 | # matplotlib | COMMENT |
| LOW | requirements_lock_3_10.txt | 61 | scipy==1.13.1 | COMMENT |
| LOW | requirements_lock.txt | 1 | # | COMMENT |
| LOW | requirements_lock.txt | 21 | importlib-metadata==8.5.0 | COMMENT |
| LOW | requirements_lock.txt | 41 | # -r mediapipe/opensource_only/requirements.txt | COMMENT |
| LOW | requirements_lock.txt | 61 | pyparsing==3.1.4 | COMMENT |
| LOW | requirements_lock_3_11.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_11.txt | 21 | jax==0.4.30 | COMMENT |
| LOW | requirements_lock_3_11.txt | 41 | # matplotlib | COMMENT |
| LOW | requirements_lock_3_11.txt | 61 | scipy==1.13.1 | COMMENT |
| LOW | build_ios_examples.sh | 1 | #!/bin/bash | COMMENT |
| LOW | build_android_examples.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/build_java_api_docs.py | 1 | # Copyright 2022 The MediaPipe Authors. | COMMENT |
| LOW | docs/build_py_api_docs.py | 1 | # Copyright 2022 The MediaPipe Authors. | COMMENT |
| LOW | docs/build_model_maker_api_docs.py | 1 | # Copyright 2022 The MediaPipe Authors. | COMMENT |
| LOW | …asksDocGen/MediaPipeTasksDocGen/MediaPipeTasksDocGen.h | 1 | // | COMMENT |
| LOW | docs/framework_concepts/calculators.md | 361 | #include <vector> | COMMENT |
| LOW | docs/getting_started/install.md | 521 | ```bash | COMMENT |
| LOW | docs/getting_started/install.md | 641 | COMMENT | |
| LOW | docs/getting_started/install.md | 761 | # Should print: | COMMENT |
| LOW | docs/getting_started/install.md | 801 | # ---> f5d5f402071b | COMMENT |
| LOW | mediapipe/__init__.py | 1 | # Copyright 2019 - 2022 The MediaPipe Authors. | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29601 | collarbone | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29621 | ##) | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29641 | ##{ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29661 | ##¶ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29681 | ##ɕ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29701 | ##ʌ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29721 | ##β | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29741 | ##б | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29761 | ##і | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29781 | ##պ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29801 | ##ם | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29821 | ##ح | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29841 | ##چ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29861 | ##थ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29881 | ##। | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29901 | ##দ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29921 | ##ட | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29941 | ##ය | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29961 | ##་ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 29981 | ##თ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30001 | ##ᄌ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30021 | ##ᆨ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30041 | ##ᵖ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30061 | ##„ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30081 | ##ⁿ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30101 | ##₤ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30121 | ##∂ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30141 | ##⊗ | COMMENT |
| LOW | mediapipe/tasks/testdata/text/mobilebert_vocab.txt | 30161 | ##⽥ | COMMENT |
| 2393 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 115 | def _modify_opencv_cmake_rule(link_opencv): | CODE |
| LOW | mediapipe/tasks/python/core/mediapipe_c_bindings.py | 90 | def convert_strings_to_ctypes_array( | CODE |
| LOW | mediapipe/tasks/python/test/core/base_options_test.py | 23 | def test_convert_to_ctypes_with_model_asset_path(self): | CODE |
| LOW | mediapipe/tasks/python/test/core/base_options_test.py | 34 | def test_convert_to_ctypes_with_model_asset_buffer(self): | CODE |
| LOW | mediapipe/tasks/python/test/core/base_options_test.py | 45 | def test_convert_to_ctypes_with_gpu_delegate(self): | CODE |
| LOW | mediapipe/tasks/python/test/core/base_options_test.py | 57 | def test_convert_to_ctypes_without_delegate(self): | CODE |
| LOW⚡ | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 40 | def test_delegates_to_registered_methods(self): | CODE |
| LOW⚡ | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 48 | def test_method_calls_are_serialized(self): | CODE |
| LOW⚡ | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 57 | def side_effect_long_running_func(): | CODE |
| LOW | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 86 | def test_method_calls_are_invoked_from_same_thread(self): | CODE |
| LOW | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 129 | def test_continues_after_error(self): | CODE |
| LOW | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 148 | def test_calls_after_close_are_not_dispatched(self): | CODE |
| LOW | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 160 | def test_calls_status_functions_with_error_argument(self): | CODE |
| LOW | …apipe/tasks/python/test/core/serial_dispatcher_test.py | 188 | def test_uses_error_message_for_status_functions(self, error_message): | CODE |
| LOW | …apipe/tasks/python/test/core/mediapipe_c_utils_test.py | 81 | def test_handle_status_raises_correct_errors( | CODE |
| LOW | …tasks/python/test/core/async_result_dispatcher_test.py | 39 | def test_throws_error_if_callback_already_set(self): | CODE |
| LOW | …tasks/python/test/core/async_result_dispatcher_test.py | 47 | def test_callback_invoked_with_converted_data(self): | CODE |
| LOW | …tasks/python/test/core/async_result_dispatcher_test.py | 58 | def test_exception_in_callback_does_not_block_dispatcher(self): | CODE |
| LOW | …tasks/python/test/core/async_result_dispatcher_test.py | 85 | def test_calls_callbck_in_separate_thread(self): | CODE |
| LOW | …tasks/python/test/core/async_result_dispatcher_test.py | 108 | def test_ignores_calls_after_close(self): | CODE |
| LOW⚡ | …ython/test/vision/interactive_segmenter_legacy_test.py | 130 | def test_create_from_file_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …ython/test/vision/interactive_segmenter_legacy_test.py | 137 | def test_create_from_options_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …ython/test/vision/interactive_segmenter_legacy_test.py | 144 | def test_create_from_options_fails_with_invalid_model_path(self): | CODE |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 156 | def test_create_from_options_succeeds_with_valid_model_content(self): | CODE |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 195 | def test_segment_succeeds_with_category_mask( | CODE |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 262 | def test_segment_succeeds_with_confidence_mask( | CODE |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 297 | def test_segment_succeeds_with_rotation(self): | CODE |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 327 | def test_segment_fails_with_roi_in_image_processing_options(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 92 | def test_create_from_file_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 97 | def test_create_from_options_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 104 | def test_create_from_options_fails_with_invalid_model_path(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 318 | def test_calling_detect_for_video_in_image_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 327 | def test_calling_detect_async_in_image_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 336 | def test_calling_detect_in_video_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 345 | def test_calling_detect_async_in_video_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 354 | def test_detect_for_video_succeeds_with_full_range_model(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 457 | def test_calling_detect_in_live_stream_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 467 | def test_calling_detect_for_video_in_live_stream_mode(self): | CODE |
| LOW⚡ | …diapipe/tasks/python/test/vision/face_detector_test.py | 477 | def test_detect_async_calls_with_illegal_timestamp(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 60 | def _get_expected_face_detector_result(file_name: str) -> FaceDetectorResult: | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 116 | def test_create_from_options_succeeds_with_valid_model_content(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 125 | def _expect_keypoints_correct(self, actual_keypoints, expected_keypoints): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 139 | def _expect_bounding_box_correct(self, actual_bbox, expected_bbox): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 161 | def _expect_face_detector_results_correct( | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 238 | def test_detect_succeeds_with_full_range_model(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 259 | def test_detect_succeeds_with_rotated_image(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 281 | def test_empty_detection_outputs(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 294 | def test_missing_result_callback(self): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 306 | def test_illegal_result_callback(self, running_mode): | CODE |
| LOW | …diapipe/tasks/python/test/vision/face_detector_test.py | 372 | def test_detect_for_video_with_out_of_order_timestamp(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 165 | def test_create_from_file_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 170 | def test_create_from_options_succeeds_with_valid_model_path(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 177 | def test_create_from_options_fails_with_invalid_model_path(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 476 | def test_calling_classify_for_video_in_image_mode(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 485 | def test_calling_classify_async_in_image_mode(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 494 | def test_calling_classify_in_video_mode(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 503 | def test_calling_classify_async_in_video_mode(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 512 | def test_classify_for_video_with_out_of_order_timestamp(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 561 | def test_calling_classify_in_live_stream_mode(self): | CODE |
| LOW⚡ | …pipe/tasks/python/test/vision/image_classifier_test.py | 571 | def test_calling_classify_for_video_in_live_stream_mode(self): | CODE |
| 536 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mediapipe/tasks/python/vision/image_classifier.py | 243 | Creates an `ImageClassifier` object from a TensorFlow Lite model and the default `ImageClassifierOptions`. Note tha | STRING |
| HIGH | mediapipe/tasks/python/vision/image_classifier.py | 270 | Creates the `ImageClassifier` object from image classifier options. Args: options: Options for the image clas | STRING |
| HIGH | mediapipe/tasks/python/vision/image_classifier.py | 335 | Performs image classification on the provided MediaPipe Image. Only use this method when the ImageClassifier is cre | STRING |
| HIGH | mediapipe/tasks/python/vision/image_classifier.py | 375 | Performs image classification on the provided video frames. Only use this method when the ImageClassifier is create | STRING |
| HIGH | …pe/tasks/python/vision/interactive_segmenter_legacy.py | 234 | Creates an `InteractiveSegmenterLegacy` object from a TensorFlow Lite model and the default `InteractiveSegmenterLegacyO | STRING |
| HIGH | …pe/tasks/python/vision/interactive_segmenter_legacy.py | 262 | Creates the `InteractiveSegmenterLegacy` object from interactive segmenter options. Args: options: Options fo | STRING |
| HIGH | …pe/tasks/python/vision/interactive_segmenter_legacy.py | 291 | Performs the actual segmentation task on the provided MediaPipe Image. The image can be of any size with format RGB | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 364 | Creates a `PoseLandmarker` object from a model bundle file and the default `PoseLandmarkerOptions`. Note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 391 | Creates the `PoseLandmarker` object from pose landmarker options. Args: options: Options for the pose landmar | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 449 | Performs pose landmarks detection on the given image. Only use this method when the PoseLandmarker is created with | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 490 | Performs pose landmarks detection on the provided video frame. Only use this method when the PoseLandmarker is crea | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 283 | Creates an `ObjectDetector` object from a TensorFlow Lite model and the default `ObjectDetectorOptions`. Note that | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 310 | Creates the `ObjectDetector` object from object detector options. Args: options: Options for the object detec | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 374 | Performs object detection on the provided MediaPipe Image. Only use this method when the ObjectDetector is created | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 419 | Performs object detection on the provided video frames. Only use this method when the ObjectDetector is created wit | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 3109 | Creates an `FaceLandmarker` object from a TensorFlow Lite model and the default `FaceLandmarkerOptions`. Note that | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 3136 | Creates the `FaceLandmarker` object from face landmarker options. Args: options: Options for the face landmar | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 3194 | Performs face landmark detection on the provided MediaPipe Image. Only use this method when the FaceLandmarker is c | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 3236 | Performs face landmarks detection on the provided video frame. Only use this method when the FaceLandmarker is crea | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 245 | Creates an `GestureRecognizer` object from a TensorFlow Lite model and the default `GestureRecognizerOptions`. Note | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 272 | Creates the `GestureRecognizer` object from gesture recognizer options. Args: options: Options for the gestur | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 341 | Performs hand gesture recognition on the given image. Only use this method when the GestureRecognizer is created wi | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 385 | Performs gesture recognition on the provided video frame. Only use this method when the GestureRecognizer is create | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 360 | Creates an `HolisticLandmarker` object from a TensorFlow Lite model and the default `HolisticLandmarkerOptions`. No | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 387 | Creates the `HolisticLandmarker` object from holistic landmarker options. Args: options: Options for the holi | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 446 | Performs holistic landmarks detection on the given image. Only use this method when the HolisticLandmarker is creat | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 489 | Performs holistic landmarks detection on the provided video frame. Only use this method when the HolisticLandmarker | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 360 | Creates an `HandLandmarker` object from a TensorFlow Lite model and the default `HandLandmarkerOptions`. Note that | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 387 | Creates the `HandLandmarker` object from hand landmarker options. Args: options: Options for the hand landmar | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 447 | Performs hand landmarks detection on the given image. Only use this method when the HandLandmarker is created with | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 492 | Performs hand landmarks detection on the provided video frame. Only use this method when the HandLandmarker is crea | STRING |
| HIGH | mediapipe/tasks/python/vision/image_segmenter.py | 285 | Creates an `ImageSegmenter` object from a TensorFlow Lite model and the default `ImageSegmenterOptions`. Note that | STRING |
| HIGH | mediapipe/tasks/python/vision/image_segmenter.py | 312 | Creates the `ImageSegmenter` object from image segmenter options. Args: options: Options for the image segmen | STRING |
| HIGH | mediapipe/tasks/python/vision/image_segmenter.py | 370 | Performs the actual segmentation task on the provided MediaPipe Image. Args: image: MediaPipe Image. im | STRING |
| HIGH | mediapipe/tasks/python/vision/image_segmenter.py | 410 | Performs segmentation on the provided video frames. Only use this method when the ImageSegmenter is created with th | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 241 | Creates an `ImageEmbedder` object from a TensorFlow Lite model and the default `ImageEmbedderOptions`. Note that th | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 268 | Creates the `ImageEmbedder` object from image embedder options. Args: options: Options for the image embedder | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 322 | Performs image embedding extraction on the provided MediaPipe Image. Extraction is performed on the region of inte | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 361 | Performs image embedding extraction on the provided video frames. Extraction is performed on the region of interest | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 467 | Utility function to compute cosine similarity between two embedding entries. May return an InvalidArgumentError if | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 195 | Creates an `FaceDetector` object from a TensorFlow Lite model and the default `FaceDetectorOptions`. Note that the | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 220 | Creates the `FaceDetector` object from face detector options. Args: options: Options for the face detector ta | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 281 | Performs face detection on the provided MediaPipe Image. Only use this method when the FaceDetector is created with | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 325 | Performs face detection on the provided video frames. Only use this method when the FaceDetector is created with th | STRING |
| HIGH | mediapipe/tasks/python/vision/core/image.py | 298 | Creates an `Image` object from an image file. Args: file_name: The path to the image file. Returns: | STRING |
| HIGH | mediapipe/tasks/python/vision/core/image.py | 440 | Use the indexer operators to access pixel data. Args: key: A tuple of integers representing the row, column, | STRING |
| HIGH | mediapipe/tasks/python/vision/core/image.py | 522 | Return True if each row of the data is aligned to alignment boundary, which must be 1 or a power of 2. Args: | STRING |
| HIGH | mediapipe/tasks/python/audio/audio_classifier.py | 218 | Creates an `AudioClassifier` object from a TensorFlow Lite model and the default `AudioClassifierOptions`. Note tha | STRING |
| HIGH | mediapipe/tasks/python/audio/audio_classifier.py | 245 | Creates the `AudioClassifier` object from audio classifier options. Args: options: Options for the audio clas | STRING |
| HIGH | mediapipe/tasks/python/audio/audio_classifier.py | 299 | Performs audio classification on the provided audio clip. The audio clip is represented as a MediaPipe AudioData. T | STRING |
| HIGH | mediapipe/tasks/python/audio/audio_classifier.py | 405 | Creates an AudioRecord instance to record audio stream. The returned AudioRecord instance is initialized and client | STRING |
| HIGH | mediapipe/tasks/python/audio/core/audio_record.py | 108 | Reads the latest audio data captured in the buffer. Args: size: Number of samples to read from the buffer. | STRING |
| HIGH | mediapipe/tasks/python/text/text_summarizer.py | 195 | Creates a `TextSummarizer` object from model path. Args: model_path: Path to the model. Returns: ` | STRING |
| HIGH | mediapipe/tasks/python/text/text_summarizer.py | 217 | Creates the `TextSummarizer` object from text summarizer options. Args: options: Options for the text summari | STRING |
| HIGH | mediapipe/tasks/python/text/text_summarizer.py | 242 | Performs summarization on the input `text`. Args: text: The input text. Returns: A `TextSummarizer | STRING |
| HIGH | mediapipe/tasks/python/text/text_proofreader.py | 261 | Creates a `TextProofreader` object from model path. Args: model_path: Path to the model. Returns: | STRING |
| HIGH | mediapipe/tasks/python/text/text_proofreader.py | 283 | Creates the `TextProofreader` object from text proofreader options. Args: options: Options for the text proof | STRING |
| HIGH | mediapipe/tasks/python/text/text_proofreader.py | 308 | Performs proofreading on the input `text`. Args: text: The input text. Returns: A `TextProofreader | STRING |
| HIGH | mediapipe/tasks/python/text/language_detector.py | 193 | Creates an `LanguageDetector` object from a TensorFlow Lite model and the default `LanguageDetectorOptions`. Args: | STRING |
| HIGH | mediapipe/tasks/python/text/language_detector.py | 218 | Creates the `LanguageDetector` object from language detector options. Args: options: Options for the language | STRING |
| 47 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | setup.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/tasks/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/tasks/python/vision/core/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | …diapipe/tasks/python/benchmark/vision/core/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/tasks/python/audio/core/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/util/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/util/sequence/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/examples/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/examples/desktop/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/examples/desktop/media_sequence/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/examples/desktop/youtube8m/__init__.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/util/sequence/media_sequence_test.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/util/sequence/media_sequence_util_test.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | mediapipe/model_maker/setup.py | 0 | copyright 2020-2022 the mediapipe authors. licensed under the apache license, version 2.0 (the "license"); you may not u | STRING |
| HIGH | …chmark/vision/face_detector/face_detector_benchmark.py | 0 | run 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.py | 0 | run 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.py | 0 | run 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.py | 0 | run 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.py | 0 | run 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.py | 0 | run 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.py | 0 | run 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.py | 0 | run an image segmenter benchmark. args: model_path: path to the tflite model. n_iterations: number of iterations to run | STRING |
| HIGH | mediapipe/tasks/python/core/base_options.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | …sks/python/components/processors/classifier_options.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | …diapipe/tasks/python/components/containers/keypoint.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | mediapipe/tasks/python/components/containers/rect.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | …ipe/tasks/python/components/containers/bounding_box.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | …apipe/tasks/python/components/containers/detections.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | …diapipe/tasks/python/components/containers/category.py | 0 | checks if this object is equal to the given object. args: other: the object to be compared with. returns: true if the ob | STRING |
| HIGH | mediapipe/tasks/python/vision/image_classifier.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | …pe/tasks/python/vision/interactive_segmenter_legacy.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/image_segmenter.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 0 | creates an `handlandmarker` object from a tensorflow lite model and the default `handlandmarkeroptions`. note that the c | STRING |
| HIGH | mediapipe/tasks/python/vision/interactive_segmenter.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | …pe/tasks/python/vision/interactive_segmenter_legacy.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/vision/image_embedder.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/text/text_summarizer.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/text/text_proofreader.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/text/text_embedder.py | 0 | shuts down the mediapipe task instance on exit of the context manager. | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/object_detector.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/face_detector.py | 0 | initializes the face detector. args: lib: the dispatch library to use for the face detector. handle: the c pointer to th | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 0 | performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created w | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 0 | performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created w | STRING |
| HIGH | mediapipe/tasks/python/vision/gesture_recognizer.py | 0 | performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created w | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 0 | performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created w | STRING |
| HIGH | mediapipe/tasks/python/vision/hand_landmarker.py | 0 | performs hand landmarks detection on the provided video frame. only use this method when the handlandmarker is created w | STRING |
| HIGH | mediapipe/tasks/python/vision/pose_landmarker.py | 0 | sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" provi | STRING |
| HIGH | mediapipe/tasks/python/vision/face_landmarker.py | 0 | sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" provi | STRING |
| HIGH | mediapipe/tasks/python/vision/holistic_landmarker.py | 0 | sends live image data to perform hand landmarks detection. the results will be available via the "result_callback" provi | STRING |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/python/__init__.py | 17 | CODE | |
| LOW | mediapipe/tasks/python/__init__.py | 18 | CODE | |
| LOW | mediapipe/tasks/python/__init__.py | 20 | CODE | |
| LOW | mediapipe/tasks/python/__init__.py | 21 | CODE | |
| LOW | …ipe/tasks/python/test/metadata/metadata_parser_test.py | 17 | CODE | |
| LOW | …ipe/tasks/python/test/metadata/metadata_parser_test.py | 18 | CODE | |
| LOW | …ipe/tasks/python/test/metadata/metadata_parser_test.py | 19 | CODE | |
| LOW | …test/metadata/metadata_writers/object_detector_test.py | 25 | CODE | |
| LOW | mediapipe/tasks/python/vision/interactive_segmenter.py | 16 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_test.py | 18 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_test.py | 19 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_test.py | 20 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence.py | 155 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence.py | 156 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence.py | 157 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util.py | 21 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util.py | 22 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util.py | 23 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util_test.py | 18 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util_test.py | 19 | CODE | |
| LOW | mediapipe/util/sequence/media_sequence_util_test.py | 20 | CODE | |
| LOW | mediapipe/python/solution_base.py | 43 | CODE | |
| LOW | mediapipe/python/solution_base.py | 44 | CODE | |
| LOW | mediapipe/python/solution_base.py | 45 | CODE | |
| LOW | mediapipe/python/solution_base.py | 46 | CODE | |
| LOW | mediapipe/python/solution_base.py | 47 | CODE | |
| LOW | mediapipe/python/solution_base.py | 48 | CODE | |
| LOW | mediapipe/python/solution_base.py | 49 | CODE | |
| LOW | mediapipe/python/__init__.py | 17 | CODE | |
| LOW | mediapipe/python/__init__.py | 18 | CODE | |
| LOW | mediapipe/python/__init__.py | 19 | CODE | |
| LOW | mediapipe/python/__init__.py | 20 | CODE | |
| LOW | mediapipe/python/__init__.py | 21 | CODE | |
| LOW | mediapipe/python/__init__.py | 22 | CODE | |
| LOW | mediapipe/python/__init__.py | 23 | CODE | |
| LOW | mediapipe/python/__init__.py | 24 | CODE | |
| LOW | mediapipe/python/__init__.py | 25 | CODE | |
| LOW | mediapipe/python/__init__.py | 26 | CODE | |
| LOW | mediapipe/python/__init__.py | 27 | CODE | |
| LOW | mediapipe/python/__init__.py | 28 | CODE | |
| LOW | mediapipe/python/__init__.py | 29 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 23 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 24 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 25 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 26 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 27 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 28 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 29 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 30 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 31 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 32 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 33 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 34 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 35 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 36 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 37 | CODE | |
| LOW | mediapipe/python/solutions/hands.py | 41 | CODE | |
| LOW | mediapipe/python/solutions/selfie_segmentation.py | 22 | CODE | |
| LOW | mediapipe/python/solutions/selfie_segmentation.py | 23 | CODE | |
| LOW | mediapipe/python/solutions/selfie_segmentation.py | 24 | CODE | |
| 160 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup.py | 136 | # Create an empty __init__.py file in the root directory. | COMMENT |
| MEDIUM | setup.py | 153 | # Create an empty __init__.py file in the extension directory. | COMMENT |
| MEDIUM | mediapipe/tasks/python/benchmark/vision/benchmark.py | 66 | # Define a mapping of modes to their respective function argument lists | COMMENT |
| MEDIUM | …/vision/image_classifier/image_classifier_benchmark.py | 38 | # Initialize the image classifier | COMMENT |
| MEDIUM | …rk/vision/object_detector/object_detector_benchmark.py | 38 | # Initialize the object detector | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 69 | # Create a model with two inputs and one output, which matches the metadata | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 103 | # Create a model with two inputs and one output. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 432 | # Create a model with two inputs and one output. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 496 | # Create a dummy metadata without Subgraph. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 512 | # Create a dummy metadata with no input tensor metadata, while the expected | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 533 | # Create a dummy metadata with no output tensor metadata, while the expected | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 554 | # Create a src model with metadata and two associated files. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 561 | # Create a model to be populated with the metadata and files from | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 583 | # Create a source model with two associated files but no metadata. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 589 | # Create a model to be populated with the files from `src_model_buf`. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 623 | # Create the tensor with process units. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 627 | # Create the subgrah with the tensor. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 641 | # Create a model metadata with the subgraph metadata | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 679 | # Create the subgraph with process units. | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 694 | # Create a model metadata with the subgraph metadata | COMMENT |
| MEDIUM⚡ | …n/test/metadata/metadata_writers/metadata_info_test.py | 481 | # Create a dummy model using the tensor metadata. | COMMENT |
| MEDIUM⚡ | …n/test/metadata/metadata_writers/metadata_info_test.py | 487 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM⚡ | …n/test/metadata/metadata_writers/metadata_info_test.py | 497 | # Create a dummy model using the tensor metadata. | COMMENT |
| MEDIUM⚡ | …n/test/metadata/metadata_writers/metadata_info_test.py | 503 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM⚡ | …n/test/metadata/metadata_writers/metadata_info_test.py | 521 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM | …n/test/metadata/metadata_writers/metadata_info_test.py | 49 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM | …n/test/metadata/metadata_writers/metadata_info_test.py | 75 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM | …n/test/metadata/metadata_writers/metadata_info_test.py | 312 | # Create the Flatbuffers object and convert it to the json format. | COMMENT |
| MEDIUM | mediapipe/tasks/python/vision/core/image.py | 324 | # Create an empty Image object and then populate it. | COMMENT |
| MEDIUM | mediapipe/tasks/python/vision/core/image.py | 359 | # Create an empty Image object and then populate it. | COMMENT |
| MEDIUM | mediapipe/tasks/python/audio/core/audio_record.py | 61 | # Create a ring buffer to store the input audio. | COMMENT |
| MEDIUM | mediapipe/tasks/python/audio/core/audio_record.py | 76 | # Create an input stream to continuously capture the audio data. | COMMENT |
| MEDIUM | mediapipe/tasks/python/metadata/metadata.py | 247 | # Creating the deleting such a tempfile is handled by the class, | COMMENT |
| MEDIUM | mediapipe/tasks/python/metadata/metadata.py | 907 | # Create an individual method for getting the metadata json file, so that it can | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/object_detector.py | 99 | # Create an individual method for getting the metadata json file, so that it can | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/metadata_writer.py | 372 | # Create the subgraph metadata. | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/metadata_writer.py | 387 | # Create the whole model metadata. | COMMENT |
| MEDIUM | …asks/python/metadata/metadata_writers/metadata_info.py | 264 | # Create the RegexTokenizer. | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/image_segmenter.py | 52 | # Create an individual method for getting the metadata json file, so that it can | COMMENT |
| MEDIUM | mediapipe/tasks/ios/build_ios_framework.sh | 151 | # Create the temporary directory for the given framework. | COMMENT |
| MEDIUM | mediapipe/tasks/ios/build_ios_framework.sh | 169 | # Create the parent folder which will hold the graph libraries of all architectures. | COMMENT |
| MEDIUM | mediapipe/tasks/ios/build_ios_framework.sh | 188 | # Create the parent folder which will hold the genai libraries of all architectures. | COMMENT |
| MEDIUM | mediapipe/tasks/ios/build_ios_framework.sh | 210 | # Create the framework archive directory. | COMMENT |
| MEDIUM | mediapipe/python/solution_base.py | 377 | # Create a NamedTuple object where the field names are mapping to the graph | COMMENT |
| MEDIUM | mediapipe/model_maker/python/core/utils/file_util.py | 89 | # Create the parent dir of absolute_path and copy the contents of the | COMMENT |
| MEDIUM | …/model_maker/python/vision/image_classifier/dataset.py | 84 | # Create a dataset if (image, label) pairs | COMMENT |
| MEDIUM | …odel_maker/python/vision/gesture_recognizer/dataset.py | 243 | # Create a dataset with (hand_embedding, one_hot_label) pairs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup_opencv.sh | 15 | # ========================================================================= | COMMENT |
| MEDIUM | setup_android_sdk_and_ndk.sh | 15 | # ========================================================================= | COMMENT |
| MEDIUM | build_desktop_examples.sh | 15 | # ========================================================================= | COMMENT |
| MEDIUM | build_ios_examples.sh | 15 | # ========================================================================= | COMMENT |
| MEDIUM | build_android_examples.sh | 15 | # ========================================================================= | COMMENT |
| MEDIUM | docs/build_java_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | docs/build_py_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | docs/build_model_maker_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ipe/tasks/python/test/metadata/metadata_parser_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | mediapipe/tasks/python/test/metadata/metadata_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …est/metadata/metadata_writers/image_classifier_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …n/test/metadata/metadata_writers/face_stylizer_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …data/metadata_writers/model_asset_bundle_utils_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …test/metadata/metadata_writers/metadata_writer_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …test/metadata/metadata_writers/image_segmenter_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …n/test/metadata/metadata_writers/metadata_info_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …test/metadata/metadata_writers/text_classifier_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …test/metadata/metadata_writers/object_detector_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | mediapipe/tasks/python/metadata/metadata.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …iapipe/tasks/python/metadata/metadata_displayer_cli.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …s/python/metadata/metadata_writers/image_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/object_detector.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/metadata/metadata_writers/model_asset_bundle_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/metadata_writer.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …asks/python/metadata/metadata_writers/metadata_info.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/text_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ks/python/metadata/metadata_writers/image_segmenter.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …tasks/python/metadata/metadata_writers/writer_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | mediapipe/model_maker/python/core/data/data_util.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/model_maker/python/vision/core/image_preprocessing.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | mediapipe/model_maker/python/vision/core/image_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …er/python/vision/gesture_recognizer/metadata_writer.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …thon/vision/gesture_recognizer/metadata_writer_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …odel_maker/python/text/text_classifier/preprocessor.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | .github/bot_config.yml | 14 | # ============================================================================ | COMMENT |
| MEDIUM | .github/workflows/stale.yaml | 14 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …e/tasks/python/test/vision/holistic_landmarker_test.py | 342 | # Performs holistic landmarks detection on the input. | COMMENT |
| MEDIUM⚡ | …e/tasks/python/test/vision/holistic_landmarker_test.py | 361 | # Performs holistic landmarks detection on the input. | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 266 | # Creates holistic landmarker. | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 287 | # Performs holistic landmarks detection on the input. | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 296 | # Closes the holistic landmarker explicitly when the holistic landmarker is | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 321 | # Creates holistic landmarker. | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 469 | # Creates holistic landmarker. | COMMENT |
| MEDIUM | …e/tasks/python/test/vision/holistic_landmarker_test.py | 483 | # Performs holistic landmarks detection on the input. | COMMENT |
| MEDIUM | mediapipe/gpu/gl_calculator_helper.h | 223 | // calculator. This is the preferred way to utilize the memory pool inside of | COMMENT |
| MEDIUM | mediapipe/util/tracking/motion_analysis.h | 16 | // locally filtered (robust) feature tracking, camera motion estimation, and | COMMENT |
| MEDIUM | mediapipe/util/tracking/motion_estimation.h | 374 | // Replace each features irls weight by robust min-filtered irls weight | COMMENT |
| MEDIUM | mediapipe/framework/deps/status_macros.h | 21 | // with the goal of having a single, consistent, and robust implementation. | COMMENT |
| MEDIUM | mediapipe/web/graph_runner/graph_runner_webgpu.ts | 88 | // Our inference engines can utilize the adapter info to optimize WebGPU | COMMENT |
| MEDIUM | …maker/python/vision/object_detector/object_detector.py | 169 | # TODO: Refactor this method to utilize shared training function | COMMENT |
| MEDIUM | …sktop/autoflip/calculators/scene_cropping_calculator.h | 62 | // target aspect ratio, padding will be applied. In this case, a seamless | COMMENT |
| MEDIUM | mediapipe/calculators/tensor/tensor_span.h | 26 | // *without* making any deep-copies or keeping any memory alive. Essentially | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …pipe/tasks/vision/facedetector/FaceDetectorResult.java | 44 | com.google.mediapipe.tasks.components.containers.Detection.createFromProto( | CODE |
| CRITICAL | …/vision/gesturerecognizer/GestureRecognizerResult.java | 60 | com.google.mediapipe.tasks.components.containers.NormalizedLandmark.create( | CODE |
| CRITICAL | …/vision/gesturerecognizer/GestureRecognizerResult.java | 71 | com.google.mediapipe.tasks.components.containers.Landmark.create( | CODE |
| CRITICAL | …/tasks/vision/objectdetector/ObjectDetectorResult.java | 38 | com.google.mediapipe.tasks.components.containers.Detection.createFromProto( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …cognizer/calculators/handedness_to_matrix_calculator.h | 38 | // Usage example: | COMMENT |
| LOW | …ecognizer/calculators/landmarks_to_matrix_calculator.h | 35 | // Usage example: | COMMENT |
| LOW | …ecognizer/calculators/combined_prediction_calculator.h | 37 | // Usage example: | COMMENT |
| LOW | …enter/calculators/tensors_to_segmentation_calculator.h | 40 | // Usage example: | COMMENT |
| LOW | …s/cc/components/processors/image_preprocessing_graph.h | 34 | // Example usage: | COMMENT |
| LOW | …components/processors/detection_postprocessing_graph.h | 31 | // Example usage: | COMMENT |
| LOW | …nents/processors/classification_postprocessing_graph.h | 34 | // Example usage: | COMMENT |
| LOW | …ks/cc/components/processors/text_preprocessing_graph.h | 32 | // Example usage: | COMMENT |
| LOW | …components/processors/embedding_postprocessing_graph.h | 33 | // Example usage: | COMMENT |
| LOW | mediapipe/gpu/gl_app_texture_support.h | 41 | // Usage example: | COMMENT |
| LOW | mediapipe/gpu/gl_app_texture_support.h | 86 | // Usage example: | COMMENT |
| LOW | mediapipe/util/annotation_renderer.h | 28 | // Example usage: | COMMENT |
| LOW | mediapipe/util/tracking/region_flow.h | 381 | // Usage example: | COMMENT |
| LOW | mediapipe/util/tracking/motion_analysis.h | 21 | // Usage example: | COMMENT |
| LOW | mediapipe/util/tracking/tracking.h | 267 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/memory_manager.h | 33 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/packet.h | 176 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/deps/requires.h | 26 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/deps/registration_token.h | 30 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/deps/mathutil.h | 47 | // Example usage: | COMMENT |
| LOW | mediapipe/framework/tool/sink.h | 68 | // Example usage: | COMMENT |
| LOW | …esktop/autoflip/quality/scene_camera_motion_analyzer.h | 41 | // Example usage: | COMMENT |
| LOW | …pipe/examples/desktop/autoflip/quality/scene_cropper.h | 40 | // Example usage: | COMMENT |
| LOW | …iapipe/calculators/util/filter_collection_calculator.h | 34 | // Example usage: | COMMENT |
| LOW | mediapipe/calculators/image/warp_affine_calculator.h | 57 | // Usage example: | COMMENT |
| LOW | …alculators/tensor/tensors_to_segmentation_calculator.h | 41 | // Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/python/core/mediapipe_c_utils.py | 169 | CODE | |
| LOW | mediapipe/tasks/python/test/test_utils.py | 121 | CODE | |
| LOW | …ks/python/metadata/metadata_writers/metadata_writer.py | 776 | CODE | |
| LOW | …asks/python/metadata/metadata_writers/metadata_info.py | 411 | CODE | |
| LOW | mediapipe/python/solution_base.py | 109 | CODE | |
| LOW | mediapipe/python/solution_base.py | 300 | CODE | |
| LOW | mediapipe/python/solution_base.py | 469 | CODE | |
| LOW | mediapipe/python/solution_base.py | 491 | CODE | |
| LOW | mediapipe/python/solutions/face_mesh_test.py | 133 | CODE | |
| LOW | mediapipe/python/solutions/hands_test.py | 131 | CODE | |
| LOW | mediapipe/model_maker/python/core/utils/hub_loader.py | 45 | CODE | |
| LOW | mediapipe/model_maker/python/core/utils/file_util.py | 47 | CODE | |
| LOW | …ker/python/vision/image_classifier/image_classifier.py | 39 | CODE | |
| LOW | …ython/vision/image_classifier/image_classifier_demo.py | 55 | CODE | |
| LOW | …l_maker/python/text/text_classifier/text_classifier.py | 579 | CODE | |
| LOW | …iapipe/examples/desktop/media_sequence/demo_dataset.py | 175 | CODE | |
| LOW | …pe/examples/desktop/media_sequence/kinetics_dataset.py | 224 | CODE | |
| LOW | …pe/examples/desktop/media_sequence/kinetics_dataset.py | 286 | CODE | |
| LOW | …pe/examples/desktop/media_sequence/kinetics_dataset.py | 329 | CODE | |
| LOW | …pe/examples/desktop/media_sequence/charades_dataset.py | 245 | CODE | |
| LOW | …pe/examples/desktop/media_sequence/charades_dataset.py | 291 | CODE | |
| LOW | mediapipe/examples/desktop/youtube8m/viewer/server.py | 101 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/python/benchmark/vision/benchmark.py | 72 | # Check if the mode is supported and get the argument dictionary | COMMENT |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 228 | # Check if data type of `category_mask` is correct. | COMMENT |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 281 | # Check if confidence mask shape is correct. | COMMENT |
| LOW | …ython/test/vision/interactive_segmenter_legacy_test.py | 320 | # Check if confidence mask shape is correct. | COMMENT |
| LOW | …apipe/tasks/python/test/vision/image_segmenter_test.py | 208 | # Check if data type of `category_mask` is correct. | COMMENT |
| LOW | …apipe/tasks/python/test/vision/image_segmenter_test.py | 243 | # Check if confidence mask shape is correct. | COMMENT |
| LOW | …apipe/tasks/python/test/vision/image_segmenter_test.py | 381 | # Check if confidence mask shape is correct. | COMMENT |
| LOW | …apipe/tasks/python/test/vision/image_segmenter_test.py | 492 | # Check if confidence mask shape is correct. | COMMENT |
| LOW | mediapipe/tasks/python/test/metadata/metadata_test.py | 277 | # Check if the model buffer read from file is the same as that read from | COMMENT |
| LOW | mediapipe/tasks/python/test/metadata/metadata_test.py | 331 | # Check if the model buffer read from file is the same as that read from | COMMENT |
| LOW | mediapipe/tasks/python/metadata/metadata.py | 657 | # Check if metadata has already been populated. | COMMENT |
| LOW | mediapipe/tasks/python/metadata/metadata.py | 712 | # Verify if the number of tensor metadata matches the number of tensors. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/python/core/async_result_dispatcher.py | 161 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | mediapipe/tasks/python/core/async_result_dispatcher.py | 173 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | mediapipe/tasks/python/metadata/metadata.py | 149 | except Exception: | CODE |
| LOW | mediapipe/tasks/python/metadata/metadata.py | 163 | except Exception as e: | CODE |
| LOW | mediapipe/examples/ios/link_local_profiles.py | 88 | except Exception: # pylint: disable=broad-except | CODE |
| MEDIUM | mediapipe/examples/ios/link_local_profiles.py | 159 | print("Error: Unable to find any provisioning profiles " + | CODE |
| MEDIUM | mediapipe/examples/ios/link_local_profiles.py | 82 | def get_app_id(profile_path) -> Optional[str]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …asks/python/metadata/metadata_writers/metadata_info.py | 391 | CODE | |
| LOW | …asks/python/metadata/metadata_writers/metadata_info.py | 757 | CODE | |
| LOW | mediapipe/python/solution_base.py | 204 | CODE | |
| LOW | mediapipe/python/solutions/objectron.py | 172 | CODE | |
| LOW | mediapipe/python/solutions/pose_test.py | 127 | CODE | |
| LOW | mediapipe/python/solutions/holistic.py | 77 | CODE | |
| LOW | mediapipe/python/solutions/pose.py | 117 | CODE | |
| LOW | mediapipe/model_maker/python/core/utils/quantization.py | 64 | CODE | |
| LOW | …ython/vision/image_classifier/image_classifier_test.py | 57 | CODE | |
| LOW | …n/vision/gesture_recognizer/gesture_recognizer_test.py | 42 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …pipe/tasks/python/test/audio/core/audio_record_test.py | 77 | dummy_data = np.random.rand(chunk_size, _CHANNELS).astype(float) | CODE |
| LOW⚡ | …pipe/tasks/python/test/audio/core/audio_record_test.py | 78 | input_data.append(dummy_data) | CODE |
| LOW⚡ | …pipe/tasks/python/test/audio/core/audio_record_test.py | 79 | callback_fn(dummy_data) | CODE |
| LOW⚡ | …pipe/tasks/python/test/audio/core/audio_record_test.py | 95 | dummy_data = np.zeros([_BUFFER_SIZE, 1], dtype=float) | CODE |
| LOW⚡ | …pipe/tasks/python/test/audio/core/audio_record_test.py | 96 | callback_fn(dummy_data) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mediapipe/util/tracking/region_flow.h | 451 | // track with a direction as requested by the flow direction of the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/web/vision/core/drawing_utils.test.ts | 203 | // TODO: Add tests for drawConnectors/drawLandmarks/drawBoundingBox | COMMENT |
| LOW | mediapipe/gpu/webgpu/webgpu_texture_buffer.h | 65 | // TODO: implement. | COMMENT |
| LOW | mediapipe/framework/api2/contract.h | 357 | // TODO: implement multiple callers for syncsets. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/model_maker/python/text/text_classifier/model_spec.py | 40 | # `learning_rate` is unused for the average word embedding model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …e/tasks/web/genai/llm_inference/model_loading_utils.ts | 50 | // cancel() may be called at any time, so we need to check if this | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mediapipe/tasks/python/vision/interactive_segmenter.py | 195 | def set_image(self, image: image_module.Image) -> None: | CODE |