영상처리
조회수 : 6
윈도우_opencv_빌드   ( 44/52 )
example.cpp 소스 파일 (2/8) 1.        Point far = contour[v[2]];2.        double depth = v[3] / 256.0;3.        if (depth > 20) {4.            count++;5.            circle(contour, far, 4, Scalar(0, 0, 255), -1); // 오목한 부분 표시6.        }7.    }8.    return count;9.}10.string recognizeGesture(int fingerCount) {11.    if (fingerCount == 0) return "Fist";12.    if (fingerCount == 1) return "Thumbs Up";13.    if (fingerCount == 5) return "Open Palm";14.    return "";15.}