Nodes/Mickmumpitz-Nodes/Convert BBox Relative → Absolute Pixel
ComfyUI Node

Convert BBox Relative → Absolute Pixel

Rescales every normalized (0-1000) bbox in the text to absolute pixels for the given image size, keeping the input axis order.

By mickmumpitz·Created 7 months ago·Updated 22 days ago· 32
Convert BBox Relative → Absolute Pixel
    • converted_text
    text_input
    image_width1024
    image_height1024
    input_format[y, x, y, x]
    CategoryMickmumpitz/ConsistentCharacterCreator

    Inputs (4)

    NameTypeDefaultDescription
    text_inputSTRING
    image_widthINT102464–8192
    image_heightINT102464–8192
    input_formatCOMBO[y, x, y, x]2 options: [y, x, y, x], [x, y, x, y]

    Outputs (1)

    NameTypeDescription
    converted_textSTRING