arnaucode 62da9eee6c | 7 years ago | |
---|---|---|
.gitignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
color.go | 7 years ago | |
config.json | 7 years ago | |
errors.go | 7 years ago | |
imageOperations.go | 7 years ago | |
knn.go | 7 years ago | |
main.go | 7 years ago | |
readConfig.go | 7 years ago | |
readDataset.go | 7 years ago | |
server.go | 7 years ago | |
test.sh | 7 years ago |
machine learning server, for image classification
Put dataset in /dataset directory with subdirectories, where each subdirectory contains images of one element.
For example:
dataset/
leopard/
img01.png
img02.png
img03.png
...
laptop/
img01.png
img02.png
...
camera/
img01.png
img02.png
...
So, we have each image and to which element category is (the name of subdirectory).
Then, run the server:
>./galdric
Now, just need to perform petitions with new images, to get the response from the server classifying them:
curl -F file=@./testimage.png http://127.0.0.1:3055/image
And the server will return:
seems to be a leopard
Can perform some tests with the test.sh file:
bash test.sh
send file over ssh:
scp dataset.tar.gz root@SERVERIP:/root/galdric
on the server, untar file:
tar -xvzf dataset.tar.gz