官术网_书友最值得收藏!

GUI

OpenCV provides a module called highgui that handles all the high-level user interface operations. Let's say you are working on a problem, and you want to check what the image looks like before you proceed to the next step. This module has functions that can be used to create windows to display images and/or videos.

There is a waiting function that will wait until you hit a key on your keyboard before it goes on to the next step. There is also a function that can detect mouse events. This is very useful in developing interactive applications.

Using this functionality, you can draw rectangles on those input windows, and then proceed based on the selected region. Consider the following screenshot:

As you can see, we drew a green rectangle on top of the window. Once we have the coordinates of that rectangle, we can operate only on that region.

主站蜘蛛池模板: 巴彦淖尔市| 秦安县| 娱乐| 永安市| 宁河县| 卢氏县| 伊吾县| 阿合奇县| 陕西省| 闽清县| 奇台县| 通许县| 胶州市| 商城县| 龙井市| 镇康县| 麟游县| 简阳市| 浙江省| 东阳市| 绥化市| 特克斯县| 偃师市| 阳高县| 乌拉特后旗| 中山市| 定远县| 安徽省| 共和县| 清河县| 汕尾市| 凉山| 泰来县| 元氏县| 渭源县| 富川| 隆尧县| 遵义县| 罗田县| 景洪市| 海原县|