Skip to content
Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

UPC scanning

elbeno, 26 September, 200726 September, 2007

Well, I’ve finished with the easy bit. I’ve written code to grab a frame from the webcam and do a bit of postprocessing. The postprocessing looks like a good step towards making barcode recognition easier. I’m only working on this at nights so far, so I figure coping with the poor lighting I have in my study bodes well for the future.

Here’s a webcam grab:
barcode_colour
Here’s the same grab, converted to greyscale:
barcode_grey
Here’s the same grab, with the output range normalized (and the colour histogram biased by about 20 to get rid of the low frequency colours at the extrema):
barcode_greypostprocess
Note: these images are cropped from larger images, so if you look at the histogram you probably won’t see the same thing I’m seeing.

Now for the hard part: writing the code to recognise the barcode.

Uncategorized

Post navigation

Previous post
Next post

Related Posts

RIP TOTP

21 June, 2006

30th July will be the last episode, reports the BBC. Well I can't pretend that I've seen it recently or even that when I last saw it, the top 20 was really anything special, but a little part of me is sad.

Read More

Slashdot headers: Futurama quotes?

4 May, 2005

So I'm playing around with writing some HTTP/1.1 code, and I notice that slashdot is serving up some odd headers. X-Fry and X-Bender? Someone's a Futurama fan (not me; I had to look it up). But don't take my word for it: see for yourself.

Read More

Battle of the Bands

8 May, 2009

The buildup started 5-6 weeks ago with band formations and rumours of entries. Then came the posters stuck up across the campus advertising the various bands. Finally, at 5pm today it all kicked off – the second annual Blizzard Battle of the Bands. When I worked at EA, we had…

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2026 Why is a raven like a writing desk? | WordPress Theme by SuperbThemes