Skip to content

rupansh/EMG-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

EMG Classification API

Setup

Run from cmd:

python3 -m venv .venv
# For windows
.venv\Scripts\activate.bat
# For Linux
source .venv/bin/activate

Start Server

uvicorn main:app --reload

Request Example

POST /glove HTTP/1.1
Content-Type: application/json
accept: application/json

{"emg": [-1, 23, -31, 1, 2]}
HTTP/1.1 200 Ok

{"fingers": [1, 1, 1, 1, 1]}

Curl example:

curl -X 'POST' \
    'http://127.0.0.1:8000/glove' \
    -H 'accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{"emg": [0, 0, 0, 0, 0]}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages