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

Summary

In this chapter, we looked at the key concepts related to images. Images constitute rich information that's necessary to build your computer vision projects. OpenCV uses the BGR color format instead of RGB, but some Python packages (for example, Matplotlib) use the latter format. Therefore, we have covered how to convert the image from one color format into the other. 

Additionally, we have summarized the main functions and options to work with images: 

  • To access image properties
  • Some OpenCV functions, such as cv2.imread()cv2.split()cv2.merge()cv2.imshow()cv2.waitKey(), and cv2.destroyAllWindows()
  • How to get and set image pixels in both BGR and grayscale images

Finally, we included two notebooks, which let you play with all these concepts. Remember that once you have loaded the notebook, you can run it step by step by pressing Shift + Enter or run the notebook in a single step by clicking on the Cell | Run All menu.

In the next chapter, you will learn how to cope with files and images, which are necessary for building your computer vision applications.

主站蜘蛛池模板: 清河县| 新昌县| 阜阳市| 斗六市| 垦利县| 洛宁县| 锦屏县| 宁国市| 惠来县| 福泉市| 平和县| 金阳县| 静乐县| 长宁区| 湘潭县| 灵武市| 宁蒗| 苏尼特左旗| 拉萨市| 宁波市| 陵川县| 陵水| 彩票| 大埔区| 邮箱| 玉龙| 龙里县| 九江市| 安陆市| 贵港市| 饶平县| 法库县| 延川县| 明光市| 怀远县| 基隆市| 石门县| 舟山市| 交城县| 红桥区| 彭山县|