1 | initial version |
I think it should be pretty easy to define a draw_crosshairs(Mat, Point(center_x,center_y))() function yourself. Steps that you should follow is:
There is no such functionality in OpenCV provided, because GUI interfacing is not the core buisness of OpenCV. The used visualisation is mainly for data validation, and openCV provides mostly functionality that runs in your processing layer under your GUI interface.
2 | No.2 Revision |
I think it should be pretty easy to define a draw_crosshairs(Mat, Point(center_x,center_y))() function yourself. Steps that you should follow is:
There is no such functionality in OpenCV provided, because GUI interfacing is not the core buisness of OpenCV. The used visualisation is mainly for data validation, and openCV provides mostly functionality that runs in your processing layer under your GUI interface.
EDIT: The following command draws a crosshair in the middle of your screen. Reform this snippet for your purpose!
line((screenWidth/2)-20, screenHeight/2, (screenWidth/2)+20, screenHeight/2); //crosshair horizontal
line(screenWidth/2, (screenHeight/2)-20, screenWidth/2, (screenHeight/2)+20); //crosshair vertical