当前位置:网站首页>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
边栏推荐
- Introduction to standardization, regularization and normalization
- MySQL基础合集
- Come in and teach you how to solve the problem of port occupation
- Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
- PHP的Laravel与Composer部署项目时常见问题
- go defer
- LeetCode-279-完全平方数
- What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
- Factory mode
- Learn to C language fourth day
猜你喜欢
go slice
Zhongchuang storage | how to choose a useful distributed storage cloud disk
MySQL进阶之数据的增删改查(DML)
LeetCode 116. 填充每个节点的下一个右侧节点指针
Leetcode 74. Search two-dimensional matrix
Matlab matrix index problem
Common commands of MySQL in Linux
What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
Latex formula
随机推荐
Cmake project under vs2019: calculating binocular parallax using elas method
LeetCode 1346、检查整数及其两倍数是否存在
Unity ECS dots notes
Awk print special characters
Explore ASP Net core read request The correct way of body
wait、waitpid
Leetcode 709, convert to lowercase
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
Thinking after learning to type
pikachuxss如何获取cookie靶场,返回首页总是失败
3-5 obtaining cookies through XSS and the use of XSS background management system
Preliminary understanding of cache elimination algorithm (LRU and LFU)
Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
Leetcode-279-complete square number
Recommended usage scenarios and production tools for common 60 types of charts
Zhongchuang storage | how to choose a useful distributed storage cloud disk
软件测试要怎么学?自学还是培训看完这篇文章你就懂了
Queue template code
Some grounded words
laravel 发送邮件