Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kinkar
kinkar's Profile
2
Posts
5
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
OpenCV: reducing jitter
[0 Replies]
24-Nov-2011 09:07 PM
Forum:
General Discussion
I have been working on how to reduce the jitter and till some extent I have been able to do it, but now I dont find any way on how to implement it to multiple faces.
this works as charm for single face.....
image(otherFaceImage,lastX,lastY, lastWidth, lastHeight);
lastWidth = lastWidth + ((faces[i].width - lastWidth)* followSpeed / 5);
lastHeight = lastHeight + ((faces[i].height - lastHeight)* followSpeed / 5);
lastX = lastX + ((faces[i].x - lastX)* followSpeed / 3.5);
lastY = lastY + ((faces[i].y - lastY)* followSpeed /3.5);
help help...
smoothing received data from opencv...
[4 Replies]
30-Sep-2011 06:31 AM
Forum:
Contributed Library Questions
Hi,
I seek some guidance on how to smooth out the readings received from opencv....
following is the code with problems...
int[] numReadings = new int [5];
int index = 0; // index of the current reading
int total = 0; // running total
int average = 0; // average
void setup(){
for (int i = 0; i < numReadings; i++) { // make array of readings
numReadings[i] = 0;
}
void draw(){
total = total - readings[index];
readings[index] = opencv.detects;
total = total + readings[index];
if (index >= numReadings)
index = 0;
average = total / numreadings;
}
«Prev
Next »
Moderate user : kinkar
Forum