CN113473010B - Snapshot method and device, storage medium and electronic device - Google Patents

Snapshot method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113473010B
CN113473010B CN202110725616.5A CN202110725616A CN113473010B CN 113473010 B CN113473010 B CN 113473010B CN 202110725616 A CN202110725616 A CN 202110725616A CN 113473010 B CN113473010 B CN 113473010B
Authority
CN
China
Prior art keywords
rotation angle
target
determining
angle range
target rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110725616.5A
Other languages
Chinese (zh)
Other versions
CN113473010A (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110725616.5A priority Critical patent/CN113473010B/en
Publication of CN113473010A publication Critical patent/CN113473010A/en
Application granted granted Critical
Publication of CN113473010B publication Critical patent/CN113473010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/61Control of cameras or camera modules based on recognised objects
    • 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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • 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

Abstract

The embodiment of the application provides a snapshot method, a snapshot device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a target image acquired by camera equipment; in the case where the target object is included in the target image, adjusting the image pickup apparatus to a target magnification based on the position information of the target object; determining a target rotation angle range of the image pickup apparatus under a target magnification, wherein the image collected when the image pickup apparatus rotates within the target rotation angle range does not include a dark angle; the target rotation angle of the image pickup apparatus is determined based on the target rotation angle range, and the image pickup apparatus is controlled to perform a snap-shot operation after the target rotation angle is rotated. The application solves the problem of small snapshot visual field range caused by the fact that no dark angle exists in the captured image in the related technology, and achieves the effect of expanding the snapshot visual field range under the condition that no dark angle exists in the captured image of the image capturing equipment.

Description

Snapshot method and device, storage medium and electronic device
Technical Field
The embodiment of the application relates to the field of communication, in particular to a snapshot method, a snapshot device, a storage medium and an electronic device.
Background
The ball machine comprises a cradle head device capable of freely rotating in two directions of the horizontal direction and the vertical direction, and the monitoring range which can be covered by the ball machine is several times that of a gun machine, so that high-tech support is provided for the defense arrangement by virtue of the carried artificial intelligent algorithm in most scenes with high requirements on the coverage rate of the control in the wide view. The positioning snapshot function is used as one of the most main functions of the security camera, makes great contribution to security work of a control area, provides powerful data evidence support for event processing, and because spherical camera equipment in different scenes has different cradle head devices and shells of the equipment, a lens rotates along with rotation of the cradle head, the cradle head possibly rotates to a certain angle in the positioning snapshot process, a dark angle which is generated by shielding of the equipment shells appears in a picture of the lens, the captured image is caused to have the dark angle, and the dark angle of the picture of the lens needs to be processed and avoided in the positioning process due to the consideration of user experience and normal function realization.
In the related art, the processing method of the hidden angle of the processing device is mostly focused on processing the limit on the pan-tilt structure, and meanwhile, the limit processing is often fixed, so that a part of the visual field range is lost.
As is clear from the above, the related art has a problem of a small capturing field of view due to the absence of a dark angle in the captured image.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a snapshot method, a snapshot device, a storage medium and an electronic device, which at least solve the problem of small snapshot visual field range caused by the fact that no dark angle exists in a snapshot image in the related technology.
According to an embodiment of the present application, there is provided a snapshot method including: acquiring a target image acquired by camera equipment; in the case where a target object is included in the target image, adjusting the image pickup apparatus to a target magnification based on position information of the target object; determining a target rotation angle range of the image pickup apparatus at the target magnification, wherein the image collected when the image pickup apparatus rotates within the target rotation angle range does not include a dark angle; and determining a target rotation angle of the image pickup device based on the target rotation angle range, and controlling the image pickup device to execute snapshot operation after rotating the target rotation angle.
According to another embodiment of the present application, there is provided a snapshot apparatus including: the acquisition module is used for acquiring the target image acquired by the camera equipment; an adjustment module configured to adjust the image capturing apparatus to a target magnification based on position information of a target object in a case where the target object is included in the target image; a determining module, configured to determine a target rotation angle range of the image capturing apparatus under the target magnification, where a dark angle is not included in an image acquired when the image capturing apparatus rotates within the target rotation angle range; and the snapshot module is used for determining the target rotation angle of the image pickup device based on the target rotation angle range and controlling the image pickup device to execute snapshot operation after rotating the target rotation angle.
According to yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program when executed by a processor implements the steps of the method as described in any of the above.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, the target image acquired by the image pickup device is acquired, the image pickup device is adjusted to the target multiplying power based on the position information of the target object under the condition that the target image comprises the target object, the target rotation range of the image pickup device under the target multiplying power is determined, the target rotation angle of the image pickup device is determined according to the target rotation range, and the image pickup device is controlled to execute the snap shooting operation after rotating the target rotation angle. Since the target rotation range of the image capturing apparatus is determined by the target magnification, that is, the target rotation ranges corresponding to different magnifications, and the image captured by the image capturing apparatus does not include a dark angle when the image capturing apparatus rotates within the target rotation range, the image captured by the image capturing apparatus is controlled to have no dark angle after the image capturing apparatus rotates by the target rotation angle determined by the target rotation range, and therefore, the problem of small capture view range caused by the fact that no dark angle exists in the captured image in the related art can be solved, and the effect of expanding the capture view range under the condition that no dark angle exists in the captured image of the image capturing apparatus can be achieved.
Drawings
Fig. 1 is a hardware block diagram of a mobile terminal of a snapshot method according to an embodiment of the present application;
FIG. 2 is a flow chart of a snap shot method according to an embodiment of the application;
fig. 3 is a schematic view of dynamic limit of the image pickup apparatus at a small magnification according to an exemplary embodiment of the present application;
fig. 4 is a schematic view of dynamic limit of the image pickup apparatus at a high magnification according to an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a snapshot method in accordance with an embodiment of the present application;
fig. 6 is a block diagram of a snapshot device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
As an acquisition device for converting a light image from visible light to near infrared spectrum range on the target surface of an image sensor into a video image signal for the purpose of security video monitoring, the concept of security cameras and products enter the market. Due to deep learning, the rising and high-speed development of the artificial intelligence industry is realized, and the security camera with the deep learning algorithm provides more intelligent and complete functions for clients and life protection and navigation for people as a proper floor product of the artificial intelligence. The product serves the requirement, and the requirement comes from the scene, and the requirement to the security protection camera of settling under different scenes is also different. For example, an explosion-proof camera installed in a severe area of a high altitude environment, a traffic camera installed in a traffic junction such as a vehicle-mounted highway, etc. Cameras serving different scenes are provided with different functions, and differentiated hardware is used, so that the development of security camera technology is promoted while the requirements of clients are met.
The gun type security camera is widely used in various areas at present, and is also called a gun camera. According to the angle and the lens of installation, video image signals in a certain visual field range can be stably acquired, and the bolt is installed in the area in the security coverage, so that the reasonable control of the area can be effectively realized, and the security requirement can be met by virtue of the intelligent carrying. However, the scope that can be monitored by the rifle bolt is completely supported by the angle of installation and the angle of view of using the camera lens, and aiming at the defect, a camera device, namely a spherical camera and a ball machine, which are provided with a cradle head capable of freely rotating on two horizontal and vertical axes, are appeared. However, the ball has a problem of a small snap shot field of view, which is caused by the fact that no dark angle exists in the snap shot image.
In view of the above problems, the present application proposes a snapshot method to achieve the effect of expanding a snapshot field of view without a dark angle in an image that is snapshot by an image capturing apparatus.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of a snapshot method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a snapshot method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a capturing method is provided, fig. 2 is a flowchart of the capturing method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a target image acquired by camera equipment;
step S204 of adjusting the image pickup apparatus to a target magnification based on position information of a target object in a case where the target object is included in the target image;
step S206, determining a target rotation angle range of the image capturing apparatus at the target magnification, wherein the image captured by the image capturing apparatus when rotating within the target rotation angle range does not include a dark angle;
step S208 of determining a target rotation angle of the image capturing apparatus based on the target rotation angle range, and controlling the image capturing apparatus to perform a snap shot operation after rotating the target rotation angle.
In the above embodiment, the image capturing apparatus may be a dome camera, and the image capturing apparatus includes a pan-tilt and a camera. The image capturing apparatus may analyze an image captured by the camera to determine whether an object of interest, i.e., a target object, exists in a region monitored by the image capturing apparatus. Wherein the target object may be a person, an article, a vehicle, etc. When the target object appears in the target image, the image capturing apparatus may be adjusted to the target magnification according to the position information in the image in which the target object is located, so that the target object may appear in the image in a predetermined ratio, where the predetermined ratio may be a ratio set in advance, for example, such that the target object occupies 75% of the entire screen (this value is merely an exemplary illustration, and may be 50%,60%,80%, or the like, which is not limited by the present application). And determining a target rotation angle range of the image pickup device under the target multiplying power, wherein no dark angle exists in the image acquired by the image pickup device when the image pickup device rotates any angle in the target rotation range.
In the above embodiment, the range of no dark angle that can be monitored by the lens frame is determined by the lens field angle and the range of no dark angle shielding of the lens housing, the range of no dark angle shielding of the device housing is determined by the hardware structure, and the same appearance product is consistent. The angle of view of the lens is inversely related to the focal length of the lens, and the focal length of the lens affects the imaging magnification, so that the angle of view of the lens is different at different magnifications. Therefore, the spherical camera equipment adopting the same lens shell can actually realize different rotation ranges without dark angles under different multiplying powers of the lenses.
In the above-described embodiment, after the target rotation angle range is determined, the target rotation angle of the image pickup apparatus may be determined from the target rotation angle range. After the image pickup apparatus rotates the target rotation angle, the target object is in the target field of view of the image pickup apparatus. Wherein the target field of view region may include a middle of field of view of the image capturing apparatus. When the target object is in the target field of view region, the snapshot operation is performed, and therefore, the efficiency of the snapshot can be improved.
Alternatively, the main body of execution of the above steps may be an image capturing device, or other devices with similar processing capability, or may be a machine integrated with at least an image capturing device and a data processing device, where the image capturing device may include a graphics capturing module such as a camera, and the data processing device may include a terminal such as a computer, a mobile phone, and the like, but is not limited thereto.
According to the application, the target image acquired by the image pickup device is acquired, the image pickup device is adjusted to the target multiplying power based on the position information of the target object under the condition that the target image comprises the target object, the target rotation range of the image pickup device under the target multiplying power is determined, the target rotation angle of the image pickup device is determined according to the target rotation range, and the image pickup device is controlled to execute the snap shooting operation after rotating the target rotation angle. Since the target rotation range of the image capturing apparatus is determined by the target magnification, that is, the target rotation ranges corresponding to different magnifications, and the image captured by the image capturing apparatus does not include a dark angle when the image capturing apparatus rotates within the target rotation range, the image captured by the image capturing apparatus is controlled to have no dark angle after the image capturing apparatus rotates by the target rotation angle determined by the target rotation range, and therefore, the problem of small capture view range caused by the fact that no dark angle exists in the captured image in the related art can be solved, and the effect of expanding the capture view range under the condition that no dark angle exists in the captured image of the image capturing apparatus can be achieved.
In one exemplary embodiment, determining the target rotation angle range of the image capturing apparatus at the target magnification includes: acquiring a first rotation angle range of the image pickup apparatus at a minimum magnification supported by the image pickup apparatus, and a first field angle; determining a second field angle of the image capturing apparatus at the target magnification; the target rotation angle range is determined based on the first rotation angle range, the first field of view, and the second field of view. In the present embodiment, the target rotation angle may include a horizontal rotation angle and a vertical rotation angle. In determining the target rotation angle, it may be determined by a first rotation angle range at a minimum magnification supported by the image capturing apparatus, a first angle of view of the image capturing apparatus at the minimum magnification, and a second angle of view of the image capturing apparatus at the target magnification.
In the above embodiment, the dynamic limit is performed on the pan-tilt according to the size of the angle of view under the minimum magnification of the lens and the angle of view in the zooming process, so as to provide the device with the largest possible field of view without any dark angle
In one exemplary embodiment, determining the target rotation angle range based on the first rotation angle range, the first field of view, and the second field of view includes: determining a difference between the second field of view and the first field of view; determining a first sum of the difference and a first minimum value in the first rotation angle range and a second sum of the difference and a first maximum value in the first rotation angle range to obtain a second rotation angle range; the second rotation angle range is determined as the target rotation range. In this embodiment, a dynamic limit diagram of the image capturing apparatus at a small magnification may be seen in fig. 3, and as shown in fig. 3, at a small magnification, the focal length of the lens is small and the angle of view is large. The range of angles in which the cradle head can rotate in the vertical direction is [ -A, +A ]. The dynamic limit diagram of the image capturing apparatus at a large magnification can be seen from fig. 4, and as the magnification increases, the focal length of the lens increases and the angle of view decreases as shown in fig. 4. In the vertical direction of the cradle head, the rotatable angle range is [ -B, +B ], and the horizontal direction is the same. The multiplying power is increased, and the rotation range of the cradle head without the hidden angle is also increased.
In the above embodiment, the image capturing apparatus may record the angle of view data (vertical angle of view ft1, corresponding to the above-described first angle of view) at the minimum magnification and the rotation angle range t1 (corresponding to the above-described first rotation angle range) without the dark angle, and acquire the angle of view data (vertical angle of view ft2, corresponding to the above-described second angle of view) at the current magnification in real time during the apparatus magnification change. The rotation angle range t2 (corresponding to the target rotation angle range) under the condition of no current dark angle is obtained through calculation. Wherein t2=t1+ (ft 2-ft 1).
In the above embodiment, starting from the basic principle that the dark angle appears on the lens picture, according to the negative correlation between the field angle of view of the lens and the focal length (picture multiplying power) of the lens, on the basis of obtaining the field angle data under the minimum multiplying power of the lens and the maximum rotation angle data of the holder under the minimum multiplying power, the maximum rotation angles of the holder under different positioning snapshot multiplying powers are dynamically calculated, so as to realize dynamic limiting.
In one exemplary embodiment, determining the target rotation angle of the image capturing apparatus based on the target rotation angle range includes: determining a rotation angle to be rotated when the image pickup apparatus rotates to a target field of view region of the image pickup apparatus; determining a target relation between the angle to be rotated and the target rotation angle range; and determining the target rotation angle based on the target relation. In this embodiment, after the target rotation angle range is determined, the rotation angle to be rotated when the image capturing apparatus rotates to the target field of view region of the image capturing apparatus may be determined, the target relationship between the rotation angle to be rotated and the target rotation angle range may be determined, and the target rotation angle may be determined according to the target relationship. And the transmitted rotation angle data can be judged according to the calculated real-time rotation range data without the hidden angle when transmitting the rotation angle instruction to the cradle head, so that the generation of the hidden angle of the lens picture is avoided on the software level, and the dynamic limiting positioning snapshot is realized. The target field of view region may be a field of view middle region of the image capturing apparatus, or any region in the field of view of the image capturing apparatus in which the image capturing apparatus can capture a complete target object.
In one exemplary embodiment, determining the target rotation angle based on the target relationship includes: determining the angle to be rotated as the target rotation angle when the target relationship indicates that the angle to be rotated is within the target rotation angle range; and determining the target rotation angle based on the to-be-rotated angle and the target rotation angle range including a second minimum value and a second maximum value in the target rotation angle range, in the case that the target relationship indicates that the to-be-rotated angle is outside the target rotation angle range. In the present embodiment, in the case where the angle to be rotated is in the target rotation angle range, the angle to be rotated is determined as the target rotation angle. When the angle to be rotated is out of the target rotation angle range, the target rotation angle is determined according to the maximum value and the minimum value in the angle to be rotated and the target rotation angle range.
In one exemplary embodiment, determining the target rotation angle based on the angle to be rotated and the target rotation angle range including a second minimum value and a second maximum value includes: determining the second minimum value as the target rotation angle under the condition that the angle to be rotated is smaller than the second minimum value; and determining the second maximum value as the target rotation angle in the case that the angle to be rotated is larger than the second maximum value. In the present embodiment, when the angle to be rotated is smaller than the minimum value in the target rotation angle range, the minimum value of the target rotation angle range is determined as the target rotation angle. When the angle to be rotated is larger than the maximum value of the target rotation angle range, the maximum value of the target rotation angle range is determined as the target rotation angle.
In the above embodiment, the maximum rotation angle of the pan-tilt under the current magnification can be calculated according to the positioning snapshot magnification, the positioning instruction issued to the pan-tilt is judged, and the limiting of the pan-tilt is controlled from the software level, so as to avoid the loss of the physical structure caused by adopting the physical limiting structure
The snapshot method is described below with reference to the specific embodiments:
fig. 5 is a flowchart of a snapshot method according to an embodiment of the present application, as shown in fig. 5, where the method includes:
step S502, obtaining a lens field angle and a cradle head rotation range under the minimum multiplying power;
step S504, receiving a positioning snapshot instruction;
step S506, calculating a rotation range of the cradle head under the snapshot multiplying power;
and step S508, positioning snapshot without dark corners.
In the foregoing embodiment, according to the characteristic that the field angle of view of the lens increases with the increase of the focal length, the magnification of the image decreases with the decrease of the focal length, and the pan-tilt rotation range without the dark angle is calculated in real time by calculating the value of the snap-shot magnification in the positioning snap-shot command, and the issued pan-tilt rotation command is judged according to the calculated range, so as to realize automatic dynamic limiting. According to the method, the maximum rotation angle of the cradle head capable of realizing no dark angle of a picture under the current multiplying power can be calculated according to the multiplying power when equipment is used for positioning and snapshot, and positioning and snapshot of the maximum monitoring visual field range can be realized by adjusting a positioning instruction according to the angle; according to the field angle of view of the lens at the minimum magnification and the maximum rotation angle of the holder at the minimum magnification, calculating the maximum rotation angles of the holders at different positioning magnifications on a software level, and carrying out limit control on the issued positioning rotation instruction, so that the stability is high, and physical damage of a holder hardware structure is avoided; dynamic cradle head limiting on a software layer, starting from the root cause of the generation of the hidden angle, according to the correlation between parameters such as the angle of view and the focal length of the lens, automatic limiting of the cradle head is realized, and meanwhile, the limiting high precision is ensured.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
In this embodiment, a snapshot device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram of a snapshot device according to an embodiment of the present application, as shown in fig. 6, including:
an acquisition module 62, configured to acquire a target image acquired by the image capturing apparatus;
an adjustment module 64 for adjusting the image pickup apparatus to a target magnification based on position information of a target object in a case where the target object is included in the target image;
a determining module 66 configured to determine a target rotation angle range of the image capturing apparatus at the target magnification, where a dark angle is not included in an image captured when the image capturing apparatus rotates within the target rotation angle range;
and a snapshot module 68 for determining a target rotation angle of the image capturing apparatus based on the target rotation angle range, and controlling the image capturing apparatus to perform a snapshot operation after rotating the target rotation angle.
In one exemplary embodiment, the determination module 66 includes: an acquisition unit configured to acquire a first rotation angle range and a first angle of view of the image pickup apparatus at a minimum magnification supported by the image pickup apparatus; a first determination unit configured to determine a second angle of view of the image capturing apparatus at the target magnification; a second determination unit configured to determine the target rotation angle range based on the first rotation angle range, the first angle of view, and the second angle of view.
In one exemplary embodiment, the second determining unit may implement determining the target rotation angle range based on the first rotation angle range, the first angle of view, and the second angle of view by: determining a difference between the second field of view and the first field of view; determining a first sum of the difference and a first minimum value in the first rotation angle range and a second sum of the difference and a first maximum value in the first rotation angle range to obtain a second rotation angle range; the second rotation angle range is determined as the target rotation range.
In one exemplary embodiment, the snapshot module 68 may enable determining the target rotation angle of the image capturing apparatus based on the target rotation angle range by: determining a rotation angle to be rotated when the image pickup apparatus rotates to a target field of view region of the image pickup apparatus; determining a target relation between the angle to be rotated and the target rotation angle range; and determining the target rotation angle based on the target relation.
In one exemplary embodiment, the snapshot module 68 may enable the determination of the target angle of rotation based on the target relationship by: determining the angle to be rotated as the target rotation angle when the target relationship indicates that the angle to be rotated is within the target rotation angle range; and determining the target rotation angle based on the to-be-rotated angle and the target rotation angle range including a second minimum value and a second maximum value in the target rotation angle range, in the case that the target relationship indicates that the to-be-rotated angle is outside the target rotation angle range.
In one exemplary embodiment, the snapshot module 68 may enable determining the target rotation angle based on the angle to be rotated and the target rotation angle range including a second minimum value and a second maximum value by: determining the second minimum value as the target rotation angle under the condition that the angle to be rotated is smaller than the second minimum value; and determining the second maximum value as the target rotation angle in the case that the angle to be rotated is larger than the second maximum value.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor implements the steps of the method described in any of the above.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (6)

1. A snapshot method, comprising:
acquiring a target image acquired by security camera equipment;
in the case where a target object is included in the target image, adjusting the image pickup apparatus to a target magnification based on position information of the target object;
determining a target rotation angle range of the image capturing apparatus at the target magnification includes: acquiring a first rotation angle range of the image pickup apparatus at a minimum magnification supported by the image pickup apparatus, and a first field angle; determining a second field angle of the image capturing device under the target magnification in response to a positioning snapshot instruction; determining the target rotation angle range based on the first rotation angle range, the first field angle, and the second field angle, wherein a dark angle is not included in an image acquired when the image capturing apparatus rotates within the target rotation angle range;
determining a target rotation angle of the image pickup device based on the target rotation angle range, and controlling the image pickup device to execute positioning snapshot operation on the target object after rotating the target rotation angle;
determining the target rotation angle of the image capturing apparatus based on the target rotation angle range includes: determining a rotation angle to be formed when the image pickup device rotates to enable the complete target object to be located in the middle area of the visual field of the image pickup device or any area in the visual field of the image pickup device; determining a target relation between the angle to be rotated and the target rotation angle range; determining the target rotation angle based on the target relationship;
the determining the target rotation angle range based on the first rotation angle range, the first field of view, and the second field of view includes: determining a difference between the second field of view and the first field of view;
determining a first sum of the difference and a first minimum value in the first rotation angle range and a second sum of the difference and a first maximum value in the first rotation angle range to obtain a second rotation angle range;
the second rotation angle range is determined as the target rotation angle range.
2. The method of claim 1, wherein determining the target rotation angle based on the target relationship comprises:
determining the angle to be rotated as the target rotation angle when the target relationship indicates that the angle to be rotated is within the target rotation angle range;
and determining the target rotation angle based on the to-be-rotated angle and the target rotation angle range including a second minimum value and a second maximum value in the target rotation angle range, in the case that the target relationship indicates that the to-be-rotated angle is outside the target rotation angle range.
3. The method of claim 2, wherein determining the target rotation angle based on the angle to be rotated and the target rotation angle range including a second minimum value and a second maximum value comprises:
determining the second minimum value as the target rotation angle under the condition that the angle to be rotated is smaller than the second minimum value;
and determining the second maximum value as the target rotation angle in the case that the angle to be rotated is larger than the second maximum value.
4. A snapshot device, comprising:
the acquisition module is used for acquiring the target image acquired by the security camera equipment;
an adjustment module configured to adjust the image capturing apparatus to a target magnification based on position information of a target object in a case where the target object is included in the target image;
a determining module, configured to determine a target rotation angle range of the image capturing apparatus under the target magnification, where the determining module includes an acquiring unit, a first determining unit, and a second determining unit; the acquisition unit is used for acquiring a first rotation angle range and a first field angle of the image pickup device under the minimum multiplying power supported by the image pickup device; the first determining unit is used for determining a second field angle of the image pickup device under the target multiplying power in response to a positioning snapshot instruction; the second determining unit is configured to determine the target rotation angle range based on the first rotation angle range, the first field angle, and the second field angle; wherein, the image collected when the camera equipment rotates within the target rotation angle range does not comprise a dark angle;
the snapshot module is used for determining a target rotation angle of the image pickup device based on the target rotation angle range and controlling the image pickup device to execute positioning snapshot operation on the target object after rotating the target rotation angle;
the snapshot module is further used for determining a to-be-rotated angle when the image pickup device rotates to enable the complete target object to be located in the middle area of the visual field of the image pickup device or any area in the visual field of the image pickup device; determining a target relation between the angle to be rotated and the target rotation angle range; determining the target rotation angle based on the target relationship;
the determining the target rotation angle range based on the first rotation angle range, the first field of view, and the second field of view includes: determining a difference between the second field of view and the first field of view;
determining a first sum of the difference and a first minimum value in the first rotation angle range and a second sum of the difference and a first maximum value in the first rotation angle range to obtain a second rotation angle range;
the second rotation angle range is determined as the target rotation angle range.
5. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 3.
6. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 3.
CN202110725616.5A 2021-06-29 2021-06-29 Snapshot method and device, storage medium and electronic device Active CN113473010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110725616.5A CN113473010B (en) 2021-06-29 2021-06-29 Snapshot method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110725616.5A CN113473010B (en) 2021-06-29 2021-06-29 Snapshot method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113473010A CN113473010A (en) 2021-10-01
CN113473010B true CN113473010B (en) 2023-08-22

Family

ID=77873713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110725616.5A Active CN113473010B (en) 2021-06-29 2021-06-29 Snapshot method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113473010B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374800B (en) * 2022-01-14 2023-07-14 浙江大华技术股份有限公司 Focusing processing method and device, storage medium and electronic device
CN114845020B (en) * 2022-04-20 2023-02-24 深圳禾木信息技术有限公司 Control method and equipment for extensible network camera
CN116703718B (en) * 2022-09-08 2024-03-22 荣耀终端有限公司 Image amplification method and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006310901A (en) * 2005-04-26 2006-11-09 Victor Co Of Japan Ltd Supervisory system and supervisory method
CN104822027A (en) * 2015-04-30 2015-08-05 华为技术有限公司 Video signal apparatus and control method thereof
CN108737721A (en) * 2018-04-11 2018-11-02 浙江大华技术股份有限公司 A kind of video camera limit adjusting method and device
CN109922250A (en) * 2017-12-12 2019-06-21 杭州海康威视数字技术股份有限公司 A kind of target object grasp shoot method, device and video monitoring equipment
JP2019194636A (en) * 2018-05-01 2019-11-07 キヤノン株式会社 Imaging system, control method of the same, imaging apparatus, program, and storage medium
CN110602383A (en) * 2019-08-27 2019-12-20 深圳市华橙数字科技有限公司 Pose adjusting method and device for monitoring camera, terminal and storage medium
CN110798607A (en) * 2018-08-01 2020-02-14 浙江宇视科技有限公司 Shooting state adjusting method and device
JP2020088507A (en) * 2018-11-20 2020-06-04 キヤノン株式会社 Image processing device and image processing method
CN111432130A (en) * 2020-04-23 2020-07-17 西安智文琛软件有限公司 Automatic tracking focusing snapshot method, snapshot system, unmanned aerial vehicle and application
WO2021053990A1 (en) * 2019-09-20 2021-03-25 株式会社吉田製作所 Medical optical imaging device
CN112714287A (en) * 2020-12-23 2021-04-27 广东科凯达智能机器人有限公司 Pan-tilt target conversion control method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006310901A (en) * 2005-04-26 2006-11-09 Victor Co Of Japan Ltd Supervisory system and supervisory method
CN104822027A (en) * 2015-04-30 2015-08-05 华为技术有限公司 Video signal apparatus and control method thereof
CN109922250A (en) * 2017-12-12 2019-06-21 杭州海康威视数字技术股份有限公司 A kind of target object grasp shoot method, device and video monitoring equipment
CN108737721A (en) * 2018-04-11 2018-11-02 浙江大华技术股份有限公司 A kind of video camera limit adjusting method and device
JP2019194636A (en) * 2018-05-01 2019-11-07 キヤノン株式会社 Imaging system, control method of the same, imaging apparatus, program, and storage medium
CN110798607A (en) * 2018-08-01 2020-02-14 浙江宇视科技有限公司 Shooting state adjusting method and device
JP2020088507A (en) * 2018-11-20 2020-06-04 キヤノン株式会社 Image processing device and image processing method
CN110602383A (en) * 2019-08-27 2019-12-20 深圳市华橙数字科技有限公司 Pose adjusting method and device for monitoring camera, terminal and storage medium
WO2021053990A1 (en) * 2019-09-20 2021-03-25 株式会社吉田製作所 Medical optical imaging device
CN111432130A (en) * 2020-04-23 2020-07-17 西安智文琛软件有限公司 Automatic tracking focusing snapshot method, snapshot system, unmanned aerial vehicle and application
CN112714287A (en) * 2020-12-23 2021-04-27 广东科凯达智能机器人有限公司 Pan-tilt target conversion control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113473010A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN113473010B (en) Snapshot method and device, storage medium and electronic device
CN109040709B (en) Video monitoring method and device, monitoring server and video monitoring system
CN107710283B (en) Shooting control method and device and control equipment
CN109376601B (en) Object tracking method based on high-speed ball, monitoring server and video monitoring system
US10740887B2 (en) Method and system for automated video image focus change detection and classification
CN206260046U (en) A kind of thermal source based on thermal infrared imager and swarm into tracks of device
CN110602400B (en) Video shooting method and device and computer readable storage medium
CN110493524B (en) Photometric adjustment method, device and equipment and storage medium
CN112399075B (en) Control method of light supplement lamp, monitoring equipment, electronic device and storage medium
CN106708070B (en) Aerial photography control method and device
CN112207821B (en) Target searching method of visual robot and robot
CN113393492A (en) Target tracking method, target tracking device, electronic device and storage medium
CN110933297B (en) Photographing control method and device of intelligent photographing system, storage medium and system
CN113079369A (en) Method and device for determining image pickup equipment, storage medium and electronic device
CN113391644A (en) Unmanned aerial vehicle shooting distance semi-automatic optimization method based on image information entropy
CN111800521A (en) Front-end equipment control method and device
CN112037127A (en) Privacy shielding method and device for video monitoring, storage medium and electronic device
CN110809117A (en) Shooting mode triggering method and device and electronic equipment
CN116017136A (en) Shooting equipment control method and device, storage medium and electronic device
CN111263081B (en) Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus
CN112640420B (en) Control method, device, equipment and system of electronic device
WO2022000211A1 (en) Photography system control method, device, movable platform, and storage medium
CN113452925B (en) Automatic exposure method for high dynamic range image and unmanned aerial vehicle
CN111684784B (en) Image processing method and device
CN111739072A (en) Pixel matching method and device, storage medium and electronic device

Legal Events

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