Vector classifier error

Hello!

I’m a newbie in remote sensing, QGIS and OTB and currently I’m working on Object based image classification using a raster images captured by UAV with Micasense RedEdge-MX. I’m trying to classify images from agricultural areas and I’m trying to follow the methods presented in this video (Thanks to Mr. Jesse!) Object-based Image classification in QGIS || OBIA !! || A complete Tutorial - YouTube.

So far I have no problem from the start except in “Vector classifier”. I have generated all the info and layers prior to “Vector classifier” (e.g. classes, training samples, segmentation result, segmentation statistics using zonal stat, joined layer (by location), and the models generated from train vector classifier. When I try the Vector classifier using segmentation stat.shp and model as inputs, and field names to be calculated, this error occurs: " (FATAL) VectorClassifier: itk::ERROR: Failed to open GDALDataset file C:\Users"

I am using OTB vs 7.3 with OTB master plugin in QGIS 3.18.1 Zurich (Windows 10 64-bit) which I installed few days ago.

I hope someone can help me.

Also, do you have suggestions of other methods for image classification of UAV images?

Thank you very much!

Dear @Jane_Bis,
Thank you for using OTB.

When you use QGIS to launch an OTB processing, you need to avoid spaces in path to files. Can you check that there is no space in the path to the vector data? If so, you can to try to add quotes " " around the path.

Sincerely.
Julien.

Hi Julien!

Sorry I forgot to reply back immediately. But yes, I was able to execute the vector classification. Thanks to your instruction and additional information.

Kind regards,
Sarah

sni_problem

I am facing the same problem! Can you give me any suggestions? I need it ASAP!

Thank you!

Hello @shuvo,

have you tried the solution suggested by @julienosman above ?

Cédric