pilosus / bookland Goto Github PK
View Code? Open in Web Editor NEWISBN barcode generator and scanner
License: Other
ISBN barcode generator and scanner
License: Other
As for v1.4 the app is Python 2 only. Add python 3 compatibility
Code doesn't follow PEP8. Refactor the code, use static methods when needed, rename class names, fix blank lines issues
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]
...
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?)
The project lacks unit-tests. Add unit-tests + nose config.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.