Image acquisition method and device and electronic equipment

By setting different image acquisition frequencies according to the distance of the dynamic target in smart door lock or smart cat eye, the problems of missing and wrong capture of smart door lock or smart cat eye under the detection range characteristics are solved, and the safety protection of users is improved Efficiency of equipment usage.

CN119316554APending Publication Date: 2025-01-14HUAWEI TECH CO LTD

Patent Information

Application Number
CN202310858137.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-12
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

Under the detection range characteristics of the monitoring equipment, it is difficult to effectively identify close-range dynamic targets and miss the targets, which are easy to mistakenly grasp long-range targets, resulting in user safety and unnecessarily troubles.

Method used

By considering the distance information of the dynamic target in the trigger conditions of image acquisition, different image acquisition frequencies are set, close-range high frequency, long-range low frequency, and missing shots are reduced and invalid shots are invalid.

Benefits of technology

It effectively reduces the missed grasp of close-range targets and the wrong grasp of long-range targets, improves user safety protection, and reduces unnecessary alarm interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316554A_ABST
    Figure CN119316554A_ABST
Patent Text Reader

Abstract

The invention provides an image acquisition method and device and electronic equipment, and the method comprises the steps: determining whether a first dynamic target meets an image acquisition condition or not according to the distance information of the first dynamic target when detecting that the first dynamic target appears in a target region which is a detection region of first equipment, the distance information of the first dynamic target is the distance between the first dynamic target and the first equipment; and when it is determined that the first dynamic target meets the image acquisition condition, performing image acquisition on the first dynamic target. According to the method, the device or the electronic equipment, the distance information of the dynamic target is considered when the triggering condition of image acquisition is set instead of only considering whether the dynamic target is detected or not, and on the basis, for example, different triggering conditions can be set for different distances of the dynamic target, so that the image acquisition frequency is relatively high at a close distance, and the image acquisition efficiency is improved. And the long-distance position is relatively low, so that the situations of short-distance shooting missing and long-distance invalid snapshot can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image acquisition, and more specifically, to a method, device and electronic device for image acquisition. Background Art

[0002] As people's safety awareness gradually increases, they are increasingly dependent on the monitoring and early warning functions of smart devices. Take smart door locks or smart cat eyes as an example. Smart door locks or smart cat eyes usually have functions such as recording and capturing, which are used for security monitoring in front of the user's door. When smart door locks or smart cat eyes detect that someone is staying or wandering at the door, they can generate images / videos and send remote alarms to users. However, since the detection range of the monitoring device has a clear field of view, the closer the distance to the monitoring device, the smaller the area covered by the detection range, and it is more difficult to identify the stay of dynamic targets. The farther away from the monitoring device, the larger the area covered by the detection range, and it is easy to identify non-threatening targets passing by, which is easy to cause the missed capture of close-range targets and the wrong capture of distant targets, thereby failing to protect the safety of users' lives and property well, and also causing unnecessary troubles to users due to invalid capture. Summary of the invention

[0003] The present application provides a method, device and electronic device for image acquisition. Through this method, device or electronic device, when setting the trigger conditions for image acquisition, the distance information of the dynamic target is taken into account, rather than only considering whether the dynamic target is detected. On this basis, for example, different image acquisition trigger conditions can be set for different distances of the dynamic target based on the characteristics of the detection range of the monitoring device, so that image acquisition can be performed at a higher frequency at a close distance and at a lower frequency at a long distance, thereby reducing the occurrence of missed shots of close-range targets and invalid shots at a long distance.

[0004] In a first aspect, a method for image acquisition is provided, the method comprising: when a first dynamic target is detected to appear in a target area, determining whether the first dynamic target meets an image acquisition condition based on distance information of the first dynamic target, the target area is a detection area of ​​a first device, and the distance information of the first dynamic target is the distance between the first dynamic target and the first device; when it is determined that the first dynamic target meets the image acquisition condition, performing image acquisition on the first dynamic target.

[0005] In some embodiments, the first device is a camera device or a monitoring device, such as a smart cat's eye.

[0006] In an embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, rather than only using the detection of the dynamic target as the trigger condition. This can make the time and frequency of image acquisition more reasonable. For example, different trigger conditions can be set for different distances of the dynamic target, so that the frequency of image acquisition is higher at close distances and lower at long distances, which can reduce the occurrence of missed shots at close distances and invalid shots at long distances.

[0007] In combination with the first aspect, in a possible implementation method, determining whether the first dynamic target meets the image acquisition conditions is performed based on the distance information of the first dynamic target, including: determining a target time threshold based on the distance information of the first dynamic target; when the first timing reaches the target time threshold, determining that the first dynamic target meets the image acquisition conditions, wherein the first timing starts when the first dynamic target appears in the target area.

[0008] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different distances of the dynamic target. In this way, image acquisition can be performed at a higher frequency at close range, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users; image acquisition can be performed at a lower frequency at long distances, thereby reducing the occurrence of mistaking long-distance targets (i.e., invalid capture), which can reduce unnecessary troubles to users due to false alarms.

[0009] In combination with the first aspect, in a possible implementation method, the target time threshold is determined according to the distance information of the first dynamic target, including: when the stay area of ​​the first dynamic target is the first area, the first time threshold is determined as the target time threshold, wherein the stay area belongs to the detection area; or, when the stay area of ​​the first dynamic target is the second area, the third time threshold is determined as the target time threshold, wherein the distance between the first area and the first device is less than the distance between the second area and the first device, and the first time threshold is less than the third time threshold.

[0010] In some embodiments, the distance between any position in the first area and the first device is less than 1 meter, and the distance between any position in the second area and the first device is greater than or equal to 1 meter and less than 2 meters.

[0011] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger condition for image acquisition (such as snapshot or video recording) of the first device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different areas where the dynamic target stays. In this way, image acquisition can be performed at a higher frequency when the dynamic target is in a close range, thereby reducing the occurrence of missing close-range targets and better protecting the user's life and property safety; image acquisition can also be performed at a lower frequency when the dynamic target is in a long-range range, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0012] In combination with the first aspect, in a possible implementation method, the target time threshold is determined based on the distance information of the first dynamic target, and also includes: when the stay area of ​​the first dynamic target is the first area and the second area, the second time threshold is determined as the target time threshold, and the second time threshold is greater than the first time threshold, and the second time threshold is less than the third time threshold.

[0013] In some embodiments, the first time threshold is equal to half of the second time threshold, and the third time threshold is equal to 1.5 times of the second time threshold.

[0014] In some embodiments, the first time threshold is 3 seconds less than or equal to the second time threshold, and the third time threshold is 3 seconds more than the second time threshold.

