In order to improve the problem that the vibration response of thin-walled pipes and small branch pipes is difficult to be effectively measured by contact measurement method,this paper proposes to calculate the optical flow of adjacent frames at different times based on the camera calibration algorithm and optical flow algorithm under the condition of visual measurement,so as to realize the unmarked visual structure motion measurement in the two-dimensional direction of the pipeline.Experimental verification was conducted on two typical structures,cantilever beam and nuclear power pipeline,and the measurement results of random points were compared with those of laser displacement sensor and acceleration sensor.The results indicate that the results of visual measurement of pipeline vibration are basically consistent with those of laser displacement sensor and acceleration sensor,and the relative error is less than 4.9%.Therefore,the unmarked visual structure motion measurement algorithm proposed in this paper can be used as a non-contact measurement option for pipeline vibration measurement.