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
Error when loading classifier (SOLVED)
Error when loading classifier (SOLVED)
Last edited by vincen on Thu Apr 11, 2024 2:52 pm, edited 1 time in total.
-
- Posts: 40
- Joined: Tue Dec 01, 2020 1:21 pm
Re: Error when loading classifier
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).
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
Yes I trained the classifier.
Yes I saved it.
Yes i opened the classifier file.
Still not working.
Yes I saved it.
Yes i opened the classifier file.
Still not working.
Re: Error when loading classifier
There is no .yaml file in the project foleder.. onyl .txt
-
- Posts: 40
- Joined: Tue Dec 01, 2020 1:21 pm
Re: Error when loading classifier
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?
Can you copy the .txt file you are talking about?
Linux, Windows or Mac?
Re: Error when loading classifier
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
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
-
- Posts: 40
- Joined: Tue Dec 01, 2020 1:21 pm
Re: Error when loading classifier
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.
Please avoid to create duplicate threads on the same topic, this does not ease the discussion.
Re: Error when loading classifier
Yes the console of the GUI in CloudComapre.
-
- Posts: 40
- Joined: Tue Dec 01, 2020 1:21 pm
Re: Error when loading classifier (SOLVED)
[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.
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.