当前位置:网站首页>Opencv reports an error. Expected PTR < CV:: UMAT > for argument '% s'‘
Opencv reports an error. Expected PTR < CV:: UMAT > for argument '% s'‘
2022-04-23 20:47:00 【NuerNuer】
In the use of opencv When processing images , Use cv2.imwrite() Errors are always reported when saving images :
Expected Ptr<cv::UMat> for argument '%s'
Look up the data and find , stay cv::UMat When passing parameters , Type must be np.float32, Pass in another type ( example ,np.int32) Will report a mistake
terms of settlement :
img_ = np.float32(img)
......
cv2.imwrite('a.jpg', img_)
namely , Convert other types of data into np.float32
版权声明
本文为[NuerNuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210545523211.html
边栏推荐
- Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
- Unity solves Z-fighting
- LeetCode 709、转换成小写字母
- Vscode download speed up
- Matlab matrix index problem
- Fastdfs mind map
- LeetCode 74、搜索二维矩阵
- C# 知识
- Unity asset import settings
- Go language development Daily Fresh Project Day 3 Case - Press Release System II
猜你喜欢
[matlab 2016 use mex command to find editor visual studio 2019]
go slice
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
Go language development Daily Fresh Project Day 3 Case - Press Release System II
Gsi-ecm digital platform for engineering construction management
MySQL数据库常识之储存引擎
What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
LeetCode 74、搜索二维矩阵
Unity solves Z-fighting
Common commands of MySQL in Linux
随机推荐
Some grounded words
黑客的入侵方式你知道几种?
Flex layout
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
On IRP from the perspective of source code
[PTA] l1-006 continuity factor
居家第二十三天的午饭
bounding box iou
Leetcode 994, rotten orange
Introduction to intrusion detection data set
Matlab matrix index problem
一些接地气的话儿
go interface
[SQL] string series 2: split a string into multiple lines according to specific characters
Cmake project under vs2019: calculating binocular parallax using elas method
MySQL进阶之常用函数
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
Linux中,MySQL的常用命令
SQL: query duplicate data and delete duplicate data
Async function ------ ES6