-
Notifications
You must be signed in to change notification settings - Fork 360
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
Not able to count the vechile #35
Comments
Hi. I am having the same issue. When I use a different video I am not able to get any output. I tried to change ROI values but even then it did not work. Would be nice to get a guide on how to run our own traffic videos using this project. Thanks :) |
@venkateshbabusekar @ahmetozlu Did you get any solutions for this? |
@harshsp31 Nope. I didn't have time to look into the code. Please do let me know if you're able to find the solution for the problem. |
There are 3 files, which are concerned with change in ROI. Firstly, since the code provided in vehicle_detection.py is done hardcoded for sample video, as written in comments. So to make it work for your own video,
In the sample video, Direction of vehicles is DOWN, so if your video has UP direction (Back Face of Vehicle) then you have to change the logic in utils.speed_prediction.predict_speed function. Find the line If you need the modified code, let me know. |
Hi @ChampionTej05 It would be great if you could share the modified code. Looking forward to hearing from you. |
@venkateshbabuekar this is the link for the zip file of the folder. Make sure you place the files in this folder in the research directory of object api. The accuracy of counting solely depends upon whether your model is able to detect the vehicle near the ROI. So analyze your video once and see which line in the frame is best suited where you get maximum detection. https://drive.google.com/a/rknec.edu/file/d/1-6KgDYd1HPOdJc4okgcfDgpscbhNfItP/view?usp=drivesdk |
@ChampionTej05 give me access of your google drive to download code .... |
I have provided access to the code ,now. Please check it.
…On Sun, 23 Jun 2019, 12:40 am Amaad Mirza, ***@***.***> wrote:
@ChampionTej05 <https://github.com/ChampionTej05> give me access of your
google drive to download code ....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=AJ7O76OB6FW5US2RZQXAB23P3Z2LHA5CNFSM4GWGYH4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKPT6I#issuecomment-504691193>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ7O76KUMAFAW6NJOHGVZ4DP3Z2LHANCNFSM4GWGYH4A>
.
|
@ChampionTej05 i want to change the ROI line vertically to detect vehicles and counting not horizontally kindly suggest possible settings .... waiting for your reply |
@ChampionTej05 waiting for your reply.... |
This are the listed changes you would need.
Roi_detection.py :
ROI_POSITION= 1300 (you can set according to your frame size, if your frame size 1920 then set it to 1300)
Around 277 line : cv2.line(input_frame, ( ROI_POSITION,0),
(ROI_POSITION,height_img), (0, 0, 0xFF), 5)
Visualization_utils.py:
ROI_POSITION: should be same as above
Around 181: Change the IF condition to : left < ROI_POSITION
Speed_Prediction.py:
Roi_position: Same as above
Changes around line 39: many changes hence I am attaching file for it.
I have attached other files also. You can check.
[Vehicle_tensorflow](https://drive.google.com/open?id=1i9_K06xxP_k5qBJ7QGFdvKMWwbzcq0J3)
|
@ChampionTej05 thanks for your help .... kindly share your sample video through google drive |
Video on which I am running my project is confidential, so I can't share it. You can use any video of traffic. |
ok no problem.. any other link of other traffic video that related to sample code .....!! |
Leave your email, I will share you personally. |
my email id: [email protected] |
@ChampionTej05 where we can add kalman filter in this code ? i need to add kalman filter... |
Provided you know how to add the kalman filter on Open CV Frame, you can just go and check out the line 200 in roi_detection.py file. input_frame variable is your Frame. Just add filter to this frame. |
my question is about how to use because the object is bumping in the frame... is it apply to the frame or bounding boxes like this
|
According to the Documentation it should be applied to the boxes. |
@ChampionTej05 i am using this github code https://github.com/zziz/kalman-filter for kalman filter but not successful could you plz help me to put kalman filter in your code... |
@ChampionTej05 tried this kalman filter but not successfully integrate in it ..... need your help |
Sir, can u provide access to this drive link |
I have made the link public |
Oops, thanks bro
…On Sat, 29 Jun 2019, 16:05 Rakshit kathawate, ***@***.***> wrote:
I have made the link public
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=AHMERDOP3TL5DJOK4NSFAITP443FFA5CNFSM4GWGYH4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3WMUI#issuecomment-506947153>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHMERDKI3XRMSOV3MW25O43P443FFANCNFSM4GWGYH4A>
.
|
Sir, couldn't access says it requires permission |
@ChampionTej05 i have changed all the roi position in vehicle_detection_main.py, speed_prediction.py and visualization_utils.py but still cannot counting vehicles, help me please :( |
hi, @ChampionTej05 please give me access of your google drive to download code. Thanks in advanced. |
@ChampionTej05 could you explain this lines please :
|
Did you find any solution to this, please? |
Hi @ChampionTej05, I was just wondering if you are still able to share the files what what else needs to change around line 39 in the speed_prediction.py file to change the ROI. I'm having trouble getting it to count vehicles when I change the ROI (either on the sample video, or on my own video). Many thanks for all your help with this, you've done so much for people so far! |
I am trying to use my own video which is 30 frames per second and resolution is of 1920*1080. I tried to change the ROI value from 200 to different values but it didnt work.
Can you please guide me on the same??
I would also like to know where to update the frames per second value.
Looking forward to hearing from you.
The text was updated successfully, but these errors were encountered: