Page 1 of 1

Error when loading classifier (SOLVED)

Posted: Fri Mar 29, 2024 3:42 pm
by vincen
Solution : There was an acent in the file path that caused the .yaml to not save !

Hello, me again

When I try to load the classifier .txt file in the classification step, i get this error :

error(-215)fs.isOpened() uin fuction cv::Algorithm::load

I have no idea what this means.

Thank You

Re: Error when loading classifier

Posted: Tue Apr 02, 2024 12:19 pm
by paul.leroy
Please, give more precision on the steps of your use case.
Did you train your classifier?
If yes, did you save it?
If yes, did you open the classifier to try to classify your points or did you open the initial parameter file (which will fail).

Re: Error when loading classifier

Posted: Thu Apr 04, 2024 3:35 pm
by vincen
Yes I trained the classifier.

Yes I saved it.

Yes i opened the classifier file.

Still not working.

Re: Error when loading classifier

Posted: Thu Apr 04, 2024 3:38 pm
by vincen
There is no .yaml file in the project foleder.. onyl .txt

Re: Error when loading classifier

Posted: Fri Apr 05, 2024 6:51 am
by paul.leroy
When you save the classifier at the end of the training phase, you shall get a .yaml file with the exact same name as the associated .txt file (the name you choose for the classifier, as in classifier.txt and classifier.yaml). Could you check that?

Can you copy the .txt file you are talking about?

Linux, Windows or Mac?

Re: Error when loading classifier

Posted: Fri Apr 05, 2024 1:49 pm
by vincen
It says in the command line that there is a .yaml file saved in the folder but i cannot find it !
Im on windows

Here is the classifier.txt file

# 3DMASC classifier file
classifier: classifier.yaml
# Clouds (roles)
cloud: PC1
# Core points (classified role)
core_points: PC1
# Features
feature: ROUGH_SC0.1_PC1
feature: ROUGH_SC0.2_PC1
feature: ROUGH_SC0.75_PC1
feature: ROUGH_SC1_PC1
feature: ROUGH_SC2_PC1
feature: ROUGH_SC5_PC1
feature: ANISO_SC0.1_PC1
feature: ANISO_SC0.2_PC1
feature: ANISO_SC0.75_PC1
feature: ANISO_SC1_PC1
feature: ANISO_SC2_PC1
feature: ANISO_SC5_PC1
feature: SPHER_SC0.1_PC1
feature: SPHER_SC0.2_PC1
feature: SPHER_SC0.75_PC1
feature: SPHER_SC1_PC1
feature: SPHER_SC2_PC1
feature: SPHER_SC5_PC1
feature: LINEA_SC0.1_PC1
feature: LINEA_SC0.2_PC1
feature: LINEA_SC0.75_PC1
feature: LINEA_SC1_PC1
feature: LINEA_SC2_PC1
feature: LINEA_SC5_PC1
feature: PLANA_SC0.1_PC1
feature: PLANA_SC0.2_PC1
feature: PLANA_SC0.75_PC1
feature: PLANA_SC1_PC1
feature: PLANA_SC2_PC1
feature: PLANA_SC5_PC1
feature: CURV_SC0.1_PC1
feature: CURV_SC0.2_PC1
feature: CURV_SC0.75_PC1
feature: CURV_SC1_PC1
feature: CURV_SC2_PC1
feature: CURV_SC5_PC1
feature: Zmin_SC0.1_PC1
feature: Zmin_SC0.2_PC1
feature: Zmin_SC0.75_PC1
feature: Zmin_SC1_PC1
feature: Zmin_SC2_PC1
feature: Zmin_SC5_PC1
feature: R_SC0_PC1
feature: G_SC0_PC1
feature: B_SC0_PC1

Re: Error when loading classifier

Posted: Mon Apr 08, 2024 9:09 pm
by paul.leroy
What do you mean by 'command line'? The console of the GUI of CloudCompare? Did you launch the plugin in command line with a terminal?

Please avoid to create duplicate threads on the same topic, this does not ease the discussion.

Re: Error when loading classifier

Posted: Wed Apr 10, 2024 3:59 pm
by vincen
Yes the console of the GUI in CloudComapre.

Re: Error when loading classifier (SOLVED)

Posted: Fri Apr 12, 2024 8:43 am
by paul.leroy
[SOLVED]
The error came from the directory in which the classifier was saved. The path to this directory included an accent.
[SOLUTION]
Remove any accent from the path.