Problème d'installation d'AMC sous debian 9 (Support #553)
Description
Depuis j'essaie d'installer AMC mais je rencontre un problème.
1 je rencontre des problèmes pour l'installation de libjasper-dev
2- ma commade make pour l'installion d'AMC me donne ce ci:
root@Net-tfc:/home/AMC/auto-multiple-choice-1.3.0# make
gcc -o AMC-detect AMC-detect.cc -O2 -lstdc++ -lm -I/usr/local/include/opencv -I/usr/local/include -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_photo -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_core
AMC-detect.cc: In function ‘void calage(IplImage*, IplImage*, double, double, double, double, double, int, double*, double*, IplImage**, int)’:
AMC-detect.cc:543:62: error: ‘CV_RGB’ was not declared in this scope
CvScalar color = CV_RGB( rand()&255, rand()&255, rand()&255 );
^
AMC-detect.cc:551:44: error: ‘CV_RGB’ was not declared in this scope
CvScalar color = CV_RGB( 60,198,127 );
^
AMC-detect.cc:575:64: error: ‘CV_RGB’ was not declared in this scope
cvLine(dst,coins_int[i],coins_int[(i+1)%4],CV_RGB(255,255,255),1,CV_AA);
^
AMC-detect.cc:582:62: error: ‘CV_RGB’ was not declared in this scope
cvLine(*dst,coins_int[i],coins_int[(i+1)%4],CV_RGB(193,29,27),1,CV_AA);
^
AMC-detect.cc:66:30: error: ‘CV_RGB’ was not declared in this scope
#define BLEU CV_RGB(38,69,223)
^
AMC-detect.cc:589:49: note: in expansion of macro ‘BLEU’
cvLine(illustr,coins_int[i],coins_int[(i+1)%4],BLEU,1,CV_AA);
^~~
AMC-detect.cc: In function ‘void mesure_case(IplImage, IplImage*, int, int, int, int, int, double, int, double, double, double, double, linear_transform*, point*, IplImage*, char*, int)’:
AMC-detect.cc:66:30: error: ‘CV_RGB’ was not declared in this scope
#define BLEU CV_RGB(38,69,223)
^
AMC-detect.cc:783:49: note: in expansion of macro ‘BLEU’
cvLine(illustr,coins_int[i],coins_int[(i+1)%4],BLEU,1,CV_AA);
^~~
AMC-detect.cc:927:68: error: ‘CV_RGB’ was not declared in this scope
cvLine(dst,coins_int[i],coins_int[(i+1)%4],CV_RGB(255,255,255),1,CV_AA);
^
AMC-detect.cc:67:31: error: ‘CV_RGB’ was not declared in this scope
#define ROSE CV_RGB(223,38,203)
^
AMC-detect.cc:936:49: note: in expansion of macro ‘ROSE’
cvLine(illustr,coins_int[i],coins_int[(i+1)%4],ROSE,1,CV_AA);
^~~
AMC-detect.cc: In function ‘int main(int, char**)’:
AMC-detect.cc:66:30: error: ‘CV_RGB’ was not declared in this scope
#define BLEU CV_RGB(38,69,223)
^
AMC-detect.cc:1261:39: note: in expansion of macro ‘BLEU’
cvPutText(illustr,text,textpos,&font,BLEU);
^~~
Makefile:123 : la recette pour la cible « AMC-detect » a échouée
make: *** [AMC-detect] Erreur 1