0
Comment obtenir la hauteur et la largeur d'un pix?leptonica - obtenir les dimensions (hauteur/largeur)
Pix *image = pixRead((input).c_str());
Comment obtenir la hauteur et la largeur d'un pix?leptonica - obtenir les dimensions (hauteur/largeur)
Pix *image = pixRead((input).c_str());
Utilisez pixGetWidth et pixGetHeight:
Pix *image = pixRead((input).c_str());
int width = pixGetWidth(image);
int height = pixGetHeight(image);