⚡️HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。
This report summarizes scanner evidence for Zeyi-Lin/HivisionIDPhotos, a Python project with 21,617 GitHub stars. SynthScan examined 10,148 lines of code across 57 source files, recording 56 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 5.8 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 36 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 26 finding(s).
Which changes need focused human review? 56 finding(s).
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.
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.
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.
The scanner identified 56 distinct pattern matches across 10 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy_api.py | 45 | CODE | |
| LOW | deploy_api.py | 239 | CODE | |
| LOW | deploy_api.py | 316 | CODE | |
| LOW | demo/processor.py | 28 | CODE | |
| LOW | demo/processor.py | 672 | CODE | |
| LOW | hivision/utils.py | 317 | CODE | |
| LOW | hivision/creator/__init__.py | 52 | CODE | |
| LOW | hivision/creator/context.py | 15 | CODE | |
| LOW | hivision/creator/tensor2numpy.py | 20 | CODE | |
| LOW | hivision/creator/tensor2numpy.py | 41 | CODE | |
| LOW | hivision/plugin/watermark.py | 25 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hivision/__init__.py | 1 | CODE | |
| LOW | hivision/__init__.py | 1 | CODE | |
| LOW | hivision/__init__.py | 1 | CODE | |
| LOW | hivision/creator/human_matting.py | 385 | CODE | |
| LOW | hivision/creator/choose_handler.py | 1 | CODE | |
| LOW | hivision/creator/choose_handler.py | 2 | CODE | |
| LOW | hivision/creator/retinaface/__init__.py | 1 | CODE | |
| LOW | hivision/plugin/beauty/grind_skin.py | 3 | CODE | |
| LOW | hivision/plugin/beauty/__init__.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/ui.py | 273 | "placeholder" | CODE |
| LOW | demo/ui.py | 498 | placeholder=LOCALES["watermark_text"][language]["placeholder"], | CODE |
| LOW⚡ | demo/locales.py | 359 | "placeholder": "up to 20 characters", | CODE |
| LOW⚡ | demo/locales.py | 364 | "placeholder": "最多20个字符", | CODE |
| LOW⚡ | demo/locales.py | 369 | "placeholder": "最大20文字", | CODE |
| LOW⚡ | demo/locales.py | 374 | "placeholder": "최대 20자", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/ui.py | 22 | CODE | |
| LOW | demo/processor.py | 243 | CODE | |
| LOW | demo/processor.py | 533 | CODE | |
| LOW | hivision/utils.py | 35 | CODE | |
| LOW | hivision/utils.py | 97 | CODE | |
| LOW | hivision/creator/choose_handler.py | 15 | CODE | |
| LOW | hivision/creator/face_detector.py | 79 | CODE | |
| LOW | hivision/creator/retinaface/prior_box.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/ui.py | 319 | def update_watermark_text_visibility(choice, language): | CODE |
| LOW | demo/processor.py | 323 | def _handle_photo_generation_error(self, language): | CODE |
| LOW | hivision/utils.py | 319 | def add_background_with_image(input_image: np.ndarray, background_image: np.ndarray) -> np.ndarray: | CODE |
| LOW | hivision/creator/human_matting.py | 91 | def extract_human_modnet_photographic_portrait_matting(ctx: Context): | STRING |
| LOW | hivision/creator/human_matting.py | 119 | # def extract_human_birefnet_portrait(ctx: Context): | STRING |
| LOW | hivision/creator/human_matting.py | 127 | def extract_human_birefnet_lite(ctx: Context): | STRING |
| LOW | hivision/creator/human_matting.py | 228 | def get_modnet_matting_photographic_portrait_matting( | STRING |
| LOW | hivision/creator/human_matting.py | 354 | def get_birefnet_portrait_matting(input_image, checkpoint_path, ref_size=512): | STRING |
| LOW | hivision/creator/face_detector.py | 79 | def detect_face_face_plusplus(ctx: Context): | STRING |
| LOW | hivision/plugin/beauty/base_adjust.py | 9 | def adjust_brightness_contrast_sharpen_saturation( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | hivision/utils.py | 63 | # Create a BytesIO object to hold the image data in memory | COMMENT |
| MEDIUM | hivision/utils.py | 124 | # Create a BytesIO object to hold the image data in memory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/locales.py | 1 | # Copyright 2024 the LlamaFactory team. | COMMENT |
| LOW | hivision/plugin/beauty/thin_face.py | 161 | # def localTranslationWarpNumpy(self, srcImg, startP: np.matrix, endP: np.matrix, radius: float): | COMMENT |
| LOW | hivision/plugin/beauty/thin_face.py | 181 | # H, W, C = self.thinImage.shape # 获取图像的形状 | COMMENT |
| LOW | hivision/plugin/beauty/thin_face.py | 301 | # input_image = cv2.imread("test_image/4.jpg", -1) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy_api.py | 272 | except Exception as e: | CODE |
| LOW | deploy_api.py | 305 | except Exception as e: | CODE |
| LOW | hivision/creator/human_matting.py | 65 | except Exception as e: | STRING |
| LOW | hivision/creator/retinaface/inference.py | 70 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hivision/utils.py | 72 | # Check if the image size is within the target size | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hivision/__init__.py | 4 | __all__ = ["IDCreator", "IDParams", "IDResult", "utils", "error"] | CODE |