The invention relates to the technical field of guide rail measurement, and discloses a guide rail guidance
stroke measurement device and method based on a
machine vision technology, and the method comprises the steps: obtaining a multispectral surface image of an
elevator guide rail, carrying out the adaptive illumination compensation according to the image, extracting the texture features, edge features and corner features of the image, and calculating the guide rail guidance
stroke. Combining the cross section shape data and the
surface depth data to construct an
elevator guide rail
image enhancement model, and generating an enhanced guide rail image; obtaining a feature
point set based on the enhanced image and data, fitting a two-dimensional profile curve of the guide rail, and calculating the length of the two-dimensional profile curve; according to the method, through the compensation and enhancement
processing of the
multispectral image, the
measurement precision and reliability of the guide rail
stroke are improved; the device further comprises an
image acquisition module, an illumination compensation module, an
image enhancement module and a guide rail length calculation module, and automatic operation from
image acquisition and
processing to length calculation is achieved. The method is suitable for accurate measurement of the
elevator guide rail, and the measurement efficiency and accuracy are improved.