Join the 155,000+ IMP followers

Case studies

www.foodpackautomation.com

3D Vision and Deep Learning Automate Pumpkin Post-Harvest Handling 

MVTec HALCON enables two robotic cells developed by Agmanic and Génik to pick and pack pumpkins of varying shape, size and variety at a Québec farm without line reconfiguration.

  www.mvtec.com
3D Vision and Deep Learning Automate Pumpkin Post-Harvest Handling

Canadian machine vision specialist Agmanic Vision and automation and robotics company Génik have developed a fully automated robotic application for post-harvest pumpkin processing at Les Fermes Émile Gariepy in Québec. The system uses MVTec HALCON machine vision software with 3D image processing and deep learning to remove pumpkins from harvest crates and pack them into cartons, handling different varieties without reconfiguration.

Labour Shortages in Post-Harvest Processing
Canadian agriculture faces a structural labour shortage, with tens of thousands of jobs unfilled during peak harvest season for years. In 2022 alone, the resulting losses totalled 3.5 billion U.S. dollars, and by 2030 more than 35,000 jobs in the fruit and vegetable sector are expected to remain unfilled during the peak season. After harvest, pumpkins must still be cleaned, labelled and packed – repetitive, labour-intensive tasks that must be completed within a short timeframe. At the farm, four employees per shift had previously been needed to load the washing system, monitor the line and pack the pumpkins into cartons.

"The pumpkin farm wanted to automate the post-harvest processes. However, the task was technically extremely challenging because pumpkins do not behave like industrially manufactured components. They vary considerably in shape, size, weight and orientation. In addition, there are different varieties," explains Peter McLaughlin, CEO and Co-Founder of Agmanic.

Two Robotic Cells for Bin Picking and Packing
The customer's objectives were to reduce reliance on manual labour, ensure consistent throughput, process different pumpkin varieties without reconfiguration and handle the products gently. The system comprises two robotic cells, with a brush washing station and an automatic labelling station between them. In the first cell, a Basler 3D time-of-flight camera mounted on the tool of the bin-picking robot scans the wooden crate from above and creates a 3D point cloud of the stacked pumpkins. At the same time, HALCON analyses the 2D image from the same camera using deep learning-based instance segmentation to detect each visible pumpkin regardless of variety, size or orientation.

Combining the 2D detections with the 3D data, the system determines the spatial position of each pumpkin, checks its orientation and surroundings, assesses whether collision-free grasping is possible and sends the coordinates of the best candidate to the robot controller. At the exit of the washing station, a stereo 3D camera above the conveyor belt provides the data for the second robot to pick the moving pumpkins. A further active stereo 3D camera above the carton generates a point cloud of the box interior in each cycle, so that HALCON can detect occupied areas and a planning algorithm developed by Agmanic Vision can determine the optimal placement position.

3D Point Clouds and Hand-Eye Calibration
"Neither sensor technology alone, nor traditional rule-based image processing, could have met the requirements. The variation among the pumpkins is simply too great. In addition, the system must not only recognize objects, but also determine their spatial position, calculate gripper points, predict movements, and plan packaging positions," explains McLaughlin. "HALCON has over 2,100 different operators. This means it can cover virtually all use cases in virtually every industrial sector," adds Felix Podhorsky, Business Development Manager at MVTec.

HALCON calculates a point cloud from the 3D camera data, in which each point has at least X, Y and Z coordinates describing a location on the object surface. From this, the software determines the shape, position, height, distance, volume or orientation of each pumpkin, including where a robot can grasp it. Hand-eye calibration then converts the 3D position into robot coordinates, allowing the robot to grasp and place each pumpkin precisely.

Instance Segmentation for Variable Natural Products
AI-based instance segmentation assigns objects to a class with pixel-level precision and extracts their exact boundaries and shapes, even when several pumpkins lie in a container or touch one another. This allows HALCON to determine which pumpkin is the next suitable candidate for picking. "AI recognizes the pumpkin as an object in the image. 3D image processing provides information in the form of a point cloud, indicating the pumpkin's position in space. Through hand-eye calibration, this information is translated and transferred into robot coordinates," McLaughlin summarizes.

Throughput of 1,200 Pumpkins per Hour
The automated post-harvest system at Les Fermes Émile Gariepy has been in operation since 2025. The fully integrated system processes one pumpkin every three seconds, or 1,200 pumpkins per hour, and has reduced reliance on the four employees previously required. "The system can process different varieties without requiring operator intervention or reconfiguring the line between varieties," explains McLaughlin.

Edited by Aishwarya Mambet, Induportals Editor, with AI assistance.

www.mvtec.com

Join the 155,000+ IMP followers