Skip to main content

Solution Description

NE302-Waybill-OCR dashboard: 12 field cards alongside the captured waybill photo

NE302-Waybill-OCR dashboard: 12 field cards (tracking number, carrier, receiver, contact phone, etc.) on the left, the latest captured waybill photo on the right — values refresh with every capture

Background​

In parcel, warehouse and pickup scenarios, a waybill photo is usually just an "archive" — what business systems actually need are fields that can go straight into a database: tracking number, carrier, service type, receiver, contact phone. Manual entry from photos is slow and error-prone; the Document Recognition solution turns a waybill into a full text list, but the business system still has to pull the fields out of that text pile. Many systems want something more direct: image in, fields out.

That shortcut is now practical on local hardware: the MiniCPM end-side model series open-sourced by OpenBMB (the organization built by ModelBest and Tsinghua University's NLP lab) delivers solid image text recognition (OCR) and document understanding at small parameter sizes — its multimodal branch MiniCPM-V reads waybills and documents without any cloud API (see OpenBMB/MiniCPM). This solution is built on exactly that: a MiniCPM-V model running inside NeoMind turns each captured waybill directly into business fields.

Solution​

The idea: capture one waybill, get database-ready fields directly.

Place a CamThink NeoEyes NE302 (Docsnap branch firmware) at the capture point — a waybill entering the view is captured automatically and the image travels over MQTT to NeoMind. On the platform, an AI Agent listens to that device's image metric; on each event it calls the built-in MiniCPM-V-4.7-1B vision-language model to extract fields per the prompt, then writes each field back as a device virtual metric (virtual.ocr.*): the device detail page, the dashboard field cards and a Webhook push all stay in sync. Which fields are extracted is decided by the prompt and the field list — the fields are fully customizable, change fields without touching code.

Prerequisite: the NE302 runs the same Docsnap branch firmware as the Document Recognition solution (with the on-device document-detection model for "place and shoot"); the NeoMind host needs GPU memory reserved for the MiniCPM vision model (built-in catalog, downloaded automatically on first use).

The whole chain is three steps: place → auto capture → fields into the database. Recognition runs locally on the NeoMind host (MiniCPM local inference) — image and field data never leave the intranet.

Components (BOM)​

#ComponentModel / SpecQtyRole
1Edge AI cameraNeoEyes NE302 (STM32N6, white fill-light LED)1 per pointWaybill capture, image upload
2Solution firmwareNE302 Docsnap branch firmware (download ne302_App_signed_*_pkg.bin) + DocAligner model package (download)1 setOn-device document detection, "place and shoot"
3NeoMind hostNG4500 AI Box / server / PC with GPU memory reserved for MiniCPM-V-4.7-1B (built-in catalog, auto-downloaded on first use)1 setDevice access, Agent recognition, field write-back, dashboard, Webhook

Sharing one NE302 and the same firmware/model packages with the Document Recognition solution works fine — the two do not conflict: one outputs full text with text-box coordinates, the other outputs structured business fields.

Starter setup: 1 × NE302 (Docsnap firmware + DocAligner model package) + 1 × GPU-equipped NeoMind host; Agent, dashboard and Webhook are all configured in the platform UI — no external scripts.

Workflow​

  1. Auto capture — a waybill enters the view, the on-device detection model triggers a capture (the same "place and shoot" experience as the Document Recognition solution)
  2. Event trigger — the device's image_data metric update fires the AI Agent, no human action
  3. Vision recognition — the Agent calls MiniCPM-V-4.7-1B to extract fields per the prompt, with built-in self-check rules correcting common misreads (Track/Ref mix-ups, placeholder digits, truncated addresses)
  4. Field write-back — the Agent writes each recognized value into the device virtual metrics virtual.ocr.*
  5. Three consumers — device detail page, dashboard field cards, Webhook event push, all in sync
  6. Into the business system — the system receives structured fields straight from the Webhook, no re-parsing

Key Features​

  • Custom fields, structured JSON back: you define which fields to extract — put the field list into the prompt, feed it to the OCR vision model, and get complete JSON back; the 12 waybill fields in the sample configuration (tracking number/carrier/receiver/contact phone…) are just one such setup — switching document types means editing the prompt and field list
  • Fully automatic loop: capture → event-triggered recognition → field write-back → Webhook push in one chain, no manual triggering or transcription; execution failures notify automatically
  • One source, three views: detail page, dashboard cards and Webhook read the same device virtual metrics — consistent by construction
  • Local inference: MiniCPM-V runs on the NeoMind host (llama.cpp) — image and field data stay on-site
  • Closed inside the platform: no Paddle, no external scripts; Agent/dashboard/push are all UI-configured

Results​

  • Waybill entry changes from "reading photos and typing" to "place the waybill, fields land automatically" — entry, review and filing on one screen
  • The full chain runs automatically in our validation environment; field-level accuracy varies with image quality and layout — dense digit regions (such as segmented tracking numbers) are a known weakness of small vision models, so validate business-critical fields with real documents before deployment and keep a manual-review channel
  • Local inference and storage satisfy intranet data-compliance requirements

Learn More​