Coder Social home page Coder Social logo

Comments (6)

FeiYull avatar FeiYull commented on June 26, 2024

@rrrrmy

cv::imshow(m_param.winname, imgsBatch[bi] + m_img_canvas);

变量canvas

from tensorrt-alpha.

rrrrmy avatar rrrrmy commented on June 26, 2024

谢谢,已加星,但是获取到canvas需要用到YOLOv8Seg::showAndSave函数,我想实时在相机上获取对应照片的mask的话这个函数处理时间还是太高了,有什么间接的方法可以快速获得mask或者mask对应的多边形点吗?感谢! @FeiYull

from tensorrt-alpha.

FeiYull avatar FeiYull commented on June 26, 2024

@rrrrmy

mask_instance = mask_instance > 0.5f;

对变量mask_instance执行opencv中查找凸包,或者轮廓函数,例如cv::findContours,如果你的图片中只有一个instance,循环一次,很快。越多越慢。

from tensorrt-alpha.

rrrrmy avatar rrrrmy commented on June 26, 2024

@FeiYull 谢谢你的耐心回答,另外我还发现在windows下的debug模式下,采用eigen库比利用opencv库做矩阵相乘与赋值的操作,eigen消耗的时间更久,不知道是不是debug模式的原因

from tensorrt-alpha.

FeiYull avatar FeiYull commented on June 26, 2024

@rrrrmy 别用debug测速,可以自己改成opencv作矩阵乘法试一试

from tensorrt-alpha.

rrrrmy avatar rrrrmy commented on June 26, 2024

好的,谢谢!

from tensorrt-alpha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.