The invention discloses a method and
system for positioning a panoramic camera in a
point cloud map, and the method comprises the steps: carrying out the preprocessing of a panoramic image and three-dimensional
point cloud map data, and obtaining two-dimensional
line segment features and three-dimensional
line segment features; based on the two-dimensional and three-dimensional
line segment features, calculating two-dimensional and three-dimensional line segment main directions and comparing to obtain candidate rotation
estimation; designing a two-dimensional distance function and a three-dimensional distance function based on candidate rotation
estimation to evaluate the rough
pose, designing a two-dimensional / three-dimensional line segment
loss function to
score the candidate
pose, and screening out # imgabs0 candidate poses meeting requirements according to scores; and carrying out two-dimensional and three-dimensional key point extraction on the # imgabs1 # candidate
pose, matching the two-dimensional key points with the three-dimensional key points, and carrying out further pose
estimation on the candidate pose with the maximum matching quantity by adopting a PnP-RANSAC
algorithm, so as to obtain final fine pose estimation. The method overcomes the defects that in the prior art, point
feature detection is unstable and depends too much on an ideal static environment.