[0015] In some embodiments, the first time threshold is 2 seconds less than the second time threshold, and the third time threshold is 2 seconds more than the second time threshold.

[0016] In some embodiments, the second time threshold is any one of 4 seconds, 6 seconds, and 8 seconds.

[0017] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger condition for image acquisition (such as snapshot or video recording) of the first device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different areas where the dynamic target stays. In this way, image acquisition can be performed at a higher frequency when the dynamic target is in a close range, thereby reducing the occurrence of missing close-range targets and better protecting the user's life and property safety; image acquisition can also be performed at a lower frequency when the dynamic target is in a long-range range, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0018] In combination with the first aspect, in a possible implementation method, the method also includes: when the residence area of ​​the first dynamic target is the first area, if it is monitored within the first time threshold that the residence area of ​​the first dynamic target switches between the first area and the second area, then the target time threshold is adjusted to the second time threshold.

[0019] In the embodiment of the present application, the trigger time threshold can be adjusted in time according to the changes in the dynamic target's residence area. In this way, when a long-distance area is added when the dynamic target's residence area is only a short-distance area, the time threshold for triggering image acquisition can be appropriately extended, which can further reduce the occurrence of mistaken capture of long-distance targets and reduce unnecessary troubles to users caused by false alarms.

[0020] In combination with the first aspect, in a possible implementation method, the method also includes: when the residence area of ​​the first dynamic target is the second area, if it is monitored within the second time threshold that the residence area of ​​the first dynamic target switches between the first area and the second area, the target time threshold is adjusted to the second time threshold.

[0021] In the embodiment of the present application, the trigger time threshold can be adjusted in time according to the changes in the dynamic target's residence area. In this way, when a close-range area is added when the dynamic target's residence area is only a long-range area, the time threshold for triggering image acquisition can be appropriately shortened, which can further reduce the occurrence of missing close-range targets and better protect the user's life and property safety.

[0022] In combination with the first aspect, in a possible implementation method, determining whether the first dynamic target meets the image acquisition condition based on the distance information of the first dynamic target includes: measuring the first distance of the first dynamic target from the first device after each time period in i time periods, the target area is the detection area of ​​the first device, and the first device is the detection device, wherein i=1,2,3,…; determining i first times corresponding to the i first distances one by one according to each first distance in the i first distances; determining the total accumulated time, which is equal to the sum of the i first times; when the total accumulated time is greater than or equal to the target time threshold, determining that the first dynamic target meets the image acquisition condition.

[0023] In some embodiments, the time period is 0.1 seconds.

[0024] In some embodiments, the target time threshold is 6 seconds.

[0025] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the triggering conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, the different distances of the dynamic target are converted into corresponding cumulative time, and when the total cumulative time reaches the trigger time threshold, image acquisition is performed. In this way, the dynamic target can be accelerated to reach the triggering conditions for image acquisition when it stays at a close distance, and the triggering conditions for image acquisition can be delayed when it stays at a long distance, so that image acquisition can be performed at a higher frequency when the dynamic target is within the close range, thereby reducing the occurrence of missing close-range targets, and better protecting the safety of life and property of users; it can also be performed at a lower frequency when the dynamic target is within the long range, thereby reducing the occurrence of mistakenly capturing long-distance targets, and reducing unnecessary troubles to users caused by false alarms.

[0026] In combination with the first aspect, in a possible implementation, the method also includes: when the total accumulated time is less than the target time threshold, measuring the (i+1)th first distance of the first dynamic target from the first device after the (i+1)th time period; determining the (i+1)th first time corresponding to the (i+1)th first distance based on the (i+1)th first distance; and determining the total accumulated time, which is equal to the sum of the i first times and the (i+1)th first time.

[0027] In combination with the first aspect, in a possible implementation method, i first times corresponding one-to-one to the i first distances are determined according to each of the i first distances, including: determining i time weights corresponding one-to-one to the i first distances according to each of the i first distances; and determining i first times corresponding one-to-one to the i first distances according to the time period and the i time weights.

[0028] In the embodiment of the present application, different weights are assigned to different distance values ​​from the image acquisition device, that is, the closer the distance value is to the image acquisition device, the greater the weight, and the farther the distance value is from the image acquisition device, the smaller the weight. In this way, when a dynamic target stays at a close distance, the trigger condition for image acquisition can be accelerated, and when it stays at a long distance, the trigger condition for image acquisition can be delayed. Therefore, when the dynamic target is within the close range, image acquisition can be performed at a higher frequency, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users; when the dynamic target is within the long range, image acquisition can be performed at a lower frequency, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0029] In combination with the first aspect, in a possible implementation, the method also includes: when it is determined that the first dynamic target meets the image acquisition condition, issuing a remote alarm to the user; and / or, when it is determined that the first dynamic target meets the image acquisition condition, issuing a first warning to the first dynamic target.

[0030] In an embodiment of the present application, when the device captures a dynamic target, it can issue a remote alarm to the user, reminding the user that there may be a threatening target, thereby timely protecting the user's life and property safety; it can also issue a warning to the dynamic target to prevent the dynamic target from performing threatening operations.

[0031] In a second aspect, a device for image acquisition is provided, which includes: a determination module, which is used to determine whether a first dynamic target meets an image acquisition condition based on distance information of the first dynamic target when a first dynamic target is detected to appear in a target area, wherein the target area is a detection area of ​​a first device, and the distance information of the first dynamic target is the distance between the first dynamic target and the first device; and an image acquisition module, which is used to perform image acquisition on the first dynamic target when it is determined that the first dynamic target meets the image acquisition condition.

[0032] In some embodiments, the first device is a camera device or a monitoring device, such as a smart cat's eye.

[0033] In an embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, rather than only using the detection of the dynamic target as the trigger condition. This can make the time and frequency of image acquisition more reasonable. For example, different trigger conditions can be set for different distances of the dynamic target, so that the frequency of image acquisition is higher at close distances and lower at long distances, which can reduce the occurrence of missed shots at close distances and invalid shots at long distances.

[0034] In combination with the second aspect, in a possible implementation, the determination module is specifically used to: determine a target time threshold based on the distance information of the first dynamic target; when the first timing reaches the target time threshold, determine that the first dynamic target meets the image acquisition condition.

[0035] In some embodiments, the device further includes a timing module for starting the first timing when the first dynamic target is detected to appear in the target area.

[0036] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different distances of the dynamic target. In this way, image acquisition can be performed at a higher frequency at close range, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users; image acquisition can be performed at a lower frequency at long distances, thereby reducing the occurrence of mistaking long-distance targets (i.e., invalid capture), which can reduce unnecessary troubles to users due to false alarms.

