Method for determining target trigger space, and method for triggering camera
Patent Information
- Application Number
- PCT/CN2026/086250
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-27
- Filing Date
- 2026-03-26
- Publication Date
- 2026-10-01
Smart Images

Figure CN2026086250_01102026_PF_FP_ABST
Abstract
Description
Methods for determining the target trigger space and methods for triggering the camera.
[0001] Citation of relevant applications
[0002] This application claims the full benefits of patent application No. 202510378274.2, entitled "Method for Determining Target Trigger Space and Triggering Method for Camera", filed on March 27, 2025 with the State Intellectual Property Office of the People's Republic of China, the entire contents of which are incorporated herein by reference.
[0003] field
[0004] This application relates to the field of security, and in particular to a method for determining a target triggering space and a method for triggering a camera.
[0005] background
[0006] In current security scenarios, security devices are typically triggered by detecting whether a target object enters the target trigger space. For example, when a stranger enters the target trigger space, the security device can be triggered to sound an alarm, thereby improving the personal and property safety of relevant personnel.
[0007] In the current solution, the target triggering space can be determined by the detection range of devices such as PIR (Passive Infrared) and radar.
[0008] However, using the above method to determine the target trigger space can easily lead to false triggering or missed triggering by the camera. Therefore, reducing the probability of false triggering or missed triggering is a technical issue worthy of attention.
[0009] Overview
[0010] In view of this, in order to solve some or all of the above-mentioned technical problems, embodiments of this application provide a method for determining a target trigger space and a method for triggering a camera.
[0011] In a first aspect, embodiments of this application provide a method for determining a target triggering space, the method comprising:
[0012] Determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0013] The target triggering region is divided into a set of sub-regions;
[0014] Determine the normal extension space of the sub-regions in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region;
[0015] The set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0016] In one possible implementation, determining the target trigger area of the camera includes:
[0017] Determine the detection range of the radar used to trigger the camera;
[0018] Based on the detection range, the target monitoring range of the camera is determined;
[0019] The target trigger area of the camera is determined from the target monitoring range.
[0020] In one possible implementation, when the detection range is a three-dimensional spatial region, determining the target monitoring range of the camera based on the detection range includes one of the following:
[0021] The detection range is defined as the target monitoring range of the camera;
[0022] The top-down view of the detection range is used to determine the target monitoring range of the camera.
[0023] In one possible implementation, determining the trigger subspace corresponding to the sub-region from the normal extension space of the sub-region includes:
[0024] From the normal extension space of the sub-region, determine the trigger point corresponding to the sub-region; wherein, the trigger point includes at least two of the following: the length of the trigger subspace in the normal direction of the sub-region, the starting position of the trigger subspace, and the ending position of the trigger subspace;
[0025] Based on the trigger point corresponding to the sub-region, determine the trigger subspace corresponding to the sub-region.
[0026] In one possible implementation, after determining the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, the method further includes:
[0027] Acquire radar data detected by the radar used to trigger the camera;
[0028] Determine the screen coordinates of the radar points represented by the radar data;
[0029] The radar point is displayed at the location indicated by the screen coordinates.
[0030] Secondly, embodiments of this application provide a method for triggering a camera, the method comprising:
[0031] Detect the target object;
[0032] If the target object is detected, it is determined whether the target object is located in the target trigger space of the camera to obtain a determination result, wherein the target trigger space is determined by any of the above methods for determining the target trigger space;
[0033] Based on the determination result, determine whether to trigger the camera.
[0034] In one possible implementation, upon detecting the target object, determining whether the target object is located within the target trigger space of the camera includes:
[0035] Determine whether the target object is located within the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0036] When the target object is located in the target triggering region, a target sub-region containing the target object is determined from the sub-region set, wherein the sub-region set is obtained by dividing the target triggering region;
[0037] Determine whether the target object is located in the trigger subspace corresponding to the target sub-region, wherein the trigger subspace is determined from the normal extension space of the target sub-region;
[0038] If the target object is located in the trigger subspace, it is determined that the target object is located in the target trigger space of the camera;
[0039] If the target object is not located in the trigger subspace, it is determined that the target object is not located in the target trigger space of the camera.
[0040] Thirdly, embodiments of this application provide a device for determining a target triggering space, the device comprising:
[0041] The first determining unit is used to determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0042] A partitioning unit is used to divide the target triggering region into a set of sub-regions;
[0043] The second determining unit is used to determine the normal extension space of a sub-region in the set of sub-regions, and to determine the triggering sub-space corresponding to the sub-region from the normal extension space of the sub-region.
[0044] The third determining unit is used to determine the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0045] In one possible implementation, determining the target trigger area of the camera includes:
[0046] Determine the detection range of the radar used to trigger the camera;
[0047] Based on the detection range, the target monitoring range of the camera is determined;
[0048] From the target monitoring range, determine the target trigger area of the camera.
[0049] In one possible implementation, when the detection range is a three-dimensional spatial region, determining the target monitoring range of the camera based on the detection range includes one of the following:
[0050] The detection range is defined as the target monitoring range of the camera;
[0051] The top-down view of the detection range is used to determine the target monitoring range of the camera.
[0052] In one possible implementation, determining the trigger subspace corresponding to the sub-region from the normal extension space of the sub-region includes:
[0053] From the normal extension space of the sub-region, determine the trigger point corresponding to the sub-region; wherein, the trigger point includes at least two of the following: the length of the trigger subspace in the normal direction of the sub-region, the starting position of the trigger subspace, and the ending position of the trigger subspace;
[0054] Based on the trigger point corresponding to the sub-region, determine the trigger subspace corresponding to the sub-region.
[0055] In one possible implementation, after determining the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, the device further includes:
[0056] The acquisition unit is used to acquire radar data detected by the radar used to trigger the camera;
[0057] The fourth determining unit is used to determine the screen coordinates of the radar point represented by the radar data;
[0058] The display unit is used to display the radar point at the location indicated by the screen coordinates.
[0059] Fourthly, embodiments of this application provide a triggering device for a camera, the device comprising:
[0060] The detection unit is used to detect the target object;
[0061] The fifth determining unit is used to determine whether the target object is located in the target trigger space of the camera when the target object is detected, so as to obtain a determination result, wherein the target trigger space is determined by any of the above methods for determining the target trigger space;
[0062] The sixth determining unit is used to determine whether to trigger the camera based on the determining result.
[0063] In one possible implementation, upon detecting the target object, determining whether the target object is located within the target trigger space of the camera includes:
[0064] Determine whether the target object is located within the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0065] When the target object is located in the target triggering region, a target sub-region containing the target object is determined from the sub-region set, wherein the sub-region set is obtained by dividing the target triggering region;
[0066] Determine whether the target object is located in the trigger subspace corresponding to the target sub-region, wherein the trigger subspace is determined from the normal extension space of the target sub-region;
[0067] If the target object is located in the trigger subspace, it is determined that the target object is located in the target trigger space of the camera;
[0068] If the target object is not located in the trigger subspace, it is determined that the target object is not located in the target trigger space of the camera.
[0069] Fifthly, embodiments of this application provide an electronic device, including:
[0070] Memory, used to store computer programs;
[0071] The processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the method of any embodiment of the method for determining the target trigger space of the first aspect of the present application, or to implement the method of any embodiment of the method for triggering a camera of the second aspect of the present application.
[0072] Sixthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the method of any embodiment of the method for determining the target trigger space as described in the first aspect above, or implements the method of any embodiment of the camera triggering method as described in the second aspect of this application.
[0073] In a seventh aspect, embodiments of this application provide a computer program product comprising computer-readable code that, when executed on a device, causes a processor in the device to implement the method of any embodiment of the method for determining the target trigger space of the first aspect described above, or to implement the method of any embodiment of the camera triggering method of the second aspect described above.
[0074] The method for determining the target trigger space provided in this application embodiment can determine the target trigger area of a camera, wherein the target trigger area is a planar area within the monitoring range of the camera. Then, the target trigger area is divided into a set of sub-regions. Next, the normal extension space of each sub-region in the set of sub-regions is determined, and the trigger subspace corresponding to each sub-region is determined from its normal extension space. Subsequently, the set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera. Therefore, by obtaining a more accurate target trigger space, the probability of false triggering or missed triggering of the camera can be reduced.
[0075] The camera triggering method provided in this application can detect a target object, and then, if the target object is detected, determine whether the target object is located within the target trigger space of the camera to obtain a determination result. The target trigger space is determined using any of the target trigger space determination methods described above. Then, based on the determination result, it is determined whether to trigger the camera. Therefore, by obtaining a more accurate target trigger space, the probability of false triggering or missed triggering of the camera can be reduced.
[0076] Brief description of the attached figures
[0077] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0078] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0079] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0080] Figure 1 is a flowchart illustrating a method for determining a target trigger space according to an embodiment of this application;
[0081] Figure 2 is a flowchart illustrating another method for determining the target trigger space provided in an embodiment of this application;
[0082] Figure 3 is a flowchart illustrating a camera triggering method provided in an embodiment of this application;
[0083] Figures 4A-4C are schematic diagrams of a top-view arrangement provided in an embodiment of this application;
[0084] Figures 5A and 5B are schematic diagrams of a side view arrangement provided in an embodiment of this application;
[0085] Figures 6A and 6B are schematic diagrams of a real-time user streaming screen provided in an embodiment of this application;
[0086] Figures 7A and 7B are schematic diagrams illustrating the setting of a trigger point according to an embodiment of this application;
[0087] Figure 8 is a framework diagram of a camera triggering method provided in an embodiment of this application;
[0088] Figure 9A is a flowchart illustrating another method for determining the target trigger space provided in an embodiment of this application;
[0089] Figure 9B is a flowchart illustrating another camera triggering method provided in an embodiment of this application;
[0090] Figure 10 is a schematic diagram of the structure of a target triggering space determination device provided in an embodiment of this application;
[0091] Figure 11 is a schematic diagram of the structure of a camera triggering device provided in an embodiment of this application;
[0092] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0093] Detailed Explanation
[0094] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this application.
[0095] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.
[0096] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0097] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.
[0098] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.
[0099] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0100] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this application or its application or use.
[0101] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0102] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0103] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0104] To address the technical problem of reducing the probability of false or missed triggering of cameras in existing technologies, this application provides a method for determining the target trigger space and a camera triggering method. By obtaining a more accurate target trigger space, the probability of false or missed triggering of cameras can be reduced.
[0105] Figure 1 is a flowchart illustrating a method for determining a target trigger space according to an embodiment of this application. This method can be applied to one or more electronic devices such as cameras, security systems, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the execution entity of this method can be hardware or software. When the execution entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the execution entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.
[0106] As shown in Figure 1, the method specifically includes:
[0107] Step 101: Determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera.
[0108] In this embodiment, the target triggering area can be any plane within the monitoring range of the camera. As an example, the target triggering area can be the xy plane, xz plane, or yz plane in a preset three-dimensional Cartesian coordinate system, or it can be other planes.
[0109] Typically, the target trigger area can be used to determine whether to trigger the camera. For example, when the target object is outside the target trigger area, the camera does not need to trigger; when the target object is inside the target trigger area, the camera may (but is not necessarily) trigger.
[0110] Once triggered, the camera can perform actions such as recording, issuing alarms, or sending notifications to the monitoring system.
[0111] The monitoring range can be the area where a camera can effectively capture images or video. This area includes the horizontal and vertical directions, as well as the space within a certain distance from the camera. The monitoring range can be determined based on information such as the camera's lens focal length, lens size, and camera position.
[0112] For example, any plane within the camera's monitoring range can be used as the camera's target trigger area.
[0113] As an example, please refer to Figures 4A-4C, which are schematic diagrams of a top-down view of an embodiment of this application.
[0114] As shown in Figure 4A, a map (as shown by the rectangle in Figure 4A) can first be displayed on the aforementioned execution entity. This map can include an overview of the monitoring range. Then, users or other entities can determine the detection range of the radar used to trigger the camera on the map, as shown in Figure 4B. Next, as shown in Figure 4C, users or other entities can select a hotspot area within the detection range and use this hotspot area as the target trigger area.
[0115] Step 102: Divide the target triggering area into a set of sub-regions.
[0116] In this embodiment, the sub-region set can be multiple sub-regions obtained by dividing the target triggering region.
[0117] Here, the target triggering area can be divided into a set of sub-regions in various ways.
[0118] For example, a preset location can be used as a reference point, and the target triggering area can be divided into sub-regions based on the distance from this reference point. For instance, as shown in Figure 5A, the origin in the figure is the reference point, and a sub-region can be divided at 1-meter intervals.
[0119] For example, the target triggering area can be divided into multiple grids to obtain a set of sub-regions.
[0120] Step 103: Determine the normal extension space of the sub-region in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region.
[0121] In this embodiment, the normal extension space can be a space formed by moving a sub-region along its normal direction. For example, when the sub-region is parallel to the ground, the normal extension space of the sub-region can be a three-dimensional spatial region with the sub-region as its base and a certain height.
[0122] The triggering subspace can be all or part of the space in the normal extension space. Furthermore, the triggering subspace can be one or more spaces in the normal extension space. Additionally, the volume of the triggering subspace can also be 0.
[0123] Referring to Figure 5B, the height of the trigger subspace corresponding to the sub-region 1-2 meters from the origin can be 1-3.2 meters. The height of the trigger subspace corresponding to the sub-region 2-3 meters from the origin can be 0.1-2.7 meters. The height of the trigger subspace corresponding to the sub-region 3-4 meters from the origin can be 0-2.2 meters. The height of the trigger subspace corresponding to the sub-region 4-5 meters from the origin can be 1-4 meters. The height of the trigger subspace corresponding to the sub-region 5-6 meters from the origin can be 1-4 meters. The height of the trigger subspace corresponding to the sub-region 6-7 meters from the origin can be 1-6.1 meters.
[0124] In practice, areas that frequently experience missed or false triggers can be excluded from the trigger subspace using the methods described above.
[0125] Step 104: Determine the set of trigger subspaces corresponding to each subregion in the set of subregions as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0126] In this embodiment, after determining the trigger subspace corresponding to each sub-region in the set of sub-regions, the set of the determined trigger subspaces can be defined as the target trigger space of the camera.
[0127] Therefore, when a target object enters the target trigger space, the camera can be triggered, thereby controlling the camera to perform operations such as recording.
[0128] In some optional implementations of this embodiment, the trigger subspace corresponding to the sub-region can be determined from the normal extension space of the sub-region in the following way:
[0129] The first step is to determine the trigger point corresponding to the sub-region from the normal extension space of the sub-region.
[0130] The trigger point includes at least two of the following: the length of the trigger subspace in the normal direction of the sub-region, the start position of the trigger subspace, and the end position of the trigger subspace.
[0131] Here, users and other entities can set the aforementioned trigger points themselves. Alternatively, the executing entity can automatically determine the trigger points. For example, the executing entity can use user feedback to identify areas prone to false or missed triggers, and then exclude these areas from the trigger subspace by determining the trigger points.
[0132] The second step is to determine the trigger subspace corresponding to the sub-region based on the trigger point corresponding to the sub-region.
[0133] As an example, the aforementioned execution entity can determine the trigger subspace corresponding to the sub-region based on the length of the trigger subspace in the normal direction of the sub-region and the starting position of the trigger subspace.
[0134] As another example, the aforementioned execution entity can also determine the trigger subspace corresponding to the sub-region based on the length of the trigger subspace in the normal direction of the sub-region and the termination position of the trigger subspace.
[0135] As another example, the aforementioned execution entity can also determine the trigger subspace corresponding to the sub-region based on the start position and the end position of the trigger subspace.
[0136] It is understandable that among the above optional implementation methods, by setting the trigger point corresponding to the sub-region, the trigger sub-space corresponding to the sub-region can be determined more accurately, and the target trigger space can be determined more accurately. Thus, the probability of false triggering or missed triggering of the camera can be further reduced.
[0137] In some optional implementations of this embodiment, after determining the set of trigger subspaces corresponding to each sub-region in the sub-region set as the target trigger space of the camera, the following steps may also be performed:
[0138] The first step is to acquire radar data detected by the radar used to trigger the camera.
[0139] Here, radar data may include the coordinates of radar points in the radar coordinate system or the world coordinate system.
[0140] The second step is to determine the screen coordinates of the radar points represented by the radar data.
[0141] Here, radar data can be converted into coordinates in the pixel coordinate system, and then into coordinates in the screen coordinate system, i.e., screen coordinates.
[0142] The third step is to display the radar point at the location indicated by the screen coordinates.
[0143] It is understandable that, among the above optional implementation methods, radar points represented by radar data can be displayed on the screen. This allows users and other objects to understand whether the target trigger space is suitable for triggering the camera. Furthermore, users and other objects can use this as a reference to further adjust the target trigger space in order to further reduce the probability of false triggering or missed triggering of the camera.
[0144] It should be noted that, where there is no conflict, the technical features described in different alternative implementations can be included in the same embodiment. For the sake of brevity, they will not be elaborated here.
[0145] The method for determining the target trigger space provided in this application embodiment can determine the target trigger area of a camera, wherein the target trigger area is a planar area within the monitoring range of the camera. Then, the target trigger area is divided into a set of sub-regions. Next, the normal extension space of each sub-region in the set of sub-regions is determined, and the trigger subspace corresponding to each sub-region is determined from its normal extension space. Subsequently, the set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera. Therefore, by obtaining a more accurate target trigger space, the probability of false triggering or missed triggering of the camera can be reduced.
[0146] Figure 2 is a flowchart illustrating another method for determining a target trigger space provided in an embodiment of this application. As shown in Figure 2, the method specifically includes:
[0147] Step 201: Determine the detection range of the radar used to trigger the camera.
[0148] In this embodiment, the radar's detection range can be the area where the radar can effectively detect the target object. This detection range can be a two-dimensional planar area or a three-dimensional spatial area.
[0149] Step 202: Based on the detection range, determine the target monitoring range of the camera.
[0150] In this embodiment, the detection range can be used as the target monitoring range of the camera. Alternatively, the target monitoring range of the camera can be obtained by adjusting the detection range.
[0151] When the detection range is a two-dimensional planar area, the target monitoring range can also be a two-dimensional planar area. When the detection range is a three-dimensional spatial area, the target monitoring range can be either a two-dimensional planar area or a three-dimensional spatial area.
[0152] Step 203: Determine the target triggering area of the camera from the target monitoring range, wherein the target triggering area is a planar area within the monitoring range of the camera.
[0153] In this embodiment, when the target monitoring range is a two-dimensional planar area, part or all of the area in the two-dimensional planar area can be determined as the target trigger area of the camera. When the target monitoring range is a three-dimensional spatial area, part or all of the area in any planar area of the three-dimensional spatial area can be determined as the target trigger area of the camera.
[0154] Apart from the above, step 203 is basically the same as step 101 in the embodiment corresponding to Figure 1, and will not be described again here.
[0155] Step 204: Divide the target triggering area into a set of sub-regions.
[0156] In this embodiment, step 204 is basically the same as step 102 in the embodiment corresponding to Figure 1, and will not be described again here.
[0157] Step 205: Determine the normal extension space of the sub-region in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region.
[0158] In this embodiment, step 205 is basically the same as step 103 in the embodiment corresponding to Figure 1, and will not be described again here.
[0159] Step 206: Determine the set of trigger subspaces corresponding to each sub-region in the sub-region set as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0160] In this embodiment, step 206 is basically the same as step 104 in the embodiment corresponding to Figure 1, and will not be described again here.
[0161] In some optional implementations of this embodiment, when the detection range is a three-dimensional spatial region, the target monitoring range of the camera can be determined based on the detection range in the following way: the detection range is determined as the target monitoring range of the camera.
[0162] It is understood that, in the above-mentioned optional implementation methods, the entire detection range of the radar can be defined as the target monitoring range of the camera. Therefore, the target triggering area of the camera can be determined based on the three-dimensional target monitoring range. This allows for more flexible selection of different planes within the target monitoring range as the target triggering area of the camera.
[0163] In some optional implementations of this embodiment, when the detection range is a three-dimensional spatial region, the target monitoring range of the camera can be determined based on the detection range in the following way: the top-down view of the detection range is determined as the target monitoring range of the camera.
[0164] It is understood that, in the above-mentioned optional implementation methods, the top-down view of the radar's detection range can be used to determine the target monitoring range of the camera. Therefore, the target triggering area of the camera can be determined more quickly based on a two-dimensional top-down view.
[0165] It should be noted that, in addition to the contents described above, this embodiment may also include the corresponding technical features described in the embodiment corresponding to FIG1, thereby achieving the technical effect of the method for determining the target trigger space shown in FIG1. For details, please refer to the relevant description in FIG1. For the sake of brevity, it will not be elaborated here.
[0166] The target triggering space determination method provided in this application determines the target monitoring range of the camera by using the detection range of the radar used to trigger the camera, and then determines the target triggering area of the camera. Therefore, by combining the radar's detection range, the target triggering space can be determined more accurately, thereby reducing the probability of false triggering or missed triggering of the camera.
[0167] Figure 3 is a flowchart illustrating a camera triggering method according to an embodiment of this application. This method can be applied to one or more electronic devices such as cameras, security systems, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the executing entity of this method can be hardware or software. When the executing entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the executing entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.
[0168] Furthermore, the executing entity of this method may be the same as or different from the executing entity of the aforementioned method for determining the target trigger space.
[0169] As shown in Figure 3, the method specifically includes:
[0170] Step 301: Detect the target object.
[0171] In this embodiment, target objects can be detected using devices such as radar and PIR.
[0172] The target object can be a person, vehicle, pet, etc.
[0173] Step 302: If the target object is detected, determine whether the target object is located in the target trigger space of the camera to obtain a determination result.
[0174] In this embodiment, the target trigger space is determined using any of the above-mentioned methods for determining the target trigger space.
[0175] The determination result can indicate whether the target object is located in the target trigger space of the camera.
[0176] Here, radar, PIR, or other devices can be used to determine whether the target object is located in the target trigger space of the camera.
[0177] Step 303: Based on the determination result, determine whether to trigger the camera.
[0178] In this embodiment, if the determination result indicates that the target object is located within the target trigger space of the camera, the camera can be triggered. If the determination result indicates that the target object is not located within the target trigger space of the camera, the camera can be left untriggered.
[0179] In some optional implementations of this embodiment, when the target object is detected, the following method can be used to determine whether the target object is located in the target trigger space of the camera:
[0180] The first step is to determine whether the target object is located within the target trigger area of the camera.
[0181] The target triggering area is a planar area within the monitoring range of the camera.
[0182] The second step is to determine the target sub-region containing the target object from the sub-region set, if the target object is located in the target triggering region.
[0183] The set of sub-regions is obtained by dividing the target triggering region.
[0184] The third step is to determine whether the target object is located in the trigger subspace corresponding to the target sub-region.
[0185] The triggering subspace is determined from the normal extension space of the target sub-region.
[0186] Fourth step: if the target object is located in the trigger subspace, determine that the target object is located in the target trigger space of the camera; if the target object is not located in the trigger subspace, determine that the target object is not located in the target trigger space of the camera.
[0187] It is understood that, in the above optional implementation methods, it can first be determined whether the position of the target object is located within the target triggering area of the plane. If so, it can be further determined whether the position of the target object is located within the range selected by the normal direction of the target triggering area. In this way, the efficiency of determining whether the target object is located within the target triggering space of the camera can be improved.
[0188] It should be noted that, in addition to the contents described above, this embodiment may also include the corresponding technical features described in the embodiments corresponding to Figures 1 and 2, thereby achieving the technical effect of the method for determining the target trigger space shown in Figures 1 and 2. For details, please refer to the relevant descriptions above. For the sake of brevity, these will not be elaborated here.
[0189] The camera triggering method provided in this application can detect a target object, and then, if the target object is detected, determine whether the target object is located within the target trigger space of the camera to obtain a determination result. The target trigger space is determined using any of the target trigger space determination methods described above. Then, based on the determination result, it is determined whether to trigger the camera. Therefore, by obtaining a more accurate target trigger space, the probability of false triggering or missed triggering of the camera can be reduced.
[0190] The following describes the embodiments of this application by way of example. However, it should be noted that the following content is only used to understand the technical solutions of the embodiments of this application and does not constitute a limitation on the protection scope of the embodiments of this application.
[0191] Before introducing this plan, the following explanations are provided for the technical terms used in this plan:
[0192] Camera intrinsic parameters: Intrinsic parameters are parameters that describe the characteristics of the camera itself, mainly including focal length, principal point coordinates, distortion coefficients, etc. These parameters are related to the camera's hardware design and manufacturing, and they determine how the camera maps 3D points in the actual scene onto the image plane.
[0193] Spherical coordinate system: Another way to represent a point in three-dimensional space. It requires three values: two angles and the third distance.
[0194] Hot zone (also known as the target trigger area mentioned above): The trigger area set by the user on the APP (Application) through the screen.
[0195] In current solar panel cameras, PIR or radar is generally used as the triggering device. The camera only starts working after being triggered by the PIR or radar, which can save a lot of power consumption. However, using only radar or PIR still has some problems.
[0196] 1. Users cannot intuitively perceive the trigger area. If radar or PIR triggering is used, it is not easy for users to set it on the screen, and users cannot specifically perceive the trigger range.
[0197] 2. Numerous missed and false triggers. When using PIR devices, the target location is unknown, leading to numerous false triggers. When using radar devices, although the target location is known, the user cannot perceive the specific trigger range, resulting in false triggers in areas the user is not paying attention to, and failure to trigger in areas the user is paying attention to.
[0198] To address this issue, the following method is used:
[0199] 1. Overall Framework Overview:
[0200] a. As shown in Figure 8, this solution comprises three parts: a trigger module, a main chip, and an APP module. The trigger module is responsible for detecting the presence of a moving target (i.e., the target object mentioned above) and determining whether the moving target is within the user-defined range (i.e., the target trigger space mentioned above). The main chip is responsible for communication with the trigger module, image processing, coordinate transformation, and communication with the APP. The APP is responsible for coordinate transformation and user-level display.
[0201] 2. Users can set the device (i.e., the camera mentioned above) height, desired trigger range (i.e., the target trigger area mentioned above), and desired trigger height (i.e., the length of the trigger subspace in the normal direction of that sub-region) via the app. This solves the problem that users cannot intuitively perceive the trigger area (i.e., the target trigger space mentioned above).
[0202] a. The user sets the height for the main controller via the app;
[0203] b. The main controller transmits the device's intrinsic parameters fx, fy, altitude, distortion parameters Rd, Rr, and the device's (i.e., the camera mentioned above) attitude (pitch angle gx, yaw angle gr) to the APP;
[0204] c. First, the user sets the trigger range of the overhead view (i.e. the target trigger area mentioned above) through the APP, as shown in Figures 4A-4C. The figures contain three parts: overhead view (Figure 4A), radar range drawn by overhead view (Figure 4B), and trigger range drawn by overhead view (Figure 4C).
[0205] i. The overhead view is obtained from the map via the APP and then displayed on the APP interface;
[0206] ii. The overhead view draws the radar range and marks the location of the camera for the user. Then the APP converts the radar data into the coordinate system R0(x0, y0) = fp0(L, gx, gr, R0x0, R0y0, R0z0) of the overhead view and draws radar points at different distances in the overhead view.
[0207] Where (R0x0, R0y0, R0z0) represent radar data, L represents camera height, gx represents pitch angle, and gr represents yaw angle. fp0() represents the transformation relationship for converting radar data into points in the coordinate system of the overhead view. R0(x0, y0) represents points in the coordinate system of the overhead view.
[0208] iii. The trigger range for drawing the overhead view is the range of hotspots set by the user within the radar range of the overhead view. It is assumed that six points are set, namely: ((pr0.x,pr0.y), (pr1.x,pr1.y), (pr2.x,pr2.y), (pr3.x,pr3.y), (pr4.x,pr4.y), (pr5.x,pr5.y));
[0209] d. Then the user sets the side view, which is used to set the trigger height at different distances, as shown in Figures 5A and 5B. The figures include two parts: before the user sets the side view (Figure 5A) and after the user sets the side view (Figure 5B).
[0210] i. Before the user's side view is set, the radar can monitor all heights within the trigger range (i.e., the detection range mentioned above);
[0211] ii. After setting the user's side profile, the user needs to define a trigger range of 0-10 meters in the app, with each meter increment representing a different trigger height; Luser(l0,l1,l2,l3,l4,l5,l6,l7,l8,l9). Here, l0, l1, l2, l3, l4, l5, l6, l7, l8, and l9 represent the trigger heights set every 1 meter. After setting this, specific heights can be monitored.
[0212] iii. As shown in Figures 7A and 7B, Figures 7A and 7B illustrate two parts: the scenario that needs to be resolved for false triggering (Figure 7A) and the scenario that needs to be monitored at a specific height (Figure 7B). If it is necessary to filter out false triggering situations such as flying birds / mosquitoes, then a lower range can be monitored; if it is necessary to monitor whether there is a thief on the second floor, then the trigger height can be set to the trigger height of the second floor.
[0213] e. Finally, you will be redirected to the user's live stream interface, as shown in Figures 6A-6B.
[0214] i. In the case where the user's real-time stream interface does not have a top-down view and a side view, see Figure 6A. The APP converts the radar data into a pixel coordinate system R(x0, y0) = fp(fx, fy, L, Rd, Rr, gx, gr, Rx0, Ry0, Rz0) and draws radar points at different distances on the APP.
[0215] Where fx and fy represent the intrinsic parameters of the camera, L represents the height of the camera, Rd and Rr represent the distortion parameters of the camera, gx represents the pitch angle, gr represents the yaw angle, (Rx0, Ry0, Rz0) represents the radar data, fp() represents the transformation relationship of converting radar data into points in the pixel coordinate system, and R(x0, y0) represents a point in the pixel coordinate system.
[0216] ii. Where the user's real-time stream interface has both overhead and side views set, refer to Figure 6B. Based on the radar points at different distances drawn on the APP, the hotspot range is converted from the coordinates in the overhead view to the coordinates in the user's real-time stream. (p0.x,p0.y)=fp2(fx,fy,L,Rd,Rr,gx,gr,pr0.x,pr0.y), (p1.x,p1.y)=fp2(fx,fy,L,Rd,Rr,gx,gr,pr1.x,pr1.y); (p2.x,p2.y)=fp2(fx,fy,L,Rd,Rr,gx,gr,pr2.x,pr2.y), (p3.x,p3.y)=fp2(fx,fy,L,Rd,Rr,gx,gr,pr3.x,pr3.y), (p4.x,p4.y)=fp2(fx,fy,L, Rd,Rr,gx,gr,pr4.x,pr4.y), (p5.x,p5.y)=fp2(fx,fy,L,Rd,Rr,gx,gr,pr5.x,pr5.y).
[0217] Where fx and fy represent the camera's intrinsic parameters, L represents the camera's height, Rd and Rr represent the camera's distortion parameters, gx represents the pitch angle, gr represents the yaw angle, (pr0.x,pr0.y), (pr1.x,pr1.y), (pr2.x,pr2.y), (pr3.x,pr3.y), (pr4.x,pr4.y), and (pr5.x,pr5.y) represent six radar data points, fp2() represents the transformation relationship between the coordinates of the hotspot area in the overhead view and the coordinates of the points in the user's real-time stream, and (p0.x,p0.y), (p1.x,p1.y), (p2.x,p2.y), (p3.x,p3.y), (p4.x,p4.y), and (p5.x,p5.y) represent the coordinates in the six user real-time streams.
[0218] f. Transmit hotspot information and altitude settings to the main controller via the APP;
[0219] g. Store the relevant information in a storage area that is not erased when power is off to prevent information loss due to power failure and restart;
[0220] h. Input the hotspot information, user-set height, and camera height settings into the radar module;
[0221] 3. Map the user-defined hotspot interface to the radar trigger range. This resolves the issue of inaccurate trigger location.
[0222] a. Obtain the camera's intrinsic parameters fx, fy, height, and distortion parameters Rd, Rr. Transform these parameters into world coordinates using F(fx, fy, L, Rd, Rr, x, y); p0(x0, y0, z0) = F(fx, fy, L, Rd, Rr, p0.x, p0.y); p1(x1, y1, z1) = F(fx, fy, L, Rd, Rr, p1.x, p1.y); p2(x2, y2, z2) = F(fx, fy, L, Rd, Rr, p1.x, p1.y); d,Rr,p2.x,p2.y);p3(x3,y3,z3)=F(fx,fy,L,Rd,Rr,p3.x,p3.y);p4(x4,y4,z4) =F(fx,fy,L,Rd,Rr,p4.x,p4.y); p5(x5,y5,z5)=F(fx,fy,L,Rd,Rr,p5.x,p5.y);
[0223] Where fx and fy represent the camera's intrinsic parameters, L represents the camera's height, Rd and Rr represent the camera's distortion parameters, (p0.x,p0.y), (p1.x,p1.y), (p2.x,p2.y), (p3.x,p3.y), (p4.x,p4.y), and (p5.x,p5.y) represent the coordinates in the six user real-time streams, F() represents the transformation relationship for converting the coordinates in the user real-time streams into points in the world coordinate system, and p0(x0,y0,z0), p1(x1,y1,z1), p2(x2,y2,z2), p3(x3,y3,z3), p4(x4,y4,z4), and p5(x5,y5,z5) represent the coordinates in the six world coordinate systems.
[0224] b. Convert the camera world system to the radar coordinate system R, Rp0(x, y) = Fr(p0.x0, p0.y0, p0.z0), Rp1(x, y) = Fr(p1.x1, p1.y1, p1.z1), Rp2(x, y) = Fr(p2.x2, p2.y2, p2.z2), Rp3(x3, y3) = Fr(p3.x3, p3.y3, p3.z3), Rp4(x4, y4) = Fr(p4.x4, p4.y4, p4.z4), Rp5(x, y) = Fr(p5.x5, p5.y5, p5.z5);
[0225] Where (p0.x0, p0.y0, p0.z0), (p1.x1, p1.y1, p1.z1), (p2.x2, p2.y2, p2.z2), (p3.x3, p3.y3, p3.z3), (p4.x4, p4.y4, p4.z4), and (p5.x5, p5.y5, p5.z5) represent points in the six camera world systems. Fr() represents the transformation relationship for converting points in the camera world system to points in the radar coordinate system. Rp0(x,y), Rp1(x,y), Rp2(x,y), Rp3(x,y), Rp4(x,y), and Rp5(x,y) represent points in the six radar coordinate systems, see Figure 9A.
[0226] c. The converted hot zone coordinates are transmitted to the microcontroller. After each radar trigger, the microcontroller transmits the results to the microcontroller using the ray casting method: result = (Rp0(x,y), Rp1(x,y), Rp2(x,y), Rp3(x,y), Rp4(x,y), Rp5(x,y)).
[0227] Where result <= 0 indicates that no target object was detected; result > 0 indicates that a target object was detected.
[0228] d. If result <= 0, then directly enter sleep mode; if result > 0, then determine whether the current target position is within the hot zone (i.e., the target trigger space mentioned above). If it is within the hot zone, then calculate the height H and distance D of the target object detected by the radar, and then combine H, D and the above Luser (l0,l1,l2,l3,l4,l5,l6,l7,l8,l9) to determine whether the height belongs to the corresponding trigger range. If yes, then wake up the main controller; otherwise, enter sleep mode, see Figure 9B.
[0229] Application Scenarios: This solution can be applied to various security products and scenarios, including solar panel doorbells, solar panel cameras, and solar panel PTZ cameras. It can be used in indoor, street, forest, and farm environments. It can optimize false trigger scenarios and save power consumption.
[0230] It should be noted that, in addition to the contents described above, this embodiment may also include the technical features described in the above embodiments, thereby achieving the technical effect of the method for determining the target trigger space shown above. For details, please refer to the above description. For the sake of brevity, it will not be elaborated here.
[0231] The target trigger space determination method provided in this application embodiment allows radar points to be depicted in the user's real-time stream; different trigger heights are obtained by setting different distances through the APP; the pixel coordinates of the camera hotspot are converted into radar coordinates using camera height, tilt angle, and intrinsic and extrinsic parameters; by combining visual coordinates and radar trigger positions, it is possible to accurately determine whether the target is within the trigger range, thus optimizing false triggers and missed triggers, and reducing power consumption. Furthermore, users can more intuitively see their trigger range, resulting in a better user experience; the trigger range is more accurate, user power consumption is lower, and missed triggers are fewer; specific heights can be monitored, and different distances can monitor different heights, reducing false triggers or allowing monitoring of specific areas.
[0232] Figure 10 is a schematic diagram of a target trigger space determination device provided in an embodiment of this application. Specifically, it includes:
[0233] The first determining unit 401 is used to determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0234] The partitioning unit 402 is used to divide the target triggering region into a set of sub-regions;
[0235] The second determining unit 403 is used to determine the normal extension space of a sub-region in the sub-region set, and to determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region.
[0236] The third determining unit 404 is used to determine the set of trigger subspaces corresponding to each sub-region in the sub-region set as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0237] In one possible implementation, determining the target trigger area of the camera includes:
[0238] Determine the detection range of the radar used to trigger the camera;
[0239] Based on the detection range, the target monitoring range of the camera is determined;
[0240] The target trigger area of the camera is determined from the target monitoring range.
[0241] In one possible implementation, when the detection range is a three-dimensional spatial region, determining the target monitoring range of the camera based on the detection range includes one of the following:
[0242] The detection range is defined as the target monitoring range of the camera;
[0243] The top-down view of the detection range is used to determine the target monitoring range of the camera.
[0244] In one possible implementation, determining the trigger subspace corresponding to the sub-region from the normal extension space of the sub-region includes:
[0245] From the normal extension space of the sub-region, determine the trigger point corresponding to the sub-region; wherein, the trigger point includes at least two of the following: the length of the trigger subspace in the normal direction of the sub-region, the starting position of the trigger subspace, and the ending position of the trigger subspace;
[0246] Based on the trigger point corresponding to the sub-region, determine the trigger subspace corresponding to the sub-region.
[0247] In one possible implementation, after determining the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, the device further includes:
[0248] An acquisition unit (not shown in the figure) is used to acquire radar data detected by the radar used to trigger the camera;
[0249] The fourth determining unit (not shown in the figure) is used to determine the screen coordinates of the radar point represented by the radar data;
[0250] A display unit (not shown in the figure) is used to display the radar point at the location indicated by the screen coordinates.
[0251] The target trigger space determination device provided in this embodiment can be the target trigger space determination device shown in Figure 10. It can execute all the steps of the target trigger space determination methods described above, thereby achieving the technical effects of the target trigger space determination methods described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.
[0252] Figure 11 is a schematic diagram of the structure of a camera triggering device provided in an embodiment of this application. Specifically, it includes:
[0253] Detection unit 411 is used to detect the target object;
[0254] The fifth determining unit 412 is used to determine whether the target object is located in the target trigger space of the camera when the target object is detected, so as to obtain a determination result, wherein the target trigger space is determined by any of the above methods for determining the target trigger space;
[0255] The sixth determining unit 413 is used to determine whether to trigger the camera based on the determining result.
[0256] In one possible implementation, upon detecting the target object, determining whether the target object is located within the target trigger space of the camera includes:
[0257] Determine whether the target object is located within the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0258] When the target object is located in the target triggering region, a target sub-region containing the target object is determined from the sub-region set, wherein the sub-region set is obtained by dividing the target triggering region;
[0259] Determine whether the target object is located in the trigger subspace corresponding to the target sub-region, wherein the trigger subspace is determined from the normal extension space of the target sub-region;
[0260] If the target object is located in the trigger subspace, it is determined that the target object is located in the target trigger space of the camera;
[0261] If the target object is not located in the trigger subspace, it is determined that the target object is not located in the target trigger space of the camera.
[0262] The camera triggering device provided in this embodiment can be the camera triggering device shown in Figure 11. It can execute all the steps of the triggering methods of each camera described above, thereby achieving the technical effects of the triggering methods of each camera described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.
[0263] Figure 12 is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 500 shown in Figure 12 includes at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together through a bus system 505. It is understood that the bus system 505 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 505 in Figure 12.
[0264] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0265] It is understood that the memory 502 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0266] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.
[0267] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this application embodiment can be included in application program 5022.
[0268] In this embodiment, by calling the program or instructions stored in memory 502, specifically the program or instructions stored in application program 5022, processor 501 executes the method steps provided in each method embodiment, including, for example:
[0269] Determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0270] The target triggering region is divided into a set of sub-regions;
[0271] Determine the normal extension space of the sub-regions in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region;
[0272] The set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0273] or,
[0274] Detect the target object;
[0275] If the target object is detected, it is determined whether the target object is located in the target trigger space of the camera to obtain a determination result, wherein the target trigger space is determined by any of the above methods for determining the target trigger space;
[0276] Based on the determination result, determine whether to trigger the camera.
[0277] The methods disclosed in the embodiments of this application can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.
[0278] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described above, or combinations thereof.
[0279] For software implementation, the techniques described herein can be implemented by units that perform the functions described above. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or external to the processor.
[0280] The electronic device provided in this embodiment can be the electronic device shown in Figure 12, which can execute all the steps of the above-described method for determining the target trigger space, thereby achieving the technical effect of the above-described method for determining the target trigger space. For details, please refer to the above description. For the sake of brevity, it will not be elaborated here.
[0281] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0282] When one or more programs in the storage medium can be executed by one or more processors to implement the above-mentioned method for determining the target trigger space executed on the electronic device side, or the triggering method of the camera.
[0283] The processor described above is used to execute a program for determining the target trigger space stored in memory, or a trigger program for the camera, to implement the steps of the method for determining the target trigger space executed on the electronic device side, or the triggering steps of the camera:
[0284] Determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera;
[0285] The target triggering region is divided into a set of sub-regions;
[0286] Determine the normal extension space of the sub-regions in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region;
[0287] The set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
[0288] or,
[0289] Detect the target object;
[0290] If the target object is detected, it is determined whether the target object is located in the target trigger space of the camera to obtain a determination result, wherein the target trigger space is determined by any of the above methods for determining the target trigger space;
[0291] Based on the determination result, determine whether to trigger the camera.
[0292] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0293] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0294] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0295] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining a target trigger space, characterized in that, The method includes: Determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera; The target triggering region is divided into a set of sub-regions; Determine the normal extension space of the sub-regions in the set of sub-regions, and determine the trigger sub-space corresponding to the sub-region from the normal extension space of the sub-region; The set of trigger subspaces corresponding to each sub-region in the set of sub-regions is determined as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
2. The method according to claim 1, characterized in that, Determining the target trigger area of the camera includes: Determine the detection range of the radar used to trigger the camera; Based on the detection range, the target monitoring range of the camera is determined; The target trigger area of the camera is determined from the target monitoring range.
3. The method according to claim 2, characterized in that, When the detection range is a three-dimensional spatial region, determining the target monitoring range of the camera based on the detection range includes one of the following: The detection range is defined as the target monitoring range of the camera; The top-down view of the detection range is used to determine the target monitoring range of the camera.
4. The method according to any one of claims 1-3, characterized in that, Determining the trigger subspace corresponding to the sub-region from the normal extension space of the sub-region includes: From the normal extension space of the sub-region, determine the trigger point corresponding to the sub-region; wherein, the trigger point includes at least two of the following: the length of the trigger subspace in the normal direction of the sub-region, the starting position of the trigger subspace, and the ending position of the trigger subspace; Based on the trigger point corresponding to the sub-region, determine the trigger subspace corresponding to the sub-region.
5. The method according to any one of claims 1-3, characterized in that, After determining the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, the method further includes: Acquire radar data detected by the radar used to trigger the camera; Determine the screen coordinates of the radar points represented by the radar data; The radar point is displayed at the location indicated by the screen coordinates.
6. A method for triggering a camera, characterized in that, The method includes: Detect the target object; If the target object is detected, it is determined whether the target object is located in the target trigger space of the camera to obtain a determination result, wherein the target trigger space is determined by the method for determining the target trigger space according to any one of claims 1-5; Based on the determination result, determine whether to trigger the camera.
7. The method according to claim 6, characterized in that, When the target object is detected, determining whether the target object is located within the target trigger space of the camera includes: Determine whether the target object is located within the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera; When the target object is located in the target triggering region, a target sub-region containing the target object is determined from the sub-region set, wherein the sub-region set is obtained by dividing the target triggering region; Determine whether the target object is located in the trigger subspace corresponding to the target sub-region, wherein the trigger subspace is determined from the normal extension space of the target sub-region; If the target object is located in the trigger subspace, it is determined that the target object is located in the target trigger space of the camera; If the target object is not located in the trigger subspace, it is determined that the target object is not located in the target trigger space of the camera.
8. A device for determining a target trigger space, characterized in that, The device includes: The first determining unit is used to determine the target triggering area of the camera, wherein the target triggering area is a planar area within the monitoring range of the camera; A partitioning unit is used to divide the target triggering region into a set of sub-regions; The second determining unit is used to determine the normal extension space of a sub-region in the set of sub-regions, and to determine the triggering sub-space corresponding to the sub-region from the normal extension space of the sub-region. The third determining unit is used to determine the set of trigger subspaces corresponding to each sub-region in the set of sub-regions as the target trigger space of the camera, wherein the target trigger space is used to determine whether to trigger the camera.
9. A triggering device for a camera, characterized in that, The device includes: The detection unit is used to detect the target object; The fifth determining unit is used to determine whether the target object is located in the target trigger space of the camera when the target object is detected, so as to obtain a determination result, wherein the target trigger space is determined by the method for determining the target trigger space according to any one of claims 1-5; The sixth determining unit is used to determine whether to trigger the camera based on the determining result.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, it implements the method for determining the target trigger space according to any one of claims 1-5, or implements the triggering method of the camera according to any one of claims 6-7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for determining the target trigger space according to any one of claims 1-5, or implements the method for triggering the camera according to any one of claims 6-7.