Error when loading classifier (SOLVED)

For any question related to the 3DMASC forum
Post Reply
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Error when loading classifier (SOLVED)

Post 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
Last edited by vincen on Thu Apr 11, 2024 2:52 pm, edited 1 time in total.
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Error when loading classifier

Post 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).
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Re: Error when loading classifier

Post by vincen »

Yes I trained the classifier.

Yes I saved it.

Yes i opened the classifier file.

Still not working.
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Re: Error when loading classifier

Post by vincen »

There is no .yaml file in the project foleder.. onyl .txt
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Error when loading classifier

Post 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?
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Re: Error when loading classifier

Post 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
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Error when loading classifier

Post 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.
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Re: Error when loading classifier

Post by vincen »

Yes the console of the GUI in CloudComapre.
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Error when loading classifier (SOLVED)

Post 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.
Post Reply