Method, device and equipment for managing object set and readable medium

By performing multi-frame difference comparison and change filtering on the images in the target image sequence, the problem of difficulty in identifying cargo contour changes in traditional technology is solved, and the accuracy of cargo monitoring and user prompts are improved.

CN118628895APending Publication Date: 2024-09-10JINGDONG CITY BEIJING DIGITS TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410757307.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In cargo monitoring scenarios, traditional image recognition technology is difficult to accurately identify changes in cargo outlines, especially when there are many cargoes or irregular placement. This may result in lost cargoes not being recognized in time, and the monitoring effect of cargoes that have not participated in training is poor. .

Method used

A change filtering algorithm is used to perform multi-frame difference comparison on the images in the target image sequence to filter out changes caused by other factors. By comparing the image differences before and after processing, prompt information is provided to indicate changes in the object collection.

Benefits of technology

It improves the accuracy of image recognition and prompt information, helps users manage object collections more conveniently and quickly, and reduces the risk of goods being lost without identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628895A
    Figure CN118628895A
Patent Text Reader

Abstract

The embodiment of the invention relates to a method, device and equipment for managing an object set and a readable medium. The method comprises the steps that a target image sequence for an object set is obtained, the object set comprises at least one object, the target image sequence comprises a first group of images and a second group of images, and the first group of images are located in front of the second group of images in the target image sequence; if it is determined that the difference between the first group of images and the second group of images reaches a threshold difference, processing the first group of images and the second group of images by adopting a variable filtering algorithm; if it is determined that the difference between the processed first group of images and the processed second group of images reaches the threshold difference, prompt information is provided for a user, and the prompt information is used for prompting that the object set changes. Therefore, the accuracy of image recognition can be improved, the accuracy of providing the prompt information is further improved, and a user can be helped to conveniently and quickly manage the object set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computer technology, and more particularly, to a method, apparatus, device, and computer-readable storage medium for managing a collection of objects. Background Art

[0002] With the development of Internet technology, more and more applications or platforms provide image processing functions, which brings many conveniences to users. Image recognition tasks are important tasks in image processing tasks. Applications or platforms with image recognition functions can perform image recognition on images and provide corresponding prompt information to users based on the recognition results of image recognition. For example, in the cargo guarding scenario, applications or platforms with image recognition functions can perform image recognition on images of cargo and determine whether the cargo is lost based on the recognition results. If the cargo is lost, prompt information indicating that the cargo is lost is provided to the user. Summary of the invention

[0003] In a first aspect of the present disclosure, a method for managing an object set is provided. The method comprises: obtaining a target image sequence for the object set, the object set comprises at least one object, the target image sequence comprises a first group of images and a second group of images, the first group of images being located before the second group of images in the target image sequence; if it is determined that the difference between the first group of images and the second group of images reaches a threshold difference, processing the first group of images and the second group of images using a change filtering algorithm; and if it is determined that the difference between the processed first group of images and the processed second group of images reaches a threshold difference, providing prompt information to a user, the prompt information being used to prompt that the object set has changed.

[0004] In a second aspect of the present disclosure, a device for managing an object set is provided. The device includes: an image acquisition module configured to obtain a target image sequence for the object set, the object set includes at least one object, the target image sequence includes a first group of images and a second group of images, and the first group of images is located before the second group of images in the target image sequence; an image processing module configured to process the first group of images and the second group of images using a change filtering algorithm if it is determined that the difference between the first group of images and the second group of images reaches a threshold difference; and an information providing module configured to provide prompt information to a user if it is determined that the difference between the processed first group of images and the processed second group of images reaches a threshold difference, the prompt information is used to prompt that the object set has changed.

[0005] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect of the present disclosure.

[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0007] In a fifth aspect of the present disclosure, a computer program product is provided, which includes computer executable instructions, and when the computer executable instructions are executed by a processor, the method of the first aspect is implemented.

[0008] It should be understood that the contents described in the summary of the invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In the following, in conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages and aspects of various implementations of the present disclosure will become more apparent. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

[0011] Figure 2 A flowchart illustrating a process for managing a collection of objects according to some embodiments of the present disclosure is shown;

[0012] Figure 3 A schematic diagram showing an example of variation filtering according to some embodiments of the present disclosure;

[0013] Figure 4 A schematic diagram showing an example of providing prompt information according to some embodiments of the present disclosure;

[0014] Figure 5 A schematic diagram showing a process for managing a collection of objects according to certain embodiments of the present disclosure;

[0015] Figure 6 A schematic structural block diagram of an apparatus for managing an object set according to some embodiments of the present disclosure is shown; and

[0016] Figure 7A block diagram of a computing device is shown in which one or more embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0019] It should be noted that the acquisition, storage and application of user personal information involved in the technical solution of the present disclosure are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0020] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0021] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that execute operations of the technical solution of the present disclosure based on the prompt message.

[0022] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0023] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation to the embodiments of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the embodiments of the present disclosure.

[0024] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.

