File size: 1,825 Bytes
48db851 7655b37 48db851 7655b37 48db851 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# OpenCV Model Zoo β Contribution Guidelines
Welcome to the OpenCV Model Zoo! A zoo for models tuned for OpenCV DNN.
---
## π How to Contribute
1. **Create** a pull request on https://huggingface.co/opencv/opencv_contribution.
2. **Add your files** in the pull request branch following the structure below.
3. **Push** your changes.
4. Weβll review your code and model data in the [Hugging Face Discussions](https://huggingface.co/opencv/opencv_contribution/discussions) and merge it.
---
## π Folder Structure
Each model directory **must** follow this structure:
```text
<root-folder>/ # i.e. opencv_contribution
βββ CMakeLists.txt # For C++ example build integration
βββ LICENSE # Your modelβs license
βββ README.md # Model description & usage
βββ <model_name>_<year><mon>.onnx # ONNX (or supported) model file;
β # use 4-digit year + three-letter month,
β # e.g. edge_detection_dexined_2024sep.onnx
βββ demo.cpp # (Optional) C++ demo
βββ demo.py # Python demo
βββ <helper_script>.py # (Optional) modelβloading wrapper
βββ example_outputs/ # Sample inputs & outputs
βββ input_image.png # At least one representative input
βββ output_image.png # Your modelβs result on that input
βββ result.gif # (Optional) output animation
```
---
## License
OpenCV Zoo is licensed under the [Apache 2.0 license](./LICENSE). Please refer to licenses of different models.
|