-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
79 lines (57 loc) · 1.86 KB
/
README.txt
File metadata and controls
79 lines (57 loc) · 1.86 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# augmented
Ar python is a cross platform module used to do augmented reality using python
# Requirements
----
- opencv-contrib-python
- Numpy
* requirements may vary on diffrent operating systems
## instalation
`pip install augmented`
Thats it
# How to use
## Overlaying images
## initializing
-----------
```py
import augmented
ar = augmented.ar_overlay(capture:int)#capture = camera number
ar.setup(targetImage: str, overlayImage: str, nfeatures: int, debug: bool=True, confidence: int=25, displayName: str="Augmented by sarang")
```
- targetImage = Image to overlay on top of
- overlayImage =Image to overlay
#### Not required but can tweak the ones below
- nfeatures = Features to detect on target image the bigger the more accurate and the more resource intensive 1000 recomended
- debug = debug mode
- confidence = How many feature matches to confirm
- displayname = title name```
### Overlaying
```py
ar.start(display=bool)
```
- display = Enabling display output
## Aruco scanning
### setup
```py
import augmented
arucoar = augmented.arucoar(cap:int=0)
imgAug = {0: 'assets/unnamed.jpg'}
arucoar.setup(imgAug: dict, markerSize: int = 6, totalMarkers: int = 250, debug: bool = True, cam: int = 0, displayName: str = 'Augmented by Sarang')
```
- imgAug = a dict containing the aruco id as value and the image(location) to display when the value is True
#### not neccessry but still can tweak
- Markersize, totalMarkers = aruco code properties
- debug = to use debug mode
- cam = camera number
- displayName = tite of the display window
---
### Scanning and overlaying
```py
arucoar.start(display=bool)
```
- display = wheather to display the output or not
#### recomended way of using is to put the code inside a loop
--------------------------
## version - 2.1.0Stable
## contributions are appreciated and will be credited in the package
# Thank you
# Happy augmenting