Searched refs:cv2 (Results 1 - 3 of 3) sorted by relevance
/vendor/hisilicon/hispark_pegasus/demo/oledplayer_demo/oled/ |
H A D | img2code.py | 15 import cv2 namespace 41 frame = cv2.resize(frame, (width, height)) # 缩放 42 frame = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY) # 转为灰度图 43 _, binary = cv2.threshold(frame, threshold, 255, cv2.THRESH_BINARY) # 二值化 53 cv2.imwrite(os.path.join('debug', str(frameCount) + '.png'), frame) 54 cv2.imwrite(os.path.join('debug', str(frameCount) + '-bin.png'), binary) 79 frame = cv2.imread(imgPath) # 加载图片
|
/vendor/hisilicon/hispark_pegasus/demo/ssd1306_demo/ |
H A D | img2code.py | 16 import cv2 namespace 42 frame = cv2.resize(frame, (width, height)) # 缩放 43 frame = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY) # 转为灰度图 44 _, binary = cv2.threshold(frame, threshold, 255, cv2.THRESH_BINARY) # 二值化 54 cv2.imwrite(os.path.join('debug', str(frameCount) + '.png'), frame) 55 cv2.imwrite(os.path.join('debug', str(frameCount) + '-bin.png'), binary) 80 frame = cv2.imread(imgPath) # 加载图片
|
/vendor/hisilicon/hispark_pegasus/demo/oledplayer_demo/ |
H A D | video2bin.py | 16 import cv2 as cv
|
Completed in 2 milliseconds