[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2021138856A1 - Camera control method, device, and computer readable storage medium - Google Patents

Camera control method, device, and computer readable storage medium Download PDF

Info

Publication number
WO2021138856A1
WO2021138856A1 PCT/CN2020/071026 CN2020071026W WO2021138856A1 WO 2021138856 A1 WO2021138856 A1 WO 2021138856A1 CN 2020071026 W CN2020071026 W CN 2020071026W WO 2021138856 A1 WO2021138856 A1 WO 2021138856A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
target
current
target camera
frame
Prior art date
Application number
PCT/CN2020/071026
Other languages
French (fr)
Chinese (zh)
Inventor
邹文
肖宓
应礼剑
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080005678.2A priority Critical patent/CN112956182A/en
Priority to PCT/CN2020/071026 priority patent/WO2021138856A1/en
Publication of WO2021138856A1 publication Critical patent/WO2021138856A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • H04N23/662Transmitting camera control signals through networks, e.g. control via the Internet by using master/slave camera arrangements for affecting the control of camera image capture, e.g. placing the camera in a desirable condition to capture a desired image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/76Addressed sensors, e.g. MOS or CMOS sensors
    • H04N25/77Pixel circuitry, e.g. memories, A/D converters, pixel amplifiers, shared circuits or shared components

Definitions

  • This application relates to the field of device technology, and in particular to a camera control method, device, and computer-readable storage medium.
  • a multi-camera system composed of multiple cameras, for example, multi-camera mobile phones, multi-camera surveillance cameras, etc.
  • a user finds an object of interest in a camera screen, he needs to quickly switch to another camera for the object
  • observation and shooting for example, when you find an object of interest on a wide-angle camera, you need to switch to a telephoto camera or a laser camera if you want to see the details of the object.
  • the embodiments of the present application provide a camera control method, device, and computer-readable storage medium, which can improve the convenience of coordinated control of multiple cameras and improve the accuracy of controlling the target object at the center of the screen.
  • an embodiment of the present application provides a camera control method, including:
  • the switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position.
  • an embodiment of the present application also provides a camera control method, including:
  • the deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.
  • an embodiment of the present application also provides a camera control method, including:
  • the target camera is controlled to deflect according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.
  • an embodiment of the present application also provides a multi-camera system, and the multi-camera system includes:
  • Memory used to store computer programs
  • the processor is used to call the computer program in the memory for executing:
  • the switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position.
  • an embodiment of the present application also provides a pan-tilt camera, and the pan-tilt camera includes:
  • Memory used to store computer programs
  • the processor is used to call the computer program in the memory for executing:
  • the deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.
  • an embodiment of the present application also provides a movable platform, including:
  • Memory used to store computer programs
  • the processor is configured to call a computer program in the memory to execute any camera control method provided in the embodiments of the present application.
  • the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any of the provided by the embodiments of the present application.
  • a camera control method A camera control method.
  • the embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera, and determine the target position of the target object in the current camera frame, and then determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position, so as Subsequently, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switch.
  • the solution determines the switching angle of the target camera through the pixel mapping relationship between different cameras and the target position, so that the target object can be located in the center of the target camera screen after switching based on the switching angle, which improves the convenience and efficiency of coordinated control of multiple cameras , And improve the accuracy of controlling the target object in the center of the target camera frame, that is, improving the accuracy and convenience of controlling the camera.
  • FIG. 1 is a schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application
  • FIG. 2 is another schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application
  • FIG. 3 is another schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the interaction between the aircraft, the remote control device, and the display device provided by an embodiment of the present application;
  • FIG. 5 is a schematic flowchart of a camera control method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application
  • FIG. 7 is another schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application.
  • FIG. 8 is another schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of determining the offset of the target object to the center of the screen provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of determining a switching angle based on an offset provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of controlling a target camera to switch according to a switching angle according to an embodiment of the present application
  • FIG. 12 is another schematic flowchart of a camera control method provided by an embodiment of the present application.
  • FIG. 13 is another schematic flowchart of a camera control method provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a multi-camera system provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a movable platform provided by an embodiment of the present application.
  • the embodiments of the present application provide a camera control method, device, and computer-readable storage medium, which are used to perform coordinated control of multiple cameras in a multi-camera system, and improve the accuracy and convenience of camera control.
  • the device may include a multi-camera system, a pan-tilt camera, a removable platform, and a computer-readable storage medium, etc., which can be used to obtain the pixel mapping relationship between the current camera and the target camera, and to obtain the target camera according to the pixel mapping relationship
  • the center of the screen is the mapped position in the current camera screen, and then the target position of the target object in the current camera screen can be determined, and the switching angle of the target camera can be determined according to the mapped position and target position.
  • the target camera can be controlled to switch according to the switching angle , So that the target object is located in the center of the screen of the target camera after switching, which improves the accuracy and convenience of camera control.
  • the multi-camera system can include multiple cameras, and the type of each camera, the number of cameras, the setting position of the camera, the relative geometric position relationship between each camera, etc. can be flexibly set according to actual needs, for example, a multi-camera system It can include ultra-wide-angle cameras, wide-angle cameras, telephoto cameras (ie zoom cameras), infrared cameras, lidar cameras, far-infrared cameras, ultraviolet cameras, laser ranging cameras, and TOF (Time of Flight) depth Camera (referred to as TOF depth camera) and so on.
  • TOF depth camera Time of Flight
  • a pan-tilt camera may include multiple cameras and one or more pan-tilts, etc.
  • One pan-tilt may be used to carry multiple cameras, or multiple pan-tilts may be used to carry multiple cameras.
  • the pan/tilt camera may include a telephoto camera 101a, a wide-angle camera 101b, an infrared camera 101c, and a lidar camera 101d.
  • the pan-tilt camera may include a lidar camera 102a, a laser ranging camera 102b, and a TOF depth camera 102c.
  • FIG. 1 the pan/tilt camera may include a telephoto camera 101a, a wide-angle camera 101b, an infrared camera 101c, and a lidar camera 101d.
  • the pan-tilt camera may include a lidar camera 102a, a laser ranging camera 102b, and a TOF depth camera 102c.
  • the pan/tilt camera may include a lidar camera 103a, a wide-angle camera 103b, and a telephoto camera 103c.
  • the gimbal of the gimbal camera can be a three-axis gimbal or a two-axis gimbal, etc., for example, the gimbal can rotate in the pitch direction (that is, rotate around the Y axis), and rotate in the yaw direction (that is, Rotate around the X axis), and rotate in the roll direction (ie, rotate around the Z axis); or, the pan/tilt head can rotate in the pitch direction and in the yaw direction.
  • the movable platform may include one or more pan-tilts and multiple cameras, etc., one or more pan-tilts may be installed on the body of the movable platform, and the multiple cameras may be mounted on the one or more pan-tilts
  • the type of movable platform can be flexibly set according to actual needs.
  • the movable platform may be a mobile terminal, an aircraft, a robot or an unmanned vehicle, etc.
  • the aircraft may include a UAV, which may include a rotary-wing UAV (such as a quadrotor UAV, a hexarotor UAV). Aircraft, or eight-rotor drones, etc.), fixed-wing drones, or a combination of rotary-wing and fixed-wing drones, which are not limited here.
  • the aircraft is equipped with a multi-camera system containing multiple cameras.
  • the aircraft is also connected with remote control devices and display devices.
  • the remote control devices may include one or more A remote controller is used to control the flight of the aircraft or perform corresponding actions, and obtain corresponding motion information from the aircraft.
  • the motion information can include flight direction, flight attitude, flight altitude, flight speed and position information, etc., and will obtain
  • the exercise information is sent to the display device, and the display device is used for analysis and display.
  • the remote control device can also be used to control one or more of the multiple cameras on the aircraft to perform operations such as shooting or measuring.
  • the display device may include a notebook computer, a tablet computer, or a mobile phone, etc., and may be used to receive images (ie, pictures) sent by one or more of the multiple cameras on the aircraft, and display the images on the display screen.
  • the display device may also receive a control instruction input by the user, and perform corresponding control on multiple cameras on the aircraft based on the control instruction.
  • the display device can receive shooting instructions or ranging instructions, and send the shooting instructions or ranging instructions to the aircraft.
  • the aircraft can control the target camera to shoot the captured images according to the shooting instructions, or control the target camera to capture images according to the ranging instructions.
  • the target object performs ranging and so on.
  • FIGS. 1 to 4 do not constitute a limitation on the application scenario of the camera control method.
  • FIG. 5 is a schematic flowchart of a camera control method provided by an embodiment of the present application.
  • the camera control method can be applied to a multi-camera system capable of controlling the shooting direction of the camera, especially the shooting direction of the target camera, for coordinated control of multiple cameras, so as to improve the accuracy, efficiency and convenience of camera control.
  • the camera control method may include steps S101 to S103, etc., which may be specifically as follows:
  • S101 Acquire a pixel mapping relationship between the current camera and the target camera in the multi-camera system.
  • the multi-camera system can be a multi-camera system containing multiple different types of cameras, and the pixel mapping relationship can be between two or more different cameras (for example, between an infrared camera and a wide-angle camera, between a wide-angle camera and a telephoto camera, Between infrared camera and telephoto camera, etc.) the corresponding relationship between image pixels is collected.
  • This pixel mapping relationship can be called a homography matrix or conversion relationship between different camera pixels.
  • the conversion relationship can include a rotation relationship and a translation relationship. Etc., the pixel mapping relationship can be represented by a mapping matrix.
  • the current camera can be used to capture the current frame to find the target object from the current frame and switch the target object to The center image of one or more target cameras is displayed.
  • the target camera can collect the target based on the user's selection of the target object in the current camera, or based on the determined target object type (such as license plate, person, dog, or flower, etc.)
  • the object is in the center of the picture.
  • the target object can be flexibly selected or set according to actual needs, such as any object such as people, animals, plants, vehicles, buildings, or stars, or even non-solid, non-three-dimensional targets, such as flames, clouds, or water bodies, etc.
  • a wide-angle camera can be selected as the current camera, and a telephoto camera can be selected as the target camera; or, a wide-angle camera can be selected as the current camera, and a laser rangefinder camera can be selected as the target camera; and so on.
  • the pixel mapping relationship between the current camera and the target camera can be obtained.
  • the camera geometric parameter calibration method can be used to calibrate the internal and external parameters of the camera geometry to obtain the conversion relationship between each camera.
  • the pixel mapping relationship between the current camera and the target camera can be obtained.
  • obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix.
  • the internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.
  • the pixel mapping relationship between the current camera and the target camera can be obtained through the internal and external parameter matrices (ie, the internal parameter matrix and the external parameter matrix) of the current camera and the target camera.
  • the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera can be obtained.
  • obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.
  • the internal and external parameter matrix can be constructed based on the position relationship between the current camera and the target camera, and the internal and external parameters (ie, internal and external parameters).
  • the position relationship may be the geometric position relationship between the current camera and the target camera in the multi-camera system.
  • the relative positions of the current camera and the target camera in the multi-camera system are fixed, which can reduce the complexity of the multi-camera system and reduce the computing resource consumption of the multi-camera system; in some embodiments, the current camera and the target camera
  • the relative position of the camera in the multi-camera system is variable. For example, after the target object is determined in the current camera, the current camera and the target camera move separately to capture images with the target object in the center. This method can ensure a better user experience.
  • the position relationship between the current camera and the target camera in the multi-camera system can be obtained.
  • the position relationship between the current camera and the target camera in the multi-camera system recorded when the current camera and the target camera are installed can be obtained from a database.
  • acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; and determining the location of the feature points through the current camera and the target camera respectively; According to the position of the feature point, the position relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect the feature points.
  • the position relationship between the current camera and the target camera can be determined through feature point calibration.
  • a calibration image can be obtained, and the calibration image can be flexibly set according to actual needs.
  • the calibration image can be an image of a collected calibration plate, and the calibration image can contain feature points.
  • the location, size, and type of the feature points can be It can be set flexibly according to actual needs.
  • the feature point can be the vertex of the grid in the calibration image or the contour of the object, and the feature point can be extracted from the calibration image.
  • the location of the feature point is determined by the current camera and the target camera respectively, and the position relationship between the current camera and the target camera is established in the multi-camera system according to the location of the feature point, so that both the current camera and the target camera can collect the feature points .
  • the internal parameters of the current camera and the internal and external parameters of the target camera can be obtained according to the positional relationship.
  • the internal parameters can include the focal length (fx, fy), the optical center position (cx, cy), and the distortion parameter distortion_coeff, etc., so as to achieve accuracy through the geometric parameter calibration method (for example, a variant method based on Zhang Zhengyou’s checkerboard calibration algorithm) Get the internal parameters of the current camera, the internal parameters and external parameters of the target camera, etc.
  • the internal parameter matrix of the current camera is:
  • K wide represents the internal parameter matrix of the wide -angle camera
  • fx wide represents the focal length of the wide-angle camera in the X-axis direction
  • fy wide represents the focal length of the wide-angle camera in the Y-axis direction
  • cx wide represents the optical center of the wide-angle camera in the X-axis direction.
  • Position, cy wide represents the position of the optical center of the wide-angle camera in the Y-axis direction.
  • the internal parameter matrix of the zoom camera at 1x focal length is:
  • the internal parameter matrix of the infrared camera is:
  • Kir represents the internal parameter matrix of the infrared camera
  • fx ir represents the focal length of the infrared camera in the X-axis direction
  • fy ir represents the focal length of the infrared camera in the Y-axis direction
  • cx ir represents the optical center of the infrared camera in the X-axis direction
  • cy ir represents the position of the optical center of the infrared camera in the Y-axis direction.
  • the external parameter matrix of the target camera can be constructed according to the external parameters of the target camera, and the specific value of the external parameter can be flexibly set according to actual needs.
  • the current camera can be calculated according to the external parameters of the current camera and the external parameters of the target camera.
  • the relationship between the rotation R and the translation T between the camera and the target camera, and the external parameter matrix of the target camera is constructed according to the relationship between the rotation R and the translation T.
  • R represents the conversion from the current camera coordinate system to the target camera coordinate system.
  • R and T can be both It is a 3*3 matrix or other types of matrices.
  • the external parameter matrices of the wide-angle camera and the zoom camera at 1x focal length are: R fpv_zoom and T fpv_zoom ;
  • the target camera is an infrared Camera
  • the external parameter matrix between the wide-angle camera and the infrared camera is: R fpv_ir and T fpv_ir .
  • the external parameter matrix may include rotation angle parameters in three directions, or translation distance parameters in three directions; or a 3*3 matrix to represent the transformation in the rotation direction.
  • constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.
  • the target camera as a zoom camera as an example
  • the internal parameter matrix and external parameter matrix of can be obtained by equivalent conversion (equal conversion with magnification).
  • the internal and external parameters corresponding to the target camera under the preset multiple focal length can be obtained, and the preset multiple focal length can be flexibly set according to actual needs.
  • the preset multiple focal length can be 1x focal length.
  • the preset internal parameter matrix of the target camera at the preset focal length According to the internal parameters corresponding to the target camera at the preset focal length, construct the preset internal parameter matrix of the target camera at the preset focal length, and according to the external parameters corresponding to the target camera at the preset focal length, construct the target camera at the preset focal length.
  • the preset external parameter matrix under the focal length.
  • acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.
  • the zoom camera can zoom, and every time the focal length is changed, the change of the focal length will cause the internal parameters of the zoom camera to change, so the zoom camera can be obtained
  • the current actual focal length according to the corresponding relationship between the focal length and the magnification, determines the magnification corresponding to the actual focal length, and obtains the current magnification of the zoom camera.
  • the reference object can be an object in the picture collected by the target camera, and then the target can be detected by lidar or laser rangefinder.
  • the physical distance between the camera and the reference object that is, the actual distance, which can be referred to as the object distance for short
  • the current magnification of the target camera is automatically set according to the correspondence between the distance and the magnification, and the detected physical distance.
  • the physical distance between the target camera and the reference object can be set to infinity according to actual needs, or can be set flexibly by the user based on the application scenario.
  • the internal parameter matrix and the external parameter matrix of the target camera can be determined according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.
  • determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.
  • the width and height of the image currently collected by the target camera can be obtained, and the internal parameter matrix of the target camera can be determined according to the current magnification, preset internal parameter matrix, width and height of the target camera.
  • the target camera is a zoom camera
  • its magnification can be calculated, and then the current internal parameter matrix of the target camera can be calculated as follows:
  • ratio represents the magnification
  • W represents the width of the image currently captured by the target camera
  • H represents the height of the image currently captured by the target camera.
  • the conversion matrix between the current camera and the target camera can be determined according to the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera to obtain the current camera and the target camera
  • the pixel mapping relationship between For example, if the current camera is a wide-angle camera and the target camera is a zoom camera, the pixel mapping relationship Homography zoom_fpv from the center point on the zoom camera to the wide-angle camera is:
  • K wide represents the internal parameter matrix of the wide-angle camera
  • inv is the matrix inversion operation
  • R represents the external parameter matrix of other cameras
  • K represents the internal parameter matrix.
  • the multi-camera system includes other cameras in addition to the current camera and the target camera, the pixel mapping relationship between any two cameras can be obtained in the foregoing manner.
  • S102 Determine the target position of the target object in the current camera frame.
  • the target object can be a complete object, or a point, etc., for example, the target object can be a license plate, a vehicle, a person, a tree, or a dog, etc.
  • the target object can be flexibly set according to actual needs. The specific content is here There is no limit.
  • the method for determining the target object can be flexibly set according to actual needs. For example, it can receive a selection instruction input by the user to determine the target object, or automatically recognize the object in the current camera screen and select one of the objects as the target object; and so on.
  • determining the target position of the target object in the current camera frame may include: receiving a selection instruction input by the user in the frame captured by the current camera; and determining the target position of the target object in the current camera frame according to the selection instruction.
  • the screen captured by the current camera can be displayed on the display screen for the user to view.
  • the selection instruction input by the user can be received in the screen captured by the current camera. In order to determine the target position of the target object in the current camera frame according to the selection instruction.
  • the user's finger clicking or pressing the license plate on the vehicle can be received (that is, a selection instruction is generated), and the user's finger clicking or pressing operation can be detected at this time
  • the area where the license plate is located is detected and the objects in the area are detected, and the user selects the area where the license plate is located, and then the area where the license plate is located can be extracted as the target location of the target object.
  • a text input box can be displayed for the user to input the target object to be detected.
  • the "license plate” input by the user in the text input box (that is, a selection instruction is generated) can be received, and then based on the user input
  • the "license plate” confirms that the user selects the license plate.
  • the license plate in the picture can be recognized through the preset recognition model, and the area where the license plate is located in the picture is extracted as the target location of the target object.
  • the preset recognition model can be flexibly set according to actual needs.
  • the recognition model can be a target detection algorithm SSD or YOLO, and the recognition model can also be a convolutional neural network R-CNN or Faster R-CNN.
  • the preset recognition model is a trained recognition model. For example, multiple sample images containing different types of objects can be obtained, and the recognition model can be trained based on the multiple sample images to obtain the trained recognition model.
  • determining the target object in the current camera frame may include: extracting features of the current camera frame to obtain target feature information; identifying the target object in the current camera frame according to the target feature information, and determining the target position of the target object .
  • the target object can be automatically detected. For example, perform feature extraction on the current camera image to obtain target feature information.
  • the target feature information can be flexibly set according to actual needs.
  • the target feature information can be the feature information of the license plate or the feature information of a person, etc., according to the target feature information Can identify the target object in the current camera screen, and determine the target position of the target object.
  • the multi-camera system can automatically perform a screen inspection.
  • the current camera such as a wide-angle camera
  • detects a vehicle's illegal parking image it can automatically identify the violation in the screen.
  • the location of the license plate of the parked vehicle so that the license plate can be sent to the target camera (for example, a telephoto camera) for centered display in the future.
  • S103 Determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position.
  • the switching angle may include the switching angle in the yaw direction (that is, the switching angle in the X-axis direction), the switching angle in the pitch direction of the pitch direction (that is, the switching angle in the Y-axis direction), and the roll direction in the roll direction.
  • the switching angle ie, the switching angle in the Z-axis direction and so on.
  • the camera control method further includes: obtaining the mapped position of the center of the frame of the target camera in the current camera frame according to the pixel mapping relationship.
  • Determining the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position may include: determining the switching angle of the center point of the target camera according to the mapping position and the target position.
  • the switching angle of the target camera's center point can be determined according to the mapped position and target position.
  • the mapping position of the center of the target camera's frame in the current camera frame can be obtained.
  • the current camera is a wide-angle camera and the target camera is a zoom camera
  • the mapping position of the corresponding point of the zoom camera's frame center in the wide-angle camera frame is (dis_1 x , dis_1 y ), and the calculation method can be as follows:
  • Homography zoom_fpv represents the pixel mapping relationship between the zoom camera and the wide-angle camera, and ratio represents the magnification of the zoom camera. Indicates the position of the optical center of the zoom camera in the X-axis direction at 1x focal length, It represents the optical center position of the zoom camera in the Y-axis direction at 1x focal length, W represents the width of the image currently captured by the zoom camera, and H represents the height of the image currently captured by the zoom camera.
  • obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.
  • the mapping position can be determined according to the position deviation of the image center of different cameras. For example, according to the pixel mapping relationship between the current camera and the target camera, the image center of the target camera can be mapped to the current camera. The position deviation between the center of the screen of the target camera can then be used to determine the mapping position of the center of the target camera in the current camera screen based on the position deviation.
  • determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.
  • the corresponding position of the zoom camera's image center on the wide-angle camera that is, the mapping position
  • the corresponding position of the center on the telephoto camera, etc. to accurately calculate this corresponding position requires knowing the distance of the reference object relative to the target camera.
  • the reference object can be flexibly set according to actual needs.
  • the reference object can be collected by the target camera.
  • the distance between the center of the target camera and the reference object can be detected by lidar or laser rangefinder. In the simplified calculation, the distance can be assumed to be infinite, or the user can use it based on the application scenario. Flexible settings.
  • the distance between the center of the target camera and the reference object can be obtained according to the positional deviation Determine the mapping position of the target camera's frame center in the current camera frame.
  • determining the switching angle of the center point of the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the current camera screen according to the mapping position and the target position; and determining the target according to the offset. The switching angle of the camera center point.
  • the switching angle may be determined based on the offset of the target object to the center of the screen of the current camera. For example, as shown in Figure 9, according to the mapping position (dis_1x, dis_1y) of the target camera's frame center A in the current camera frame, and the target position B of the target object in the current camera frame, determine the frame of the target object to the current camera
  • the center offset (dis_x, dis_y), where the offset may include the offset dis_x in the X-axis direction and the offset dis_y in the Y-axis direction.
  • the calculation formula for the offset may be as follows:
  • dis_x represents the offset of the target object in the X-axis direction from the center of the current camera's screen
  • dis_y represents the offset of the target object in the Y-axis direction from the center of the current camera's screen
  • tar_point_x represents the target position B of the target object.
  • the pixel coordinate value in the X-axis direction, center_point_x represents the coordinate value of the screen center A in the X-axis direction
  • dis_1x represents the mapping position of the target camera's screen center in the X-axis direction in the current camera screen
  • UNIT_CELL_SIZE represents the size of a pixel (I.e.
  • tar_point_y represents the pixel coordinate value of the target position B of the target object in the Y-axis direction
  • center_point_y represents the coordinate value of the screen center A in the Y-axis direction
  • dis_1y indicates that the screen center of the target camera is in the current camera screen The mapping position in the Y-axis direction.
  • the offset includes a first offset and a second offset
  • the switching angle includes the first switching angle and the second switching angle
  • determining the switching angle of the center point of the target camera according to the offset may include: Determine the first switching angle of the center point of the target camera according to the first offset of the target object in the first direction to the center of the current camera's screen; according to the second offset of the target object in the second direction to the center of the current camera's screen The amount of shift determines the second switching angle of the center point of the target camera.
  • the first direction and the second direction can be flexibly set according to actual needs.
  • the first direction can be the direction on the X axis
  • the second direction can be the direction on the Y axis, which is determined in order to improve the switching angle.
  • the first offset is dis_x and the second offset is dis_y, that is, the target object is at X
  • the first offset in the axis direction from the center of the current camera's screen is dis_x
  • the second offset from the target object in the Y axis direction to the center of the current camera's screen is dis_y.
  • the first switching angle angle_x of the center point of the target camera (ie a_x in Figure 10) can be determined according to the first offset dis_x of the target object in the X-axis direction to the center of the screen of the current camera, and according to the target object in the Y-axis
  • the second offset dis_y in the direction to the center of the screen of the current camera determines the second switching angle angle_y of the center point of the target camera.
  • the calculation formula for the switching angle can be as follows:
  • angle_x atan(dis_x/current_focal_length)
  • angle_y atan(dis_y/current_focal_length)
  • current_focal_length (that is, c_f_l in FIG. 10) represents the focal length of the target camera, and atan represents the arctangent function.
  • angle_pitch represents the angle converted in degrees in the direction of the pitch axis
  • angle_yaw represents the angle converted in degrees in the direction of the yaw axis.
  • angle_pitch atan(((tar_point_x-1/2+dis_1x)*UNIT_CELL_SIZE)/current_focal_length)
  • angle_yaw atan(((tar_point_y-1/2+dis_1y)*UNIT_CELL_SIZE)/current_focal_length)
  • angle_pitch is the second switching angle angle_y
  • angle_yaw is the first switching angle angle_x.
  • the camera control method may further include: controlling the target camera to switch the center point according to the switching angle, so that the target object is located at the switched target.
  • the center of the camera's frame may further include: controlling the target camera to switch the center point according to the switching angle, so that the target object is located at the switched target. The center of the camera's frame.
  • the target camera After determining the switching angle of the center point of the target camera, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switching.
  • the selected target object is a license plate
  • the current camera is a wide-angle camera and the target camera is a telephoto camera
  • a car is displayed in the picture collected by the wide-angle camera.
  • the target camera includes a specific type of camera
  • other information of the target object can be correspondingly collected, calculated, or displayed, such as the distance of the target object relative to the target camera, or the temperature of the target object, or the height information of the target object.
  • controlling the target camera to switch the center point according to the switching angle so that the target object is located at the center of the screen of the target camera after the switching may include: controlling the target camera to switch the first switching angle in the first direction, and in the first direction.
  • the second switching angle is switched in the two directions to obtain the switched target camera; the control target object is located at the center of the screen of the switched target camera.
  • the target camera can be controlled to switch the first switching angle in the first direction and the second switching angle in the second direction.
  • the first direction and the second direction can be flexibly set according to actual needs.
  • the first direction can be a direction on the X axis
  • the second direction can be a direction on the Y axis.
  • the target object can be controlled to be located in the center of the screen of the target camera after the switch, and the multi-camera system can be quickly and accurately controlled to switch to the desired screen.
  • the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; Record the picture with the target object in the center, or control the target camera to shoot the captured picture with the target object in the center according to the shooting instruction, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control according to the temperature measurement instruction
  • the target camera measures the temperature of the target object.
  • the user finds a person or object of interest in a certain camera screen, and needs to quickly switch to another camera to observe and shoot the person or object
  • a person or object of interest in a wide-angle camera, you need to switch to a telephoto camera if you want to see the details of the person or object; if you find an object that needs temperature measurement in the wide-angle camera, you need to switch to an infrared camera to perform
  • an object that needs to be ranged is found on the wide-angle camera, and it needs to be switched to the laser rangefinder camera to range the object; and so on.
  • the recording instruction input by the user can be received, and the target camera can be controlled according to the recording instruction to record the captured frame of the target object in the center; or the shooting instruction input by the user can be received, and the target camera can be controlled to capture the captured image according to the shooting instruction.
  • the embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera, and determine the target position of the target object in the current camera frame, and then determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position, so as Subsequently, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switch.
  • the solution determines the switching angle of the target camera through the pixel mapping relationship between different cameras and the target position, so that the target object can be located in the center of the target camera screen after switching based on the switching angle, which improves the convenience of coordinated control of multiple cameras, and
  • the accuracy of controlling the target object at the center of the screen is improved, that is, the accuracy and convenience of controlling the camera are improved.
  • FIG. 12 is a schematic diagram of another process of a camera control method provided by an embodiment of this application.
  • the camera control method can be applied to a multi-camera system (that is, a multi-camera system with a pan-tilt) that uses a pan-tilt to control the shooting direction of the camera, particularly to control the shooting direction of the target camera, which may include one or more pan-tilts; for example, using One PTZ controls the shooting direction of the current camera, while using multiple PTZ to adjust the shooting direction of multiple target cameras; or using a robotic arm to control the shooting direction of the current camera, while using a PTZ to control the shooting direction of the target camera, etc.
  • the above-mentioned multi-camera system is used for coordinated control of multiple cameras to improve the accuracy, efficiency and convenience of camera control.
  • the process of the camera control method may be as follows:
  • S201 Acquire a pixel mapping relationship between the current camera and the target camera in the multi-camera system.
  • S203 Determine the target position of the target object in the current camera frame.
  • S204 Determine the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position.
  • S205 Control the deflection of the pan/tilt according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.
  • the deflection angle of the pan/tilt includes angle_pitch and angle_yaw described above.
  • obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.
  • determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.
  • determining the target position of the target object in the current camera frame may include: receiving a selection instruction input by the user in the frame captured by the current camera; and determining the target position of the target object in the current camera frame according to the selection instruction.
  • determining the target object in the current camera frame may include: extracting features of the current camera frame to obtain target feature information; identifying the target object in the current camera frame according to the target feature information, and determining the target position of the target object .
  • obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix.
  • the internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.
  • obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.
  • acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; determining the location of the feature points through the current camera and the target camera respectively; according to the features For the position of the point, the positional relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect feature points.
  • constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.
  • acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.
  • determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.
  • determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the current camera's screen according to the mapping position and the target position; and according to the offset Determine the deflection angle of the gimbal with the target camera.
  • the offset includes a first offset and a second offset
  • the yaw angle includes a pitch yaw angle and a yaw yaw angle
  • determining the yaw angle of the pan/tilt equipped with the target camera according to the offset may include : According to the first offset of the target object in the first direction to the center of the screen of the current camera, determine the pitch and deflection angle of the pan/tilt equipped with the target camera; according to the first offset of the target object in the second direction to the center of the screen of the current camera The second offset is to determine the yaw deflection angle of the gimbal equipped with the target camera.
  • controlling the yaw of the gimbal according to the yaw angle so that the target object is located in the center of the image of the target camera after the deflection may include: controlling the gimbal to yaw the pitch yaw angle in the pitch direction and yaw the yaw direction.
  • the heading deflection angle is used to obtain the deflected target camera; the target object is controlled to be located at the center of the frame of the deflected target camera.
  • the deflection angle can be understood according to the above-mentioned switching angle, and the calculation method of the deflection angle is similar to the above-mentioned switching angle calculation method, and will not be repeated here.
  • the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; and controlling the target camera to locate the collected target object according to the recording instruction. Record the center image, or control the target camera according to the shooting instruction to shoot the captured image of the target object in the center, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control the target camera to measure the distance according to the temperature measurement instruction The temperature of the target object is measured.
  • the relative positions of the current camera and the target camera in the multi-camera system are fixed.
  • the current camera is also mounted on the pan-tilt.
  • the embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera in the multi-camera system, and according to the pixel mapping relationship, obtain the mapping position of the frame center of the target camera in the current camera frame, and then determine the current camera frame
  • the target position of the target object is determined according to the mapping position and the target position to determine the deflection angle of the pan/tilt equipped with the target camera.
  • the deflection of the pan/tilt can be controlled according to the deflection angle, so that the target object is located at the center of the screen of the deflected target camera.
  • This solution determines the mapping position through the pixel mapping relationship between different cameras, and determines the deflection angle of the PTZ equipped with the target camera based on the mapping position and the target position, so that the target object can be located in the center of the target camera's screen after the deflection.
  • the convenience and efficiency of multi-camera coordinated control, and the accuracy of controlling the target object in the center of the target camera screen is improved.
  • FIG. 13 is a schematic diagram of another flow of a camera control method provided by an embodiment of the application.
  • the camera control method can be applied to a multi-camera system, a pan-tilt camera, or a movable platform, etc., as shown in FIG. 13,
  • the process of the camera control method can be as follows:
  • S301 Control the current camera in the multi-camera system to capture images and display the images.
  • S303 Determine the target position of the target object in the current camera frame according to the selection instruction.
  • S305 Determine the deflection angle of the target camera according to the mapping position and the target position.
  • receiving the selection instruction input by the user may include: receiving a click operation input by the user in the displayed screen; determining the area of the click operation in the screen, and generating the selection instruction according to the area.
  • receiving a selection instruction input by the user may include: extracting features of the screen to obtain target feature information; determining objects in the screen according to the target feature information to obtain a collection of objects; The object identification list of the object set is displayed inside; the selection instruction input by the user in the object identification list is received.
  • the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; Recording, or control the target camera to shoot the captured image according to the shooting instruction, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control the target camera to measure the temperature of the target object according to the temperature measurement instruction.
  • obtaining the mapping position of the center of the target camera in the multi-camera system in the current camera frame may include: obtaining the pixel mapping relationship between the current camera and the target camera in the multi-camera system; and obtaining the pixel mapping relationship according to the pixel mapping relationship. The mapping position of the target camera's frame center in the current camera frame.
  • obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.
  • determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.
  • obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix.
  • the internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.
  • obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.
  • acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; determining the location of the feature points through the current camera and the target camera respectively; according to the features For the position of the point, the positional relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect feature points.
  • constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.
  • acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.
  • determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.
  • determining the deflection angle of the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the screen of the current camera according to the mapping position and the target position; and determining the offset of the target camera according to the offset. Deflection angle.
  • the offset includes a first offset and a second offset
  • the deflection angle includes the first deflection angle and the second deflection angle
  • determining the deflection angle of the target camera according to the offset may include: The first offset of the object in the first direction to the center of the current camera's screen determines the first deflection angle of the target camera; determines the second offset of the target object in the second direction to the center of the current camera's screen The second deflection angle of the target camera.
  • the deflection angle can be understood according to the above-mentioned switching angle, and the calculation method of the deflection angle is similar to the above-mentioned switching angle calculation method, and will not be repeated here.
  • controlling the target camera to deflect according to the deflection angle so that the target object is located in the center of the deflected target camera frame may include: controlling the target camera to deflect in a first direction by a first deflection angle, and in a second direction Deflection upward to the second deflection angle to obtain the deflected target camera; control the target object to be located at the center of the frame of the deflected target camera.
  • the embodiment of the present application can control the current camera in the multi-camera system to collect a picture, display the picture, and then receive a selection instruction input by the user based on the displayed picture. Secondly, according to the selection instruction, the target position of the target object in the current camera frame is determined, and the mapping position of the center of the target camera frame in the current camera frame in the multi-camera system is obtained. At this time, the deflection angle of the target camera can be determined according to the mapping position and the target position, and the target camera can be controlled to deflect according to the deflection angle, so that the target object is located at the center of the screen of the target camera after the deflection.
  • the solution determines the deflection angle of the target camera by mapping the position and the target position, so that the target object can be located in the center of the target camera's screen after the deflection, which improves the convenience and efficiency of the coordinated control of multiple cameras, and improves the control of the target object at the target The accuracy of the center of the camera frame.
  • FIG. 14 is a schematic block diagram of a multi-camera system according to an embodiment of the present application.
  • the multi-camera system 11 may include a processor 111 and a memory 112, and the processor 111 and the memory 112 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 111 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 112 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • ROM Read-Only Memory
  • the memory 112 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • the multi-camera system 11 may also include multiple cameras, and the type of each camera can be flexibly set according to actual needs.
  • the processor 111 is configured to call a computer program stored in the memory 112, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:
  • FIG. 15 is a schematic block diagram of a pan-tilt camera according to an embodiment of the present application.
  • the pan/tilt camera 12 may include a processor 121 and a memory 122, and the processor 121 and the memory 122 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 121 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
  • MCU micro-controller unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 122 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • ROM Read-Only Memory
  • the memory 122 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • the pan-tilt camera 12 may also include a pan-tilt and multiple cameras.
  • the type of each camera can be flexibly set according to actual needs.
  • the pan-tilt is used to carry multiple cameras.
  • the processor 121 is configured to call a computer program stored in the memory 122, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:
  • FIG. 16 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
  • the mobile platform 13 may include a processor 131 and a memory 132, and the processor 131 and the memory 132 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the movable platform 13 may include a mobile terminal, a drone, a robot, or an unmanned vehicle, etc.
  • the processor 131 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
  • MCU micro-controller unit
  • CPU central processing unit
  • DSP Digital Signal Processor
  • the memory 132 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • ROM Read-Only Memory
  • the memory 132 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.
  • the movable platform 13 may also include a pan-tilt and multiple cameras.
  • the type of each camera can be flexibly set according to actual needs.
  • the pan-tilt is installed on the body of the movable platform, and multiple cameras are mounted on the pan-tilt.
  • the processor 131 is configured to call a computer program stored in the memory 132, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the present application
  • the camera control method provided by the embodiment is not limited to:
  • the computer-readable storage medium may be the multi-camera system, pan-tilt camera, or internal storage unit of the movable platform described in any of the foregoing embodiments, such as the hard disk or memory of the pan-tilt camera.
  • the computer-readable storage medium can also be an external storage device of the pan/tilt camera, such as a plug-in hard disk equipped on the pan/tilt camera, a Smart Media Card (SMC), a Secure Digital (SD) card, and a flash memory. Card (Flash Card), etc.
  • the computer program stored in the computer-readable storage medium can execute any camera control method provided in the embodiments of the present application, it can implement what can be achieved by any camera control method provided in the embodiments of the present application.
  • the beneficial effects of refer to the previous embodiment for details, and will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The present application provides a camera control method, comprising: obtaining a pixel mapping relationship between the current camera and a target camera; determining a target position of a target object in a picture of the current camera; and determining a switching angle of a center point of the target camera according to the pixel mapping relationship and the target position. Therefore, the accuracy of camera control is improved. The present application further provides a device and a computer readable storage medium.

Description

相机控制方法、设备及计算机可读存储介质Camera control method, equipment and computer readable storage medium 技术领域Technical field

本申请涉及设备技术领域,尤其涉及一种相机控制方法、设备及计算机可读存储介质。This application relates to the field of device technology, and in particular to a camera control method, device, and computer-readable storage medium.

背景技术Background technique

在多个相机组成的多相机系统中,例如,多摄像头手机,多摄像头监控相机等,当用户在某个相机画面中发现了自己感兴趣的物体,需要快速切换到另一个相机上对该物体进行观察拍摄时,例如,在广角相机找到感兴趣的物体,希望看清物体的细节,需要切换到长焦相机或激光相机,一般需要用户先手动调整相机的位置,使得该物体在广角相机画面内进行居中校准,然后通过长焦相机对该物体进行相应的变焦等操作,或通过激光相机对该物体进行相应的测距等操作。由于用户手动操作无法准确在广角相机将物体放到视野中心,并且,需要用户手动反复调节相机的位置,才能完成对物体进行特定观测或者测量,不仅操作过程非常繁琐,而且校准物体的准确性较低。In a multi-camera system composed of multiple cameras, for example, multi-camera mobile phones, multi-camera surveillance cameras, etc., when a user finds an object of interest in a camera screen, he needs to quickly switch to another camera for the object When performing observation and shooting, for example, when you find an object of interest on a wide-angle camera, you need to switch to a telephoto camera or a laser camera if you want to see the details of the object. Generally, you need to manually adjust the camera position first, so that the object is on the wide-angle camera screen. Perform centering calibration inside, and then perform corresponding operations such as zooming on the object through the telephoto camera, or perform corresponding operations such as distance measurement on the object through the laser camera. Because the user cannot accurately place the object in the center of the field of view on the wide-angle camera by manual operation, and requires the user to manually adjust the position of the camera repeatedly to complete the specific observation or measurement of the object, not only the operation process is very cumbersome, but the accuracy of the calibration object is relatively high. low.

发明内容Summary of the invention

本申请实施例提供一种相机控制方法、设备及计算机可读存储介质,可以提高对多相机协同控制的便捷性,以及提高控制目标物体位于画面中心的准确性。The embodiments of the present application provide a camera control method, device, and computer-readable storage medium, which can improve the convenience of coordinated control of multiple cameras and improve the accuracy of controlling the target object at the center of the screen.

第一方面,本申请实施例提供了一种相机控制方法,包括:In the first aspect, an embodiment of the present application provides a camera control method, including:

获取当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera;

确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame;

根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position.

第二方面,本申请实施例还提供了一种相机控制方法,包括:In the second aspect, an embodiment of the present application also provides a camera control method, including:

获取多相机系统中当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera in the multi-camera system;

根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring, according to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame;

确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame;

根据所述映射位置和所述目标位置确定搭载所述目标相机的云台的偏转角度;Determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position;

根据所述偏转角度控制所述云台偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心。The deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.

第三方面,本申请实施例还提供了一种相机控制方法,包括:In the third aspect, an embodiment of the present application also provides a camera control method, including:

控制多相机系统中当前相机采集画面,并显示所述画面;Control the current camera in the multi-camera system to capture a picture and display the picture;

基于显示的所述画面,接收用户输入的选择指令;Receiving a selection instruction input by the user based on the displayed screen;

根据所述选择指令确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame according to the selection instruction;

获取所述多相机系统中目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring the mapping position of the frame center of the target camera in the current camera frame in the multi-camera system;

根据所述映射位置和所述目标位置确定所述目标相机的偏转角度;Determining the deflection angle of the target camera according to the mapping position and the target position;

根据所述偏转角度控制所述目标相机进行偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心。The target camera is controlled to deflect according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.

第四方面,本申请实施例还提供了一种多相机系统,所述多相机系统包括:In a fourth aspect, an embodiment of the present application also provides a multi-camera system, and the multi-camera system includes:

多个相机;Multiple cameras

存储器,用于存储计算机程序;Memory, used to store computer programs;

处理器,用于调用所述存储器中的计算机程序,用于执行:The processor is used to call the computer program in the memory for executing:

获取当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera;

确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame;

根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position.

第五方面,本申请实施例还提供了一种云台相机,所述云台相机包括:In a fifth aspect, an embodiment of the present application also provides a pan-tilt camera, and the pan-tilt camera includes:

多个相机;Multiple cameras

云台,用于搭载所述多个相机;PTZ for carrying the multiple cameras;

存储器,用于存储计算机程序;Memory, used to store computer programs;

处理器,用于调用所述存储器中的计算机程序,用于执行:The processor is used to call the computer program in the memory for executing:

获取所述多个相机中当前相机与目标相机之间的像素映射关系;Acquiring a pixel mapping relationship between the current camera and the target camera in the plurality of cameras;

根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring, according to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame;

确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame;

根据所述映射位置和所述目标位置确定搭载所述目标相机的云台的偏转角 度;Determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position;

根据所述偏转角度控制所述云台偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心。The deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.

第六方面,本申请实施例还提供了一种可移动平台,包括:In a sixth aspect, an embodiment of the present application also provides a movable platform, including:

云台,安装在所述可移动平台的本体上;PTZ, installed on the body of the movable platform;

多个相机,搭载在所述云台上;Multiple cameras mounted on the pan/tilt;

存储器,用于存储计算机程序;Memory, used to store computer programs;

处理器,用于调用所述存储器中的计算机程序,以执行本申请实施例提供的任一种相机控制方法。The processor is configured to call a computer program in the memory to execute any camera control method provided in the embodiments of the present application.

第七方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序被处理器加载,以执行本申请实施例提供的任一种相机控制方法。In a seventh aspect, the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any of the provided by the embodiments of the present application. A camera control method.

本申请实施例可以获取当前相机与目标相机之间的像素映射关系,以及确定当前相机画面内的目标物体的目标位置,然后可以根据像素映射关系和目标位置确定目标相机中心点的切换角度,以便后续可以根据切换角度控制目标相机进行中心点切换,以使得目标物体位于切换后的目标相机的画面中心。该方案通过不同相机之间的像素映射关系和目标位置确定目标相机的切换角度,以便目标物体可以位于基于切换角度切换后的目标相机的画面中心,提高了对多相机协同控制的便捷性和效率,以及提高了控制目标物体位于目标相机画面中心的准确性,即提高了对相机控制的准确性和便捷性。The embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera, and determine the target position of the target object in the current camera frame, and then determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position, so as Subsequently, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switch. The solution determines the switching angle of the target camera through the pixel mapping relationship between different cameras and the target position, so that the target object can be located in the center of the target camera screen after switching based on the switching angle, which improves the convenience and efficiency of coordinated control of multiple cameras , And improve the accuracy of controlling the target object in the center of the target camera frame, that is, improving the accuracy and convenience of controlling the camera.

附图说明Description of the drawings

为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.

图1是本申请实施例提供的云台相机的结构示意图;FIG. 1 is a schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application;

图2是本申请实施例提供的云台相机的另一结构示意图;FIG. 2 is another schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application;

图3是本申请实施例提供的云台相机的另一结构示意图;FIG. 3 is another schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application;

图4是本申请实施例提供的飞行器、远程操控设备及显示设备交互的示意图;FIG. 4 is a schematic diagram of the interaction between the aircraft, the remote control device, and the display device provided by an embodiment of the present application;

图5是本申请实施例提供的相机控制方法的流程示意图;FIG. 5 is a schematic flowchart of a camera control method provided by an embodiment of the present application;

图6是本申请实施例提供的基于选择指令选择目标物体的示意图;FIG. 6 is a schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application;

图7是本申请实施例提供的基于选择指令选择目标物体的另一示意图;FIG. 7 is another schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application;

图8是本申请实施例提供的基于选择指令选择目标物体的另一示意图;FIG. 8 is another schematic diagram of selecting a target object based on a selection instruction provided by an embodiment of the present application;

图9是本申请实施例提供的确定目标物体到画面中心的偏移量的示意图;9 is a schematic diagram of determining the offset of the target object to the center of the screen provided by an embodiment of the present application;

图10是本申请实施例提供的基于偏移量来确定切换角度的示意图;FIG. 10 is a schematic diagram of determining a switching angle based on an offset provided by an embodiment of the present application;

图11是本申请实施例提供的根据切换角度控制目标相机进行切换的示意图;FIG. 11 is a schematic diagram of controlling a target camera to switch according to a switching angle according to an embodiment of the present application;

图12是本申请实施例提供的相机控制方法的另一流程示意图;FIG. 12 is another schematic flowchart of a camera control method provided by an embodiment of the present application;

图13是本申请实施例提供的相机控制方法的另一流程示意图;FIG. 13 is another schematic flowchart of a camera control method provided by an embodiment of the present application;

图14是本申请实施例提供的多相机系统的结构示意图;FIG. 14 is a schematic structural diagram of a multi-camera system provided by an embodiment of the present application;

图15是本申请实施例提供的云台相机的结构示意图;15 is a schematic diagram of the structure of a pan-tilt camera provided by an embodiment of the present application;

图16是本申请实施例提供的可移动平台的结构示意图。FIG. 16 is a schematic structural diagram of a movable platform provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.

附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.

下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

本申请的实施例提供了一种相机控制方法、设备及计算机可读存储介质,用于对多相机系统中的多相机进行协同控制,提高了对相机控制的准确性和便捷性。The embodiments of the present application provide a camera control method, device, and computer-readable storage medium, which are used to perform coordinated control of multiple cameras in a multi-camera system, and improve the accuracy and convenience of camera control.

其中,该设备可以包括多相机系统、云台相机、可移动平台、以及计算机可读存储介质等,可以用于获取当前相机与目标相机之间的像素映射关系,以及根据像素映射关系获取目标相机的画面中心在当前相机画面内的映射位置,然后可以确定当前相机画面内的目标物体的目标位置,根据映射位置和目标位置确定目标相机的切换角度,此时可以根据切换角度控制目标相机进行切换,以使得目标物体位于切换后的目标相机的画面中心,提高了对相机控制的准确性和便捷性。Among them, the device may include a multi-camera system, a pan-tilt camera, a removable platform, and a computer-readable storage medium, etc., which can be used to obtain the pixel mapping relationship between the current camera and the target camera, and to obtain the target camera according to the pixel mapping relationship The center of the screen is the mapped position in the current camera screen, and then the target position of the target object in the current camera screen can be determined, and the switching angle of the target camera can be determined according to the mapped position and target position. At this time, the target camera can be controlled to switch according to the switching angle , So that the target object is located in the center of the screen of the target camera after switching, which improves the accuracy and convenience of camera control.

其中,多相机系统可以包括多个相机,每个相机的类型、相机的个数、相机的设置位置、各个相机之间的相对几何位置关系等可以根据实际需要进行灵活设置,例如,多相机系统可以包括超广角相机、广角相机、长焦相机(即变焦相机)、红外相机、激光雷达相机、远红外相机、紫外相机、激光测距相机、以及飞行时间测距(TOF,Time of Flight)深度相机(简称TOF深度相机)等。Among them, the multi-camera system can include multiple cameras, and the type of each camera, the number of cameras, the setting position of the camera, the relative geometric position relationship between each camera, etc. can be flexibly set according to actual needs, for example, a multi-camera system It can include ultra-wide-angle cameras, wide-angle cameras, telephoto cameras (ie zoom cameras), infrared cameras, lidar cameras, far-infrared cameras, ultraviolet cameras, laser ranging cameras, and TOF (Time of Flight) depth Camera (referred to as TOF depth camera) and so on.

云台相机可以包括多个相机和一个或多个云台等,一个云台可以用于搭载多个相机,也可以采用多个云台搭载多个相机。以一个云台为例,如图1所示,云台相机可以包括长焦相机101a、广角相机101b、红外相机101c、以及激光雷达相机101d等。又例如,如图2所示,云台相机可以包括激光雷达相机102a、激光测距相机102b、以及TOF深度相机102c等。又例如,如图3所示,云台相机可以包括光雷达相机103a、广角相机103b、以及长焦相机103c等。其中,云台相机的云台可以是三轴云台或两轴云台等,例如,该云台可以沿着俯仰pitch方向旋转(即围绕Y轴旋转)、沿着偏航yaw方向旋转(即围绕X轴旋转)、以及沿着翻滚roll方向旋转(即围绕Z轴旋转);或者,该云台可以沿着俯仰pitch方向旋转和沿着偏航yaw方向旋转。A pan-tilt camera may include multiple cameras and one or more pan-tilts, etc. One pan-tilt may be used to carry multiple cameras, or multiple pan-tilts may be used to carry multiple cameras. Taking a pan/tilt as an example, as shown in FIG. 1, the pan/tilt camera may include a telephoto camera 101a, a wide-angle camera 101b, an infrared camera 101c, and a lidar camera 101d. For another example, as shown in FIG. 2, the pan-tilt camera may include a lidar camera 102a, a laser ranging camera 102b, and a TOF depth camera 102c. For another example, as shown in FIG. 3, the pan/tilt camera may include a lidar camera 103a, a wide-angle camera 103b, and a telephoto camera 103c. Among them, the gimbal of the gimbal camera can be a three-axis gimbal or a two-axis gimbal, etc., for example, the gimbal can rotate in the pitch direction (that is, rotate around the Y axis), and rotate in the yaw direction (that is, Rotate around the X axis), and rotate in the roll direction (ie, rotate around the Z axis); or, the pan/tilt head can rotate in the pitch direction and in the yaw direction.

可移动平台可以包括一个或多个云台和多个相机等,一个或多个云台可以安装在所述可移动平台的本体上,该多个相机可以搭载在所述一个或多个云台上,可移动平台的类型可以根据实际需要进行灵活设置。例如,可移动平台可以为移动终端、飞行器、机器人或无人驾驶车辆等,飞行器可以包括无人机,该无人机可以包括旋翼型无人机(例如四旋翼无人机、六旋翼无人机、或八旋翼无人机等)、固定翼无人机,或者是旋翼型与固定翼无人机的组合,在此不作限定。The movable platform may include one or more pan-tilts and multiple cameras, etc., one or more pan-tilts may be installed on the body of the movable platform, and the multiple cameras may be mounted on the one or more pan-tilts Above, the type of movable platform can be flexibly set according to actual needs. For example, the movable platform may be a mobile terminal, an aircraft, a robot or an unmanned vehicle, etc. The aircraft may include a UAV, which may include a rotary-wing UAV (such as a quadrotor UAV, a hexarotor UAV). Aircraft, or eight-rotor drones, etc.), fixed-wing drones, or a combination of rotary-wing and fixed-wing drones, which are not limited here.

