![]() |
Tracking only one Light
Our team wants us to only track one light instead of two. Does anyone know how to alter Kevin Watson's code so that the camera only tracks one light?
|
Re: Tracking only one Light
Someone else on the forum recently suggested having it use one of the bounding box corner values instead of the centroid values. You can pick a left or right corner and end up consistently tracking a single light.
|
Re: Tracking only one Light
I believe you could also change your minimum confidence value.
|
Re: Tracking only one Light
The way the example code does it is by taking the leftmost coordinate (x0) and adding a constant to it. This way it ignores the median value of the box.
Code:
int lowright_x = packet.x1, centroid_x = packet.mx, upleft_x = packet.x0, target_width=packet.x1-packet.x0; |
| All times are GMT -5. The time now is 04:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi