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

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.

主站蜘蛛池模板: 崇阳县| 乐清市| 和硕县| 鲜城| 渝中区| 卢氏县| 南和县| 沾益县| 东丰县| 安顺市| 蛟河市| 迁西县| 宿州市| 平果县| 道真| 泾阳县| 东宁县| 犍为县| 海原县| 玉田县| 昌平区| 敖汉旗| 高密市| 普定县| 开远市| 博湖县| 新竹县| 昌乐县| 始兴县| 肇庆市| 建始县| 海安县| 突泉县| 出国| 乌鲁木齐县| 万全县| 广平县| 鲜城| 吴旗县| 来凤县| 萝北县|