[0037] In combination with the second aspect, in a possible implementation method, the determination module is specifically used to: when the residence area of ​​the first dynamic target is the first area, determine the first time threshold as the target time threshold, wherein the residence area belongs to the detection area; or, when the residence area of ​​the first dynamic target is the second area, determine the third time threshold as the target time threshold, wherein the distance between the first area and the first device is less than the distance between the second area and the first device, and the first time threshold is less than the third time threshold.

[0038] In some embodiments, the distance between any position in the first area and the first device is less than 1 meter, and the distance between any position in the second area and the first device is greater than or equal to 1 meter and less than 2 meters.

[0039] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger condition for image acquisition (such as snapshot or video recording) of the first device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different areas where the dynamic target stays. In this way, image acquisition can be performed at a higher frequency when the dynamic target is in a close range, thereby reducing the occurrence of missing close-range targets and better protecting the user's life and property safety; image acquisition can also be performed at a lower frequency when the dynamic target is in a long-range range, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0040] In combination with the second aspect, in a possible implementation method, the determination module is also specifically used to: when the stay area of ​​the first dynamic target is the first area and the second area, determine the second time threshold as the target time threshold, the second time threshold is greater than the first time threshold, and the second time threshold is less than the third time threshold.

[0041] In some embodiments, the first time threshold is equal to half of the second time threshold, and the third time threshold is equal to 1.5 times of the second time threshold.

[0042] In some embodiments, the first time threshold is 3 seconds less than or equal to the second time threshold, and the third time threshold is 3 seconds more than the second time threshold.

[0043] In some embodiments, the first time threshold is 2 seconds less than the second time threshold, and the third time threshold is 2 seconds more than the second time threshold.

[0044] In some embodiments, the second time threshold is any one of 4 seconds, 6 seconds, and 8 seconds.

[0045] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger condition for image acquisition (such as snapshot or video recording) of the first device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, different trigger time thresholds are set for different areas where the dynamic target stays. In this way, image acquisition can be performed at a higher frequency when the dynamic target is in a close range, thereby reducing the occurrence of missing close-range targets and better protecting the user's life and property safety; image acquisition can also be performed at a lower frequency when the dynamic target is in a long-range range, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0046] In combination with the second aspect, in a possible implementation method, the determination module is also used to, when the residence area of ​​the first dynamic target is the first area, if it is monitored within the first time threshold that the residence area of ​​the first dynamic target switches between the first area and the second area, then adjust the target time threshold to the second time threshold.

[0047] In the embodiment of the present application, the trigger time threshold can be adjusted in time according to the changes in the dynamic target's residence area. In this way, when a long-distance area is added when the dynamic target's residence area is only a short-distance area, the time threshold for triggering image acquisition can be appropriately extended, which can further reduce the occurrence of mistaken capture of long-distance targets and reduce unnecessary troubles to users caused by false alarms.

[0048] In combination with the second aspect, in a possible implementation method, the determination module is also used to, when the residence area of ​​the first dynamic target is the second area, if it is monitored within the second time threshold that the residence area of ​​the first dynamic target switches between the first area and the second area, then adjust the target time threshold to the second time threshold.

[0049] In the embodiment of the present application, the trigger time threshold can be adjusted in time according to the changes in the dynamic target's residence area. In this way, when a close-range area is added when the dynamic target's residence area is only a long-range area, the time threshold for triggering image acquisition can be appropriately shortened, which can further reduce the occurrence of missing close-range targets and better protect the user's life and property safety.

[0050] In combination with the second aspect, in a possible implementation, the device also includes: a ranging module, which is used to measure the first distance of the first dynamic target from the first device after each time period in i time periods when a first dynamic target appears in the target area, the target area is the detection area of ​​the first device, and the first device is the detection device, where i = 1, 2, 3,...; the determination module is specifically used to: determine i first times corresponding to the i first distances one by one according to each first distance in the i first distances; determine the total accumulated time, which is equal to the sum of the i first times; when the total accumulated time is greater than or equal to the target time threshold, determine that the first dynamic target meets the image acquisition condition.

[0051] In some embodiments, the time period is 0.1 seconds.

[0052] In some embodiments, the target time threshold is 6 seconds.

[0053] In the embodiment of the present application, taking the first device as a monitoring device as an example, when setting the triggering conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, and based on the characteristics of the detection range of the monitoring device, the different distances of the dynamic target are converted into corresponding cumulative time, and when the total cumulative time reaches the trigger time threshold, image acquisition is performed. In this way, the dynamic target can be accelerated to reach the triggering conditions for image acquisition when it stays at a close distance, and the triggering conditions for image acquisition can be delayed when it stays at a long distance, so that image acquisition can be performed at a higher frequency when the dynamic target is within the close range, thereby reducing the occurrence of missing close-range targets, and better protecting the safety of life and property of users; it can also be performed at a lower frequency when the dynamic target is within the long range, thereby reducing the occurrence of mistakenly capturing long-distance targets, and reducing unnecessary troubles to users caused by false alarms.

[0054] In combination with the second aspect, in a possible implementation method, the ranging module is also used to: when the total accumulated time is less than the target time threshold, measure the (i+1)th first distance of the first dynamic target from the first device after the (i+1)th time period; the determination module is also used to: determine the (i+1)th first time corresponding to the (i+1)th first distance based on the (i+1)th first distance; determine the total accumulated time, and the total accumulated time is equal to the sum of the i first times and the (i+1)th first time.

[0055] In combination with the second aspect, in a possible implementation method, the determination module is specifically used to: determine i time weights corresponding one-to-one to the i first distances based on each first distance in the i first distances; determine i first times corresponding one-to-one to the i first distances based on the time period and the i time weights.

[0056] In the embodiment of the present application, different weights are assigned to different distance values ​​from the image acquisition device, that is, the closer the distance value is to the image acquisition device, the greater the weight, and the farther the distance value is from the image acquisition device, the smaller the weight. In this way, when a dynamic target stays at a close distance, the trigger condition for image acquisition can be accelerated, and when it stays at a long distance, the trigger condition for image acquisition can be delayed. Therefore, when the dynamic target is within the close range, image acquisition can be performed at a higher frequency, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users; when the dynamic target is within the long range, image acquisition can be performed at a lower frequency, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0057] In combination with the second aspect, in a possible implementation, the device also includes: an alarm module, used to issue a remote alarm to a user when it is determined that the first dynamic target meets the image acquisition condition; and / or, the alarm module is also used to issue a first warning to the first dynamic target when it is determined that the first dynamic target meets the image acquisition condition.

[0058] In an embodiment of the present application, when the device captures a dynamic target, it can issue a remote alarm to the user, reminding the user that there may be a threatening target, thereby timely protecting the user's life and property safety; it can also issue a warning to the dynamic target to prevent the dynamic target from performing threatening operations.

