• Home
  • Raw
  • Download

Lines Matching refs:cv

12 static cv::Scalar GetScalarColorCode(std::tuple<int, int, int> color)  in GetScalarColorCode()
14 return cv::Scalar(std::get<0>(color), std::get<1>(color), std::get<2>(color)); in GetScalarColorCode()
17 void AddInferenceOutputToFrame(od::DetectedObjects& decodedResults, cv::Mat& inputFrame, in AddInferenceOutputToFrame()
38 cv::Size textSize = getTextSize(textStr, cv::FONT_HERSHEY_DUPLEX, 1.0, 1, &baseline); in AddInferenceOutputToFrame()
44 cv::Rect r(bbox.GetX(), bbox.GetY(), inputFrame.cols - bbox.GetX(), bbox.GetHeight()); in AddInferenceOutputToFrame()
46 cv::rectangle(inputFrame, r, GetScalarColorCode(colorCode), 2, 8, 0); in AddInferenceOutputToFrame()
50 cv::Rect r(bbox.GetX(), bbox.GetY(), bbox.GetWidth(), inputFrame.rows - bbox.GetY()); in AddInferenceOutputToFrame()
52 cv::rectangle(inputFrame, r, GetScalarColorCode(colorCode), 2, 8, 0); in AddInferenceOutputToFrame()
56 cv::Rect r(bbox.GetX(), bbox.GetY(), bbox.GetWidth(), bbox.GetHeight()); in AddInferenceOutputToFrame()
58 cv::rectangle(inputFrame, r, GetScalarColorCode(colorCode), 2, 8, 0); in AddInferenceOutputToFrame()
63 cv::Rect text(bbox.GetX(), textBoxY, textSize.width, textSize.height); in AddInferenceOutputToFrame()
65 cv::rectangle(inputFrame, text, GetScalarColorCode(colorCode), -1); in AddInferenceOutputToFrame()
67 cv::Scalar color; in AddInferenceOutputToFrame()
71 color = cv::Scalar::all(0); in AddInferenceOutputToFrame()
75 color = cv::Scalar::all(255); in AddInferenceOutputToFrame()
78 cv::putText(inputFrame, in AddInferenceOutputToFrame()
80 cv::Point(bbox.GetX(), textBoxY + textSize.height -(textSize.height)/3), in AddInferenceOutputToFrame()
81 cv::FONT_HERSHEY_DUPLEX, in AddInferenceOutputToFrame()
89 void ResizeFrame(const cv::Mat& frame, cv::Mat& dest, const common::Size& aspectRatio) in ResizeFrame()
96 cv::resize(frame, dest, cv::Size(0, 0), resizeFactor, resizeFactor, DefaultResizeFlag); in ResizeFrame()
106 void PadFrame(const cv::Mat& src, cv::Mat& dest, const int bottom, const int right) in PadFrame()
110 cv::copyMakeBorder(src, dest, 0, bottom, 0, right, cv::BORDER_CONSTANT); in PadFrame()
122 void ResizeWithPad(const cv::Mat& frame, cv::Mat& dest, cv::Mat& cache, const common::Size& destSiz… in ResizeWithPad()