-
Download project
$ git clone https://github.com/clairecut/clairecut-backend.git $ cd clairecut-backend
-
This project uses docker, so start the container by running
$ docker-compose up
-
If you see a
{ hello: world }
response to aGET
request to$ <YOUR_DOCKER_IP>/api/v1
the server is running. -
Further test the back-end with a
POST
request to$ <YOUR_DOCKER_IP>/api/v1/submit
and include a base64 encoded image as payload with parameter
image
.
Test with one word in the image:
$ python test0.py
Test with six words on the image
$python test1.py
-
Validation
- Received string is base64-image string
- Add JSON web token authentication
- New
\authenticate
endpoint
- New
-
Create clean docker image and upload
-
Make algorithm robust
- Detect whether image is suitable or not. (imageTropical.json gives several results for blue, but it is not a whiteboard)
- Did not work with .gif image (do we need that?)
further tasks: see Issues
of this repo.
To undestand the image processing algorithm, look at processor/README.md
Delete .pyc
files with:
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf