CN117544839A - Image acquisition method, device and equipment of combined camera and storage medium - Google Patents

Image acquisition method, device and equipment of combined camera and storage medium Download PDF

Info

Publication number
CN117544839A
CN117544839A CN202311514898.XA CN202311514898A CN117544839A CN 117544839 A CN117544839 A CN 117544839A CN 202311514898 A CN202311514898 A CN 202311514898A CN 117544839 A CN117544839 A CN 117544839A
Authority
CN
China
Prior art keywords
pixel
resolution information
camera
pixel resolution
rotation angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311514898.XA
Other languages
Chinese (zh)
Inventor
刘玉鑫
孙学义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xingjie Technology Tianjin Co ltd
Original Assignee
Xingjie Technology Tianjin Co ltd
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 Xingjie Technology Tianjin Co ltd filed Critical Xingjie Technology Tianjin Co ltd
Priority to CN202311514898.XA priority Critical patent/CN117544839A/en
Publication of CN117544839A publication Critical patent/CN117544839A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take 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/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

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

Abstract

The invention discloses an image acquisition method, device, equipment and medium of a combined camera. The method comprises the steps of obtaining first image information shot by a gun type camera, and determining a region to be amplified according to the first image information. And determining the required magnification and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified. And controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle. After the area to be amplified is determined, the required amplification factor and the required rotation angle of the ball camera are determined according to the first pixel resolution information of the first image information and the second pixel resolution information of the area to be amplified, so that the ball camera can be quickly moved to the area to be amplified, and the area to be amplified is amplified and recorded, the subsequent analysis of the area to be amplified is facilitated, and the efficiency of positioning and analyzing the abnormal area is improved.

Description

