Remove unnecessary debug info

This commit is contained in:
Epicalert 2021-06-08 13:28:46 +08:00
parent 09c60db8c1
commit 16a7ff8ee1
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
2 changed files with 0 additions and 5 deletions

View file

@ -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);
} }

View file

@ -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),