[ANN] Barcode project with initial EAN13
Hi, didnt know Barcodes are so easy to implement in Smalltalk. So I started with EAN13 barcode together with unit tests. Project lives on: http://smalltalkhub.com/#!/~TorstenBergmann/Barcode You can also load it using the config browser in Pharo 2.0 now. It is already usable - thanks to the power of Pharo. Short Guide: ------------------------------------------------------------------------------------------------ To instantiate: BarcodeEAN13 value: '2109876543210' You can get the binarySequence of a barcode: (BarcodeEAN13 value: '2109876543210') binarySequence calcuate the checksum (last digit: (BarcodeEAN13 value: '2109876543210') computeChecksum or visualize the barcode: BarcodeEAN13 example asForm asMorph openInWorld or to write to a file: PNGReadWriter putForm: BarcodeEAN13 example asForm onFileNamed: 'sample.png' ------------------------------------------------------------------------------------------------ Feel free to extent with other barcode types. Have fun T.
On 14 Jun 2013, at 18:13, "Torsten Bergmann" <astares@gmx.de> wrote:
Hi,
didnt know Barcodes are so easy to implement in Smalltalk. So I started with EAN13 barcode together with unit tests. Project lives on:
http://smalltalkhub.com/#!/~TorstenBergmann/Barcode
You can also load it using the config browser in Pharo 2.0 now.
It is already usable - thanks to the power of Pharo.
Cool. This is really the 'Just doit' spirit ! Next, generating QR codes ;-)
Short Guide:
------------------------------------------------------------------------------------------------ To instantiate:
BarcodeEAN13 value: '2109876543210'
You can get the binarySequence of a barcode:
(BarcodeEAN13 value: '2109876543210') binarySequence
calcuate the checksum (last digit:
(BarcodeEAN13 value: '2109876543210') computeChecksum
or visualize the barcode:
BarcodeEAN13 example asForm asMorph openInWorld
or to write to a file:
PNGReadWriter putForm: BarcodeEAN13 example asForm onFileNamed: 'sample.png'
------------------------------------------------------------------------------------------------
Feel free to extent with other barcode types.
Have fun T.
<sample.png>
Excellent How do you plug that with a camera and image recognition system?
Hi,
didnt know Barcodes are so easy to implement in Smalltalk. So I started with EAN13 barcode together with unit tests. Project lives on:
http://smalltalkhub.com/#!/~TorstenBergmann/Barcode
You can also load it using the config browser in Pharo 2.0 now.
It is already usable - thanks to the power of Pharo. Short Guide:
------------------------------------------------------------------------------------------------ To instantiate:
BarcodeEAN13 value: '2109876543210'
You can get the binarySequence of a barcode:
(BarcodeEAN13 value: '2109876543210') binarySequence
calcuate the checksum (last digit:
(BarcodeEAN13 value: '2109876543210') computeChecksum
or visualize the barcode:
BarcodeEAN13 example asForm asMorph openInWorld
or to write to a file:
PNGReadWriter putForm: BarcodeEAN13 example asForm onFileNamed: 'sample.png'
------------------------------------------------------------------------------------------------
Feel free to extent with other barcode types.
Have fun T.
<sample.png>
As far as I understood it is Barcode generation and not scanning. I'm in a project using EAN13 (and 8) a lot, but the scanning is done at the client with a third party lib. However it is good to know I'll have support at the server side. Regards, El 15/06/2013 05:01, "Stéphane Ducasse" <stephane.ducasse@inria.fr> escribió:
Excellent How do you plug that with a camera and image recognition system?
Hi,
didnt know Barcodes are so easy to implement in Smalltalk. So I started with EAN13 barcode together with unit tests. Project lives on:
http://smalltalkhub.com/#!/~TorstenBergmann/Barcode
You can also load it using the config browser in Pharo 2.0 now.
It is already usable - thanks to the power of Pharo. Short Guide:
------------------------------------------------------------------------------------------------
To instantiate:
BarcodeEAN13 value: '2109876543210'
You can get the binarySequence of a barcode:
(BarcodeEAN13 value: '2109876543210') binarySequence
calcuate the checksum (last digit:
(BarcodeEAN13 value: '2109876543210') computeChecksum
or visualize the barcode:
BarcodeEAN13 example asForm asMorph openInWorld
or to write to a file:
PNGReadWriter putForm: BarcodeEAN13 example asForm onFileNamed: 'sample.png'
------------------------------------------------------------------------------------------------
Feel free to extent with other barcode types.
Have fun T.
<sample.png>
awesome. This will come handy for sure. I'd also find useful QRCodes Keep it going! sebastian o/ On Jun 14, 2013, at 1:13 PM, Torsten Bergmann <astares@gmx.de> wrote:
Hi,
didnt know Barcodes are so easy to implement in Smalltalk. So I started with EAN13 barcode together with unit tests. Project lives on:
http://smalltalkhub.com/#!/~TorstenBergmann/Barcode
You can also load it using the config browser in Pharo 2.0 now.
It is already usable - thanks to the power of Pharo. Short Guide:
------------------------------------------------------------------------------------------------ To instantiate:
BarcodeEAN13 value: '2109876543210'
You can get the binarySequence of a barcode:
(BarcodeEAN13 value: '2109876543210') binarySequence
calcuate the checksum (last digit:
(BarcodeEAN13 value: '2109876543210') computeChecksum
or visualize the barcode:
BarcodeEAN13 example asForm asMorph openInWorld
or to write to a file:
PNGReadWriter putForm: BarcodeEAN13 example asForm onFileNamed: 'sample.png'
------------------------------------------------------------------------------------------------
Feel free to extent with other barcode types.
Have fun T.
<sample.png>
participants (5)
-
Esteban A. Maringolo -
Sebastian Sastre -
Stéphane Ducasse -
Sven Van Caekenberghe -
Torsten Bergmann