We have detected objects on UAV data using Yolo v5 and obtained bounding box coordinates (x1,y1,x2,y2) in the format relative to the origin of the satellite data. The data looks like this and is returned as a tab-delimited text file.
[ 7953 11025 7978 11052]
[16777 10928 16817 10970]
[15670 10591 15685 10607]
The results are accompanied by a PNG and the PGW (world file) reads like this:
0.1617903116883119
0
0
-0.1617903116883119
655854.20159515587147325
2716038.70000312989577651
How can the bounding boxes be converted into real-world global projection EPSG:4328 usable in GIS? Any hints towards a python script are much appreciated.
go in Detect.py and set gn = 1 and it'll get you the un-normalized coordinates. Attaching the screenshot below for you reference