|
|
@ -76,6 +76,7 @@ void Detect::Thread() {
|
|
|
|
|
|
|
|
|
|
|
|
objectX = -1;
|
|
|
|
objectX = -1;
|
|
|
|
objectY = -1;
|
|
|
|
objectY = -1;
|
|
|
|
|
|
|
|
output.detmatrix = malloc (sizeof(uint32_t) * DET_MAXSHIFT * DET_MAXSHIFT);
|
|
|
|
|
|
|
|
|
|
|
|
while (running) {
|
|
|
|
while (running) {
|
|
|
|
// check for new frame
|
|
|
|
// check for new frame
|
|
|
@ -126,6 +127,7 @@ void Detect::Thread() {
|
|
|
|
output.posx = objectX;
|
|
|
|
output.posx = objectX;
|
|
|
|
output.posy = objectY;
|
|
|
|
output.posy = objectY;
|
|
|
|
output.image = &imagegtk;
|
|
|
|
output.image = &imagegtk;
|
|
|
|
|
|
|
|
memcpy (output.detmatrix, detmatrix, sizeof(uint32_t) * DET_MAXSHIFT * DET_MAXSHIFT);
|
|
|
|
|
|
|
|
|
|
|
|
UnLockMutex(); // unlock Config
|
|
|
|
UnLockMutex(); // unlock Config
|
|
|
|
|
|
|
|
|
|
|
@ -136,6 +138,7 @@ void Detect::Thread() {
|
|
|
|
|
|
|
|
|
|
|
|
usleep (10000);
|
|
|
|
usleep (10000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
free (output.detmatrix);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|