- Log into your EyePop account at https://dashboard.eyepop.ai/auth/sign-in
- Create an API Pop
- After creating your pop, create or copy your API Key into the config.js file, as well as the Pop's UUID. If token is left empty, you will be navigated to an authentication workflow.
- Easiest: Web based IDE
- Option 1) Python:
python3 -m http.server 9001
- Option 2) LiveServer Extension to VS Code
Start your web server from within this directory and check out the examples: http://localhost:9001/upload.html
Description:
In this demo we use the EyePopSDK to place a pair of sunglasses ontop of a person inside of an image by using the simple Low Code Language in this following code block. This will follow the moving pose of any people and anchor to the image the positions of the detected elements.
config.draw = [
{
"type": "posefollow",
"targets": ["person"],
"Anchors": ["right eye", "left eye"],
"Image": "./fun/sunglasses3.png?raw=true",
"Scale": 2.6
},
]