arXiv:2611.09490cs.RONov 2026

Manuscript Offprint

arXiv:2611.09490

CucumberVision at the Edge: Accuracy, Throughput, and Energy of RGB-D Cucumber Sizing on Jetson Orin Nano and Raspberry Pi 4

Manveen Kaur, Rajmeet Singh, Saeed Mozaffari, Majid Ahmadi, Shahpour Alirezaee

Manveen Kaur

Department of Mechanical Engineering

University of Windsor

Windsor, ON, Canada

Kaur79@uwindsor.ca

Rajmeet Singh*

Mohamed bin Zayed University of Artificial Intelligence

Abu Dhabi, UAE

rajmeet.bhourji@mbzuai.ac.ae

Saeed Mozaffari

Department of Mechanical Engineering

University of Windsor

Windsor, ON, Canada

Majid Ahmadi

Department of Electrical and Computer Engineering

University of Windsor

Windsor, ON, Canada

Shahpour Alirezaee

Department of Mechanical Engineering

University of Windsor

Windsor, ON, Canada

  • Corresponding author.

Abstract

Non-contact fruit sizing from RGB-D imagery reaches sub-centimetre accuracy on workstation hardware, but in-field grading requires the same pipeline to run on a low-power single-board computer, and the cost of that transition is rarely reported. We deploy a curvature-aware cucumber length-measurement pipeline YOLO26n detection, prompt-based segmentation and a medial arc spline estimator on an NVIDIA Jetson Orin Nano and a Raspberry Pi 4, and characterise both against an RTX 3050 Ti workstation by replaying 50 identical greenhouse captures of 7 specimens, with specimen-level cluster-bootstrap statistics. Accuracy is preserved: mean absolute error (MAE) is 0.58 cm (95% CI 0.46–0.69) on both the workstation and the Jetson at matched precision, with a paired difference of zero. TensorRT FP16 compilation cuts Jetson detection latency 2.57×, giving two operating points on one board: 72 ms per fruit at 0.84 cm, or 2.74 s at

0.64 cm. Four ablations map the design space. For prompted segmentation backends, measurement accuracy is fixed by the backend and reproduces across platforms to within 0.01 cm, while its cost is fixed by the platform and varies 214×, so the two choices are separable. Whole-graph INT8 quantization of the NMS-free detection head fails structurally, returning no detections, because one output tensor carries both pixel coordinates and confidences; we show that no calibration strategy can avoid this. Excluding the head restores function at 1.37×. Energy per fruit is 42.2 J on the Jetson, and its 7 W mode consumes 73% more than its 15 W mode. The Raspberry Pi with MobileSAM costs 2.5× more per fruit than the Jetson with SAM despite drawing 47% less power, and it runs without thermal throttling under sustained load. The results define an accuracy–throughput–energy envelope with three non-dominated configurations and give rules for selecting among them.

Keywords: Edge computing embedded vision post-training quantization TensorRT energy per inference precision agriculture RGB-D sensing

1 Introduction

Fruit length is the primary grading criterion in commercial greenhouse cucumber production, and non-contact measurement from RGB-D imagery offers a route to automating it. Depth-camera sizing has been demonstrated for several crops [Géné-Mola et al., 2021, 2023], and our previous originating study established that a curvature-aware estimator fitting a cubic spline through the three-dimensional cross-section centroid spine of a segmented fruit and integrating arc length attains sub-centimetre accuracy under canopy conditions [Kaur et al., 2026]. That result was obtained on workstation hardware with a discrete GPU.

Practical grading does not take place at a workstation. A scouting platform moving between rows carries a single-board computer with a few watts of power budget, no discrete GPU and, in the cheapest case, no active cooling. Whether a method that works on a laptop also works there is not a foregone conclusion: prompt-based segmentation may be one to two orders of magnitude more expensive on embedded silicon [Kirillov et al., 2023, Zhang et al., 2023], reduced-precision arithmetic may or may not preserve the geometry the estimator depends on [Wu et al., 2020], and sustained inference on a passively cooled board may throttle. Existing edge benchmarks in agriculture report detection accuracy and frame rate on a single platform [Alqahtani et al., 2024, Sapkota et al., 2025], but not the joint accuracy–throughput–energy behaviour of a complete measurement pipeline, and not the interaction between segmentation backend and platform.

This paper reports the deployment of that pipeline on two representative embedded platforms an NVIDIA Jetson Orin Nano and a Raspberry Pi 4 Model B and characterises the resulting design space through four controlled ablations. All three platforms replay the same greenhouse captures against the same ground truth, so every reported difference is attributable to the deployment configuration rather than to sensing. The contributions are:

  1. Working deployments of the complete measurement pipeline on a Jetson Orin Nano and a Raspberry Pi 4, with accuracy shown to be statistically indistinguishable from the workstation baseline, together with the TensorRT and ONNX Runtime inference paths that make them practical.

  2. A segmentation-backend ablation establishing that, for prompted backends, measurement accuracy is determined by the mask source and transfers between platforms, while segmentation cost is determined by the platform and does not making backend selection and hardware selection separable design decisions.

  3. Identification of a structural, rather than numerical, failure mode in post-training INT8 quantization of NMS-free detection heads, with a proof that no calibration strategy can avoid it, a fix, and its measured cost.

  4. A characterisation of the deployment design space spline smoothing, power mode, energy per measurement and sustained thermal behaviour yielding an explicit accuracy–throughput–energy envelope and rules for selecting an operating point within it.