-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么从ncnn::Mat转化为cv::Mat? #537
Comments
我使用的方法是: |
@bigbao9494 你怎么这么优秀!!! |
cv::Mat 怎么转 ncnn::Mat 呢 @bigbao9494 @nihui |
@wangzl2011 |
@Tomhouxin 一样的 |
@nihui Opencv的Mat如果不是连续的地址,怎么转化为ncnn的Mat呢 |
cv::Mat a; |
有人遇到转完出来结果是空值的吗 |
请问转完结果为空的问题解决了吗? |
转换的问题解决了,是由于ncnn::Mat被引用了一次之后,refcount变成了2,所以转出来的结果一直为空。重新定义一个ncnn::Mat,按照文档可成功转换。因此,我想问一下,怎样能让同一个ncnn::Mat多次引用呢?我用同一个ncnn::Mat经过mtcnn检测之后,再进行转换就变空了。 |
|
我做的是OCR,用的是CTC损失,神经网络输出的结果还需要进一步处理,需要将输出的ncnn::Mat转化为cv::Mat,但是不知道该怎么办。
The text was updated successfully, but these errors were encountered: