필터 지우기
필터 지우기

vehicle speed detection using image processing

조회 수: 22 (최근 30일)
sridhar
sridhar 2011년 11월 24일
편집: MathWorks Support Team 2022년 6월 7일
hi, i am doing a project to find vehicle speed using image processing. the procedure to find the speed is using kinematics equation,our video contains two imaginary lines one is starting line and other is ending line.when vehicle crosses first line counts the time upto vehicle reaches end line.distance between lines known to us and time calculated from algorithm.....how to find when vehicle crosses first line and leaves the second line ....... waiting for reply thanks you in advance
  댓글 수: 6
SHOBA MOHAN
SHOBA MOHAN 2017년 12월 31일
Though I got the output, the following error also comes after the execution of the above code mentioned by @Avisekkumar . Can anyone help me how to resolve it?
Too many outputs requested. Most likely cause is missing [] around left hand side that has a comma separated list
expansion.
Error in speed_1 (line 25)
BB=stats.BoundingBox;
Walter Roberson
Walter Roberson 2017년 12월 31일
That code is wrong. It assumes that only one region will be found on the video. You can get rid of the error message by using
BB = stats(1).BoundingBox;
but this will just pick out the first thing it finds in the image, without concern about whether it makes sense.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2022년 6월 7일
편집: MathWorks Support Team 2022년 6월 7일
2022 Update - In general, with the Computer Vision Toolbox, you can calibrate the camera to the road and use point tracking. The Sensor Fusion and Tracking Toolbox is an option to fuse data from multiple sensors to maintain situational awareness and localization.
Look for significant changes in the line. For example use improfile (to get the intensity profile along a line) and sum the values along the line and see when it make a big change in value.
  댓글 수: 2
sridhar
sridhar 2011년 11월 25일
thank you sir,
i have a doubt , Is it possible to keep on observe the changes along the line , i mean sum of pixel values automatically?.
and in my image two lines will present, Is it possible to monitor the two lines separate which is useful to know when vehicle cross first line and second line.
Image Analyst
Image Analyst 2011년 11월 25일
Yes it is. Simply have two calls to improfile with different line endpoints.

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Thilakam kuttiannan
Thilakam kuttiannan 2017년 12월 5일
편집: Walter Roberson 2017년 12월 5일
sir
I have a doubt.I am currently doing a project on vehicle speed detection. when I am using your code I am getting an error ??? Undefined function or variable 'vision'. what is the problem with this code. What is an alternative of this error.
sir currently i am using Matlab 2010 b version
waiting for reply thanks you in advance
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 12월 5일
The Computer Vision Toolbox did not exist in R2010b. In R2010b, all that existed was https://www.mathworks.com/help/releases/R2010b/toolbox/vipblks/ Video and Image Processing Blockset which was for Simulink.
You would need at least R2012a to use the Computer Vision Toolbox.

댓글을 달려면 로그인하십시오.


Thilakam kuttiannan
Thilakam kuttiannan 2018년 8월 28일
편집: Image Analyst 2018년 8월 28일
Sir
I have a doubt.I am currently doing a project on vehicle speed detection. when I am using your code I am getting an error ??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in main (line 28)
BB= stats.BoundingBox;
What is the problem with this code? What is an alternative of this error?
Sir currently I am using Matlab 2015 b version.
Waiting for reply thanks you in advance
Herewith i have attached the coding also
  댓글 수: 5
Ameni chetouane
Ameni chetouane 2019년 6월 18일
thank your for your reply.
Ameni chetouane
Ameni chetouane 2019년 6월 18일
can i send you the video test to your mail address because i couldn't attach the video.

댓글을 달려면 로그인하십시오.


Thilakam kuttiannan
Thilakam kuttiannan 2018년 8월 29일
thank you very much sir

NGUYEN THE VY
NGUYEN THE VY 2022년 5월 14일
i dont know how to do the theoretical basis part for this project. I hope anyone help me list me
theory section.
thank you very much!
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 5월 14일
See my comment above. You might need to click to expand comments.
https://www.mathworks.com/matlabcentral/answers/22194-vehicle-speed-detection-using-image-processing#comment_516852

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by