Skip to content

Commit

Permalink
Merge pull request openvinotoolkit#719 from isanghao/patch-1
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
vladimir-dudnik authored Dec 18, 2019
2 parents 8e63559 + 196455e commit d8ad070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demos/security_barrier_camera_demo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool ParseAndCheckCommandLine(int argc, char *argv[]) {
struct BboxAndDescr {
enum class ObjectType {
NONE,
VEHICCLE,
VEHICLE,
PLATE,
} objectType;
cv::Rect rect;
Expand Down Expand Up @@ -395,7 +395,7 @@ void ResAggregator::process() {
switch (bboxAndDescr.objectType) {
case BboxAndDescr::ObjectType::NONE: cv::rectangle(sharedVideoFrame->frame, bboxAndDescr.rect, {255, 255, 0}, 4);
break;
case BboxAndDescr::ObjectType::VEHICCLE: cv::rectangle(sharedVideoFrame->frame, bboxAndDescr.rect, {0, 255, 0}, 4);
case BboxAndDescr::ObjectType::VEHICLE: cv::rectangle(sharedVideoFrame->frame, bboxAndDescr.rect, {0, 255, 0}, 4);
cv::putText(sharedVideoFrame->frame, bboxAndDescr.descr,
cv::Point{bboxAndDescr.rect.x, bboxAndDescr.rect.y + 35},
cv::FONT_HERSHEY_COMPLEX, 1.3, cv::Scalar(0, 255, 0), 4);
Expand Down Expand Up @@ -506,7 +506,7 @@ void DetectionsProcessor::process() {
classifiersAggreagator->rawAttributes.lockedPush_back("Vehicle Attributes results:" + attributes.first + ';'
+ attributes.second + '\n');
}
classifiersAggreagator->push(BboxAndDescr{BboxAndDescr::ObjectType::VEHICCLE, rect, attributes.first + ' ' + attributes.second});
classifiersAggreagator->push(BboxAndDescr{BboxAndDescr::ObjectType::VEHICLE, rect, attributes.first + ' ' + attributes.second});
context.attributesInfers.inferRequests.lockedPush_back(attributesRequest);
}, classifiersAggreagator,
std::ref(attributesRequest),
Expand Down

0 comments on commit d8ad070

Please sign in to comment.