[0059] In a third aspect, a device for image acquisition is provided, the device comprising: a first sensor, used to detect a first dynamic target in a target area, the target area being a detection area of ​​the electronic device; the first sensor, also used to obtain distance information of the first dynamic target, the distance information of the first dynamic target being the distance between the first dynamic target and the first device; a processor, used to determine whether the first dynamic target meets an image acquisition condition based on the distance information of the first dynamic target when the first dynamic target appears in the target area; and a first camera, used to perform image acquisition on the first dynamic target when it is determined that the first dynamic target meets the image acquisition condition.

[0060] The first sensor may include a human body sensor and a distance measurement sensor.

[0061] In some embodiments, the first device is a camera device or a monitoring device, such as a smart cat's eye.

[0062] In an embodiment of the present application, taking the first device as a monitoring device as an example, when setting the trigger conditions for image acquisition of the monitoring device, the distance information of the dynamic target is taken into consideration, rather than only using the detection of the dynamic target as the trigger condition. This can make the time and frequency of image acquisition more reasonable. For example, different trigger conditions can be set for different distances of the dynamic target, so that the frequency of image acquisition is higher at close distances and lower at long distances, which can reduce the occurrence of missed shots at close distances and invalid shots at long distances.

[0063] In a fourth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0064] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method in the above-mentioned first aspect or any possible implementation manner of the first aspect is implemented.

[0065] In a sixth aspect, a chip is provided, in which instructions are stored. When the instructions are executed on a device, the chip executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 is a schematic flow chart of an existing image acquisition method;

[0067] Figure 2 It is a schematic diagram of the detection range of a monitoring device provided in an embodiment of the present application;

[0068] Figure 3 is a schematic flow chart of an image acquisition method provided in an embodiment of the present application;

[0069] Figure 4 is a schematic flow chart of another image acquisition method provided in an embodiment of the present application;

[0070] Figure 5 This is a schematic diagram of dividing a first area and a second area provided in an embodiment of the present application;

[0071] Figure 6 is a schematic flow chart of another image acquisition method provided in an embodiment of the present application;

[0072] Figure 7 It is a schematic diagram of the functional modules of an image acquisition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The technical solution in the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0074] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" or "multiple" refers to two or more than two.

[0075] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0076] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0077] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "one embodiment", "some embodiments", "another embodiment", "some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0078] The method provided in the embodiments of the present application can be applied to monitoring equipment, such as smart door locks, smart doorbells, surveillance cameras, etc., and can also be applied to any electronic device with a monitoring function, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific type of electronic equipment.

[0079] As people's safety awareness gradually increases, they are increasingly dependent on the monitoring and early warning functions of smart devices. For example, smart door locks or smart cat eyes usually have functions such as recording and capturing, which are used for security monitoring in front of the user's door. When smart door locks or smart cat eyes detect someone staying or wandering at the door, they can generate images / videos and send remote alarms to users.

[0080] For example, Figure 1 FIG. 1 is a schematic flow chart of an existing method 100 for image acquisition. Figure 1 As shown, the method 100 includes:

[0081] S101: Detect whether there is a dynamic target within the detection range, if so, execute step S102.

[0082] In an ideal state, the detection range is a sector-shaped area, the image acquisition device is the center of the sector-shaped area, and the detection range has a clear field of vision (FOV).

[0083] Optionally, when the monitoring device is a battery-powered device, a human body detection method is used to detect whether there is a dynamic target within the detection range.

[0084] S102: Record the stay time of the dynamic target.

[0085] That is to record the length of time the dynamic target stays within the detection range.

[0086] S103: Determine whether the stay time of the dynamic target meets the trigger condition.

[0087] The trigger condition refers to a trigger condition for performing image acquisition, and may also be a trigger condition for issuing an alarm to a user.

[0088] Among them, the trigger condition refers to the length of stay reaching a certain time threshold.

[0089] S104: When the duration of the dynamic target's stay meets the triggering condition, an image of the dynamic target is captured and a remote alarm is issued.

[0090] In this method, when a dynamic target is detected, the duration of the dynamic target's stay is recorded, and image acquisition and remote alarm are performed after the duration meets the trigger condition. However, since the detection range has a clear field of view, the closer the distance to the monitoring device, the smaller the detection coverage area, and it is more difficult to identify the dynamic target's stay there. The farther the distance from the monitoring device, the larger the detection coverage area, and it is easy to identify non-threatening targets passing by. Therefore, using only the stay time threshold as the trigger condition is likely to cause the missed capture of close-range targets and the mistaken capture of distant targets, thereby failing to protect the user's life and property safety.

[0091] In view of this, the present application provides an image acquisition method, device and electronic device. Through the method, device and electronic device, image acquisition can be performed at a high frequency at a close distance, thereby reducing the occurrence of missed capture of close-range targets; image acquisition can also be performed at a low frequency at a long distance, thereby reducing the occurrence of wrong capture of long-distance targets.

[0092] The following will introduce in detail the detection range of the monitoring device in combination with Figure 2 , taking the image acquisition device (e.g., camera) of the monitoring device as the center of the fan-shaped area. In the ideal case, the detection range of the monitoring device is fan-shaped, and the detection range has a clear field of view angle. Taking Figure 2 as an example, Figure 2 the field of view angle of the monitoring device shown is 60°. If the moving target 1 walks in a straight line from point A to point B at a walking speed of V 1 , and the distance from point A to point B is AB; the moving target 2 also walks in a straight line from point C to point D at a walking speed of V 1 , and the distance from point C to point D is CD, where CD≥AB. As can be seen from Figure 2 , the activity range of the moving target 1 is within the area with a radius of 1m, and the activity trajectory of the moving target 1 is not completely covered by the detection range of the monitoring device. Only the trajectory EF is covered by the detection range of the monitoring device; the activity range of the moving target 2 exceeds the area with a radius of 2m and is less than the area with a radius of 3m, and the activity trajectory of the moving target 2 is completely covered by the detection range of the monitoring device; when the monitoring device uses the staying duration of the detected moving target as the trigger condition and performs image acquisition and alarm when the trigger condition is met, if the trigger condition for the monitoring device to perform image acquisition is that the staying duration is greater than or equal to N, if EF / V 1 <N, the moving target 1 will not be image-captured (i.e., captured or recorded) by the monitoring device; if CD / V 1 >N, the moving target 2 will be image-captured (i.e., captured or recorded) by the monitoring device. In fact, the real target to be monitored is the moving target 1 (which is likely to pose a threat), rather than the moving target 2 (a non-threat target). This will lead to missing the capture of the short-distance target and wrongly capturing the long-distance target, thus not being able to well protect the user's life and property safety, and will also bring unnecessary troubles to the user due to false alarms.

[0093] Exemplarily, Figure 3 shows a schematic flowchart of a method 300 for image acquisition provided by an embodiment of the present application. As Figure 3 shown, the method 300 includes:

[0094] S301: When a first moving target appears within the detection range of the monitoring device, start timing, and simultaneously determine a target time threshold according to the distance information of the first moving target.

[0095] Among them, the first moving target can be, for example, a moving person, a moving animal, or an object, etc. The present application does not limit this.

[0096] In one feasible manner, when the monitoring device detects the appearance of a first dynamic target within the detection range of the monitoring device, the monitoring device further determines whether the first dynamic target is a human body. If so, the timing is started, and the target time threshold is synchronously determined based on the distance information of the first dynamic target, wherein human body detection technology can be used to determine whether the first dynamic target is a human body.

[0097] Optionally, the monitoring device can detect whether the first dynamic target appears within the detection range through a sensor; it can also detect whether the first dynamic target appears within the detection range through a ranging module. Specifically, when the distances of the same object measured by the ranging module twice or more times are different, it can be determined that the first dynamic target appears within the detection range.

[0098] Among them, the distance information of the first dynamic target refers to the distance information between the first dynamic target and the monitoring device, for example, it can be the horizontal distance between the first dynamic target and the camera of the monitoring device, or it can be the straight-line distance between the first dynamic target and the camera of the monitoring device, etc., wherein the value of the distance can be the average value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target, or it can be the maximum value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target, or it can be the minimum value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target.

[0099] It should be understood that the distance information of the first dynamic target changes as the first dynamic target moves, and the operation of the monitoring device determining the target time threshold based on the distance information of the first dynamic target is not performed only once, but is performed continuously, that is, during the movement of the first dynamic target, if the distance information of the first dynamic target changes, the corresponding target time threshold may also be adjusted accordingly. For example: when the distance between the first dynamic target and the camera of the monitoring device becomes significantly shorter, the corresponding target time threshold will also decrease accordingly; similarly, when the distance between the first dynamic target and the camera of the monitoring device becomes significantly longer, the corresponding target time threshold will also increase accordingly.

[0100] S302: When the timing reaches the target time threshold, an image of the first dynamic target is captured.

[0101] Optionally, while or after the image of the first dynamic target is captured, a remote alarm is issued to the user, and the captured image of the first dynamic target may also be pushed to the user in real time.

[0102] Optionally, while or after capturing the image of the first dynamic target, a warning may be issued to the first dynamic target, such as a ringtone warning, a voice warning, etc.

[0103] In an embodiment of the present application, when setting the trigger conditions for image acquisition (such as snapshot or video recording) of the monitoring device, the distance information of the dynamic target is taken into consideration. Based on the characteristics of the detection range of the monitoring device, different trigger conditions are set for different distances of the dynamic target. For example, the residence time threshold value set when the dynamic target is at a close distance is lower than the residence time threshold value set when the dynamic target is at a long distance. In this way, image acquisition can be performed at a close distance at a higher frequency, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users. Image acquisition can also be performed at a long distance at a lower frequency, thereby reducing the occurrence of mistaking long-range targets (i.e., invalid snapshots) and reducing unnecessary troubles to users due to false alarms.

[0104] For example, Figure 4 FIG. 4 is a schematic flow chart of another image acquisition method 400 provided in an embodiment of the present application. Figure 4 As shown, the method 400 includes:

[0105] S401: When the first dynamic target is detected within the detection range of the monitoring device, start timing, and synchronously determine the stay area of ​​the first dynamic target based on the distance information of the first dynamic target. When the stay area of ​​the first dynamic target is the first area, execute step S402; when the stay area of ​​the first dynamic target is the first area and the second area, execute step S406; when the stay area of ​​the first dynamic target is the second area, execute step S408.

[0106] The first dynamic target may be, for example, a moving person, a moving animal or an object, etc., which is not limited in the present application.

[0107] In one feasible manner, when the monitoring device detects the appearance of a first dynamic target within the detection range of the monitoring device, the monitoring device further determines whether the first dynamic target is a human body. If so, the timing is started, and the stay area of ​​the first dynamic target is synchronously determined based on the distance information of the first dynamic target, wherein human body detection technology can be used to determine whether the first dynamic target is a human body.

[0108] Optionally, the monitoring device can detect whether the first dynamic target appears within the detection range through a sensor; it can also detect whether the first dynamic target appears within the detection range through a ranging module. Specifically, when the distances of the same object measured by the ranging module twice or more times are different, it can be determined that the first dynamic target appears within the detection range.

[0109] Among them, the distance information of the first dynamic target refers to the distance information between the first dynamic target and the monitoring device, for example, it can be the horizontal distance between the first dynamic target and the camera of the monitoring device, or it can be the straight-line distance between the first dynamic target and the camera of the monitoring device, etc., wherein the value of the distance can be the average value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target, or it can be the maximum value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target, or it can be the minimum value of the distance between the camera of the monitoring device to multiple feature points on the first dynamic target.

[0110] The sojourn area of ​​the first dynamic target includes a first area and a second area, wherein the distance between the first area and the monitoring device is smaller than the distance between the second area and the monitoring device.

[0111] In one example, the first area may be a detection range where the distance from the camera of the monitoring device is less than A, and the second area may be a detection range where the distance from the camera of the monitoring device is greater than or equal to A. The value of A may be any value between 0.5m and 1.5m, wherein the specific division of the first area and the second area will be described in detail in subsequent embodiments.

[0112] It can be understood that the distance information of the first dynamic target based on which the residence area of ​​the first dynamic target is determined in this step is the distance information of the first dynamic target corresponding to when the first dynamic target is detected to appear within the detection range of the monitoring device; it can also be the distance information of the first dynamic target corresponding to the time period from the detection of the first dynamic target appearing within the detection range of the monitoring device to the start of timing; it can also be the distance information of the first dynamic target corresponding to the time period from the detection of the first dynamic target appearing within the detection range of the monitoring device to a period of time after the start of timing; it can also be the distance information of the first dynamic target corresponding to a certain time period (less than the first time threshold) calculated from the start of timing, and the present application does not limit this.

[0113] The first time threshold is smaller than the second time threshold, and the second time threshold is smaller than the third time threshold.

[0114] Optionally, the relationship between the first time threshold, the second time threshold and the third time threshold can be: the first time threshold = the second time threshold / 2, the third time threshold = 1.5×the second time threshold; it can also be: the first time threshold = the second time threshold - 3 seconds, the third time threshold = the second time threshold + 3 seconds; it can also be: the first time threshold = the second time threshold - 2 seconds, the third time threshold = the second time threshold + 2 seconds, wherein the second time threshold can be any time between 4 seconds and 8 seconds, for example, it can be 4 seconds, 6 seconds or 7 seconds.

