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

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.

主站蜘蛛池模板: 休宁县| 洛隆县| 二连浩特市| 乐平市| 上林县| 习水县| 图木舒克市| 金坛市| 桐城市| 达孜县| 余庆县| 天祝| 蒙城县| 霍林郭勒市| 河北省| 章丘市| 临澧县| 阿勒泰市| 鄂州市| 太和县| 安多县| 晋中市| 上林县| 广丰县| 公安县| 神农架林区| 宽甸| 望都县| 镇原县| 岳阳县| 西乌珠穆沁旗| 平定县| 临桂县| 莫力| 阜阳市| 噶尔县| 瑞安市| 卫辉市| 金昌市| 阿克| 镇巴县|