Open
Description
As mentioned above, I want to get the real px values of box and polygon, and the documentation doesn't show how to get them. I learned from the previous issue that I can use the following formula:
const [x, y, w, h] = image.regions[0];
const { pixelSize } = image;
const real_px_w = pixelSize.w * w;
const real_px_h = pixelSize.h * h;
const real_px_x = pixelSize.w * w;
const real_px_y = pixelSize.w * h;
I would like to confirm with you whether the above formula is correct. If so, there will be an error of about 10px between the results calculated by the above formula and my actual measurement. Could you please inform box and polygon of the calculation formula of the real pixel?
Metadata
Metadata
Assignees
Labels
No labels