CN113473010A - 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
CN113473010A
CN113473010A CN202110725616.5A CN202110725616A CN113473010A CN 113473010 A CN113473010 A CN 113473010A CN 202110725616 A CN202110725616 A CN 202110725616A CN 113473010 A CN113473010 A CN 113473010A
Authority
CN
China
Prior art keywords
target
rotation angle
determining
target rotation
angle range
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.)
Granted
Application number
CN202110725616.5A
Other languages
Chinese (zh)
Other versions
CN113473010B (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

Images

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 invention provides a snapshot method, a snapshot device, a storage medium and an electronic device, wherein the snapshot method comprises the following steps: acquiring a target image acquired by camera equipment; adjusting the image pickup apparatus to a target magnification based on position information of the target object in a case where the target object is included in the target image; determining a target rotation angle range of the camera equipment under a target magnification, wherein the dark corner is not included in an image acquired when the camera equipment rotates in the target rotation angle range; and determining a target rotation angle of the camera device based on the target rotation angle range, and controlling the camera device to execute snapshot operation after the target rotation angle is rotated. According to the invention, the problem of small snapshot view range caused by no dark corner in the snapshot image in the related technology is solved, and the effect of enlarging the snapshot view range under the condition that no dark corner exists in the snapshot image of the camera equipment is achieved.

Description

Snapshot method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a snapshot method, a snapshot device, a storage medium and an electronic device.
Background
Including the cloud platform device that can freely rotate in two directions of horizontal perpendicular, the monitoring range that the ball machine can cover is several times of rifle bolt, consequently, opens the scene that requires high to the cloth accuse coverage in the field of vision mostly, relies on the artificial intelligence algorithm of carrying to provide high-tech support for the cloth defence. The positioning snapshot function is one of the most main functions of a security camera, makes a great contribution to security work of a control area, and provides powerful data evidence support for processing events.
In the related art, the processing method for processing the dark corners of the processing equipment mostly focuses on processing the limit on the holder structure, and the limit processing is often fixed, so that a part of the visual field range is lost.
As can be seen from this, the related art has a problem of a small capture visual field range in order to prevent dark corners from appearing in captured images.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a snapshot method, a snapshot device, a storage medium and an electronic device, which are used for at least solving the problem that the snapshot view field range is small due to the fact that no vignetting exists in a snapshot image in the related technology.
According to an embodiment of the present invention, there is provided a snapshot method including: acquiring a target image acquired by camera equipment; 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; determining a target rotation angle range of the camera under the target magnification, wherein the dark corner is not included in the acquired image when the camera rotates in the target rotation angle range; and determining a target rotation angle of the camera device based on the target rotation angle range, and controlling the camera device to execute snapshot operation after rotating the target rotation angle.
According to another embodiment of the present invention, there is provided a snapshot apparatus including: the acquisition module is used for acquiring a 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; the determining module is used for determining a target rotation angle range of the camera equipment under the target magnification, wherein dark corners are not included in the acquired image when the camera equipment rotates in the target rotation angle range; and the snapshot module is used for determining the target rotation angle of the camera equipment based on the target rotation angle range and controlling the camera equipment to execute snapshot operation after rotating the target rotation angle.
According to yet another embodiment of the invention, there is also provided 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 as set forth in any of the above.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target image acquired by the camera equipment is acquired, under the condition that the target image comprises the target object, the camera equipment is adjusted to the target magnification based on the position information of the target object, the target rotation range of the camera equipment under the target magnification is determined, the target rotation angle of the camera equipment is determined according to the target rotation range, and the camera equipment is controlled to execute the snapshot operation after the target rotation angle is rotated. The target rotation range of the camera equipment is determined by the target magnification, namely the target rotation ranges corresponding to different magnifications, and the image acquired when the camera equipment rotates in the target rotation range does not include a vignetting, so that the camera equipment is controlled to rotate by the target rotation angle determined by the target rotation range, and the vignetting does not exist in the image captured by the camera equipment, therefore, the problem that the captured view range is small due to the fact that the vignetting does not exist in the captured image in the related technology can be solved, and the effect of expanding the captured view range under the condition that the vignetting does not exist in the image captured by the camera equipment is achieved.
Drawings
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 invention;
FIG. 2 is a flow chart of a snap-shot method according to an embodiment of the invention;
fig. 3 is a schematic diagram of dynamic limiting of an image pickup apparatus at a small magnification according to an exemplary embodiment of the present invention;
fig. 4 is a schematic diagram of dynamic limiting of an image pickup apparatus at a large magnification according to an exemplary embodiment of the present invention;
FIG. 5 is a flow diagram of a snapshot method in accordance with a specific embodiment of the present invention;
fig. 6 is a block diagram of the structure of a capturing apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail 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 claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
As the acquisition device for converting light images from visible light to near infrared spectrum range on the target surface of an image sensor into video image signals for the purpose of safety precaution video monitoring, the concept of a security camera and a product enter the market. Benefiting from deep learning, rising and high-speed development of the artificial intelligence industry, the safety protection camera carrying the deep learning algorithm provides more intelligent and complete functions for customers as a suitable floor product of artificial intelligence, and provides life protection and driving protection for people. The product serves the demands, the demands come from scenes, and the requirements for security cameras arranged in different scenes are different. For example, an explosion-proof camera installed in a severe high altitude area, a traffic camera installed in a traffic hub such as a truck-entrance highway, and the like. The cameras serving different scenes carry different functions, and differentiated hardware is used, so that the development of the security camera technology is promoted while the customer requirements are met.
In the present stage, a gun-shaped security camera, also called a gun camera, is used in various areas in a large range. According to the angle and the lens of installation, it can stably gather the video image signal in certain field of vision scope, through the regional installation rifle bolt in the security protection covers, can realize effectively rationally deploying and controlling to the region, relies on the demand that the intelligence of carrying can accomplish the security protection. However, the range that the bolt can monitor is completely entrusted to the installation angle and the angle of view using the lens, and in view of this deficiency, a camera device, i.e. a spherical camera, also called a ball machine, is provided with a pan head capable of freely rotating on two horizontal and vertical axes. However, the ball may have a problem that the captured image has a small field of view in order to prevent a dark angle from being present in the captured image.
In order to solve the above problems, the present invention provides a snapshot method to achieve an effect of expanding a snapshot view range without a vignetting in an image captured by a camera device.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the operation on the mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of the snapshot method according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. 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 an application software and a module, such as a computer program corresponding to the snapshot method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The 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 located remotely from the processor 102, which may be connected to the mobile terminal over 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 (NIC) that can be connected 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 used to communicate with the internet in a wireless manner.
In the present embodiment, a snapshot method is provided, and fig. 2 is a flowchart of the snapshot method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a target image acquired by the camera equipment;
step S204, when a 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;
step S206, determining a target rotation angle range of the camera under the target magnification, wherein the dark corner is not included in the acquired image when the camera rotates in the target rotation angle range;
and step S208, determining a target rotation angle of the camera device based on the target rotation angle range, and controlling the camera device to execute snapshot operation after rotating the target rotation angle.
In the above embodiment, the image capturing device may be a ball machine, and the image capturing device includes a pan/tilt head and a camera. The camera device may analyze images captured by the camera to determine whether an object of interest, i.e., a target object, is present in the area monitored by the camera device. The target object may be a person, an article, a vehicle, or the like. When a 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 where the target object is located, so that the target object may appear in the image at a predetermined ratio, where the predetermined ratio may be a ratio set in advance, for example, the target object may occupy 75% of the entire screen (this value is merely an exemplary illustration, and may also be 50%, 60%, 80%, and the like, which is not limited by the present invention). And determining a target rotation angle range of the camera equipment under the target magnification, wherein when the camera equipment rotates any angle in the target rotation range, no dark angle exists in an image acquired by the camera equipment.
In the above embodiment, the non-vignetting range that the lens image can monitor is determined by the lens field angle and the non-vignetting range of the lens housing, the non-vignetting range of the device housing is determined by the hardware structure, and the items of the same appearance product are all the same. The field angle of the lens is in a negative correlation with the focal length of the lens, and the focal length of the lens affects the imaging magnification, so that the field angles of the lens at different magnifications are different. Therefore, the ball machine equipment adopting the same lens shell can actually realize different rotation ranges without a dark angle under different magnifications of the lens.
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 according to the target rotation angle range. After the image pickup apparatus has rotated 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 a field of view of the image pickup apparatus. When the target object is in the target visual field region, the snapshot operation is performed, and therefore, the efficiency of the snapshot can be improved.
Optionally, the main body of the above steps may be a camera device, or other devices with similar processing capabilities, and may also be a machine integrated with at least an image acquisition device and a data processing device, where the image acquisition device may include a graphics acquisition 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 invention, the target image acquired by the camera equipment is acquired, under the condition that the target image comprises the target object, the camera equipment is adjusted to the target magnification based on the position information of the target object, the target rotation range of the camera equipment under the target magnification is determined, the target rotation angle of the camera equipment is determined according to the target rotation range, and the camera equipment is controlled to execute the snapshot operation after the target rotation angle is rotated. The target rotation range of the camera equipment is determined by the target magnification, namely the target rotation ranges corresponding to different magnifications, and the image acquired when the camera equipment rotates in the target rotation range does not include a vignetting, so that the camera equipment is controlled to rotate by the target rotation angle determined by the target rotation range, and the vignetting does not exist in the image captured by the camera equipment, therefore, the problem that the captured view range is small due to the fact that the vignetting does not exist in the captured image in the related technology can be solved, and the effect of expanding the captured view range under the condition that the vignetting does not exist in the image captured by the camera equipment is achieved.
In one exemplary embodiment, determining the target rotation angle range of the image pickup apparatus at the target magnification includes: acquiring a first rotation angle range and a first field angle of the image pickup device at a minimum magnification supported by the image pickup device; determining a second field angle of the image pickup device under the target magnification; determining the target rotation angle range 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 pickup apparatus, a first angle of view of the image pickup apparatus at the minimum magnification, and a second angle of view of the image pickup apparatus at the target magnification.
In the above embodiment, the holder is dynamically limited according to the size of the field angle under the minimum magnification of the lens and the change of the field angle in the zooming process, so as to provide the largest possible field range for the equipment without a dark angle
In one exemplary embodiment, determining the target rotation angle range based on the first rotation angle range, the first field angle, and the second field angle includes: determining a difference in the second field of view and the first field of view; determining a first sum of the difference and a first minimum value within the first rotation angle range and a second sum of the difference and a first maximum value within the first rotation angle range to obtain a second rotation angle range; determining the second rotation angle range as the target rotation range. In this embodiment, the dynamic limiting schematic diagram of the image capturing apparatus at a small magnification is shown in fig. 3, where as shown in fig. 3, the focal length of the lens is small and the field angle is large at the small magnification. In the vertical direction of the holder, the rotatable angle range is [ -A, + A ]. The dynamic limiting schematic diagram of the image capturing apparatus at a large magnification can be seen in fig. 4, as shown in fig. 4, when the magnification is increased, the focal length of the lens is increased, and the field angle is decreased. In the vertical direction of the holder, the rotatable angle range is [ -B, + B ], and the same applies to the horizontal direction. The multiplying power increases, and the rotation range that cloud platform realized not having the vignetting also increases.
In the above embodiment, the angle of view data at the current magnification (the vertical angle of view ft2, corresponding to the second angle of view) can be acquired in real time during the device magnification variation process by recording the angle of view data at the minimum magnification (the vertical angle of view ft1, corresponding to the first angle of view described above) of the image pickup device and the rotation angle range t1 (corresponding to the first rotation angle range described above) under the precondition of no vignetting. The rotation angle range t2 (corresponding to the above target rotation angle range) under the current vignetting-free condition is obtained by calculation. Wherein t2 is t1+ (ft 2-ft 1).
In the above embodiment, based on the fundamental principle that the lens image has a vignetting, the maximum rotation angle of the pan/tilt head at different positioning capture magnifications is dynamically calculated based on the negative correlation relationship between the lens field angle and the lens focal length (image magnification) and on the basis of obtaining the data of the field angle at the minimum magnification of the lens and the data of the maximum rotation angle of the pan/tilt head at the minimum magnification, so as to achieve dynamic limiting.
In one exemplary embodiment, determining the target rotation angle of the image pickup apparatus based on the target rotation angle range includes: determining a to-be-rotated angle when the image pickup device is rotated to enable the target object to be in a target view 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. In this embodiment, after the target rotation angle range is determined, a to-be-rotated angle when the image pickup apparatus is rotated to a position where the target object is in the target view area of the image pickup apparatus may be determined, a target relationship between the to-be-rotated angle and the target rotation angle range may be determined, and the target rotation angle may be determined according to the target relationship. The method can judge the issued rotation angle data when issuing a rotation angle instruction to the holder according to the calculated real-time non-vignetting rotation range data, avoids the generation of the vignetting of the lens picture on the software level, and realizes the positioning snapshot with dynamic limit. The target view area may be a middle area of a view of the image pickup apparatus, or any area in the view of the image pickup apparatus, in which the image pickup apparatus can capture a complete target object.
In an exemplary embodiment, determining the target rotation angle based on the target relationship includes: determining the angle to be rotated as the target rotation angle under the condition that the target relation indicates that the angle to be rotated is within the target rotation angle range; and under the condition that the target relation indicates that the angle to be rotated is out of the target rotation angle range, 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. 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. And when the angle to be rotated is out of the target rotation angle range, determining the target rotation angle according to the maximum value and the minimum value in the angle to be rotated and the target rotation angle range.
In an exemplary embodiment, determining the target rotation angle based on the angle to be rotated and the target rotation angle range including the second minimum value and the second maximum value includes: determining the second minimum value as the target rotation angle when the angle to be rotated is smaller than the second minimum value; and determining the second maximum value as the target rotation angle under the condition 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. And when the angle to be rotated is larger than the maximum value of the target rotation angle range, determining the maximum value of the target rotation angle range as the target rotation angle.
In the above embodiment, the maximum rotation angle of the pan/tilt head at the current magnification can be calculated according to the positioning snapshot magnification, the positioning instruction issued to the pan/tilt head is judged, the limit of the pan/tilt head is controlled from the software level, and the physical structure loss caused by adopting the physical limit structure is avoided
The following describes a snapshot method with reference to a specific embodiment:
fig. 5 is a flowchart of a snapshot method according to an embodiment of the present invention, as shown in fig. 5, the method includes:
step S502, acquiring a lens field angle and a holder rotation range under minimum magnification;
step S504, receiving a positioning snapshot instruction;
step S506, calculating the rotation range of the holder under the snapshot magnification;
and step S508, positioning snapshot without vignetting.
In the foregoing embodiment, according to the characteristics that the field angle of the lens decreases with the increase of the focal length and the magnification of the image decreases with the decrease of the focal length, the pan-tilt rotation range without a vignetting angle at the magnification is calculated in real time by calculating the numerical value of the capture magnification in the positioning capture instruction, and the delivered pan-tilt rotation instruction is determined according to the calculated range, so as to realize automatic dynamic limiting. The method can calculate the maximum rotation angle of the cradle head capable of realizing no dark angle of the picture under the current multiplying power according to the multiplying power when the equipment is positioned and captured, and adjust the positioning instruction according to the angle to realize the positioning and capturing of the maximum monitoring visual field range; according to the field angle under the minimum magnification of the lens and the maximum rotation angle of the holder under the minimum magnification, the maximum rotation angles of the holder under different positioning magnifications are calculated on the software level, and the issued positioning rotation instruction is subjected to limit control, so that the stability is high, and the physical damage of the hardware structure of the holder can not be caused; the dynamic cradle head on the software layer is limited, the automatic limitation of the cradle head is realized according to the correlation between the field angle and the parameters such as the focal length of the lens and the like from the root cause of the dark angle, and the high precision of the limitation is ensured.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a snapshot apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a configuration of a capturing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
the acquisition module 62 is configured to acquire a target image acquired by the camera device;
an adjusting module 64 configured to adjust the image capturing apparatus to a target magnification based on position information of a target object if 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 vignetting is not included in the acquired image when the image capturing apparatus rotates within the target rotation angle range;
and a snapshot module 68, configured to determine a target rotation angle of the image capturing apparatus based on the target rotation angle range, and control the image capturing apparatus to perform a snapshot operation after rotating the target rotation angle.
In an exemplary embodiment, the determining 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 pickup 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 realize the determination of 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 in the second field of view and the first field of view; determining a first sum of the difference and a first minimum value within the first rotation angle range and a second sum of the difference and a first maximum value within the first rotation angle range to obtain a second rotation angle range; determining the second rotation angle range as the target rotation range.
In an exemplary embodiment, the snapshot module 68 may determine the target rotation angle of the image capture device based on the target rotation angle range by: determining a to-be-rotated angle when the image pickup device is rotated to enable the target object to be in a target view 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.
In an exemplary embodiment, the snapshot module 68 may enable determining the target rotation angle based on the target relationship by: determining the angle to be rotated as the target rotation angle under the condition that the target relation indicates that the angle to be rotated is within the target rotation angle range; and under the condition that the target relation indicates that the angle to be rotated is out of the target rotation angle range, 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.
In an exemplary embodiment, the snapshot module 68 may determine the target rotation angle based on the to-be-rotated angle and the target rotation angle range including the second minimum value and the second maximum value by: determining the second minimum value as the target rotation angle when the angle to be rotated is smaller than the second minimum value; and determining the second maximum value as the target rotation angle under the condition that the angle to be rotated is larger than the second maximum value.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A snapshot method, comprising:
acquiring a target image acquired by camera equipment;
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;
determining a target rotation angle range of the camera under the target magnification, wherein the dark corner is not included in the acquired image when the camera rotates in the target rotation angle range;
and determining a target rotation angle of the camera device based on the target rotation angle range, and controlling the camera device to execute snapshot operation after rotating the target rotation angle.
2. The method of claim 1, wherein determining a target range of rotational angles of the imaging device at the target magnification comprises:
acquiring a first rotation angle range and a first field angle of the image pickup device at a minimum magnification supported by the image pickup device;
determining a second field angle of the image pickup device under the target magnification;
determining the target rotation angle range based on the first rotation angle range, the first field of view, and the second field of view.
3. The method of claim 2, wherein determining the target rotation angle range based on the first rotation angle range, the first field of view, and the second field of view comprises:
determining a difference in the second field of view and the first field of view;
determining a first sum of the difference and a first minimum value within the first rotation angle range and a second sum of the difference and a first maximum value within the first rotation angle range to obtain a second rotation angle range;
determining the second rotation angle range as the target rotation range.
4. The method according to claim 1, wherein determining the target rotation angle of the image capture apparatus based on the target rotation angle range comprises:
determining a to-be-rotated angle when the image pickup device is rotated to enable the target object to be in a target view 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.
5. The method of claim 4, wherein determining the target rotation angle based on the target relationship comprises:
determining the angle to be rotated as the target rotation angle under the condition that the target relation indicates that the angle to be rotated is within the target rotation angle range;
and under the condition that the target relation indicates that the angle to be rotated is out of the target rotation angle range, 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.
6. The method of claim 5, wherein determining the target rotation angle based on the angle to be rotated and the inclusion of the second minimum value and the second maximum value in the target rotation angle range comprises:
determining the second minimum value as the target rotation angle when the angle to be rotated is smaller than the second minimum value;
and determining the second maximum value as the target rotation angle under the condition that the angle to be rotated is larger than the second maximum value.
7. A snapshot apparatus, comprising:
the acquisition module is used for acquiring a 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;
the determining module is used for determining a target rotation angle range of the camera equipment under the target magnification, wherein dark corners are not included in the acquired image when the camera equipment rotates in the target rotation angle range;
and the snapshot module is used for determining the target rotation angle of the camera equipment based on the target rotation angle range and controlling the camera equipment to execute snapshot operation after rotating the target rotation angle.
8. The apparatus of claim 7, wherein the determining module comprises:
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 pickup 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.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
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 true CN113473010A (en) 2021-10-01
CN113473010B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374800A (en) * 2022-01-14 2022-04-19 浙江大华技术股份有限公司 Focusing processing method and device, storage medium and electronic device
CN114845020A (en) * 2022-04-20 2022-08-02 深圳禾木信息技术有限公司 Control method and equipment for extensible network camera
CN116703718A (en) * 2022-09-08 2023-09-05 荣耀终端有限公司 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

Cited By (6)

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

Also Published As

Publication number Publication date
CN113473010B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN113473010A (en) Snapshot method and device, storage medium and electronic device
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
CN109040709B (en) Video monitoring method and device, monitoring server and video monitoring system
WO2018201809A1 (en) Double cameras-based image processing device and method
KR102099635B1 (en) Method for providing guide of camera and electronic device
CN110493524B (en) Photometric adjustment method, device and equipment and storage medium
CN107690673B (en) Image processing method and device and server
CN109376601B (en) Object tracking method based on high-speed ball, monitoring server and video monitoring system
CN110602400B (en) Video shooting method and device and computer readable storage medium
CN107615744B (en) Image shooting parameter determining method and camera device
CN111862620B (en) Image fusion processing method and device
CN112637500B (en) Image processing method and device
CN110099220B (en) Panoramic stitching method and device
CN112514368A (en) Image acquisition method, control device and movable platform
CN109327656A (en) The image-pickup method and system of full-view image
CN110971835A (en) Monitoring method and device based on double-phase exposure
CN109246355B (en) Method and device for generating panoramic image by using robot and robot
CN112640419B (en) Following method, movable platform, device and storage medium
WO2021109409A1 (en) Image capturing method and device, apparatus, and storage medium
CN112037127A (en) Privacy shielding method and device for video monitoring, storage medium and electronic device
EP3367353B1 (en) Control method of a ptz camera, associated computer program product and control device
CN111277750B (en) Shooting control method and device, electronic equipment and computer storage medium
CN114187172A (en) Image fusion method and device, computer equipment and computer readable storage medium
CN117255247B (en) Method and device for linkage of panoramic camera and detail dome camera
CN114095645B (en) Depth-of-field adjusting method, imaging device, and storage 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