dodsont / android-motion-detection Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-motion-detection
License: Apache License 2.0
Automatically exported from code.google.com/p/android-motion-detection
License: Apache License 2.0
In RgbMotionDetection.java,
protected static boolean isDifferent(int[] first, int width, int height) {
...
int pix = (0xff & ((int) first[ij]));
int otherPix = (0xff & ((int) mPrevious[ij]));
...
if (Math.abs(pix - otherPix) >= mPixelThreshold) {
...
}
'pix' and 'otherPix' = 0xFF & color.
This method seems to compare only BLUE color.
Is below right, isn't it?
sorry my english.
int pixB = first[ij] & 0xff;
int otherPixB = mPrevious[ij] & 0xff;
int pixG = (first[ij] >> 8) & 0xff;
int otherPixG = (mPrevious[ij] >> 8) & 0xff;
int pixR = (first[ij] >> 16) & 0xff;
int otherPixR = (mPrevious[ij] >> 16) & 0xff;
if (Math.abs(pixR-otherPixR) + Math.abs(pixG-otherPixG) +
Math.abs(pixB-otherPixB) >= mPixelThreshold) {
...
}
Original issue reported on code.google.com by [email protected]
on 16 Jul 2013 at 9:13
What steps will reproduce the problem?
1.senseactivity is the main java class
2.detector = new RgbMotionDetection(); this does not calls the
RgbMotionDetection class
3.
What is the expected output? What do you see instead?
expected output: camera screen with detecting motion but i am getting an
output: camera screen (but motion is not detected)
What version of the product are you using? On what operating system?
version 2.2(windows xp)
Please provide any additional information below.
i was wondering if you could make the code to run and detect motion as soon as
possible ,
if you have an full working code you could send to this mail address
[email protected] (or) [email protected] that would help me a lot
Original issue reported on code.google.com by [email protected]
on 30 Mar 2012 at 10:07
Attachments:
How to dectect right or left or top or bottom derection of motion?
Original issue reported on code.google.com by [email protected]
on 20 Jun 2013 at 3:57
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.