[0025] A "neural network" is a machine learning network based on deep learning. A neural network is capable of processing inputs and providing corresponding outputs, and typically includes an input layer and an output layer and one or more hidden layers between the input layer and the output layer. Neural networks used in deep learning applications typically include many hidden layers, thereby increasing the depth of the network. The layers of a neural network are connected in sequence so that the output of the previous layer is provided as input to the next layer, where the input layer receives the input of the neural network and the output of the output layer serves as the final output of the neural network. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each of which processes input from the previous layer.

[0026] Generally, machine learning can be roughly divided into three stages, namely the training stage, the testing stage, and the application stage (also called the inference stage). In the training stage, a given model can be trained using a large amount of training data, and the parameter values ​​are continuously updated iteratively until the model can obtain consistent inferences that meet the expected goals from the training data. Through training, the model can be considered to be able to learn the association from input to output (also called the mapping of input to output) from the training data. The parameter values ​​of the trained model are determined. In the testing stage, the test input is applied to the trained model to test whether the model can provide the correct output, thereby determining the performance of the model. In the application stage, the model can be used to process the actual input based on the parameter values ​​obtained from the training to determine the corresponding output.

[0027] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, environment 100 may include electronic device 110 .

[0028] The electronic device 110 may obtain a target image 102 for a set of objects. The set of objects may include one or more objects. The object may be, for example, any suitable object, such as a commodity (physical commodity), goods, packages, boxes, etc. The electronic device 110 may perform image recognition on the target image 102 to obtain a recognition result 112 for the target image 102. The recognition result 112 may indicate whether the set of objects has changed. For example, if the set of objects includes a plurality of goods, the recognition result 112 may indicate whether the goods in the set of objects have decreased.

[0029] The electronic device 110 may perform image recognition on the target image 102 in any appropriate manner. For example, the electronic device 110 may perform image recognition on the target image 102 based on any appropriate rule or algorithm. The electronic device 110 may, for example, utilize a trained machine learning model (e.g., a target model 120) to perform image recognition tasks. The target model 120 may, for example, include but is not limited to any appropriate model such as a Transformer model, a convolutional neural network (CNN), a recurrent neural network (RNN), a deep neural network (DNN), etc. The target model 120 may be a model local to the electronic device 110, or a model installed in another electronic device 110 (e.g., installed in a remote device).

[0030] The electronic device 110 may include any computing system with computing capabilities, such as various computing devices / systems, terminal devices, server devices, etc. The terminal device may be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a game device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof.

[0031] The server-side device can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. Server-side devices can include computing systems / servers such as mainframes, edge computing nodes, computing devices in cloud environments, and so on.

[0032] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.

[0033] In scenarios where objects need to be monitored, such as in cargo guarding scenarios, applications or platforms with image recognition capabilities can perform image recognition on images of cargo (i.e., the monitored object) and determine whether the cargo is lost based on the recognition results. If the cargo is lost, a prompt indicating that the cargo is lost is provided to the user. Traditionally, applications or platforms with image recognition capabilities can often identify the outer contours of cargo in images based on deep learning solutions. The contours of cargo in images after the cargo is lost and images before the cargo is lost are often different. Traditional solutions can identify the contours of cargo in images and warn users if the contours change.

[0034] However, when there are a lot of goods or the goods are placed irregularly, there may be cases where the goods are lost but the outline of the goods in the image has not changed, or the outline of the goods cannot be recognized normally. In addition, the traditional supervised training method is often used, and the performance of guarding goods that are not involved in the training is poor.

[0035] In view of this, an embodiment of the present disclosure provides a method for managing an object set. The method includes: obtaining a target image sequence for an object set, the object set includes at least one object, the target image sequence includes a first group of images and a second group of images, and the first group of images is located before the second group of images in the target image sequence. If it is determined that the difference between the first group of images and the second group of images reaches a threshold difference, the first group of images and the second group of images are processed using a change filtering algorithm. If it is determined that the difference between the processed first group of images and the processed second group of images reaches a threshold difference, a prompt message is provided to a user, and the prompt message is used to prompt that the object set has changed.

[0036] In this way, the embodiments of the present disclosure can determine whether the object set has changed by performing a multi-frame difference comparison on the target image sequence for the object set. If a change is determined, the changes caused by other factors can be filtered out and a secondary comparison can be performed. In this way, the accuracy of image recognition can be improved, and the accuracy of providing prompt information can be improved, which helps to help users manage object sets conveniently and quickly.

[0037] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0038] Figure 2 1 shows a flowchart of a process 200 for managing an object collection according to some embodiments of the present disclosure. The process 200 may be implemented at the electronic device 110. For ease of discussion, reference will be made to Figure 1 The process 200 is described with reference to the environment 100 of FIG.

[0039] In box 210, the electronic device 110 obtains a target image sequence for an object set, the object set includes at least one object, the target image sequence includes a first group of images and a second group of images, and the first group of images is located before the second group of images in the target image sequence.

