← All news

Your Images Are Evidence: How Metadata Traces a Failed Part

// Inspection Fundamentals

Your Images Are Evidence: How Metadata Traces a Failed Part

Every inspection image records more than the part. It records how the picture was taken. Here is how to read that record and use it when a part fails.

// TL;DR
  1. A bug my logs could not find showed up in my image files.
  2. Metadata is the record saved with each image: time, camera settings, stage position, and part ID.
  3. Read it in your own software or free in Fiji, then compare parts in a spreadsheet.
  4. Compare passed and failed parts to find clues. Confirm a clue before you call it the cause.
  5. Keep the original file. Exports usually drop metadata, and metadata alone does not prove a file is unchanged.
  6. Save the part ID with every image so it ties back to the production record.

01The bug my logs could not find

When I started building imaging software, I thought the image was just the result.

Then my acquisition routine started failing. Some runs were fine. Others were not. I went through the logs line by line, thousands of them, and nothing pointed to the cause.

I was already saving every image as OME-TIFF. I just had not used what was inside the files.

So I pulled the stage positions out of the metadata and compared them across time points. The stage was not returning to the same spot. Then I lined up the image timestamps against my git history and found the exact commit that broke it.

That changed how I see images. They are not only results. They are evidence. And the same idea works on an inspection line, across parts instead of time points.

02What metadata is

An inspection image can hold more than pixels. Your software may also save when it was taken, the camera settings, the stage position, and which part it shows. That record is called metadata. Fields depend on your system, but common ones include:

  • When: date and time of capture, with the time zone.
  • Lens and camera: which ones took the picture.
  • Scale: how much of the part one pixel covers.
  • Stage position: left-right, front-back, and focus height.
  • Exposure: how long the camera collected light.
  • Tile: which piece of a stitched scan it is.

Settings the software saves on its own do not depend on someone remembering to write them down. That is the big advantage over a logbook. But not every value comes from the equipment. Some come from the inspection program, and some are typed in by a person. Find out which is which, then spot-check a few against the real settings before you rely on them.

03How to read it

Start with your own software. Look for Image Info, Properties, or Metadata. Many systems can export it straight to a spreadsheet.

Read it in Fiji. Fiji is a free image viewer. Go to File, Import, Bio-Formats, then check Display metadata. The metadata opens in its own window. What shows up depends on what your system saved.

Compare in a spreadsheet. Use one row per part and one column per value. Keep pass or fail in the same row. Now you can sort by result and scan each column for where the failed parts stand apart.

Ask your vendor. If you cannot find the metadata, ask which fields your system saves and how to export them. Request a sample file so you can check the fields yourself.

04Investigating a failure

Metadata will not tell you the cause. It tells you where to look. Here are five checks I would run first.

Part in a different spot. Compare stage positions for the same feature across parts. If they shift, check how the part was loaded and aligned.

Focus changing. Chart Z in inspection order. If it climbs, check the images and autofocus results to see whether the part, the holder, or the focus routine changed.

Exposure creeping up. If exposure keeps rising while brightness holds steady, first confirm gain and light settings did not change. If they did not, check the light source.

Pass vs fail. Compare passed and failed parts from similar conditions. Look for differences that repeat across many parts, not just one pair.

What changed that day. Find when the failures started. Compare that date with program changes, repairs, software updates, and shift changes.

The honest summary. A pattern in the metadata is a lead, not a verdict. Confirm it before it goes in a report. That step is what makes the report hold up when a customer pushes back.

05Protect the original

  • Keep the original. OME-TIFF (.ome.tif) stores metadata inside the image. Your software decides which fields.
  • Watch your exports. Exporting to JPEG or another format usually drops metadata. Check what each export keeps.
  • Keep units with every value. A position means little without its units. Know if it is commanded, where the stage was told to go, or measured, where it actually went.
  • File integrity. Metadata can be edited, so it does not prove a file is unchanged. That takes a checksum or an audit trail.

The simple rule: archive the original files and make separate copies for reports.

06Link the image to the part

Camera settings say how an image was taken. They do not say which part it shows. To match an image to the production record, save these fields with it:

  • Part: serial and lot number.
  • Run and station: inspection run ID and station ID.
  • Program: name and version.
  • Operator: badge or ID, where it matters.
  • Calibration: which reference and when.
  • Result: pass or fail.

Your software has to write these. Choosing OME-TIFF does not fill them in on its own.

A simple test. Pick a random inspection image from six months ago. Can you say which part it was, which station ran it, with what settings, and against which program version? If any answer is “I think,” fix how you capture, not how you archive.
Image Metadata BASICS one-page cheat sheet

Click for the full-resolution PDF. Print it and post it at the inspection station.

This is also how we built Nebula. Every acquisition saves its settings with the image in OME-TIFF, plus a structured record, so nobody has to write them down. If you want to see what that looks like on a real inspection system, book a demo. Or if you are stuck on a traceability problem right now, send me a message.

// Free Cheat Sheet

Grab the cheat sheet

One page on reading image metadata and tracing a failed part. Free, no email.