jorgecardoso.eu→Jorge Cardoso's Blog→Advanced Background Subtraction - Source Code |
Tuesday, January 8. 2008Advanced Background Subtraction - Source CodeTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hi im a final year student doing a project in which i want to do background subtraction on images taken in sequence in order to determine the traffic flow of vehicles. Could you offer me any help in solving the issue, hints as to where to start and issues to be aware of will be greatly appreciated I don't know much about traffic analysis, but check this paper: http://www.lana.lt/journal/19/Atkociunas.pdf, maybe you can get some pointers there. Your code examples requires java.awt.geom How do I install this so that processing can locate the libraries? Where do I download the awt libraries? thanks, Steve Hi, java.awt.geom is part of the standard java distribution. I thought Processing should locate it automatically. You're having trouble running the example? Mail me with details about the errors and OS and Processing version and maybe I can sort it out... I have the same problem here. Working on a Macbook Pro OSx 10.4 running Processing 0135. The error it shows is: /tmp/build6419.tmp/Temporary8485349.java:677:12:677:29: Semantic Error: No accessible method with signature "signum(int)" was found in type "java.lang.Math". /tmp/build6419.tmp/Temporary8485349.java:682:14:682:31: Semantic Error: No accessible method with signature "signum(int)" was found in type "java.lang.Math". /tmp/build6419.tmp/Temporary8485349.java:683:15:683:32: Semantic Error: No accessible method with signature "signum(int)" was found in type "java.lang.Math". Could you please help me. Thanks. You need Java 1.5 installed to run the examples. Install the JDK 1.5 or higher and install Processing (without Java). I think that should do it. hey Jorge, thanks for making this code public. I got the java 1.5 installed on my system, but still getting the same error as above.
this is the line where the error points at. Kind Regards Hi, I shouldn't have used this function :( everybody has problems with this... :) The best solution is to replace the Math.signum() function by our own: [code] float signum(float v) { if (v == 0) return 0; return v>0?1:-1; } [/code] Just copy this declaration to the bottom of the file where the error occurs and replace all "Math.signum" with just "signum". This should work (haven't tested, if it doesn't let me know). jorge Hi jorge, that fixed the problem! To get an exacter silhouette of the body like silhouette collusions, is it enough to play with the treshold? Or is it complexer than that? Did you made the pde file of collusions public? Thanks for the help! you can always contact me at janhoebeeck@telenet.be Hi, The threshold will help you get rid of some shadows in the background. And that will make the silhouette more exact. Of course it depends very much on the lighting conditions (don't forget to turn off automatic exposure and brightness on the webcam). The balloon collisions file is not public, but the code for testing collisions is also on the source I made public... its just a matter of testing insideness on a polygon (the Silhouette class has a method for that). jorge Hi Jorge, Im working on silhouette extraction using OpenCV. Can you help me in getting the results.Do you have any source code in OpenCv. kindly help me as its getting delayed in my work. Thank you, with regards, Savanth Hi, I personally don't have code in OpenCV, but check the OpenCV library for Processing: http://www.ubaa.net/shared/processing/opencv/ jorge Hi jorge, i have done background subtraction using CvGaussBGModel. I have to fill the moving object with colours as u have done .can u plz guide me in doin so . thank you in advance. with regards, Savanth hi im doing my project on background detection using edge and texture please give code how to do in texture usind DCT I would like to know if this program would work if multi-cams were used. How can I change the program in order to capture more than 1 webcam at the same time? I want to capture 4 webcams at the same time and the projection of the processing is something like divided into 4 sectors. one on the top right, one on the top left, one is down right and the last one is down left. Can you give me some hints? hi jorge, i m a final yr engg. student n m implementing a project on virtual mirror. So i have to do background subtraction n silhoutte xtraction on still images. i hv gone thru ur code bt m nt able to run it. i hav java1.7 installed. hope u could help soon......... Hi Jorge, Iam doing my final year project which need to detect the outer boundary of an image.So please give me some guidelines about how to extract the boundary using java code. thanks in advance . i want to use background subtraction to classify video images can you advice me how to do this.Regards |
Recent Entries
ArchivesEntry's LinksCategories
Blog AdministrationCreative Commons License![]() All posts in this blog are licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. |