Image acquisition method, device and equipment of combined camera and storage medium
Technical Field
The embodiment of the invention relates to the technical field of cameras, in particular to an image acquisition method, device and equipment of a combined camera and a storage medium.
Background
With the development of the network age, the development of the monitoring camera is more and more rapid, and the demand is more and more abundant. Thus, there is a concomitant new need to create many specific scenarios. For example, in a busy scenic spot, when people are in mountain or sea, ordinary monitoring can naturally cover a wide scene range, but when an emergency situation occurs at a certain position in a distance, details are difficult to see when video playback is needed. Therefore, in this scenario, it is necessary to zoom in on the scene, play back the video, and help the scenic spot manager to view the details. Also, at the high speed of the current traffic development, the monitoring distance of a common monitoring camera is limited, and if a camera with a smaller focal length is used, a far video picture is necessarily sacrificed, so that details cannot be easily seen. Therefore, when an abnormal situation occurs in a distance, the camera lens needs to be pulled up to see the actual situation, so that the problem of handling by traffic personnel is facilitated.
At present, many users solve the scenes, the conventional method is used, and the purpose is achieved by increasing the number of the deployed monitoring cameras. However, the disadvantage of this solution is that the deployment cost is increased, and the number cost of purchase and the cost of monitoring and storage are increased, so that the maintenance cost of the monitoring personnel is increased, and more people need to find out to monitor and control. Meanwhile, when problems occur, videos of a plurality of cameras are required to be called, problem moments in the same time period are searched together, playback is conducted to investigate evidence collection, quick positioning and concise data export backup are difficult to achieve, and therefore heavy workload and extremely low efficiency are brought to the quick positioning problem.
Disclosure of Invention
The invention provides an image acquisition method, device, equipment and storage medium for a combined camera, which are used for determining the required magnification factor and the required rotation angle of a ball camera according to first pixel resolution information of first image information and second pixel resolution information of a region to be magnified, so that the ball camera can be quickly moved to the region to be magnified, and the region to be magnified is magnified and recorded, thereby facilitating the subsequent analysis of the region to be magnified, and improving the efficiency of positioning and analyzing abnormal regions.
In a first aspect, an embodiment of the present invention provides an image acquisition method of a combined camera, where the image acquisition method includes:
acquiring first image information shot by a gun type camera, and determining a region to be amplified according to the first image information;
determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified;
and controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
Optionally, the determining the required magnification factor of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the to-be-magnified area includes:
obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera;
obtaining a first magnification factor based on the basic pixel according to the ratio of the horizontal pixel value of the second pixel resolution information to the horizontal pixel value of the third pixel resolution information and the ratio of the vertical pixel value of the second pixel resolution information to the vertical pixel value of the third pixel resolution information;
and obtaining the required magnification of the ball camera according to the first magnification and the maximum magnification.
Optionally, the first pixel resolution information includes (W1, H1), the second pixel resolution includes (W2, H2), the third pixel resolution information includes (W3, H3), wherein W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W2 is a horizontal pixel value of the second pixel resolution information, H2 is a vertical pixel value of the second pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information;
The maximum magnification of the ball camera comprises N;
the lateral pixel value W3 of the third pixel resolution information satisfies: w3=w1/N,
the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N;
the first amplification factor includes N1, N1 satisfying:
the required magnification includes Δn, Δn satisfying:
ΔN=N-N1。
optionally, the determining the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified includes:
obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera;
obtaining the maximum rotation angle of the ball camera in the horizontal direction and the maximum rotation angle of the ball camera in the vertical direction;
acquiring a central transverse pixel value and a central longitudinal pixel value of the central region of the region to be amplified from the origin of coordinates;
determining a rotation angle of each pixel to be moved in the horizontal direction according to the horizontal pixel value of the first pixel resolution information, the horizontal pixel value of the third pixel resolution information and the maximum rotation angle in the horizontal direction;
According to the central horizontal pixel value, the horizontal pixel value of the third pixel resolution information and the rotation angle of each pixel in the horizontal direction, the required rotation angle of the ball camera in the horizontal direction is obtained;
obtaining a rotation angle of each pixel moving in the vertical direction according to the longitudinal pixel value of the first pixel resolution information, the longitudinal pixel value of the third pixel resolution information and the maximum rotation angle in the vertical direction;
and according to the central longitudinal pixel value, the longitudinal pixel value of the third pixel resolution information and the rotation angle of each pixel in the vertical direction, obtaining the required rotation angle of the ball camera in the vertical direction.
Optionally, the first pixel resolution information includes (W1, H1), and the third pixel resolution information includes (W3, H3), where W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information;
the maximum rotation angle of the ball camera in the horizontal direction comprises alpha, and the maximum rotation angle of the ball camera in the vertical direction comprises beta;
The center horizontal pixel value comprises W4 and the center vertical pixel value comprises H4;
the maximum magnification of the ball camera comprises N;
the lateral pixel value W3 of the third pixel resolution information satisfies: w3=w1/N,
the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N;
the required rotation angle of the ball camera in the horizontal direction comprises delta alpha, and delta alpha meets the following conditions:
the required rotation angle of the ball camera in the horizontal direction comprises delta beta, and delta beta meets the following conditions:
optionally, before acquiring the first image information captured by the gun camera and determining the region to be amplified according to the first image information, the method further includes:
establishing a first coordinate system of the gun type camera, and adjusting the initial position of the ball type camera in the first coordinate system so that the initial rotation angle of the ball type camera corresponds to the origin of coordinates of the first coordinate system.
Optionally, after controlling the ball camera to image the region to be amplified according to the required magnification factor and the required rotation angle, the method further includes:
and storing second image information of the ball camera for imaging the region to be amplified, and controlling the ball camera to restore to the initial amplification factor and the initial rotation angle.
In a second aspect, an embodiment of the present invention further provides an image acquisition apparatus for a combined camera, where the image acquisition apparatus includes:
the first determining module is used for obtaining first image information shot by the gun type camera and determining an area to be amplified according to the first image information;
the second determining module is used for determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified;
and the control module is used for controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
In a third aspect, an embodiment of the present invention further provides an image capturing apparatus that combines cameras, the image capturing apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the image acquisition method according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a processor to execute the image capturing method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the first image information shot by the gun type camera is obtained, and the region to be amplified is determined according to the first image information. And determining the required magnification and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified. And controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle. Therefore, after the abnormal area is determined in the first image information, namely the area to be amplified is determined, the required amplification factor and the required rotation angle of the ball type camera are determined according to the first pixel resolution information of the first image information and the second pixel resolution information of the area to be amplified, so that the ball type camera can be quickly moved to the area to be amplified and recorded, the large-view angle picture of the gun type camera and the amplification factor and the rotation angle of the ball type camera are simultaneously considered, and the abnormal area can be quickly amplified and recorded after the abnormal area is found in the first image information, so that the abnormal area can be conveniently and subsequently analyzed, the efficiency of positioning and analyzing the abnormal area is improved, and the use experience of a user is improved.
Drawings
Fig. 1 is a flowchart of an image acquisition method of a combined camera according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a first coordinate system of a gun camera and a ball camera according to the embodiment of the present invention;
fig. 3 is a flowchart of another image acquisition method of a combined camera according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image acquisition device of a combined camera according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an image acquisition method of a combined camera according to an embodiment of the present invention, where the method is applicable to a situation that a large viewing angle of a gun camera cannot be considered and a ball camera is adjustable in magnification and rotation angle during monitoring video, and the method may be performed by an image acquisition device according to an embodiment of the present invention, and the device may be implemented in software and/or hardware. The device can be configured in the image acquisition equipment provided by the embodiment of the invention.
The combined camera in the embodiment of the invention comprises the gun type camera and the ball type camera, wherein the movement of the gun type camera and the movement of the ball type camera are arranged in the shell of the combined camera, and the gun type camera and the ball type camera are in communication connection through an Ethernet TCP protocol, so that the gun type camera and the ball type camera can communicate with each other, and the control of data storage and picture scheduling is completed. The image acquisition method of the combined camera comprises the following steps:
s110, acquiring first image information shot by a gun type camera, and determining a region to be amplified according to the first image information.
Specifically, the gun-type camera is a monitoring device, and is mainly used for outdoor or specific occasion monitoring. Gun type cameras generally have long focal length and large viewing angles, can be installed at higher positions, and are wide in shooting range, so that large viewing angle scenes can be monitored conveniently. The first image information shot by the gun type camera is obtained in real time through the machine core of the gun type camera, a personnel density clustering algorithm is preset in the machine core of the gun type camera, the machine core of the gun type camera can further identify the first image information shot by the gun type camera, the areas, such as personnel gathering or personnel chasing, in the first image information are determined to be abnormal areas, the abnormal areas are areas which need to be amplified subsequently, and the abnormal areas in the first image information are the areas to be amplified.
S120, determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified.
Specifically, the pixel resolution information includes pixels arranged in an array, and further, the pixel resolution information of the image can be represented by a horizontal pixel value and a vertical pixel value of the image. For example, if the first pixel resolution information of the first image information is (1920, 1080), the horizontal pixel value representing the first pixel resolution information is 1920, and the vertical pixel value is 1080, that is, the first image information includes 200 or more ten thousand pixels, and the higher the pixel resolution information, the clearer the image. And further, after the first image information is acquired and the region to be amplified in the first image information is determined, the required amplification factor of the region to be amplified is determined according to the ratio information of the second pixel resolution information of the region to be amplified and the first pixel resolution information of the first image information, so that the ball camera can obtain a clear image after amplifying the region to be amplified. In addition, according to the ratio information of the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified, the position information of the region to be amplified in the first image information can be determined, and then the required rotation angle of the ball camera is determined, so that the ball camera can rotate to the region to be amplified.
And S130, controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
Specifically, because the gun type camera can not adjust the focus and the angle, and then the region to be amplified in the first image information is determined by the gun type camera, and the required amplification factor and the required rotation angle of the ball type camera are determined according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified, then the required amplification factor and the required rotation angle are sent to the ball type camera, so that the ball type camera rotates from an initial position to the required rotation angle, namely rotates to the region to be amplified, and the region to be amplified is amplified to the required amplification factor, and further fine images in the first image information can be amplified, so that clear images are obtained, and meanwhile, the large-view images of the gun type camera, the amplification factor and the rotation angle of the ball type camera are adjustable, so that the subsequent analysis of the region to be amplified is facilitated. On the other hand, the number of the monitoring cameras is not required to be increased in the prior art, so that the detail monitoring of a large scene is met, the deployment cost is further reduced, and meanwhile, the purchase number cost and the monitoring storage cost are also reduced.
In summary, the embodiment of the invention obtains the first image information shot by the gun-type camera, and determines the region to be amplified according to the first image information. And determining the required magnification and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified. And controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle. Therefore, after the abnormal area is determined in the first image information, namely the area to be amplified is determined, the required amplification factor and the required rotation angle of the ball type camera are determined according to the first pixel resolution information of the first image information and the second pixel resolution information of the area to be amplified, so that the ball type camera can be quickly moved to the area to be amplified and recorded, the large-view angle picture of the gun type camera and the amplification factor and the rotation angle of the ball type camera are simultaneously considered, and the abnormal area can be quickly amplified and recorded after the abnormal area is found in the first image information, so that the abnormal area can be conveniently and subsequently analyzed, the efficiency of positioning and analyzing the abnormal area is improved, and the use experience of a user is improved.
Example two
Fig. 2 is a schematic diagram of a first coordinate system of a gun camera and a ball camera according to an embodiment of the present invention, and fig. 3 is a flowchart of another image acquisition method of a combination camera according to an embodiment of the present invention, referring to fig. 2 and fig. 3, where the image acquisition method includes:
s210, a first coordinate system of the gun type camera is established, and the initial position of the ball type camera is adjusted in the first coordinate system, so that the initial rotation angle of the ball type camera corresponds to the origin of coordinates of the first coordinate system.
Specifically, as shown in fig. 2, a first coordinate system of first image information shot by the gun type camera is established, a coordinate origin (0, 0) of the first coordinate system is located at the upper left corner of the first image information, an initial position of the ball type camera is adjusted based on the first coordinate system, so that the gun type camera and the ball type camera correspond to the same coordinate system, an initial rotation angle of the ball type camera corresponds to the coordinate origin (0, 0) of the first coordinate system, namely, the initial position of the ball type camera can read the coordinate origin (0, 0) of the first coordinate system, and further coordinate positions of the ball type camera and the gun type camera are unified, so that a required amplification factor and a required rotation angle of the ball type camera can be conveniently determined according to first resolution information of the first image information and second resolution information of an area to be amplified.
S220, acquiring first image information shot by the gun type camera, and determining a region to be amplified according to the first image information.
S230, obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera, and obtaining first amplification factor based on the basic pixel according to the ratio of the transverse pixel value of the second pixel resolution information to the transverse pixel value of the third pixel resolution information and the ratio of the longitudinal pixel value of the second pixel resolution information to the longitudinal pixel value of the third pixel resolution information and the required amplification factor of the ball camera according to the first amplification factor and the maximum amplification factor.
Specifically, after determining the type of the ball camera, the maximum magnification of the ball camera may be determined, and then the third pixel resolution information of the base pixel is obtained according to the ratio of the horizontal pixel value of the first pixel resolution information to the maximum magnification of the ball camera and the ratio of the vertical pixel value of the first pixel resolution information to the maximum magnification of the ball camera. The base pixel may understand that the first pixel resolution information of the first image information is based on a minimum pixel area after the maximum magnification of the ball camera, for example, when the maximum magnification of the ball camera is 32 times, the first pixel resolution information of the first image information includes 32 minimum pixel areas, that is, includes 32 base pixels. And further determining the first magnification of the region to be magnified based on the base pixel by calculating ratio information of the second pixel resolution information of the region to be magnified to the third pixel resolution information of the base pixel. The method includes the steps of calculating a ratio of a horizontal pixel value of second pixel resolution information to a horizontal pixel value of third pixel resolution information and a ratio of a vertical pixel value of the second pixel resolution information to a vertical pixel value of the third pixel resolution, wherein the maximum value of the two ratios is a first amplification factor of a region to be amplified based on a basic pixel. It can be understood that the first magnification is obtained based on the maximum value of the two ratios, so that the ball camera can be ensured to acquire clear images. In addition, since the first magnification is obtained based on the basic pixel of the maximum magnification of the ball camera, or it can be understood that the first magnification is reduced from the maximum magnification to the variation magnification of the required magnification, and the initial magnification of the ball camera is 0 times, the required magnification of the last ball camera from 0 times of the initial magnification is obtained by calculating the difference between the maximum magnification and the first magnification of the ball camera.
As shown in fig. 2, assuming that the first pixel resolution information of the first image information is (W1, H1), the maximum magnification of the ball camera is N, the first pixel resolution information is (W1/N, H1/N) based on the third pixel resolution information of the base pixel of the maximum magnification, the third pixel resolution information of the base pixel is (W3, H3), the second pixel resolution information of the region to be amplified is (W2, H2), and w3=w1/N, h3=h1/N, and then the first magnification N1 of the region to be amplified based on the first magnification N1 of the base pixel can be determined according to the ratio information of the second pixel resolution information of the region to be amplified and the third resolution information of the base pixel, and the calculation formula of the first magnification N1 is:
in the above formula, W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W2 is a horizontal pixel value of the second pixel resolution information, H2 is a vertical pixel value of the second pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information. The ratio of the horizontal pixel value W2 of the second pixel resolution information to the horizontal pixel value W3 of the third pixel resolution information and the ratio of the vertical pixel value H2 of the second pixel resolution information to the vertical pixel value H3 of the third pixel resolution information are calculated, wherein the maximum value of the two ratios is a first amplification factor N1 of a region to be amplified based on a basic pixel, and after the first amplification factor N1 is obtained, the required amplification factor Δn of the spherical camera is obtained according to the first amplification factor N1 and the maximum amplification factor N, and a calculation formula of the required amplification factor Δn of the spherical camera is as follows: Δn=n—n1, and thus the required magnification Δn at which the final ball camera starts to amplify from the initial magnification of 0 times is obtained. Therefore, the required magnification delta N is obtained through the ratio of the transverse pixel value W2 of the second pixel resolution information to the transverse pixel value W3 of the third pixel resolution information, the ratio of the longitudinal pixel value H2 of the second pixel resolution information to the longitudinal pixel value H3 of the third pixel resolution and the maximum magnification N of the ball camera, the simple acquisition mode of the required magnification of the ball camera can be ensured, and further clear images can be acquired in time.
As an example, with continued reference to fig. 2, assuming that the first pixel resolution information of the first image information is (1920, 1080), the second pixel resolution information of the region to be amplified is (320, 270), the maximum magnification of the ball camera is 32 times, the first pixel resolution information is (1920/32, 1080/32), that is, (60, 33.75), based on the third pixel resolution information of the base pixel of the maximum magnification of the ball camera, then the ratio of the lateral pixel value 320 of the second pixel resolution information to the lateral pixel value 60 of the third pixel resolution information is about 5, the ratio of the longitudinal pixel value 270 of the second pixel resolution information to the longitudinal pixel value 33.75 of the third pixel resolution information is 8, and since 8 is greater than 5, it is determined that the region to be amplified is 8 based on the first magnification N1 of the base pixel, and finally the required magnification Δn of the ball camera from the initial magnification of 0 times is 24.
It should be noted that, because the magnification of the ball camera is an integer, after the ratio of the horizontal pixel value W2 of the two-pixel resolution information to the horizontal pixel value W3 of the third-pixel resolution information and the maximum value of the ratio of the vertical pixel value H2 of the second-pixel resolution information to the vertical pixel value H3 of the third-pixel resolution are obtained, the maximum values of the two ratios need to be rounded up, that is, the final first magnification is an integer greater than or equal to the maximum value of the two ratios.
S240, obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera, obtaining the maximum rotation angle of the ball camera in the horizontal direction and the maximum rotation angle of the ball camera in the vertical direction, and obtaining a central transverse pixel value and a central longitudinal pixel value of a central area of the area to be amplified from a coordinate origin.
Specifically, after determining the type of the ball camera, the maximum magnification of the ball camera may be determined, and then the third pixel resolution information of the base pixel is obtained according to the ratio of the horizontal pixel value of the first pixel resolution information to the maximum magnification of the ball camera and the ratio of the vertical pixel value of the first pixel resolution information to the maximum magnification of the ball camera. In addition, after the model of the ball camera is determined, the maximum rotation angle of the ball camera in the horizontal direction and the maximum rotation angle in the vertical direction can also be determined. It should be noted that, since the initial rotation angle of the ball camera corresponds to the origin of coordinates of the first coordinate system, the required rotation angle is calculated based on the positions of the region to be amplified and the origin of coordinates, in other words, the required rotation angle needs to be calculated by calculating the positions of the center region of the region to be amplified and the origin of coordinates, that is, after determining the region to be amplified, the center horizontal pixel value and the center vertical pixel value of the center region of the region to be amplified from the origin of coordinates need to be determined.
S250, determining a rotation angle of each pixel in the horizontal direction according to the horizontal pixel value of the first pixel resolution information, the horizontal pixel value of the third pixel resolution information and the maximum rotation angle in the horizontal direction, and rotating each degree of horizontal pixel value according to the central horizontal pixel value, the horizontal pixel value of the third pixel resolution information and the horizontal direction to obtain the required rotation angle of the spherical camera in the horizontal direction.
Specifically, if the position of the base pixel is the position of the origin of coordinates, the central area of the origin of coordinates is the central area of the base pixel, and then the pixel distance between the first pixel resolution information and the central area of the base pixel in the horizontal direction comprises a horizontal pixel distance, and the horizontal pixel distance is the difference between the horizontal pixel value of the first pixel resolution information and half of the horizontal pixel value of the third pixel resolution information, and then the rotation angle of each pixel in the horizontal direction of the ball camera is obtained according to the ratio of the maximum rotation angle of the ball camera in the horizontal direction to the horizontal pixel distance between the first pixel resolution information and the central area of the base pixel. And then calculating the lateral pixel distance between the central area of the area to be amplified and the central area of the basic pixel, namely, the difference value between the central lateral pixel value and half of the lateral pixel value of the third pixel resolution information, and further obtaining the required rotation angle of the spherical camera in the horizontal direction according to the product of the lateral pixel distance between the central area of the area to be amplified and the central area of the basic pixel and the rotation angle of each pixel moved by the spherical camera in the horizontal direction.
As shown in fig. 2, assuming that the first pixel resolution information of the first image information is (W1, H1), the maximum magnification of the ball camera is N, the third pixel resolution information of the base pixel is (W3, H3), and the maximum rotation angle of the ball camera in the horizontal direction is α, the calculation formula of the required rotation angle Δα of the ball camera in the horizontal direction is:
wherein W1 is a horizontal pixel value of the first pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and W4 is a central horizontal pixel value. Namely, according to the maximum rotation angle alpha of the spherical camera in the horizontal direction, the horizontal pixel distance between the horizontal pixel value W1 of the first pixel resolution information and the central area of the origin of coordinatesThe rotation angle of each pixel of the horizontal direction of the spherical camera is calculated, and the horizontal pixel distance of the central area of the region to be amplified and the central area of the basic pixel (coordinate origin) is further calculated according to the ratio +.>A rotation angle of each pixel is shifted in a horizontal direction with the ball camera>The product of the two is used for obtaining the required rotation angle delta alpha of the spherical camera in the horizontal direction, so that the acquisition mode of the required magnification of the spherical camera in the horizontal direction can be ensured to be simple, and the spherical camera can be controlled to rotate to the region to be magnified in time.
Illustratively, with continued reference to fig. 2, the first pixel resolution information of the first image information is set to (1920, 1080), the center lateral pixel value is set to 1450, the maximum magnification of the ball camera is 32 times, and the maximum rotation angle of the ball camera in the horizontal direction is 180 °. The third pixel resolution information of the basic pixel is (60, 33.75), and then the horizontal pixel distance between the horizontal pixel value W1 of the first pixel resolution information and the horizontal pixel distance of the central area of the origin of coordinates is 1920-60/2, the rotation angle of each pixel of the ball camera moving in the horizontal direction is 180/(1920-60/2), and since the horizontal pixel distance between the central area of the area to be amplified and the central area of the basic pixel (origin of coordinates) is (1450-60/2), the required rotation angle delta alpha of the ball camera in the horizontal direction is about 136 degrees, namely the ball camera needs to rotate 136 degrees from the origin of coordinates in the horizontal direction.
It should be noted that, considering the problem of the rotation precision of the ball camera, the required rotation angle Δα of the ball camera in the horizontal direction obtained by the calculation needs to be rounded upwards.
S260, according to the longitudinal pixel value of the first pixel resolution information, the longitudinal pixel value of the third pixel resolution information and the maximum rotation angle in the vertical direction, obtaining the rotation angle of each pixel in the vertical direction, and according to the central longitudinal pixel value, the longitudinal pixel value of the third pixel resolution information and the rotation angle of each pixel in the vertical direction, obtaining the required rotation angle of the spherical camera in the vertical direction.
Specifically, if the position of the base pixel is the position of the origin of coordinates, the central area of the origin of coordinates is the central area of the base pixel, and then the pixel distance between the first pixel resolution information and the central area of the base pixel in the vertical direction comprises a vertical pixel distance, wherein the vertical pixel distance is the difference between the vertical pixel value of the first pixel resolution information and half of the vertical pixel value of the third pixel resolution information, and then the rotation angle of each pixel in the vertical direction of the ball camera is obtained according to the ratio of the maximum rotation angle of the ball camera in the vertical direction to the vertical pixel distance between the first pixel resolution information and the central area of the base pixel in the vertical direction. And then calculating the longitudinal pixel distance between the central area of the area to be amplified and the central area of the basic pixel, namely, the difference value between the central longitudinal pixel value and half of the longitudinal pixel value of the third pixel resolution information, and further obtaining the required rotation angle of the spherical camera in the vertical direction according to the product of the longitudinal pixel distance between the central area of the area to be amplified and the central area of the basic pixel and the rotation angle of each pixel moved by the spherical camera in the vertical direction.
As shown in fig. 2, assuming that the first pixel resolution information of the first image information is (W1, H1), the maximum magnification of the ball camera is N, the third pixel resolution information of the base pixel is (W3, H3), and the maximum rotation angle of the ball camera in the vertical direction is β, the calculation formula of the required rotation angle Δβ of the ball camera in the vertical direction is:
wherein H1 is the vertical pixel value of the first pixel resolution information, and H3 is the third pixel componentThe vertical pixel value of the resolution information, H4, is the central vertical pixel value. Namely, firstly, according to the maximum rotation angle beta of the spherical camera in the vertical direction, the longitudinal pixel distance between the longitudinal pixel value H1 of the first pixel resolution information and the central area of the origin of coordinatesCalculating the rotation angle of each pixel of the ball camera moving in the vertical direction according to the longitudinal pixel distance +_ between the central area of the region to be amplified and the central area of the basic pixel (origin of coordinates)>The product of the rotation angle of each pixel is moved in the vertical direction with the ball type camera to obtain the required rotation angle delta beta of the ball type camera in the vertical direction, so that the acquisition mode of the required amplification factor of the ball type camera in the vertical direction can be ensured to be simple, and the ball type camera can be controlled to rotate to the region to be amplified in time.
Illustratively, with continued reference to fig. 2, the first pixel resolution information of the first image information is set to (1920, 1080), the center longitudinal pixel value is set to 680, the maximum magnification of the ball camera is 32 times, and the maximum rotation angle of the ball camera in the vertical direction is set to 60 °. The third pixel resolution information of the base pixel is (60, 33.75), and then the longitudinal pixel distance between the longitudinal pixel value H1 of the first pixel resolution information and the longitudinal pixel distance of the central area of the origin of coordinates is 1080-33.75/2, the rotation angle of the ball camera moving each pixel in the vertical direction is 60/(1080-33.75/2), and since the longitudinal pixel distance between the central area of the area to be amplified and the central area of the base pixel (origin of coordinates) is (680-33.75/2), the required rotation angle Δβ of the ball camera in the vertical direction is about 38 °, i.e. the ball camera needs to be rotated by 38 ° from the origin of coordinates in the vertical direction.
It should be noted that, considering the problem of the rotation precision of the ball camera, the required rotation angle Δβ of the ball camera in the vertical direction obtained by the final calculation needs to be rounded upwards.
And S270, controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
And S280, storing second image information of the region to be amplified imaged by the ball camera, and controlling the ball camera to restore to the initial magnification and the initial rotation angle.
Specifically, after the region to be amplified is amplified and imaged to obtain second image information, the ball camera is controlled to store the second image information, and the ball camera is controlled to restore to the initial amplification factor and the initial rotation angle so as to image other regions to be amplified later.
In summary, according to the embodiment of the invention, the required magnification is obtained through the ratio of the transverse pixel value of the second pixel resolution information to the transverse pixel value of the third pixel resolution information, the ratio of the longitudinal pixel value of the second pixel resolution information to the longitudinal pixel value of the third pixel resolution and the maximum magnification of the ball camera, so that the acquisition mode of the required magnification of the ball camera is simple, and further a clear image can be acquired in time. In addition, according to the first image information, the horizontal pixel distance and the longitudinal pixel distance of the central area of the origin of coordinates, the maximum rotation angle of the ball camera in the horizontal direction and the maximum rotation angle of the ball camera in the vertical direction, the rotation angle of each pixel in the horizontal direction and the rotation angle of each pixel in the vertical direction of the ball camera are calculated respectively, and further according to the horizontal pixel distance and the longitudinal pixel distance of the central area of the origin of coordinates and the central area of the area to be amplified, the required rotation angle of the ball camera in the horizontal direction and the required rotation angle of the ball camera in the vertical direction are obtained respectively, the acquisition mode of the required amplification factor of the ball camera can be ensured to be simple, and further the ball camera can be controlled to rotate to the area to be amplified in time.
Example III
Fig. 4 is a schematic structural diagram of an image acquisition device with a combined camera according to an embodiment of the present invention, where the embodiment is applicable to a situation that a large viewing angle of a gun camera cannot be considered and a ball camera is adjustable in magnification and rotation angle during monitoring video, the specific structure of the image acquisition device is as follows:
the first determining module 100 is configured to obtain first image information captured by the gun-type camera, and determine an area to be enlarged according to the first image information.
The second determining module 200 is configured to determine a required magnification factor and a required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified.
And the control module 300 is used for controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
The second determining module 200 further includes a required magnification determining unit, where the required magnification determining unit is configured to obtain third pixel resolution information of the base pixel according to the first pixel resolution information and a maximum magnification of the ball camera, and obtain a first magnification based on the base pixel according to a ratio of a horizontal pixel value of the second pixel resolution information to a horizontal pixel value of the third pixel resolution information and a ratio of a vertical pixel value of the second pixel resolution information to a vertical pixel value of the third pixel resolution information, and finally obtain the required magnification of the ball camera according to the first magnification and the maximum magnification.
The first pixel resolution information includes (W1, H1), the second pixel resolution includes (W2, H2), the third pixel resolution information includes (W3, H3), wherein W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W2 is a horizontal pixel value of the second pixel resolution information, H2 is a vertical pixel value of the second pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information. The maximum magnification of the ball camera comprises N, and the transverse pixel value W3 of the third pixel resolution information meets the following conditions: w3=w1/N, and the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N. The first magnification includes N1, N1 satisfying:
the required magnification includes Δn, which satisfies Δn=n—n1.
Optionally, the second determining module 200 further includes a required rotation angle determining unit, where the required rotation angle determining unit is configured to obtain, according to the first pixel resolution information and the maximum magnification of the ball camera, a third pixel resolution information of the base pixel, obtain a maximum rotation angle of the ball camera in a horizontal direction and a maximum rotation angle of the ball camera in a vertical direction, obtain a central horizontal pixel value and a central vertical pixel value of a central area of the area to be amplified from an origin of coordinates, determine, according to the horizontal pixel value of the first pixel resolution information, the horizontal pixel value of the third pixel resolution information and the maximum rotation angle of the ball camera in the horizontal direction, further determine a rotation angle of each pixel in a horizontal direction, according to the central horizontal pixel value, the horizontal pixel value of the third pixel resolution information and the rotation angle of each pixel in the horizontal direction, obtain a required rotation angle of the ball camera in the horizontal direction, further obtain a longitudinal pixel value of the ball camera in the vertical direction according to the longitudinal pixel value of the first pixel resolution information, the maximum rotation angle of the third pixel value of the vertical direction and the vertical direction, and further obtain a longitudinal rotation angle of each pixel of the ball camera in the vertical direction according to the longitudinal pixel value of the first pixel resolution information.
The first pixel resolution information includes (W1, H1), and the third pixel resolution information includes (W3, H3), wherein W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information. The maximum rotation angle of the ball camera in the horizontal direction comprises alpha, the maximum rotation angle of the ball camera in the vertical direction comprises beta, the central transverse pixel value comprises W4, and the central longitudinal direction comprises a plurality of horizontal pixel valuesThe pixel value includes H4, the maximum magnification of the ball camera includes N, and the lateral pixel value W3 of the third pixel resolution information satisfies: w3=w1/N, and the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N. The required rotation angle of the ball camera in the horizontal direction comprises delta alpha, and delta alpha meets the following conditions:the required rotation angle of the ball camera in the horizontal direction comprises delta beta, and delta beta meets the following conditions: />
The image acquisition device also comprises a coordinate system establishment module and a storage and recovery module;
the coordinate system establishment module is used for establishing a first coordinate system of the gun type camera, and adjusting the initial position of the ball type camera in the first coordinate system so that the initial rotation angle of the ball type camera corresponds to the origin of coordinates of the first coordinate system.
The storage and recovery module is used for storing second image information of the ball camera for imaging the region to be amplified and controlling the ball camera to recover to the initial amplification factor and the initial rotation angle.
In summary, the embodiment of the invention includes a first determining module, a second determining module and a control module, where the first determining module is configured to obtain first image information captured by a gun camera, and determine an area to be amplified according to the first image information. The second determining module is used for determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified. And the control module is used for controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle. Therefore, after the abnormal area is determined in the first image information, namely, the area to be amplified is determined, the required amplification factor and the required rotation angle of the ball type camera are determined according to the first pixel resolution information of the first image information and the second pixel resolution information of the area to be amplified, so that the ball type camera can be quickly moved to the area to be amplified and recorded, the large-view angle picture of the gun type camera and the multiple and rotation angle of the ball type camera are simultaneously considered, and the abnormal area can be quickly amplified and recorded after the abnormal area is found in the first image information, so that the abnormal area can be conveniently and subsequently analyzed, the efficiency of positioning and analyzing the abnormal area is improved, and the use experience of a user is improved.
Example IV
Fig. 5 is a schematic diagram of an image acquisition device according to an embodiment of the present invention, which is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The image acquisition device may also represent various forms of mobile equipment, such as personal digital processing, cellular telephones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing equipment. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the image acquisition apparatus 10 includes at least one processor 11, and a memory such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the dot image acquiring apparatus 10 can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A plurality of components in the image acquisition apparatus 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the image acquisition apparatus 10 to exchange information/data with other apparatuses through a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above.
In some embodiments, the fault location method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the image acquisition device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the compensation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the compensation method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Example six
A sixth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an image acquisition method of a combination camera, the image acquisition method comprising:
Acquiring first image information shot by a gun type camera, and determining a region to be amplified according to the first image information;
determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified;
and controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-mentioned method operations, and may also perform the related operations in the space plane-based dispensing control method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above-mentioned embodiments of the search apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. An image acquisition method of a combined camera, characterized in that the image acquisition method comprises the following steps:
acquiring first image information shot by a gun type camera, and determining a region to be amplified according to the first image information;
Determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified;
and controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
2. The image capturing method according to claim 1, wherein the determining the required magnification of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified includes:
obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera;
obtaining a first magnification factor based on the basic pixel according to the ratio of the horizontal pixel value of the second pixel resolution information to the horizontal pixel value of the third pixel resolution information and the ratio of the vertical pixel value of the second pixel resolution information to the vertical pixel value of the third pixel resolution information;
and obtaining the required magnification of the ball camera according to the first magnification and the maximum magnification.
3. The image acquisition method according to claim 2, wherein the first pixel resolution information includes (W1, H1), the second pixel resolution includes (W2, H2), and the third pixel resolution information includes (W3, H3), wherein W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W2 is a horizontal pixel value of the second pixel resolution information, H2 is a vertical pixel value of the second pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information;
the maximum magnification of the ball camera comprises N;
the lateral pixel value W3 of the third pixel resolution information satisfies: w3=w1/N,
the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N;
the first amplification factor includes N1, N1 satisfying:
the required magnification includes Δn, Δn satisfying:
ΔN=N-N1。
4. the image capturing method according to claim 1, wherein determining the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be magnified comprises:
Obtaining third pixel resolution information of the basic pixel according to the first pixel resolution information and the maximum amplification factor of the ball camera;
obtaining the maximum rotation angle of the ball camera in the horizontal direction and the maximum rotation angle of the ball camera in the vertical direction;
acquiring a central transverse pixel value and a central longitudinal pixel value of the central region of the region to be amplified from the origin of coordinates;
determining a rotation angle of each pixel to be moved in the horizontal direction according to the horizontal pixel value of the first pixel resolution information, the horizontal pixel value of the third pixel resolution information and the maximum rotation angle in the horizontal direction;
according to the central horizontal pixel value, the horizontal pixel value of the third pixel resolution information and the rotation angle of each pixel in the horizontal direction, the required rotation angle of the ball camera in the horizontal direction is obtained;
obtaining a rotation angle of each pixel moving in the vertical direction according to the longitudinal pixel value of the first pixel resolution information, the longitudinal pixel value of the third pixel resolution information and the maximum rotation angle in the vertical direction;
and according to the central longitudinal pixel value, the longitudinal pixel value of the third pixel resolution information and the rotation angle of each pixel in the vertical direction, obtaining the required rotation angle of the ball camera in the vertical direction.
5. The method for acquiring an image according to claim 4, wherein,
the first pixel resolution information includes (W1, H1), and the third pixel resolution information includes (W3, H3), wherein W1 is a horizontal pixel value of the first pixel resolution information, H1 is a vertical pixel value of the first pixel resolution information, W3 is a horizontal pixel value of the third pixel resolution information, and H3 is a vertical pixel value of the third pixel resolution information;
the maximum rotation angle of the ball camera in the horizontal direction comprises alpha, and the maximum rotation angle of the ball camera in the vertical direction comprises beta;
the center horizontal pixel value comprises W4 and the center vertical pixel value comprises H4;
the maximum magnification of the ball camera comprises N;
the lateral pixel value W3 of the third pixel resolution information satisfies: w3=w1/N,
the vertical pixel value H3 of the third pixel resolution information satisfies: h3 =h1/N;
the required rotation angle of the ball camera in the horizontal direction comprises delta alpha, and delta alpha meets the following conditions:
the required rotation angle of the ball camera in the horizontal direction comprises delta beta, and delta beta meets the following conditions:
6. the image capturing method according to claim 1, wherein before capturing the first image information captured by the gun camera, and determining the region to be enlarged according to the first image information, further comprises:
Establishing a first coordinate system of the gun type camera, and adjusting the initial position of the ball type camera in the first coordinate system so that the initial rotation angle of the ball type camera corresponds to the origin of coordinates of the first coordinate system.
7. The image acquisition method according to claim 1, characterized by further comprising, after controlling the ball camera to image the region to be enlarged according to the required magnification and the required rotation angle:
and storing second image information of the ball camera for imaging the region to be amplified, and controlling the ball camera to restore to the initial amplification factor and the initial rotation angle.
8. An image acquisition device of a combination camera, comprising:
the first determining module is used for obtaining first image information shot by the gun type camera and determining an area to be amplified according to the first image information;
the second determining module is used for determining the required magnification factor and the required rotation angle of the ball camera according to the first pixel resolution information of the first image information and the second pixel resolution information of the region to be amplified;
And the control module is used for controlling the ball camera to image the region to be amplified according to the required amplification factor and the required rotation angle.
9. An image acquisition apparatus incorporating a camera, the image acquisition apparatus comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the image acquisition method of a combination camera as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program, which when executed by a processor implements the image acquisition method of a combination camera as claimed in any one of claims 1 to 7.
CN202311514898.XA 2023-11-14 2023-11-14 Image acquisition method, device and equipment of combined camera and storage medium Pending CN117544839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311514898.XA CN117544839A (en) 2023-11-14 2023-11-14 Image acquisition method, device and equipment of combined camera and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311514898.XA CN117544839A (en) 2023-11-14 2023-11-14 Image acquisition method, device and equipment of combined camera and storage medium

Publications (1)

Publication Number Publication Date
CN117544839A true CN117544839A (en) 2024-02-09

Family

ID=89793261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311514898.XA Pending CN117544839A (en) 2023-11-14 2023-11-14 Image acquisition method, device and equipment of combined camera and storage medium

Country Status (1)

Country Link
CN (1) CN117544839A (en)

Similar Documents

Publication Publication Date Title
CN110866480B (en) Object tracking method and device, storage medium and electronic device
US20220222776A1 (en) Multi-Stage Multi-Reference Bootstrapping for Video Super-Resolution
US11983898B2 (en) Monitoring method, electronic device and storage medium
US8903130B1 (en) Virtual camera operator
CN112866627B (en) Three-dimensional video monitoring method and related equipment
WO2020233397A1 (en) Method and apparatus for detecting target in video, and computing device and storage medium
WO2014187265A1 (en) Photo-capture processing method, device and computer storage medium
CN111629146B (en) Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
EP4090000A1 (en) Method and device for image processing, electronic device, and storage medium
CN104751164A (en) Method and system for capturing movement trajectory of object
US9251423B2 (en) Estimating motion of an event captured using a digital video camera
CN107071279A (en) A kind of method and system of panoramic picture frame stabilization
CN113259770A (en) Video playing method, device, electronic equipment, medium and product
US20200090309A1 (en) Method and device for denoising processing, storage medium, and terminal
US20210233280A1 (en) Encoding device control method and device, and storage medium
CN110602410B (en) Image processing method and device, aerial camera and storage medium
CN117544839A (en) Image acquisition method, device and equipment of combined camera and storage medium
US20220353484A1 (en) Information processing apparatus, information processing method, and program
JP2017021430A (en) Panoramic video data processing device, processing method, and program
US11893704B2 (en) Image processing method and device therefor
CN116363238A (en) Parallax map generation method, device, equipment and computer readable storage medium
CN114429484A (en) Image processing method and device, intelligent equipment and storage medium
CN111277797B (en) VR (virtual reality) stereoscopic imaging system for security monitoring
WO2019061020A1 (en) Image generation method, image generation device, and machine readable storage medium
Zhang et al. CrossVision: Real-time On-Camera Video Analysis via Common RoI Load Balancing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination