label-maker icon indicating copy to clipboard operation
label-maker copied to clipboard

Running inference over .tif in tf_od_predict.py

Open Geo-Trackers opened this issue 6 years ago • 3 comments

Can I run inference over the image tiles which is in .tif format?

Thank you. I look forward to hear from you.

Best,

Suman

Geo-Trackers avatar Jan 03 '19 12:01 Geo-Trackers

@Geo-Trackers, yes, you can run the inference over the image tile in tif format, and the main script is this line. You can replace .jpg with .tif.

Geoyi avatar Jan 03 '19 20:01 Geoyi

@Geoyi Thank you for your reply. While running inference over .tif files, can we still preserve the coordinates during the detection process?

Best, Suman

Geo-Trackers avatar Jan 08 '19 12:01 Geo-Trackers

Yes, @Geo-Trackers. But it's not very straightforward.

When you use Label Maker to generate .tif tile, each tile come with an ID, e.g. 207692-115930-18.tif, you can use Mercantile e.g., mercantile.bounds to get the tile geo-coordinates, and each bbox within the tile can be computed through their associated location in within a tile if that makes sense.

Geoyi avatar Jan 11 '19 19:01 Geoyi