Page 1008 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 1008
int biHighV = 255;
//쓰레기, 통, 헤더 위치 (현재값, 이전값)
int TrashX, TrashY, TrashXP, TrashYP;
int CanX, CanY, CanXP, CanYP;
int HeaderX, HeaderY, HeaderXP, HeaderYP;
//쓰레기 감지 감도
int SENSITIVITY_VALUE = 15;
int BLUR_SIZE = 55;
int SENSIGSCALE = 80;
//Can크기
int CANSCALE = 30;
//Header크기
int HEADERSCALE = 20;
bool onDebug = false; //DebugMode
int main(){
Init();
cvGrabFrame(capture);
image = cvRetrieveFrame(capture);
MainMat = cvarrToMat(image);
DisplayInit();
while(1){
image = cvRetrieveFrame(capture);
CanDetect();
HeaderDetect();
TrashDetect();
DisplaySetting();
- 1001 -