thusodangersimon / image_diff Goto Github PK
View Code? Open in Web Editor NEWdetects when birds arrive and depart from video footage
License: MIT License
detects when birds arrive and depart from video footage
License: MIT License
The parallelization is not yet doing what it is meant to! Fixing it right now...
The last few frames of the video are creating NANs need to sort this out...
I think the main bottleneck will be reading the video! So if we read it once in make_master_im we might have to try not to read it again in image_chi...
The code as it is you can change the different frame numbers!
For example, with 30 frames it takes 1 min while 3000 frames it take 5 min!
We may need to think a little bit more on this, because if we find that we need higher values for the background we'll be running into "trouble"! But I mean, things are still reasonable...
We will need an output file for the chisquared -- this is then also used in the plots!
I'm getting this error when using the code:
out.append(temp_image[sample])
For some reason, at the moment with the new code parallelised this seems to be an issue with the very last array! But when I remove [sample] it appears to work.
I will check this tomorrow when I'm in because I can't see what the effects are to the rest of the code...
This will aid users to follow how to use the code
Need to create a whole load of images that will then be appended to the output video so that we tracks where in the video an image comes from.
Insert a small pause when zipping the files because in some cases when writing out the reduced chisquared file results in sometimes a file starting on top of the other! We can play with the value below later, specially when we have more cores!
time.sleep(0.2*self.rank)
We need to output one jpg image with all the reduced chisquared
We should sort the file with the frames and reduced chisquared before it goes into the plot area! This should be as simple as inserting:
self.frame_no.sort()
I think this will also automatically bin the self.frame_chi into the right place!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.