如图4所示,以可移动平台为飞行器为例,飞行器搭载有包含多个相机的多相机系统,该飞行器还连接有远程操控设备和显示设备等,其中,远程操控设备可以包括一个或多个遥控器,用于控制飞行器的飞行或执行相应的动作,并从飞行器中获取相应的运动信息,运动信息可以包括飞行方向、飞行姿态、飞行高度、飞行速度和位置信息等,并将获取的运动信息发送给显示设备,有显示设备进行分析及显示。远程操控设备还可以用于控制飞行器上多个相机中的某一个或多个相机执行拍摄或测量等操作。As shown in Figure 4, taking the mobile platform as an aircraft as an example, the aircraft is equipped with a multi-camera system containing multiple cameras. The aircraft is also connected with remote control devices and display devices. Among them, the remote control devices may include one or more A remote controller is used to control the flight of the aircraft or perform corresponding actions, and obtain corresponding motion information from the aircraft. The motion information can include flight direction, flight attitude, flight altitude, flight speed and position information, etc., and will obtain The exercise information is sent to the display device, and the display device is used for analysis and display. The remote control device can also be used to control one or more of the multiple cameras on the aircraft to perform operations such as shooting or measuring.

显示设备可以包括笔记本电脑、平板电脑、或手机等,可以用于接收飞行器上的多个相机中的某一个或多个相机发送的图像(即画面),并将图像显示 在显示屏幕内。显示设备还可以接收用户输入的控制指令,基于控制指令对飞行器上的多个相机进行相应的控制。例如,显示设备可以接收拍摄指令或测距指令,并将拍摄指令或测距指令发送给飞行器,飞行器可以根据拍摄指令控制目标相机对采集到的画面进行拍摄,或者根据测距指令控制目标相机对目标物体进行测距等。The display device may include a notebook computer, a tablet computer, or a mobile phone, etc., and may be used to receive images (ie, pictures) sent by one or more of the multiple cameras on the aircraft, and display the images on the display screen. The display device may also receive a control instruction input by the user, and perform corresponding control on multiple cameras on the aircraft based on the control instruction. For example, the display device can receive shooting instructions or ranging instructions, and send the shooting instructions or ranging instructions to the aircraft. The aircraft can control the target camera to shoot the captured images according to the shooting instructions, or control the target camera to capture images according to the ranging instructions. The target object performs ranging and so on.

