CPC G06T 7/74 (2017.01) [G06T 3/10 (2024.01); G06V 10/24 (2022.01); G06V 10/40 (2022.01); G06V 20/50 (2022.01); G06T 2207/30244 (2013.01); G06T 2207/30264 (2013.01); G06V 2201/07 (2022.01); G06V 2201/08 (2022.01)] | 20 Claims |
1. A method, comprising:
obtaining an intrinsic parameter of a camera;
obtaining an extrinsic parameter of the camera based on first world coordinates of a plurality of points in a shooting region of the camera, first image coordinates of the points, and the intrinsic parameter;
obtaining second image coordinates of a first target in a first image shot by the camera;
obtaining image information of the first target, wherein the first target comprises a vehicle;
querying for a feature parameter of the vehicle based on the image information of the first target;
obtaining a first physical transformation matrix corresponding to the extrinsic parameter based on the extrinsic parameter;
obtaining a first intrinsic parameter matrix of the camera based on the intrinsic parameter;
performing coordinate transformation on the second image coordinates, the first physical transformation matrix, and the first intrinsic parameter matrix to obtain obtaining second world coordinates; and
obtaining third world coordinates of the first target based on the feature parameter, a height of the camera, a location of the camera, and the second world coordinates.
|