[0115] S402: When the sojourn area of ​​the first dynamic target is the first area, determining the target time threshold to be the first time threshold.

[0116] The target time threshold refers to the time threshold for triggering image acquisition.

[0117] S403: Continue to determine the staying area of ​​the first dynamic target.

[0118] Specifically, the sojourn area of ​​the first dynamic target is continuously determined within a first time threshold.

[0119] S404: If it is detected within the first time threshold that the sojourn area of ​​the first dynamic target includes the second area, the target time threshold is adjusted to the second time threshold.

[0120] S405: When the timing reaches the target time threshold, an image of the first dynamic target is captured and an alarm is given to the user.

[0121] It should be understood that if the above step S404 is executed, it means that the target time threshold is adjusted to the second time threshold, then the target time threshold in step S405 is the second time threshold, not the first time threshold; if the stay area of ​​the first dynamic target is not found to include the second area within the first time threshold, then the target time threshold in step S405 is still the first time threshold.

[0122] Optionally, when it is detected that the first dynamic target leaves the detection area within the first time threshold, the current program is automatically terminated; after a new first dynamic target is detected, the execution of step S401 is triggered again.

[0123] Optionally, after or while executing step S405, if the first dynamic target still exists in the detection area, the process returns to step S401.

[0124] Optionally, the frequency of alerting the user may be the same as the frequency of capturing images of the first dynamic target, or may be lower than the frequency of capturing images of the first dynamic target.

[0125] S406: When the sojourn area of ​​the first dynamic target is the first area and the second area, determining the target time threshold to be the second time threshold.

[0126] S407: When the timing reaches the target time threshold, an image of the first dynamic target is captured and an alarm is given to the user.

[0127] Optionally, when it is detected that the first dynamic target leaves the detection area within the second time threshold, the current program is automatically terminated; after a new first dynamic target is detected, the execution of step S401 is triggered again.

[0128] Optionally, after executing step S407 or while executing step S407, if the first dynamic target still exists in the detection area, the process returns to step S401.

[0129] Optionally, the frequency of alerting the user may be the same as the frequency of capturing images of the first dynamic target, or may be lower than the frequency of capturing images of the first dynamic target.

[0130] S408: When the sojourn area of ​​the first dynamic target is the second area, determining the target time threshold to be a third time threshold.

[0131] S409: Continue to determine the staying area of ​​the first dynamic target.

[0132] Specifically, the sojourn area of ​​the first dynamic target is continuously determined within the second time threshold.

[0133] S410: If it is detected within the second time threshold that the sojourn area of ​​the first dynamic target includes the first area, the target time threshold is adjusted to the second time threshold.

[0134] S411: When the timing reaches the target time threshold, an image of the first dynamic target is captured and an alarm is given to the user.

[0135] It should be understood that if the above step S410 is executed, it means that the target time threshold is adjusted to the second time threshold, then the target time threshold in step S411 is the second time threshold, not the third time threshold; if the residence area of ​​the first dynamic target is not found to include the first area within the second time threshold, then the target time threshold in step S411 is still the third time threshold.

[0136] It should be noted that in the embodiment of the present application, the stay area of ​​the first dynamic target may include one or more other areas in addition to the first area and the second area, wherein different target time thresholds may be set for each area.

[0137] Optionally, when it is detected that the first dynamic target leaves the detection area within the second time threshold, the current program is automatically terminated; after a new first dynamic target is detected, the execution of step S401 is triggered again.

[0138] Optionally, after executing step S411 or while executing step S411, if the first dynamic target still exists in the detection area, the process returns to step S401.

[0139] Optionally, the frequency of alerting the user may be the same as the frequency of capturing images of the first dynamic target, or may be lower than the frequency of capturing images of the first dynamic target.

[0140] In an embodiment of the present application, when setting the trigger conditions for image acquisition (such as snapshot or video recording) of the monitoring device, the distance information of the dynamic target is taken into consideration. Based on the characteristics of the detection range of the monitoring device, different trigger conditions are set for different areas where the dynamic target stays, and the trigger conditions can be adjusted in time according to changes in the area where the dynamic target stays. In this way, image acquisition can be performed at a higher frequency when the dynamic target is within a close range, thereby reducing the occurrence of missing close-range targets and better protecting the user's life and property safety; image acquisition can also be performed at a lower frequency when the dynamic target is within a long-range range, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0141] To understand more clearly Figure 4 The first area and the second area in the embodiment shown are, for example, taking the smart cat's eye as an example. Figure 5 A schematic diagram of dividing a first area and a second area provided in an embodiment of the present application is shown.

[0142] like Figure 5 As shown in (a) in FIG. 1 , the sector area is the detection area of ​​the monitoring device. The detection area is divided into two by a horizontal straight line to obtain the first area and the second area. The first area is the area close to the monitoring device, and the second area is the area far from the monitoring device. The dynamic target stays in the first area. At this time, the corresponding target time threshold is the first time threshold. Figure 5 As shown in (b) in FIG. 1 , the dynamic target's stay area is the first area and the second area. At this time, the corresponding target time threshold is the second time threshold. Figure 5 As shown in (c), the residence area of ​​the dynamic target is the second area. At this time, the corresponding target time threshold is the third time threshold.

[0143] Among them, regarding the explanation of the first time threshold, the second time threshold and the third time threshold, in Figure 4 The embodiments have been described in detail, and for the sake of brevity, they will not be repeated here.

[0144] It should be understood that the embodiment of the present application is only an example of dividing the detection area into regional blocks. The number of regional blocks into which the detection area is divided can also be three or more, each regional block can correspond to a different time threshold, and the regional blocks can also be divided in other ways, for example: dividing by curves, dividing by arcs, dividing by polygons, etc., which is not limited in the present application.

[0145] For example, Figure 6 FIG. 6 is a schematic flow chart of another image acquisition method 600 provided in an embodiment of the present application. Figure 6As shown, the method 600 includes:

[0146] S601: When a first dynamic target is detected within the detection range of the monitoring device, the distance d of the first dynamic target is measured. i , where the initial value of i is 1, i=1,2,3,…,(n-1),n, and n is a positive integer.

[0147] Among them, the detection range of the smart cat's eye is a sector with the camera of the monitoring device as the center, and the radius and angle of the sector are related to the function of the monitoring device.

[0148] The first dynamic target may be, for example, a moving person, a moving animal or an object, etc., which is not limited in the present application.

[0149] In one achievable manner, when the monitoring device detects that a first dynamic target appears within the detection range of the monitoring device, it further determines whether the first dynamic target is a human body. If so, it measures the distance d of the first dynamic target. i , wherein human body detection technology can be used to determine whether the first dynamic target is a human body.