需要说明的是,图1至图4中的各设备结构并未构成对相机控制方法的应用场景的限定。It should be noted that the device structures in FIGS. 1 to 4 do not constitute a limitation on the application scenario of the camera control method.

请参阅图5,图5是本申请一实施例提供的一种相机控制方法的流程示意图。该相机控制方法可以应用于能够控制相机拍摄方向特别是能够控制目标相机拍摄方向的多相机系统中,用于对多相机进行协同控制,以提高了对相机控制的准确性、效率和便捷性。Please refer to FIG. 5. FIG. 5 is a schematic flowchart of a camera control method provided by an embodiment of the present application. The camera control method can be applied to a multi-camera system capable of controlling the shooting direction of the camera, especially the shooting direction of the target camera, for coordinated control of multiple cameras, so as to improve the accuracy, efficiency and convenience of camera control.

如图5所示,该相机控制方法可以包括步骤S101至步骤S103等,具体可以如下:As shown in FIG. 5, the camera control method may include steps S101 to S103, etc., which may be specifically as follows:

S101、获取多相机系统中当前相机与目标相机之间的像素映射关系。S101: Acquire a pixel mapping relationship between the current camera and the target camera in the multi-camera system.

其中,多相机系统可以是包含多个不同类型相机的多相机系统,像素映射关系可以是两个以上不同相机之间(例如,红外相机和广角相机之间、广角相机和长焦相机之间、红外相机和长焦相机之间等)采集得到图像像素的对应关系,该像素映射关系可以称为不同相机像素之间的单应性矩阵或转换关系等,该转换关系可以包括旋转关系和平移关系等,该像素映射关系可以通过映射矩阵表示。Among them, the multi-camera system can be a multi-camera system containing multiple different types of cameras, and the pixel mapping relationship can be between two or more different cameras (for example, between an infrared camera and a wide-angle camera, between a wide-angle camera and a telephoto camera, Between infrared camera and telephoto camera, etc.) the corresponding relationship between image pixels is collected. This pixel mapping relationship can be called a homography matrix or conversion relationship between different camera pixels. The conversion relationship can include a rotation relationship and a translation relationship. Etc., the pixel mapping relationship can be represented by a mapping matrix.

可以从多相机系统中任一选择一个相机作为当前相机,并选择一个或多个相机作为目标相机,当前相机可以用于采集当前画面,以便从当前画面中查找目标物体,并将目标物体切换到一个或多个目标相机的中心画面进行显示,目标相机可以基于用户在当前相机中对目标物体的选择,或是基于确定的目标物体类型(例如车牌、人、狗、或花等),采集目标物体位于中心的画面。其中,目标物体可以根据实际需要进行灵活选择或设置,例如人物、动物、植物、车辆、建筑、或星体等任意物体,甚至是非固态、非三维的目标,例如火焰、云团、或水体等,只要该目标可以经由相机感光元件的一个或多个像素点成像即可。多相机系统的可以有多种示例,例如,可以选择广角相机作为当前相机,选择长焦相机作为目标相机;或者,可以选择广角相机作为当前相机,选择激光测距相机作为目标相机;等等。You can select any camera from the multi-camera system as the current camera, and select one or more cameras as the target camera. The current camera can be used to capture the current frame to find the target object from the current frame and switch the target object to The center image of one or more target cameras is displayed. The target camera can collect the target based on the user's selection of the target object in the current camera, or based on the determined target object type (such as license plate, person, dog, or flower, etc.) The object is in the center of the picture. Among them, the target object can be flexibly selected or set according to actual needs, such as any object such as people, animals, plants, vehicles, buildings, or stars, or even non-solid, non-three-dimensional targets, such as flames, clouds, or water bodies, etc. As long as the target can be imaged via one or more pixels of the camera's photosensitive element. There can be multiple examples of a multi-camera system. For example, a wide-angle camera can be selected as the current camera, and a telephoto camera can be selected as the target camera; or, a wide-angle camera can be selected as the current camera, and a laser rangefinder camera can be selected as the target camera; and so on.

在确定当前相机与目标相机后,可以获取当前相机与目标相机之间的像素映射关系,例如,可以通过相机几何参数标定法,对相机几何内外参数进行标定,得到各个相机之间的转换关系,从而可以得到当前相机与目标相机之间的像素映射关系。After determining the current camera and the target camera, the pixel mapping relationship between the current camera and the target camera can be obtained. For example, the camera geometric parameter calibration method can be used to calibrate the internal and external parameters of the camera geometry to obtain the conversion relationship between each camera. Thus, the pixel mapping relationship between the current camera and the target camera can be obtained.

在一些实施方式中,获取当前相机与目标相机之间的像素映射关系可以包括:获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵;根据当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵,确定当前相机与目标相机之间的转换矩阵,得到当前相机与目标相机之间的像素映射关系。In some embodiments, obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix. The internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.

为了提高像素映射关系获取的准确性和效率,可以通过当前相机和目标相机的内外参矩阵(即内参矩阵和外参矩阵),获取当前相机和目标相机之间的像素映射关系。In order to improve the accuracy and efficiency of obtaining the pixel mapping relationship, the pixel mapping relationship between the current camera and the target camera can be obtained through the internal and external parameter matrices (ie, the internal parameter matrix and the external parameter matrix) of the current camera and the target camera.

具体地,可以当前相机的内参矩阵,以及获取目标相机的内参矩阵和外参矩阵。在一些实施方式中,获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵可以包括:获取当前相机和目标相机在多相机系统中的位置关系;根据位置关系获取当前相机的内参,以及获取目标相机的内参和外参;根据当前相机的内参构建当前相机的内参矩阵;根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵。Specifically, the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera can be obtained. In some embodiments, obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.

为了提高内外参矩阵获取精准性和灵活性,可以基于当前相机和目标相机的位置关系、以及内外参(即内参和外参)等构建内外参矩阵。其中,位置关系可以是当前相机和目标相机在多相机系统中的几何位置关系。在一些实施方式中,当前相机和目标相机在多相机系统中的相对位置固定,这样可以减少多相机系统的复杂度及降低多相机系统的运算资源消耗;在一些实施方式中,当前相机和目标相机在多相机系统中的相对位置可变,例如,在当前相机中确定目标物体后,当前相机和目标相机各自移动以采集目标物体位于中心的画面,这样的方式能够保证较好的用户体验。In order to improve the accuracy and flexibility of obtaining the internal and external parameter matrix, the internal and external parameter matrix can be constructed based on the position relationship between the current camera and the target camera, and the internal and external parameters (ie, internal and external parameters). The position relationship may be the geometric position relationship between the current camera and the target camera in the multi-camera system. In some embodiments, the relative positions of the current camera and the target camera in the multi-camera system are fixed, which can reduce the complexity of the multi-camera system and reduce the computing resource consumption of the multi-camera system; in some embodiments, the current camera and the target camera The relative position of the camera in the multi-camera system is variable. For example, after the target object is determined in the current camera, the current camera and the target camera move separately to capture images with the target object in the center. This method can ensure a better user experience.

首先,可以获取当前相机和目标相机在多相机系统中的位置关系,例如,可以从数据库中获取在安装当前相机和目标相机时记录的当前相机和目标相机在多相机系统中的位置关系。或者,在一些实施方式中,获取当前相机和目标相机在多相机系统中的位置关系可以包括:获取标定图像,提取标定图像中的特征点;分别通过当前相机和目标相机确定特征点的位置;根据特征点的位置,在多相机系统中建立当前相机和目标相机之间的位置关系,以使得当前相机和 目标相机均能采集到特征点。First, the position relationship between the current camera and the target camera in the multi-camera system can be obtained. For example, the position relationship between the current camera and the target camera in the multi-camera system recorded when the current camera and the target camera are installed can be obtained from a database. Or, in some embodiments, acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; and determining the location of the feature points through the current camera and the target camera respectively; According to the position of the feature point, the position relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect the feature points.

为了提高位置关系获取的准确性,可以通过特征点标定来确定当前相机和目标相机之前的位置关系。例如,可以获取标定图像,该标定图像可以根据实际需要进行灵活设置,例如,标定图像可以是采集的标定板的图像,标定图像中可以包含特征点,该特征点的位置、大小和类型等可以根据实际需要进行灵活设置,例如,该特征点可以是标定图像中格子的顶点或者物体的轮廓等,此时可以从标定图像中提取特征点。然后,分别通过当前相机和目标相机确定特征点的位置,根据特征点的位置在多相机系统中建立当前相机和目标相机之间的位置关系,以使得当前相机和目标相机均能采集到特征点。In order to improve the accuracy of obtaining the position relationship, the position relationship between the current camera and the target camera can be determined through feature point calibration. For example, a calibration image can be obtained, and the calibration image can be flexibly set according to actual needs. For example, the calibration image can be an image of a collected calibration plate, and the calibration image can contain feature points. The location, size, and type of the feature points can be It can be set flexibly according to actual needs. For example, the feature point can be the vertex of the grid in the calibration image or the contour of the object, and the feature point can be extracted from the calibration image. Then, the location of the feature point is determined by the current camera and the target camera respectively, and the position relationship between the current camera and the target camera is established in the multi-camera system according to the location of the feature point, so that both the current camera and the target camera can collect the feature points .

然后,在得到当前相机和目标相机之间的位置关系后,可以根据位置关系获取当前相机的内参,以及获取目标相机的内参和外参。其中,内参可以包括焦距(fx,fy)、光心位置(cx,cy)、以及畸变参数distortion_coeff等,从而实现了通过几何参数标定法(例如,基于张正友的棋盘格标定算法的变种方法)准确获取当前相机的内参、目标相机的内参和外参等。Then, after obtaining the positional relationship between the current camera and the target camera, the internal parameters of the current camera and the internal and external parameters of the target camera can be obtained according to the positional relationship. Among them, the internal parameters can include the focal length (fx, fy), the optical center position (cx, cy), and the distortion parameter distortion_coeff, etc., so as to achieve accuracy through the geometric parameter calibration method (for example, a variant method based on Zhang Zhengyou’s checkerboard calibration algorithm) Get the internal parameters of the current camera, the internal parameters and external parameters of the target camera, etc.

其次,根据当前相机的内参构建当前相机的内参矩阵,以及根据目标相机的内参构建目标相机的内参,例如,若当前相机为广角相机,则广角相机的内参矩阵为:Secondly, construct the internal parameter matrix of the current camera according to the internal parameters of the current camera, and construct the internal parameter of the target camera according to the internal parameters of the target camera. For example, if the current camera is a wide-angle camera, the internal parameter matrix of the wide-angle camera is:

Figure PCTCN2020071026-appb-000001
Figure PCTCN2020071026-appb-000001

其中,K wide表示广角相机的内参矩阵,fx wide表示广角相机在X轴方向上的焦距,fy wide表示广角相机在Y轴方向上的焦距,cx wide表示广角相机在X轴方向上的光心位置,cy wide表示广角相机在Y轴方向上的光心位置。 Among them, K wide represents the internal parameter matrix of the wide -angle camera, fx wide represents the focal length of the wide-angle camera in the X-axis direction, fy wide represents the focal length of the wide-angle camera in the Y-axis direction, and cx wide represents the optical center of the wide-angle camera in the X-axis direction. Position, cy wide represents the position of the optical center of the wide-angle camera in the Y-axis direction.

若目标相机为变焦相机(即长焦相机),则变焦相机在1倍焦距下的内参矩阵为:If the target camera is a zoom camera (ie a telephoto camera), the internal parameter matrix of the zoom camera at 1x focal length is:

Figure PCTCN2020071026-appb-000002
Figure PCTCN2020071026-appb-000002

其中,

Figure PCTCN2020071026-appb-000003
表示变焦相机在1倍焦距下的内参矩阵,
Figure PCTCN2020071026-appb-000004
表示变焦相机在X轴方向上的焦距,
Figure PCTCN2020071026-appb-000005
表示变焦相机在Y轴方向上的焦距,
Figure PCTCN2020071026-appb-000006
表示变焦相机在X轴方向上的光心位置,
Figure PCTCN2020071026-appb-000007
表示变焦相机在Y轴方向上的光心位置。 among them,
Figure PCTCN2020071026-appb-000003
Represents the internal parameter matrix of the zoom camera at 1x focal length,
Figure PCTCN2020071026-appb-000004
Indicates the focal length of the zoom camera in the X-axis direction,
Figure PCTCN2020071026-appb-000005
Indicates the focal length of the zoom camera in the Y-axis direction,
Figure PCTCN2020071026-appb-000006
Indicates the position of the optical center of the zoom camera in the X-axis direction,
Figure PCTCN2020071026-appb-000007
Indicates the position of the optical center of the zoom camera in the Y-axis direction.

若目标相机为红外相机,则红外相机的内参矩阵为:If the target camera is an infrared camera, the internal parameter matrix of the infrared camera is:

Figure PCTCN2020071026-appb-000008
Figure PCTCN2020071026-appb-000008

其中,K ir表示红外相机的内参矩阵,fx ir表示红外相机在X轴方向上的焦距,fy ir表示红外相机在Y轴方向上的焦距,cx ir表示红外相机在X轴方向上的光心位置,cy ir表示红外相机在Y轴方向上的光心位置。 Among them, Kir represents the internal parameter matrix of the infrared camera, fx ir represents the focal length of the infrared camera in the X-axis direction, fy ir represents the focal length of the infrared camera in the Y-axis direction, and cx ir represents the optical center of the infrared camera in the X-axis direction Position, cy ir represents the position of the optical center of the infrared camera in the Y-axis direction.

需要说明的是,若当前相机和目标相机的畸变非常小,则可以不需要使用畸变参数来构建内参矩阵。It should be noted that if the distortion of the current camera and the target camera is very small, it is not necessary to use the distortion parameters to construct the internal parameter matrix.

以及,可以根据目标相机的外参构建目标相机的外参矩阵,该外参的具体取值可以根据实际需要进行灵活设置,例如,可以根据当前相机的外参和目标相机的外参,计算当前相机和目标相机之间的旋转R与平移T等关系,根据旋转R与平移T等关系构建目标相机的外参矩阵,R表示当前相机坐标系到目标相机坐标系的转换,R和T可以均为3*3矩阵或者其他类型的矩阵。And, the external parameter matrix of the target camera can be constructed according to the external parameters of the target camera, and the specific value of the external parameter can be flexibly set according to actual needs. For example, the current camera can be calculated according to the external parameters of the current camera and the external parameters of the target camera. The relationship between the rotation R and the translation T between the camera and the target camera, and the external parameter matrix of the target camera is constructed according to the relationship between the rotation R and the translation T. R represents the conversion from the current camera coordinate system to the target camera coordinate system. R and T can be both It is a 3*3 matrix or other types of matrices.

例如,若当前相机为广角相机,目标相机为变焦相机,则广角相机和1倍焦距下变焦相机外参数矩阵为:R fpv_zoom和T fpv_zoom;又例如,若当前相机为广角相机,目标相机为红外相机,则广角相机和红外相机之间的外参数矩阵为:R fpv_ir和T fpv_ir。外参数矩阵的示例,可以包括三个方向上的旋转角度参数,或是三个方向上的平移距离参数;或是3*3矩阵以表示旋转方向上的变换。 For example, if the current camera is a wide-angle camera and the target camera is a zoom camera, the external parameter matrices of the wide-angle camera and the zoom camera at 1x focal length are: R fpv_zoom and T fpv_zoom ; for another example, if the current camera is a wide-angle camera, the target camera is an infrared Camera, the external parameter matrix between the wide-angle camera and the infrared camera is: R fpv_ir and T fpv_ir . Examples of the external parameter matrix may include rotation angle parameters in three directions, or translation distance parameters in three directions; or a 3*3 matrix to represent the transformation in the rotation direction.

需要说明的是,对于变焦相机,由于变焦相机的焦距是可变的,因此,当变焦相机的焦距发生变化时,内参和外参也会随之发生变化,需要重新确定变焦相机内参矩阵和外参矩阵。It should be noted that for zoom cameras, since the focal length of the zoom camera is variable, when the focal length of the zoom camera changes, the internal and external parameters will also change accordingly. It is necessary to re-determine the internal parameter matrix and external parameters of the zoom camera. Parameter matrix.

在一些实施方式中,根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵可以包括:根据目标相机在预设倍焦距下的内外参构建目标相机的预设内参矩阵和预设外参矩阵;获取目标相机当前的倍率;根据目标相机当前的倍率、预设内参矩阵和预设外参矩阵,确定目标相机的内参矩阵和外参矩阵。In some embodiments, constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.

以目标相机为变焦相机为例,为了提高内参矩阵和外参矩阵获取的精准性和便捷性,可以仅标定变焦相机的某个或某几个倍率下的内参矩阵和外参矩阵,其他倍率下的内参矩阵和外参矩阵可以通过等效换算得到的(用倍率等效换算)。此时,可以获取目标相机在预设倍焦距下对应的内参和外参,该预设倍焦距可以根据实际需要进行灵活设置,例如,该预设倍焦距可以是1倍焦距。根据目标相机在预设倍焦距下对应的内参,构建目标相机在预设倍焦距下的预设内参矩 阵,以及根据目标相机在预设倍焦距下对应的外参,构建目标相机在预设倍焦距下的预设外参矩阵。Taking the target camera as a zoom camera as an example, in order to improve the accuracy and convenience of obtaining the internal parameter matrix and the external parameter matrix, you can only calibrate the internal parameter matrix and the external parameter matrix of the zoom camera at one or several magnifications. The internal parameter matrix and external parameter matrix of can be obtained by equivalent conversion (equal conversion with magnification). At this time, the internal and external parameters corresponding to the target camera under the preset multiple focal length can be obtained, and the preset multiple focal length can be flexibly set according to actual needs. For example, the preset multiple focal length can be 1x focal length. According to the internal parameters corresponding to the target camera at the preset focal length, construct the preset internal parameter matrix of the target camera at the preset focal length, and according to the external parameters corresponding to the target camera at the preset focal length, construct the target camera at the preset focal length. The preset external parameter matrix under the focal length.

然后,可以获取目标相机当前的倍率。在一些实施方式中,获取目标相机当前的倍率可以包括:获取目标相机当前的实际焦距,根据实际焦距确定目标相机当前的倍率;或者,检测目标相机与参照物体之间的物理距离,基于物理距离设置目标相机当前的倍率。Then, the current magnification of the target camera can be obtained. In some embodiments, acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.

为了提高目标相机当前的倍率获取的准确性和灵活性,由于当目标相机为变焦相机时,变焦相机可以变焦,并且每变一次焦距,焦距的变化会导致变焦相机内参变化,因此可以获取变焦相机当前的实际焦距,根据焦距与倍率之间的对应关系,确定与实际焦距对应倍率,得到变焦相机当前的倍率。In order to improve the accuracy and flexibility of the current magnification acquisition of the target camera, when the target camera is a zoom camera, the zoom camera can zoom, and every time the focal length is changed, the change of the focal length will cause the internal parameters of the zoom camera to change, so the zoom camera can be obtained The current actual focal length, according to the corresponding relationship between the focal length and the magnification, determines the magnification corresponding to the actual focal length, and obtains the current magnification of the zoom camera.

或者,可以选择参照物体,该参照物体可以根据实际需要进行灵活设置,例如,该参照物体可以是目标相机采集到的画面中的某个物体,然后可以通过激光雷达或激光测距仪等检测目标相机与参照物体之间的物理距离(即实际距离,可以简称为物距),根据距离与倍率之间的对应关系,以及检测到的物理距离自动设置目标相机当前的倍率。Or, you can select a reference object, which can be flexibly set according to actual needs. For example, the reference object can be an object in the picture collected by the target camera, and then the target can be detected by lidar or laser rangefinder. The physical distance between the camera and the reference object (that is, the actual distance, which can be referred to as the object distance for short), the current magnification of the target camera is automatically set according to the correspondence between the distance and the magnification, and the detected physical distance.

需要说明的是,目标相机与参照物体之间的物理距离可以根据实际需要设置为无穷远,或者由用户基于应用场景进行灵活设置。It should be noted that the physical distance between the target camera and the reference object can be set to infinity according to actual needs, or can be set flexibly by the user based on the application scenario.

在得到目标相机当前的倍率后,可以根据目标相机当前的倍率、预设内参矩阵和预设外参矩阵,确定目标相机的内参矩阵和外参矩阵。After the current magnification of the target camera is obtained, the internal parameter matrix and the external parameter matrix of the target camera can be determined according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.

在一些实施方式中,根据目标相机的当前倍率、预设内参矩阵,确定目标相机的内参矩阵可以包括:获取目标相机当前采集到的图像的宽度和高度;根据目标相机当前的倍率、预设内参矩阵、宽度和高度,确定目标相机的内参矩阵。In some embodiments, determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.

为了提高目标相机的内参矩阵获取的精准性,可以获取目标相机当前采集到的图像的宽度和高度,根据目标相机当前的倍率、预设内参矩阵、宽度和高度,确定目标相机的内参矩阵。In order to improve the accuracy of obtaining the internal parameter matrix of the target camera, the width and height of the image currently collected by the target camera can be obtained, and the internal parameter matrix of the target camera can be determined according to the current magnification, preset internal parameter matrix, width and height of the target camera.

即,在确定目标相机(这里的目标相机为变焦相机)当前所处的焦距之后,可以计算出其倍率,进而可以计算出目标相机当前的内参矩阵如下:That is, after determining the current focal length of the target camera (here, the target camera is a zoom camera), its magnification can be calculated, and then the current internal parameter matrix of the target camera can be calculated as follows:

Figure PCTCN2020071026-appb-000009
Figure PCTCN2020071026-appb-000009

其中,

Figure PCTCN2020071026-appb-000010
表示目标相机在当前的倍率下对应的内参矩阵,ratio表示倍率,
Figure PCTCN2020071026-appb-000011
表示目标相机在1倍焦距下X轴方向上的焦距,
Figure PCTCN2020071026-appb-000012
表示目标相机在1倍焦距下Y轴方向上的焦距,
Figure PCTCN2020071026-appb-000013
表示目标相机在1倍焦距下X轴方向上的光心位置,
Figure PCTCN2020071026-appb-000014
表示目标相机在1倍焦距下Y轴方向上的光心位置,W表示目标相机当前采集到的图像的宽度,H表示目标相机当前采集到的图像的高度。 among them,
Figure PCTCN2020071026-appb-000010
Represents the internal parameter matrix corresponding to the target camera at the current magnification, ratio represents the magnification,
Figure PCTCN2020071026-appb-000011
Indicates the focal length of the target camera in the X-axis direction at 1x focal length,
Figure PCTCN2020071026-appb-000012
Indicates the focal length of the target camera in the Y-axis direction at 1x focal length,
Figure PCTCN2020071026-appb-000013
Indicates the optical center position of the target camera in the X-axis direction at 1x focal length,
Figure PCTCN2020071026-appb-000014
It represents the optical center position of the target camera in the Y-axis direction at 1x focal length, W represents the width of the image currently captured by the target camera, and H represents the height of the image currently captured by the target camera.

在得到当前相机和目标相机的内外参矩阵后,可以根据当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵,确定当前相机与目标相机之间的转换矩阵,得到当前相机与目标相机之间的像素映射关系。例如,若当前相机为广角相机,目标相机为变焦相机,则变焦相机上的中心点映射到广角相机上的像素映射关系Homography zoom_fpv为: After the internal and external parameter matrices of the current camera and the target camera are obtained, the conversion matrix between the current camera and the target camera can be determined according to the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera to obtain the current camera and the target camera The pixel mapping relationship between. For example, if the current camera is a wide-angle camera and the target camera is a zoom camera, the pixel mapping relationship Homography zoom_fpv from the center point on the zoom camera to the wide-angle camera is:

Figure PCTCN2020071026-appb-000015
Figure PCTCN2020071026-appb-000015

Homography zoom_fpv=K wide*R*inv(K) Homography zoom_fpv = K wide *R*inv(K)

其中,K wide表示广角相机的内参矩阵,

Figure PCTCN2020071026-appb-000016
表示变焦相机的外参矩阵,
Figure PCTCN2020071026-appb-000017
表示变焦相机的在倍率ratio下的内参矩阵,inv为矩阵求逆运算,当目标相机为其他相机时,R表示其他相机的外参矩阵,K表示的内参矩阵。 Among them, K wide represents the internal parameter matrix of the wide-angle camera,
Figure PCTCN2020071026-appb-000016
Represents the external parameter matrix of the zoom camera,
Figure PCTCN2020071026-appb-000017
Represents the internal parameter matrix of the zoom camera under the magnification ratio, inv is the matrix inversion operation, when the target camera is another camera, R represents the external parameter matrix of other cameras, and K represents the internal parameter matrix.

需要说明的是,当多相机系统中除了当前相机和目标相机之外,还包括其他相机时,可以按照上述方式获取任意两个相机之间的像素映射关系。It should be noted that, when the multi-camera system includes other cameras in addition to the current camera and the target camera, the pixel mapping relationship between any two cameras can be obtained in the foregoing manner.

S102、确定当前相机画面内的目标物体的目标位置。S102: Determine the target position of the target object in the current camera frame.

其中,目标物体可以是一个完整的物体,或者是一个点等,例如,目标物体可以是车牌、车辆、人、树、或狗等,该目标物体可以根据实际需要进行灵活设置,具体内容在此处不做限定。目标物体的确定方式可以根据实际需要进行灵活设置,例如,可以接收用户输入的选择指令来确定目标物体,或者自动识别当前相机画面内的物体,并选择其中一个物体作为目标物体;等等。Among them, the target object can be a complete object, or a point, etc., for example, the target object can be a license plate, a vehicle, a person, a tree, or a dog, etc. The target object can be flexibly set according to actual needs. The specific content is here There is no limit. The method for determining the target object can be flexibly set according to actual needs. For example, it can receive a selection instruction input by the user to determine the target object, or automatically recognize the object in the current camera screen and select one of the objects as the target object; and so on.

在一些实施方式中,确定当前相机画面内的目标物体的目标位置可以包括:在当前相机采集到的画面内,接收用户输入的选择指令;根据选择指令确定当前相机画面内的目标物体的目标位置。In some embodiments, determining the target position of the target object in the current camera frame may include: receiving a selection instruction input by the user in the frame captured by the current camera; and determining the target position of the target object in the current camera frame according to the selection instruction. .

为了提高目标物体的目标位置确定的灵活性,可以将当前相机采集到的画面在显示屏内进行显示,以供用户查看,此时可以在当前相机采集到的画面内接收用户输入的选择指令,以便根据选择指令确定当前相机画面内的目标物体的目标位置。例如,如图6所示,若当前相机采集到的画面内存在车辆时,可以 接收用户手指点击或按压车辆上车牌的操作(即生成选择指令),此时可以检测用户手指点击或按压操作所在的区域,并检测该区域内的物体,确定用户选择的是车牌所在的区域,然后可以提取车牌所在的区域作为目标物体的目标位置。In order to improve the flexibility of determining the target position of the target object, the screen captured by the current camera can be displayed on the display screen for the user to view. At this time, the selection instruction input by the user can be received in the screen captured by the current camera. In order to determine the target position of the target object in the current camera frame according to the selection instruction. For example, as shown in Figure 6, if there is a vehicle in the current screen captured by the camera, the user's finger clicking or pressing the license plate on the vehicle can be received (that is, a selection instruction is generated), and the user's finger clicking or pressing operation can be detected at this time The area where the license plate is located is detected and the objects in the area are detected, and the user selects the area where the license plate is located, and then the area where the license plate is located can be extracted as the target location of the target object.

又例如,如图7所示,在当前相机采集到画面后,可以通过预设的识别模型对画面内的所有物体进行一一识别,生成识别到的物体列表,并显示物体列表,例如,可以识别到车辆、车牌、水和树等。此时可以接收用户在物体列表内点击或按压车牌所在位置的操作(即生成选择指令),然后,基于用户点击或按压操作所在位置确定用户选择的是车牌,可以提取画面中车牌所在的区域作为目标物体的目标位置。For another example, as shown in Figure 7, after the current camera captures the picture, all objects in the picture can be identified one by one through the preset recognition model, a list of recognized objects is generated, and the list of objects is displayed. For example, you can Recognize vehicles, license plates, water, trees, etc. At this time, the user can receive the operation of clicking or pressing the position of the license plate in the object list (that is, generating a selection instruction), and then, based on the position of the user clicking or pressing the operation, it is determined that the user has selected the license plate, and the area where the license plate is located in the screen can be extracted as The target position of the target object.

又例如,如图8所示,可以显示文本输入框,供用户输入需要检测的目标物体,此时可以接收用户在文本输入框输入的“车牌”(即生成选择指令),然后,基于用户输入的“车牌”确定用户选择的是车牌,可以通过预设的识别模型对画面中车牌进行识别,并提取画面中车牌所在的区域作为目标物体的目标位置。For another example, as shown in Figure 8, a text input box can be displayed for the user to input the target object to be detected. At this time, the "license plate" input by the user in the text input box (that is, a selection instruction is generated) can be received, and then based on the user input The "license plate" confirms that the user selects the license plate. The license plate in the picture can be recognized through the preset recognition model, and the area where the license plate is located in the picture is extracted as the target location of the target object.

其中,预设的识别模型可以根据实际需要进行灵活设置,例如,该识别模型可以是目标检测算法SSD或YOLO,该识别模型还可以是卷积神经网络R-CNN或Faster R-CNN等,该预设的识别模型为训练后的识别模型,例如,可以获取包含不同类型物体的多张样本图像,基于多张样本图像对识别模型进行训练,得到训练后的识别模型。Among them, the preset recognition model can be flexibly set according to actual needs. For example, the recognition model can be a target detection algorithm SSD or YOLO, and the recognition model can also be a convolutional neural network R-CNN or Faster R-CNN. The preset recognition model is a trained recognition model. For example, multiple sample images containing different types of objects can be obtained, and the recognition model can be trained based on the multiple sample images to obtain the trained recognition model.

在一些实施方式中,确定当前相机画面内的目标物体可以包括:对当前相机画面进行特征提取,得到目标特征信息;根据目标特征信息识别当前相机画面内的目标物体,并确定目标物体的目标位置。In some embodiments, determining the target object in the current camera frame may include: extracting features of the current camera frame to obtain target feature information; identifying the target object in the current camera frame according to the target feature information, and determining the target position of the target object .

为了提高目标物体的目标位置确定的自动化和便捷性,可以自动检测目标物体。例如,对当前相机画面进行特征提取,得到目标特征信息,该目标特征信息可以根据实际需要进行灵活设置,例如,目标特征信息可以是车牌的特征信息或某个人的特征信息等,根据目标特征信息可以识别当前相机画面内的目标物体,并确定目标物体的目标位置。例如,对于飞行器搭载多相机系统,在飞行器起飞后,可以通过多相机系统自动进行画面巡检,当通过当前相机(例如广角相机)检测到车辆违停的画面时,可以自动识别画面内该违停车辆的车牌所在的位置,以便后续可以将该车牌发给目标相机(例如长焦相机)进行居 中显示。In order to improve the automation and convenience of determining the target position of the target object, the target object can be automatically detected. For example, perform feature extraction on the current camera image to obtain target feature information. The target feature information can be flexibly set according to actual needs. For example, the target feature information can be the feature information of the license plate or the feature information of a person, etc., according to the target feature information Can identify the target object in the current camera screen, and determine the target position of the target object. For example, for an aircraft equipped with a multi-camera system, after the aircraft takes off, the multi-camera system can automatically perform a screen inspection. When the current camera (such as a wide-angle camera) detects a vehicle's illegal parking image, it can automatically identify the violation in the screen. The location of the license plate of the parked vehicle, so that the license plate can be sent to the target camera (for example, a telephoto camera) for centered display in the future.

S103、根据像素映射关系和目标位置确定目标相机中心点的切换角度。S103: Determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position.

其中,切换角度可以包括偏航方向yaw方向上的切换角度(即X轴方向上的切换角度)、俯仰方向pitch方向上的切换角度(即Y轴方向上的切换角度)、以及翻滚方向roll方向上的切换角度(即Z轴方向上的切换角度)等。Wherein, the switching angle may include the switching angle in the yaw direction (that is, the switching angle in the X-axis direction), the switching angle in the pitch direction of the pitch direction (that is, the switching angle in the Y-axis direction), and the roll direction in the roll direction. The switching angle (ie, the switching angle in the Z-axis direction) and so on.

在一些实施方式中,相机控制方法还包括:根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, the camera control method further includes: obtaining the mapped position of the center of the frame of the target camera in the current camera frame according to the pixel mapping relationship.

根据像素映射关系和目标位置确定目标相机中心点的切换角度可以包括:根据映射位置和目标位置确定目标相机中心点的切换角度。Determining the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position may include: determining the switching angle of the center point of the target camera according to the mapping position and the target position.

即,在得到目标相机的画面中心在当前相机画面内的映射位置,以及当前相机画面内的目标物体的目标位置后,可以根据该映射位置和目标位置确定目标相机中心点的切换角度。That is, after obtaining the mapped position of the center of the target camera's frame in the current camera frame and the target position of the target object in the current camera frame, the switching angle of the target camera's center point can be determined according to the mapped position and target position.

具体地,在得到当前相机与目标相机之间的像素映射关系后,可以获取目标相机的画面中心在当前相机画面内的映射位置,例如,若当前相机为广角相机,目标相机为变焦相机,则变焦相机的画面中心在广角相机画面内对应点的映射位置为(dis_1 x,dis_1 y),其计算方式可以如下: Specifically, after the pixel mapping relationship between the current camera and the target camera is obtained, the mapping position of the center of the target camera's frame in the current camera frame can be obtained. For example, if the current camera is a wide-angle camera and the target camera is a zoom camera, then The mapping position of the corresponding point of the zoom camera's frame center in the wide-angle camera frame is (dis_1 x , dis_1 y ), and the calculation method can be as follows:

Figure PCTCN2020071026-appb-000018
Figure PCTCN2020071026-appb-000018

Figure PCTCN2020071026-appb-000019
Figure PCTCN2020071026-appb-000019

Figure PCTCN2020071026-appb-000020
Figure PCTCN2020071026-appb-000020

其中,Homography zoom_fpv表示变焦相机和广角相机之间的像素映射关系,ratio表示变焦相机的倍率,

Figure PCTCN2020071026-appb-000021
表示变焦相机在1倍焦距下X轴方向上的光心位置,
Figure PCTCN2020071026-appb-000022
表示变焦相机在1倍焦距下Y轴方向上的光心位置,W表示变焦相机当前采集到的图像的宽度,H表示变焦相机当前采集到的图像的高度。 Among them, Homography zoom_fpv represents the pixel mapping relationship between the zoom camera and the wide-angle camera, and ratio represents the magnification of the zoom camera.
Figure PCTCN2020071026-appb-000021
Indicates the position of the optical center of the zoom camera in the X-axis direction at 1x focal length,
Figure PCTCN2020071026-appb-000022
It represents the optical center position of the zoom camera in the Y-axis direction at 1x focal length, W represents the width of the image currently captured by the zoom camera, and H represents the height of the image currently captured by the zoom camera.

