CN114910076B - Outdoor camera positioning method and device based on GPS and IMU information - Google Patents
Outdoor camera positioning method and device based on GPS and IMU information Download PDFInfo
- Publication number
- CN114910076B CN114910076B CN202210554830.3A CN202210554830A CN114910076B CN 114910076 B CN114910076 B CN 114910076B CN 202210554830 A CN202210554830 A CN 202210554830A CN 114910076 B CN114910076 B CN 114910076B
- Authority
- CN
- China
- Prior art keywords
- checkerboard
- camera
- calibration plate
- gps
- coordinate system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 239000011159 matrix material Substances 0.000 claims abstract description 77
- 238000006243 chemical reaction Methods 0.000 claims abstract description 35
- 238000012216 screening Methods 0.000 claims abstract description 7
- 230000009466 transformation Effects 0.000 claims description 13
- 230000000007 visual effect Effects 0.000 claims description 12
- 238000012544 monitoring process Methods 0.000 claims description 8
- 230000001133 acceleration Effects 0.000 claims description 6
- 230000036544 posture Effects 0.000 claims description 6
- 238000012549 training Methods 0.000 claims description 6
- 238000013519 translation Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Studio Devices (AREA)
Abstract
The invention provides an outdoor camera positioning method and device based on GPS and IMU information, the method needs to provide a checkerboard calibration plate provided with a GPS device and an IMU device, the surface of the checkerboard calibration plate is provided with black and white lattices with consistent size, the method comprises the following steps: step S1, acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image; s2, calibrating the first checkerboard image by using a Zhang calibration method to obtain a calibrated camera internal reference matrix and a calibrated camera external reference matrix; and S3, calculating GPS position information of the camera according to the first checkerboard image and the GPS position information of the checkerboard by utilizing a coordinate conversion relation. By adopting the technical scheme of the invention, the accurate positioning of the remote or inaccessible camera can be realized, and the related positioning equipment has a simple structure and is easy to realize.
Description
Technical Field
The invention relates to the technical field of camera positioning, in particular to an outdoor camera positioning method and device based on GPS and IMU information.
Background
The camera is accurately positioned, so that accidents in a monitoring picture can be mastered in time, the target camera and the region position are accurately locked, and video monitoring management staff can conveniently and effectively process the accidents in time. The existing method for positioning the camera mainly scans the position of the camera in the SLAM mapping process, the problem of low accuracy exists in the positioning of the method, and the positioning requirement of the traditional SLAM mapping positioning method cannot be met for cameras with far distances or difficult positions to be close to each other.
Disclosure of Invention
The invention aims to solve the technical problem of providing an outdoor camera positioning method and device based on GPS and IMU information, and solves the problem that the existing camera cannot be accurately positioned in a long distance or inaccessible.
In a first aspect, the present invention provides a positioning method for an outdoor camera based on GPS and IMU information, where a checkerboard calibration plate provided with a GPS device and an IMU device is provided, and a black-and-white grid with a consistent size is provided on a surface of the checkerboard calibration plate, and the method includes:
step S1, acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image;
s2, calibrating the first checkerboard image by using a Zhang' S calibration method to obtain a calibrated camera internal reference matrix and an external reference matrix, wherein the external reference matrix is the coordinate transformation relation of the checkerboard relative to the camera;
and S3, calculating GPS position information of the camera according to the first checkerboard image and the GPS position information of the checkerboard by utilizing a coordinate conversion relation.
Furthermore, the GPS and the IMU devices on the checkerboard calibration plate are arranged at the central position of the checkerboard calibration plate, the GPS device is used for acquiring the position information of the checkerboard calibration plate, the IMU device is used for measuring the angular speed and the acceleration of the checkerboard calibration plate in a three-dimensional space, the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled.
Further, in the step S1, "obtaining the motion video of the checkerboard calibration plate by the camera" specifically includes:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
Further, the step S2 specifically includes:
step S21, establishing a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
step S22, setting an equation to be fitted as follows:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 Representing the extrinsic matrix of the camera.
S23, calibrating by using a camera calibration function in an OpenCV or Matlab calibration tool box, introducing various postures of a checkerboard calibration plate as samples into the calibration tool box, inputting the first checkerboard image size, the number of transverse and longitudinal grid points of the calibration plate and the grid length, and training to obtain values corresponding to all parameters, wherein the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 。
Further, the step S3 specifically includes:
step S31, according to the coordinate conversion relation from the coordinate system of the calibration plate to the coordinate system of the camera, namely, an external reference matrix, the known coordinates of each corner point under the coordinate system of the calibration plate are in one-to-one correspondence with the coordinates of the corner point under the coordinate system of the camera;
s32, obtaining GPS position information of the camera by utilizing GPS position information corresponding to the angular points and a coordinate conversion relation, namely an external reference matrix;
and S33, obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras.
In a second aspect, the present invention provides an outdoor camera positioning device based on GPS and IMU information, where a checkerboard calibration plate provided with a GPS device and an IMU device is provided, and a black-and-white grid with a consistent size is provided on a surface of the checkerboard calibration plate, where the device includes:
the data acquisition module is used for acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image;
the conversion relation calculation module is used for calibrating the first checkerboard image by using a Zhang calibration method to obtain a calibrated camera internal reference matrix and calibrated camera external reference matrix; and
and the camera position calculation module is used for calculating GPS position information of the camera according to the first checkerboard image and the checkerboard GPS position information by utilizing a coordinate conversion relation.
Furthermore, the GPS and the IMU devices on the checkerboard calibration plate are arranged at the central position of the checkerboard calibration plate, the GPS device is used for acquiring the position information of the checkerboard calibration plate, the IMU device is used for measuring the angular speed and the acceleration of the checkerboard calibration plate in a three-dimensional space, the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled.
Further, in the data acquisition module, the step of acquiring the checkerboard calibration plate motion video through the camera is specifically:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
Further, the conversion relation calculating module specifically includes:
build up of known checkerboard calibration platesCheckerboard calibration plate coordinate system (X) b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
the equation to be fitted is set as:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 An extrinsic matrix representing a camera;
calibrating by using a camera calibration function in an OpenCV or Matlab calibration tool box, introducing various postures of a checkerboard calibration plate as samples into the calibration tool box, inputting the first checkerboard image size, the number of transverse and longitudinal grid points of the calibration plate and the length of the grid, and training to obtain values corresponding to all parameters, wherein the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 。
Further, the camera position calculating module specifically includes:
according to the coordinate conversion relation from the calibration plate coordinate system to the camera coordinate system, namely the external reference matrix, the known coordinates of each corner point under the calibration plate coordinate system are in one-to-one correspondence with the coordinates of the corner points under the camera coordinate system;
then, the GPS position information of the camera is obtained by utilizing the GPS position information corresponding to the angular points and the coordinate conversion relation, namely the external parameter matrix;
and obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras.
The one or more technical schemes provided by the invention have at least the following technical effects or advantages:
combining the checkerboard, GPS and IMU information, calibrating an outdoor remote or inaccessible camera by using the checkerboard to obtain a coordinate conversion relation from a calibration plate coordinate system to a camera coordinate system, and accurately positioning the calibration plate by using the GPS and IMU information, so that the camera can be accurately positioned; the device adopted by the invention has the advantages of simple structure, easy realization, high positioning precision and easy operation of the positioning method.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
FIG. 1 is a flow chart of an outdoor camera positioning method based on GPS and IMU information;
FIG. 2 is a schematic diagram of an outdoor camera positioning device based on GPS and IMU information;
FIG. 3 is a schematic diagram of the structure of the checkerboard calibration plate of the present invention.
Detailed Description
As shown in fig. 1 and fig. 3, the present invention provides an outdoor camera positioning method based on GPS and IMU information, which needs to provide a checkerboard calibration board provided with a GPS device and an IMU device, wherein the surface of the checkerboard calibration board is provided with black and white lattices with consistent dimensions, and the method comprises:
step S1, acquiring checkerboard calibration plate motion videos through a camera, extracting and screening checkerboard images with different positions and directions from the videos to serve as first checkerboard images, wherein the number of acquired images is about 10-20;
s2, calibrating the first checkerboard image by using a Zhang' S calibration method to obtain a calibrated camera internal reference matrix and an external reference matrix, wherein the external reference matrix is the coordinate conversion relation of the checkerboard relative to the camera;
and S3, calculating GPS position information of the camera according to the first checkerboard image and the GPS position information of the checkerboard by utilizing a coordinate conversion relation.
Preferably, the GPS and IMU devices on the checkerboard calibration plate are both disposed at the central position of the checkerboard calibration plate, the GPS device is used to obtain position information of the checkerboard calibration plate, the IMU device is used to measure angular velocity and acceleration of the checkerboard calibration plate in three-dimensional space, and thus the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled.
Preferably, in the step S1, "obtaining the motion video of the checkerboard calibration plate through the camera" specifically includes:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
Preferably, the step S2 specifically includes:
step S21, establishing a known checkerboard calibration plateCheckerboard calibration plate coordinate system (X) b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
step S22, setting an equation to be fitted as follows:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 Representing the extrinsic matrix of the camera.
S23, calibrating by using a camera calibration function in an OpenCV or Matlab calibration tool box, introducing various postures of a checkerboard calibration plate as samples into the calibration tool box, inputting the first checkerboard image size, the number of transverse and longitudinal grid points of the calibration plate and the grid length, and training to obtain values corresponding to all parameters, wherein the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 。
Preferably, the step S3 specifically includes:
step S31, according to the coordinate conversion relation from the coordinate system of the calibration plate to the coordinate system of the camera, namely, an external reference matrix, the known coordinates of each corner point under the coordinate system of the calibration plate are in one-to-one correspondence with the coordinates of the corner point under the coordinate system of the camera;
step S32, reusing GPS position information (X) corresponding to the corner point p ,Y p ,Z p ) And coordinate conversion relation, i.e. external reference matrix M 2 GPS position information (X) of the camera is obtained q ,Y q ,Z q );
And S33, obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras.
As shown in fig. 2 and 3, the present invention provides an outdoor camera positioning device based on GPS and IMU information, which needs to provide a checkerboard calibration plate provided with a GPS device and an IMU device, where the surface of the checkerboard calibration plate is provided with black and white lattices with consistent dimensions, and the device includes:
the data acquisition module is used for acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image; the number of the acquired images is about 10-20;
the conversion relation calculation module is used for calibrating the first checkerboard image by using a Zhang calibration method to obtain a calibrated camera internal reference matrix and a calibrated external reference matrix, wherein the external reference matrix is the coordinate conversion relation of the checkerboard relative to the camera; and
and the camera position calculation module is used for calculating GPS position information of the camera according to the first checkerboard image and the checkerboard GPS position information by utilizing a coordinate conversion relation.
Furthermore, the GPS and the IMU devices on the checkerboard calibration plate are arranged at the central position of the checkerboard calibration plate, the GPS device is used for acquiring the position information of the checkerboard calibration plate, the IMU device is used for measuring the angular speed and the acceleration of the checkerboard calibration plate in a three-dimensional space, the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled.
Preferably, in the data acquisition module, "acquiring the checkerboard calibration plate motion video through the camera" specifically includes:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
Preferably, the conversion relation calculating module specifically includes:
for the known checkerboard calibration plate, a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
the equation to be fitted is set as:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 Representing the extrinsic matrix of the camera.
Calibrating by using a camera calibration function in an OpenCV or Matlab calibration tool box, introducing various postures of a checkerboard calibration plate as samples into the calibration tool box, inputting the first checkerboard image size, the number of transverse and longitudinal grid points of the calibration plate and the length of the grid, and training to obtain values corresponding to all parameters, wherein the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 。
Preferably, the camera position calculating module specifically includes:
according to the coordinate conversion relation from the calibration plate coordinate system to the camera coordinate system, namely the external reference matrix, the known coordinates of each corner point under the calibration plate coordinate system are in one-to-one correspondence with the coordinates of the corner points under the camera coordinate system;
reuse of GPS position information (X) corresponding to corner points p ,Y p ,Z p ) And coordinate conversion relation, i.e. external reference matrix M 2 GPS position information (X) of the camera is obtained q ,Y q ,Z q );
And obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras.
The one or more technical schemes provided by the invention have at least the following technical effects or advantages: according to the invention, the checkerboard, the GPS and the IMU information are combined, the outdoor remote or inaccessible camera is calibrated by using the checkerboard, so that the coordinate conversion relation from the coordinate system of the calibration board to the coordinate system of the camera is obtained, and the GPS and the IMU information are utilized to accurately position the calibration board, so that the accurate positioning of the camera can be realized; the device adopted by the invention has the advantages of simple structure, easy realization, high positioning precision and easy operation of the positioning method.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.
Claims (4)
1. An outdoor camera positioning method based on GPS and IMU information is characterized in that: the method comprises the steps of providing a checkerboard calibration plate provided with a GPS device and an IMU device, wherein black and white lattices with consistent sizes are arranged on the surface of the checkerboard calibration plate, and the method comprises the following steps:
step S1, acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image;
s2, calibrating the first checkerboard image by using a Zhang calibration method to obtain a calibrated camera internal reference matrix and a calibrated camera external reference matrix;
s3, calculating GPS position information of the camera according to the first checkerboard image and the GPS position information of the checkerboard by utilizing a coordinate conversion relation;
the step S2 specifically includes:
step S21, establishing a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
step S22, setting an equation to be fitted as follows:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 An extrinsic matrix representing a camera;
step S23 of usingThe camera calibration function in the OpenCV or Matlab calibration tool box is calibrated, various postures of the checkerboard calibration plate are used as samples to be led into the calibration tool box, the first checkerboard image size, the number of grid points of the transverse and longitudinal directions of the calibration plate and the length of the grid are input, the values corresponding to all parameters are obtained through training, and the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 ;
The step S3 specifically includes:
step S31, according to the coordinate conversion relation from the coordinate system of the calibration plate to the coordinate system of the camera, namely, an external reference matrix, the known coordinates of each corner point under the coordinate system of the calibration plate are in one-to-one correspondence with the coordinates of the corner point under the coordinate system of the camera;
s32, obtaining GPS position information of the camera by utilizing GPS position information corresponding to the angular points and a coordinate conversion relation, namely an external reference matrix;
step S33, obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras;
the GPS device and the IMU device on the checkerboard calibration plate are arranged at the central position of the checkerboard calibration plate, the GPS device is used for acquiring the position information of the checkerboard calibration plate, the IMU device is used for measuring the angular speed and the acceleration of the checkerboard calibration plate in a three-dimensional space, the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled.
2. The method according to claim 1, characterized in that: in the step S1, the step of acquiring the checkerboard calibration plate motion video by the camera is specifically:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
3. An outdoor camera positioner based on GPS and IMU information, its characterized in that: the method comprises the steps that a checkerboard calibration plate provided with a GPS device and an IMU device is provided, black and white lattices with consistent sizes are arranged on the surface of the checkerboard calibration plate, and the device comprises:
the data acquisition module is used for acquiring a checkerboard calibration plate motion video through a camera, and extracting and screening checkerboard images with different positions and directions from the video to serve as a first checkerboard image;
the conversion relation calculation module is used for calibrating the first checkerboard image by using a Zhang calibration method to obtain a calibrated camera internal reference matrix and calibrated camera external reference matrix; and
the camera position calculating module is used for calculating GPS position information of the camera according to the first checkerboard image and the checkerboard GPS position information by utilizing a coordinate conversion relation;
the GPS device and the IMU device on the checkerboard calibration plate are arranged at the central position of the checkerboard calibration plate, the position information of the checkerboard calibration plate is obtained through the GPS device, the angular speed and the acceleration of the checkerboard calibration plate in a three-dimensional space are measured through the IMU device, the pose of the checkerboard calibration plate is obtained, the surface of the checkerboard calibration plate is flat, and the checkerboard on the checkerboard calibration plate is right-angled;
the conversion relation calculation module specifically comprises:
for the known checkerboard calibration plate, a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) According to the Zhang's calibration method, a calibration operation is performed on a plurality of Zhang Diyi checkerboard images by using a calibration program in a computer, and a checkerboard calibration plate coordinate system (X b ,Y b ,Z b ) Conversion to camera coordinate system (X C ,Y C ,Z C ) And solving a transformation matrix, wherein the linearity of the transformation matrix is expressed as follows:
wherein R is b2C Calibrating the rotation matrix of the plate to the camera for the checkerboard, T b2C Calibrating a translation matrix from the board to the camera for the checkerboard;
the equation to be fitted is set as:
wherein, (u, v) is the pixel label of the corner shot on the camera, (X) b ,Y b ,Z b ) For calibrating the coordinates of the known corresponding corner points in the coordinate system of the plate, M 1 An internal reference matrix representing a camera, M 2 An extrinsic matrix representing a camera;
calibrating by using a camera calibration function in an OpenCV or Matlab calibration tool box, introducing various postures of a checkerboard calibration plate as samples into the calibration tool box, inputting the first checkerboard image size, the number of transverse and longitudinal grid points of the calibration plate and the length of the grid, and training to obtain values corresponding to all parameters, wherein the parameters comprise f x ,f y ,u 0 ,v 0 R, t, and further obtaining a calibrated camera internal reference matrix M 1 Sum-outer matrix M 2 ;
The camera position calculation module specifically comprises:
according to the coordinate conversion relation from the calibration plate coordinate system to the camera coordinate system, namely the external reference matrix, the known coordinates of each corner point under the calibration plate coordinate system are in one-to-one correspondence with the coordinates of the corner points under the camera coordinate system;
then, the GPS position information of the camera is obtained by utilizing the GPS position information corresponding to the angular points and the coordinate conversion relation, namely the external parameter matrix;
and obtaining accurate GPS position information of the cameras by adopting a principle of taking the median for the obtained GPS position information of all the cameras.
4. A device according to claim 3, characterized in that: the data acquisition module is used for acquiring the checkerboard calibration plate motion video through a camera, and specifically comprises the following steps:
the method comprises the steps that a checkerboard calibration plate is horizontally placed on the top of an automobile, the automobile moves in a visual field range below a video monitoring camera, the camera is ensured to shoot the checkerboard calibration plate on the surface of a trolley, and video of the movement process of the checkerboard calibration plate is recorded by the camera;
or the checkerboard calibration plate is placed below the visual field of the camera by hand, different angles of the checkerboard calibration plate are changed to move stably, and the video of the movement process of the checkerboard calibration plate is recorded by the camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210554830.3A CN114910076B (en) | 2022-05-20 | 2022-05-20 | Outdoor camera positioning method and device based on GPS and IMU information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210554830.3A CN114910076B (en) | 2022-05-20 | 2022-05-20 | Outdoor camera positioning method and device based on GPS and IMU information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114910076A CN114910076A (en) | 2022-08-16 |
CN114910076B true CN114910076B (en) | 2024-04-05 |
Family
ID=82767926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210554830.3A Active CN114910076B (en) | 2022-05-20 | 2022-05-20 | Outdoor camera positioning method and device based on GPS and IMU information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114910076B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104501779A (en) * | 2015-01-09 | 2015-04-08 | 中国人民解放军63961部队 | High-accuracy target positioning method of unmanned plane on basis of multi-station measurement |
CN110689579A (en) * | 2019-10-18 | 2020-01-14 | 华中科技大学 | Rapid monocular vision pose measurement method and measurement system based on cooperative target |
WO2021139176A1 (en) * | 2020-07-30 | 2021-07-15 | 平安科技(深圳)有限公司 | Pedestrian trajectory tracking method and apparatus based on binocular camera calibration, computer device, and storage medium |
CN113409399A (en) * | 2021-06-10 | 2021-09-17 | 武汉库柏特科技有限公司 | Dual-camera combined calibration method, system and device |
CN113776556A (en) * | 2021-05-30 | 2021-12-10 | 南京理工大学 | Data fusion-based gyroscope and camera relative position matrix calibration method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9441974B2 (en) * | 2013-03-15 | 2016-09-13 | Novatel Inc. | System and method for calculating lever arm values photogrammetrically |
-
2022
- 2022-05-20 CN CN202210554830.3A patent/CN114910076B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104501779A (en) * | 2015-01-09 | 2015-04-08 | 中国人民解放军63961部队 | High-accuracy target positioning method of unmanned plane on basis of multi-station measurement |
CN110689579A (en) * | 2019-10-18 | 2020-01-14 | 华中科技大学 | Rapid monocular vision pose measurement method and measurement system based on cooperative target |
WO2021139176A1 (en) * | 2020-07-30 | 2021-07-15 | 平安科技(深圳)有限公司 | Pedestrian trajectory tracking method and apparatus based on binocular camera calibration, computer device, and storage medium |
CN113776556A (en) * | 2021-05-30 | 2021-12-10 | 南京理工大学 | Data fusion-based gyroscope and camera relative position matrix calibration method |
CN113409399A (en) * | 2021-06-10 | 2021-09-17 | 武汉库柏特科技有限公司 | Dual-camera combined calibration method, system and device |
Non-Patent Citations (4)
Title |
---|
Accurate Magnified Near-Field Measurement of Optical Waveguides Using a Calibrated CCD Camera;Irshaad Fatadin;《Journal of Lightwave Technology》;20061130;第24卷(第12期);第5067-5074页 * |
基于Halcon标定靶的双目相机高精度标定方法;黄建等;《计算机与数字工程》;20220430;第50卷(第4期);第762-766页 * |
基于Kinect室内四旋翼无人机的定位跟踪与姿态估计;周克旻;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20200215(第02期);第C031-696页 * |
基于视觉辅助的室内惯性导航方法研究;瞿敏;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190515(第05期);第I136-680页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114910076A (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111473739B (en) | Video monitoring-based surrounding rock deformation real-time monitoring method for tunnel collapse area | |
CN105716542B (en) | A kind of three-dimensional data joining method based on flexible characteristic point | |
CN111127568B (en) | Camera pose calibration method based on spatial point location information | |
CN100458359C (en) | Small-displacement measuring system in long-distance plane | |
CN110969663A (en) | Static calibration method for external parameters of camera | |
CN112629431B (en) | Civil structure deformation monitoring method and related equipment | |
CN108344401B (en) | Positioning method, positioning device and computer readable storage medium | |
CN113240747B (en) | Outdoor structure vibration displacement automatic monitoring method based on computer vision | |
CN101201241A (en) | Method and system for measuring movement of ship model | |
CN112132908A (en) | Camera external parameter calibration method and device based on intelligent detection technology | |
CN114283203A (en) | Calibration method and system of multi-camera system | |
CN105374067A (en) | Three-dimensional reconstruction method based on PAL cameras and reconstruction system thereof | |
CN115588040A (en) | System and method for counting and positioning coordinates based on full-view imaging points | |
CN111986267A (en) | Coordinate system calibration method of multi-camera vision system | |
CN115854866A (en) | Optical target three-dimensional measurement system and method, electronic equipment and storage medium | |
WO2022126339A1 (en) | Method for monitoring deformation of civil structure, and related device | |
CN114494449A (en) | Visual calibration and alignment laminating method for special-shaped product lamination | |
CN112257536B (en) | Space and object three-dimensional information acquisition and matching equipment and method | |
CN114910076B (en) | Outdoor camera positioning method and device based on GPS and IMU information | |
CN109636856A (en) | Object 6 DOF degree posture information union measuring method based on HOG Fusion Features operator | |
CN103192399A (en) | Micro-vision hand-eye calibration method based on target motion | |
CN116309851B (en) | Position and orientation calibration method for intelligent park monitoring camera | |
CN107274449B (en) | Space positioning system and method for object by optical photo | |
CN108592789A (en) | A kind of steel construction factory pre-assembly method based on BIM and machine vision technique | |
CN112884832B (en) | Intelligent trolley track prediction method based on multi-view vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |