Commit a9c30d6d authored by Andrea Magnussen's avatar Andrea Magnussen
Browse files


parent c03e6cca
......@@ -36,7 +36,7 @@ In this section, we will go through the framework and libraries used, as well as
The server is currently a thick server, and does most of the processing. The image below shows a visualization of the system architecture.
<p align="center">
<img src="documentation/architecture.png" alt="salamander" width="300"/>
<img src="documentation/architecture.png" alt="salamander" width="600"/>
### Framework and Libraries
......@@ -87,7 +87,7 @@ All endpoints are registered in the "_\_init.py__" file. All the classes are imp
For storing metadata about users, locations and salamanders, we use a local sqlite database located in the api/database folder. The image below displays how the different tables are connected.
<p align="center">
<img src="documentation/Database-diagram-salamander.png" alt="salamander" width="300"/>
<img src="documentation/Database-diagram-salamander.png" alt="salamander" width="600"/>
To open the database, CD into the database folder use the command ```sqlite3```. Then use the command: ```.open database.db```. When the database is opened, you may start to type queries.
......@@ -119,13 +119,13 @@ DeepLabCut uses resnet for their models. You can choose between using resnet50,
When a user uploads an image of a salamander, DeepLabCut will start to process it. If the predicted points are good, there will be a line interpolated between the points to straighten the pattern and crop the image. The two shoulder points is used to detremine the width of the pattern. The pattern is then returned back to the user for aproval and stored in the temp_images folder on the server.
<p align="center">
<img src="documentation/process1.png" alt="salamander" width="300"/>
<img src="documentation/process1.png" alt="salamander" width="600"/>
The figure above shows a visualization of the process. This is a succesful straightening and returns a good pattern, which should be accepted by the user. Below is an example of a failed straightening, which should be cancelled by the user. It is important that this pattern should not be matched against the other salamanders in the system, as this will most definitly create a false negative, in other words, a new salamander entry. This will disturb the estimation of the population.
<p align="center">
<img src="documentation/process2.png" alt="salamander" width="300"/>
<img src="documentation/process2.png" alt="salamander" width="600"/>
If the user approved the image, the matching process starts. The image will only be matched against other salamanders located in the same location with the same species and sex. If a match is registered, the images from the temp_folder is moved into the correct salamander id folder inside the location. If there was no match, a new folder will be generated with the new id of the salamander and it will be placed there.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment