I have a batch script it works with a file but if I have several files it 
stops

@ECHO off
SETLOCAL EnableDelayedExpansion

SET datajp2=D:\nantes\poststraitements\outif\test\
SET outjp2=D:\nantes\poststraitements\outif\classification\
SET otbcli=C:\OTB-6.4.0-Win64\bin\
 
FOR /F %%i IN ('DIR /B %datajp2%*.tif') DO (

    SET infile=%%i
    SET outfile=!infile:.tif=.tif!
%otbcli%otbcli_ImageClassifier.bat -in 
D:\nantes\poststraitements\outif\test\%%i -model 
D:/nantes/stats/svmModelQB1.txt -imstat 
D:/nantes/stats/EstimateImageStatisticsQB1.xml -out 
D:\nantes\poststraitements\outif\classification\!outfile! uint8 -ram 128 

 
 
)
 


pause
pause




On Sunday, August 12, 2018 at 8:35:08 PM UTC+2, DIOUCK ABDOU wrote:
>
> Do you already work on the automation of a classification of several files 
> in a bach file? For example with boucle for.

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to