Our goal is to enable people who have cameras on their devices to learn more about the world no matter the language, culture or trend. We are augmenting exploration through the utilization of Computer Vision and Deep Learning to deliver a seemless experience on your phone, laptop or desktop.
- Clone repo
- Install docker and docker-compose
- Pull all binary engine files:
Install git lfs
with the following:
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
apt-get install git-lfs
git lfs install
git lfs fetch
git lfs pull
- Run
docker-compose up --build
- Connect to
http://ip:7000/<route>
(or some other port, check the docker-compose.yml)
[Under construction]
-
Cleaning up files after tests:
docker image prune -a
docker container prune
-
How to forceably switch branches:
git checkout HEAD^
git checkout -f <branch>
API Routes:
/delete
:
- (POST) ID:
- Needs id to delete a prediction
- Return:
- File deleted
/uploads
:
- (GET) No Auth required:
- If supplied with the proper path of image, it will return the image
- Ex:
http://site.link/uploads/user1/image.jpg
/register
:
- Request Parameters:
- username
- password
- Return:
- SUCCESS:
-
{
"access_token": "...",
"login": true
}
-
- error (fail)
- SUCCESS:
/login
:
-
(POST) Request Parameters:
- username
- password
-
Return:
- SUCCESS:
-
{
"access_token": "...",
"login": true
}
-
- error (fail)
- SUCCESS:
-
(GET) After signing in:
- Returns:
- the amount of credits remaining
- the predictions
- relative path of image
- To retrieve the image, append to
http://site.link/uploads
- To retrieve the image, append to
- Returns:
/classify
:
- (POST) Request Parameters:
- access_token_cookie
- You get this access token in the return when you sign in or register
- photo
- Please supply a jpeg or jpg
- access_token_cookie
- Return:
- predictions: (success)
- This is an array of predictions with the following fields:
- description
- score
- summary
- wikipediaUrl
- This is an array of predictions with the following fields:
- ImageURL: (success)
- Relative path for the image
- error (fail)
- Failure usually means that there was no access token in the parameter and you should log the user in
- predictions: (success)
/refill
:
- Request Parameters:
- access_token_cookie
- You get this access token when you sign in or register
- access_token_cookie
- Return:
- Latest amount of tokens
-
{
"status": 200,
"msg": "Refilled",
"requested": 3,
"new_total": 14
}
-
- error (fail)
- Failure usually means that there was no access token in the parameter and you should log the user in
- Latest amount of tokens
/logout
:
- Request Parameters:
- None
- Return:
- logout: True