# How to use OpenCV in py-script

**URL:** <https://forum.anaconda.com/t/how-to-use-opencv-in-py-script/25404>\
**Category:** PyScript\
**Created:** [June 18, 2022, 7:02pm UTC](https://forum.anaconda.com/t/how-to-use-opencv-in-py-script/25404 "2022-06-18T19:02:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhama664](https://avatars.discourse-cdn.com/v4/letter/s/db6015/32.png) [@shubhama664](https://forum.anaconda.com/u/shubhama664)\
**Post date:** [June 18, 2022, 7:02pm UTC](https://forum.anaconda.com/t/how-to-use-opencv-in-py-script/25404/1 "2022-06-18T19:02:19Z")

</div>

I’m trying to import the OpenCV model in py-env and using it inside , but it is throwing an error.  
Can someone help me out with this?

---

<div class="post-metadata">

**Author:** ![john.hanley](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/john.hanley/32/1294_2.png) [@john.hanley](https://forum.anaconda.com/u/john.hanley)\
**Post date:** [June 19, 2022, 4:03am UTC](https://forum.anaconda.com/t/how-to-use-opencv-in-py-script/25404/2 "2022-06-19T04:03:15Z")

</div>

This link might help:

> <https://stackoverflow.com/questions/72197753/is-it-possible-to-use-opencv-module-in-pyscript/72207892#72207892>
