Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Salamander - API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Herman Andersen Dyrkorn
Salamander - API
Merge requests
!2
Resolve "matchSalamander endpoint"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "matchSalamander endpoint"
1-matchsalamander-endpoint
into
master
Overview
0
Commits
7
Pipelines
0
Changes
1
Merged
Herman Andersen Dyrkorn
requested to merge
1-matchsalamander-endpoint
into
master
4 years ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Closes
#1 (closed)
Edited
4 years ago
by
Herman Andersen Dyrkorn
0
0
Merge request reports
Viewing commit
30a1a2a5
Prev
Next
Show latest version
1 file
+
22
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
30a1a2a5
finished pseudo code for matchSalamander endpoint
· 30a1a2a5
Herman Andersen Dyrkorn
authored
4 years ago
src/documentation-endpoint.py
+
22
−
3
View file @ 30a1a2a5
Edit in single-file editor
Open in Web IDE
"""""
matchSalamander endpoint
s
udo code:
matchSalamander endpoint
pse
udo 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