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

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.

主站蜘蛛池模板: 石泉县| 正安县| 鸡泽县| 河源市| 景谷| 昌吉市| 桦甸市| 景德镇市| 双峰县| 靖边县| 瑞丽市| 迁安市| 朝阳区| 轮台县| 双流县| 潜山县| 武强县| 那曲县| 南澳县| 额尔古纳市| 东台市| 海林市| 奈曼旗| 榆中县| 新竹市| 北票市| 枝江市| 喀喇沁旗| 巫溪县| 偏关县| 招远市| 定襄县| 治县。| 平谷区| 淄博市| 新宁县| 阿图什市| 嫩江县| 永顺县| 巴塘县| 绿春县|