碰撞探测器 [英] collision detector

查看:108
本文介绍了碰撞探测器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在编写一个c#项目.

到目前为止,我所要做的是,我的GUI上有一个图片框,可在计算机上显示打印屏幕图像.
因此,我从youtube打开了一个交通视频,并将视频设置到了图片框.

使用运动检测器,我可以计算视频的流量.
这是我到目前为止所做的.

现在,我被告知要添加一些代码来检查交通中是否发生任何碰撞.

有人可以帮我做这部分吗?

Hi,

I am writing a c# project.

So far what I have done is I have got a picturebox on my GUI which shows a printscreen image on my computer.
So I open a traffic video from youtube and I set the video onto the picturebox.

Using motion detector I count the traffic of the video.
This is what I have done so far.

Now I was told to add in some code to check if any collisions occured within the traffic.

Can someone help me with this part?

推荐答案

很难说不看代码,但是我从对话中知道这与Delta v和Delta a有关和Delta向量va.

那就是在离散时间范围内测得的速度变化,加速度变化和方向变化.

因此,您正在寻找非线性运动和非对数的加速度/减速度.

请参阅此处 [
Hard to say without seeing code, but I know from conversations on this that it is to do with Delta v and Delta a, and Delta vector va.

That is change of speed, change of rate of acceleration and change of direction measured over discrete timeframes.

Therefore you are looking for non-linear motion, and non-logarithmic acceleration/decelerations.

See Here[^] for you are not the first.


是我的是从youtube运行的视频的检测器吗?您认为我可以使用该链接吗?由于视频中的汽车一直在变化,我该如何获取位置.X&Y?汽车在道路上行驶时,碰撞随时可能发生,所以我需要围墙吗?
as mine is a detector of a video running from youtube do u think i can use that link?? as my car from the video is alway changing how can i get the position.X & Y? the car is running on the road collision can hapen at any point so i need the wall??


这篇关于碰撞探测器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