Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Checking if face was in previous frame

To avoid false positives or unknowns which only happens in 1 frame (and quick oscillations between predictions), i thought i could do something like this and make sure it happens at least in 2 frames.

prototype code:

int framenumber=1; // global framecounter
node.framenumber=1; // per user framecounter
for {
framenumber++;
       { // face loop
            //prediction
           if(framenumber==usernode.framenumber { // if in sync we got face for at least 2 contigious frames, so show it
    showprediction
           usernode.framenumber++;

if(usernode.framenumber==2) 
usernode.framenumber=1; //reset

The above would work fine if there was only 1 face and if the face showed up every frame. Which is not realistic. I need some formula that would incorporate the differing amount of recognitions (400x20x1) and multiply that by the amount of times we have seen that person.

I'm thinking maybe uses a modulus ? I'm not great at math and it seems like a simple thing but it seems to elude me all afternoon as to what the best approach is.

frames persons instances of person

400 peterx20recognitions 1

400 annax16recognitions 4

Checking if face was in previous frame

To avoid false positives or unknowns which only happens in 1 frame (and quick oscillations between predictions), i thought i could do something like this and make sure it happens at least in 2 frames.

prototype code:

int framenumber=1; // global framecounter
node.framenumber=1; // per user framecounter
for {
framenumber++;
       { // face loop
            //prediction
           if(framenumber==usernode.framenumber { // if in sync we got face for at least 2 contigious frames, so show it
    showprediction
           usernode.framenumber++;

if(usernode.framenumber==2) 
usernode.framenumber=1; //reset

The above would work fine if there was only 1 face and if the face showed up every frame. Which is not realistic. I need some formula that would incorporate the differing amount of recognitions (400x20x1) and multiply that by the amount of times we have seen that person.

I'm thinking maybe uses a modulus ? I'm not great at math and it seems like a simple thing but it seems to elude me all afternoon as to what the best approach is.

frames persons instances of person

400 peterx20recognitions 1

400 annax16recognitions 4

Checking if face was in previous frame

To avoid false positives or unknowns which only happens in 1 frame (and quick oscillations between predictions), i thought i could do something like this and make sure it happens at least in 2 frames.

prototype code:

int framenumber=1; // global framecounter
node.framenumber=1; // per user framecounter
for {
framenumber++;
       { // face loop
            //prediction
           if(framenumber==usernode.framenumber { // if in sync we got face for at least 2 contigious frames, so show it
    showprediction
           usernode.framenumber++;

The above would work fine if there was only 1 face and if the face showed up every frame. Which is not realistic. realistic (and in that case i wouldn't have a problem to worry about). I need some formula that would incorporate the differing amount of recognitions as shown below (400x20x1) and multiply that by the amount of times we have seen that person.

I'm thinking maybe uses a modulus ? I'm not great at math and it seems like a simple thing but it seems to elude me all afternoon as to what the best approach is.

frames persons instances of person

400 peterx20recognitions 1

400 annax16recognitions 4

Checking if face was in previous frame

To avoid false positives or unknowns which only happens in 1 frame (and quick oscillations between predictions), i thought i could do something like this and make sure it happens at least in 2 frames.

prototype code:

int framenumber=1; framenumber; // global framecounter
node.framenumber=1; // per user framecounter
 for {
framenumber++;
       { // face loop
            //prediction
           if(framenumber==usernode.framenumber { // if in sync we got face for at least 2 contigious frames, so show it
    showprediction
           usernode.framenumber++;
usernode.framenumber++; // per user framecounter

The above would work fine if there was only 1 face and if the face showed up every frame. Which is not realistic (and in that case i wouldn't have a problem to worry about). I need some formula that would incorporate the differing amount of recognitions as shown below (400x20x1) and multiply that by the amount of times we have seen that person.

I'm thinking maybe uses a modulus ? I'm not great at math and it seems like a simple thing but it seems to elude me all afternoon as to what the best approach is.

frames persons instances of person

400 peterx20recognitions 1

400 annax16recognitions 4