InvestMoat
Robotics | Machine Vision & Barcode ReadersMargin Recovery

Cognex Corporation

CGNX~$9.1B capPrice: $53.99Analysed Oct 18

Hold

Hold for Long-Term Compounding

71
Moat65
Growth72
Val75
0255075100

Combined average of Moat (AI Resilience), Growth, and Valuation scores.

65/100

Cognex is the largest Western pure-play in machine vision and image-based barcode reading, with roughly mid-teens share of a ~$7B served market: its readers and vision systems are written into sortation lines, electronics assembly and packaging inspection, but the lock lasts one line build, and Keyence's direct-sales model and Chinese vision vendors contest every new one.

Cognex's moat is a DataMan reader or In-Sight camera already qualified into a running line, backed by vendor-owned pattern-matching and decode algorithms, but it is a per-line lock in a fragmented market, not a franchise that holds share by itself:

  • The Qualified Line: Once a vision job is tuned and validated on an automotive, packaging or electronics line, swapping the camera means re-teaching the inspection and re-validating yield, so Cognex keeps the installed line and its replacement and upgrade business. The weakness is that its biggest end markets re-tender often: consumer-electronics lines are rebuilt around each product cycle and e-commerce distribution centres are bid project by project, which is why Cognex's revenue is far lumpier than Keyence's.
  • Vendor-Owned Vision and Decode IP: PatMax geometric pattern matching, the image-based decode engines in DataMan, and the deep-learning tools now folded into the OneVision cloud platform are Cognex's own software, funded by R&D of about 14% of revenue (~$139M in 2025). That is real IP, but deep-learning vision is also the layer where general-purpose models, cheap smart cameras and Chinese vendors such as Hikrobot are closing the gap fastest.
  • Not Keyence's Margin, Not Its Channel: Cognex sells through a mix of direct key accounts, distributors and integrators to roughly 30,000 customers, and its 2024 China price cuts showed the share it holds is priced, not owned. The 2025–26 reset (one sales organisation, about 9,000 new accounts added in 2025, $35–40M of net cost savings) lifted adjusted EBITDA margin from ~21% to a 32% quarter, but Keyence still runs operating margins above 50% on a direct model Cognex has not copied.

Cognex is a net AI beneficiary on demand, because deep-learning inspection widens what vision can do on a line and OneVision is built for it, but AI is also what lowers the barrier for rivals. Its AI-resilient pillars, line embedding and process validation, are real but intact rather than category-defining, while its AI-vulnerable vision and decode IP is where general-purpose models and Chinese smart cameras press hardest. It is a durable, good franchise in a fragmented market, not a fortress.

65.0 resilient · 65.0 vulnerable · 80/20 = 65.0 · = 65

Open a moat to read its note.

AI-Vulnerable Moats4 intact · 1 N/A
AI-Resilient Moats3 intact · 4 N/A

Cognex's moats hold at intact. Line embedding and process validation stay for each line's life, and the 2026 margin recovery is cost-out plus volume, not new pricing power. The pillar to watch is business logic: if Chinese vision vendors and general-purpose models win logistics or electronics lines on price in 2027, or Cognex has to cut China prices again as it did in 2024, that would be the signal it is narrowing; nothing on the slate has moved yet.

No moat trending · 65 holds

Compare side by side

Is Cognex stock a buy?

We rate Cognex Hold, with a composite score of 71/100: moat 65, growth 72 and valuation 75. The valuation score is struck against our bear, base and bull targets and moves with the price.

What is Cognex's moat?

Cognex scores 65/100 on moat. Cognex is the largest Western pure-play in machine vision and image-based barcode reading, with roughly mid-teens share of a ~$7B served market: its readers and vision systems are written into sortation lines, electronics assembly and packaging inspection, but the lock lasts…

How fast is Cognex expected to grow?

We estimate 7-11% a year over the next three to five years, for a growth score of 72/100.

What is Cognex's price target?

Our base case is $63, with $40 in the bear case and $86 in the bull case.