Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

How does the coordinate format work #48

Open
KristofferTolboll2 opened this issue Mar 12, 2020 · 1 comment
Open

How does the coordinate format work #48

KristofferTolboll2 opened this issue Mar 12, 2020 · 1 comment

Comments

@KristofferTolboll2
Copy link

I was wondering regarding the geometry object i was wondering how the x,y,height, width was placed

Considering a rectangle are the height, and width the height of the actual bounding box? In the case, what does x and y represent?

image

@M-Bekheet
Copy link

I know this is late, but here it is if someone came by.

x, y, width, height are percentages of the rendered image.

actualWidth = (geometry.width / 100) * renderedImg.width

x & y values are the top right point coordinate's percentage of the annotation rectangle selection you created in the browser. x is a % of the actualWidth and y is a percentage of the actualHeight

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants