Giter VIP home page Giter VIP logo

android-motion-detection's People

Contributors

phishman3579 avatar

android-motion-detection's Issues

RgbMotionDetection.isDifferent() right?

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

not working

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.