mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
handdetect: remove unneeded check
Variable hands is already checked to contain a value previously at the beginning of the current block (in line 504). There is no need to check again. This is logically dead code. CID 1197693
This commit is contained in:
parent
59e7f0597d
commit
1e287b6fd7
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
|
||||||
if (filter->prev_r == NULL)
|
if (filter->prev_r == NULL)
|
||||||
filter->prev_r = &temp_r;
|
filter->prev_r = &temp_r;
|
||||||
/* Get the best PALM gesture */
|
/* Get the best PALM gesture */
|
||||||
for (i = 0; i < (hands ? hands->total : 0); i++) {
|
for (i = 0; i < hands->total; i++) {
|
||||||
r = (CvRect *) cvGetSeqElem (hands, i);
|
r = (CvRect *) cvGetSeqElem (hands, i);
|
||||||
distance = (int) sqrt (pow ((r->x - filter->prev_r->x),
|
distance = (int) sqrt (pow ((r->x - filter->prev_r->x),
|
||||||
2) + pow ((r->y - filter->prev_r->y), 2));
|
2) + pow ((r->y - filter->prev_r->y), 2));
|
||||||
|
|
Loading…
Reference in a new issue