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

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.

主站蜘蛛池模板: 格尔木市| 毕节市| 邯郸县| 富宁县| 沁阳市| 常德市| 仙桃市| 和龙市| 大姚县| 桦川县| 襄垣县| 突泉县| 云和县| 洛隆县| 塘沽区| 内乡县| 沙坪坝区| 库尔勒市| 上饶县| 桓台县| 阳西县| 仁化县| 绥芬河市| 邹城市| 六盘水市| 宁河县| 靖边县| 班戈县| 平舆县| 绥滨县| 肃北| 萨迦县| 丰顺县| 宁国市| 祁门县| 伊宁市| 昆明市| 团风县| 铁力市| 清镇市| 禹城市|