https://github.com/tolitius/whoami
learning Tensorfow, OpenCV, Google Cloud Vision API
https://github.com/tolitius/whoami
Last synced: 5 days ago
JSON representation
learning Tensorfow, OpenCV, Google Cloud Vision API
- Host: GitHub
- URL: https://github.com/tolitius/whoami
- Owner: tolitius
- Created: 2017-10-23T15:39:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-02T20:08:24.000Z (almost 8 years ago)
- Last Synced: 2025-01-06T13:49:53.143Z (9 months ago)
- Language: Go
- Homepage:
- Size: 560 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## whoami
context: Learning Tensorfow, OpenCV, Google Cloud Vision API
Initial goals:
- [x] Image recognition based on a pre trained TensorFlow model
- [x] Image recognition based on manually retrained TensorFlow model (Python)
- [ ] Image recognition based on manually retrained TensorFlow model (Go)
- [x] Image detection with Google Vision API
- [x] Face detection with OpenCVA set of "vision" API examples from different sources
## Inception (TensorFlow)
### running it
```bash
$ cd tensor/inception
$ docker-compose up --build
```### using it
```bash
$ ls -l doc/img
total 1064
-rw-r--r--@ 1 user group 459051 Oct 23 11:12 image.jpg
$
```
```bash
$ curl -s http://localhost:4242/whoami -F 'image=@doc/img/image.jpg'
```
```json
{
"filename": "image.jpg",
"labels": [
{
"label": "tiger",
"probability": 0.66044205
},
{
"label": "tiger cat",
"probability": 0.33603966
},
{
"label": "lynx",
"probability": 0.0015672832
},
{
"label": "tabby",
"probability": 0.0009888832
},
{
"label": "lion",
"probability": 0.00036086622
}
]
}
```## Google Cloud API
```bash
$ cd gcloud/vision
``````bash
$ go run detect.go main.go ../../doc/img/freddie.jpg
```## OpenCV
```bash
$ cd opencv
``````bash
$ export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
``````bash
$ python face_detect_cv3.py image-with-faces.jpg
faces found: 42
... exit?
```## License
Copyright © 2017 tolitius
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.