I use to manually georeferencing rasters using the plugin GDAL using:
- raster .tif
- 4 gcps in a file .point
and it results this :
My aim is to batch this method for thousand of rasters (drone pictures) using projective transformation, in PyQGIS but I noticed this function is not available in the graphical modeller.
In a source folder I have several (thousand) pictures. For each picture, there is a file "point" : which have the same name (just the extension changes: .jpg for picture and .point for points) : picture1.jpg ; picture1.point ; picture2.jpg ; picture2.point; etc.
For every picture in this folder, I would like to loop this kind of approach :
gcp_points = picture1.point
gdal.gdal_translate(picture1.jpg, gcp_points, out_raster1, 'projective')
the source code of the plugin GDAL is : https://github.com/qgis/QGIS/blob/32c2cea54cb92bbb2243b222816c8154c2b9adf9/src/analysis/georeferencing/qgsgcptransformer.cpp
How do I reproduce the processing shown in the screenshot using PyQGIS?

