OpenMV
Shields
Lens
Robotics
Book
Video
Download
Docs
Forum
OpenMV.io
GithubIn industrial inspection and automation control systems, the displacement accuracy of mechanical structures (such as telescopic rods, push-pull mechanisms, sliding rail platforms, etc.) directly affects the operational stability and measurement reliability of the equipment. Traditional displacement sensors or encoders are difficult to install in confined spaces and are susceptible to dust, vibration, and mechanical wear, resulting in higher maintenance costs. To address this, industrial inspection equipment manufacturers plan to adopt the optical flow tracking function of SingTown Technology's OpenMV smart camera to implement a non-contact displacement measurement solution.
The camera is fixed externally to the device, approximately 50 cm away from the measured object. By analyzing the optical flow changes of surface feature points, the telescopic displacement of the device (within a range of about 25 cm) is calculated. This module will be embedded into self-developed industrial equipment to achieve high-precision, low-cost dynamic displacement monitoring, and data is output via a serial port for use by the host computer or control unit.

Industrial inspection equipment manufacturers utilize the optical flow detection solution based on SingTown Technology's OpenMV smart camera, leveraging the motion changes of image feature points to achieve real-time displacement measurement of telescopic devices.
The system continuously captures video frames through the camera, and the built-in optical flow tracking algorithm will track key feature regions, calculating pixel displacement between adjacent frames.
Based on the fixed distance between the camera and the target object, along with the known field of view, the system converts pixel displacement into actual physical displacement, thereby measuring the extension length of the device.
In actual deployment, the camera is fixedly installed approximately 50 cm away from the device. Optical flow calculation is performed by observing the natural texture on the device's surface or specific marker points (such as contrast stickers).
The algorithm automatically filters out errors caused by lighting changes and slight vibrations, and obtains a continuous displacement curve through time integration.
Test results indicate that within a 25 cm extension range, the measurement error can be controlled within ±1mm, with a response time below 50ms.
This solution features edge deployment capability, enabling independent detection without additional sensors. It is suitable for applications such as expansion joints, hydraulic cylinder displacement detection, and automated platform position feedback.
Simultaneously, this embedded vision system can output real-time displacement data via serial port or I²C interface, supporting integration with PLC or microcontroller systems to achieve precise motion control.
SingTown Technology's OpenMV smart camera utilizes optical flow detection technology to endow industrial equipment with high-sensitivity, contact-free, and maintenance-free displacement measurement capabilities, providing reliable and efficient visual solutions for enterprise intelligent inspection systems.

AI Sentinel Based on OpenMV: Automatic Alert for Unlocked Key Locations
Automatically determines whether the door of a key location has remained open for an extended period and issues a timely alert.

Personnel crossing the boundary triggers an alarm; OpenMV interprets the “sense of security boundary”
Detecting personnel or equipment crossing virtual perimeter lines.

“AI Urban Management” is here—an automatic street vending detection system built on OpenMV
Automatically identifies illegal street vending activities to support daily urban governance.

Improper placement of gas cylinders? Use OpenMV to automatically trigger hazard alerts
Automatically identifies non-compliant placement positions of gas cylinders to detect potential gas safety hazards in advance.

Did you perform live-line work without wearing insulating gloves? OpenMV will immediately issue an alert!
Automatically identifies whether workers are wearing insulating gloves to assist in safe operations.

Real-time detection of surface defects on aluminum plates using the OpenMV smart camera
Online identification of defects on aluminum plate surfaces, such as scratches and dents, to support quality control.