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

how much?

16 May, 2007

I've long been of the view that it's worth spending more on your keyboard, monitor and chair than on your computer (and that's not so hard to do these days, if you go for an Aeron chair and a couple of decent flat panels). But I think $1500+ is going…

Read More

Solve sudoku without thinking?

13 July, 2006

As found on BoingBoing. 1. This procedure works for the simpler puzzles only. It does not address intermediate and advanced solution steps. 2. I have never resorted to writing little numbers since I consider it cheating. The real way to solve sudoku is to figure it all in your head.

Read More

Reasons not to fly

30 November, 2004

(number N in a series of many) It is a well known fact that airline employees are for the most part jobsworth automatons. Witness my recent experience with Virgin Atlantic. Apparently they have a rule for us plebs in economy class that your one piece of carry-on luggage must weigh…

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