wisescootering / infrareddrone

Aerial infrared photography
GNU Affero General Public License v3.0
15 stars 4 forks source link

Find a proper way to deal with the sequence synchronization -> batch image processing #3

Closed balthazarneveu closed 2 years ago

balthazarneveu commented 2 years ago

Today synchro.bat provides values that you have to copy paste to an excel...

When this is ready, you run another run.bat

Bad copy paste is definitely a flaw (but we'd still like batch processing to work in case synchronization didn't go well)... A simpler practice would be to write a synchro file and link it in the config file... You would still be able to override each value manually trhough the config file

assume synchro.bat generated: Synchro/synchro.pkl (next to the synchronization images in Synchro folder)

config.json will look like:

{
    "synchro": "Synchro/syncho.pkl",
    "output": "ImgIRdrone",
    "visible": "AerialPhotography/*.DNG",
    "nir": "AerialPhotography/*.RAW"
}

but you can still override some field

{
    "synchro": "Synchro/synchon.pkl",
    "output": "ImgIRdrone",
    "visible": "AerialPhotography/*.DNG",
    "nir": "AerialPhotography/*.RAW",
    "synchro_deltatime": 3894.74037,
    "synchro_date": "25/01/2022  11:59:49",
    "coord_GPS_take_off": "N 45.16969 E 3.39996"
}

the three fields will override parameters extracted from synchronization.pkl so you can still run manual.. or do the old way around...

    "synchro_deltatime": 3894.74037,
    "synchro_date": "25/01/2022  11:59:49",
    "coord_GPS_take_off": "N 45.16969 E 3.39996"

same mechanism should work when reading from excel file

balthazarneveu commented 2 years ago

In #7 , support was added for a synchro.npy when used with a .json configuration.

Support through excel file is not ready yet

balthazarneveu commented 2 years ago

Solved support of synchro.npy in the excel file Do not touch the blue fields unless you want to override parameters image