This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.md
43 lines (22 loc) · 1.63 KB
/
README.md
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
42
Camera4Kivy OpenCV Example
==========================
*OpenCV Image Analysis using Camera4Kivy.*
**2023-11-13 This repository is archived.**
# Overview
Uses OpenCV to edge detect the image stream, and replaces the usual Preview image with the detection result.
Available on most of the [usual platforms](https://github.com/Android-for-Python/Camera4Kivy/#tested-examples-and-platforms).
On a desktop the example assumes a builtin camera facing the user, so the Preview is mirrored. If you want to point a freely mounted camera you may want to set the [Camera4Kivy mirror option False]((https://github.com/Android-for-Python/Camera4Kivy/#mirror)).
The example demonstrates basic usage of the image analysis api. Analyzing image frames, annotating the results to the Preview (including when mirrored), and interacting with the annotation.
# Install
This example depends on Camera4Kivy. **[Read about Camera4Kivy](https://github.com/Android-for-Python/Camera4Kivy#camera4kivy)** because, depending on the platform you may need to install a [camera provider](https://github.com/Android-for-Python/camera4kivy#camera-provider).
## Windows, MacOS
`pip3 install opencv-python camera4kivy`
## Linux
`sudo apt-get install libatlas-base-dev`
`pip3 install opencv-python camera4kivy`
## Android
Camera4Kivy depends on Buildozer 1.3.0 or later
`pip3 install buildozer`
The example includes a [camera provider](https://github.com/Android-for-Python/camera4kivy#android-camera-provider) and a [buildozer.spec](https://github.com/Android-for-Python/camera4kivy#buildozerspec).
## iOS
**This example is not available on iOS due to lack of an opencv recipe.**