[0150] Among them, the distance of the first dynamic target refers to the distance between the first dynamic target and the monitoring device, for example, it can be the horizontal distance between the first dynamic target and the camera of the monitoring device, or the straight-line distance between the first dynamic target and the camera of the monitoring device, etc.

[0151] Optionally, the monitoring device can detect whether the first dynamic target appears within the detection range through a sensor; it can also detect whether the first dynamic target appears within the detection range through a ranging module. Specifically, when the distances of the same object measured by the ranging module twice or more times are different, it can be determined that the first dynamic target appears within the detection range.

[0152] S602: Calculate the cumulative stay time T i , where T i =T (i-1) +t i , t i =t 0 *L 0 / (max(d i ,0.5m)),T 0 =0.

[0153] Among them, t 0 and L 0 is the set value, t 0 The value of can be any value between 50 and 200 milliseconds (ms), for example, any value among 75ms, 100ms, 150ms, and 175ms; L 0The value of can be any value between 0.5m and 1.5m, for example, can be any value among 0.75m, 1m, and 1.25m.

[0154] It is understandable that the above stay time T i In the calculation formula, the limit (t 0 *L 0 ) divided by d i The maximum value of 0.5m and 0.5m can make (t 0 *L 0 ) The quotient is always greater than or equal to 0.5m, avoiding t i The value of is too large to avoid excessive image acquisition frequency.

[0155] This step can be understood as assigning different weights to different distance values ​​from the monitoring device, that is, the closer the distance value is to the monitoring device, the greater the weight (greater than 1), and the farther the distance value is from the monitoring device, the smaller the weight (less than 1). 0 refers to the distance value with a weight of 1, t 0 It means the distance value from the monitoring device is L 0 The increased length of stay.

[0156] S603: Determine the cumulative stay time T i Is it greater than or equal to M? If so, execute step S604; if not, assign i=i+1 and return to step S601.

[0157] The value of M may be any time from 3s to 9s, for example, it may be any one of 5s, 6s, 7s, and 8s.

[0158] Optionally, if the cumulative stay time T 1 If it is less than M, return to step S601 to measure the distance d of the first dynamic target. 2 , measure the distance d of the first dynamic target 2 The distance d between the time of measuring the first dynamic target 1 The interval between the moments is the first period, and the first period can be any value between 50ms and 200ms, for example, it can be any one of 75ms, 100ms, 125ms, 150ms, and 175ms.

[0159] And, it can be understood that if the cumulative stay time T 2 If it is still less than M, then return to step S601 to measure the distance d of the first dynamic target. 3 , measure the distance d of the first dynamic target 3 The distance d between the first dynamic target and the time 2The interval between the moments is also the first cycle, and so on, the distance d of the first dynamic target is measured. i The distance d between the time of measuring the first dynamic target (i-1) The intervals between the moments are all the first period, and the first period can also be replaced by the ranging frequency.

[0160] S604: Capture an image of the first dynamic target and issue an alarm.

[0161] In one implementation, the detection range of the monitoring device is a sector with a radius of 2m, the first cycle is 100ms (ie, the ranging frequency is 10Hz), L 0 =1m,t 0 =100ms, M = 6s, corresponding to t i =0.1 / (max(d i ,0.5m)), for example: the target actually stays at 1m for 1s, the system statistical coefficient is 1, and the system statistical duration is 1s (a total of 10 distance measurements are made during the 1s stay); the dynamic target actually stays at 0.5m for 1s, the system statistical coefficient is 2, and the actual statistical duration is 2s; the dynamic target actually stays at 2m for 1s, the system statistical coefficient is 0.5, and the actual statistical duration is 0.5s. That is, the target actually stays at 0.5m for 3s to trigger the image acquisition of the dynamic target, and the target actually stays at 2m for 12s to trigger the image acquisition of the dynamic target.

[0162] It should be understood that when it is detected that the first dynamic target leaves the detection area within the M period, the current program is automatically terminated; after a new first dynamic target is detected, the execution of step S601 is triggered again.

[0163] Optionally, after executing step S603 , if the first dynamic target still exists in the detection area, i=1 is assigned and the process returns to step S601 .

[0164] Optionally, the frequency of alerting the user may be the same as the frequency of capturing images of the first dynamic target, or may be lower than the frequency of capturing images of the first dynamic target.

[0165] In an embodiment of the present application, when setting the trigger conditions for image acquisition (such as snapshot or video recording) of the monitoring device, the distance information of the dynamic target is taken into consideration. Based on the characteristics of the detection range of the monitoring device, different weights are assigned to different distance values ​​from the monitoring device. That is, the closer the distance value is to the monitoring device, the greater the weight, and the farther the distance value is from the monitoring device, the smaller the weight. In this way, when the dynamic target stays at a close distance, the trigger conditions for image acquisition can be met more quickly, and when it stays at a long distance, the trigger conditions for image acquisition can be delayed. Therefore, when the dynamic target is within the close range, image acquisition can be performed at a higher frequency, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users. When the dynamic target is within the long range, image acquisition can be performed at a lower frequency, thereby reducing the occurrence of mistaking long-range targets and reducing unnecessary troubles to users due to false alarms.

[0166] For example, Figure 7 FIG. 7 is a schematic diagram showing the functional modules of an image acquisition device 700 provided in an embodiment of the present application. Figure 7 As shown, the device 700 includes:

[0167] The timing module 710 is used to start timing when a first dynamic target is detected within the detection range of the monitoring device.

[0168] Among them, the explanation of the first dynamic target is in Figure 3 A detailed description has been given in the illustrated embodiment, which will not be repeated here for the sake of brevity.

[0169] The distance measurement module 720 is used to measure the distance between the monitoring device and the first dynamic target to obtain the distance information of the first dynamic target.

[0170] The determination module 730 is used to determine the target time threshold according to the distance information of the first dynamic target when the timing module starts timing.

[0171] Optionally, the device 700 may further include a detection sensor, which is used to detect whether a first dynamic target appears within the detection range.

[0172] Optionally, the determination module 730 is also used to determine whether a first dynamic target appears within the detection range through the distance of the object measured by the ranging module 720. Specifically, when the distances of the same object measured by the ranging module 720 twice or more times are different, the determination module 730 determines that a first dynamic target appears within the detection range.

[0173] Among them, the explanation of the distance information of the first dynamic target is Figure 3 A detailed description has been given in the illustrated embodiment, which will not be repeated here for the sake of brevity.

[0174] The image acquisition module 740 is used to acquire an image of the first dynamic target when the timing reaches the target time threshold.

