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:
| Scenario | Objects | Typical use |
|---|---|---|
| Parcel stations / warehouse in-out | Shipping labels | Tracking numbers into the system, replacing per-parcel scanning |
| Finance / front desk | Expense forms, registration sheets, work orders | Archived images + searchable text |
| Archive rooms / gates | Certificates, tickets | Image 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)
| # | Item | Model / Spec | Qty | Purpose |
|---|---|---|---|---|
| 1 | NE302 camera | 38 × 38 mm mini AI camera, white fill-light LED | 1 per point | On-device detection, auto capture, flash cue |
| 2 | Solution firmware | NE302 Docsnap branch firmware (see 4.1) | 1 set | Document-detection auto trigger |
| 3 | Document-detection model | DocAligner model package (DocPresence v4.9.1.0, download) | 1 set | Uploaded to the camera (see step 3 of 4.1) |
| 4 | Power | USB Type-C adapter / USB power bank | 1 per point | Camera power |
| 5 | Network | Wi-Fi (incl. HaLow) / Cat-1 module / Ethernet | as needed | Image upload |
| 6 | NeoMind host | NG4500 AI Box / server / PC with the PP-OCR extension (paddle-ocr-v6 .nep) and the NE Camera Panel component (≥ 2.15.0) installed | 1 set | Platform 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.
- Obtain the Docsnap branch firmware package and the DocAligner model package (firmware download link: to be added; model download in the BOM above)
- Upgrade the firmware over the web: in the camera web UI go to System Settings → Firmware Upgrade, upload the Docsnap branch firmware
_pkg.binand 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 - 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 asDocAligner Presence-Only 256 (lcnet050 cut)(internal naming for DocPresence). For fixed-image validation see NE302 AI Model Validation

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_docauto 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
- Assemble, power and connect the NE302 following NE302 Quick Start
- Open the camera web UI and log in
- 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)
- 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)
- Place a test document in view, open Capture Settings → Records: a record at the matching time with trigger type
ai_docshould appear, and the fill light flashes once - Records stay "pending" until 4.4 configures upload; for pure local validation you may pick "store only" for now
4.3 Deploy NeoMind
- Install NeoMind on the NG4500 AI Box / server / PC, see the 5-Minute Quick Start
- Log in and confirm the Devices, Extensions and Dashboard sections are available
4.4 Register the NE302 device
- 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
- 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" - Trigger one capture and check the device detail in NeoMind: the device is online,
image_datashows an/api/images/<device>/image_data/...path, andmetadata.trigger_typeisai_doc

Device Management: NE302-20006C registered (mqtt adapter, 1 Transform, status Connected·Standby)
4.5 Install the PP-OCR extension
- Install paddle-ocr-v6 on the Extensions page (marketplace, or upload the
.nepper the use-case page); installation and verification: NeoMind Use Case: Camera AI Pipeline - Confirm the extension is running; the model tier defaults to
tiny(bundled, CPU-only friendly); switch tosmall/mediumin the extension config for text-dense scenes (downloaded automatically on first switch)

Extensions page: PaddleOCR-v6 (PP-OCRv6 local inference) is Active and ready for the dashboard pipeline
4.6 Configure the dashboard pipeline
- Add NE Camera Panel from "Dashboard → Component Library → Custom" (≥ 2.15.0; open source, repository linked at the end)
- Edit the component and pick the NE302 device under Device Binding; the card should show the NE302 chip and the latest capture
- 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)

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
- Save: the platform creates a Transform named
ne302-<device-id>-paddle_ocr_v6-text_detectionscoped to this device; the card shows Pipeline Active - 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)
- 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
- Platform storage: after each trigger the device's
image_datapath updates withtrigger_type=ai_doc - OCR pipeline: text boxes and labels appear on the card image, with an "N detected" summary, recognized texts and timing;
virtual.paddle_ocr_v6.textsmetrics appear on the device. To read the exact text recognized in a frame: on the device detail page, click thevirtual.paddle_ocr_v6.textsmetric 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

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)


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)
- 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:
- Open the Data Explorer page, switch to the Data Push tab, and click Create Target
- 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 thevirtual.paddle_ocr_v6.*virtual metrics) - 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:
| Field | Type | Notes |
|---|---|---|
metadata.timestamp | number | Capture time on the camera clock (seconds); camera clock skew does not affect result pairing (see 5.2) |
metadata.trigger_type | string | This solution's trigger marker, always ai_doc |
metadata.width / height / size / quality | number | 1280 × 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_result | object/null | The solution firmware only decides the trigger and does not report on-device boxes; this field is empty |
image_data | string | Image reference or chunks; after reassembly the platform stores it and the device detail shows an /api/images/... path |
encoding | string | base64 |
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):
| Metric | Type | Notes |
|---|---|---|
detections | JSON array | Per text region: bbox (normalized 0–1), polygon, label (recognized text), confidence |
texts | JSON array | List of recognized strings (empty regions filtered out) |
inference_time_ms | number | OCR duration for this frame |
source_ts | number | Camera timestamp of the source image (metadata.timestamp), pairing results to frames |
roi_count / <region>_count / <region>_detections | number/JSON | With 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
textsis 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 / task | Handling |
|---|---|
| Placing a document does not trigger | Confirm 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 document | The 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 offline | Kept locally and queued for automatic retransmission; no flash on retransmission — reconcile on the camera's Records page |
| Image on card but no text | Confirm 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 quality | Improve 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 grew | Dense frames take longer by nature; if persistently slow, evaluate a larger model tier for the accuracy/latency trade-off, or reduce concurrent points |
| Device offline | Check power and network; failed entries on the Records page follow the device retry policy |
| Re-bind to another camera | Re-bind the component; the Transform re-points automatically; turning processing off deletes it |
7. Performance & Specs
| Metric | Value |
|---|---|
| Image | 1280 × 720 JPEG (delivery spec q60) |
| On-device trigger | Docsnap document-detection model DocPresence (Presence-Only 256, v4.9.1.0), NPU inference, confidence threshold 0.30; placement-sensitive — calibrate on site |
| Flash cue | one 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 tiers | tiny (bundled, ~6 MB) / small (~18 MB) / medium; auto picks by host capability |
| OCR per-frame latency | Measured reference: ~0.8–1.4 s on a development host (typical labels); text-dense frames can reach several seconds |
| Result pairing window | 15 s (source_ts tolerance) |
| Data retention | Captured 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
- Community: Discord / GitHub Discussions
- Customization & volume deployment: Contact us, please include the site count and the business system to integrate