Nodes/HivisionIDPhotos-ComfyUI/ZHHivisionParamsNode
ComfyUI Node

ZHHivisionParamsNode

Same params node, Chinese menu

By AIFSH·Created 2 years ago·Updated 2 years ago· 192
ZHHivisionParamsNode
    • normal_params
    size
    bgcolor
    render
    kb300
    dpi300

    ZHHivisionParamsNode is ENHivisionParamsNode's sibling: the same settings bundle for the same four consumer nodes, but with the dropdowns in Chinese. If you're following the pack's Chinese-first tutorials - the README, the Bilibili demo - this is the node you'll see in the screenshots, and honestly it's easier to match a Chinese guide with a Chinese menu.

    What it bundles

    Identical five-field bundle, identical defaults:

    • size - the same 18 official specs from the CSV, listed as 一寸 (413x295), 二寸 (626x413), 小一寸, 小二寸, 大一寸, 五寸 (1499x1050), plus exam/visa entries like 英语四六级考试 (192x144).
    • bgcolor - 蓝色, 白色, 红色, 黑色, 深蓝色, 浅灰色.
    • render - 纯色, 上下渐变, 中心渐变.
    • kb (default 300) - target file size in KB, for LaterProcessNode.
    • dpi (default 300) - output DPI, also LaterProcessNode.

    One thing the Chinese version does that the English one doesn't: it translates the render names back - 纯色 becomes pure_color, 上下渐变 becomes updown_gradient, 中心渐变 becomes center_gradient - so the PARAMS dict it emits is byte-for-byte the same shape either way. The two nodes are fully interchangeable in a workflow, and you can switch between them without rewiring anything downstream.

    Output

    A single normal_params (PARAMS), fanned out to HivisionNode, AddBackgroundNode, HivisionLayOutNode and LaterProcessNode - wire it to any or all. HivisionNode reads size; AddBackgroundNode reads bgcolor and render; LaterProcessNode reads kb and dpi; HivisionLayOutNode reads size. Change one field and rerun, and only the stage that cares reacts.

    Installing it

    Comes with the pack. ComfyUI Manager, search "HivisionIDPhotos", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AIFSH/HivisionIDPhotos-ComfyUI
    

    Restart ComfyUI. It's a pure data node - no models, no downloads, and its only runtime dependency is reading two CSVs at import.

    When to reach for it

    Pick ZHHivisionParamsNode over the English one when: you're following a Chinese tutorial and want the menus to match; you think in Chinese specs (英寸 vs "one inch"); or you just want the exact official names (教师资格证, 研究生考试) rather than the translated approximations. Otherwise they're the same node and it genuinely doesn't matter which you drop in. Like its twin, it's simple enough to be the safest node in a pack that hasn't been touched since September 2024.

    CategoryAIFSH_HivisionIDPhotos

    Inputs (5)

    NameTypeDefaultDescription
    sizeCOMBO18 options: 一寸 (413, 295), 二寸 (626, 413), 小一寸 (378, 260), 小二寸 (531, 413), 大一寸 (567, 390), 大二寸 (626, 413), +12
    bgcolorCOMBO6 options: 蓝色, 白色, 红色, 黑色, 深蓝色, 浅灰色
    renderCOMBO3 options: 纯色, 上下渐变, 中心渐变
    kbINT300
    dpiINT300

    Outputs (1)

    NameTypeDescription
    normal_paramsPARAMS