Merge pull request #18792 from tweicc:examples_android

PiperOrigin-RevId: 217189744
This commit is contained in:
TensorFlower Gardener 2018-10-15 12:56:24 -07:00
commit 6d84f1ff52

View File

@ -311,7 +311,7 @@ int KeypointDetector::AddExtraCandidatesForBoxes(
return num_keypoints_added;
}
Keypoint curr_keypoint = keypoints[num_keypoints_added++];
Keypoint& curr_keypoint = keypoints[num_keypoints_added++];
curr_keypoint.pos_ = Point2f(
box.left_ + box.GetWidth() * (i + 0.5f) / kNumToAddAsCandidates,
box.top_ + box.GetHeight() * (j + 0.5f) / kNumToAddAsCandidates);