gnnparsers.hpp 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2020 Intel Corporation

#include <opencv2/gapi/infer/parsers.hpp>

#ifndef OPENCV_NNPARSERS_OCV_HPP
#define OPENCV_NNPARSERS_OCV_HPP

namespace cv
{
14
void ParseSSD(const cv::Mat&  in_ssd_result,
15 16
              const cv::Size& in_size,
              const float     confidence_threshold,
17
              const int       filter_label,
18 19
              const bool      alignment_to_square,
              const bool      filter_out_of_bounds,
20 21
              std::vector<cv::Rect>& out_boxes,
              std::vector<int>&      out_labels);
22 23 24 25 26 27 28 29 30 31

void parseYolo(const cv::Mat&  in_yolo_result,
               const cv::Size& in_size,
               const float     confidence_threshold,
               const float     nms_threshold,
               const std::vector<float>& anchors,
               std::vector<cv::Rect>& out_boxes,
               std::vector<int>&      out_labels);
}
#endif // OPENCV_NNPARSERS_OCV_HPP