OpenCV和创建GUI [英] OpenCV and creating GUIs

查看:95
本文介绍了OpenCV和创建GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用 OpenCV 创建包含按钮,列表框等的GUI吗?



谢谢。

解决方案

OpenCV内置了 highgui

您可以在在线教程让你开始。



请注意,这不是一个广泛的GUI库。你只能做基本的东西,如打开窗口,绘制点,反锯齿线,矩形和文本。有一个滑块小部件,可用作开关按钮。如果您需要更多功能,您可以




  • 自行构建内容(例如使用文字绘制矩形来制作自己的按钮)或

  • 使用 Qt 等其他图书馆提供大量小工具(按钮,菜单,列表,对话框...)



如果你选择第一个,祝你好运!


Can I use OpenCV to create GUIs that contain buttons, list boxes, ...etc for example?

Thanks.

解决方案

OpenCV has highgui built-in for making GUIs.

You can find online tutorials to get you started.

Note that this is not an extensive GUI library. You can only do basic stuff like opening windows, drawing points, anti-aliased lines, rectangles and text. There is a slider widget that can be used as a on-off button. If you need more than that, you can either

  • build stuff yourself (for instance drawing a rectangle with text to make your own button), or
  • use another library like Qt which provide plenty of widgets (buttons, menus, lists, dialogs…)

Good luck if you go for the first one!

这篇关于OpenCV和创建GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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