Giter Site home page Giter Site logo

bookland's People

Watchers

 avatar  avatar

bookland's Issues

No usage information given when app invoked with no options

When the app invoked without obligatory arguments (i.e. productCode), usage information should be printed out:

./bookland
bookland [-h|--help] [-V|--version] [-f|--font=] [-q] [-s|--height=] [-r --reduction=] [-o|outfile=] [-n|--noquietzone] [-a|--autofile] [--cmyk=] [--rgb=] productCode [priceCode]
...

Refactor app to a package

As for v1.4 bookland is a command line utility rather than a package one can distribute over PyPI. Refactor the app into a package. Make sure it can be used as a CLI tool as well (shell script?)

scan13 seems to be broken

scan13 seems to be broken, at least under OS X::

import Image

Should be changed to:

from PIL import Image

But even then an error occures:

$ python scan13.py /path/to/isbn.eps
IOError: cannot identify image file '/path/to/tmp/folder/

When removing working with temp file, the app still fails. Seems to be a problem with pix = z.load() and pixels.append(pix[i,0]) -- pix is a NoneType. Probably, Image.getpixel(xy) should be used instead.

Misleading output when -o option used

When invoked with -o|output_file_name option, app indeed writes an ISBN to the specified file, but prints to stdout a filename as if the app was invoked with -a option:

./bookland -o test.eps -f OCRB 978-0-9879594-4-7
This is free software and comes with NO WARRANTY
wrote ISBN9780987959447.eps

Should be:

./bookland -o test.eps -f OCRB 978-0-9879594-4-7
This is free software and comes with NO WARRANTY
wrote test.eps

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.