How are these bounding boxes being generated on top of the demo images

#36
by hsuyab - opened

How are these yellow, red colored rectangular boxes being generated on top of this? Is it using the doctags that has been generated to create these images?
image

IBM Granite org

The bounding boxes are being parsed out of the <loc> tags returned in the response. You can check out the parsing logic here: https://huggingface.co/spaces/ibm-granite/granite-docling-258M-WebGPU/blob/main/index.html#L337

Sign up or log in to comment