Repository Analysis

hacksider/Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image

35.3 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of hacksider/Deep-Live-Cam, a Python project with 96,186 GitHub stars. SynthScan v2.0 examined 9,609 lines of code across 55 source files, recording 206 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 35.3 places this repository in the Strong 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).

35.3
Adjusted Score
35.3
Raw Score
100%
Time Factor
2026-08-26
Last Push
96.2K
Stars
Python
Language
9.6K
Lines of Code
55
Files
206
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 77LOW 129

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 206 distinct pattern matches across 10 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.

Decorative Section Separators49 hits · 148 pts
SeverityFileLineSnippetContext
MEDIUMmodules/ui.py85# ─── constants ────────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py109# ─── modern dark stylesheet ───────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py253# ─── image utilities ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py309# ─── persistence ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py364# ─── thread-safe status bridge ───────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py380# ─── public API ──────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py410# ─── camera enumeration (unchanged from tk version) ──────────────────────COMMENT
MEDIUMmodules/ui.py440# ─── main window ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py523 # ── image row ────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py577 # ── options card ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py645 # ── sliders card ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py686 # ── action row ───────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py709 # ── camera card ──────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py737 # ── slot handlers ────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py964# ─── preview window (still-image / video scrub) ──────────────────────────COMMENT
MEDIUMmodules/ui.py1017# ─── webcam preview window ───────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py1269# ─── mapper dialogs (image/video + live) ────────────────────────────────COMMENT
MEDIUMmodules/ui.py1516# ─── entry point ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py216# ─── module-level state ───────────────────────────────────────────────────STRING
MEDIUMmodules/gpu_processing.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py181# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py183# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py251# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py277# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/gpu_processing.py279# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py99# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py215# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py351# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py353# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py426# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py437# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py531# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/onnx_optimize.py533# ---------------------------------------------------------------------------COMMENT
MEDIUMmodules/processors/frame/face_swapper.py1108# ==========================COMMENT
MEDIUMmodules/processors/frame/face_swapper.py1110# ==========================COMMENT
Excessive Try-Catch Wrapping78 hits · 88 pts
SeverityFileLineSnippetContext
LOWmodules/face_analyser.py218 except Exception as e: # pragma: no cover - never break the swapCODE
MEDIUMmodules/face_analyser.py219 print(f"Error computing 2d106 landmarks: {e}")CODE
MEDIUMmodules/ui.py422 print(f"Error detecting cameras: {exc}")CODE
LOWmodules/ui.py1244 except Exception:CODE
LOWmodules/ui.py1249 except Exception:CODE
LOWmodules/ui.py1253 except Exception:CODE
LOWmodules/ui.py421 except Exception as exc:CODE
LOWmodules/ui.py807 except Exception as exc:CODE
LOWmodules/__init__.py19 except Exception:CODE
LOWmodules/__init__.py37 except Exception:CODE
MEDIUMmodules/__init__.py13def imread_unicode(path, flags=cv2.IMREAD_COLOR):CODE
MEDIUMmodules/__init__.py27def imwrite_unicode(path, img, params=None):CODE
LOWmodules/core.py228 except Exception as e:CODE
MEDIUMmodules/core.py229 print("Error copying file:", str(e))CODE
LOWmodules/gpu_processing.py48 except Exception:CODE
LOWmodules/platform_info.py26 except Exception:CODE
LOWmodules/platform_info.py34 except Exception:CODE
MEDIUMmodules/platform_info.py22def _detect_torch_cuda() -> bool:CODE
MEDIUMmodules/platform_info.py30def _detect_onnx_providers() -> List[str]:CODE
LOWmodules/utilities.py37 except Exception as error:CODE
LOWmodules/utilities.py59 except Exception:CODE
LOWmodules/utilities.py352 except Exception:CODE
LOWmodules/video_capture.py72 except Exception:CODE
LOWmodules/video_capture.py109 except Exception as e:CODE
LOWmodules/video_capture.py155 except Exception:CODE
LOWmodules/onnx_optimize.py124 except Exception:CODE
LOWmodules/processors/frame/face_enhancer.py112 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer.py375 except Exception as e:CODE
LOWmodules/processors/frame/core.py71 except Exception as e:CODE
LOWmodules/processors/frame/core.py81 except Exception as e:CODE
LOWmodules/processors/frame/core.py106 except Exception as e:CODE
MEDIUMmodules/processors/frame/core.py107 print(f"Error processing frame: {e}")CODE
LOWmodules/processors/frame/core.py159 except Exception as e:CODE
LOWmodules/processors/frame/core.py312 except Exception as e:CODE
LOWmodules/processors/frame/core.py318 except Exception:CODE
LOWmodules/processors/frame/core.py398 except Exception as e:CODE
LOWmodules/processors/frame/core.py406 except Exception:CODE
LOWmodules/processors/frame/face_enhancer_gpen512.py49 except Exception as error:CODE
LOWmodules/processors/frame/face_enhancer_gpen512.py93 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer_gpen512.py98 except Exception as e:CODE
LOWmodules/processors/frame/_onnx_enhancer.py89 except Exception:CODE
LOWmodules/processors/frame/_onnx_enhancer.py114 except Exception:CODE
LOWmodules/processors/frame/_onnx_enhancer.py140 except Exception as e:CODE
LOWmodules/processors/frame/face_masking.py411 except Exception as e:CODE
LOWmodules/processors/frame/face_masking.py503 except Exception as e:CODE
LOWmodules/processors/frame/face_masking.py543 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer_gpen256.py49 except Exception as error:CODE
LOWmodules/processors/frame/face_enhancer_gpen256.py93 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer_gpen256.py98 except Exception as e:CODE
MEDIUMmodules/processors/frame/face_swapper.py574 print(f"Error during face swap: {e}")CODE
MEDIUMmodules/processors/frame/face_swapper.py1237 print(f"Error in create_lower_mouth_mask: {e}") # Print unexpected errorsCODE
MEDIUMmodules/processors/frame/face_swapper.py1296 # print(f"Error drawing text for visualization: {e}") # Optional debugCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1397 print(f"Error applying mouth area: {e}") # Optional debugCODE
MEDIUMmodules/processors/frame/face_swapper.py1476 print(f"Error creating convex hull for face mask: {hull_e}")CODE
MEDIUMmodules/processors/frame/face_swapper.py1283 print(f"Error drawing polygon for visualization: {e}") # Optional debugCODE
MEDIUMmodules/processors/frame/face_swapper.py1493 print(f"Error creating face mask: {e}") # Print unexpected errorsCODE
LOWmodules/processors/frame/face_swapper.py573 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1236 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1396 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1475 except Exception as hull_e:CODE
18 more matches not shown…
Self-Referential Comments12 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMtkinter_fix.py8 # Create a monkey patch for the internal _tkinter moduleCOMMENT
MEDIUMtkinter_fix.py15 # Define the missing ::tk::ScreenChanged procedureCOMMENT
MEDIUMmodules/tkinter_fix.py5 # Create a monkey patch for the internal _tkinter moduleCOMMENT
MEDIUMmodules/tkinter_fix.py12 # Define the missing ::tk::ScreenChanged procedureCOMMENT
MEDIUMmodules/utilities.py297 # Create a specific SSL context for macOS to avoid globally disabling verificationCOMMENT
MEDIUMmodules/processors/frame/face_masking.py55 # Create a slightly larger convex hull for paddingCOMMENT
MEDIUMmodules/processors/frame/face_masking.py129 # Create the maskCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py581 # Create a mask for the target faceCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py584 # Create the mouth mask using the ORIGINAL frame (before swap) for cutoutCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1205 # Create the mask ROICOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1330 # Define the Region of Interest (ROI) on the target frame (swapped frame)COMMENT
MEDIUMmodules/processors/frame/face_swapper.py1368 # Create a mask based on the mouth_polygon, relative to the ROICOMMENT
Hyper-Verbose Identifiers18 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/test_face_analyser_get_one_face.py59 def test_uses_supplied_detected_faces_without_reanalysing_frame(self):CODE
LOWtests/test_face_analyser_get_one_face.py71 def test_supplied_empty_detected_faces_returns_none(self):CODE
LOWtests/test_face_analyser_get_one_face.py81 def test_without_supplied_faces_preserves_existing_detection_path(self):CODE
LOWtests/test_core_map_faces_fallback.py10def _patched_core_import_stubs(calls, pipe_result=False):CODE
LOWtests/test_core_map_faces_fallback.py99 def test_map_faces_disk_fallback_extracts_frames_before_processing(self):CODE
LOWtests/test_core_map_faces_fallback.py123 def test_non_map_faces_pipe_success_does_not_extract_frames(self):CODE
LOWmodules/face_analyser.py257def get_unique_faces_from_target_image() -> Any:CODE
LOWmodules/face_analyser.py280def get_unique_faces_from_target_video() -> Any:CODE
LOWmodules/core.py125def encode_execution_providers(execution_providers: List[str]) -> List[str]:CODE
LOWmodules/core.py129def decode_execution_providers(execution_providers: List[str]) -> List[str]:CODE
LOWmodules/core.py140def suggest_default_execution_provider() -> str:CODE
LOWmodules/core.py149def suggest_execution_providers() -> List[str]:CODE
LOWmodules/core.py153def suggest_execution_threads() -> int:CODE
LOWmodules/processors/frame/core.py32def load_frame_processor_module(frame_processor: str) -> Any:CODE
LOWmodules/processors/frame/core.py48def get_frame_processors_modules(frame_processors: List[str]) -> List[ModuleType]:CODE
LOWmodules/processors/frame/core.py58def set_frame_processors_modules_from_ui(frame_processors: List[str]) -> None:CODE
LOWmodules/processors/frame/face_swapper.py1246def draw_mouth_mask_visualization(CODE
LOWmodules/processors/frame/face_swapper.py440def _cuda_graph_swap_inference(blob: np.ndarray, latent: np.ndarray) -> np.ndarray:CODE
Deep Nesting22 hits · 18 pts
SeverityFileLineSnippetContext
LOWmodules/face_analyser.py331CODE
LOWmodules/face_analyser.py359CODE
LOWmodules/ui.py1058CODE
LOWmodules/model_downloader.py67CODE
LOWmodules/utilities.py80CODE
LOWmodules/utilities.py287CODE
LOWmodules/video_capture.py36CODE
LOWmodules/onnx_optimize.py217CODE
LOWmodules/onnx_optimize.py355CODE
LOWmodules/onnx_optimize.py439CODE
LOWmodules/processors/frame/face_enhancer.py294CODE
LOWmodules/processors/frame/core.py58CODE
LOWmodules/processors/frame/core.py84CODE
LOWmodules/processors/frame/core.py118CODE
LOWmodules/processors/frame/core.py258CODE
LOWmodules/processors/frame/_onnx_enhancer.py25CODE
LOWmodules/processors/frame/face_swapper.py68CODE
LOWmodules/processors/frame/face_swapper.py233CODE
LOWmodules/processors/frame/face_swapper.py746CODE
LOWmodules/processors/frame/face_swapper.py783CODE
LOWmodules/processors/frame/face_swapper.py912CODE
LOWmodules/processors/frame/face_swapper.py1029CODE
Redundant / Tautological Comments8 hits · 8 pts
SeverityFileLineSnippetContext
LOWmodules/processors/frame/face_swapper.py580 if mouth_mask_enabled: # Check if mouth_mask is enabledCODE
LOWmodules/processors/frame/face_swapper.py802 # Check if target is a file path (image or video) or live streamCOMMENT
LOWmodules/processors/frame/face_swapper.py814 if target_info: # Check if target info existsCODE
LOWmodules/processors/frame/face_swapper.py821 if target_frames_data: # Check if frame data existsCODE
LOWmodules/processors/frame/face_swapper.py825 if faces_in_frame: # Check if faces existCODE
LOWmodules/processors/frame/face_swapper.py996 # Check if processing actually returned a frameCOMMENT
LOWmodules/processors/frame/face_swapper.py1257 # Check if polygon is valid for drawingCOMMENT
LOWmodules/processors/frame/face_swapper.py1353 # Check if mouth_cutout has valid dimensions before resizingCOMMENT
Modern Structural Boilerplate8 hits · 6 pts
SeverityFileLineSnippetContext
LOWmodules/ui.py383def update_status(text: str) -> None:CODE
LOWmodules/ui.py739 def set_status(self, text: str) -> None:CODE
LOWmodules/ui.py955def _update_tumbler(var: str, value: bool) -> None:CODE
LOWmodules/ui.py1305 def set_status(self, text: str) -> None:CODE
LOWmodules/ui.py1405 def set_status(self, text: str) -> None:CODE
LOWmodules/core.py206def update_status(message: str, scope: str = 'DLC.CORE') -> None:CODE
LOWmodules/video_capture.py158 def set_frame_callback(self, callback: Callable[[np.ndarray], None]) -> None:CODE
LOWmodules/processors/frame/core.py58def set_frame_processors_modules_from_ui(frame_processors: List[str]) -> None:CODE
AI Slop Vocabulary3 hits · 5 pts
SeverityFileLineSnippetContext
LOWmodules/processors/frame/face_swapper.py1470 # Fallback: use bounding box of landmarks? Or just return empty mask?COMMENT
MEDIUMmodules/processors/frame/face_swapper.py124 pass # fall through to the robust bbox-ellipse path belowCODE
LOWmodules/processors/frame/face_swapper.py1400 pass # Don't crash, just return the frame as isCODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWmodules/gpu_processing.py21import osCOMMENT
LOWmodules/video_capture.py41 # enumeration), so open with DSHOW first to preserve mapping.COMMENT
LOWmodules/onnx_optimize.py421 del graph.node[:]COMMENT
LOWmodules/processors/frame/face_swapper.py1121 if face is None or not hasattr(face, 'landmark_2d_106'):COMMENT
Unused Imports4 hits · 3 pts
SeverityFileLineSnippetContext
LOWmodules/run.py4CODE
LOWmodules/ui.py11CODE
LOWmodules/gpu_processing.py19CODE
LOWmodules/platform_info.py10CODE