[0040] In some embodiments, the electronic device 110 may capture images for the object set via a camera. Alternatively or additionally, in some embodiments, the images may also be captured by other devices (e.g., devices specifically used to capture images), and the electronic device 110 may obtain images sent in real time by other devices via communication with other devices. After acquiring the current image, the electronic device 110 may, for example, acquire the next image in response to reaching a first duration (which may be any appropriate duration such as 30 seconds, 1 minute, 2 minutes, etc.).

[0041] The electronic device 110 may determine a target image sequence for the object set based on the acquired images. The target image sequence may, for example, include a predetermined number of images. The electronic device 110 may determine a target image sequence based on the acquired images in response to the acquired images reaching a predetermined number (e.g., 10). It is understood that the difference between the capture moments of any two adjacent images in the target image sequence is the first duration. Thus, it is possible to ensure that the time interval for acquiring multiple images is fixed, which helps to improve the accuracy of image recognition based on the acquired images.

[0042] The number of the first group of images and the number of the second group of images in the target image sequence may be the same. For example, if the target image sequence includes 10 images, the first group of images may be the first 5 images, and the second group of images may be the last 5 images. The number of the first group of images and the number of the second group of images in the target image sequence may also be different. For example, if the target image sequence includes 11 images, the first group of images may be the first 5 images, and the second group of images may be the last 6 images. In some embodiments, in order to make the number of the first group of images the same as the number of the second group of images, the target image sequence may include an even number of images.

[0043] At block 220 , if it is determined that the difference between the first set of images and the second set of images reaches a threshold difference, the electronic device 110 processes the first set of images and the second set of images using a variation filtering algorithm.

[0044] Regarding the specific method of determining the difference between the first group of images and the second group of images, in some embodiments, the electronic device 110 may compare each first image in the first group of images with each second image in the second group of images to obtain multiple comparison results. Such a comparison method may also be referred to as a multi-frame difference comparison. In some embodiments, to improve the accuracy of the comparison results, the electronic device 110 may perform an image preprocessing operation on multiple images in the target image sequence. The image preprocessing operation may include any appropriate operation, which is not limited in the present disclosure.

[0045] For example, the electronic device 110 may perform a noise filtering operation on multiple images in the target image sequence to remove noise in the image. Regarding the specific manner of comparison, the electronic device 110 may, for example, divide each of the multiple images into multiple image regions, each image region including multiple pixels. The electronic device 110 may, for example, determine the average value of the pixel values ​​of the multiple pixels in each image region as the pixel value of the image region. The electronic device 110 may, for example, determine the comparison result between the first image and the second image by comparing the pixel values ​​of the first image and the second image at the same image region. In some embodiments, for the convenience of calculation, the electronic device 110 may also perform a grayscale operation on multiple images in the target image sequence to convert the pixel values ​​in each image to the range of 0-255. For example, the electronic device 110 may determine that the first image and the second image are different at the image region in response to the difference in the pixel values ​​of the first image and the second image at the same image region reaching a predetermined value (for example, any appropriate value such as 15, 20, 25, etc.), that is, the first image and the second image are different.

[0046] The electronic device 110 may determine the number of at least one comparison result indicating that the corresponding first image and the corresponding second image are different from each other among the multiple comparison results, and the number is used to indicate the difference between the first group of images and the second group of images. The threshold difference may, for example, indicate the target number. That is, if the number of at least one comparison result reaches the target number indicated by the threshold difference, the electronic device 110 may determine that the difference between the first group of images and the second group of images reaches the threshold difference. It is understood that the target number here may be any appropriate number, and the electronic device 110 may determine any appropriate target number based on the actual application scenario, and the present disclosure does not limit this.

[0047] Exemplarily, if the first group of images and the second group of images each include 5 images, the electronic device 110 may compare 5 images in the first group of images with 5 images in the second group of images, respectively, to obtain 25 comparison results. Each comparison result indicates whether the compared first image and the second image are the same. The electronic device 110 may count the number of at least one comparison result indicating that the first image and the second image are different from each other in the 25 comparison results. Taking the target number indicated by the threshold difference as 25 as an example, if the number of at least one comparison result reaches 25 (that is, all comparison results indicate that the corresponding first image and the second image are different), the electronic device 110 may determine that the difference between the first group of images and the second group of images reaches the threshold difference. If the number of at least one comparison result does not reach 25 (that is, for example, the number of at least one comparison result is 20), the electronic device 110 may determine that the difference between the first group of images and the second group of images does not reach the threshold difference.

[0048] Thus, the difference between the first group of images and the second group of images can be determined conveniently and quickly by determining the number of comparison results indicating that the corresponding first image and the corresponding second image are different among the multiple comparison results of each first image in the first group of images and each second image in the second group of images, which helps to improve the accuracy and efficiency of determining the difference.

[0049] In some embodiments, if the difference between the first group of images and the second group of images does not reach the threshold difference, the electronic device 110 may obtain a new target image for the object set. The electronic device 110 may add the target image to the end of the target image sequence and delete the first image in the target image sequence to obtain an updated target image sequence. The updated target image sequence includes the updated first group of images and the updated second group of images. It is understood that the number of images included in the updated target image sequence is the same as the number of images included in the target image sequence before the update.

[0050] Exemplarily, if the target sequence includes 10 images, wherein the first group of images is the first 5 images, and the second group of images is the last 5 images, and the difference between the first group of images and the second group of images does not reach the threshold difference, the electronic device 110 can obtain a new target image, which is the 11th image, and the electronic device 110 can delete the first image in the target sequence and add the target image to the end of the target sequence to update the target image sequence. The first 9 images of the updated target image sequence are the last 9 images in the target image sequence before the update, and the last image of the updated target image sequence is the target image. The updated first group of images can be, for example, the first 5 images of the updated target image sequence, and the updated second group of images can be, for example, the last 5 images of the updated target image sequence. The electronic device 110 can, for example, continue to determine the difference between the updated first group of images and the updated second group of images. That is, the electronic device 110 can compare each first image in the updated first group of images with each second image in the updated second group of images to determine multiple comparison results.

[0051] In some embodiments, if the difference between the first set of images and the second set of images reaches a threshold difference, the electronic device 110 may process the first set of images and the second set of images using a change filtering algorithm. The situation where the two images are different may be referred to as image change. The change filtering algorithm may be used, for example, to filter image changes caused by light differences, image changes caused by position changes, and / or image changes caused by the addition of other objects.

[0052] In some embodiments, in order to filter the image changes caused by light differences, the electronic device 110 can calculate the brightness of the first group of images and the second group of images respectively based on the change filtering algorithm. The electronic device 110 can, for example, determine the brightness of any image by calculating the average value of all pixel values ​​of the image. The electronic device 110 can determine the brightness corresponding to the first group of images by calculating the average value of the image brightness of each image in the first group of images. For example, if the first group of images includes 5 images, and the image brightness corresponding to these 5 images is 80, then the brightness corresponding to the first group of images is (80+80+80+80+80) / 5=80. The electronic device 110 can also determine the brightness of the second group of images in a similar manner. If the difference between the brightness of the second group of images and the brightness of the first group of images is greater than a threshold value, the electronic device 110 can determine that the difference between the first image and the second image is caused by a light difference (e.g., suddenly turning on / off the light).

[0053] In some embodiments, in order to filter image changes caused by position changes, the electronic device 110 can calculate the positions of the change areas of the first image and the second image whose corresponding comparison results indicate that the two are different (the positions of the pixels of the change areas in the images) based on the change filtering algorithm. The position change here can be caused by a sudden shake of the camera, for example. For the same image area in the first image and the second image, if it is determined that the image area in the first image is different from the image area in the second image, the electronic device 110 can determine the image area as the change area of ​​each of the first image and the second image. The electronic device 110 can determine the relative relationship between the position of the change area and the outline of the set of objects in the image. If the relative relationship has not changed, the electronic device 110 can determine that the difference between the first image and the second image is caused by the position change.

[0054] In some embodiments, there are cases where other objects are suddenly added to the image (for example, pedestrians suddenly appear near the goods in the cargo guarding scene). To filter the image changes caused by the addition of other objects, the electronic device 110 can directly filter out other objects whose corresponding areas in the image are much smaller than the objects in the object set based on the change filtering algorithm to filter the image changes caused by the addition of other objects. For example, in the cargo guarding scene, the goods have a minimum area in the image, and the electronic device 110 can filter out all objects smaller than this area.

[0055] In some embodiments, the change filtering algorithm may further instruct the electronic device 110 to calculate the structural similarity (SSIM) of the change region. The smaller the value corresponding to the SSIM, the less similar it is. The change filtering algorithm may, for example, indicate a threshold SSIM value, and may instruct the electronic device 110 to filter out the change region whose corresponding SSIM value is less than the threshold SSIM value.

[0056] In some embodiments, the electronic device 110 may use an erosion-then-expansion strategy for each image based on a change filtering algorithm to filter out small changes (such as the above filtering of image changes caused by the addition of other objects that are much smaller than the objects in the object set, changes caused by slight changes in position, etc.). For example, refer to Figure 3 , Figure 3 FIG. 3 is a schematic diagram showing an example 300 of variation filtering according to some embodiments of the present disclosure. Figure 3As shown, example 300 includes image 301, image 302, and image 303. The white area in image 301 may be, for example, a change area. The electronic device 110 may perform an erosion operation on image 301 to obtain image 302. The electronic device 110 may further perform an expansion operation on image 302 to obtain image 303. Thus, the electronic device 110 may filter out small changes in the image (for example, the number of smaller white areas in image 303 is much smaller than the number of smaller white areas in image 301).

[0057] In block 230 , if it is determined that the difference between the processed first set of images and the processed second set of images reaches a threshold difference, the electronic device 110 provides prompt information to the user, where the prompt information is used to prompt that the object set has changed.

