Buckets:

hf-doc-build/doc-dev / hub /pr_2521 /en /spaces-using-opencv.md
HuggingFaceDocBuilder's picture
|
download
raw
453 Bytes

Using OpenCV in Spaces

In order to use OpenCV in your Gradio or Python Spaces, you'll need to make the Space install both the Python and Debian dependencies

This means adding python3-opencv to the packages.txt file, and adding opencv-python to the requirements.txt file. If those files don't exist, you'll need to create them.

To see an example, see this Gradio project.

Xet Storage Details

Size:
453 Bytes
·
Xet hash:
4fc2bc242c2544feb48105db8014cae452b5653cad56b51994a6e88c5e548d03

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.