在OpenCV中隐藏鼠标光标 [英] Hide mouse cursor in OpenCV

查看:495
本文介绍了在OpenCV中隐藏鼠标光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要隐藏将鼠标移到图像窗口上时OpenCV显示的十字形光标.有人知道这是否可能吗?

I need to hide the cross-shaped cursor that OpenCV shows when moving the mouse over an image window. Does anybody know if it is possible?

我想添加一个屏幕截图,但是很遗憾,鼠标光标没有显示在屏幕截图中.

I wanted to add a screenshot, but unfortunately the mouse cursor is not shown in screenshots.

谢谢!

推荐答案

我认为仅OpenCV是不可能的,您必须使用OS API或最终可以使用QT(

I don't think it's possible with only OpenCV, you have to use OS API or eventually you may use QT(http://www.codeprogress.com/cpp/libraries/qt/QtHideMouseCursor.php#.UjGpZD-rGoE) - it's quite easy to use it with OpenCV.

这篇关于在OpenCV中隐藏鼠标光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