[0058] The electronic device 110 may compare the processed first set of images with the processed second set of images again. For example, the electronic device 110 may again compare each first image in the processed first set of images with each second image in the processed second set of images to obtain a plurality of comparison results, and determine the number of at least one comparison result indicating that the corresponding first image and the corresponding second image are different in the plurality of comparison results. If it is determined that the difference between the processed first set of images and the processed second set of images reaches a threshold difference, the electronic device 110 may determine that the image change is caused by a change in the object set (for example, in a cargo guarding scenario, an image change caused by the loss of cargo in the cargo set), and the electronic device 110 provides prompt information for prompting that the object set has changed.

[0059] In some embodiments, the electronic device 110 may also determine the difference type corresponding to the difference between the processed first group of images and the processed second group of images, and based on the difference type, provide the user with prompt information matching the difference type. The electronic device 110 may determine the difference type based on any appropriate method. For example, the electronic device 110 may determine the type of change in the outline of the object set as difference type A, determine the type of change in the outline of the object set but the change in the object set as difference type B, and so on. The difference type corresponding to the difference between the processed first group of images and the processed second group of images here is the same as the difference type corresponding to the difference between the processed first group of images and the processed second group of images before processing, and the change filtering algorithm does not change the difference type. The difference type corresponding to the difference between the processed first group of images and the processed second group of images may also be referred to as the difference type corresponding to the first image in the second group of images. For example, if the target image sequence includes 10 images, the first group of images and the second group of images each include 5 images, the difference type corresponding to the difference between the processed first group of images and the processed second group of images may also be referred to as the difference type corresponding to the sixth image (i.e., the first image in the second group of images) in the target image sequence. That is, the electronic device 110 may also determine the difference type corresponding to the difference between the processed first group of images and the processed second group of images based on the difference type corresponding to the first image in the second group of images.

[0060] Different difference types may correspond to different prompt information and different providing methods, for example, the providing method may include any appropriate method, for example, playing sound through a speaker, vibrating with a vibration motor, displaying prompt text / video / image through a display screen, changing the brightness of a prompt light (such as an LED light) or flashing a prompt light, etc.

[0061] Exemplarily, the electronic device 110 may pre-acquire a difference type-prompt information comparison table, and the difference type-prompt information comparison table may be, for example, as shown in Table 1:

[0062] Table 1

[0063] Difference Type Tips Prompt information provision method Abnormal A Prompt information A Method A Abnormal B Prompt message B Method B …… …… …… Abnormal N Prompt information C Method N

[0064] For example, the electronic device 110 can determine the prompt information and the prompt information providing method corresponding to the difference type based on such a difference type-prompt information comparison table and the difference type corresponding to the difference between the determined processed first group of images and the processed second group of images. For example, if the difference type corresponding to the difference is abnormal A, the electronic device 110 can determine that prompt information A needs to be provided via method A. Thus, prompt information can be provided in different ways for differences of different difference types. It can be convenient for users to determine the type of difference that occurs based on the prompt information, which helps to improve the efficiency of users in determining differences and improve the user experience.

[0065] For example, the electronic device 110 can also obtain a new target image for the object set while providing the prompt information, or before / after providing the prompt information. For example, the electronic device 110 can add the target image to the end of the target image sequence and delete the first image in the target image sequence to obtain an updated target image sequence. For example, the electronic device 110 can determine the difference between the updated first group of images and the updated second group of images. That is, the electronic device 110 can continuously update the target image sequence and continuously determine the difference between the updated first group of images and the updated second group of images in the updated target image sequence. In this way, the target image sequence can be automatically updated quickly and conveniently, and the image comparison can be repeatedly performed on the updated target image sequence to continuously manage the object set. The difficulty and cost of managing the object set can be reduced.

[0066] In some embodiments, if it is determined that the difference between the updated first group of images and the updated second group of images reaches a threshold difference, the electronic device 110 may continue to process the updated first group of images and the updated second group of images using a change filtering algorithm. If it is determined that the difference between the processed updated first group of images and the processed updated second group of images reaches a threshold difference, the electronic device 110 may determine the difference type corresponding to the difference between the processed updated first group of images and the processed updated second group of images. If the difference between the processed first group of images and the processed second group of images before the update corresponds to the first difference type, and the difference type corresponding to the difference between the processed updated first group of images and the processed updated second group of images is the second difference type (the second difference type is different from the first difference type), the electronic device 110 may provide prompt information to the user again. If the difference between the processed first group of images and the processed second group of images before the update corresponds to the first difference type, and the difference type corresponding to the difference between the processed updated first group of images and the processed updated second group of images is also the first difference type, the electronic device 110 may not provide prompt information to the user. Therefore, prompt information is provided to the user only when two adjacent differences correspond to different difference types, which can avoid continuously sending prompt information to the user, and help improve the user experience of receiving prompt information.

