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

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.

主站蜘蛛池模板: 德兴市| 荆门市| 观塘区| 运城市| 西贡区| 钟祥市| 勃利县| 灵武市| 牟定县| 博罗县| 大同市| 永平县| 炎陵县| 凉城县| 济南市| 汽车| 辰溪县| 义乌市| 互助| 德钦县| 东乌珠穆沁旗| 灌南县| 郴州市| 子长县| 五家渠市| 石狮市| 炉霍县| 镇坪县| 清河县| 吉首市| 崇阳县| 新干县| 柳河县| 盱眙县| 江阴市| 阜宁县| 南投县| 历史| 建水县| 翁源县| 汝州市|