Lurker News
History: Last year I had to replace the tire on my bike, and I was surprised how difficult it was to find a suitable new tire. There were a lot of numbers written on the casing, so I googled what they meant. In the end I was successful, but I didn't want to do the same work again for the next bike after I've forgotten the details. So I wrote this website.

Technically, the web page is kept very simple, no frameworks, no templates, no website builder. It uses HTML5, CSS and JavaScript, and it privides a responsive layout for mobile usage.
I'm happy to receive feedback. If you have tried the label of your bike tire, and it doesn't work, please post it as well. Thanks!

Comments (179) 39 threads

Show all comments

Showing thread 7 of 39

melissalobos1 reply#
Thanks for sharing, this looks really useful. I have started biking again recently and the labels on the tire are super confusing. Do you have any plans to extend this(attempt OCR or something)?

I tried looking at the source a bit and it seems like your markup is pretty clean, if a bit unreadable after minification. I liked the classes "question" and "answer". It looks like you are planning on using affiliate links to monetize it?

moasda4 replies#
Thank you for the feedback. OCR is a great idea, for me it seems to be quite difficult to implement and probably requires a mobile app.

The affiliate links are just a side effect to pay for the hosting.

_p9qq1 reply#
You could possibly do it server side. I would personally implement it as a Flask server that took an image, ran it through either Pytesseract (quick, got to manually preprocess, needs tesseract installed) or Easyocr (slower but works out the box) then send back the if and only if it was a valid tire-info-string to avoid people abusing it for other purposes.
moasda#
Wow, thank you, I will check that.
moasda#
Thanks for the tip, I will look into it.
hjek2 replies#
You could use a simple client-side JS OCR library, like GOCR.js[0]. It may only work on good photos of relatively new tires with clearly printed text, and that's not always what bicycle tires look like when you're looking to replace it, so not sure how useful it'd be.

[0]: https://antimatter15.com/gocr.js/demo.html

moasda#
Interesting approach, thank you. Sure, old tires might be hard to scan, but definitely worth to think about.
amelius#
I tried to to use GOCR packaged with Ubuntu on playlists, expecting it to work well since it's computer output. But it turned out not working so well. I also tried scaling the text but that didn't fix it.
sasawpg1 reply#
Can I ask why OCR, other than to learn something new. From a functionality standpoint you’ve hit the nail on the head. Some suggestions in this thread however start to take away from the appeal of the site. I suspect the target audience will much rather type out the dozen numbers/chars than they will attempt to mess around with taking a picture and having OCR take over. I’d be willing to bet the time to enter data is comparable and if there are any savings to be had from OCR (doubtful) it would be measured in seconds at best.

Identify the audience and build the product for it. A tech savvy audience (HN) would love to see OCR because we have nothing better to do than look for “latest cool gadgets”.

moasda#
Good point, the page is designed for easy usage and beginners, rather than experts.