[0175] Optionally, the device 700 may further include an alarm module for issuing a remote alarm to a user while or after capturing an image of the first dynamic target, and may also push the captured image of the first dynamic target to the user in real time.

[0176] Optionally, the alarm module is further configured to issue a warning to the first dynamic target, such as a ringtone warning, a voice warning, etc., while or after capturing an image of the first dynamic target.

[0177] In an embodiment of the present application, a ranging module is provided in the monitoring device. When setting the trigger conditions for image acquisition (such as snapshot or video recording) of the monitoring device, the distance information of the dynamic target is taken into consideration. Based on the characteristics of the detection range of the monitoring device, different trigger conditions are set for different distances where the dynamic target is located. For example, the residence time threshold value set when the dynamic target is at a close distance is lower than the residence time threshold value set when the dynamic target is at a long distance. In this way, image acquisition can be performed at a close distance at a higher frequency, thereby reducing the occurrence of missing close-range targets and better protecting the lives and property of users. Image acquisition can also be performed at a long distance at a lower frequency, thereby reducing the occurrence of mistaking long-range targets (i.e., invalid snapshots) and reducing unnecessary troubles to users due to false alarms.

[0178] One or more of the modules or units described herein can be implemented by software, hardware or a combination of the two. When any of the above modules or units are implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU), or an artificial intelligence processor and other types of computing devices that run software, each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core used to execute software instructions for operations or processing in the processor, necessary hardware accelerators may be further included, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit that implements a dedicated logic operation.

[0179] When the modules or units described in this document are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or be independent of the software to execute the above method flow.

[0180] When the modules or units described herein are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0181] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0182] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0183] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0186] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0187] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for image acquisition, characterized in that: The method comprises: When a first dynamic target is detected to appear in a target area, determining whether the first dynamic target meets an image acquisition condition according to distance information of the first dynamic target, the target area is a detection area of ​​the first device, and the distance information of the first dynamic target is a distance from the first dynamic target to the first device; When it is determined that the first dynamic target meets the image acquisition condition, image acquisition is performed on the first dynamic target.

2. The method according to claim 1, characterized in that The determining whether the first dynamic target meets the image acquisition condition according to the distance information of the first dynamic target includes: Determine a target time threshold according to the distance information of the first dynamic target; When the first timing reaches the target time threshold, it is determined that the first dynamic target meets the image acquisition condition, wherein the first timing starts when the first dynamic target is detected to appear in the target area.

3. The method according to claim 2, characterized in that The determining the target time threshold according to the distance information of the first dynamic target includes: When the staying area of ​​the first dynamic target is the first area, determining the first time threshold as the target time threshold, and the staying area belongs to the detection area; or When the sojourn area of ​​the first dynamic target is the second area, the third time threshold is determined as the target time threshold. The distance between the first area and the first device is smaller than the distance between the second area and the first device, and the first time threshold is smaller than the third time threshold.

4. The method according to claim 3, characterized in that The determining the target time threshold according to the distance information of the first dynamic target further includes: When the sojourn area of ​​the first dynamic target is the first area and the second area, the second time threshold is determined as the target time threshold, the second time threshold is greater than the first time threshold, and the second time threshold is less than the third time threshold.

5. The method according to claim 4, characterized in that The method further comprises: When the sojourn area of ​​the first dynamic target is the first area, if it is monitored within the first time threshold that the sojourn area of ​​the first dynamic target switches between the first area and the second area, the target time threshold is adjusted to the second time threshold.

6. The method according to claim 4, characterized in that The method further comprises: When the sojourn area of ​​the first dynamic target is the second area, if it is monitored within the second time threshold that the sojourn area of ​​the first dynamic target switches between the first area and the second area, the target time threshold is adjusted to the second time threshold.

7. The method according to claim 1, characterized in that The determining whether the first dynamic target meets the image acquisition condition according to the distance information of the first dynamic target includes: After each time period in i time periods, respectively, measure a first distance between the first dynamic target and the first device, where i=1, 2, 3, ...; Determine, according to each of the i first distances, i first times corresponding to the i first distances one by one; Determine a total accumulated time, where the total accumulated time is equal to the sum of the i first times; When the total accumulated time is greater than or equal to the target time threshold, it is determined that the first dynamic target meets the image acquisition condition.

8. The method according to claim 7, characterized in that The method further comprises: When the total accumulated time is less than the target time threshold, measuring the (i+1)th first distance between the first dynamic target and the first device after the (i+1)th time period; Determine, according to the (i+1)th first distance, the (i+1)th first time corresponding to the (i+1)th first distance; The total accumulated time is determined, where the total accumulated time is equal to the sum of the i first times and the (i+1)th first time.

9. The method according to claim 7 or 8, characterized in that: The step of determining, according to each of the i first distances, i first times corresponding to the i first distances in a one-to-one manner comprises: Determine, according to each of the i first distances, i time weights corresponding one-to-one to the i first distances; According to the time period and the i time weights, i first times corresponding one-to-one to the i first distances are determined.

10. The method according to any one of claims 7 to 9, characterized in that The target time threshold is 6 seconds.

11. The method according to any one of claims 1 to 10, characterized in that The first device is a camera device or a monitoring device.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: When it is determined that the first dynamic target meets the image acquisition condition, a remote alarm is issued to the user; and / or When it is determined that the first dynamic target meets the image acquisition condition, a first warning is issued to the first dynamic target.

13. An image acquisition device, characterized in that: The device comprises: A first sensor, used to detect a first dynamic target in a target area, wherein the target area is a detection area of ​​the electronic device; The first sensor is further used to obtain distance information of the first dynamic target, where the distance information of the first dynamic target is the distance between the first dynamic target and the first device; a processor, configured to determine whether the first dynamic target meets an image acquisition condition according to distance information of the first dynamic target when the first dynamic target is detected to appear in the target area; The first camera is used to capture an image of the first dynamic target when it is determined that the first dynamic target meets the image capture condition.

14. An electronic device, characterized in that: include: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The storage medium stores a program or an instruction, and when the program or the instruction is executed, the method according to any one of claims 1 to 12 is implemented.

16. A chip, characterized in that: include: one or more processors; One or more memories, the one or more processors are coupled to the one or more memories, and are configured to read and execute instructions in the one or more memories to perform the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Intrusion detection device, setting assistance device, intrusion detection method, setting assistance method, and program recording medium

    CN108431876A

  • Method and device for intelligent lock alarm

    CN109830008A

  • Systems and methods of enforcing dynamic thresholds of social distancing rules

    US20220309904A1

  • Intrusion detection device, setting assistance device, intrusion detection method, setting assistance method, and program recording medium

    WO2017104835A1

Cited By

  • Image processing method, image acquisition equipment and storage medium

    CN120568187A