Scanning Receipts Proves Trickier Than Anticipated

It’s one of those things that certainly sounds simple enough: take a picture of a receipt, run it through optical character recognition (OCR), and send the resulting information to whatever expense-tracking website or software you wish. There are companies that offer such a service, so it can’t be too difficult to replicate on your own…right?

That’s what [Marcel Robitaille] thought when he set out to create his homebrew “Receipt Ingestion” system, anyway. But in reality it took so much time to troubleshoot and implement that he says it would have been faster to just enter in all his receipts by hand. We’re happy he stuck with it though, otherwise you wouldn’t be reading about it on Hackaday, and we wouldn’t be able to learn anything from the detailed account he’s provided.

It only took an evening to hack together a rough demo, and the initial results were very promising. The code could detect the edges of the receipt, rotate the captured image appropriately, and then pull out the critical information such as date, total amount, business name, etc. He was then able to decipher the API for Splitwise, an online service for splitting bills, by capturing the data sent by his browser while adding a new bill. With this information, writing up some Python code to push his captured data into the service was trivial. So far, so good.

Using a QR code as reference point.

But like so many horror films that begin with a happy family starting a new life in a beautiful home, there was a monster lurking in the shadows. It’s one thing to capture data from perfectly clean and flat receipts, but quite another to get any useful info out of one that spent half the day crumpled up in your back pocket. The promising proof of concept that worked a treat under controlled conditions failed completely in the real-world, with [Marcel] reporting that only 1 in 5 receipts he tried to scan actually went through.

In the end, [Marcel] realized that the best way to handle the unreliable condition of the receipts was to focus on a different object in the image. He came up with a QR code marker that he could put on the table with the receipt to be scanned, which his software can use as a known point of reference. This greatly improves the reliability of the image rotation and transformation, which in turn makes the OCR more reliable. It also makes it much easier to tell which images need to be scanned — if there’s no QR code found, the software just skips that shot and keeps looking.

The unique challenges of digitizing large amounts of printed content using OCR makes for some fascinating problem solving, and we’re glad [Marcel] shared this particular story with us. While there’s still some edge cases that need chasing down, he’s using the software on a nearly daily basis, and has posted it up on GitHub for anyone who might wish to build on his efforts.

wifi scanner

Visualizing WiFi With A Converted 3D Printer

We all know we live in a soup of electromagnetic radiation, everything from AM radio broadcasts to cosmic rays. Some of it is useful, some is a nuisance, but all of it is invisible. We know it’s there, but we have no idea what the fields look like. Unless you put something like this 3D WiFi field strength visualizer to work, of course.

Granted, based as it is on the gantry of an old 3D printer, [Neumi]’s WiFi scanner has a somewhat limited work envelope. A NodeMCU ESP32 module rides where the printer’s extruder normally resides, and scans through a series of points one centimeter apart. A received signal strength indicator (RSSI) reading is taken from the NodeMCU’s WiFi at each point, and the position and RSSI data for each point are saved to a CSV file. A couple of Python programs then digest the raw data to produce both 2D and 3D scans. The 3D scans are the most revealing — you can actually see a 12.5-cm spacing of signal strength, which corresponds to the wavelength of 2.4-GHz WiFi. The video below shows the data capture process and some of the visualizations.

While it’s still pretty cool at this scale, we’d love to see this scaled up. [Neumi] has already done a large-scale 3D visualization project, using ultrasound rather than radio waves, so he’s had some experience in this area. But perhaps a cable bot or something similar would work for a room-sized experiment. A nice touch would be using an SDR dongle to collect signal strength data, too — it would allow you to look at different parts of the spectrum.

Continue reading “Visualizing WiFi With A Converted 3D Printer”

Scanning Medium Format Film On A 35mm Scanner

Scanning film is great for archival purposes as well as sharing said photos digitally. However, if you’re scanning 120 film, aka medium format, it can be expensive to get the requisite hardware. 35mm scanners are comparatively more common, so [Christian Chapman] decided to modify one to suit medium film instead.

The hack is for the Plustek 8100, and requires modifying the scanner in two ways. Firstly, the driver has to be scanned to sweep a longer range to take into account the bigger film. Secondly, a part of the film carriage has to be replaced so it doesn’t show up in the scanners field of view.

The former is achieved by using the sane-genesys scanner software backend, which can be easily modified to adjust the scan length values appropriately. The latter is achieved via 3D printing replacement components that fit without blocking the requisite area.

It’s a tidy hack and one that allows [Christian] to both scan medium format film as well as overscan 35mm film to capture details from the sprocket hole area. We’ve seen fully custom film scanner builds before, too. If you’ve built your own scanner, be sure to drop us a line!

Digital X-Ray Scanner Teardown Yields Bounty Of Engineering Goodies

We’ll just go ahead and say it right up front: we love teardowns. Ripping into old gear and seeing how engineers solved problems — or didn’t — is endlessly fascinating, even for everyday devices like printers and radios. But where teardowns really get interesting is when the target is something so odd and so specialized that you wouldn’t normally expect to get a peek at the outside, let alone tramp through its guts.

[Mads Barnkob] happened upon one such item, a Fujifilm FCR XG-1 digital radiography scanner. The once expensive and still very heavy piece of medical equipment was sort of a “digital film system” that a practitioner could use to replace the old-fashioned silver-based films used in radiography, without going all-in on a completely new digital X-ray suite. It’s a complex piece of equipment, the engineering of which yields a lot of extremely interesting details.

The video below is the third part of [Mads]’ series, where he zeroes in on the object of his desire: the machine’s photomultiplier tube. The stuff that surrounds the tube, though, is the real star, at least to us; that bent acrylic light pipe alone is worth the price of admission. Previous videos focused on the laser scanner unit inside the machine, as well as the mechatronics needed to transport the imaging plates and scan them. The video below also shows experiments with the PM tube, which when coupled with a block of scintillating plastic worked as a great radiation detector.

We’ve covered a bit about the making of X-rays before, and a few of the sensors used to detect them too. We’ve also featured a few interesting X-ray looks inside of tech, from a Starlink dish to knock-off adapters.

Continue reading “Digital X-Ray Scanner Teardown Yields Bounty Of Engineering Goodies”

Scanner Captures View-Master Discs As Glorious 3D Videos

The toys of the past may have been cheesy, but you can’t deny the creativity needed to build something engaging without any electronics. One stalwart toy from this category is View-Master, the little stereoscopic slide viewer that brought the world to life in seven vibrant scenes. And digitizing these miniature works of art is the purpose of this neat View-Master reel scanner project.

If you haven’t had the pleasure of using a View-Master, the gist is that a flat disc cardboard disc ringed with 14 color transparencies was inserted into a plastic viewer. Binocular eyepieces showed scenes from opposing pairs of slides, which were illuminated by a frosted screen and room lighting. The scenes were photographed from slightly different angles, leading to a stereoscopic image that was actually pretty good quality.

In the video below, project creator [W. Jason Altice] describes View-Master as “the YouTube of the 1950s.” We partially agree; with only seven frames to tell a story, we’d say it’s more like TikTok than YouTube. Regardless, capturing these mini-movies requires quite a bit of complexity. All the parts for the reel carousel are 3D-printed, with a small stepper to advance the reel and an optical sensor to register its position. A ring of RGB LEDs beneath the reel illuminates the slides; being able to control the color of the light helps with color balancing for slides with faded colors. An 8-megapixel camera captures each slide, and some pretty slick software helps with organizing the image pairs, tweaking their alignment, capturing the captions from the disc, and stitching everything into a video.

There’s a whole YouTube channel devoted to View-Master captures, which are best viewed with a Google Cardboard or something similar. Even without the 3D effect, it’s still pretty cool to watch [Popeye] beat up a nuke again.

Continue reading “Scanner Captures View-Master Discs As Glorious 3D Videos”

You Won’t Believe How Much Tech Is Hiding In This Desk

Say what you will about office life: there were definitely some productivity perks, but the coffee is much better at home. Like many of us, [Pierre] has been working from home for the last year or so. And as much as he might enjoy spending so much time in his small Parisian apartment, it lacks many of the amenities of the office such as a scanner, printer, and, you know, a reasonable amount of space in which to work.

Inspired by another build, [Pierre] set out to build his dream desk that is maximum PC power in minimum space. It is chock full of easily-accessible cavities that hide everything you’d expect, plus a few things you don’t, like a flatbed scanner, a printer, a router, and a wireless charging pad. One cavity is dedicated to I/O, and another has three international power sockets. The only thing it doesn’t hide is the 22″ pen display that [Pierre] uses for sketching, signing documents, and occasionally as a second monitor.

A home-brew jig makes consistent dowel drilling much easier.

This desk may look like solid wood, but the top is a veneer that’s glued on to a custom-cut 1mm steel sheet. The inside frame is made of hardwood and so are the legs — one of them has a hidden channel for the only two cords that are even somewhat visible — the power and Ethernet cables. He joined all the frame pieces with dowel rods, and made a 3D-printed and metal-reinforced drilling jig to get the holes just right.

[Pierre] started this build by planning out the components and making meticulous notes about the dimensions of every piece. Then he sketched it and modelled it in FreeCAD to get all the cavities and cable runs correct and ensure good airflow through the desk. After that it was on to woodworking, metalworking, and PCB fab for relocated and hidden display controls and a custom-built amplifier.

It’s obvious that a lot of thought went in to this, and there’s a ton of work appreciate here, so clear off that inferior desk of yours and check out the build video after the break. Wish you had a PC desk? [Pierre] is seriously considering a Kickstarter if enough people show interest.

Are you into minimalism, but don’t want to build something of this magnitude? There’s more than one way to get there.

Continue reading “You Won’t Believe How Much Tech Is Hiding In This Desk”

Scanner Snooping Uncovers Focus Farce

From his comments about the noisy image and limited controls, we’re going to go out on a limb and assume [Andrew Jeddeloh] isn’t a huge fan of using his Epson V550 for scanning film. But is it really irredeemable? That’s what he set out to determine in a recent series of posts on his blog, and from what we can tell, it’s not looking good for the old Epson.

The first post attempts to quantify the optical capabilities of the scanner by determining its modulation transfer function (MTF), point spread function (PSF), and comparing its horizontal and vertical resolution. As you might expect, the nuances of these measurements are a bit beyond the average user. The short version of his analysis is that the scanner’s slide frame does indeed seem to be holding objects at the proper “sweet spot” for this particular image sensor; meaning that contrary to the advice he’d seen online, there’s nothing to be gained by purchasing custom film or slide holders.

MTF versus height of film from bed.

While investigating the optical properties of the scanner, [Andrew] became curious about the automatic focus options offered by the VueScan software he was using. The images produced appeared to be identical regardless of what option he selected, and he began to suspect the feature wasn’t actually doing anything. To confirm his theory, he wrote a shim program that would sit between the proprietary VueScan program and the V550 driver and log all of the data passing between them.

After tweaking various options and comparing the captured data streams, [Andrew] determined that enabling automatic focus in VueScan doesn’t do anything. At least, not with his scanner. He did notice a few extra bytes getting sent to the driver depending on which focus options were selected, but the response from the scanner didn’t change. He thinks the program likely has some kind of generic framework for enabling these kind of features on supported hardware, and it’s just mistakenly showing the autofocus options for a scanner that doesn’t support it.

If there’s some film you want to digitize, but you’re saddled with a scanner like the V550, you could always do it with a camera instead. You could even put together a passable film scanner with LEGO.