Hi 

I've some troubles when I'm trying to execute SVM classifier example in 
python (OS Ubuntu 12.04 python 2.7)
In fact, if I use the following

 import otbApplication as otb

# creates an instance of the ImageSVMClassifier application 

ImageClassifier = 
otb.otbApplication.Registry.CreateApplication("ImageClassifier")

# Set all the application parameters

imdir=r'/home/gil/Transferencias/Examples/'
 
ImageClassifier.SetParameterString("in",imdir + 'QB_1_ortho.tif')

ImageClassifier.SetParameterString("imstat",imdir + 
'EstimateImageStatisticsQB1.xml')

ImageClassifier.SetParameterString("model",imdir + 'clsvmModelQB1.svm')

ImageClassifier.SetParameterString("out",imdir + 'testtegil.tif')

ImageClassifier.SetParameterComplexOutputImagePixelType("out",1)
 
# Execute the application

ImageClassifier.Execute()

I got the error
unknown text in model file: [.451298086]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py",
 
line 540, in runfile
    execfile(filename, namespace)
  File "/media/TI30547800A/Users/Gil/Dropbox/Python/Sripts/OTBexample.py", 
line 24, in <module>
    ImageClassifier.Execute()
  File "/usr/lib/python2.7/dist-packages/otbApplication/otbApplication.py", 
line 871, in Execute
    def Execute(self): return _otbApplication.Application_Execute(self)
RuntimeError: Exception thrown in otbApplication Application_Execute: 
/build/buildd/otb-3.20.0/Code/Learning/otbSVMModel.txx:542:
itk::ERROR: SVMModel(0xa5e8cc0): Problem while loading SVM model 
/home/gil/Transferencias/Examples/clsvmModelQB1.svm

-- 
-- 
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