在一些实施方式中,根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置可以包括:根据像素映射关系获取目标相机的画面中心映射到当前相机的画面中心之间的位置偏差;根据位置偏差确定目标相机的画 面中心在当前相机画面内的映射位置。In some embodiments, according to the pixel mapping relationship, obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.

为了提高映射位置获取的准确性,可以根据不同相机的画面中心的位置偏差来确定映射位置,例如,可以根据当前相机和目标相机之间的像素映射关系,获取目标相机的画面中心映射到当前相机的画面中心之间的位置偏差,然后可以根据该位置偏差确定目标相机的画面中心在当前相机画面内的映射位置。In order to improve the accuracy of obtaining the mapping position, the mapping position can be determined according to the position deviation of the image center of different cameras. For example, according to the pixel mapping relationship between the current camera and the target camera, the image center of the target camera can be mapped to the current camera. The position deviation between the center of the screen of the target camera can then be used to determine the mapping position of the center of the target camera in the current camera screen based on the position deviation.

在一些实施方式中,根据位置偏差确定目标相机的画面中心在当前相机画面内的映射位置可以包括:确定基准物体,获取基准物体到目标相机中心的距离;根据位置偏差和距离确定目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.

为了提高目标相机的画面中心在当前相机画面内的映射位置获取的精准性和可靠性,例如,计算变焦相机的画面中心在广角相机上对应的位置(即映射位置),或者是广角相机的画面中心在长焦相机上对应的位置等,精确计算这个对应的位置需要获知基准物体相对于目标相机的距离,该基准物体可以根据实际需要进行灵活设置,例如,该基准物体可以是目标相机采集到的画面中的某个物体,然后可以通过激光雷达或激光测距仪等检测目标相机中心与基准物体之间的距离,在进行简化计算时可以假设距离为无穷远,或者由用户基于应用场景进行灵活设置。在根据当前相机和目标相机之间的像素映射关系,获取目标相机的画面中心映射到当前相机的画面中心之间的位置偏差后,可以根据该位置偏差,目标相机中心与基准物体之间的距离确定目标相机的画面中心在当前相机画面内的映射位置。In order to improve the accuracy and reliability of the mapping position of the target camera's image center in the current camera image, for example, calculate the corresponding position of the zoom camera's image center on the wide-angle camera (that is, the mapping position), or the image of the wide-angle camera The corresponding position of the center on the telephoto camera, etc., to accurately calculate this corresponding position requires knowing the distance of the reference object relative to the target camera. The reference object can be flexibly set according to actual needs. For example, the reference object can be collected by the target camera. The distance between the center of the target camera and the reference object can be detected by lidar or laser rangefinder. In the simplified calculation, the distance can be assumed to be infinite, or the user can use it based on the application scenario. Flexible settings. According to the pixel mapping relationship between the current camera and the target camera, after obtaining the positional deviation between the center of the target camera and the center of the current camera, the distance between the center of the target camera and the reference object can be obtained according to the positional deviation Determine the mapping position of the target camera's frame center in the current camera frame.

在一些实施方式中,根据映射位置和目标位置确定目标相机中心点的切换角度可以包括:根据映射位置和目标位置,确定目标物体到当前相机的画面中心的偏移量;根据偏移量确定目标相机中心点的切换角度。In some embodiments, determining the switching angle of the center point of the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the current camera screen according to the mapping position and the target position; and determining the target according to the offset. The switching angle of the camera center point.

为了提高切换角度获取的准确性,可以基于目标物体到当前相机的画面中心的偏移量来确定切换角度。例如,如图9所示,根据目标相机的画面中心A在当前相机画面内的映射位置(dis_1x,dis_1y),以及当前相机画面内的目标物体的目标位置B,确定目标物体到当前相机的画面中心的偏移量(dis_x,dis_y),其中,偏移量可以包括X轴方向上的偏移量dis_x,以及Y轴方向上的偏移量dis_y,偏移量的计算公式可以如下:In order to improve the accuracy of acquiring the switching angle, the switching angle may be determined based on the offset of the target object to the center of the screen of the current camera. For example, as shown in Figure 9, according to the mapping position (dis_1x, dis_1y) of the target camera's frame center A in the current camera frame, and the target position B of the target object in the current camera frame, determine the frame of the target object to the current camera The center offset (dis_x, dis_y), where the offset may include the offset dis_x in the X-axis direction and the offset dis_y in the Y-axis direction. The calculation formula for the offset may be as follows:

dis_x=(tar_point_x-center_point_x+dis_1x)*UNIT_CELL_SIZEdis_x=(tar_point_x-center_point_x+dis_1x)*UNIT_CELL_SIZE

dis_y=(tar_point_y-center_point_y+dis_1y)*UNIT_CELL_SIZEdis_y=(tar_point_y-center_point_y+dis_1y)*UNIT_CELL_SIZE

其中,dis_x表示目标物体到当前相机的画面中心的X轴方向上的偏移量,dis_y表示目标物体到当前相机的画面中心的Y轴方向上的偏移量,tar_point_x表示目标物体的目标位置B在X轴方向上的像素坐标值,center_point_x表示画面中心A在X轴方向上的坐标值,dis_1x表示目标相机的画面中心在当前相机画面内X轴方向上的映射位置,UNIT_CELL_SIZE表示一个像素点大小(即边长),tar_point_y表示目标物体的目标位置B在Y轴方向上的像素坐标值,center_point_y表示画面中心A在Y轴方向上的坐标值,dis_1y表示目标相机的画面中心在当前相机画面内Y轴方向上的映射位置。Among them, dis_x represents the offset of the target object in the X-axis direction from the center of the current camera's screen, dis_y represents the offset of the target object in the Y-axis direction from the center of the current camera's screen, and tar_point_x represents the target position B of the target object. The pixel coordinate value in the X-axis direction, center_point_x represents the coordinate value of the screen center A in the X-axis direction, dis_1x represents the mapping position of the target camera's screen center in the X-axis direction in the current camera screen, and UNIT_CELL_SIZE represents the size of a pixel (I.e. side length), tar_point_y represents the pixel coordinate value of the target position B of the target object in the Y-axis direction, center_point_y represents the coordinate value of the screen center A in the Y-axis direction, dis_1y indicates that the screen center of the target camera is in the current camera screen The mapping position in the Y-axis direction.

在得到偏移量后,需要将偏移量转换为切换角度,可以根据偏移量确定目标相机中心点的切换角度。在一些实施方式中,偏移量包括第一偏移量和第二偏移量,切换角度包括第一切换角度和第二切换角度,根据偏移量确定目标相机中心点的切换角度可以包括:根据目标物体在第一方向上到当前相机的画面中心的第一偏移量,确定目标相机中心点的第一切换角度;根据目标物体在第二方向上到当前相机的画面中心的第二偏移量,确定目标相机中心点的第二切换角度。After the offset is obtained, the offset needs to be converted into a switching angle, and the switching angle of the center point of the target camera can be determined according to the offset. In some embodiments, the offset includes a first offset and a second offset, the switching angle includes the first switching angle and the second switching angle, and determining the switching angle of the center point of the target camera according to the offset may include: Determine the first switching angle of the center point of the target camera according to the first offset of the target object in the first direction to the center of the current camera's screen; according to the second offset of the target object in the second direction to the center of the current camera's screen The amount of shift determines the second switching angle of the center point of the target camera.

其中,第一方向和第二方向等可以根据实际需要进行灵活设置,例如,第一方向可以是在X轴上的方向,第二方向可以是在Y轴上的方向,为了提高切换角度确定的精准性,在得到目标物体到当前相机的画面中心的偏移量(dis_x,dis_y)偏移量后,可以得到第一偏移量为dis_x和第二偏移量为dis_y,即目标物体在X轴方向上到当前相机的画面中心的第一偏移量为dis_x,以及目标物体在Y轴方向上到当前相机的画面中心的第二偏移量为dis_y,此时,如图10所示,可以根据目标物体在X轴方向上到当前相机的画面中心的第一偏移量dis_x,确定目标相机中心点的第一切换角度angle_x(即图10中的a_x),以及根据目标物体在Y轴方向上到当前相机的画面中心的第二偏移量dis_y,确定目标相机中心点的第二切换角度angle_y,切换角度的计算公式可以如下:Among them, the first direction and the second direction can be flexibly set according to actual needs. For example, the first direction can be the direction on the X axis, and the second direction can be the direction on the Y axis, which is determined in order to improve the switching angle. Accuracy, after obtaining the offset (dis_x, dis_y) of the target object to the center of the current camera screen, the first offset is dis_x and the second offset is dis_y, that is, the target object is at X The first offset in the axis direction from the center of the current camera's screen is dis_x, and the second offset from the target object in the Y axis direction to the center of the current camera's screen is dis_y. At this time, as shown in Figure 10, The first switching angle angle_x of the center point of the target camera (ie a_x in Figure 10) can be determined according to the first offset dis_x of the target object in the X-axis direction to the center of the screen of the current camera, and according to the target object in the Y-axis The second offset dis_y in the direction to the center of the screen of the current camera determines the second switching angle angle_y of the center point of the target camera. The calculation formula for the switching angle can be as follows:

angle_x=atan(dis_x/current_focal_length)angle_x=atan(dis_x/current_focal_length)

angle_y=atan(dis_y/current_focal_length)angle_y=atan(dis_y/current_focal_length)

其中,current_focal_length(即图10中的c_f_l)表示目标相机的焦距,atan表示反正切函数。Among them, current_focal_length (that is, c_f_l in FIG. 10) represents the focal length of the target camera, and atan represents the arctangent function.

而当采用例如云台之类的机构调整目标相机方向时,angle_x和angle_y到各轴的旋转度数的转换如下所示:When a mechanism such as a pan/tilt is used to adjust the direction of the target camera, the conversion of angle_x and angle_y to the rotation degrees of each axis is as follows:

angle_pitch=angle_yangle_pitch=angle_y

angle_yaw=angle_xangle_yaw=angle_x

其中,angle_pitch表示pitch轴方向上转换度数后的角度,angle_yaw表示yaw轴方向上转换度数后的角度。Among them, angle_pitch represents the angle converted in degrees in the direction of the pitch axis, and angle_yaw represents the angle converted in degrees in the direction of the yaw axis.

综上,可以得到切换角度的总体公式如下:In summary, the overall formula for switching angle can be obtained as follows:

angle_pitch=atan(((tar_point_x-1/2+dis_1x)*UNIT_CELL_SIZE)/current_focal_length)angle_pitch=atan(((tar_point_x-1/2+dis_1x)*UNIT_CELL_SIZE)/current_focal_length)

angle_yaw=atan(((tar_point_y-1/2+dis_1y)*UNIT_CELL_SIZE)/current_focal_length)angle_yaw=atan(((tar_point_y-1/2+dis_1y)*UNIT_CELL_SIZE)/current_focal_length)

其中,angle_pitch即为第二切换角度angle_y,angle_yaw即为第一切换角度angle_x,其他参数表示的含义与上述相同,在此不做赘述。Among them, angle_pitch is the second switching angle angle_y, and angle_yaw is the first switching angle angle_x. The meanings of other parameters are the same as those described above, and will not be repeated here.

在一些实施方式中,根据像素映射关系和目标位置确定目标相机中心点的切换角度之后,相机控制方法还可以包括:根据切换角度控制目标相机进行中心点切换,以使得目标物体位于切换后的目标相机的画面中心。In some embodiments, after determining the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position, the camera control method may further include: controlling the target camera to switch the center point according to the switching angle, so that the target object is located at the switched target. The center of the camera's frame.

在确定目标相机中心点的切换角度后,可以根据切换角度控制目标相机进行中心点切换,从而使得目标物体位于切换后的目标相机的画面中心。After determining the switching angle of the center point of the target camera, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switching.

例如,如图11所示,当选择的目标物体为车牌时,若当前相机为广角相机,目标相机为长焦相机,在广角相机采集到的画面中显示一个汽车,当需要清楚查看这个汽车的车牌是多少,则可以接收用户点击车牌的位置,然后按照上述方式,基于长焦相机的画面中心在广角相机画面内的映射位置,以及广角相机画面内的车牌的目标位置,确定长焦相机中心点的切换角度,基于切换角度切换到长焦相机,并控制长焦相机进行中心点切换,使得车牌位于切换后的目标相机的画面中心,以便可以通过长焦相机以预设倍率清晰查看车牌为粤B XXX。同时,目标相机包括特定类型的相机时,还可相应采集、计算或显示目标物体的其他信息,例如目标物体相对于目标相机的距离,或者目标物体的温度,或者目标物体的高度信息等。For example, as shown in Figure 11, when the selected target object is a license plate, if the current camera is a wide-angle camera and the target camera is a telephoto camera, a car is displayed in the picture collected by the wide-angle camera. How much is the license plate, you can receive the location where the user clicks on the license plate, and then determine the telephoto camera center based on the mapping position of the telephoto camera's screen center in the wide-angle camera screen and the target location of the license plate in the wide-angle camera screen according to the above method Point switching angle, switch to the telephoto camera based on the switching angle, and control the telephoto camera to switch the center point, so that the license plate is located in the center of the screen of the target camera after the switch, so that the license plate can be clearly viewed through the telephoto camera at the preset magnification Guangdong B XXX. At the same time, when the target camera includes a specific type of camera, other information of the target object can be correspondingly collected, calculated, or displayed, such as the distance of the target object relative to the target camera, or the temperature of the target object, or the height information of the target object.

在一些实施方式中,根据切换角度控制目标相机进行中心点切换,以使得目标物体位于切换后的目标相机的画面中心可以包括:控制目标相机在第一方向上切换第一切换角度,以及在第二方向上切换第二切换角度,得到切换后的目标相机;控制目标物体位于切换后的目标相机的画面中心。In some embodiments, controlling the target camera to switch the center point according to the switching angle so that the target object is located at the center of the screen of the target camera after the switching may include: controlling the target camera to switch the first switching angle in the first direction, and in the first direction. The second switching angle is switched in the two directions to obtain the switched target camera; the control target object is located at the center of the screen of the switched target camera.

为了提高目标相机切换的精准性,当切换角度包括第一切换角度和第二切 换角度时,可以控制目标相机在第一方向上切换第一切换角度,以及在第二方向上切换第二切换角度,得到切换后的目标相机。其中,第一方向和第二方向等可以根据实际需要进行灵活设置,例如,第一方向可以是在X轴上的方向,第二方向可以是在Y轴上的方向。此时,可以控制目标物体位于切换后的目标相机的画面中心,实现了快速及准确地控制多相机系统切换到所需的画面。In order to improve the accuracy of switching the target camera, when the switching angle includes the first switching angle and the second switching angle, the target camera can be controlled to switch the first switching angle in the first direction and the second switching angle in the second direction. , Get the target camera after switching. The first direction and the second direction can be flexibly set according to actual needs. For example, the first direction can be a direction on the X axis, and the second direction can be a direction on the Y axis. At this time, the target object can be controlled to be located in the center of the screen of the target camera after the switch, and the multi-camera system can be quickly and accurately controlled to switch to the desired screen.

在一些实施方式中,根据切换角度控制目标相机进行中心点切换之后,相机控制方法还可以包括:接收录制指令、拍摄指令、测距指令或测温指令;根据录制指令控制目标相机对采集到的目标物体位于中心的画面进行录制,或者根据拍摄指令控制目标相机对采集到的目标物体位于中心的画面进行拍摄,或者根据测距指令控制目标相机对目标物体进行测距,或者根据测温指令控制目标相机对目标物体进行测温。In some embodiments, after controlling the target camera to switch the center point according to the switching angle, the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; Record the picture with the target object in the center, or control the target camera to shoot the captured picture with the target object in the center according to the shooting instruction, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control according to the temperature measurement instruction The target camera measures the temperature of the target object.

为了提高对对相机系统控制的便捷性,在多相机系统中,用户在某个相机画面中发现了自己感兴趣的人或物,需要快速切换到另一个相机上对该人或物进行观察拍摄,例如,在广角相机找到感兴趣的人或物,希望看清人或物的细节,需要切换到长焦相机;在广角相机发现了需要测温的物体,需要切换到红外相机对该物体进行测温,在广角相机发现了需要进行测距的物体,需要切换到激光测距相机对该物体进行测距;等等。可以自动切换相机的角度,在切换后的相机中将该人或物进行居中,再进行相应的变焦、测温、或测距等操作,实现了准确在切换后的相机中(例如广角相机)将人或物放到视野中心,无需反复调节相机的位置,即可完成对人或物进行特定观测与测量。具体地,可以接收用户输入的录制指令,根据录制指令控制目标相机对采集到的目标物体位于中心的画面进行录制;或者,可以接收用户输入的拍摄指令,根据拍摄指令控制目标相机对采集到的目标物体位于中心的画面进行拍摄,或者,接收用户输入的测距指令,根据测距指令控制目标相机对目标物体进行测距;或者,接收用户输入的测温指令,根据测温指令控制目标相机对目标物体进行测温;或者,接收用户输入的对焦指令,根据对焦指令控制目标相机对目标物体进行对焦;或者,接收用户输入的变焦指令,根据变焦指令控制目标相机对目标物体进行变焦。从而能够快速完成多相机之间的协同操作,实现多相机联动,提高对相机控制的效率。In order to improve the convenience of controlling the camera system, in a multi-camera system, the user finds a person or object of interest in a certain camera screen, and needs to quickly switch to another camera to observe and shoot the person or object For example, if you find a person or object of interest in a wide-angle camera, you need to switch to a telephoto camera if you want to see the details of the person or object; if you find an object that needs temperature measurement in the wide-angle camera, you need to switch to an infrared camera to perform For temperature measurement, an object that needs to be ranged is found on the wide-angle camera, and it needs to be switched to the laser rangefinder camera to range the object; and so on. It can automatically switch the angle of the camera, center the person or object in the switched camera, and then perform the corresponding zoom, temperature measurement, or distance measurement, etc., to achieve accurate in the switched camera (such as a wide-angle camera) Place the person or object in the center of the field of view, without having to repeatedly adjust the position of the camera, you can complete the specific observation and measurement of the person or object. Specifically, the recording instruction input by the user can be received, and the target camera can be controlled according to the recording instruction to record the captured frame of the target object in the center; or the shooting instruction input by the user can be received, and the target camera can be controlled to capture the captured image according to the shooting instruction. Take a picture with the target object in the center, or receive the distance measurement instruction input by the user, and control the target camera according to the distance measurement instruction to measure the distance of the target object; or receive the temperature measurement instruction input by the user and control the target camera according to the temperature measurement instruction Measure the temperature of the target object; or, receive a focus instruction input by the user, and control the target camera to focus on the target object according to the focus instruction; or receive a zoom instruction input by the user, and control the target camera to zoom the target object according to the zoom instruction. Therefore, the coordinated operation between multiple cameras can be quickly completed, the linkage of multiple cameras can be realized, and the efficiency of camera control can be improved.

本申请实施例可以获取当前相机与目标相机之间的像素映射关系,以及确定当前相机画面内的目标物体的目标位置,然后可以根据像素映射关系和目标 位置确定目标相机中心点的切换角度,以便后续可以根据切换角度控制目标相机进行中心点切换,以使得目标物体位于切换后的目标相机的画面中心。该方案通过不同相机之间的像素映射关系和目标位置确定目标相机的切换角度,以便目标物体可以位于基于切换角度切换后的目标相机的画面中心,提高了对多相机协同控制的便捷性,以及提高了控制目标物体位于画面中心的准确性,即提高了对相机控制的准确性和便捷性。The embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera, and determine the target position of the target object in the current camera frame, and then determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position, so as Subsequently, the target camera can be controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switch. The solution determines the switching angle of the target camera through the pixel mapping relationship between different cameras and the target position, so that the target object can be located in the center of the target camera screen after switching based on the switching angle, which improves the convenience of coordinated control of multiple cameras, and The accuracy of controlling the target object at the center of the screen is improved, that is, the accuracy and convenience of controlling the camera are improved.

根据上述实施例所描述的相机控制方法,以下将作进一步详细说明。According to the camera control method described in the foregoing embodiment, the following will further describe in detail.

请参照图12,图12为本申请实施例提供的相机控制方法的另一流程示意图。该相机控制方法可以应用于利用云台控制相机拍摄方向特别是控制目标相机拍摄方向的多相机系统(即具有云台的多相机系统)中,其可以包括一个或多个云台;例如,利用一个云台控制当前相机的拍摄方向,同时利用多个云台调整多个目标相机的拍摄方向;或者利用机械臂控制当前相机的拍摄方向,同时利用一个云台控制目标相机的拍摄方向等。上述多相机系统用于对多相机进行协同控制,以提高了对相机控制的准确性、效率和便捷性,如图12所示,该相机控制方法的流程可以如下:Please refer to FIG. 12, which is a schematic diagram of another process of a camera control method provided by an embodiment of this application. The camera control method can be applied to a multi-camera system (that is, a multi-camera system with a pan-tilt) that uses a pan-tilt to control the shooting direction of the camera, particularly to control the shooting direction of the target camera, which may include one or more pan-tilts; for example, using One PTZ controls the shooting direction of the current camera, while using multiple PTZ to adjust the shooting direction of multiple target cameras; or using a robotic arm to control the shooting direction of the current camera, while using a PTZ to control the shooting direction of the target camera, etc. The above-mentioned multi-camera system is used for coordinated control of multiple cameras to improve the accuracy, efficiency and convenience of camera control. As shown in FIG. 12, the process of the camera control method may be as follows:

S201、获取多相机系统中当前相机与目标相机之间的像素映射关系。S201: Acquire a pixel mapping relationship between the current camera and the target camera in the multi-camera system.

S202、根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置。S202: According to the pixel mapping relationship, obtain the mapping position of the frame center of the target camera in the current camera frame.

S203、确定当前相机画面内的目标物体的目标位置。S203: Determine the target position of the target object in the current camera frame.

S204、根据映射位置和目标位置确定搭载目标相机的云台的偏转角度。S204: Determine the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position.

S205、根据偏转角度控制云台偏转,以使得目标物体位于偏转后的目标相机的画面中心。S205: Control the deflection of the pan/tilt according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.

