/
Alx89
/
OpenCV
Обзор
Документация
Войти
/
Alx89
/
OpenCV
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.x
modules/gapi/src/api/ginfer.cpp
26 строк
795 B
Anatoliy Talamanov
Merge pull request #20271 from TolyaTalamanov:at/extend-python-bindings
30 июн 2021, 12:04
Не верифицирован
30 июн 2021, 12:04
fb7ef76
Код
Авторство
О чём код?
// 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) 2018-2019 Intel Corporation #include "precomp.hpp" #include <opencv2/gapi/infer.hpp> #include <unordered_set> cv::gapi::GNetPackage::GNetPackage(std::initializer_list<GNetParam> ii) : networks(ii) { } cv::gapi::GNetPackage::GNetPackage(std::vector<GNetParam> nets) : networks(nets) { } std::vector<cv::gapi::GBackend> cv::gapi::GNetPackage::backends() const { std::unordered_set<cv::gapi::GBackend> unique_set; for (const auto &nn : networks) unique_set.insert(nn.backend); return std::vector<cv::gapi::GBackend>(unique_set.begin(), unique_set.end()); }