Remove unnecessary debug info
This commit is contained in:
parent
09c60db8c1
commit
16a7ff8ee1
|
@ -151,8 +151,6 @@ void cvFrame() {
|
||||||
|
|
||||||
cv::line(frame, cv::Point(50,50), cv::Point(50,50) + cv::Point(eyeVector.x * 25, eyeVector.y * 25), cv::Scalar(255,128,128));
|
cv::line(frame, cv::Point(50,50), cv::Point(50,50) + cv::Point(eyeVector.x * 25, eyeVector.y * 25), cv::Scalar(255,128,128));
|
||||||
cv::circle(frame, cv::Point(50,50), 6, cv::Scalar(255,128,128));
|
cv::circle(frame, cv::Point(50,50), 6, cv::Scalar(255,128,128));
|
||||||
std::cout << eyeVector.x << "," << eyeVector.y << std::endl;
|
|
||||||
std::cout << "SIZE:" << eyeROI.cols << "," << eyeROI.rows << std::endl;
|
|
||||||
|
|
||||||
updateModel(faceData);
|
updateModel(faceData);
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,9 +103,6 @@ glm::vec2 eyeDirection(cv::Mat roi) {
|
||||||
|
|
||||||
cv::drawMarker(eyeMat, irisPosition, cv::Scalar(128,128,128));
|
cv::drawMarker(eyeMat, irisPosition, cv::Scalar(128,128,128));
|
||||||
|
|
||||||
cv::imshow("eye", eyeMat);
|
|
||||||
cv::waitKey(1);
|
|
||||||
|
|
||||||
// convert result to vector for graphics
|
// convert result to vector for graphics
|
||||||
return glm::vec2(
|
return glm::vec2(
|
||||||
(irisPosition.x - eyeMat.rows / 2.0) / (eyeMat.rows / 2.0),
|
(irisPosition.x - eyeMat.rows / 2.0) / (eyeMat.rows / 2.0),
|
||||||
|
|
Loading…
Reference in a new issue