The invention relates to a roller
shutter image motion compensation method and
system based on XR positioning, belongs to the technical field of
image processing, and solves the problems of incomplete roller
shutter image motion compensation and low calculation efficiency in the prior art. Comprising the following steps: acquiring binocular roller
shutter images and equipment poses which are acquired in real time, and caching the equipment poses into a positioning data
queue; based on the positioning data
queue, obtaining a row partitioning strategy of each frame of binocular roller shutter image, further dividing each roller shutter image into a plurality of row partitions, and calculating an
exposure moment of each row partition and a relative
pose of each row partition relative to the reference row partition; on the basis of calibration parameters and a
distortion model of the XR equipment,
distortion removal
processing, motion compensation based on the relative
pose of each row block and
distortion re-application
processing are sequentially carried out on each row block; and combining all the processed row blocks according to the sequence of the row blocks in the roller shutter image to generate a binocular roller shutter image after motion compensation. The motion
compensation effect and the calculation efficiency are improved.