使用opencv进行视频处理

发布于 2024-08-29 01:47:28 字数 111 浏览 5 评论 0原文

我正在尝试检测视频文件中的汽车。我可以进行背景减法,并且移动的汽车作为前景对象可见。但我无法在汽车周围绘制矩形。我该怎么做?

或者我怎么能说在框架的特定区域有一辆汽车/或现在没有汽车。请帮忙。

i'm trying to detect car in a video file.i can do background subtraction and the moving cars are visible as foreground object. but i can't draw rectangle around the car. how can i do it?

or how can i say in a particular area of the frame there is a car/or there is no car now.please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别靠近我心 2024-09-05 01:47:28

如果需要绘制直线、圆、多边形等,应该使用绘图函数 在这种情况下,OpenCV 必须为您提供帮助。

因此,(例如)一旦找到图像中的每个对象,请查找其中心,然后在其周围绘制一个椭圆形。

If you need to draw lines, circles, poligons, etc., you should use the drawing functions that OpenCV has to help you in this case.

So, (for instance) once you've found each object in the image, look for its center and then draw an ellpise around it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文