随笔分类 - 视觉处理
摘要:import argparse import imutils import cv2 ap=argparse.ArgumentParser() ap.add_argument("-i","--image",required=True,help="path to the input image") ar
阅读全文
摘要:import numpy as np import argparse import imutils import cv2 ap=argparse.ArgumentParser() ap.add_argument("-i","--image",help="path to the image file"
阅读全文
摘要:RGB(100,100,100)就代表灰度为100,RGB(50,50,50)就代表灰度为50。 任何颜色都有红、绿、蓝三原色组成,假如原来某点的颜色为RGB(R,G,B),那么,我们可以通过下面几种方法,将其转换为灰度: 1.浮点算法:Gray = R*0.3 + G*0.59 + B*0.11
阅读全文
posted @ 2020-10-05 16:21
小懒鼠

浙公网安备 33010602011771号