Skip to content
Snippets Groups Projects

Resolve "matchSalamander endpoint"

Merged Herman Andersen Dyrkorn requested to merge 1-matchsalamander-endpoint into master
1 file
+ 22
3
Compare changes
  • Side-by-side
  • Inline
"""""
matchSalamander endpoint sudo code:
matchSalamander endpoint pseudo code:
decode data
if data exists:
find path to storage original and processed image or create storage path
find path to storage original and processed image
if path exits and folder not empty:
start processing image
load preprocessed images from folder
brute force match
match:
save original image
save processed image
output = matched with ID something
miss:
create new salamander in DB
save original image
save processed image
output = new salamander with ID something, no match
else:
create directory for original and processed image
start processing image
create new salamander in DB
save original and processed image
output = no salamanders to match against, new salamander with ID something
else:
output = something wrong with data sent
"""
Loading