[0067] Figure 4 FIG. 4 is a schematic diagram showing an example 400 of providing prompt information according to some embodiments of the present disclosure. Figure 4 As shown, example 400 may include multiple image sequences (e.g., image sequence 402 to target image sequence 422), each of which may include 10 images (also referred to as an image sequence having a length of 10). Image sequence 402 to image sequence 412 may be multiple image sequences having a time order. For example, image sequence 404 is the updated image sequence 402, image sequence 406 is the updated image sequence 404, and so on. In image sequence 402 to image sequence 412, for any two adjacent image sequences (e.g., image sequence 402 and image sequence 404), the last 9 images in the image sequence before updating (e.g., image sequence 402) are the first 9 images in the updated image sequence (e.g., image sequence 404).

[0068] For each of the five image sequences from image sequence 402 to image sequence 410, the electronic device 110 compares the first five images (i.e., the first group of images) of the image sequence with the last five images (i.e., the second group of images), and determines the number of comparison results indicating that the first image (the image in the first group of images) and the second image (the image in the second group of images) are different among the 25 comparison results, which number can indicate a difference. If the target number indicated by the threshold difference is 25, the electronic device 110 can respond to the fact that the differences corresponding to the five groups of image sequences (i.e., the number of comparison results indicating that the first image and the second image are different) do not reach the target number, determine that no difference is recognized, and no prompt information is required. For image sequence 412, the electronic device 110 can respond to the fact that the differences corresponding to the image sequence reach the target number, determine that a difference is recognized, and need to provide corresponding prompt information to the user.

[0069] If the difference between the second group of images and the first group of images in the image sequence 412 corresponds to the difference type of abnormality A (that is, the difference type corresponding to the sixth image in the image sequence 412 is abnormality A), the image sequence 414 may be the updated image sequence 412, and the image sequence 416 may be the updated image sequence 414. With respect to the image sequence 414, since the difference type corresponding to each image in the second group of images is the difference type of abnormality A, among the 25 comparison results obtained by the electronic device 110 from comparing the first group of images with the second group of images, only 20 comparison results indicate that the first image and the second image are different, and 20 is less than 25. Therefore, the difference does not reach the threshold difference, and the electronic device 110 may determine that no difference is identified.

[0070] Similarly, for image sequence 416, only 15 of the corresponding 25 comparison results indicate that the first image and the second image are different, and 15 is less than 25. The electronic device 110 can also determine that no difference is identified. As a result, when the same type of difference appears continuously, the user can be prompted only once, which can avoid the bad experience caused by multiple prompts to the user. For example, if for image sequence 412, the electronic device 110 can determine that the goods are lost and the object set has changed (for example, one piece of goods is missing), the electronic device 110 can provide the user with prompt information indicating that the goods are lost. The electronic device 110 can then update the image sequence. For image sequence 414, the electronic device 110 can determine that no new changes have occurred and no longer repeatedly prompt the user. Alternatively or additionally, in some embodiments, the electronic device 110 can also repeatedly prompt the user, which is not limited by the present disclosure.

[0071] For image sequence 418, the electronic device 110 can determine that only 24 of the corresponding 25 comparison results indicate that the first image and the second image are different. 24 is less than 25, and the electronic device 110 can determine that no difference is identified. Therefore, the electronic device 110 can not provide prompt information to the user when the difference does not reach the threshold difference. Since the electronic device 110 can obtain a new image every 1 minute (that is, update the image sequence every 1 minute), the electronic device 110 can eliminate the differences caused by temporary occlusion (for example, a pedestrian suddenly appears and blocks the object set) by comparing the difference and the difference threshold, which helps to improve the accuracy of the provision of prompt information.

[0072] If the sixth image in the image sequence 412 corresponds to anomaly A (that is, the difference type corresponding to the sixth image is anomaly A), the seventh image corresponds to anomaly B, the eighth image corresponds to anomaly C, the ninth image corresponds to anomaly D, and the tenth image corresponds to anomaly E, the image sequence 420 may be the updated image sequence 412, and the image sequence 422 may be the updated image sequence 420. For the image sequence 420, the electronic device 110 may determine that the 25 corresponding comparison results all indicate that the first image and the second image are different, and then determine that the difference reaches the threshold difference, and the difference type corresponding to the difference is anomaly B. For the image sequence 422, the electronic device 110 may determine that the 25 corresponding comparison results all indicate that the first image and the second image are different, and then determine that the difference reaches the threshold difference, and the difference type corresponding to the difference is anomaly C. For example, for the image sequence 412, the electronic device 110 may provide prompt information matching the difference type of anomaly A, for the image sequence 420, the electronic device 110 may determine that anomaly B is identified and provide prompt information matching anomaly B, and for the image sequence 422, the electronic device 110 may determine that anomaly C is identified and provide prompt information matching anomaly C. That is, the electronic device 110 may provide new prompt information to the user in response to detecting a difference of a new difference type.

[0073] Figure 5 A schematic diagram of a process 500 for managing a collection of objects is shown, according to certain embodiments of the present disclosure.

[0074] In block 510 , the electronic device 110 may acquire an image for a set of objects.

[0075] At block 520 , the electronic device 110 may update the image sequence based on the acquired image.

