Repository Analysis

hacksider/Deep-Live-Cam

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

36.6 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 94,883 GitHub stars. SynthScan v2.0 examined 9,080 lines of code across 53 source files, recording 200 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 36.6 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).

36.6
Adjusted Score
36.6
Raw Score
100%
Time Factor
2026-07-06
Last Push
94.9K
Stars
Python
Language
9.1K
Lines of Code
53
Files
200
Pattern Hits
2026-07-14
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 123

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 200 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.py241# ─── image utilities ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py297# ─── persistence ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py352# ─── thread-safe status bridge ───────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py368# ─── public API ──────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py398# ─── camera enumeration (unchanged from tk version) ──────────────────────COMMENT
MEDIUMmodules/ui.py428# ─── main window ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py511 # ── image row ────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py565 # ── options card ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py633 # ── sliders card ─────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py674 # ── action row ───────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py697 # ── camera card ──────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py725 # ── slot handlers ────────────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py952# ─── preview window (still-image / video scrub) ──────────────────────────COMMENT
MEDIUMmodules/ui.py1005# ─── webcam preview window ───────────────────────────────────────────────COMMENT
MEDIUMmodules/ui.py1257# ─── mapper dialogs (image/video + live) ────────────────────────────────COMMENT
MEDIUMmodules/ui.py1504# ─── 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.py1097# ==========================COMMENT
MEDIUMmodules/processors/frame/face_swapper.py1099# ==========================COMMENT
Excessive Try-Catch Wrapping76 hits · 86 pts
SeverityFileLineSnippetContext
LOWmodules/face_analyser.py215 except Exception as e: # pragma: no cover - never break the swapCODE
MEDIUMmodules/face_analyser.py216 print(f"Error computing 2d106 landmarks: {e}")CODE
MEDIUMmodules/ui.py410 print(f"Error detecting cameras: {exc}")CODE
LOWmodules/ui.py1232 except Exception:CODE
LOWmodules/ui.py1237 except Exception:CODE
LOWmodules/ui.py1241 except Exception:CODE
LOWmodules/ui.py409 except Exception as exc:CODE
LOWmodules/ui.py795 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.py220 except Exception as e:CODE
MEDIUMmodules/core.py221 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.py347 except Exception:CODE
LOWmodules/video_capture.py72 except Exception:CODE
LOWmodules/video_capture.py108 except Exception as e:CODE
LOWmodules/video_capture.py154 except Exception:CODE
LOWmodules/onnx_optimize.py124 except Exception:CODE
LOWmodules/processors/frame/face_enhancer.py106 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer.py369 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.py73 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer_gpen512.py78 except Exception as e:CODE
LOWmodules/processors/frame/_onnx_enhancer.py85 except Exception:CODE
LOWmodules/processors/frame/_onnx_enhancer.py110 except Exception:CODE
LOWmodules/processors/frame/_onnx_enhancer.py136 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.py73 except Exception as e:CODE
LOWmodules/processors/frame/face_enhancer_gpen256.py78 except Exception as e:CODE
MEDIUMmodules/processors/frame/face_swapper.py563 print(f"Error during face swap: {e}")CODE
MEDIUMmodules/processors/frame/face_swapper.py1226 print(f"Error in create_lower_mouth_mask: {e}") # Print unexpected errorsCODE
MEDIUMmodules/processors/frame/face_swapper.py1285 # print(f"Error drawing text for visualization: {e}") # Optional debugCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1386 print(f"Error applying mouth area: {e}") # Optional debugCODE
MEDIUMmodules/processors/frame/face_swapper.py1465 print(f"Error creating convex hull for face mask: {hull_e}")CODE
MEDIUMmodules/processors/frame/face_swapper.py1272 print(f"Error drawing polygon for visualization: {e}") # Optional debugCODE
MEDIUMmodules/processors/frame/face_swapper.py1482 print(f"Error creating face mask: {e}") # Print unexpected errorsCODE
LOWmodules/processors/frame/face_swapper.py562 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1225 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1385 except Exception as e:CODE
LOWmodules/processors/frame/face_swapper.py1464 except Exception as hull_e:CODE
LOWmodules/processors/frame/face_swapper.py123 except Exception:CODE
LOWmodules/processors/frame/face_swapper.py173 except Exception:CODE
16 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.py292 # 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.py570 # Create a mask for the target faceCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py573 # Create the mouth mask using the ORIGINAL frame (before swap) for cutoutCOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1194 # Create the mask ROICOMMENT
MEDIUMmodules/processors/frame/face_swapper.py1319 # Define the Region of Interest (ROI) on the target frame (swapped frame)COMMENT
MEDIUMmodules/processors/frame/face_swapper.py1357 # Create a mask based on the mouth_polygon, relative to the ROICOMMENT
Deep Nesting21 hits · 18 pts
SeverityFileLineSnippetContext
LOWmodules/face_analyser.py328CODE
LOWmodules/face_analyser.py353CODE
LOWmodules/ui.py1046CODE
LOWmodules/utilities.py80CODE
LOWmodules/utilities.py282CODE
LOWmodules/video_capture.py36CODE
LOWmodules/onnx_optimize.py217CODE
LOWmodules/onnx_optimize.py355CODE
LOWmodules/onnx_optimize.py439CODE
LOWmodules/processors/frame/face_enhancer.py288CODE
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.py24CODE
LOWmodules/processors/frame/face_swapper.py68CODE
LOWmodules/processors/frame/face_swapper.py228CODE
LOWmodules/processors/frame/face_swapper.py735CODE
LOWmodules/processors/frame/face_swapper.py772CODE
LOWmodules/processors/frame/face_swapper.py901CODE
LOWmodules/processors/frame/face_swapper.py1018CODE
Hyper-Verbose Identifiers15 hits · 17 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
LOWmodules/face_analyser.py254def get_unique_faces_from_target_image() -> Any:CODE
LOWmodules/face_analyser.py277def get_unique_faces_from_target_video() -> Any:CODE
LOWmodules/core.py119def encode_execution_providers(execution_providers: List[str]) -> List[str]:CODE
LOWmodules/core.py123def decode_execution_providers(execution_providers: List[str]) -> List[str]:CODE
LOWmodules/core.py134def suggest_default_execution_provider() -> str:CODE
LOWmodules/core.py143def suggest_execution_providers() -> List[str]:CODE
LOWmodules/core.py147def 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.py1235def draw_mouth_mask_visualization(CODE
LOWmodules/processors/frame/face_swapper.py429def _cuda_graph_swap_inference(blob: np.ndarray, latent: np.ndarray) -> np.ndarray:CODE
Redundant / Tautological Comments8 hits · 8 pts
SeverityFileLineSnippetContext
LOWmodules/processors/frame/face_swapper.py569 if mouth_mask_enabled: # Check if mouth_mask is enabledCODE
LOWmodules/processors/frame/face_swapper.py791 # Check if target is a file path (image or video) or live streamCOMMENT
LOWmodules/processors/frame/face_swapper.py803 if target_info: # Check if target info existsCODE
LOWmodules/processors/frame/face_swapper.py810 if target_frames_data: # Check if frame data existsCODE
LOWmodules/processors/frame/face_swapper.py814 if faces_in_frame: # Check if faces existCODE
LOWmodules/processors/frame/face_swapper.py985 # Check if processing actually returned a frameCOMMENT
LOWmodules/processors/frame/face_swapper.py1246 # Check if polygon is valid for drawingCOMMENT
LOWmodules/processors/frame/face_swapper.py1342 # Check if mouth_cutout has valid dimensions before resizingCOMMENT
Modern Structural Boilerplate8 hits · 6 pts
SeverityFileLineSnippetContext
LOWmodules/ui.py371def update_status(text: str) -> None:CODE
LOWmodules/ui.py727 def set_status(self, text: str) -> None:CODE
LOWmodules/ui.py943def _update_tumbler(var: str, value: bool) -> None:CODE
LOWmodules/ui.py1293 def set_status(self, text: str) -> None:CODE
LOWmodules/ui.py1393 def set_status(self, text: str) -> None:CODE
LOWmodules/core.py198def update_status(message: str, scope: str = 'DLC.CORE') -> None:CODE
LOWmodules/video_capture.py157 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.py1459 # 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.py1389 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 try: # Wrap main logic in try-exceptCOMMENT
Unused Imports4 hits · 3 pts
SeverityFileLineSnippetContext
LOWmodules/run.py4CODE
LOWmodules/ui.py11CODE
LOWmodules/gpu_processing.py19CODE
LOWmodules/platform_info.py10CODE