此时,云台的偏转角度包括上文所述的angle_pitch和angle_yaw。At this time, the deflection angle of the pan/tilt includes angle_pitch and angle_yaw described above.

在一些实施方式中,根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置可以包括:根据像素映射关系获取目标相机的画面中心映射到当前相机的画面中心之间的位置偏差;根据位置偏差确定目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, according to the pixel mapping relationship, obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.

在一些实施方式中,根据位置偏差确定目标相机的画面中心在当前相机画面内的映射位置可以包括:确定基准物体,获取基准物体到目标相机中心的距离;根据位置偏差和距离确定目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.

在一些实施方式中,确定当前相机画面内的目标物体的目标位置可以包括:在当前相机采集到的画面内,接收用户输入的选择指令;根据选择指令确定当前相机画面内的目标物体的目标位置。In some embodiments, determining the target position of the target object in the current camera frame may include: receiving a selection instruction input by the user in the frame captured by the current camera; and determining the target position of the target object in the current camera frame according to the selection instruction. .

在一些实施方式中,确定当前相机画面内的目标物体可以包括:对当前相机画面进行特征提取,得到目标特征信息;根据目标特征信息识别当前相机画面内的目标物体,并确定目标物体的目标位置。In some embodiments, determining the target object in the current camera frame may include: extracting features of the current camera frame to obtain target feature information; identifying the target object in the current camera frame according to the target feature information, and determining the target position of the target object .

在一些实施方式中,获取当前相机与目标相机之间的像素映射关系可以包括:获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵;根据当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵,确定当前相机与目标相机之间的转换矩阵,得到当前相机与目标相机之间的像素映射关系。In some embodiments, obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix. The internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.

在一些实施方式中,获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵可以包括:获取当前相机和目标相机在多相机系统中的位置关系;根据位置关系获取当前相机的内参,以及获取目标相机的内参和外参;根据当前相机的内参构建当前相机的内参矩阵;根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵。In some embodiments, obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.

在一些实施方式中,获取当前相机和目标相机在多相机系统中的位置关系可以包括:获取标定图像,提取标定图像中的特征点;分别通过当前相机和目标相机确定特征点的位置;根据特征点的位置,在多相机系统中建立当前相机和目标相机之间的位置关系,以使得当前相机和目标相机均能采集到特征点。In some embodiments, acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; determining the location of the feature points through the current camera and the target camera respectively; according to the features For the position of the point, the positional relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect feature points.

在一些实施方式中,根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵可以包括:根据目标相机在预设倍焦距下的内外参构建目标相机的预设内参矩阵和预设外参矩阵;获取目标相机当前的倍率;根据目标相机当前的倍率、预设内参矩阵和预设外参矩阵,确定目标相机的内参矩阵和外参矩阵。In some embodiments, constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.

在一些实施方式中,获取目标相机当前的倍率可以包括:获取目标相机当前的实际焦距,根据实际焦距确定目标相机当前的倍率;或者,检测目标相机与参照物体之间的物理距离,基于物理距离设置目标相机当前的倍率。In some embodiments, acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.

在一些实施方式中,根据目标相机的当前倍率、预设内参矩阵,确定目标相机的内参矩阵可以包括:获取目标相机当前采集到的图像的宽度和高度;根据目标相机当前的倍率、预设内参矩阵、宽度和高度,确定目标相机的内参矩阵。In some embodiments, determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.

在一些实施方式中,根据映射位置和目标位置确定搭载目标相机的云台的偏转角度可以包括:根据映射位置和目标位置,确定目标物体到当前相机的画面中心的偏移量;根据偏移量确定搭载目标相机的云台的偏转角度。In some embodiments, determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the current camera's screen according to the mapping position and the target position; and according to the offset Determine the deflection angle of the gimbal with the target camera.

在一些实施方式中,偏移量包括第一偏移量和第二偏移量,偏转角度包括俯仰偏转角度和偏航偏转角度,根据偏移量确定搭载目标相机的云台的偏转角度可以包括:根据目标物体在第一方向上到当前相机的画面中心的第一偏移量,确定搭载目标相机的云台的俯仰偏转角度;根据目标物体在第二方向上到当前相机的画面中心的第二偏移量,确定搭载目标相机的云台的偏航偏转角度。In some embodiments, the offset includes a first offset and a second offset, the yaw angle includes a pitch yaw angle and a yaw yaw angle, and determining the yaw angle of the pan/tilt equipped with the target camera according to the offset may include : According to the first offset of the target object in the first direction to the center of the screen of the current camera, determine the pitch and deflection angle of the pan/tilt equipped with the target camera; according to the first offset of the target object in the second direction to the center of the screen of the current camera The second offset is to determine the yaw deflection angle of the gimbal equipped with the target camera.

在一些实施方式中,根据偏转角度控制云台偏转,以使得目标物体位于偏转后的目标相机的画面中心可以包括:控制云台在俯仰方向上偏转俯仰偏转角度,以及在偏航方向上偏转偏航偏转角度,得到偏转后的目标相机;控制目标物体位于偏转后的目标相机的画面中心。In some embodiments, controlling the yaw of the gimbal according to the yaw angle so that the target object is located in the center of the image of the target camera after the deflection may include: controlling the gimbal to yaw the pitch yaw angle in the pitch direction and yaw the yaw direction. The heading deflection angle is used to obtain the deflected target camera; the target object is controlled to be located at the center of the frame of the deflected target camera.

其中,偏转角度可以按照上述的切换角度进行理解,偏转角度的计算方式与上述切换角度的计算方式类似,在此不做赘述。Wherein, the deflection angle can be understood according to the above-mentioned switching angle, and the calculation method of the deflection angle is similar to the above-mentioned switching angle calculation method, and will not be repeated here.

在一些实施方式中,根据偏转角度控制云台偏转之后,相机控制方法还可以包括:接收录制指令、拍摄指令、测距指令或测温指令;根据录制指令控制目标相机对采集到的目标物体位于中心的画面进行录制,或者根据拍摄指令控制目标相机对采集到的目标物体位于中心的画面进行拍摄,或者根据测距指令控制目标相机对目标物体进行测距,或者根据测温指令控制目标相机对目标物体进行测温。In some embodiments, after controlling the deflection of the pan/tilt according to the deflection angle, the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; and controlling the target camera to locate the collected target object according to the recording instruction. Record the center image, or control the target camera according to the shooting instruction to shoot the captured image of the target object in the center, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control the target camera to measure the distance according to the temperature measurement instruction The temperature of the target object is measured.

在一些实施方式中,当前相机和目标相机在多相机系统中的相对位置固定。In some embodiments, the relative positions of the current camera and the target camera in the multi-camera system are fixed.

在一些实施方式中,当前相机也搭载于云台上。In some embodiments, the current camera is also mounted on the pan-tilt.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对相机控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the camera control method above, which will not be repeated here.

本申请实施例可以获取多相机系统中当前相机与目标相机之间的像素映射关系,以及根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置,然后可以确定当前相机画面内的目标物体的目标位置,根据映射位置和目标位置确定搭载目标相机的云台的偏转角度,此时可以根据偏转角度控制云台偏转,以使得目标物体位于偏转后的目标相机的画面中心。该方案通过不同相机之间的像素映射关系确定映射位置,并基于映射位置和目标位置确定搭载目标相机的云台的偏转角度,以便目标物体可以位于偏转后的目标相机的 画面中心,提高了对多相机协同控制的便捷性和效率,以及提高了控制目标物体位于目标相机画面中心的准确性。The embodiment of the application can obtain the pixel mapping relationship between the current camera and the target camera in the multi-camera system, and according to the pixel mapping relationship, obtain the mapping position of the frame center of the target camera in the current camera frame, and then determine the current camera frame The target position of the target object is determined according to the mapping position and the target position to determine the deflection angle of the pan/tilt equipped with the target camera. At this time, the deflection of the pan/tilt can be controlled according to the deflection angle, so that the target object is located at the center of the screen of the deflected target camera. This solution determines the mapping position through the pixel mapping relationship between different cameras, and determines the deflection angle of the PTZ equipped with the target camera based on the mapping position and the target position, so that the target object can be located in the center of the target camera's screen after the deflection. The convenience and efficiency of multi-camera coordinated control, and the accuracy of controlling the target object in the center of the target camera screen is improved.

根据上述实施例所描述的相机控制方法,以下将作进一步详细说明。According to the camera control method described in the foregoing embodiment, the following will further describe in detail.

请参照图13,图13为本申请实施例提供的相机控制方法的另一流程示意图,该相机控制方法可以应用于多相机系统、云台相机、或可移动平台等,如图13所示,该相机控制方法的流程可以如下:Please refer to FIG. 13, which is a schematic diagram of another flow of a camera control method provided by an embodiment of the application. The camera control method can be applied to a multi-camera system, a pan-tilt camera, or a movable platform, etc., as shown in FIG. 13, The process of the camera control method can be as follows:

S301、控制多相机系统中当前相机采集画面,并显示画面。S301: Control the current camera in the multi-camera system to capture images and display the images.

S302、基于显示的画面,接收用户输入的选择指令。S302: Based on the displayed screen, receive a selection instruction input by the user.

S303、根据选择指令确定当前相机画面内的目标物体的目标位置。S303: Determine the target position of the target object in the current camera frame according to the selection instruction.

S304、获取多相机系统中目标相机的画面中心在当前相机画面内的映射位置。S304: Obtain a mapping position of the center of the target camera frame in the current camera frame in the multi-camera system.

S305、根据映射位置和目标位置确定目标相机的偏转角度。S305: Determine the deflection angle of the target camera according to the mapping position and the target position.

S306、根据偏转角度控制目标相机进行偏转,以使得目标物体位于偏转后的目标相机的画面中心。S306. Control the target camera to deflect according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection.

在一些实施方式中,基于显示的画面,接收用户输入的选择指令可以包括:在显示的画面内接收用户输入的点击操作;确定点击操作在画面内的区域,根据区域生成选择指令。In some embodiments, based on the displayed screen, receiving the selection instruction input by the user may include: receiving a click operation input by the user in the displayed screen; determining the area of the click operation in the screen, and generating the selection instruction according to the area.

在一些实施方式中,基于显示的画面,接收用户输入的选择指令可以包括:对画面进行特征提取,得到目标特征信息;根据目标特征信息确定画面内存在的物体,得到物体集合;在显示的画面内显示物体集合的物体标识列表;接收用户在物体标识列表内输入的选择指令。In some embodiments, based on the displayed screen, receiving a selection instruction input by the user may include: extracting features of the screen to obtain target feature information; determining objects in the screen according to the target feature information to obtain a collection of objects; The object identification list of the object set is displayed inside; the selection instruction input by the user in the object identification list is received.

在一些实施方式中,根据偏转角度控制目标相机进行偏转之后,相机控制方法还可以包括:接收录制指令、拍摄指令、测距指令或测温指令;根据录制指令控制目标相机对采集到的画面进行录制,或者根据拍摄指令控制目标相机对采集到的画面进行拍摄,或者根据测距指令控制目标相机对目标物体进行测距,或者根据测温指令控制目标相机对目标物体进行测温。In some embodiments, after controlling the target camera to deflect according to the deflection angle, the camera control method may further include: receiving a recording instruction, a shooting instruction, a distance measurement instruction, or a temperature measurement instruction; Recording, or control the target camera to shoot the captured image according to the shooting instruction, or control the target camera to measure the distance of the target object according to the distance measurement instruction, or control the target camera to measure the temperature of the target object according to the temperature measurement instruction.

在一些实施方式中,获取多相机系统中目标相机的画面中心在当前相机画面内的映射位置可以包括:获取多相机系统中当前相机与目标相机之间的像素映射关系;根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, obtaining the mapping position of the center of the target camera in the multi-camera system in the current camera frame may include: obtaining the pixel mapping relationship between the current camera and the target camera in the multi-camera system; and obtaining the pixel mapping relationship according to the pixel mapping relationship. The mapping position of the target camera's frame center in the current camera frame.

在一些实施方式中,根据像素映射关系,获取目标相机的画面中心在当前 相机画面内的映射位置可以包括:根据像素映射关系获取目标相机的画面中心映射到当前相机的画面中心之间的位置偏差;根据位置偏差确定目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, according to the pixel mapping relationship, obtaining the mapping position of the frame center of the target camera in the current camera frame may include: obtaining the position deviation between the frame center of the target camera and the frame center of the current camera according to the pixel mapping relationship. ; Determine the mapping position of the target camera's frame center in the current camera frame according to the position deviation.

在一些实施方式中,根据位置偏差确定目标相机的画面中心在当前相机画面内的映射位置可以包括:确定基准物体,获取基准物体到目标相机中心的距离;根据位置偏差和距离确定目标相机的画面中心在当前相机画面内的映射位置。In some embodiments, determining the mapping position of the center of the target camera's frame in the current camera frame according to the position deviation may include: determining a reference object, and obtaining the distance from the reference object to the center of the target camera; determining the frame of the target camera according to the position deviation and distance The center of the mapping position in the current camera frame.

在一些实施方式中,获取当前相机与目标相机之间的像素映射关系可以包括:获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵;根据当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵,确定当前相机与目标相机之间的转换矩阵,得到当前相机与目标相机之间的像素映射关系。In some embodiments, obtaining the pixel mapping relationship between the current camera and the target camera may include: obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; according to the internal parameter matrix of the current camera, and the target camera's internal parameter matrix. The internal parameter matrix and the external parameter matrix determine the conversion matrix between the current camera and the target camera, and obtain the pixel mapping relationship between the current camera and the target camera.

在一些实施方式中,获取当前相机的内参矩阵,以及目标相机的内参矩阵和外参矩阵可以包括:获取当前相机和目标相机在多相机系统中的位置关系;根据位置关系获取当前相机的内参,以及获取目标相机的内参和外参;根据当前相机的内参构建当前相机的内参矩阵;根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵。In some embodiments, obtaining the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera may include: obtaining the positional relationship between the current camera and the target camera in the multi-camera system; obtaining the internal parameter of the current camera according to the positional relationship, And obtain the internal parameters and external parameters of the target camera; construct the internal parameter matrix of the current camera according to the internal parameters of the current camera; construct the internal parameter matrix of the target camera according to the internal parameters of the target camera, and construct the external parameter matrix of the target camera according to the external parameters of the target camera.

在一些实施方式中,获取当前相机和目标相机在多相机系统中的位置关系可以包括:获取标定图像,提取标定图像中的特征点;分别通过当前相机和目标相机确定特征点的位置;根据特征点的位置,在多相机系统中建立当前相机和目标相机之间的位置关系,以使得当前相机和目标相机均能采集到特征点。In some embodiments, acquiring the positional relationship between the current camera and the target camera in the multi-camera system may include: acquiring a calibration image, extracting feature points in the calibration image; determining the location of the feature points through the current camera and the target camera respectively; according to the features For the position of the point, the positional relationship between the current camera and the target camera is established in the multi-camera system, so that both the current camera and the target camera can collect feature points.

在一些实施方式中,根据目标相机的内参构建目标相机的内参矩阵,以及根据目标相机的外参构建目标相机的外参矩阵可以包括:根据目标相机在预设倍焦距下的内外参构建目标相机的预设内参矩阵和预设外参矩阵;获取目标相机当前的倍率;根据目标相机当前的倍率、预设内参矩阵和预设外参矩阵,确定目标相机的内参矩阵和外参矩阵。In some embodiments, constructing the internal parameter matrix of the target camera according to the internal parameters of the target camera, and constructing the external parameter matrix of the target camera according to the external parameters of the target camera may include: constructing the target camera according to the internal and external parameters of the target camera at a preset focal length Obtain the current magnification of the target camera; determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix.

在一些实施方式中,获取目标相机当前的倍率可以包括:获取目标相机当前的实际焦距,根据实际焦距确定目标相机当前的倍率;或者,检测目标相机与参照物体之间的物理距离,基于物理距离设置目标相机当前的倍率。In some embodiments, acquiring the current magnification of the target camera may include: acquiring the current actual focal length of the target camera, and determining the current magnification of the target camera according to the actual focal length; or, detecting the physical distance between the target camera and the reference object, based on the physical distance Set the current magnification of the target camera.

在一些实施方式中,根据目标相机的当前倍率、预设内参矩阵,确定目标相机的内参矩阵可以包括:获取目标相机当前采集到的图像的宽度和高度;根据目标相机当前的倍率、预设内参矩阵、宽度和高度,确定目标相机的内参矩 阵。In some embodiments, determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix may include: obtaining the width and height of the image currently collected by the target camera; and preset internal parameter according to the current magnification of the target camera The matrix, width and height determine the internal parameter matrix of the target camera.

在一些实施方式中,根据映射位置和目标位置确定目标相机的偏转角度可以包括:根据映射位置和目标位置,确定目标物体到当前相机的画面中心的偏移量;根据偏移量确定目标相机的偏转角度。In some embodiments, determining the deflection angle of the target camera according to the mapping position and the target position may include: determining the offset of the target object to the center of the screen of the current camera according to the mapping position and the target position; and determining the offset of the target camera according to the offset. Deflection angle.

在一些实施方式中,偏移量包括第一偏移量和第二偏移量,偏转角度包括第一偏转角度和第二偏转角度,根据偏移量确定目标相机的偏转角度可以包括:根据目标物体在第一方向上到当前相机的画面中心的第一偏移量,确定目标相机的第一偏转角度;根据目标物体在第二方向上到当前相机的画面中心的第二偏移量,确定目标相机的第二偏转角度。In some embodiments, the offset includes a first offset and a second offset, the deflection angle includes the first deflection angle and the second deflection angle, and determining the deflection angle of the target camera according to the offset may include: The first offset of the object in the first direction to the center of the current camera's screen determines the first deflection angle of the target camera; determines the second offset of the target object in the second direction to the center of the current camera's screen The second deflection angle of the target camera.

其中,偏转角度可以按照上述的切换角度进行理解,偏转角度的计算方式与上述切换角度的计算方式类似,在此不做赘述。Wherein, the deflection angle can be understood according to the above-mentioned switching angle, and the calculation method of the deflection angle is similar to the above-mentioned switching angle calculation method, and will not be repeated here.

在一些实施方式中,根据偏转角度控制目标相机进行偏转,以使得目标物体位于偏转后的目标相机的画面中心可以包括:控制目标相机在第一方向上偏转第一偏转角度,以及在第二方向上偏转第二偏转角度,得到偏转后的目标相机;控制目标物体位于偏转后的目标相机的画面中心。In some embodiments, controlling the target camera to deflect according to the deflection angle so that the target object is located in the center of the deflected target camera frame may include: controlling the target camera to deflect in a first direction by a first deflection angle, and in a second direction Deflection upward to the second deflection angle to obtain the deflected target camera; control the target object to be located at the center of the frame of the deflected target camera.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对相机控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, please refer to the detailed description of the camera control method above, which will not be repeated here.

本申请实施例可以控制多相机系统中当前相机采集画面,并显示画面,然后基于显示的画面,接收用户输入的选择指令。其次,根据选择指令确定当前相机画面内的目标物体的目标位置,以及获取多相机系统中目标相机的画面中心在当前相机画面内的映射位置。此时,可以根据映射位置和目标位置确定目标相机的偏转角度,根据偏转角度控制目标相机进行偏转,以使得目标物体位于偏转后的目标相机的画面中心。该方案通过映射位置和目标位置确定目标相机的偏转角度,以便目标物体可以位于偏转后的目标相机的画面中心,提高了对多相机协同控制的便捷性和效率,以及提高了控制目标物体位于目标相机画面中心的准确性。The embodiment of the present application can control the current camera in the multi-camera system to collect a picture, display the picture, and then receive a selection instruction input by the user based on the displayed picture. Secondly, according to the selection instruction, the target position of the target object in the current camera frame is determined, and the mapping position of the center of the target camera frame in the current camera frame in the multi-camera system is obtained. At this time, the deflection angle of the target camera can be determined according to the mapping position and the target position, and the target camera can be controlled to deflect according to the deflection angle, so that the target object is located at the center of the screen of the target camera after the deflection. The solution determines the deflection angle of the target camera by mapping the position and the target position, so that the target object can be located in the center of the target camera's screen after the deflection, which improves the convenience and efficiency of the coordinated control of multiple cameras, and improves the control of the target object at the target The accuracy of the center of the camera frame.

请参阅图14,图14是本申请一实施例提供的多相机系统的示意性框图。该多相机系统11可以包括处理器111和存储器112,处理器111和存储器112通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 14, which is a schematic block diagram of a multi-camera system according to an embodiment of the present application. The multi-camera system 11 may include a processor 111 and a memory 112, and the processor 111 and the memory 112 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.

具体地,处理器111可以是微控制单元(Micro-controllerUnit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal  Processor,DSP)等。Specifically, the processor 111 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.

具体地,存储器112可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等,可以用于存储计算机程序。Specifically, the memory 112 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.

该多相机系统11还可以包括多个相机,每个相机的类型可以根据实际需要进行灵活设置。The multi-camera system 11 may also include multiple cameras, and the type of each camera can be flexibly set according to actual needs.

其中,处理器111用于调用存储在存储器112中的计算机程序,并在执行计算机程序时实现本申请实施例提供的相机控制方法,例如可以执行如下步骤:The processor 111 is configured to call a computer program stored in the memory 112, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:

获取当前相机与目标相机之间的像素映射关系,确定当前相机画面内的目标物体的目标位置,根据像素映射关系和目标位置确定目标相机中心点的切换角度。Obtain the pixel mapping relationship between the current camera and the target camera, determine the target position of the target object in the current camera frame, and determine the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对相机控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the camera control method above, which will not be repeated here.

请参阅图15,图15是本申请一实施例提供的云台相机的示意性框图。该云台相机12可以包括处理器121和存储器122,处理器121和存储器122通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 15. FIG. 15 is a schematic block diagram of a pan-tilt camera according to an embodiment of the present application. The pan/tilt camera 12 may include a processor 121 and a memory 122, and the processor 121 and the memory 122 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.

具体地,处理器121可以是微控制单元(Micro-controllerUnit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 121 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.

具体地,存储器122可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等,可以用于存储计算机程序。Specifically, the memory 122 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.

该云台相机12还可以包括云台和多个相机,每个相机的类型可以根据实际需要进行灵活设置,云台用于搭载多个相机。The pan-tilt camera 12 may also include a pan-tilt and multiple cameras. The type of each camera can be flexibly set according to actual needs. The pan-tilt is used to carry multiple cameras.

其中,处理器121用于调用存储在存储器122中的计算机程序,并在执行计算机程序时实现本申请实施例提供的相机控制方法,例如可以执行如下步骤:The processor 121 is configured to call a computer program stored in the memory 122, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:

获取多个相机中当前相机与目标相机之间的像素映射关系;根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置;确定当前相机画面内的目标物体的目标位置;根据映射位置和目标位置确定搭载目标相机的云台的偏转角度;根据偏转角度控制云台偏转,以使得目标物体位于偏转后的目标相机的画面中心。Obtain the pixel mapping relationship between the current camera and the target camera among multiple cameras; obtain the mapping position of the center of the target camera's frame in the current camera frame according to the pixel mapping relationship; determine the target position of the target object in the current camera frame; according to The mapping position and the target position determine the deflection angle of the PTZ equipped with the target camera; the deflection of the PTZ is controlled according to the deflection angle, so that the target object is located at the center of the screen of the deflection target camera.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对相机控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the camera control method above, which will not be repeated here.

请参阅图16,图16是本申请一实施例提供的可移动平台的示意性框图。该可移动平台13可以包括处理器131和存储器132,处理器131和存储器132通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 16, which is a schematic block diagram of a movable platform provided by an embodiment of the present application. The mobile platform 13 may include a processor 131 and a memory 132, and the processor 131 and the memory 132 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.

其中,该可移动平台13可以包括移动终端、无人机、机器人或无人驾驶车辆等。Wherein, the movable platform 13 may include a mobile terminal, a drone, a robot, or an unmanned vehicle, etc.

具体地,处理器131可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 131 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.

具体地,存储器132可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等,可以用于存储计算机程序。Specifically, the memory 132 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc., and may be used to store computer programs.

该可移动平台13还可以包括云台和多个相机,每个相机的类型可以根据实际需要进行灵活设置,云台安装在可移动平台的本体上,多个相机搭载在云台上。The movable platform 13 may also include a pan-tilt and multiple cameras. The type of each camera can be flexibly set according to actual needs. The pan-tilt is installed on the body of the movable platform, and multiple cameras are mounted on the pan-tilt.

其中,处理器131用于调用存储在存储器132中的计算机程序,并在执行计算机程序时实现本申请实施例提供的相机控制方法,例如可以执行如下步骤:The processor 131 is configured to call a computer program stored in the memory 132, and implement the camera control method provided in the embodiment of the present application when the computer program is executed. For example, the following steps may be performed:

获取多个相机中当前相机与目标相机之间的像素映射关系;根据像素映射关系,获取目标相机的画面中心在当前相机画面内的映射位置;确定当前相机画面内的目标物体的目标位置;根据映射位置和目标位置确定搭载目标相机的云台的偏转角度;根据偏转角度控制云台偏转,以使得目标物体位于偏转后的目标相机的画面中心。Obtain the pixel mapping relationship between the current camera and the target camera among multiple cameras; obtain the mapping position of the center of the target camera's frame in the current camera frame according to the pixel mapping relationship; determine the target position of the target object in the current camera frame; according to The mapping position and the target position determine the deflection angle of the PTZ equipped with the target camera; the deflection of the PTZ is controlled according to the deflection angle, so that the target object is located in the center of the screen of the deflection target camera.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对相机控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the camera control method above, which will not be repeated here.

本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现本申请实施例提供的相机控制方法。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the present application The camera control method provided by the embodiment.

其中,计算机可读存储介质可以是前述任一实施例所述的多相机系统、云台相机、或可移动平台的内部存储单元,例如云台相机的硬盘或内存。计算机可读存储介质也可以是云台相机的外部存储设备,例如云台相机上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be the multi-camera system, pan-tilt camera, or internal storage unit of the movable platform described in any of the foregoing embodiments, such as the hard disk or memory of the pan-tilt camera. The computer-readable storage medium can also be an external storage device of the pan/tilt camera, such as a plug-in hard disk equipped on the pan/tilt camera, a Smart Media Card (SMC), a Secure Digital (SD) card, and a flash memory. Card (Flash Card), etc.

由于该计算机可读存储介质中所存储的计算机程序,可以执行本申请实施 例所提供的任一种相机控制方法,因此,可以实现本申请实施例所提供的任一种相机控制方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the computer program stored in the computer-readable storage medium can execute any camera control method provided in the embodiments of the present application, it can implement what can be achieved by any camera control method provided in the embodiments of the present application. For the beneficial effects of, refer to the previous embodiment for details, and will not be repeated here.

应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of this application and the appended claims, unless the context clearly indicates other circumstances, the singular forms "a", "an" and "the" are intended to include plural forms.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or system. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (56)

一种相机控制方法,其特征在于,包括:A camera control method, characterized in that it comprises: 获取当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera; 确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame; 根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position. 根据权利要求1所述的相机控制方法,其特征在于,所述方法还包括:The camera control method according to claim 1, wherein the method further comprises: 根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring, according to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame; 所述根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度,包括:The determining the switching angle of the center point of the target camera according to the pixel mapping relationship and the target position includes: 根据所述映射位置和所述目标位置确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the mapping position and the target position. 根据权利要求2所述的相机控制方法,其特征在于,所述根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置包括:The camera control method according to claim 2, wherein the acquiring, according to the pixel mapping relationship, the mapping position of the center of the target camera's frame in the current camera frame comprises: 根据所述像素映射关系获取所述目标相机的画面中心映射到所述当前相机的画面中心之间的位置偏差;Acquiring, according to the pixel mapping relationship, a positional deviation between the center of the frame of the target camera and the center of the frame of the current camera; 根据所述位置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation. 根据权利要求3所述的相机控制方法,其特征在于,所述根据所述位置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置包括:The camera control method according to claim 3, wherein the determining, according to the position deviation, the mapping position of the frame center of the target camera in the current camera frame comprises: 确定基准物体,获取所述基准物体到所述目标相机中心的距离;Determine a reference object, and obtain the distance from the reference object to the center of the target camera; 根据所述位置偏差和所述距离确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation and the distance. 根据权利要求1所述的相机控制方法,其特征在于,所述确定所述当前相机画面内的目标物体的目标位置包括:The camera control method according to claim 1, wherein the determining the target position of the target object in the current camera frame comprises: 在所述当前相机采集到的画面内,接收用户输入的选择指令;Receiving a selection instruction input by the user in the picture captured by the current camera; 根据所述选择指令确定所述当前相机画面内的目标物体的目标位置。The target position of the target object in the current camera frame is determined according to the selection instruction. 根据权利要求1所述的相机控制方法,其特征在于,所述确定所述当前 相机画面内的目标物体包括:The camera control method according to claim 1, wherein the determining the target object in the current camera frame comprises: 对所述当前相机画面进行特征提取,得到目标特征信息;Performing feature extraction on the current camera picture to obtain target feature information; 根据所述目标特征信息识别所述当前相机画面内的目标物体,并确定所述目标物体的目标位置。Identify the target object in the current camera frame according to the target feature information, and determine the target position of the target object. 根据权利要求1所述的相机控制方法,其特征在于,所述获取当前相机与目标相机之间的像素映射关系包括:The camera control method according to claim 1, wherein said obtaining the pixel mapping relationship between the current camera and the target camera comprises: 获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵;Acquiring the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; 根据所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵,确定所述当前相机与所述目标相机之间的转换矩阵,得到所述当前相机与所述目标相机之间的像素映射关系。According to the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera, the conversion matrix between the current camera and the target camera is determined, and the conversion matrix between the current camera and the target camera is obtained. Pixel mapping relationship. 根据权利要求7所述的相机控制方法,其特征在于,所述获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵包括:7. The camera control method according to claim 7, wherein said acquiring the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera comprises: 获取所述当前相机和所述目标相机在所述多相机系统中的位置关系;Acquiring the positional relationship between the current camera and the target camera in the multi-camera system; 根据所述位置关系获取所述当前相机的内参,以及获取所述目标相机的内参和外参;Obtaining the internal parameters of the current camera according to the position relationship, and obtaining the internal parameters and external parameters of the target camera; 根据所述当前相机的内参构建所述当前相机的内参矩阵;Constructing the internal parameter matrix of the current camera according to the internal parameters of the current camera; 根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵。The internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter matrix of the target camera is constructed according to the external parameters of the target camera. 根据权利要求8所述的相机控制方法,其特征在于,所述获取所述当前相机和所述目标相机在所述多相机系统中的位置关系包括:The camera control method according to claim 8, wherein said acquiring the positional relationship between the current camera and the target camera in the multi-camera system comprises: 获取标定图像,提取所述标定图像中的特征点;Acquiring a calibration image, and extracting feature points in the calibration image; 分别通过所述当前相机和所述目标相机确定所述特征点的位置;Determining the position of the feature point by the current camera and the target camera respectively; 根据所述特征点的位置,在所述多相机系统中建立所述当前相机和所述目标相机之间的位置关系,以使得所述当前相机和所述目标相机均能采集到所述特征点。According to the position of the feature point, establish a positional relationship between the current camera and the target camera in the multi-camera system, so that both the current camera and the target camera can collect the feature point . 根据权利要求8所述的相机控制方法,其特征在于,所述根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵包括:The camera control method according to claim 8, wherein the internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter of the target camera is constructed according to the external parameters of the target camera The matrix includes: 根据所述目标相机在预设倍焦距下的内外参构建所述目标相机的预设内参矩阵和预设外参矩阵;Constructing a preset internal parameter matrix and a preset external parameter matrix of the target camera according to the internal and external parameters of the target camera at a preset focal length; 获取所述目标相机当前的倍率;Acquiring the current magnification of the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵和预设外参矩阵,确定所述目标相机的内参矩阵和外参矩阵。Determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix. 根据权利要求10所述的相机控制方法,其特征在于,所述获取所述目标相机当前的倍率包括:The camera control method according to claim 10, wherein said obtaining the current magnification of the target camera comprises: 获取所述目标相机当前的实际焦距,根据所述实际焦距确定所述目标相机当前的倍率;或者,Obtain the current actual focal length of the target camera, and determine the current magnification of the target camera according to the actual focal length; or, 检测所述目标相机与参照物体之间的物理距离,基于所述物理距离设置所述目标相机当前的倍率。The physical distance between the target camera and the reference object is detected, and the current magnification of the target camera is set based on the physical distance. 根据权利要求10所述的相机控制方法,其特征在于,所述根据所述目标相机的当前倍率、所述预设内参矩阵,确定所述目标相机的内参矩阵包括:The camera control method according to claim 10, wherein the determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix comprises: 获取所述目标相机当前采集到的图像的宽度和高度;Acquiring the width and height of the image currently collected by the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵、所述宽度和高度,确定所述目标相机的内参矩阵。Determine the internal parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix, the width and the height. 根据权利要求1至12任一项所述的相机控制方法,其特征在于,所述根据所述映射位置和所述目标位置确定所述目标相机中心点的切换角度包括:The camera control method according to any one of claims 1 to 12, wherein the determining the switching angle of the center point of the target camera according to the mapping position and the target position comprises: 根据所述映射位置和所述目标位置,确定所述目标物体到所述当前相机的画面中心的偏移量;Determining the offset of the target object to the center of the frame of the current camera according to the mapping position and the target position; 根据所述偏移量确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the offset. 根据权利要求13所述的相机控制方法,其特征在于,所述偏移量包括第一偏移量和第二偏移量,所述切换角度包括第一切换角度和第二切换角度,所述根据所述偏移量确定所述目标相机中心点的切换角度包括:The camera control method according to claim 13, wherein the offset includes a first offset and a second offset, the switching angle includes a first switching angle and a second switching angle, and the Determining the switching angle of the center point of the target camera according to the offset includes: 根据所述目标物体在第一方向上到所述当前相机的画面中心的第一偏移量,确定所述目标相机中心点的第一切换角度;Determine the first switching angle of the center point of the target camera according to the first offset of the target object in the first direction to the center of the screen of the current camera; 根据所述目标物体在第二方向上到所述当前相机的画面中心的第二偏移量,确定所述目标相机中心点的第二切换角度。Determine the second switching angle of the center point of the target camera according to the second offset of the target object in the second direction from the center of the frame of the current camera. 根据权利要求13所述的相机控制方法,其特征在于,所述根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度之后,所述方法还包括:The camera control method according to claim 13, wherein after the switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position, the method further comprises: 根据所述切换角度控制所述目标相机进行中心点切换,以使得所述目标物体位于切换后的所述目标相机的画面中心。The target camera is controlled to switch the center point according to the switching angle, so that the target object is located at the center of the screen of the target camera after the switching. 根据权利要求15所述的相机控制方法,其特征在于,所述根据所述切 换角度控制所述目标相机进行中心点切换,以使得所述目标物体位于切换后的所述目标相机的画面中心包括:The camera control method according to claim 15, wherein the controlling the target camera to switch the center point according to the switching angle so that the target object is located in the center of the screen of the target camera after the switching comprises : 控制所述目标相机在第一方向上切换所述第一切换角度,以及在第二方向上切换所述第二切换角度,得到切换后的所述目标相机;Controlling the target camera to switch the first switching angle in a first direction and switching the second switching angle in a second direction to obtain the target camera after switching; 控制所述目标物体位于切换后的所述目标相机的画面中心。The target object is controlled to be located at the center of the screen of the target camera after switching. 根据权利要求15所述的相机控制方法,其特征在于,所述根据所述切换角度控制所述目标相机进行中心点切换之后,所述方法还包括:The camera control method according to claim 15, wherein after the control of the target camera to switch the center point according to the switching angle, the method further comprises: 接收录制指令、拍摄指令、测距指令或测温指令;Receive recording instructions, shooting instructions, distance measurement instructions or temperature measurement instructions; 根据所述录制指令控制所述目标相机对采集到的所述目标物体位于中心的画面进行录制,或者根据所述拍摄指令控制所述目标相机对采集到的所述目标物体位于中心的画面进行拍摄,或者根据所述测距指令控制所述目标相机对所述目标物体进行测距,或者根据所述测温指令控制所述目标相机对所述目标物体进行测温。Control the target camera according to the recording instruction to record the captured frame with the target object in the center, or control the target camera according to the shooting instruction to capture the captured frame with the target object in the center , Or control the target camera to measure the temperature of the target object according to the distance measurement instruction, or control the target camera to measure the temperature of the target object according to the temperature measurement instruction. 根据权利要求1至12任一项所述的相机控制方法,其特征在于,所述当前相机和所述目标相机的相对位置固定。The camera control method according to any one of claims 1 to 12, wherein the relative position of the current camera and the target camera is fixed. 一种相机控制方法,其特征在于,包括:A camera control method, characterized in that it comprises: 获取多相机系统中当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera in the multi-camera system; 根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring, according to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame; 确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame; 根据所述映射位置和所述目标位置确定搭载所述目标相机的云台的偏转角度;Determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position; 根据所述偏转角度控制所述云台偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心。The deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection. 根据权利要求19所述的相机控制方法,其特征在于,所述根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置包括:The camera control method according to claim 19, wherein the acquiring, according to the pixel mapping relationship, the mapping position of the frame center of the target camera in the current camera frame comprises: 根据所述像素映射关系获取所述目标相机的画面中心映射到所述当前相机的画面中心之间的位置偏差;Acquiring, according to the pixel mapping relationship, a positional deviation between the center of the frame of the target camera and the center of the frame of the current camera; 根据所述位置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation. 根据权利要求20所述的相机控制方法,其特征在于,所述根据所述位置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置包括:22. The camera control method according to claim 20, wherein the determining, according to the position deviation, the mapping position of the frame center of the target camera in the current camera frame comprises: 确定基准物体,获取所述基准物体到所述目标相机中心的距离;Determine a reference object, and obtain the distance from the reference object to the center of the target camera; 根据所述位置偏差和所述距离确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation and the distance. 根据权利要求19所述的相机控制方法,其特征在于,所述确定所述当前相机画面内的目标物体的目标位置包括:The camera control method according to claim 19, wherein the determining the target position of the target object in the current camera frame comprises: 在所述当前相机采集到的画面内,接收用户输入的选择指令;Receiving a selection instruction input by the user in the picture captured by the current camera; 根据所述选择指令确定所述当前相机画面内的目标物体的目标位置。The target position of the target object in the current camera frame is determined according to the selection instruction. 根据权利要求19所述的相机控制方法,其特征在于,所述确定所述当前相机画面内的目标物体包括:The camera control method according to claim 19, wherein the determining the target object in the current camera frame comprises: 对所述当前相机画面进行特征提取,得到目标特征信息;Performing feature extraction on the current camera picture to obtain target feature information; 根据所述目标特征信息识别所述当前相机画面内的目标物体,并确定所述目标物体的目标位置。Identify the target object in the current camera frame according to the target feature information, and determine the target position of the target object. 根据权利要求19所述的相机控制方法,其特征在于,所述获取当前相机与目标相机之间的像素映射关系包括:The camera control method according to claim 19, wherein said obtaining the pixel mapping relationship between the current camera and the target camera comprises: 获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵;Acquiring the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; 根据所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵,确定所述当前相机与所述目标相机之间的转换矩阵,得到所述当前相机与所述目标相机之间的像素映射关系。According to the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera, the conversion matrix between the current camera and the target camera is determined, and the conversion matrix between the current camera and the target camera is obtained. Pixel mapping relationship. 根据权利要求24所述的相机控制方法,其特征在于,所述获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵包括:The camera control method according to claim 24, wherein said acquiring the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera comprises: 获取所述当前相机和所述目标相机在所述多相机系统中的位置关系;Acquiring the positional relationship between the current camera and the target camera in the multi-camera system; 根据所述位置关系获取所述当前相机的内参,以及获取所述目标相机的内参和外参;Obtaining the internal parameters of the current camera according to the position relationship, and obtaining the internal parameters and external parameters of the target camera; 根据所述当前相机的内参构建所述当前相机的内参矩阵;Constructing the internal parameter matrix of the current camera according to the internal parameters of the current camera; 根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵。The internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter matrix of the target camera is constructed according to the external parameters of the target camera. 根据权利要求25所述的相机控制方法,其特征在于,所述获取所述当前相机和所述目标相机在所述多相机系统中的位置关系包括:The camera control method according to claim 25, wherein said acquiring the positional relationship between the current camera and the target camera in the multi-camera system comprises: 获取标定图像,提取所述标定图像中的特征点;Acquiring a calibration image, and extracting feature points in the calibration image; 分别通过所述当前相机和所述目标相机确定所述特征点的位置;Determining the position of the feature point by the current camera and the target camera respectively; 根据所述特征点的位置,在所述多相机系统中建立所述当前相机和所述目标相机之间的位置关系,以使得所述当前相机和所述目标相机均能采集到所述特征点。According to the position of the feature point, establish a positional relationship between the current camera and the target camera in the multi-camera system, so that both the current camera and the target camera can collect the feature point . 根据权利要求25所述的相机控制方法,其特征在于,所述根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵包括:The camera control method according to claim 25, wherein the internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter of the target camera is constructed according to the external parameters of the target camera The matrix includes: 根据所述目标相机在预设倍焦距下的内外参构建所述目标相机的预设内参矩阵和预设外参矩阵;Constructing a preset internal parameter matrix and a preset external parameter matrix of the target camera according to the internal and external parameters of the target camera at a preset focal length; 获取所述目标相机当前的倍率;Acquiring the current magnification of the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵和预设外参矩阵,确定所述目标相机的内参矩阵和外参矩阵。Determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix. 根据权利要求27所述的相机控制方法,其特征在于,所述获取所述目标相机当前的倍率包括:The camera control method according to claim 27, wherein said obtaining the current magnification of the target camera comprises: 获取所述目标相机当前的实际焦距,根据所述实际焦距确定所述目标相机当前的倍率;或者,Obtain the current actual focal length of the target camera, and determine the current magnification of the target camera according to the actual focal length; or, 检测所述目标相机与参照物体之间的物理距离,基于所述物理距离设置所述目标相机当前的倍率。The physical distance between the target camera and the reference object is detected, and the current magnification of the target camera is set based on the physical distance. 根据权利要求27所述的相机控制方法,其特征在于,所述根据所述目标相机的当前倍率、所述预设内参矩阵,确定所述目标相机的内参矩阵包括:The camera control method according to claim 27, wherein the determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix comprises: 获取所述目标相机当前采集到的图像的宽度和高度;Acquiring the width and height of the image currently collected by the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵、所述宽度和高度,确定所述目标相机的内参矩阵。Determine the internal parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix, the width and the height. 根据权利要求19至29任一项所述的相机控制方法,其特征在于,所述根据所述映射位置和所述目标位置确定搭载所述目标相机的云台的偏转角度包括:The camera control method according to any one of claims 19 to 29, wherein the determining the deflection angle of the pan/tilt on which the target camera is mounted according to the mapping position and the target position comprises: 根据所述映射位置和所述目标位置,确定所述目标物体到所述当前相机的画面中心的偏移量;Determining the offset of the target object to the center of the frame of the current camera according to the mapping position and the target position; 根据所述偏移量确定搭载所述目标相机的云台的偏转角度。The deflection angle of the pan-tilt on which the target camera is mounted is determined according to the offset. 根据权利要求30所述的相机控制方法,其特征在于,所述偏移量包括第一偏移量和第二偏移量,所述偏转角度包括俯仰偏转角度和偏航偏转角度, 所述根据所述偏移量确定搭载所述目标相机的云台的偏转角度包括:The camera control method according to claim 30, wherein the offset includes a first offset and a second offset, the yaw angle includes a pitch yaw angle and a yaw yaw angle, and the The offset determining the deflection angle of the pan/tilt equipped with the target camera includes: 根据所述目标物体在第一方向上到所述当前相机的画面中心的第一偏移量,确定搭载所述目标相机的云台的俯仰偏转角度;Determine the pitch and yaw angle of the pan/tilt on which the target camera is mounted according to the first offset from the target object in the first direction to the center of the screen of the current camera; 根据所述目标物体在第二方向上到所述当前相机的画面中心的第二偏移量,确定搭载所述目标相机的云台的偏航偏转角度。According to the second offset of the target object in the second direction from the center of the frame of the current camera, determine the yaw deflection angle of the pan/tilt on which the target camera is mounted. 根据权利要求31所述的相机控制方法,其特征在于,所述根据所述偏转角度控制所述云台偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心包括:The camera control method of claim 31, wherein the controlling the deflection of the pan/tilt according to the deflection angle so that the target object is located at the center of the frame of the target camera after the deflection comprises: 控制所述云台在俯仰方向上偏转所述俯仰偏转角度,以及在偏航方向上偏转所述偏航偏转角度,得到偏转后的所述目标相机;Controlling the gimbal to deflect the pitch yaw angle in the pitch direction and the yaw yaw angle in the yaw direction to obtain the target camera after being deflected; 控制所述目标物体位于偏转后的所述目标相机的画面中心。Control the target object to be located at the center of the frame of the target camera after the deflection. 根据权利要求19至29任一项所述的相机控制方法,其特征在于,所述根据所述偏转角度控制所述云台偏转之后,所述方法还包括:The camera control method according to any one of claims 19 to 29, characterized in that, after controlling the deflection of the pan/tilt according to the deflection angle, the method further comprises: 接收录制指令、拍摄指令、测距指令或测温指令;Receive recording instructions, shooting instructions, distance measurement instructions or temperature measurement instructions; 根据所述录制指令控制所述目标相机对采集到的所述目标物体位于中心的画面进行录制,或者根据所述拍摄指令控制所述目标相机对采集到的所述目标物体位于中心的画面进行拍摄,或者根据所述测距指令控制所述目标相机对所述目标物体进行测距,或者根据所述测温指令控制所述目标相机对所述目标物体进行测温。Control the target camera according to the recording instruction to record the captured frame with the target object in the center, or control the target camera according to the shooting instruction to capture the captured frame with the target object in the center , Or control the target camera to measure the temperature of the target object according to the distance measurement instruction, or control the target camera to measure the temperature of the target object according to the temperature measurement instruction. 根据权利要求19至29任一项所述的相机控制方法,其特征在于,所述当前相机和所述目标相机在所述多相机系统中的相对位置固定。The camera control method according to any one of claims 19 to 29, wherein the relative position of the current camera and the target camera in the multi-camera system is fixed. 根据权利要求19至29任一项所述的相机控制方法,其特征在于,所述当前相机搭载于所述云台上。The camera control method according to any one of claims 19 to 29, wherein the current camera is mounted on the pan/tilt. 一种相机控制方法,其特征在于,包括:A camera control method, characterized in that it comprises: 控制多相机系统中当前相机采集画面,并显示所述画面;Control the current camera in the multi-camera system to capture a picture and display the picture; 基于显示的所述画面,接收用户输入的选择指令;Receiving a selection instruction input by the user based on the displayed screen; 根据所述选择指令确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame according to the selection instruction; 获取所述多相机系统中目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring the mapping position of the frame center of the target camera in the current camera frame in the multi-camera system; 根据所述映射位置和所述目标位置确定所述目标相机的偏转角度;Determining the deflection angle of the target camera according to the mapping position and the target position; 根据所述偏转角度控制所述目标相机进行偏转,以使得所述目标物体位于 偏转后的所述目标相机的画面中心。The target camera is controlled to deflect according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection. 根据权利要求36所述的相机控制方法,其特征在于,基于显示的所述画面,接收用户输入的选择指令包括:The camera control method of claim 36, wherein, based on the displayed picture, receiving a selection instruction input by a user comprises: 在显示的所述画面内接收用户输入的点击操作;Receiving a click operation input by the user in the displayed screen; 确定所述点击操作在所述画面内的区域,根据所述区域生成选择指令。Determine the area within the screen of the click operation, and generate a selection instruction according to the area. 根据权利要求36所述的相机控制方法,其特征在于,基于显示的所述画面,接收用户输入的选择指令包括:The camera control method of claim 36, wherein, based on the displayed picture, receiving a selection instruction input by a user comprises: 对所述画面进行特征提取,得到目标特征信息;Performing feature extraction on the screen to obtain target feature information; 根据所述目标特征信息确定所述画面内存在的物体,得到物体集合;Determine objects existing in the screen according to the target feature information to obtain a set of objects; 在显示的所述画面内显示所述物体集合的物体标识列表;Displaying a list of object identifiers of the object set in the displayed screen; 接收用户在物体标识列表内输入的选择指令。Receive a selection instruction entered by the user in the object identification list. 根据权利要求36所述的相机控制方法,其特征在于,根据所述偏转角度控制所述目标相机进行偏转之后,所述方法还包括:The camera control method according to claim 36, wherein after controlling the target camera to deflect according to the deflection angle, the method further comprises: 接收录制指令、拍摄指令、测距指令或测温指令;Receive recording instructions, shooting instructions, distance measurement instructions or temperature measurement instructions; 根据所述录制指令控制所述目标相机对采集到的画面进行录制,或者根据所述拍摄指令控制所述目标相机对采集到的画面进行拍摄,或者根据所述测距指令控制所述目标相机对所述目标物体进行测距,或者根据所述测温指令控制所述目标相机对所述目标物体进行测温。Control the target camera to record the captured image according to the recording instruction, or control the target camera to photograph the captured image according to the shooting instruction, or control the target camera pair according to the ranging instruction The target object performs distance measurement, or the target camera is controlled to measure the temperature of the target object according to the temperature measurement instruction. 根据权利要求36所述的相机控制方法,其特征在于,所述获取所述多相机系统中目标相机的画面中心在所述当前相机画面内的映射位置包括:36. The camera control method according to claim 36, wherein said acquiring the mapping position of the frame center of the target camera in the multi-camera system in the current camera frame comprises: 获取多相机系统中当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera in the multi-camera system; 根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置。According to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame is acquired. 根据权利要求40所述的相机控制方法,其特征在于,所述根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置包括:40. The camera control method according to claim 40, wherein the acquiring, according to the pixel mapping relationship, the mapping position of the frame center of the target camera in the current camera frame comprises: 根据所述像素映射关系获取所述目标相机的画面中心映射到所述当前相机的画面中心之间的位置偏差;Acquiring, according to the pixel mapping relationship, a positional deviation between the center of the frame of the target camera and the center of the frame of the current camera; 根据所述位置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation. 根据权利要求41所述的相机控制方法,其特征在于,所述根据所述位 置偏差确定所述目标相机的画面中心在所述当前相机画面内的映射位置包括:The camera control method according to claim 41, wherein the determining the mapping position of the frame center of the target camera in the current camera frame according to the position deviation comprises: 确定基准物体,获取所述基准物体到所述目标相机中心的距离;Determine a reference object, and obtain the distance from the reference object to the center of the target camera; 根据所述位置偏差和所述距离确定所述目标相机的画面中心在所述当前相机画面内的映射位置。The mapping position of the center of the frame of the target camera in the current camera frame is determined according to the position deviation and the distance. 根据权利要求40所述的相机控制方法,其特征在于,所述获取当前相机与目标相机之间的像素映射关系包括:The camera control method according to claim 40, wherein said obtaining the pixel mapping relationship between the current camera and the target camera comprises: 获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵;Acquiring the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera; 根据所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵,确定所述当前相机与所述目标相机之间的转换矩阵,得到所述当前相机与所述目标相机之间的像素映射关系。According to the internal parameter matrix of the current camera, and the internal parameter matrix and the external parameter matrix of the target camera, the conversion matrix between the current camera and the target camera is determined, and the conversion matrix between the current camera and the target camera is obtained. Pixel mapping relationship. 根据权利要求43所述的相机控制方法,其特征在于,所述获取所述当前相机的内参矩阵,以及所述目标相机的内参矩阵和外参矩阵包括:The camera control method according to claim 43, wherein said acquiring the internal parameter matrix of the current camera and the internal parameter matrix and the external parameter matrix of the target camera comprises: 获取所述当前相机和所述目标相机在所述多相机系统中的位置关系;Acquiring the positional relationship between the current camera and the target camera in the multi-camera system; 根据所述位置关系获取所述当前相机的内参,以及获取所述目标相机的内参和外参;Obtaining the internal parameters of the current camera according to the position relationship, and obtaining the internal parameters and external parameters of the target camera; 根据所述当前相机的内参构建所述当前相机的内参矩阵;Constructing the internal parameter matrix of the current camera according to the internal parameters of the current camera; 根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵。The internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter matrix of the target camera is constructed according to the external parameters of the target camera. 根据权利要求44所述的相机控制方法,其特征在于,所述获取所述当前相机和所述目标相机在所述多相机系统中的位置关系包括:The camera control method according to claim 44, wherein said acquiring the positional relationship between the current camera and the target camera in the multi-camera system comprises: 获取标定图像,提取所述标定图像中的特征点;Acquiring a calibration image, and extracting feature points in the calibration image; 分别通过所述当前相机和所述目标相机确定所述特征点的位置;Determining the position of the feature point by the current camera and the target camera respectively; 根据所述特征点的位置,在所述多相机系统中建立所述当前相机和所述目标相机之间的位置关系,以使得所述当前相机和所述目标相机均能采集到所述特征点。According to the position of the feature point, establish a positional relationship between the current camera and the target camera in the multi-camera system, so that both the current camera and the target camera can collect the feature point . 根据权利要求44所述的相机控制方法,其特征在于,所述根据所述目标相机的内参构建所述目标相机的内参矩阵,以及根据所述目标相机的外参构建所述目标相机的外参矩阵包括:The camera control method according to claim 44, wherein the internal parameter matrix of the target camera is constructed according to the internal parameters of the target camera, and the external parameter of the target camera is constructed according to the external parameters of the target camera The matrix includes: 根据所述目标相机在预设倍焦距下的内外参构建所述目标相机的预设内参矩阵和预设外参矩阵;Constructing a preset internal parameter matrix and a preset external parameter matrix of the target camera according to the internal and external parameters of the target camera at a preset focal length; 获取所述目标相机当前的倍率;Acquiring the current magnification of the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵和预设外参矩阵,确定所述目标相机的内参矩阵和外参矩阵。Determine the internal parameter matrix and the external parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix and the preset external parameter matrix. 根据权利要求46所述的相机控制方法,其特征在于,所述获取所述目标相机当前的倍率包括:The camera control method according to claim 46, wherein said obtaining the current magnification of the target camera comprises: 获取所述目标相机当前的实际焦距,根据所述实际焦距确定所述目标相机当前的倍率;或者,Obtain the current actual focal length of the target camera, and determine the current magnification of the target camera according to the actual focal length; or, 检测所述目标相机与参照物体之间的物理距离,基于所述物理距离设置所述目标相机当前的倍率。The physical distance between the target camera and the reference object is detected, and the current magnification of the target camera is set based on the physical distance. 根据权利要求46所述的相机控制方法,其特征在于,所述根据所述目标相机的当前倍率、所述预设内参矩阵,确定所述目标相机的内参矩阵包括:The camera control method according to claim 46, wherein the determining the internal parameter matrix of the target camera according to the current magnification of the target camera and the preset internal parameter matrix comprises: 获取所述目标相机当前采集到的图像的宽度和高度;Acquiring the width and height of the image currently collected by the target camera; 根据所述目标相机当前的倍率、所述预设内参矩阵、所述宽度和高度,确定所述目标相机的内参矩阵。Determine the internal parameter matrix of the target camera according to the current magnification of the target camera, the preset internal parameter matrix, the width and the height. 根据权利要求36至48任一项所述的相机控制方法,其特征在于,所述根据所述映射位置和所述目标位置确定所述目标相机的偏转角度包括:The camera control method according to any one of claims 36 to 48, wherein the determining the deflection angle of the target camera according to the mapping position and the target position comprises: 根据所述映射位置和所述目标位置,确定所述目标物体到所述当前相机的画面中心的偏移量;Determining the offset of the target object to the center of the frame of the current camera according to the mapping position and the target position; 根据所述偏移量确定所述目标相机的偏转角度。The deflection angle of the target camera is determined according to the offset. 根据权利要求49所述的相机控制方法,其特征在于,所述偏移量包括第一偏移量和第二偏移量,所述偏转角度包括第一偏转角度和第二偏转角度,所述根据所述偏移量确定所述目标相机的偏转角度包括:The camera control method according to claim 49, wherein the offset includes a first offset and a second offset, the deflection angle includes a first deflection angle and a second deflection angle, and the Determining the deflection angle of the target camera according to the offset includes: 根据所述目标物体在第一方向上到所述当前相机的画面中心的第一偏移量,确定所述目标相机的第一偏转角度;Determine the first deflection angle of the target camera according to the first offset of the target object in the first direction to the center of the screen of the current camera; 根据所述目标物体在第二方向上到所述当前相机的画面中心的第二偏移量,确定所述目标相机的第二偏转角度。The second deflection angle of the target camera is determined according to the second offset of the target object in the second direction to the center of the frame of the current camera. 根据权利要求50所述的相机控制方法,其特征在于,所述根据所述偏转角度控制所述目标相机进行偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心包括:The camera control method according to claim 50, wherein the controlling the target camera to deflect according to the deflection angle so that the target object is located at the center of the frame of the target camera after the deflection comprises: 控制所述目标相机在第一方向上偏转所述第一偏转角度,以及在第二方向上偏转所述第二偏转角度,得到偏转后的所述目标相机;Controlling the target camera to deflect the first deflection angle in a first direction and deflect the second deflection angle in a second direction to obtain the deflected target camera; 控制所述目标物体位于偏转后的所述目标相机的画面中心。Control the target object to be located at the center of the frame of the target camera after the deflection. 一种多相机系统,其特征在于,所述多相机系统包括:A multi-camera system, characterized in that, the multi-camera system includes: 多个相机;Multiple cameras 存储器,用于存储计算机程序;Memory, used to store computer programs; 处理器,用于调用所述存储器中的计算机程序,用于执行:The processor is used to call the computer program in the memory for executing: 获取当前相机与目标相机之间的像素映射关系;Obtain the pixel mapping relationship between the current camera and the target camera; 确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame; 根据所述像素映射关系和所述目标位置确定所述目标相机中心点的切换角度。The switching angle of the center point of the target camera is determined according to the pixel mapping relationship and the target position. 一种云台相机,其特征在于,所述云台相机包括:A pan-tilt camera, characterized in that the pan-tilt camera includes: 多个相机;Multiple cameras 云台,用于搭载所述多个相机;PTZ for carrying the multiple cameras; 存储器,用于存储计算机程序;Memory, used to store computer programs; 处理器,用于调用所述存储器中的计算机程序,用于执行:The processor is used to call the computer program in the memory for executing: 获取所述多个相机中当前相机与目标相机之间的像素映射关系;Acquiring a pixel mapping relationship between the current camera and the target camera in the plurality of cameras; 根据所述像素映射关系,获取所述目标相机的画面中心在所述当前相机画面内的映射位置;Acquiring, according to the pixel mapping relationship, the mapping position of the center of the frame of the target camera in the current camera frame; 确定所述当前相机画面内的目标物体的目标位置;Determining the target position of the target object in the current camera frame; 根据所述映射位置和所述目标位置确定搭载所述目标相机的云台的偏转角度;Determining the deflection angle of the pan/tilt equipped with the target camera according to the mapping position and the target position; 根据所述偏转角度控制所述云台偏转,以使得所述目标物体位于偏转后的所述目标相机的画面中心。The deflection of the pan/tilt is controlled according to the deflection angle, so that the target object is located at the center of the frame of the target camera after the deflection. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises: 云台,安装在所述可移动平台的本体上;PTZ, installed on the body of the movable platform; 多个相机,搭载在所述云台上;Multiple cameras mounted on the pan/tilt; 存储器,用于存储计算机程序;Memory, used to store computer programs; 处理器,用于调用所述存储器中的计算机程序,以执行如权利要求19至35任一项所述的相机控制方法,或者执行权利要求36至51任一项所述的相机控制方法。The processor is configured to call a computer program in the memory to execute the camera control method according to any one of claims 19 to 35, or execute the camera control method according to any one of claims 36 to 51. 根据权利要求54所述的可移动平台,其特征在于,所述可移动平台为移动终端、无人机、机器人或无人驾驶车辆。The movable platform according to claim 54, wherein the movable platform is a mobile terminal, a drone, a robot, or an unmanned vehicle. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用 于存储计算机程序,所述计算机程序被处理器加载以执行权利要求1至18任一项所述的相机控制方法,或者执行权利要求19至35任一项所述的相机控制方法,或者执行权利要求36至51任一项所述的相机控制方法。A computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the camera control method according to any one of claims 1 to 18, Either the camera control method according to any one of claims 19 to 35 is executed, or the camera control method according to any one of claims 36 to 51 is executed.
PCT/CN2020/071026 2020-01-08 2020-01-08 Camera control method, device, and computer readable storage medium WO2021138856A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080005678.2A CN112956182A (en) 2020-01-08 2020-01-08 Camera control method, apparatus, and computer-readable storage medium
PCT/CN2020/071026 WO2021138856A1 (en) 2020-01-08 2020-01-08 Camera control method, device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/071026 WO2021138856A1 (en) 2020-01-08 2020-01-08 Camera control method, device, and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021138856A1 true WO2021138856A1 (en) 2021-07-15

Family

ID=76236236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071026 WO2021138856A1 (en) 2020-01-08 2020-01-08 Camera control method, device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112956182A (en)
WO (1) WO2021138856A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494460A (en) * 2022-01-25 2022-05-13 苏州格拉尼视觉科技有限公司 Calibration method, multi-camera probe device and flying probe tester
CN117156267A (en) * 2023-09-07 2023-12-01 思翼科技(深圳)有限公司 Cloud deck camera working mode switching method and system based on environment self-adaption
CN118175263A (en) * 2024-03-20 2024-06-11 山东澳捷电气技术有限公司 Unmanned aerial vehicle airborne high-precision double-light detector
CN118828201A (en) * 2024-08-30 2024-10-22 四川国创新视超高清视频科技有限公司 A distributed online fusion and stitching method for cameras in large-scale scene monitoring

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100007715A1 (en) * 2008-07-09 2010-01-14 Ortery Technologies, Inc. Method of Shooting Angle Adjustment for an Image Capturing Device that Moves Along a Circular Path
EP2615831A1 (en) * 2012-01-13 2013-07-17 ATS Group (IP Holdings) Limited Adapting images from moving surveillance cameras for presentation to an operator
CN106780550A (en) * 2016-09-13 2017-05-31 纳恩博(北京)科技有限公司 A kind of method for tracking target and electronic equipment
CN108200339A (en) * 2017-12-29 2018-06-22 北京臻迪科技股份有限公司 Target tracking localization method, system and photographic device
CN108833782A (en) * 2018-06-20 2018-11-16 广州长鹏光电科技有限公司 A kind of positioning device and method based on video auto-tracking shooting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100132739A (en) * 2009-06-10 2010-12-20 건국대학교 산학협력단 Monitoring system and method using dual camera
CN104184932B (en) * 2013-05-20 2018-03-23 浙江大华技术股份有限公司 Ball machine control method and device
CN105898136A (en) * 2015-11-17 2016-08-24 乐视致新电子科技(天津)有限公司 Camera angle adjustment method, system and television
CN108012083B (en) * 2017-12-14 2020-02-04 深圳云天励飞技术有限公司 Face acquisition method and device and computer readable storage medium
CN109151313A (en) * 2018-09-10 2019-01-04 合肥巨清信息科技有限公司 A kind of video interlink system based on large scene video monitoring

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100007715A1 (en) * 2008-07-09 2010-01-14 Ortery Technologies, Inc. Method of Shooting Angle Adjustment for an Image Capturing Device that Moves Along a Circular Path
EP2615831A1 (en) * 2012-01-13 2013-07-17 ATS Group (IP Holdings) Limited Adapting images from moving surveillance cameras for presentation to an operator
CN106780550A (en) * 2016-09-13 2017-05-31 纳恩博(北京)科技有限公司 A kind of method for tracking target and electronic equipment
CN108200339A (en) * 2017-12-29 2018-06-22 北京臻迪科技股份有限公司 Target tracking localization method, system and photographic device
CN108833782A (en) * 2018-06-20 2018-11-16 广州长鹏光电科技有限公司 A kind of positioning device and method based on video auto-tracking shooting

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494460A (en) * 2022-01-25 2022-05-13 苏州格拉尼视觉科技有限公司 Calibration method, multi-camera probe device and flying probe tester
CN117156267A (en) * 2023-09-07 2023-12-01 思翼科技(深圳)有限公司 Cloud deck camera working mode switching method and system based on environment self-adaption
CN117156267B (en) * 2023-09-07 2024-05-14 思翼科技(深圳)有限公司 Cloud deck camera working mode switching method and system based on environment self-adaption
CN118175263A (en) * 2024-03-20 2024-06-11 山东澳捷电气技术有限公司 Unmanned aerial vehicle airborne high-precision double-light detector
CN118828201A (en) * 2024-08-30 2024-10-22 四川国创新视超高清视频科技有限公司 A distributed online fusion and stitching method for cameras in large-scale scene monitoring

Also Published As

Publication number Publication date
CN112956182A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
JP7236565B2 (en) POSITION AND ATTITUDE DETERMINATION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM AND COMPUTER PROGRAM
WO2021223124A1 (en) Position information obtaining method and device, and storage medium
CN109387186B (en) Surveying and mapping information acquisition method and device, electronic equipment and storage medium
CN108702444B (en) An image processing method, unmanned aerial vehicle and system
WO2021138856A1 (en) Camera control method, device, and computer readable storage medium
CN107113376B (en) An image processing method, device and camera
WO2021168838A1 (en) Position information determining method, device, and storage medium
CN110799921A (en) Filming method, device and drone
WO2022000300A1 (en) Image processing method, image acquisition apparatus, unmanned aerial vehicle, unmanned aerial vehicle system, and storage medium
CN110910459B (en) Camera device calibration method and device and calibration equipment
CN110622091A (en) Cloud deck control method, device and system, computer storage medium and unmanned aerial vehicle
WO2021253247A1 (en) Inspection method and apparatus for movable platform, and movable platform and storage medium
WO2021168804A1 (en) Image processing method, image processing apparatus and image processing system
JP2010217984A (en) Image detector and image detection method
CN112804458B (en) Shooting view finding method and device, terminal equipment and storage medium
CN111581322B (en) Method, device and equipment for displaying region of interest in video in map window
WO2022141123A1 (en) Movable platform and control method and apparatus therefor, terminal device and storage medium
WO2021134715A1 (en) Control method and device, unmanned aerial vehicle and storage medium
JP2018014572A (en) Information processing apparatus, image processing system, and program
CN207266187U (en) A kind of aerial panorama inspection system of band measurement function
CN116862992A (en) Method and device for determining visual field of monitoring camera
CN112446928B (en) External parameter determining system and method for shooting device
CN115061503A (en) UAV path planning method, device, equipment and storage medium
WO2022094772A1 (en) Position estimation method, following control method, device and storage medium
CN112330726A (en) Image processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20911482

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20911482

Country of ref document: EP

Kind code of ref document: A1