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

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.

主站蜘蛛池模板: 红桥区| 额敏县| 陕西省| 渑池县| 清远市| 威远县| 张家界市| 都江堰市| 靖安县| 泉州市| 鸡东县| 邯郸市| 岐山县| 淮滨县| 阿拉善左旗| 方正县| 呼图壁县| 凌源市| 镇平县| 西乌珠穆沁旗| 拉孜县| 伊春市| 西华县| 芷江| 明光市| 康定县| 南皮县| 南昌市| 富裕县| 常德市| 兰州市| 海伦市| 个旧市| 师宗县| 固原市| 民乐县| 双江| 延庆县| 榆树市| 逊克县| 绥中县|