[0076] In block 530, the electronic device 110 may determine in real time the length of the current target image sequence (i.e., the number of images included in the target image sequence), and determine whether the length reaches the target length. For example, if the target length of the target image sequence is 10 (i.e., it should include 10 images), the electronic device 110 may determine whether the number of images currently included in the target image sequence reaches 10.

[0077] If the length of the target image sequence does not reach the target length (for example, currently only includes 5 images), the electronic device 110 may continue to acquire new images until the length of the target image sequence reaches the target length.

[0078] In block 540, in response to the length of the target image sequence reaching the target length, the electronic device 110 performs a multi-frame difference comparison on the target image sequence, that is, the electronic device 110 can compare each first image in the first group of images in the target image sequence with each second image in the second group of images.

[0079] At block 550, the electronic device 110 may determine whether the difference between the first set of images and the second set of images reaches a threshold difference. For example, the electronic device 110 may determine that the object set may have changed in response to determining that the difference between the first set of images and the second set of images reaches the threshold difference, and perform the steps at block 560. For example, the electronic device 110 may determine that the object set has not changed in response to determining that the difference between the first set of images and the second set of images does not reach the threshold difference, and perform the steps at block 590.

[0080] In block 560 , the electronic device 110 may process the target image sequence using a change filtering algorithm to filter out image changes caused by light differences, image changes caused by position changes, and image changes caused by the addition of other objects.

[0081] At block 570, the electronic device 110 may determine whether the difference between the processed first set of images and the processed second set of images reaches a threshold difference. For example, the electronic device 110 may determine that the object set has indeed changed in response to determining that the difference between the processed first set of images and the processed second set of images has reached a threshold difference, and perform the steps at block 580. For example, the electronic device 110 may determine that the object set has not actually changed in response to determining that the difference between the processed first set of images and the processed second set of images has not reached a threshold difference, and perform the steps at block 590.

[0082] In block 580, the electronic device 110 may provide the user with prompt information for prompting that the object set has changed. For example, the electronic device 110 may determine the corresponding prompt information based on the difference type corresponding to the difference.

[0083] At block 590 , the electronic device 110 may delete the first image in the target image sequence. The electronic device 110 may perform the process 500 repeatedly.

[0084] In summary, the embodiments of the present disclosure can determine whether an object set has changed by performing a multi-frame difference comparison on a target image sequence for the object set. When it is determined that a change has occurred, changes caused by other factors can be filtered out, and a secondary comparison can be performed. In this way, the accuracy of image recognition can be improved, and the accuracy of providing prompt information can be improved, which helps users to manage object sets conveniently and quickly.

[0085] According to some embodiments of the present disclosure, a device for managing an object set is also provided. Figure 6 A schematic structural block diagram of an apparatus 600 for managing an object set according to some embodiments of the present disclosure is shown. The apparatus 600 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 600 may be implemented by hardware, software, firmware or any combination thereof.

[0086] like Figure 6 As shown, the device 600 includes an image acquisition module 610, which is configured to obtain a target image sequence for an object set, the object set includes at least one object, the target image sequence includes a first group of images and a second group of images, and the first group of images is located before the second group of images in the target image sequence. The device 600 also includes an image processing module 620, which is configured to use a change filtering algorithm to process the first group of images and the second group of images if it is determined that the difference between the first group of images and the second group of images reaches a threshold difference. The device 600 also includes an information providing module 630, which is configured to provide prompt information to the user if it is determined that the difference between the processed first group of images and the processed second group of images reaches a threshold difference, and the prompt information is used to prompt that the object set has changed.

[0087] In some embodiments, the difference between the capture times of any two adjacent images in the target image sequence is the first duration.

[0088] In some embodiments, the device 600 also includes a first difference determination module, which is configured to determine the difference between the first group of images and the second group of images based on the following operations: comparing each first image in the first group of images with each second image in the second group of images, respectively, to obtain multiple comparison results; and determining the number of at least one comparison result in the multiple comparison results indicating that the corresponding first image and the corresponding second image are different, and the number is used to indicate the difference between the first group of images and the second group of images.

[0089] In some embodiments, the device 600 also includes: a new image acquisition module, configured to acquire a new target image for the object set; a sequence update module, configured to add the target image to the end of the target image sequence and delete the first image in the target image sequence to obtain an updated target image sequence, the updated target image sequence including an updated first group of images and an updated second group of images; and a second difference determination module, configured to determine the difference between the updated first group of images and the updated second group of images.

[0090] In some embodiments, the difference between the processed first group of images and the processed second group of images corresponds to a first difference type, and the device 600 also includes: a second image processing module, configured to use a variation filtering algorithm to process the updated first group of images and the updated second group of images if it is determined that the difference between the updated first group of images and the updated second group of images reaches a threshold difference; a type determination module, configured to determine the difference type corresponding to the difference between the processed updated first group of images and the processed updated second group of images if it is determined that the difference between the processed updated first group of images and the processed updated second group of images reaches a threshold difference; and a first information providing module, configured to provide prompt information to the user if the difference type is a second difference type, and the second difference type is different from the first difference type.

