Download modules/dnn/src/backend.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/backend.hpp
- Command line
-
hf download hf://tgollogly/test/modules/dnn/src/backend.hpp
-
curl -L -o backend.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/backend.hpp
1.15 kB
| // 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. | |
| namespace cv { namespace dnn_backend { | |
| using namespace cv::dnn; | |
| class CV_EXPORTS NetworkBackend | |
| { | |
| public: | |
| virtual ~NetworkBackend(); | |
| virtual void switchBackend(Net& net) = 0; | |
| /** | |
| @param loaderID use empty "" for auto | |
| @param model see cv::dnn::readNetwork | |
| @param config see cv::dnn::readNetwork | |
| */ | |
| virtual Net readNetwork(const std::string& loaderID, const std::string& model, const std::string& config) = 0; | |
| /** @overload */ | |
| virtual Net readNetwork( | |
| const std::string& loaderID, | |
| const uchar* bufferModelConfigPtr, size_t bufferModelConfigSize, | |
| const uchar* bufferWeightsPtr, size_t bufferWeightsSize | |
| ) = 0; | |
| // TODO: target as string + configuration | |
| virtual bool checkTarget(Target target) = 0; | |
| }; | |
| } // namespace dnn_backend | |
| } // namespace cv | |