up loop exif
This commit is contained in:
parent
1c325c12d4
commit
e381d158c4
@ -2,7 +2,7 @@
|
||||
conversion de données gpx
|
||||
conversion de données exif
|
||||
utilisation:
|
||||
ts-node main.ts --goproMin=80800 --goproMax=80866 --goproSubFolder="rouen_oct23"
|
||||
ts-node main.ts --goproMin=80800 --goproMax=80801 --goproSubFolder="rouen_oct23"
|
||||
|
||||
**/
|
||||
|
||||
@ -22,9 +22,9 @@ let gorpro_fusion_separated_photos_folder = 'rouen_oct23'
|
||||
|
||||
let goproMin = '80800'// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
|
||||
let goproMax = '80866' // et maximum. correspond à GF080866.JPG + GB080866.JPG
|
||||
let addExifToolInScript = true;
|
||||
let outputStitchedFolder = '/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output'
|
||||
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh '+goproMin+' '+goproMax
|
||||
let addExifToolInScript = false;
|
||||
let outputStitchedFolder = '/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/'
|
||||
|
||||
if (mini_arguments['addExifToolInScript']) {
|
||||
addExifToolInScript = mini_arguments['addExifToolInScript']
|
||||
}
|
||||
@ -37,6 +37,10 @@ if (mini_arguments['goproSubFolder']) {
|
||||
if (mini_arguments['goproMax']) {
|
||||
goproMax = mini_arguments['goproMax']
|
||||
}
|
||||
|
||||
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh '+goproMin+' '+goproMax
|
||||
|
||||
|
||||
let extension_photo_source = 'jpg'
|
||||
extension_photo_source = 'JPG'
|
||||
|
||||
@ -92,7 +96,7 @@ function makeBashScriptHugin(minmax: any) {
|
||||
|
||||
let ptoPath = `${dossier_pto_output}/${ptoFileName}`
|
||||
scriptsContent += '\n\n# capture n°' + currentNumber
|
||||
scriptsContent += '\nif [ -f '+outputStitchedFolder+stitchedFileName+'.jpg ]; then ' +
|
||||
scriptsContent += '\nif [ -f '+outputStitchedFolder+stitchedFileName+'.jpg ]; then \n' +
|
||||
'hugin_executor' +
|
||||
' ' + ptoPath + ' ' +
|
||||
'--stitching ' +
|
||||
@ -110,13 +114,13 @@ function makeBashScriptHugin(minmax: any) {
|
||||
}
|
||||
|
||||
if(addExifToolInScript){
|
||||
|
||||
scriptsContent += '\n # complétion des données gps depuis une des photos assemblées' +
|
||||
'\n' + hugin_batch_command + '\n'
|
||||
}
|
||||
|
||||
console.log('##############\n pour lancer le script : \n', 'bash output_pto/'+'hugin_executor_from' + goproMin + '_to_' + goproMax + '.sh', '\n##############\n'
|
||||
)
|
||||
console.log('hugin_batch_command: \n', hugin_batch_command)
|
||||
|
||||
writeFile('hugin_executor_from' + goproMin + '_to_' + goproMax + '.sh', scriptsContent)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user