Skip to main content

Engineering Guide

This page is for implementation and integration engineers, covering the full engineering path from firmware, installation and configuration to data integration and daily operations. For the solution positioning and business value, see the Solution Description.

1. Scenarios​

The core action is one gesture: place the document in view, wait for the flash, pick it up. Typical scenarios:

ScenarioObjectsTypical use
Parcel stations / warehouse in-outShipping labelsTracking numbers into the system, replacing per-parcel scanning
Finance / front deskExpense forms, registration sheets, work ordersArchived images + searchable text
Archive rooms / gatesCertificates, ticketsImage trail + key-field extraction

Not a fit for this solution: badly crumpled or torn paper, mixed handwriting requiring high-accuracy field-level extraction, high-speed continuous batch feeding (use a sheet-fed scanner instead).

Placement​

  • Framing: shoot the drop zone top-down or level; the document should fill a good share of the frame (too small hurts on-device detection); avoid strong backlight and reflective desktops
  • Drop zone: mark an area on the desk or tray — a document landing there gets captured; set the camera distance so all four edges of the document stay in frame
  • Power & network: continuous USB Type-C power (or a USB power bank for temporary setups); Wi-Fi (incl. HaLow) / Cat-1 / Ethernet per site conditions
  • Verification: before fixing the bracket, check framing in the camera web preview, then run one full "place → capture → flash" round; the document-detection model is placement-sensitive — validate detection stability on site after mounting (confidence threshold 0.30) and fine-tune angle and distance as needed

2. Components (BOM)​

#ItemModel / SpecQtyPurpose
1NE302 camera38 × 38 mm mini AI camera, white fill-light LED1 per pointOn-device detection, auto capture, flash cue
2Solution firmwareNE302 Docsnap branch firmware (see 4.1)1 setDocument-detection auto trigger
3Document-detection modelDocAligner model package (DocPresence v4.9.1.0, download)1 setUploaded to the camera (see step 3 of 4.1)
4PowerUSB Type-C adapter / USB power bank1 per pointCamera power
5NetworkWi-Fi (incl. HaLow) / Cat-1 module / Ethernetas neededImage upload
6NeoMind hostNG4500 AI Box / server / PC with the PP-OCR extension (paddle-ocr-v6 .nep) and the NE Camera Panel component (≥ 2.15.0) installed1 setPlatform hosting, OCR pipeline and visualization

Low-cost start: 1 × NE302 + solution firmware + NeoMind on an existing PC + the open-source extension and component covers one point; scale by adding cameras only.

3. Topology​

General requirements:

  • MQTT reachability between camera and NeoMind host; the broker can be NeoMind's built-in MQTT service or an external one (configured on the camera's Data Transmission page)
  • Images above 1 MiB are chunked by the camera and reassembled by the platform — no extra setup
  • While offline, uploads follow the device retry policy; reconcile each capture on the camera's Records page

4. Setup​

Order: upgrade firmware & model (web) → camera bring-up → deploy NeoMind → register device → install extension → configure pipeline → verification.

4.1 Upgrade firmware and swap the model (web upgrade, required)​

Important: the camera firmware must be web-upgraded to the Docsnap branch firmware (download link: to be added); otherwise the camera will not auto-capture when a document appears. Both the firmware and the model are uploaded through the camera's web pages — no SWD flashing involved.

Once upgraded, the on-device document-detection model DocPresence (DocAligner model package, Presence-Only 256 input, model version v4.9.1.0, detection confidence threshold 0.30) triggers an automatic capture when paper or a label appears, and the fill light gives a soft single flash once the photo publishes successfully over MQTT.

  1. Obtain the Docsnap branch firmware package and the DocAligner model package (firmware download link: to be added; model download in the BOM above)
  2. Upgrade the firmware over the web: in the camera web UI go to System Settings → Firmware Upgrade, upload the Docsnap branch firmware _pkg.bin and confirm; wait for the device to reboot automatically. Keep power stable and do not power off or refresh during the upgrade. See NE302 System Maintenance
  3. Upload the model over the web: on Function Debug → Camera Settings → Current Model click upload and choose the DocAligner package (ne302_Model_v4.9.1.0_pkg.bin); after upload and verification the model reloads automatically — the device UI displays it as DocAligner Presence-Only 256 (lcnet050 cut) (internal naming for DocPresence). For fixed-image validation see NE302 AI Model Validation

Camera web UI: DocPresence model loaded, live view showing the shipping label in the drop zone

Feature Debugging page: current model DocAligner Presence-Only 256 (i.e. DocPresence), live view with the label inside the drop zone

Version note: the Software Version string shown in the device web UI is the firmware's self-report and may differ from the delivery package version — the Docsnap package is authoritative. The ai_doc auto capture is performed at runtime by the firmware plus the document-detection model and does not occupy a wake-source slot (wake sources remain IO-PIR / Remote Control / Scheduled Capture). The firmware passed six-day soak testing and four on-device acceptance checks.

4.2 Camera bring-up and capture self-check​

  1. Assemble, power and connect the NE302 following NE302 Quick Start
  2. Open the camera web UI and log in
  3. Adjust framing and fill light under Hardware Management; for dim points trigger once for real and check the result on the Records page (preview alone is not enough to judge fill light)
  4. Understand the flash cue: the soft flash (~250 ms) means the photo published successfully and entered the upload pipeline — not merely "captured". The cue is driven directly by the solution firmware and is fixed behavior, not configurable; it is independent of the Hardware Management → Lighting Management page, which only controls the fill light's illumination state (always on / off / custom) and does not affect the cue. While offline the photo is kept locally (no flash) and retransmitted automatically on recovery (no flash on retransmission)
  5. Place a test document in view, open Capture Settings → Records: a record at the matching time with trigger type ai_doc should appear, and the fill light flashes once
  6. Records stay "pending" until 4.4 configures upload; for pure local validation you may pick "store only" for now

4.3 Deploy NeoMind​

  1. Install NeoMind on the NG4500 AI Box / server / PC, see the 5-Minute Quick Start
  2. Log in and confirm the Devices, Extensions and Dashboard sections are available

4.4 Register the NE302 device​

  1. On the camera's Data Transmission page configure MQTT/MQTTS: server pointing to the NeoMind host (built-in broker, default port 1883), and fill in the data reception and data upload topics; see NE302 Data Transmission
  2. Add the device in NeoMind: device type ne302_camera, device ID matching the camera, adapter MQTT, upload topic equal to the camera's "data upload topic"
  3. Trigger one capture and check the device detail in NeoMind: the device is online, image_data shows an /api/images/<device>/image_data/... path, and metadata.trigger_type is ai_doc

NeoMind Device Management: NE302-20006C registered, type ne302_camera, status Connected·Standby

Device Management: NE302-20006C registered (mqtt adapter, 1 Transform, status Connected·Standby)

4.5 Install the PP-OCR extension​

  1. Install paddle-ocr-v6 on the Extensions page (marketplace, or upload the .nep per the use-case page); installation and verification: NeoMind Use Case: Camera AI Pipeline
  2. Confirm the extension is running; the model tier defaults to tiny (bundled, CPU-only friendly); switch to small/medium in the extension config for text-dense scenes (downloaded automatically on first switch)

NeoMind Extensions page: PaddleOCR-v6 in Active state

Extensions page: PaddleOCR-v6 (PP-OCRv6 local inference) is Active and ready for the dashboard pipeline

4.6 Configure the dashboard pipeline​

  1. Add NE Camera Panel from "Dashboard → Component Library → Custom" (≥ 2.15.0; open source, repository linked at the end)
  2. Edit the component and pick the NE302 device under Device Binding; the card should show the NE302 chip and the latest capture
  3. Switch to Advanced: enable Enable AI Processing, set AI Extension to PaddleOCR-v6, Working Mode PP-OCRv6 (text detection); to restrict recognition to a fixed area, enable ROI and draw it on the preview (Count Only / Inside Only / Outside Only)

NE Camera Panel Advanced settings: Enable AI Processing, PaddleOCR-v6, PP-OCRv6 working mode

Component edit dialog, Advanced tab: AI processing enabled with the PaddleOCR-v6 extension in PP-OCRv6 text-detection mode; the component's live preview is on the left

  1. Save: the platform creates a Transform named ne302-<device-id>-paddle_ocr_v6-text_detection scoped to this device; the card shows Pipeline Active
  2. Every new capture is now processed automatically; turning processing off deletes the Transform, re-binding the card re-points it — no manual cleanup

4.7 Verification (four checks)​

  1. Trigger: place and remove documents several times; Records entries must match one-to-one, each with a flash; the camera re-arms itself once the document is removed — no reset needed
  2. Platform storage: after each trigger the device's image_data path updates with trigger_type=ai_doc
  3. OCR pipeline: text boxes and labels appear on the card image, with an "N detected" summary, recognized texts and timing; virtual.paddle_ocr_v6.texts metrics appear on the device. To read the exact text recognized in a frame: on the device detail page, click the virtual.paddle_ocr_v6.texts metric under Real-time Metrics, then click Click to view full data on a record in the history dialog — every text recognized in that frame expands as a list

NeoMind device detail: the virtual.paddle_ocr_v6 metric family (texts / detections / inference_time_ms / source_ts)

Device detail page: the PP-OCR pipeline's virtual metrics shown alongside the device's native metrics (texts, detections, inference_time_ms, source_ts, all badged Virtual)

History dialog listing the records of virtual.paddle_ocr_v6.textsAfter clicking Click to view full data, every text recognized in that frame expands as a list

Left: clicking the virtual.paddle_ocr_v6.texts metric opens the metric's history dialog; right: clicking Click to view full data on a record expands the exact list of texts the OCR recognized in that frame (shown: one real capture; the code box scrolls for the rest)

  1. Exit: if business integration is required, create a push target under Data Explorer → Data Push first (see 4.9), place a document, and confirm the recognition fields arrive on the business side

All four checks passing completes site acceptance.

4.8 Storage and display​

  • Captured frames: the Image Data card on the device detail page shows the thumbnail — click it to view the full frame; the dashboard card shows it side by side
  • Recognition results: virtual metrics in the device time-series store, queryable from dashboard history and AI Chat
  • Dashboard: frame, text-box overlay, "N detected" summary and recognized-text chips on one screen

4.9 Data forwarding (optional)​

Business integration is completed through the platform's Data Push — configured entirely in the UI, no code:

  1. Open the Data Explorer page, switch to the Data Push tab, and click Create Target
  2. Enter a name, set Target Type to Webhook with the business system's webhook URL; set the schedule to Event-driven (pushes as new metrics arrive); fill the data scope with a source pattern per the input placeholder, e.g. device:<device-id>: (recognition results ride along as the virtual.paddle_ocr_v6.* virtual metrics)
  3. Save and start the target, then place a document to verify: the business webhook should receive a push containing the recognition fields

Push status, retries and the delivery log are shown in the target list on the same tab; field semantics are covered in section 5.

5. Data Integration​

5.1 Device report structure​

Each capture produces one JSON report on the camera's "data upload topic"; key fields:

FieldTypeNotes
metadata.timestampnumberCapture time on the camera clock (seconds); camera clock skew does not affect result pairing (see 5.2)
metadata.trigger_typestringThis solution's trigger marker, always ai_doc
metadata.width / height / size / qualitynumber1280 × 720 image, byte size, JPEG quality
device_info.device_name / power_supply_type / battery_percent—Device name and power state (battery figure meaningless on external power)
ai_resultobject/nullThe solution firmware only decides the trigger and does not report on-device boxes; this field is empty
image_datastringImage reference or chunks; after reassembly the platform stores it and the device detail shows an /api/images/... path
encodingstringbase64

5.2 Virtual metric fields​

The PP-OCR pipeline produces these virtual metrics per image (prefix virtual.paddle_ocr_v6.; the platform stores array/object metrics as JSON strings, parsed by the dashboard component since 2.15.0):

MetricTypeNotes
detectionsJSON arrayPer text region: bbox (normalized 0–1), polygon, label (recognized text), confidence
textsJSON arrayList of recognized strings (empty regions filtered out)
inference_time_msnumberOCR duration for this frame
source_tsnumberCamera timestamp of the source image (metadata.timestamp), pairing results to frames
roi_count / <region>_count / <region>_detectionsnumber/JSONWith ROI enabled: per-region counts and details

