Skip to content
Discussion options

You must be logged in to vote

opencv-contrib-python 5.0.0.93 is now supported on Android and iOS: https://pypi.flet.dev/opencv-contrib-python

opencv-contrib-python is OpenCV with the opencv_contrib extra modules folded into the same import cv2 — aruco, face, tracking, ximgproc, wechat_qrcode, img_hash and more, on top of everything the base OpenCV gives you.

Install

numpy comes in automatically as an OpenCV dependency:

# pyproject.toml
dependencies = [
    "flet",
    "opencv-contrib-python",
]

[tool.flet.android]
extract_packages = ["cv2"]

Minimal app

Run a real cv2 pipeline and show the result. There's no GUI on a phone, so display images through Flet controls rather than cv2.imshow:

import flet as ft
import cv2
im…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants