Coder Social home page Coder Social logo

musanabiyev / imagetograph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neo4j-contrib/imagetograph

0.0 0.0 0.0 35 KB

A CLI tool to convert images into graphs

License: GNU General Public License v3.0

Shell 0.25% Java 99.58% Procfile 0.18%

imagetograph's Introduction

ImageToGraph tool - convert any image to a graph

Requirements

Build: maven

Run: java17

Usage

  1. Open a terminal and cd into this folder.
  2. Run maven install OR mvn install on Windows.
  3. Run ./run.sh /path/to/img OR java -jar .\target\img2graph-1.jar convert \path\to\image on Windows.

Arguments

Argument Description
<input> Path to image to operate on
--color-depth=<colorDepth> Color depth for simplified image. (default: 4)
--keep-bg Keep the background
--node-max-radius=<nodeMaxRad> Node maximum radius. (default: 10)
--node-min-radius=<nodeMinRad> Node minimum radius. (default: 3)
--node-padding=<nodePadding> Node padding. (default: 2)
--output=<output> Path to output directory. Default to current working directory
--rel-max-distance=<relMaxDist> Relationship maximum distance. (default: 30)
--rels-per-node=<relsPerNode> Avg relationships per node. (default: 2)
--simplified-colors Use simplified colors. (default: false)
--target-res=<targetResolution> Target resolution. Changes size of graph. (default:1024)
--transparent-bg Transparent background for SVG output. (default:false)

imagetograph's People

Contributors

jexp avatar michael-simons avatar roxling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.