Introducing FabScan - Testers Wanted

I know this post is a bit long, but I fell it needed to be… So please bear with me here. :slight_smile:

I wanted to share a project I have been working on that may be of interest to some SheetCam users.

The project is called FabScan:

FabScan is an open-source camera-assisted tracing/digitizing utility for LinuxCNC. The basic idea is to mount a USB camera on the machine, trace the outside edge or other physical geometry of a real part/template, export the result as DXF, and then use SheetCam for cleanup, tooling, and CAM.

The project was inspired by the general workflow of SheetCam Scanything, but to be clear, FabScan is a from-scratch MIT-licensed project and is not based on Scanything code, reverse engineering, or proprietary information.

Why I Built It

A fairly common use case for me is tracing real shop-floor parts and templates.

In the past I used Scanything for things like:

  • cardboard templates for custom aluminum automotive dashboards
  • existing parts that needed to be duplicated or modified
  • large outside-edge profiles
  • physical geometry that was easier to trace than redraw from measurements

FabScan is intended to fill that same general kind of workflow on a LinuxCNC machine:

physical part/template
        ↓
camera-assisted trace
        ↓
DXF export
        ↓
SheetCam cleanup / CAM

I am deliberately not trying to turn FabScan into a CAD system. SheetCam already does a good job of things like linking endpoints, reducing unnecessary segments, fitting arcs, recognizing circles, and cleaning up imported geometry.

FabScan’s job is to get a useful trace of the real part.

Current Status

The current release is:

v0.6.0-alpha.1

The tracing system has changed quite a bit from the early versions.

FabScan now uses:

  • persistent world-space path tracking
  • connected-path look-ahead
  • a separate planner and controller
  • bounded coordinated X/Y motion through LinuxCNC
  • confidence and safety checks
  • automatic recording of tracing runs
  • deterministic replay tools
  • an SVG ground-truth simulator for development/testing

The latest difficult physical test completed 800/800 tracing steps without a HOLD.

On that test, about:

  • 87.6% of the physical trace was within 0.005" of the exact SVG reference
  • 96.4% was within 0.010"

The remaining larger errors are mostly concentrated around a few sharp corners, which is one of the areas still being worked on.

My original goal for the project was roughly 0.030" practical tracing accuracy, so the current results are already quite encouraging for the kind of large templates and shop-floor parts I normally care about.

Looking for Outside Testing

The project has now reached the point where I think outside testing would be more valuable than continuing to optimize only my own test geometry.

I would especially be interested in hearing from anyone who wants to try tracing:

  • cardboard or paper templates
  • existing sheet-metal parts
  • large outside profiles
  • hand-cut/freeform shapes
  • automotive or fabrication templates
  • other real-world geometry that would normally end up being cleaned up in SheetCam

The current hardware requirement is a LinuxCNC machine and a USB camera/microscope mounted rigidly to the machine.

My current development camera is an older 2 MP UVC USB microscope running at 800x600 MJPG / 30 FPS, but FabScan is not intended to depend on that exact camera.

Safety

FabScan does not control the cutting process.

It does not control:

  • torch firing
  • plasma start
  • spindle
  • Z motion
  • THC
  • Cycle Start
  • any cutting output

It only uses LinuxCNC for machine position/status and controlled X/Y tracing motion.

The real follower is intentionally conservative and will HOLD rather than continue if it cannot identify a continuation it trusts.

Documentation

The repository now has much better documentation than the early versions:

  • README.md — project overview
  • FabScan Usage Instructions.md — operation and testing
  • CHANGELOG.md — version history
  • HISTORY.md — development history and why the current planner architecture exists

If anyone is interested in the technical side, I would especially recommend the HISTORY.md file. It explains the earlier approaches that were tried, why the simulator and replay system were added, and where the current open problems are.

The project is still very much alpha, so I would appreciate feedback, bug reports, ideas, or just reports of what kinds of parts people try with it.

The goal is fairly simple:

Make it practical to put a real part or template on a LinuxCNC table, trace it with a camera, export a useful DXF, and finish the job in SheetCam.

If anyone gives it a try, I would be very interested to hear how it behaves on geometry other than my own test parts.