Coder Social home page Coder Social logo

keeferrourke / imgrep Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 5.0 1.95 MB

A grep for images. Submission to Hack the North 2017.

Home Page: https://devpost.com/software/imgrep

License: Other

Go 100.00%
cli golang grep grepping hackathon hackthenorth htn17 image-processing images imgrep tesseract waterloo

imgrep's People

Contributors

deadinsky avatar keeferrourke avatar kfarwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

imgrep's Issues

remove db entries if file !exists

imgrep init doesn't remove files from the db if they aren't found in subsequent scans of a directory

fix: keep file listing in memory when running files.Walker() and compare to db.
ex:

fileListing := getFiles() // or whatever, just get a listing of the directory, k? string slice can be appended to as we run through Walker()
for _, f := 0 range file_listing {
     if !storage.IsInDB(f) {
          storage.Remove(f)
     }
}

or w/e

Add tests for filesystem walker

This should be able to done by mocking out a filesystem using an osFS{}.

Details for mocking out a filesystem can found in the 10 things you (probably) don't know about Go talk from 2012.

There may be a nicer way of doing this using a package like vfs but I would rather not add another package dependency for testing (I think).

This issue is a more specific discussion from issue #3.

tests

and also get that test coverage % sticker thing on the readme

improve OCR algorithm

biggest bottleneck by far, should look into better algos/optimizations we can make. possible first step might be removing gosseract dependency

smarter init

pick up where we left off, maybe add column to schema to determine how old files are and if they need to be re-indexed

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.