Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trolldbois/phash-graph-mvp
Graph a MVP tree from pHash
https://github.com/trolldbois/phash-graph-mvp
Last synced: 9 days ago
JSON representation
Graph a MVP tree from pHash
- Host: GitHub
- URL: https://github.com/trolldbois/phash-graph-mvp
- Owner: trolldbois
- Created: 2010-11-24T04:39:36.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-26T21:53:33.000Z (almost 14 years ago)
- Last Synced: 2024-10-31T09:36:55.828Z (16 days ago)
- Language: Python
- Homepage:
- Size: 24.8 MB
- Stars: 20
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
phash-graph-mvp is a small python script which use pHash ( http://www.phash.org/ )
to build a graphical representation of perceptual relation between images.Say you have a directory full of similar (cropped, blur, noise, filters) images.
You can create a graphical representation of relation between pictures.Example:
$ python graphmvp.py
ERROR:root:usage1: graphmvp.py # build graph from database
ERROR:root:usage2: graphmvp.py # build database and graph (beta)Build a database and create a graph
$ python graphmvp.py examples/datasets/Outputs :
datasets.db.mvp -> pHash MVP Database.
datasets.db1.mvp -> pHash MVP Database.
datasets.png.dot -> pygraphiz graph representation file
datasets.png -> PNG outputCreate a graph from a database and a directory.
$ python graphmvp.py examples/datasets/ datasets.db datasets.pngInputs:
datasets.db.mvp -> pHash MVP Database.
datasets.db1.mvp -> pHash MVP Database.
examples/datasets -> the source folder with the image used in building the MVP databaseOutputs :
datasets.png.dot -> pygraphiz graph representation file
datasets.png -> PNG output