当前位置:网站首页>将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
边栏推荐
- leetcode:437. Path sum III [DFS selected or not selected?]
- If you were a golang interviewer, what questions would you ask?
- Resolve disagrees about version of symbol device_ create
- Date time type in database
- Introduction to servlet listener & filter
- MySQL supports IP access
- [csnote] ER diagram
- [daily question] chessboard question
- Bert base Chinese Download (SMART)
- 世界读书日:我想推荐这几本书
猜你喜欢

The El table horizontal scroll bar is fixed at the bottom of the visual window

box-sizing

Mysql8 installation

Pytorch: a pit about the implementation of gradreverselayer

数据库中的日期时间类型

Analysis of InnoDB execution process in MySQL

SSM框架系列——Junit单元测试优化day2-3

梳理網絡IP代理的幾大用途

World Book Day: I'd like to recommend these books

The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
随机推荐
5 free audio material websites, recommended collection
云原生KubeSphere部署Mysql
Subscribe to Alibaba demo send business messages
Jiachen chapter Genesis "inner universe" joint Edition
Remote sensing image classification and recognition system based on convolutional neural network
leetcode-791. 自定义字符串排序
实现一个盒子在父盒子中水平垂直居中的几种“姿势”
Recommended website for drawing result map
Record Alibaba cloud server mining program processing
教你快速开发一个 狼人杀微信小程序(附源码)
Introduction to servlet listener & filter
22. Bracket generation
Go iris framework implements multi service Demo: start (listen to port 8084) service 2 through the interface in service 1 (listen to port 8083)
精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
Free and open source intelligent charging pile SaaS cloud platform of Internet of things
使用Source Insight查看编辑源代码
Bert base Chinese Download (SMART)
mysql中 innoDB执行过程分析
Teach you to quickly develop a werewolf killing wechat applet (with source code)