enzo
January 20, 2021, 1:11pm
1
i can load a classificationPredictor but i can’t load an image ,if you know why.
my code:
-mon header
puis dans mon main j’utilise la commande suivante :
classeur::classeur()
{
classeur_=Cvb::Polimago::ClassificationPredictor::Load("C:\\Users\\stagiaire1\\Desktop\\fichier de recherche bois\\defautcommun.pcc");
type_de_defaut_="rien";
posQualite_=0.0;
rechercheQualite_=0.0;
chercheur_=Cvb::Polimago::SearchPredictor::Load("C:\\Users\\stagiaire1\\Desktop\\fichier de recherche bois\\defautcommun.psc");
image_=Cvb::Image::Load("C:\\Users\\stagiaire1\\Desktop\\photos compressé\\exemple\\planche 17 partie 1 verso");
}
usernv
January 20, 2021, 1:26pm
2
Hi enzo,
from what you’ve posted, try:
escaping backslashes
your quotation marks seem wrong. Did you copy them from somewhere or is it just pasting in the forum?
add the image extension
1 Like
I think the quotation marks and the escaping are ok (this was just a rendering issue here because the code wasn’t actually in a code block - I’ve corrected that).
But the missing extension on the image file name is definitely a show stopper (even if the actual files does not have an extension: determines the load to be used by looking at the file name extension).
1 Like
enzo
January 21, 2021, 1:20pm
4
I try with the extension (*.bmp) it doesn’t work i have the same problem. But thanks.
usernv
January 21, 2021, 1:45pm
5
Escape the spaces as well. You should be able to load
Cvb::ImagePtr image = Cvb::Image::Load(Cvb::InstallPath() + CVB_LIT("tutorial/ClaraRGB.bmp"));
2 Likes
enzo
January 21, 2021, 1:53pm
6
Yes it work the load work, thank you.