Make eye direction indicator more clear

Adds a circle to the center of the eye direction indicator to make it
easier to read.
This commit is contained in:
Epicalert 2021-06-07 02:17:23 +08:00
parent e4d755c00d
commit c777e08519
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD

View file

@ -149,6 +149,7 @@ 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));
std::cout << eyeVector.x << "," << eyeVector.y << std::endl; std::cout << eyeVector.x << "," << eyeVector.y << std::endl;
std::cout << "SIZE:" << eyeROI.cols << "," << eyeROI.rows << std::endl; std::cout << "SIZE:" << eyeROI.cols << "," << eyeROI.rows << std::endl;