https://github.com/fetchandadd/iams
Image analysis microservice
https://github.com/fetchandadd/iams
docker image-analysis microservice nginx python
Last synced: 4 months ago
JSON representation
Image analysis microservice
- Host: GitHub
- URL: https://github.com/fetchandadd/iams
- Owner: fetchandadd
- License: mit
- Created: 2017-04-23T12:07:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T09:42:45.000Z (almost 9 years ago)
- Last Synced: 2025-03-10T16:44:43.761Z (about 1 year ago)
- Topics: docker, image-analysis, microservice, nginx, python
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iams
Image analysis microservice
## API
For the following examples [HTTPie](https://httpie.org/) is used to manage HTTP connections.
### Average hash
```bash
http localhost:8080/v1/average_hash < source.jpg
```
```json
{
"average_hash": "fe7838020078785e"
}
```
### Difference hash
```bash
http localhost:8080/v1/difference_hash < source.jpg
```
```json
{
"difference_hash": "6f2d0d4b232f2f6b"
}
```
### Perception hash
```bash
http localhost:8080/v1/perception_hash < source.jpg
```
```json
{
"perception_hash": "212bb9e187f19971"
}
```
### Wavelet hash
```bash
http localhost:8080/v1/wavelet_hash < source.jpg
```
```json
{
"wavelet_hash": "ff7e780208487c5e"
}
```
### Hashes
```bash
http localhost:8080/v1/hashes < source.jpg
```
```json
{
"average_hash": "fe7838020078785e",
"difference_hash": "6f2d0d4b232f2f6b",
"perception_hash": "212bb9e187f19971",
"wavelet_hash": "ff7e780208487c5e"
}
```
### Top n colors
```bash
http localhost:8080/v1/colors n==3 < source.jpg
```
```
[
{
"color": {
"name": "Dark Olive Green",
"hex": "556B2F",
"r": 85,
"g": 107,
"b": 47
},
"frequency": 0.1875
},
{
"color": {
"name": "Dim Gray",
"hex": "696969",
"r": 105,
"g": 105,
"b": 105
},
"frequency": 0.1528
},
{
"color": {
"name": "Dark Slate Gray",
"hex": "2F4F4F",
"r": 47,
"g": 79,
"b": 79
},
"frequency": 0.1389
}
]
```