[0091] In some embodiments, the change filtering algorithm is used to filter at least one of the following types of image changes: image changes caused by light differences, image changes caused by position changes, and image changes caused by the addition of other objects.

[0092] In some embodiments, the information providing module 630 includes: a difference type determination module, configured to determine the difference type corresponding to the difference between the processed first group of images and the processed second group of images; and a second information providing module, configured to provide prompt information matching the difference type to the user based on the difference type.

[0093] The units and / or modules included in the device 600 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units and / or modules in the device 600 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0094] Figure 7 1 shows a block diagram of an electronic device 700 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 7 The electronic device 700 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 7 The electronic device 700 shown can be used to implement Figure 1 The electronic device 110, and / or Figure 6 Device 600.

[0095] like Figure 7 As shown, the electronic device 700 is in the form of a general-purpose computing device. The components of the electronic device 700 may include, but are not limited to, one or more processors or processing units 710, a memory 720, a storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. The processing unit 710 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 720. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of the electronic device 700.

[0096] The electronic device 700 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 720 can be a volatile memory (e.g., register, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 730 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and / or data and can be accessed within the electronic device 700.

[0097] The electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 7 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 720 may include a computer program product 725 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.

[0098] The communication unit 740 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the electronic device 700 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 700 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0099] The input device 750 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 760 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 700 may also communicate with one or more external devices (not shown) through the communication unit 740 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 700, or communicate with any device that allows the electronic device 700 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0100] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0101] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0102] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0103] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0104] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0105] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A method for managing a collection of objects, comprising: Obtaining a target image sequence for an object set, the object set including at least one object, the target image sequence including a first group of images and a second group of images, the first group of images being located before the second group of images in the target image sequence; If it is determined that the difference between the first group of images and the second group of images reaches a threshold difference, processing the first group of images and the second group of images using a variation filtering algorithm; as well as If it is determined that the difference between the processed first set of images and the processed second set of images reaches the threshold difference, prompt information is provided to the user, where the prompt information is used to prompt that the object set has changed.

2. The method according to claim 1, wherein the difference between the capture moments of any two adjacent images in the target image sequence is a first duration.

3. The method of claim 1 , further comprising determining a difference between the first set of images and the second set of images based on: comparing each first image in the first group of images with each second image in the second group of images to obtain a plurality of comparison results; and A number of at least one comparison result among the plurality of comparison results indicating that the corresponding first image and the corresponding second image are different is determined, the number being used to indicate a difference between the first set of images and the second set of images.

4. The method according to claim 1, further comprising: Acquire a new target image for the set of objects; Adding the target image to the end of the target image sequence and deleting the first image in the target image sequence to obtain an updated target image sequence, wherein the updated target image sequence includes an updated first group of images and an updated second group of images; as well as A difference between the updated first set of images and the updated second set of images is determined.

5. The method of claim 4, wherein the difference between the processed first set of images and the processed second set of images corresponds to a first difference type, and the method further comprises: If it is determined that the difference between the updated first set of images and the updated second set of images reaches the threshold difference, processing the updated first set of images and the updated second set of images using a variation filtering algorithm; If it is determined that the difference between the processed updated first set of images and the processed updated second set of images reaches the threshold difference, determining a difference type corresponding to the difference between the processed updated first set of images and the processed updated second set of images; as well as If the difference type is a second difference type, the prompt information is provided to the user, and the second difference type is different from the first difference type.

6. The method according to claim 1, wherein the change filtering algorithm is used to filter at least one of the following types of image changes: Image changes caused by lighting differences, Image changes caused by position changes, Image changes caused by adding other objects.

7. The method according to claim 1, wherein providing prompt information to the user for prompting the user that the object set has changed comprises: determining a difference type corresponding to a difference between the processed first set of images and the processed second set of images; as well as Based on the difference type, the prompt information matching the difference type is provided to the user.

8. A device for managing a collection of objects, comprising: an image acquisition module, configured to obtain a target image sequence for an object set, the object set including at least one object, the target image sequence including a first group of images and a second group of images, the first group of images being located before the second group of images in the target image sequence; an image processing module configured to process the first group of images and the second group of images using a variation filtering algorithm if it is determined that the difference between the first group of images and the second group of images reaches a threshold difference; as well as The information providing module is configured to provide prompt information to the user if it is determined that the difference between the processed first group of images and the processed second group of images reaches the threshold difference, wherein the prompt information is used to prompt that the object set has changed.

9. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 7.

11. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Article loss and leaving detection method and system

    CN111369529A

  • Image identifying method and related monitoring camera and monitoring camera system

    CN112104838A

  • Method and apparatus to distinguish deposit and removal in surveillance video

    CN1474998A

  • Alignment-free video change detection using deep blind image region prediction

    US20200184224A1

  • Method for rejection of flickering lights in an imaging system

    US6104831A