# Bare minimum files needed to package with my own python application

**URL:** <https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016>\
**Category:** Uncategorized\
**Created:** [November 17, 2022, 4:13pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016 "2022-11-17T16:13:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![3d\_Illusions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/3d_illusions/32/6474_2.png) [@3d\_Illusions](https://forum.opencv.org/u/3d_Illusions)\
**Post date:** [November 17, 2022, 4:13pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/1 "2022-11-17T16:13:05Z")

</div>

Hi, I’d like to give my python application dnn\_superres . Which files do I need to provide to the end user in my application? Will I need to build the dll’s for each os and package them with my app, or is there a pip command that can get the pre-built dlls for the users OS?

Cheers 👍

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 18, 2022, 9:34am UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/2 "2022-11-18T09:34:35Z")

</div>

do NOT try to supply your own dlls, they wont work for apple / linux /raspi users.

instead, make your users run

```
pip install opencv-contrib-python

```

---

<div class="post-metadata">

**Author:** ![3d\_Illusions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/3d_illusions/32/6474_2.png) [@3d\_Illusions](https://forum.opencv.org/u/3d_Illusions)\
**Post date:** [November 18, 2022, 12:26pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/3 "2022-11-18T12:26:24Z")

</div>

Thanks very much, job sorted 👍 Now for the fun bit, learning all the available functions and models. Can the deep learning models be pip installed by the way, or do they need to be shipped with the addon?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 18, 2022, 12:40pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/4 "2022-11-18T12:40:10Z")

</div>

> [@3d\_Illusions](#):
>
> Can the deep learning models be pip installed by the way

no. you have to find your own way

> [@3d\_Illusions](#):
>
> or do they need to be shipped with the addon?

what is an “addon” ?

the [superres dnn models can be downloaded from here](https://github.com/Saafke/EDSR_Tensorflow/tree/master/models)

---

<div class="post-metadata">

**Author:** ![3d\_Illusions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/3d_illusions/32/6474_2.png) [@3d\_Illusions](https://forum.opencv.org/u/3d_Illusions)\
**Post date:** [November 18, 2022, 12:45pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/5 "2022-11-18T12:45:24Z")

</div>

Thanks again, an addon is just what I call the software because it runs in another software.

I was struggling to find any licence information regarding bundling the models with my code. Do you know if the licence permits it? I was going to bundle several of the models hopefully.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 18, 2022, 12:47pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/6 "2022-11-18T12:47:36Z")

</div>

license for both [code](https://github.com/Saafke/EDSR_Tensorflow/blob/master/LICENSE)and [models](https://github.com/Saafke/EDSR_Tensorflow/blob/master/LICENSE) is apache2

---

<div class="post-metadata">

**Author:** ![3d\_Illusions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/3d_illusions/32/6474_2.png) [@3d\_Illusions](https://forum.opencv.org/u/3d_Illusions)\
**Post date:** [November 18, 2022, 12:50pm UTC](https://forum.opencv.org/t/bare-minimum-files-needed-to-package-with-my-own-python-application/11016/7 "2022-11-18T12:50:56Z")

</div>

That’s perfect, thanks very much for you help, you’re a legend 👍
