当前位置:网站首页>将opencv 图片转换为字节的方式
将opencv 图片转换为字节的方式
2022-04-23 12:58:00 【图像处理大大大大大牛啊】
1.
out = io.BytesIO()
np.save(out, img)
out.seek(0)
# 读取
out.read()
2.
success, encoded_image = cv2.imencode('.png', img)
content = encoded_image.tobytes()
版权声明
本文为[图像处理大大大大大牛啊]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_26696715/article/details/124360889
边栏推荐
- Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
- 8 websites that should be known for product development to enhance work experience
- 数据库中的日期时间类型
- HQL find the maximum value in a range
- Byte jump 2020 autumn recruitment programming question: quickly find your own ranking according to the job number
- 只是不断地建构平台,不断地收拢流量,并不能够做好产业互联网
- No idle servers? Import OVF image to quickly experience smartx super fusion community version
- Labels and paths
- Summary of JVM knowledge points - continuously updated
- (1) Openjuterpyrab comparison scheme
猜你喜欢
Kubernets Getting started tutoriel
Homomorphic encryption technology learning
Jupiter notebook installation
Date time type in database
Aviation core technology sharing | overview of safety characteristics of acm32 MCU
Trier les principales utilisations de l'Agent IP réseau
SSM框架系列——数据源配置day2-1
Pytorch: a pit about the implementation of gradreverselayer
Object.keys后key值数组乱序的问题
ZigBee CC2530 minimum system and register configuration (1)
随机推荐
Kubernetes 入門教程
Kubernetes 入门教程
Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
Use of Presto date function
BUUCTF WEB [BJDCTF2020]The mystery of ip
About the 'enum' enumeration type and structure.
进程虚拟地址空间区域划分
Packet capturing and sorting -- TCP protocol [8]
Servlet监听器&过滤器介绍
MySQL supports IP access
SSM framework series - JUnit unit test optimization day2-3
Analysis of InnoDB execution process in MySQL
Bert base Chinese Download (SMART)
php生成json处理中文
World Book Day: I'd like to recommend these books
STM32 control stepper motor (ULN2003 + 28byj)
PC starts multiple wechat at one time
PHP generates JSON to process Chinese
8 websites that should be known for product development to enhance work experience
After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect