Skip to content

Instantly share code, notes, and snippets.

@dominic248
Last active May 31, 2020 18:07
Show Gist options
  • Save dominic248/da8ff7be44b6eb38550668cf0df563e0 to your computer and use it in GitHub Desktop.
Save dominic248/da8ff7be44b6eb38550668cf0df563e0 to your computer and use it in GitHub Desktop.
NOTE
  1. Use 100x100 image dimension on these endpoints to avoid memory leak, due to large numpy array. (For face training and face recognition API's)
  2. Server sleeps after 30 minutes of inactivity and will take time to restart on new requests after 30 minutes of inactivity.

Face Training API:

API endpoint: /face_detection/train/firebase/
Method: POST
Parameters:

  1. image
    Type: Image
    Alternative: url (Image URL)
    Description: Single image file with 1 person in image.
  2. name
    Type: String
    Description: Name of the person.
  3. resume (optional)
    Type: Boolean
    Description: Resume training or overwrite all previous trainings.

Face Recognition API:

API endpoint: /face_detection/detect/firebase/
Method: POST
Parameters:

  1. image
    Type: Image
    Alternative: url (Image URL)
    Description: Single image file with 1 person in image.

Color Transfer API:

API endpoint: /colortransfer/
Method: POST
Parameters:

  1. source_url
    Type: Image
    Alternative: source_url (Image URL)
    Description: Single image file or URL of image.
  2. target_image
    Type: Image
    Alternative: target_url (Image URL)
    Description: Single image file or URL of image.
  3. json
    Type: Boolean
    Description: To get image as Base64 URL set it as true and for Image response set it as false.

Sudoku Solver API:

API endpoint: /sudoku/solver/
Method: POST
Parameters:

  1. sudoku
    Type: 2D-Array/List
    Description: 2D-Array/List, with blank cells of sudoku filled with 0.

Sudoku Extractor API:

API endpoint: /sudoku/extractor/
Method: POST
Parameters:

  1. image
    Type: Image
    Alternative: url (Image URL)
    Description: Single image file with a cropped sudoku puzzle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment