Visual intelligence information analysis



First of all, it is the problem analysis of problem C. The core idea of the problem is how to solve the distance between two points in the real scene according to the pixel distance on the image.

12.png

So, according to this core idea, here we choose the small hole imaging model to solve.

ce10d234f01231d3acf5886d18e4c42.png

This model mainly describes the projection process of points in space on the image. In order to use this model to solve the problem, we need to solve the Euclidean transformation matrix, camera internal parameters and a normalized coefficient in the model.

9add879999abe6a6f90dd3c2bdca39c.png

We choose the vanishing point equation of the camera to solve the rotation matrix of the camera and the focal length of the camera.

Then, according to the correspondence between the phase center, the vanishing point, the vanishing line and the parallel straight line in the real space in the image, the specific coordinates of the vanishing point can be used to solve the problem. Finally, according to the geometric projection relationship of a line segment vector with a clear distance in the real scene to the imaging plane, the translation matrix of the camera can be solved.

c6b85e179e4f830ca2151a3638ac1ee.jpg 

AD' is the projection of AD. Since the real length of AD is known, it is denoted as l, and there is ADR0 in the world coordinate system, ADRC in the camera coordinate system, and ADRC = R·ADR0. The straight line of AD intersects OD at point D'. With the help of the similar relationship between triangle OAD' and triangle OAD, we can get:

3dcd328a11e72138af887a02126c5c4.jpg 

Through the above scheme, we can solve all the unknown coefficients in the small hole imaging model,

If you need to solve the specific coordinates of a point in the space plane, you only need to find the coordinates of the pixel point on the corresponding imaging plane and bring it into the publicity to get the space coordinates corresponding to this point.

After the small hole imaging model is constructed, all the problems described in the title can be solved according to this model. First find the vanishing point in the image to solve the rotation matrix of the camera, and then find a known distance in space to solve the translation matrix.

For Demo 1, the known distance we are looking for here is the wheelbase of this red hatchback Focus.

Then take the projection of the center axis of the Fox front wheel on the ground as the origin to construct the small hole imaging model.

Then if we ask to solve the spatial distance corresponding to any distance in the image, find the corresponding pixel and bring it in.

412a0670bc323061f40c9bbb538b9b4.jpg 

The known distance we selected for Demo2 is the front and rear wheelbase of this Cadillac XTS.

a7f932e7e598e06c20893656e4fee9b.jpg 

Demo3 selected this pedestrian crossing trailer.

65cd2c5ef4072e499aaf06207593b8a.png 

For the following videos, we first use the SFM algorithm to obtain the pose relationship of the camera during the movement.

 

79bbfed95bdf46d6c20640c5e6fd0c5.jpg 

Then, in order to obtain the true pose of the camera that took the image, select the S-curve in a driving school training field that appeared in the first few frames as a true value distance, and then use the vanishing point and this true distance to solve the frame of the image. The rotation matrix and translation matrix in the real scene.

1.png 

Finally, according to the absolute pose of this frame, the pose information of other cameras is reversed, and the distance information needed in the space is solved.

The manor issue is the same as above:

For the white car speed problem, we use the two-dimensional code posted on the shared car to transform the car image to a position parallel to the camera.


Use feature point method for image stitching and speed calculation

wps17.png

Use the rectified pictures for stitching and combine the dimensions of the real vehicle to get the transformation ratio difference from the image coordinate system to the real coordinate system.

 

 



Panlong Gu
Panlong Gu
Postgraduate Student of Control Engineering

My research interests include mobile robotics, Visual SLAM, 3D Target Detection and Tracking, Fusion of SLAM and target detection

Related