This WebAR application uses image recognition to display a video overlay on a specific marker. When the marker is detected, the video fades in and starts playing. When the marker is lost from view, the video fades out and pauses.
- Image marker recognition
- Video overlay on recognized marker
- Fade in/out effects for smooth transitions
- Responsive design with loading screen
To run this application, you need:
- A web server supporting HTTPS (required for accessing the camera in most browsers)
- A device with a camera (e.g., smartphone, laptop with webcam)
- A modern web browser that supports WebAR (e.g., recent versions of Chrome, Firefox, or Safari)
- Scan the qr code png
- Point the camera towards the dominion logo png
- To change the video, replace
video.mp4
with your desired video file and update thesrc
attribute in the HTML. - To use a different marker, replace
pattern-logo.patt
with your new pattern file and update theurl
attribute of thea-marker
element. - Adjust the
scale
attribute of thea-video
element to resize the video overlay as needed.
This application uses the following libraries:
[Specify your license here]