Pairing rule: the dashboard renders results only when source_ts matches the displayed image's timestamp (15 s tolerance, covering OCR latency) — camera clock skew does not affect pairing.

5.3 Consumption example​

Latest values shown on the device detail page (excerpt):

{
"image_data": "/api/images/NE302-20006C/image_data/1796040725_41b3da108e8f5b2b812e0b60139845d4.jpg",
"metadata.trigger_type": "ai_doc",
"metadata.timestamp": 1796039902,
"virtual.paddle_ocr_v6.texts": ["Neutral", "10f1", "CENTER", "DISTRIENTIONCENTER", "ZONFULFILLMENT", "towolght", "ADAVENT", "10kg", "UnitedKingdom", "OunE103359", "DPGROUPLTD", "NN118LR", "ROEBUCKLANE", "0C000000", "BIRMINGHAM", "1004919745", "Phone:0121002500", "3448226", "B661BY", "NEXTDAY", "155018049197451", "service", "GB-NN118LR", "0065", "812-GB-NN118LR", "21/08/1904:10Web4.3.3-apl", "NN118LR155018049"],
"virtual.paddle_ocr_v6.inference_time_ms": 1853,
"virtual.paddle_ocr_v6.source_ts": 1796039902
}

The example is a real recognition result from one ai_doc-triggered capture in the validation environment (the same frame as the hero image in the Solution Description), kept verbatim — including OCR misreads of small or reflective regions (e.g. DISTRIENTIONCENTER, towolght); output varies per frame, validate on site.

5.4 Integration advice​

  • Pairing: align images and text via source_ts (camera time); do not infer capture order from server receive time
  • Empty results: OCR occasionally misses regions — when texts is empty, fall back to the stored frame and keep a manual-review channel
  • Alerting: to notify on each new document, use the event-driven Data Push webhook (see 4.9) on the business side instead of polling virtual metrics

6. Daily Operations​

Symptom / taskHandling
Placing a document does not triggerConfirm the Docsnap branch firmware is installed via web upgrade (4.1); on Camera Settings confirm the model is loaded and the confidence threshold reasonable; check the document's share of the frame
No flash after placing a documentThe flash means the photo published successfully — check the MQTT link first (camera Application Management page connection status, NeoMind broker reachability); with the link healthy the next placement flashes again. The cue is fixed firmware behavior, unrelated to the Lighting Management fill-light settings
Photos taken while offlineKept locally and queued for automatic retransmission; no flash on retransmission — reconcile on the camera's Records page
Image on card but no textConfirm Enable AI Processing is on and the extension is running; occasional empty results clear on the next frame; text-dense images take longer (see section 7)
Poor text qualityImprove lighting and placement first; handwriting and low-quality print are inherent OCR difficulty — evaluate on site; with a fixed layout, use ROI to focus key areas
OCR latency grewDense frames take longer by nature; if persistently slow, evaluate a larger model tier for the accuracy/latency trade-off, or reduce concurrent points
Device offlineCheck power and network; failed entries on the Records page follow the device retry policy
Re-bind to another cameraRe-bind the component; the Transform re-points automatically; turning processing off deletes it

7. Performance & Specs​

MetricValue
Image1280 × 720 JPEG (delivery spec q60)
On-device triggerDocsnap document-detection model DocPresence (Presence-Only 256, v4.9.1.0), NPU inference, confidence threshold 0.30; placement-sensitive — calibrate on site
Flash cueone soft fill-light flash (~250 ms) once the photo publishes over MQTT (no PUBACK wait; fixed firmware behavior, not configurable); no flash while offline, no flash on retransmission
OCR tierstiny (bundled, ~6 MB) / small (~18 MB) / medium; auto picks by host capability
OCR per-frame latencyMeasured reference: ~0.8–1.4 s on a development host (typical labels); text-dense frames can reach several seconds
Result pairing window15 s (source_ts tolerance)
Data retentionCaptured frames on disk + virtual metrics in the time-series store, all on the host

OCR latency depends on host compute, model tier and text density; pace the drop rhythm to the per-frame latency — rapid consecutive drops queue up. Validate on site.

8. Support​

Learn More​