GithubHelp home page GithubHelp logo

5l1v3r1 / linetrace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unixpickle/linetrace

0.0 1.0 0.0 23 KB

Compute paths for line drawings

HTML 4.24% JavaScript 40.97% CSS 2.87% Go 51.92%

linetrace's Introduction

Goal

It is easy for a human to trace out lines when they look at a handwritten letter or digit. In general, we can easily see how to trace out a line drawing. But can a computer do it? The goal of this project is to get a computer to trace out lines in an image.

What's included

The root of this repository is a Go package containing the current solution.

The solve/ directory contains a command for running the current solution on a random line drawing (e.g. a line drawing drawn by the datadraw utility described below).

The datadraw/ directory is a web application for creating line drawings and saving them as raw JSON. I currently don't use datadraw for the tracing algorithm itself, but I do use it to generate JSON files for use with the solve command. I am mostly keeping it around because it may be relevant to future solutions.

The results/ directory contains some example results from the current solution.

Current solution

The current solution uses a greedy search algorithm. It does not do incredibly well, but it does get fairly reasonable results:

Original Reconstructed Path

linetrace's People

Contributors

unixpickle avatar

Watchers

 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.