HumanSignal / HumanSignal/label-studio

OCR template doubt

Open
#3,187 4 comments 0 reactions 1 assignee Claimed by @makseq View on GitHub
export images problem question
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

Hi team,

I am using ocr template to annotate my custom dataset. I am also using relational entities between fields annotated. I have a simple question:

- In the value field consisting of [x,y,w,h] values in output annotation.txt, (x, y ) are the top left coordinate of the bounding box or the center of the rectangle?

Since I am interested in calculating all the four coordinates of the bbox, (assuming x,y is the top left coordinate) I just have to [(x,y), (x+w, y), (x, y-h), (x+w, y-h)] to get all four points right.

Below is the sample of what my values looks now,
Thanks in advance for helping me. Also cheers to this wonderful tool you guyz have built !

![Screenshot 2022-11-02 at 2 45 51 PM](https://user-images.githubusercontent.com/31308303/199451076-fc9d8fad-187c-4e56-bf97-8f8d8607bdab.png)
![Screenshot 2022-11-02 at 2 47 14 PM](https://user-images.githubusercontent.com/31308303/199451367-4fd2ca36-60c1-43fb-9fdb-e6b26b9ed571.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.