test16bit
Steffen Pohle 4 years ago
parent 615adc8930
commit 3fb13b364f

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

@ -29,7 +29,7 @@ enum {
struct { struct {
VideoFrame *image; // detected image VideoFrame *image; // detected image
uint16_t *detmatrix; uint32_t *detmatrix;
int posx; // position of the detected object int posx; // position of the detected object
int posy; // position of the detected object int posy; // position of the detected object
} typedef DetectOutput; } typedef DetectOutput;

Loading…
Cancel
Save