Response information generation method and device, electronic equipment and storage medium
By determining the object and behavior categories in the images collected by the camera, response information is generated based on the distance between the predetermined object and the shooting object set by the user, which solves the problem of too many notifications in the existing security system and improves the accuracy and timeliness of the response information. sex.
Patent Information
- Application Number
- CN202310398877.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-15
AI Technical Summary
When existing security systems identify specific events in images collected by cameras, they send too many notifications to users, resulting in a lack of timeliness and accuracy in generating response information, and users are disturbed by event notifications they are not concerned about.
By acquiring images, the object category and behavior category of the subject are determined, and response information is generated based on the distance between the intended object and the subject, improving the personalization and accuracy of the response information and reducing unnecessary notifications.
It improves the accuracy and timeliness of response information, reduces user interference, and enhances the degree of personalization of response information set by different users.
Smart Images

Figure CN118781584A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for generating response information. Background Art
[0002] At present, the security industry is huge and has many sub-industries, mainly including video surveillance, access control and management, intrusion alarm, building intercom, etc. In the prior art, when a specific event is identified in the image collected by the camera, a notification can be sent to the terminal used by the user, allowing the user to judge whether there is an abnormal situation and handle the abnormal event, thereby obtaining response information corresponding to the image.
[0003] However, the above method sends too many notifications to users, and users may be disturbed by event notifications that they do not care about, resulting in a lack of timeliness and accuracy in the generation of response information. Summary of the invention
[0004] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide a method, device, electronic device and storage medium for generating response information.
[0005] In a first aspect, an embodiment of the present application provides a method for generating response information, the method comprising:
[0006] acquiring a first image;
[0007] Determine the object category of the photographed object in the first image to obtain a target object category;
[0008] Based on the distance between the predetermined object and the photographed object, determining the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category;
[0009] Based on the target object category and the target behavior category, response information corresponding to the first image is generated.
[0010] In a possible implementation manner, the preset behavior category set includes a first behavior category; and
[0011] The predetermined object is determined in the following manner:
[0012] Acquire a second image, wherein the second image is acquired before the first image;
[0013] determining a selected object from the second image;
[0014] determining the selected object as a predetermined object; and
[0015] The first behavior category is determined in the following manner:
[0016] Determining behavior category information set for the predetermined object;
[0017] The behavior category indicated by the behavior category information is determined as a first behavior category.
[0018] In a possible implementation manner, determining the selected object from the second image includes one of the following:
[0019] Determine a selected area object from the second image;
[0020] From the second image, determine the selected object.
[0021] In a possible implementation manner, the behavior categories in the behavior category set include a second behavior category, a third behavior category, and a fourth behavior category, wherein:
[0022] The second behavior category indicates that the subject appears from nothing to something in the image;
[0023] The third behavior category indicates that the activity range of the photographed subject within the first preset time period is greater than the first preset range;
[0024] The fourth behavior category indicates that the activity range of the photographed subject within the second preset time period is less than or equal to the second preset range;
[0025] Among them, the second preset duration is smaller than the first preset duration, and the second preset range is smaller than the first preset range.
[0026] In a possible implementation manner, determining the object category of the photographed object in the first image includes:
[0027] Determining whether the preset object set includes the photographed object in the first image;
[0028] In a case where the photographed object is included in the preset object set, determining that the object category of the photographed object is a first category;
[0029] In a case where the photographed object is not included in the preset object set, determining whether the photographed object has a preset identifier;
[0030] If the preset object set does not include the photographed object and the photographed object has the preset identifier, determining that the object category of the photographed object is the second category;
[0031] When the preset object set does not include the photographed object and the photographed object does not have the preset identifier, it is determined that the object category of the photographed object is the third category.
[0032] In a possible implementation manner, the response information is used to indicate execution of a response operation; and
[0033] After generating response information corresponding to the first image based on the target object category and the target behavior category, the method further includes one of the following:
[0034] Determining the priority of the response information, and performing the response operation according to the priority;
[0035] An execution device of the response operation is determined, and the response information is sent to the execution device so that the execution device executes the response operation.
[0036] In a possible implementation manner, the first image is collected via a target camera; and
[0037] After acquiring the first image, the method further includes:
[0038] Determine the activity time and activity area of the photographed object in the first image, and obtain the current activity time and current activity area;
[0039] Acquire image data collected by the target camera and the associated camera at the historical activity time corresponding to the current activity time, wherein the associated camera and the target camera are used to collect images within a preset area;
[0040] The generating response information corresponding to the first image based on the target object category and the target behavior category includes:
[0041] Based on the target object category, the target behavior category, the image data and the current activity area, response information corresponding to the first image is generated.
[0042] In a possible implementation, after acquiring the first image, the method further includes:
[0043] Determining photographing information of the photographing object based on the first image;
[0044] Based on the shooting information, the target appearance time and the danger level of the shooting object are predicted, wherein the target appearance time is the time when the shooting object appears within a preset area.
[0045] In a second aspect, an embodiment of the present application provides a device for generating response information, the device comprising:
[0046] A first acquisition unit, used for acquiring a first image;
[0047] A first determining unit, configured to determine an object category of a photographed object in the first image to obtain a target object category;
[0048] A second determining unit is used to determine the behavior category of the photographed object in the first image from a preset behavior category set based on the distance between the predetermined object and the photographed object, so as to obtain a target behavior category;
[0049] A generating unit is used to generate response information corresponding to the first image based on the target object category and the target behavior category.
[0050] In a possible implementation manner, the preset behavior category set includes a first behavior category; and
[0051] The predetermined object is determined in the following manner:
[0052] Acquire a second image, wherein the second image is acquired before the first image;
[0053] determining a selected object from the second image;
[0054] determining the selected object as a predetermined object; and
[0055] The first behavior category is determined in the following manner:
[0056] Determining behavior category information set for the predetermined object;
[0057] The behavior category indicated by the behavior category information is determined as a first behavior category.
[0058] In a possible implementation manner, determining the selected object from the second image includes one of the following:
[0059] Determine a selected area object from the second image;
[0060] From the second image, determine the selected object.
[0061] In a possible implementation manner, the behavior categories in the behavior category set include a second behavior category, a third behavior category, and a fourth behavior category, wherein:
[0062] The second behavior category indicates that the subject appears from nothing to something in the image;
[0063] The third behavior category indicates that the activity range of the photographed subject within the first preset time period is greater than the first preset range;
[0064] The fourth behavior category indicates that the activity range of the photographed subject within the second preset time period is less than or equal to the second preset range;
[0065] Among them, the second preset duration is smaller than the first preset duration, and the second preset range is smaller than the first preset range.
[0066] In a possible implementation manner, determining the object category of the photographed object in the first image includes:
[0067] Determining whether the preset object set includes the photographed object in the first image;
[0068] In a case where the photographed object is included in the preset object set, determining that the object category of the photographed object is a first category;
[0069] In a case where the photographed object is not included in the preset object set, determining whether the photographed object has a preset identifier;
[0070] If the preset object set does not include the photographed object and the photographed object has the preset identifier, determining that the object category of the photographed object is the second category;
[0071] When the preset object set does not include the photographed object and the photographed object does not have the preset identifier, it is determined that the object category of the photographed object is the third category.
[0072] In a possible implementation manner, the response information is used to indicate execution of a response operation; and
[0073] After generating response information corresponding to the first image based on the target object category and the target behavior category, the device further includes one of the following:
[0074] A third determining unit, configured to determine a priority of the response information, and perform the response operation according to the priority;
[0075] The fourth determining unit is used to determine an execution device of the response operation, and send the response information to the execution device so that the execution device executes the response operation.
[0076] In a possible implementation manner, the first image is collected via a target camera; and
[0077] After acquiring the first image, the device further includes:
[0078] A fifth determining unit, configured to determine the activity time and activity area of the photographed object in the first image, and obtain the current activity time and current activity area;
[0079] A second acquisition unit is used to acquire image data collected by the target camera and the associated camera at the historical activity time corresponding to the current activity time, wherein the associated camera and the target camera are used to collect images within a preset area;
[0080] The generating response information corresponding to the first image based on the target object category and the target behavior category includes:
[0081] Based on the target object category, the target behavior category, the image data and the current activity area, response information corresponding to the first image is generated.
[0082] In a possible implementation, after acquiring the first image, the device further includes:
[0083] a sixth determining unit, configured to determine photographing information of the photographing object based on the first image;
[0084] A prediction unit is used to predict the target appearance time and danger level of the photographed object based on the photographing information, wherein the target appearance time is the time when the photographed object appears within a preset area.
[0085] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0086] Memory for storing computer programs;
[0087] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the method for generating response information of the first aspect of the present application is implemented.
[0088] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method of any embodiment of the method for generating response information of the first aspect described above is implemented.
[0089] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device implements a method as in any embodiment of the method for generating response information in the first aspect described above.
[0090] The method for generating response information provided by the embodiment of the present application can obtain a first image, then determine the object category of the photographed object in the first image, obtain the target object category, then determine the behavior category of the photographed object in the first image from a preset behavior category set based on the distance between the predetermined object and the photographed object, obtain the target behavior category, and finally generate the response information corresponding to the first image based on the target object category and the target behavior category. Thus, the behavior category of the photographed object in the first image can be determined based on the distance between the predetermined object and the photographed object, and then the response information corresponding to the first image can be generated based on the object category and the behavior category of the photographed object in the first image. In this way, different response information can be generated for different predetermined objects set by different users, so that the generated response information is more in line with the needs of the user, thereby improving the personalization of the generated response information and improving the accuracy of the generated response information for different users. Moreover, the response information is generated based on the distance between the predetermined object and the photographed object, which can improve the accuracy of the generated response information. In addition, the response information corresponding to the first image can be automatically generated, thereby improving the timeliness of the generated response information. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] Figure 1 A flowchart of a method for generating response information provided in an embodiment of the present application;
[0092] Figure 2 A flowchart of another method for generating response information provided in an embodiment of the present application;
[0093] Figure 3A A flowchart of another method for generating response information provided in an embodiment of the present application;
[0094] Figure 3B A schematic diagram of a behavior of a third behavior category provided in an embodiment of the present application;
[0095] Figure 3C A schematic diagram of a behavior of a fourth behavior category provided in an embodiment of the present application;
[0096] Figure 3D A schematic diagram of performing a first behavior category on an object provided by an embodiment of the present application;
[0097] Figure 3E A schematic diagram of performing a first behavior category on a regional object provided by an embodiment of the present application;
[0098] Figure 3F A schematic diagram of performing a target behavior category on a first category of photographed objects provided in an embodiment of the present application;
[0099] Figure 3G A schematic diagram of performing a target behavior category on a second category of photographed objects provided in an embodiment of the present application;
[0100] Figure 3H A schematic diagram of performing a target behavior category on a third category of photographed objects provided in an embodiment of the present application;
[0101] Fig. 3I A flowchart of a method for generating response information when the photographed subject is a person provided in an embodiment of the present application;
[0102] Figure 3J A flowchart of a method for generating response information when the photographed object is a car provided in an embodiment of the present application;
[0103] Figure 3K A flowchart of a method for generating response information when the photographed object is an animal provided in an embodiment of the present application;
[0104] Figure 4 A schematic diagram of the structure of a device for generating response information provided in an embodiment of the present application;
[0105] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0106] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0107] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0108] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0109] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0110] In addition, the term "and / or" in this application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0111] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0112] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0113] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0114] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0115] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0116] Figure 1 A flow chart of a method for generating response information provided in an embodiment of the present application. Figure 1 As shown, the method specifically includes:
[0117] Step 101: Acquire a first image.
[0118] In this embodiment, the first image may be an image obtained by capturing images of a preset area. The first image may include a photographed object. The preset area may include a residence, a scenic spot, an area including a preset object, etc.
[0119] As an example, one or more cameras may be installed in the preset area, and thus one or more images captured by the one or more cameras may be determined as the first image.
[0120] Step 102: determine the object category of the photographed object in the first image to obtain the target object category.
[0121] In this embodiment, the target object category may be the object category of the photographed object in the first image.
[0122] As an example, the object category of the photographed object in the first image may be determined from a predetermined set of object categories, so that the determined object category is determined as the target object category.
[0123] Exemplarily, the object categories in the above object category set may represent: people, cars, and animals.
[0124] Optionally, other methods may be used to perform the above step 102, which will not be described in detail here.
[0125] Step 103 : Based on the distance between the predetermined object and the photographed object, determine the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category.
[0126] In this embodiment, the predetermined object may be a pre-set object, a location area, etc. As an example, the predetermined object may be set by a user.
[0127] The target behavior category may be a behavior category of the subject in the first image in a preset behavior category set.
[0128] In some cases, a preset behavior category set may be set for the target object category.
[0129] In some optional implementations of this embodiment, the predetermined object is determined in the following manner:
[0130] First, a second image is acquired.
[0131] Wherein, the second image is collected before the first image.
[0132] Then, the object selected by the user is determined from the second image. For example, the user can select a person, a car, an animal, a space area, etc. from the second image.
[0133] Then, the selected object is determined as the predetermined object.
[0134] It can be understood that in the above optional implementation, the predetermined object is determined by the user selecting an object from the second image, thereby lowering the threshold for users to set the predetermined object through visual editing, and allowing users in personalized scenes to customize the predetermined object.
[0135] As an example, when the predetermined object is object A, and the preset behavior category set includes category A (for example, representing dangerous behavior) and category B (for example, representing non-dangerous behavior), if the distance between object A and the photographed object is less than a preset first distance, then it can be determined that the target behavior category of the photographed object in the first image is category A.
[0136] As another example, when the predetermined object is area A, and the preset behavior category set includes category A (for example, representing dangerous behavior) and category B (for example, representing non-dangerous behavior), if the distance between area A and the photographed object is less than a preset second distance, then it can be determined that the target behavior category of the photographed object in the first image is category A.
[0137] In some optional implementations of this embodiment, the preset behavior category set includes a first behavior category.
[0138] On this basis, the predetermined object can be determined in the following manner:
[0139] First, a second image is acquired.
[0140] Wherein, the second image is collected before the first image.
[0141] Afterwards, the selected object is determined from the second image.
[0142] Then, the selected object is determined as the predetermined object.
[0143] Furthermore, the first behavior category may be determined in the following manner:
[0144] First, the behavior category information set for the predetermined object is determined.
[0145] Exemplary behavior category information may represent behavior categories such as touch, impact, and press.
[0146] Afterwards, the behavior category represented by the behavior category information is determined as the first behavior category.
[0147] It can be understood that in the above optional implementation method, by selecting an object from the second image, the predetermined object is determined, and then the behavior category is set for the predetermined object. Thus, the threshold for users to set behavior categories is lowered through visual editing, and users in personalized scenarios can customize behavior categories.
[0148] In some application scenarios of the above optional implementation manners, the object determined from the second image may be a region object, or an object object.
[0149] As an example, the above-mentioned object may be a car, a safe, a mailbox, etc. Therefore, it is possible to determine whether a person touches the object through human shape detection, face recognition, and re-identification (re-identification). The above-mentioned area object may be an area formed by a fence. Therefore, it is possible to determine whether a person enters / touches the above-mentioned area object through human shape detection, face recognition, and re-ID.
[0150] It can be understood that in the above application scenario, the behavior category can be set according to the area or object in the second image.
[0151] In some optional implementations of this embodiment, the behavior categories in the behavior category set include a second behavior category, a third behavior category, and a fourth behavior category.
[0152] Among them, the second behavior category indicates that the subject appears from nothing to something in the image. The third behavior category indicates that the activity range of the subject within the first preset time length (for example, 3 minutes) is greater than the first preset range. For example, if it appears in images captured by 3 or more cameras, it can be determined that the activity range is greater than the first preset range. The fourth behavior category indicates that the activity range of the subject within the second preset time length (for example, 1 minute) is less than or equal to the second preset range. For example, if it appears in images captured by 1 camera, it can be determined that the activity range is less than or equal to the second preset range. Among them, the second preset time length is less than the first preset time length, and the second preset range is less than the first preset range.
[0153] Here, the second behavior category may represent intrusion, visit, etc., the third behavior category may represent multi-location wandering, and the fourth behavior category may represent single-location wandering.
[0154] It can be understood that in the above optional implementation, by defining the second behavior category, the third behavior category and the fourth behavior category, the behavior categories such as intrusion, multi-location wandering, and single-location wandering in the collected first image can be identified, so that the accuracy of generating response information can be further improved through subsequent steps.
[0155] Step 104: Generate response information corresponding to the first image based on the target object category and the target behavior category.
[0156] In this embodiment, the response information may include, but is not limited to: calling professional manual services (such as professional alarm services, automatic calls, telemedicine services, automatic calls to pediatric or geriatric family doctors), the device automatically sounds an alarm, sends an emergency notification message to the mobile phone, sends a normal notification message to the mobile phone, sends a smart speaker notification, and the device plays a custom sound file.
[0157] As an example, the correspondence between the object category, the behavior category and the response information may be preset, so that the response information is generated based on the target object category and the target behavior category, and the generated response information is determined as the response information corresponding to the first image.
[0158] In some optional implementations of this embodiment, the first image is collected by a target camera. On this basis, after executing the above step 101, the following steps may also be performed:
[0159] First, the activity time of the photographed object in the first image is determined to obtain the current activity time, and the activity area of the photographed object in the first image is determined to obtain the current activity area.
[0160] Afterwards, image data collected by the target camera and associated cameras at the historical activity time corresponding to the current activity time is obtained.
[0161] Wherein, the associated camera and the target camera are used to collect images within a preset area.
[0162] As an example, the historical activity time corresponding to the current activity time can be the same time period as the current activity time in the historical time period. For example, if the current activity time is 1-2 o'clock on March 4, 2022, then the historical activity time corresponding to the current activity time can be 1-2 o'clock on March 4, 2021, or 1-2 o'clock on February 4, 2022, or 1-2 o'clock on March 3, 2022.
[0163] Furthermore, the following method may be used to generate response information corresponding to the first image based on the target object category and the target behavior category:
[0164] Based on the target object category, the target behavior category, the image data and the current activity area, response information corresponding to the first image is generated.
[0165] Specifically, the target object category, the target behavior category, the current activity area, and the image data may be compared to generate response information corresponding to the first image.
[0166] As an example, if the image data indicates that at the corresponding historical activity time, the number of times the photographed subject of the target object category performs the activity of the target behavior category in the current activity area is greater than or equal to the preset threshold, then response information indicating that there is no danger can be generated. If the image data indicates that at the corresponding historical activity time, the number of times the photographed subject of the target object category performs the activity of the target behavior category in the current activity area is less than the above preset threshold, then response information indicating that there is danger can be generated.
[0167] It can be understood that in the above optional implementation method, response information corresponding to the first image can be generated based on the target object category, the target behavior category, the image data collected at the historical activity time corresponding to the current activity time, and the current activity area, thereby further improving the accuracy of generating response information.
[0168] In some optional implementations of this embodiment, the response information is used to indicate the execution of a response operation. On this basis, the following method can be adopted: after executing the above step 104, the priority of the response information can also be determined, and the response operation can be executed according to the priority.
[0169] The priority of the response information may indicate the degree of danger of the photographed object of the target object category having the behavior of the target behavior category. The higher the degree of danger, the higher the priority.
[0170] Response operations may include, but are not limited to: calling professional manual services (such as professional alarm services, automatic calls, telemedicine services, automatic calls to pediatric or geriatric family doctors), the device automatically sounding an alarm, sending an emergency notification message to the mobile phone, sending a normal notification message to the mobile phone, sending a smart speaker notification, and the device playing a custom sound file.
[0171] It can be understood that in the above optional implementation, the corresponding response operation can be executed according to the priority of the response information, thereby improving the timeliness of the execution of the corresponding operation represented by the response information with a higher priority.
[0172] In some optional implementations of this embodiment, after acquiring the first image, the following steps may also be performed:
[0173] First, based on the first image, the photographing information of the photographing object is determined.
[0174] The first image may be: one or more images captured by the associated camera and the target camera and including the photographed object within a preset area.
[0175] The associated camera and the target camera are used to capture images within a preset area.
[0176] The shooting information includes information such as the appearance time, appearance position, and appearance frequency of the shooting object. The appearance time may be the shooting time of an image, or the time when the shooting object appears within a preset area. The appearance position may be the position of the shooting object in the first image within the preset area when the first image is shot.
[0177] Afterwards, based on the shooting information, the target appearance time and danger level of the shooting object are predicted.
[0178] The target appearance time is the time when the photographed object will appear in the preset area in the future.
[0179] The degree of danger can be represented by words, numbers, characters, etc. For example, the degree of danger can be represented by high, medium, and low, or by 1, 2, and 3, or by A, B, and C.
[0180] Specifically, the target appearance time of the photographed object can be predicted by counting the appearance time included in the shooting information; and the danger level of the photographed object can be predicted by counting the appearance position and appearance frequency included in the shooting information.
[0181] It can be understood that in the above optional implementation, by predicting the target appearance time and danger level of the photographed object, the dangerous photographed object and its appearance time can be determined more immediately, thereby improving the safety of the preset area.
[0182] The method for generating response information provided by the embodiment of the present application can obtain a first image, then determine the object category of the photographed object in the first image, obtain the target object category, then determine the behavior category of the photographed object in the first image from a preset behavior category set based on the distance between the predetermined object and the photographed object, obtain the target behavior category, and finally generate the response information corresponding to the first image based on the target object category and the target behavior category. Thus, the behavior category of the photographed object in the first image can be determined based on the distance between the predetermined object and the photographed object, and then the response information corresponding to the first image can be generated based on the object category and the behavior category of the photographed object in the first image. In this way, different response information can be generated for different predetermined objects set by different users, so that the generated response information is more in line with the needs of the user, thereby improving the personalization of the generated response information and improving the accuracy of the generated response information for different users. Moreover, the response information is generated based on the distance between the predetermined object and the photographed object, which can improve the accuracy of the generated response information. In addition, the response information corresponding to the first image can be automatically generated, thereby improving the timeliness of the generated response information.
[0183] Figure 2 A flowchart of another method for generating response information provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0184] Step 201, acquiring a first image. Then, executing step 202.
[0185] In this embodiment, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0186] Step 202, determining whether the preset object set includes the photographed object in the first image. If yes, then executing step 203; if no, then executing step 204.
[0187] In this embodiment, the preset object set may include one or more preset objects.
[0188] As an example, the preset object set can be obtained by identifying an image uploaded by a user. For example, a user can upload an image, and the object obtained by identifying the image can be used as an object in the preset object set. In addition, the preset object set can also be obtained by identifying an image captured by a camera (such as the target camera or the associated camera). For example, a set of objects whose appearance frequency in the images captured by the target camera or the associated camera is greater than or equal to a preset frequency threshold can be determined as the preset object set. Alternatively, a set of objects whose appearance times in a preset time period is greater than or equal to a preset number threshold can be determined as the preset object set.
[0189] Step 203: determine that the object category of the photographed object is a first category, and determine the first category as a target object category. Then, execute step 207.
[0190] In this embodiment, the first category may indicate that the photographed subject is an acquaintance (such as family members or friends), one's own car, one's own pet, a friend's car, a neighbor's pet, and the like.
[0191] Step 204, determining whether the photographed object has a preset mark. If so, then executing step 205; if not, then executing step 206.
[0192] In this embodiment, the preset logo may include but is not limited to: uniforms (such as delivery man uniforms, courier uniforms, etc.), police car logos, delivery car logos, etc.
[0193] Step 205 determines that the object category of the photographed object is the second category, and determines the second category as the target object category. Then, step 207 is executed.
[0194] In this embodiment, the second category may indicate that the photographed subject is a credible subject (eg, a delivery man, a courier, etc.).
[0195] Step 206: Determine that the object category of the photographed object is the third category, and determine the third category as the target object category. Then, execute step 207.
[0196] In this embodiment, the third category may indicate that the photographed object is a suspicious object, that is, a category other than the first category and the second category.
[0197] Step 207 : Based on the distance between the predetermined object and the photographed object, determine the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category.
[0198] In this embodiment, step 207 and Figure 1Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0199] Step 208: Generate response information corresponding to the first image based on the target object category and the target behavior category.
[0200] In this embodiment, step 208 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0201] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to the technical effect of the method for generating the response information shown. Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0202] The method for generating response information provided in the embodiment of the present application can divide the object category of the photographed object into three target object categories, thereby generating different response information based on different target object categories and target behavior categories, further improving the accuracy of response information generation.
[0203] Figure 3A A flow chart of another method for generating response information provided in an embodiment of the present application. This method can be applied to one or more electronic devices such as smart phones, laptops, desktop computers, portable computers, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or a plurality of electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.
[0204] Specifically, if Figure 3A As shown, the method specifically includes:
[0205] Step 301: Acquire a first image.
[0206] In this embodiment, step 301 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0207] Step 302: determine the object category of the photographed object in the first image to obtain the target object category.
[0208] In this embodiment, step 302 and Figure 1Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0209] Step 303: Based on the distance between the predetermined object and the photographed object, determine the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category.
[0210] In this embodiment, step 303 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0211] Step 304: Generate response information corresponding to the first image based on the target object category and the target behavior category, wherein the response information is used to indicate execution of a response operation.
[0212] In this embodiment, the response information can be used to indicate the execution of one or more of the following response operations: calling professional manual services (such as professional alarm services, automatic calls, telemedicine services, automatic calls to pediatric or geriatric family doctors), the device automatically sounds an alarm, sends an emergency notification message to the mobile phone, sends a normal notification message to the mobile phone, sends a smart speaker notification, and the device plays a custom sound file.
[0213] As an example, the correspondence between the object category, the behavior category and the response information may be preset, so that the response information is generated based on the target object category and the target behavior category, and the generated response information is determined as the response information corresponding to the first image.
[0214] Step 305: determine the execution device of the response operation, and send the response information to the execution device, so that the execution device executes the response operation.
[0215] In this embodiment, the execution device may be a device for executing the above-mentioned response operation.
[0216] As an example, if the response operation is an alarm, then the execution device may be a mobile phone. If the response operation is playing a custom sound file, then the execution device may be a device with an audio playback function.
[0217] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0218] In this method, the following techniques can be used to analyze the categories of the activity subjects (i.e., the shooting objects) (i.e., the above-mentioned target object categories, such as acquaintances, trusted strangers, and suspicious persons) and their activity time, activity area, and behavior types (i.e., the above-mentioned target behavior types) of single-camera (i.e., the above-mentioned target camera) or cross-camera (i.e., the above-mentioned target camera and associated cameras) activities, and help users judge the suspicious behavior of strangers, so as to perform automatic defense (i.e., one of the above-mentioned response operations). Alternatively, the behavior of acquaintances (e.g., relatives and friends) can be judged, so as to perform automatic care and protection (i.e., one of the above-mentioned response operations).
[0219] In addition, the method can qualitatively distinguish the priorities of events occurring in the camera (i.e., the priorities of the above-mentioned response information), and automatically help users care for their families (i.e., one of the above-mentioned response operations) and protect their property (i.e., one of the above-mentioned response operations), thereby improving the user experience and freeing up the user's energy.
[0220] Based on this solution, users can customize services in a variety of guarding / care scenarios, such as but not limited to the following scenarios:
[0221] When no one is at home, if a stranger (i.e., the subject of the third category mentioned above) wanders around the periphery (i.e., the third behavior category or the fourth behavior category mentioned above) is automatically expelled and the police are called (i.e., the above-mentioned response operation).
[0222] When an elderly person at home (i.e., the subject of the first category mentioned above) falls, medical services can be automatically called (i.e., the above-mentioned response operation).
[0223] When a child (i.e. the shooting subject of the first category mentioned above) is active at home and tries to climb over the activity area (i.e. the area object mentioned above) to run out, a voice message is played to him (i.e. the response operation mentioned above).
[0224] When the courier (i.e. the subject of the second category mentioned above) comes to deliver the package at the usual time, a voice message can be automatically played to him (i.e. the above-mentioned response operation) to tell him to pay attention to where the package is placed.
[0225] In some scenarios, this solution can be implemented by combining automation with manual intervention. In the rule generation and configuration stage, the execution process can be as follows:
[0226] First, the security system automatically learns and generates files (a type of image data) and activity schedules (another type of image data) of family members (i.e., the first category mentioned above) and trusted strangers (i.e., the second category mentioned above), as well as key home defense areas (i.e., the area objects mentioned above). The user can correct the files, activity schedules, and key home defense areas mentioned above.
[0227] Each family automatically generates profiles of acquaintances, cars, and pets, which can be corrected or modified by the user.
[0228] In the profile of a person, you can record photos of the family members’ faces and body features. Users can upload their own facial or full-body images, or add acquaintances by capturing people who appear frequently through the camera.
[0229] The vehicle file can record the license plate number and model color characteristic photos of the user's own vehicle. The above photos can be uploaded by the user himself, or the user can add the information of his own vehicle by taking pictures of frequently appearing vehicles with the camera.
[0230] In the pet file, you can record the type and appearance of your pet. You can upload photos of your pet climbing a tree, or add your pet's information by taking photos of frequently appearing animals captured by the camera.
[0231] In addition, each household automatically generates a schedule of activities of acquaintances, cars, pets, and trusted strangers or cars.
[0232] Here, based on face recognition, human shape recognition, license plate recognition, vehicle recognition, and animal recognition, the activity trajectory or time of the same object in multiple cameras (that is, the target cameras mentioned above and related cameras) can be analyzed to generate activity files of acquaintances, cars, and pets for the past month, automatically record and correct the activity time and location of acquaintances, cars, and pets every day within a month, generate an activity timetable for each acquaintance, car, and pet, and then know the vacant status or occupied status of the home.
[0233] Here, the following timetables can be obtained respectively:
[0234] The first category is the schedule of acquaintances / cars / pets. This table can be used to record the following:
[0235] The time each acquaintance leaves and returns home every day, the time they usually spend at home, the time periods when there are people at home and when there are no people at home; the time your car leaves and returns home every day; the area and time your pets usually spend at home.
[0236] The second category is the timetable of trusted strangers / cars. This table can be used to record the following:
[0237] The time periods when trusted strangers regularly come and go, and the time periods when trusted stranger cars regularly come and go.
[0238] Here, in addition to the activity schedule of family members / own cars, the activity schedule of trusted strangers / cars can also be generated through uniform recognition (such as courier uniforms, postman uniforms, etc.) and specific vehicle recognition (courier trucks, garbage trucks, etc.).
[0239] This method can perform customized behavior detection. Specifically, if the user specifies behaviors that require special attention, a warning list of suspicious behaviors of the object can be generated.
[0240] Exemplary, optional suspicious behaviors provided to strangers include:
[0241] Intrusion (also known as the second behavior category mentioned above): If the subject appears from nowhere in the image captured by the camera, it can be called an intrusion.
[0242] Multi-location wandering (i.e. the third behavior category mentioned above): Identification is performed by combining face recognition and human shape recognition algorithms. If the same object appears in 3 or more camera images continuously within 3 minutes (i.e. the first preset time length mentioned above) (i.e. the above activity range is larger than the first preset range), it can be called multi-location wandering. For example, please refer to Figure 3B , Figure 3B A schematic diagram of a behavior of a third behavior category (multi-location loitering in this example) provided in an embodiment of the present application.
[0243] Wandering at a single location (i.e. the fourth behavior category mentioned above): Identification is performed by combining face recognition and human figure recognition algorithms. If the same object appears in a camera screen and moves continuously within 1 minute (i.e. the second preset time length mentioned above) (i.e. the above activity range is smaller than the second preset range), but does not leave the screen, it is marked as wandering at a certain location, which can be called wandering at a single location. For example, please refer to Figure 3C , Figure 3C A schematic diagram of a behavior of a fourth behavior category (wandering at a single location in this example) provided for an embodiment of the present application.
[0244] Approaching sensitive items (i.e., the above-mentioned objects, such as cars / indoor safes / outdoor mailboxes, etc.): The user circles an object (such as a mailbox), and human shape detection, face recognition, and human shape recognition are used to determine whether a person has touched a sensitive object. For an example, please refer to Figure 3D , Figure 3D A schematic diagram of performing a first behavior category on an object (a sensitive object in this example) provided in an embodiment of the present application.
[0245] Approaching a sensitive area (i.e., the area object mentioned above): The user circles an area (such as a fence), and uses human shape detection, face recognition, and human shape recognition to determine whether a person has entered / touched the sensitive area. For an example, please refer to Figure 3E , Figure 3E A schematic diagram of performing a first behavior category on a regional object (a sensitive area in this example) provided in an embodiment of the present application.
[0246] The optional suspicious behaviors provided for unfamiliar cars (the judgment logic is similar to that of humans) are:
[0247] Intrusion (also known as the second behavior category mentioned above): If the subject appears from nowhere in the image captured by the camera, it can be called an intrusion.
[0248] Multi-location wandering (i.e. the third behavior category mentioned above): Identification is performed in combination with vehicle recognition and other algorithms. If the same object appears in three or more camera images continuously within three minutes (i.e. the first preset time length mentioned above) (i.e. the above activity range is larger than the first preset range), it can be called multi-location wandering.
[0249] Wandering at a single location (i.e. the fourth behavior category mentioned above): Identification is performed by combining face recognition and human figure recognition algorithms. If the same object appears in a camera screen and moves continuously within 1 minute (i.e. the second preset time length mentioned above) (i.e. the above activity range is smaller than the second preset range), but does not leave the screen, it is marked as wandering at a certain location, which can be called wandering at a single location.
[0250] Collision with important property (i.e. the above-mentioned object): The user circles an object (such as a mailbox) and uses algorithms such as human detection, face recognition, and human shape recognition to determine whether a person touches a sensitive object.
[0251] The optional suspicious behaviors provided for animals (the judgment logic is similar to that of humans) are:
[0252] Intrusion (also known as the second behavior category mentioned above): If the subject appears from nowhere in the image captured by the camera, it can be called an intrusion.
[0253] Multi-location wandering (i.e. the third behavior category mentioned above): Identification is performed in combination with animal recognition and other algorithms. If the same object appears in three or more camera images continuously within three minutes (i.e. the first preset time length mentioned above) (i.e. the above activity range is larger than the first preset range), it can be called multi-location wandering.
[0254] Entering and stepping on the flowerbed (i.e. the area object mentioned above): The user circles an area (such as a fence) and uses algorithms such as human detection, face recognition, and human shape recognition to determine whether a person touches sensitive items.
[0255] On this basis, the following strategies can be adopted to generate response information and perform response operations.
[0256] The optional caring behaviors (i.e. the above-mentioned response operations) provided to familiar objects are:
[0257] Visit: If the subject appears out of nowhere in the image captured by the camera, it can be called an intrusion. For example, see Figure 3F , Figure 3F A schematic diagram of an embodiment of the present application providing a first category of photographed subjects performing a target behavior category (in this example, a visit).
[0258] Return home: Using multi-camera trajectory analysis, walking from outdoor to indoor is considered as returning home (if there is a door lock, this judgment can also be completed by combining the door lock unlocking record). If the phone switches back to the home wireless network, the credibility of this return home judgment is enhanced. For an example, please refer to Figure 3G , Figure 3G A schematic diagram of an embodiment of the present application providing a second category of photographed subjects performing a target behavior category (returning home in this example) of the behavior.
[0259] Leaving home: Using multi-camera trajectory analysis, if a person walks from indoors to the video doorbell / outdoor camera screen and then leaves the camera screen and disappears, and does not return for 2 minutes, it is considered as leaving home. If the phone is switched to data traffic, the credibility of this leaving home judgment is enhanced. For an example, please refer to Figure 3H , Figure 3H A schematic diagram of an embodiment of the present application providing a third category of photographed subjects performing a target behavior category (leaving home in this example) of the subject.
[0260] The optional caring behaviors provided for familiar cars (the judgment logic is the same as above) are:
[0261] Visit: If the subject appears out of nowhere in the images collected by the camera, it can be called an intrusion.
[0262] Returning home: Vehicle recognition, license plate recognition and other algorithms are used to analyze the process of entering indoors from outdoors, which is considered returning home. If the user's mobile phone switches back to the home wireless network, the credibility of this return home judgment is enhanced.
[0263] Leaving home: Vehicle recognition, license plate recognition and other algorithms are used for analysis. If the person drives from indoors to outdoor camera screen and then leaves the camera screen and disappears, and does not return within 2 minutes, it is considered as leaving home. If the phone is switched to data traffic, the credibility of this judgment of leaving home is enhanced.
[0264] In addition, this method can also use graphical customization to warn of any object approaching behavior:
[0265] Through the graphical user interface, users can long press any object to be protected (that is, the predetermined object mentioned above) to combine emergency events that require special attention when these objects (that is, the predetermined objects mentioned above) are approached by other objects (that is, the photographed objects mentioned above) or have other activities. Here, the recognition of objects can be automatically achieved through human, vehicle and pet detection, package detection, and sample training based on simple daily necessities (such as packages, flower beds, fences, mailboxes, etc.). When a video is produced, it is identified in real time whether there is an object specified by the user in the picture. Then, the coordinate intersection rules between the identified objects (used to determine whether there is contact) and the coordinate relationship duration (used to determine the contact duration) are used to make judgments, and then the early warning rules are automatically generated.
[0266] As an example, the setting object may be a mailbox, a cabinet, an area including a mailbox, an area including a cabinet, etc.
[0267] Here, visual editing is used to lower the threshold for users to set warning events, while enhancing the user's ability to customize and expand personalized warning scenarios.
[0268] In terms of executing response operations, the following response operations can be performed on unfamiliar objects: In case of emergency, you can choose to call professional manual services (such as professional alarm services, automatic calls), the device automatically sounds an alarm, sends an emergency notification message to the mobile phone, and sends a notification to a smart speaker; in non-emergency, you can choose to send a normal notification message to the mobile phone and send a notification to a smart speaker. The following response operations can be performed on familiar objects: In case of emergency, you can choose to call professional manual services (such as professional telemedicine services, automatically call remote pediatric / geriatric family doctors), send an emergency notification message to the mobile phone; in non-emergency, you can choose to play a custom sound file on the device, send a normal notification message to the mobile phone, and send a notification to a smart speaker.
[0269] As a result, when real-time activities occur, the objects and behaviors can be automatically determined and responded to.
[0270] Specifically, the following strategy may be adopted for the analysis of human activities and the execution of response operations: real-time judgment of the trust attributes of the person currently appearing (eg, acquaintance, trustworthy stranger, suspicious stranger).
[0271] Please refer to Fig. 3I , Fig. 3I A flowchart of a method for generating response information when the photographed subject is a person is provided in an embodiment of the present application.
[0272] For acquaintances: Use face recognition and human figure recognition for the first round of recognition, determine that the person who appears is an acquaintance (such as a partner, child, or elderly parent), and tell the system that the person who appears now is an acquaintance.
[0273] For trusted strangers: When it is determined that the subject is not an acquaintance, use uniform detection to detect people wearing specific work uniforms (courier uniform detection, etc.) and tell the system that the person appearing now is a trusted stranger.
[0274] For suspicious strangers: It is completely impossible to identify and detect people wearing special uniforms, and the system is told that the person who appears now is a suspicious stranger.
[0275] Recall the information of the previously stored schedule to judge the danger of the current person's appearance in real time.
[0276] Use the above behavior judgment method to judge in real time what the current activity is and whether it is a dangerous behavior that the user is concerned about. According to the behavior of the corresponding activity configured by the user, judge how to respond to the behavior of this object. Enable the response activity specified by the user (that is, the above response operation).
[0277] For example, when no one is home and a stranger is wandering around, the system will automatically expel the stranger and call the police. When an elderly person falls down, medical services can be automatically called. When a child tries to climb over the activity area and run out, a voice message can be played to him. When the courier comes to deliver the package at the usual time, a voice message can be automatically played to him to tell him to pay attention to where the package is.
[0278] Analysis and automatic response to vehicle activities: Real-time determination of the trustworthy attributes of the currently appearing vehicle.
[0279] As an example, see Figure 3J , Figure 3J A flowchart of a method for generating response information when the photographed object is a car is provided in an embodiment of the present application.
[0280] For your own car: use license plate recognition and vehicle recognition algorithms to perform the first round of recognition, determine that the car that appears is your own car, and tell the system that the car that appears now is your own car.
[0281] For trusted cars: When you are sure that the subject is not your own car, use a specific vehicle to detect moving vehicles (express trucks, garbage trucks, school buses, etc.) and tell the system that the vehicle that appears now is a trusted vehicle.
[0282] For suspicious vehicles: vehicles that are completely unrecognizable and not from a specific organization, and tell the system that a suspicious vehicle is now appearing.
[0283] Recall the information of the previously stored timetable to judge the danger of the current vehicle in real time.
[0284] Use the above behavior judgment method to judge in real time what the current activity is and whether it is a dangerous behavior that the user is concerned about. According to the behavior of the corresponding activity configured by the user, judge how to respond to the behavior of this object. Enable the response activity specified by the user.
[0285] For example, if a stranger car intrudes into the key camera area when no one is home, it will be automatically driven away and the police will be called. When your own car drives back, the garage door will automatically open. When your own car drives out, the garage door will automatically close.
[0286] Analysis and automatic response to animal activities: Real-time determination of the trustworthy attributes of currently appearing animals.
[0287] As an example, see Figure 3K , Figure 3K A flowchart of a method for generating response information when the photographed object is an animal is provided in an embodiment of the present application.
[0288] For your own pets: Use animal type detection and animal recognition to determine if your animals are your own and mark them as your own.
[0289] Other animals: Through animal type detection, determine non-domestic animals and their types, wild animals (bears, horses, deer) and other poultry animals (birds, swans), etc., and mark them as other animals.
[0290] Recall the information of the previously stored schedule to determine the danger of the current animal appearance in real time.
[0291] Use the above behavior judgment method to judge in real time what the current activity is and whether it is a dangerous behavior that the user is concerned about. According to the behavior of the corresponding activity configured by the user, judge how to respond to the behavior of this object. Enable the response activity specified by the user.
[0292] For example, when your pet enters your garden to mess up, the system will automatically sound a warning to leave the area. When wild animals enter your yard to eat your precious plants, the system will automatically sound a warning to leave the area.
[0293] With this method, users only need to participate a little bit to get personalized automatic warning guard and automatic care services, which improves the degree of automation. In addition, users can graphically customize noteworthy abnormal behaviors to gain more abnormal event perception capabilities. In addition, by identifying people / cars / pets, combining the timing of occurrence and the behavior, the urgency of the event is graded, and automatic monitoring / care and other response services are provided.
[0294] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the method for generating response information shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0295] The method for generating response information provided in the embodiment of the present application realizes linkage operation between devices and improves the timeliness of executing the response operation by sending the response information to the execution device of the response operation so that the execution device executes the response operation.
[0296] Figure 4 A schematic diagram of a structure of a response information generation device provided in an embodiment of the present application. Specifically comprising:
[0297] A first acquisition unit 401, used to acquire a first image;
[0298] A first determining unit 402 is used to determine the object category of the photographed object in the first image to obtain a target object category;
[0299] A second determining unit 403 is used to determine the behavior category of the photographed object in the first image from a preset behavior category set based on the distance between the predetermined object and the photographed object, so as to obtain a target behavior category;
[0300] The generating unit 404 is configured to generate response information corresponding to the first image based on the target object category and the target behavior category.
[0301] In a possible implementation manner, the preset behavior category set includes a first behavior category; and
[0302] The predetermined object is determined in the following manner:
[0303] Acquire a second image, wherein the second image is acquired before the first image;
[0304] determining a selected object from the second image;
[0305] determining the selected object as a predetermined object; and
[0306] The first behavior category is determined in the following manner:
[0307] Determining behavior category information set for the predetermined object;
[0308] The behavior category indicated by the behavior category information is determined as a first behavior category.
[0309] In a possible implementation manner, determining the selected object from the second image includes one of the following:
[0310] Determine a selected area object from the second image;
[0311] From the second image, determine the selected object.
[0312] In a possible implementation manner, the behavior categories in the behavior category set include a second behavior category, a third behavior category, and a fourth behavior category, wherein:
[0313] The second behavior category indicates that the subject appears from nothing to something in the image;
[0314] The third behavior category indicates that the activity range of the photographed subject within the first preset time period is greater than the first preset range;
[0315] The fourth behavior category indicates that the activity range of the photographed subject within the second preset time period is less than or equal to the second preset range;
[0316] Among them, the second preset duration is smaller than the first preset duration, and the second preset range is smaller than the first preset range.
[0317] In a possible implementation manner, determining the object category of the photographed object in the first image includes:
[0318] Determining whether the preset object set includes the photographed object in the first image;
[0319] In a case where the photographed object is included in the preset object set, determining that the object category of the photographed object is a first category;
[0320] In a case where the photographed object is not included in the preset object set, determining whether the photographed object has a preset identifier;
[0321] If the preset object set does not include the photographed object and the photographed object has the preset identifier, determining that the object category of the photographed object is the second category;
[0322] When the preset object set does not include the photographed object and the photographed object does not have the preset identifier, it is determined that the object category of the photographed object is the third category.
[0323] In a possible implementation manner, the response information is used to indicate execution of a response operation; and
[0324] After generating response information corresponding to the first image based on the target object category and the target behavior category, the device further includes one of the following:
[0325] A third determining unit (not shown in the figure), used to determine the priority of the response information and perform the response operation according to the priority;
[0326] The fourth determining unit (not shown in the figure) is used to determine the execution device of the response operation, and send the response information to the execution device so that the execution device executes the response operation.
[0327] In a possible implementation manner, the first image is collected via a target camera; and
[0328] After acquiring the first image, the device further includes:
[0329] A fifth determining unit (not shown in the figure), configured to determine the activity time and activity area of the photographed object in the first image, and obtain the current activity time and current activity area;
[0330] A second acquisition unit (not shown in the figure) is used to acquire the image data collected by the target camera and the associated camera at the historical activity time corresponding to the current activity time, wherein the associated camera and the target camera are used to collect images within a preset area;
[0331] The generating response information corresponding to the first image based on the target object category and the target behavior category includes:
[0332] Based on the target object category, the target behavior category, the image data and the current activity area, response information corresponding to the first image is generated.
[0333] In a possible implementation, after acquiring the first image, the device further includes:
[0334] a sixth determining unit (not shown in the figure), configured to determine photographing information of the photographing object based on the first image;
[0335] A prediction unit (not shown in the figure) is used to predict the target appearance time and danger level of the photographed object based on the photographing information, wherein the target appearance time is the time when the photographed object appears within a preset area.
[0336] The device for generating the response information provided in this embodiment may be as follows: Figure 4 The response information generation device shown in can execute all the steps of the above-mentioned response information generation methods, thereby achieving the technical effects of the above-mentioned response information generation methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0337] Figure 5A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5 The electronic device 500 shown 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 via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0338] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0339] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a 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 dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0340] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0341] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0342] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0343] acquiring a first image;
[0344] Determine the object category of the photographed object in the first image to obtain a target object category;
[0345] Based on the distance between the predetermined object and the photographed object, determining the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category;
[0346] Based on the target object category and the target behavior category, response information corresponding to the first image is generated.
[0347] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The 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 hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0348] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above-mentioned functions of the present application, or a combination thereof.
[0349] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0350] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all steps of the above-mentioned methods for generating each response information, thereby achieving the technical effects of the above-mentioned methods for generating each response information. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0351] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0352] When one or more programs in the storage medium can be executed by one or more processors, the response information generation method executed on the electronic device side can be implemented.
[0353] The processor is used to execute the response information generation program stored in the memory to implement the following steps of the response information generation method executed on the electronic device side:
[0354] acquiring a first image;
[0355] Determine the object category of the photographed object in the first image to obtain a target object category;
[0356] Based on the distance between the predetermined object and the photographed object, determining the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category;
[0357] Based on the target object category and the target behavior category, response information corresponding to the first image is generated.
[0358] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. 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.
[0359] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0360] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. In addition, for the aforementioned embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
Claims
1. A method for generating response information, It is characterized in that The method comprises: Acquire a first image; Determine the object category of the photographed object in the first image to obtain a target object category; Based on the distance between the predetermined object and the photographed object, determining the behavior category of the photographed object in the first image from a preset behavior category set to obtain a target behavior category; Based on the target object category and the target behavior category, response information corresponding to the first image is generated.
2. The method according to claim 1, It is characterized in that The preset behavior category set includes a first behavior category; and the predetermined object is determined in the following manner: Acquire a second image, wherein the second image is acquired before the first image; determining a selected object from the second image; The selected object is determined as a predetermined object; and the first behavior category is determined in the following manner: Determining behavior category information set for the predetermined object; The behavior category indicated by the behavior category information is determined as a first behavior category.
3. The method according to claim 2, It is characterized in that Determining the selected object from the second image includes one of the following: Determine a selected area object from the second image; From the second image, determine the selected object.
4. The method according to claim 1, It is characterized in that The behavior categories in the behavior category set include a second behavior category, a third behavior category and a fourth behavior category, wherein: The second behavior category indicates that the subject appears from nothing to something in the image; The third behavior category indicates that the activity range of the photographed subject within the first preset time period is greater than the first preset range; The fourth behavior category indicates that the activity range of the photographed subject within the second preset time period is less than or equal to the second preset range; Among them, the second preset duration is smaller than the first preset duration, and the second preset range is smaller than the first preset range.
5. The method according to claim 1, It is characterized in that The determining the object category of the photographed object in the first image includes: Determining whether the preset object set includes the photographed object in the first image; In a case where the photographed object is included in the preset object set, determining that the object category of the photographed object is a first category; In a case where the photographed object is not included in the preset object set, determining whether the photographed object has a preset identifier; If the preset object set does not include the photographed object and the photographed object has the preset identifier, determining that the object category of the photographed object is the second category; When the preset object set does not include the photographed object and the photographed object does not have the preset identifier, it is determined that the object category of the photographed object is the third category.
6. The method according to any one of claims 1 to 5, It is characterized in that The response information is used to indicate the execution of a response operation; and after generating the response information corresponding to the first image based on the target object category and the target behavior category, the method further includes one of the following: Determining the priority of the response information, and performing the response operation according to the priority; An execution device of the response operation is determined, and the response information is sent to the execution device so that the execution device executes the response operation.
7. The method according to any one of claims 1 to 5, It is characterized in that The first image is acquired via a target camera; and after acquiring the first image, the method further includes: Determine the activity time and activity area of the photographed object in the first image, and obtain the current activity time and current activity area; Acquire image data collected by the target camera and the associated camera at the historical activity time corresponding to the current activity time, wherein the associated camera and the target camera are used to collect images within a preset area; The generating response information corresponding to the first image based on the target object category and the target behavior category includes: Based on the target object category, the target behavior category, the image data and the current activity area, response information corresponding to the first image is generated.
8. The method according to any one of claims 1 to 5, It is characterized in that After acquiring the first image, the method further includes: Determining photographing information of the photographing object based on the first image; Based on the shooting information, the target appearance time and the danger level of the shooting object are predicted, wherein the target appearance time is the time when the shooting object appears within a preset area.
9. A device for generating response information, It is characterized in that The device comprises: A first acquisition unit, used for acquiring a first image; A first determining unit, configured to determine an object category of a photographed object in the first image to obtain a target object category; A second determining unit is used to determine the behavior category of the photographed object in the first image from a preset behavior category set based on the distance between the predetermined object and the photographed object, so as to obtain a target behavior category; A generating unit is used to generate response information corresponding to the first image based on the target object category and the target behavior category.
10. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 8.
Citation Information
Patent Citations
Alarm method and device
CN105279898A
Method and device for shooting images
CN110210406A
Home monitoring method and system for improving warning accuracy
CN113438457A
Intelligent controller using camera and method thereof
KR101167605B1
Smart CCTV system for crime prevention capable of setting multi situation and recognizing automatic situation by defining several basic behaviors based on organic relation between object, area and object's events
KR101877294B1
