感谢 杨秀璋的专栏,本文参考了 Eastmount 的 文章 https://blog.youkuaiyun.com/Eastmount/article/details/81748802。
我的运行环境:
我的python:3.7.4
我的操作系统:win10
我的opencv库:4.1.1.26
用windows自带的画图软件,准备了三幅图:图幅均为长200像素,高100像素。
图1:填充的颜色为红=0,绿=0,蓝=255;文件名:B200x100.bmp
图2:填充的颜色为红=0,绿=255,蓝=0;文件名:G200x100.bmp
图3:填充的颜色为红=0,绿=0,蓝=255;文件名:R200x100.bmp