AI Slop Code RIsk Monitor

ageitgey/face_recognition

The world's simplest facial recognition api for Python and the command line

23.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ageitgey/face_recognition, a Python project with 56,811 GitHub stars. SynthScan examined 4,699 lines of code across 44 source files, recording 78 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 23.3 (Elevated 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.

23.3
Adjusted Signal
23.3
Raw Pattern Score
100%
Time Factor
2026-06-25
Last Push
56.8K
Stars
Python
Language
4.7K
Lines of Code
44
Files
78
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 64.9/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 10.1/100 · LOW

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

Agent Over-Engineering Ratio 24.6/100 · LOW

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

PR Review Velocity Impact 65.5/100 · HIGH

Which changes need focused human review? 78 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 0HIGH 0MEDIUM 11LOW 67

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 78 distinct pattern matches across 9 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.

Self-Referential Comments11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMexamples/facerec_from_webcam_faster.py35# Initialize some variablesCOMMENT
MEDIUMexamples/blur_faces_on_webcam.py13# Initialize some variablesCOMMENT
MEDIUMexamples/identify_and_draw_boxes_on_faces.py36# Create a Pillow ImageDraw Draw instance to draw withCOMMENT
MEDIUMexamples/facerec_from_webcam_multiprocessing.py143 # Create a thread to capture frames (if uses subprocess, it will crash on Mac)COMMENT
MEDIUMexamples/facerec_from_video_file.py14# Create an output movie file (make sure resolution/frame rate matches input video!)COMMENT
MEDIUMexamples/facerec_from_video_file.py30# Initialize some variablesCOMMENT
MEDIUMexamples/find_faces_in_picture.py8# This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated.COMMENT
MEDIUMexamples/facerec_on_raspberry_pi.py25# Initialize some variablesCOMMENT
MEDIUMexamples/find_faces_in_picture_cnn.py8# This method is more accurate than the default HOG model, but it's slowerCOMMENT
MEDIUMexamples/find_facial_features_in_picture.py12# Create a PIL imagedraw object so we can draw on the pictureCOMMENT
Hyper-Verbose Identifiers24 hits · 26 pts
SeverityFileLineSnippetContext
LOWface_recognition/api.py124def _raw_face_locations_batched(images, number_of_times_to_upsample=1, batch_size=128):CODE
LOWface_recognition/api.py146 def convert_cnn_detections_to_css(detections):CODE
LOWface_recognition/face_detection_cli.py29def process_images_in_process_pool(images_to_check, number_of_cpus, model, upsample):CODE
LOWface_recognition/face_recognition_cli.py71def process_images_in_process_pool(images_to_check, known_names, known_face_encodings, number_of_cpus, tolerance, show_dCODE
LOWtests/test_face_recognition.py40 def test_cnn_raw_face_locations(self):CODE
LOWtests/test_face_recognition.py81 def test_partial_face_locations(self):CODE
LOWtests/test_face_recognition.py94 def test_raw_face_locations_batched(self):CODE
LOWtests/test_face_recognition.py104 def test_batched_face_locations(self):CODE
LOWtests/test_face_recognition.py139 def test_face_landmarks_small_model(self):CODE
LOWtests/test_face_recognition.py155 def test_face_encodings_large_model(self):CODE
LOWtests/test_face_recognition.py188 def test_face_distance_empty_lists(self):CODE
LOWtests/test_face_recognition.py230 def test_compare_faces_empty_lists(self):CODE
LOWtests/test_face_recognition.py248 def test_command_line_interface_options(self):CODE
LOWtests/test_face_recognition.py255 def test_command_line_interface(self):CODE
LOWtests/test_face_recognition.py266 def test_command_line_interface_big_image(self):CODE
LOWtests/test_face_recognition.py277 def test_command_line_interface_tolerance(self):CODE
LOWtests/test_face_recognition.py288 def test_command_line_interface_show_distance(self):CODE
LOW⚡tests/test_face_recognition.py299 def test_fd_command_line_interface_options(self):CODE
LOW⚡tests/test_face_recognition.py306 def test_fd_command_line_interface(self):CODE
LOW⚡tests/test_face_recognition.py316 def test_fd_command_line_interface_folder(self):CODE
LOWtests/test_face_recognition.py328 def test_fd_command_line_interface_hog_model(self):CODE
LOWtests/test_face_recognition.py337 def test_fd_command_line_interface_cnn_model(self):CODE
LOWexamples/face_recognition_knn.py153def show_prediction_labels_on_image(img_path, predictions):CODE
LOWexamples/facerec_ipcamera_knn.py153def show_prediction_labels_on_image(frame, predictions):CODE
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippetContext
LOWexamples/web_service_example.py35 # Check if a valid image file was uploadedCOMMENT
LOWexamples/facerec_from_webcam.py70 # Display the resulting imageCOMMENT
LOWexamples/facerec_from_webcam_faster.py79 # Display the resultsCOMMENT
LOWexamples/facerec_from_webcam_faster.py95 # Display the resulting imageCOMMENT
LOWexamples/face_recognition_knn.py180 # Display the resulting imageCOMMENT
LOWexamples/face_recognition_knn.py201 # Print results on the consoleCOMMENT
LOWexamples/face_recognition_knn.py205 # Display results overlaid on an imageCOMMENT
LOWexamples/blur_faces_on_webcam.py26 # Display the resultsCOMMENT
LOWexamples/blur_faces_on_webcam.py43 # Display the resulting imageCOMMENT
LOWexamples/identify_and_draw_boxes_on_faces.py69# Display the resulting imageCOMMENT
LOWexamples/facerec_from_webcam_multiprocessing.py201 # Display the resulting imageCOMMENT
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py1#!/usr/bin/env pythonCOMMENT
LOWdocs/conf.py61#source_encoding = 'utf-8-sig'COMMENT
LOWdocs/conf.py81#language = NoneCOMMENT
LOWdocs/conf.py101# unit titles (such as .. function::).COMMENT
LOWdocs/conf.py121# The theme to use for HTML and HTML Help pages. See the documentation forCOMMENT
LOWdocs/conf.py141# The name of an image file (relative to this directory) to place at theCOMMENT
LOWdocs/conf.py161# typographically correct entities.COMMENT
LOWdocs/conf.py181#html_show_sourcelink = TrueCOMMENT
LOWdocs/conf.py221 u'Face Recognition Documentation',COMMENT
LOWdocs/conf.py281#texinfo_show_urls = 'footnote'COMMENT
LOWexamples/web_service_example_Simplified_Chinese.py1# 这是一个非常简单的使用Web服务上传图片运行人脸识别的案例,后端服务器会识别这张图片是不是奥巴马,并把识别结果以json键值对输出COMMENT
LOWexamples/web_service_example.py1# This is a _very simple_ example of a web service that recognizes faces in uploaded images.COMMENT
LOWexamples/find_faces_in_batches.py1import face_recognitionCOMMENT
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/__init__.py7CODE
LOWface_recognition/face_detection_cli.py2CODE
LOWface_recognition/face_recognition_cli.py2CODE
LOWexamples/blink_detection.py16CODE
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/facerec_from_webcam.py51 # If a match was found in known_face_encodings, just use the first one.COMMENT
LOWexamples/facerec_from_webcam_faster.py63 # # If a match was found in known_face_encodings, just use the first one.COMMENT
LOWexamples/identify_and_draw_boxes_on_faces.py46 # If a match was found in known_face_encodings, just use the first one.COMMENT
LOWexamples/facerec_from_webcam_multiprocessing.py94 # If a match was found in known_face_encodings, just use the first one.COMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/face_recognition_knn.py46CODE
LOWexamples/facerec_ipcamera_knn.py51CODE
LOWexamples/blink_detection.py21CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/facerec_on_raspberry_pi.py14# If this fails, make sure you have a camera connected to the RPi and that youCOMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWface_recognition/api.py10except Exception:CODE