augmented is a cross platform module used to do augmented reality using python
- opencv-contrib-python
- Numpy
- requirements may vary on diffrent operating systems
pip install augmented
Thats it 🌟
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
-
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```
ar.start(display=bool)
- display = Enabling display output
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
-
Markersize, totalMarkers = aruco code properties
-
debug = to use debug mode
-
cam = camera number
-
displayName = tite of the display window
arucoar.start(display=bool)
- display = wheather to display the output or not