2257 views|0 replies

1903

Posts

0

Resources
The OP
 

OpenCV Research 2 [Copy link]

 

#!/usr/bin/env python #-*- coding:utf-8 -*- import numpy as np import cv2 img = cv2.imread('img/nxp.png',cv2.IMREAD_UNCHANGED) cv2.imshow('image',img) k = cv2.waitKey(0) if k == ord('s'): # wait for 's' key to save and exit cv2.imwrite('1.png',img) cv2.destroyAllWindows() else: cv2.destroyAllWindows() 'numpy' Save, run, press s key, save, 1.png appears If you press any other key, 1.png will not appear This content is originally created by EEWORLD forum user star_66666. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list