Method for preventing item loss, electronic device and storage medium

By real-time identification and monitoring of the location of public goods, combined with image processing technology, the problems of low efficiency and high cost of item management in the existing technology are solved, and efficient and safe management of public goods are achieved.

CN119741657APending Publication Date: 2025-04-01上海金桥信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411809722.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

The prior art relies on manual inspection and physical marking in the management of public goods, and has problems such as low efficiency, error-prone and high cost, making it difficult to effectively prevent the loss of items.

Method used

By acquiring the current image of the monitoring area, identifying the actual position of the target item, and switching the status of the target item according to the position conditions, an alarm operation is performed when the duration of the target item being in the lost state reaches the threshold.

Benefits of technology

Real-time monitoring and status management of public goods is realized, the efficiency and safety of item management is improved, manual intervention is reduced, and costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741657A_ABST
    Figure CN119741657A_ABST
Patent Text Reader

Abstract

The present application provides a method, electronic device and storage medium for preventing items from being lost. The method includes: acquiring a current image of a monitoring area; identifying the current image to determine the actual location of a target item; when the actual location of the target item meets any one of the location conditions in the first location requirement, switching the state of the target item to the first state, wherein the first location requirement includes the following location conditions: the target item is not in the monitoring area; when the duration of the target item being in the first state continuously reaches a first duration threshold, performing an alarm operation. This method can effectively prevent items from being lost and improve the management efficiency and safety of public items.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method for preventing item loss, an electronic device, and a storage medium. Background Art

[0002] With the acceleration of urbanization and the improvement of public facilities, the management and prevention of loss of public items such as library books, hospital equipment, park facilities, etc. have become increasingly prominent.

[0003] Currently, the management of public goods mostly relies on manual inspection and physical marking, which has problems such as low efficiency, prone to errors and high cost.

[0004] In view of this, this application is hereby filed. Summary of the invention

[0005] The present application is proposed in view of the above problems. According to one aspect of the present application, a method for preventing item loss is provided, comprising: Get the current image of the monitoring area; Recognize the current image to determine the actual location of the target object; When the actual position of the target object meets any one of the position conditions in the first position requirement, the state of the target object is switched to the first state, wherein the first position requirement includes the following position conditions: the target object is not in the monitoring area; When the time duration during which the target object is continuously in the first state reaches a first time duration threshold, an alarm operation is performed.

[0006] Exemplarily, the identifying the current image to determine the actual position of the target object includes: Identifying whether the current image includes the target object; When the target object is included in the current image, determining a position of the target object in the current image; Based on the position of the target object in the current image, the actual position of the target object is determined, where the actual position of the target object is the position of the target object in the monitoring area.

[0007] Exemplarily, the first position requirement further includes the following position condition: the actual position of the target object is within a warning area, wherein the warning area is within the monitoring area; after identifying the current image, the method further includes: Based on the actual position of the target object, determining whether the target object is within the warning area; and / or, The first position requirement further includes the following position condition: the position of the target object is not within a preset safety area, wherein the preset safety area is within the monitoring area; after identifying the current image, the method further includes: Based on the actual position of the target object, it is determined whether the target object is within the preset safety area.

[0008] Exemplarily, the identifying whether the current image includes the target object includes: identifying an object included in the current image; Extracting image features of each object in the current image; For each image feature of the object in the current image, the image feature is compared with a target image feature, wherein the target image feature is an image feature corresponding to the target object; When the image feature is the same as the target image feature, the object corresponding to the image feature is determined to be the target object.

[0009] Exemplarily, the identifying the current image to determine the location of the target object includes: When the target object is not included in the current image, it is determined that the target object is not in the monitoring area.

[0010] Exemplarily, the method further includes: When the state of the target object is not in the second state, if the position of the target object meets the second position requirement, switching the state of the target object to the second state; Wherein, the second position requirement includes at least the following requirement: the target object is within the monitoring area.

[0011] Exemplarily, the second location requirement further includes the following requirement: the target object is not in a warning area, and the warning area is in the monitoring area.

[0012] Exemplarily, the second location requirement also includes the following requirement: the target object is not within a preset safety area, and the preset safety area is within the monitoring area.

[0013] Exemplarily, after identifying the current image to determine the location of the target object, the method further includes: When the actual location of the target object is within the monitoring area, Determining whether the actual position of the target object is the same as the initial position of the target object; When the actual position of the target object is different from the initial position of the target object, images acquired after the current time are stored.

[0014] Exemplarily, when the time duration for which the target object is continuously in the first state reaches a first time duration threshold, the method further includes: A movement trajectory of the target object is generated based on at least a portion of the images stored before a current moment.

[0015] Exemplarily, the alarm operation includes at least one of the following operations: outputting audio prompt information, outputting text prompt information, and outputting light prompt information.

[0016] According to another aspect of the present application, an electronic device is provided, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement the above method.

[0017] According to another aspect of the present application, a computer-readable storage medium is provided, storing a computer program / instruction, and the computer program / instruction implements the above method when executed by a processor.

[0018] In the above technical solution, the state of the target object can be judged in real time by using the image collected at the current moment (i.e., the current image), so that the position of the target object can be monitored in real time by identifying the image, and the state of the target object can be switched in time according to the position of the target object, so that the user can understand the state of the target object in time. In addition, the solution can perform an alarm operation when the duration of the target object being in the first state continuously reaches the first duration threshold, so that the user can be reminded in time when the target object is lost. In short, the solution can simplify the management process of the target object and effectively avoid the loss of items. The whole process of the solution does not require manual intervention, has high management efficiency and safety, accurate results, and low cost. Applying the solution to the management of public goods can significantly improve the management efficiency and safety of public goods, and provide strong support for the intelligent management of urban public facilities.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0021] Figure 1 A schematic flow chart showing a method for preventing item loss according to an embodiment of the present application; Figure 2 A schematic block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the present application more obvious, the example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application described in the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present application.

[0023] According to the above description, the management method for public items such as library books, hospital equipment, park facilities, etc. is generally manual inspection and physical marking. However, this method requires staff to confirm all public items one by one, which is inefficient, has high labor costs, and is prone to introducing errors, resulting in errors in the results. In view of this, the present application provides a method, electronic device and storage medium for preventing the loss of items. The method can use the image of the monitored area to determine the actual location of the target item, so that an alarm can be issued in time when the target item is lost, thereby effectively preventing the loss of items. The method, electronic device and storage medium are described in detail below.

[0024] According to one aspect of an embodiment of the present application, a method for preventing an item from being lost is provided. The item may be any one or more public items in a public place. For example, it may be library books, hospital equipment, park facilities, etc. Of course, the item may also be other items, and the present application does not limit this.

[0025] Figure 1 A schematic flow chart of a method for preventing item loss according to an embodiment of the present application is shown. Figure 1 As shown, the method for preventing item loss may include the following steps S110, S120, S130 and S140.

[0026] In step S110, a current image of the monitoring area is acquired.

[0027] In this article, the monitoring area is the area where the items to be monitored are located. The size of the area can be set as needed. For example, when the public items are books, the monitoring area can be the entire library or a part of the library (such as the room where the book is located).

[0028] Optionally, the current image can be acquired by using any image acquisition device that is currently available or will be developed in the future. For example, it can be a camera, a webcam, etc. The number of image acquisition devices used to acquire the current image can be selected as needed. For example, the number of image acquisition devices can be selected according to the size of the monitoring area to ensure that the size of the image area acquired by each image acquisition device can cover the entire monitoring area.

[0029] It can be understood that the current image is an image captured at the current moment, and may also be a video frame captured at the current moment. When there are multiple image capture devices, the current image is an image captured by each of the multiple image capture devices at the current moment.

[0030] In step S120 , the current image is recognized to determine the actual position of the target object.

[0031] It can be understood that the actual position of the target object refers to the real position of the target object. After obtaining the current image, the current image can be identified to determine the actual position of the target object based on the current image. For example, the current image can be divided into multiple regions, and the features in each region can be identified. Then, the features in each region are compared with the features of the target object to determine whether each region includes the target object. When the target object is included in a certain region, the actual position of the target object is determined based on the position of the region where the target object is located in the image. Of course, it is also possible to directly determine whether the target object exists in the current image, and determine the actual position of the target object based on the result.

[0032] Optionally, when the current image includes images captured by multiple image capture devices, in step S120, the current image captured by each image capture device can be identified to determine the actual position of the target object, which is not described in detail.

[0033] Optionally, when the target object is not included in the current image, it is determined that the target object is not in the monitoring area.

[0034] Optionally, the number of the target objects may be one or more. When the number of the target objects is multiple, the actual position of each target object may be determined by executing step S120.

[0035] In step S130, when the actual position of the target object meets any one of the position conditions in the first position requirement, the state of the target object is switched to the first state, wherein the first position requirement includes the following position condition: the target object is not in the monitoring area.

[0036] After determining the actual location of the target object, it can be determined whether the actual location of the target object satisfies at least one location condition in the first location requirement. In the solution of this example, the first location requirement includes the following location condition: the target object is not in the monitoring area. In other words, in the solution of this example, if it is determined that the actual location of the target object is not in the monitoring area, the state of the target object can be switched to the first state.

[0037] It can be understood that when the actual location of the target object meets any one of the location conditions in the first location requirement, the target object may have been taken away by someone and is in an "unreturned" state. Therefore, in this article, the first state can also be referred to as an "unreturned" state.

[0038] In step S140, when the time duration that the target object is continuously in the first state reaches a first time duration threshold, an alarm operation is performed.

[0039] The first duration threshold can be set according to actual needs and will not be described in detail.

[0040] It is understandable that when the time duration of the target object in the first state continuously reaches the first time duration threshold, it means that the target object has been taken away for a long time. In this case, the target object may be lost, and an alarm operation can be performed to remind the management personnel.

[0041] In some embodiments, when the time duration that the target item is continuously in the first state reaches a first time duration threshold, the method may further include the following steps: switching the state of the target item from the first state to a lost state.

[0042] In the solution of this example, the alarm operation is performed only when the time duration of the target object in the first state continuously reaches the first time duration threshold. This is to take into account that the target object may be temporarily taken by mistake, and the person who takes the target object by mistake may return the target object in a short time. And single-frame image recognition may produce errors. By setting the first time duration threshold, the false alarm rate can be reduced, and unnecessary responses can be reduced. In short, this method helps to improve the accuracy of the alarm.

[0043] In the above technical solution, the state of the target object can be judged in real time by using the image collected at the current moment (i.e., the current image), so that the position of the target object can be monitored in real time by identifying the image, and the state of the target object can be switched in time according to the position of the target object, so that the user can understand the state of the target object in time. In addition, the solution can perform an alarm operation when the duration of the target object being in the first state continuously reaches the first duration threshold, so that the user can be reminded in time when the target object is lost. In short, the solution can simplify the management process of the target object and effectively avoid the loss of items. The whole process of the solution does not require manual intervention, has high management efficiency and safety, accurate results, and low cost. Applying the solution to the management of public goods can significantly improve the management efficiency and safety of public goods, and provide strong support for the intelligent management of urban public facilities.

[0044] Exemplarily, step S120, identifying the current image to determine the actual position of the target object, may specifically include the following steps S121, S122 and S123.

[0045] In step S121, it is identified whether the current image includes a target object.

[0046] In step S122, when the target object is included in the current image, the position of the target object in the current image is determined.

[0047] In step S123, based on the position of the target object in the current image, the actual position of the target object is determined, where the actual position of the target object is the position of the target object in the monitoring area.

[0048] In the solution of this example, it is firstly identified whether the current image includes the target object. When the current image includes the target object, the actual position of the target object can be further determined according to the position of the target object in the current image. For example, the position of the target object in the current image can be mapped to the world coordinate system based on the conversion matrix between the image coordinate system and the world coordinate system to determine the real position of the target object. Those skilled in the art can understand how to determine the actual position of the object in the world coordinate system according to the position of the object in the image, which will not be described in detail.

[0049] In the above technical solution, when the target object is included in the current image, the actual position of the target object can be further determined according to the position of the target object in the current image. Thus, the position of the target object can be tracked and monitored in real time using the image collected at the current moment, which helps to further prevent the target object from being lost or stolen.

[0050] Exemplarily, the first position requirement also includes the following position conditions: the actual position of the target object is within the warning area, wherein the warning area is within the monitoring area; after identifying the current image, the method also includes: based on the actual position of the target object, judging whether the target object is within the warning area; and / or, the first position requirement also includes the following position conditions: the position of the target object is not within a preset safety area, wherein the preset safety area is within the monitoring area; after identifying the current image, the method also includes: based on the actual position of the target object, judging whether the target object is within the preset safety area.

[0051] In some embodiments, the first position requirement further includes the following position condition: the actual position of the target object is within the warning area. In the solution of this embodiment, when the target object is within the monitoring area, it can be determined whether the target object is within the warning area according to the actual position of the target object. If the target object is within the warning area, the state of the target object is switched to the first state.

[0052] Optionally, the position of the warning area in the monitoring area can be set according to the actual needs of the user, which is not described in detail. In some embodiments, the administrator can set the warning area in the spatial information database storing the spatial information of the monitoring area. When the target object enters the warning area, the state of the target object is switched to the first state.

[0053] In some embodiments, the first position requirement also includes the following position condition: the location of the target object is not within the preset safety area. In the solution of this embodiment, when the target object is within the monitoring area, it can be determined whether the target object is within the preset safety area based on the actual location of the target object. If the target object is not within the preset safety area, the state of the target object is switched to the first state. The location of the preset safety area can be set as needed and will not be described in detail. In some embodiments, the target object is a book, and the monitoring area is the entire library (the library includes multiple libraries where books are placed). In this case, the preset safety area can be the library where the book is located.

[0054] The above technical solution can further determine whether the target object is in the warning area or the preset safety area when the target object is in the monitoring area, so that the state of the target object can be switched in time and the alarm operation can be performed according to the area where the target object is located. Since the target object is still in the monitoring area when the state of the target object is switched, the target object can be found in time after it is lost. In short, this solution helps to further prevent the loss or theft of the target object.

[0055] Exemplarily, step S121, identifying whether the current image includes a target object, may specifically include the following steps: identifying the objects included in the current image; extracting image features of each object in the current image; for the image features of each object in the current image, comparing the image features with the target image features, wherein the target image features are image features corresponding to the target object; when the image features are the same as the target image features, determining that the object corresponding to the image features is the target object.

[0056] Optionally, any existing or future developed target detection model or target detection algorithm for identifying objects in an image may be used to identify the objects included in the current image. For example, a deep learning network such as TensorFlow or PyTorch may be used to identify the objects included in the current image.

[0057] After identifying the objects included in the current image, the image features of each object can be further extracted. The image features can be obtained by identifying any one or several feature extraction models that are currently available or will be developed in the future. For example, a convolutional neural network can be used to identify the image features of each object in the current image.

[0058] In some embodiments, in order to improve the accuracy of the feature extraction model used to extract image features, the feature extraction model can be trained in advance. The feature extraction model can be trained in the following manner: inputting a sample image into the feature extraction model to obtain sample features; and optimizing the feature extraction model based on the difference between the sample features and the annotated features of the sample image.

[0059] Optionally, sample images used to train the feature extraction model may include images acquired under different lighting conditions and different object postures. At the same time, the sample images may be expanded through data enhancement techniques such as flipping, rotation, and scaling to increase the diversity of the sample images and prevent model overfitting.

[0060] Optionally, the image features of the object include but are not limited to texture features, structural features, contour features, etc. of the object, which are not limited in this application.

[0061] After obtaining the image feature of each object, the image feature can be compared with the target image feature. In some embodiments, comparing the image feature with the target image feature includes: calculating the similarity between the image feature and the target image feature (the similarity can be calculated by Euclidean distance, Manhattan distance, cosine similarity, etc.). When the similarity between the image feature and the target image feature is greater than a similarity threshold, it is determined that the image feature is the same as the target image feature. At this time, the object corresponding to the image feature is the target object. In this case, the current image includes the target object.

[0062] Optionally, the target image features can be obtained by pre-identification. In some embodiments, the target items to be managed can be registered in advance, and the image features of the target items can be entered into the feature database (the image of the target items can be taken in advance and the features can be extracted from the images). The image features of the target items include, but are not limited to, shape features, color features, texture features, identification features, etc., which will not be described in detail.

[0063] The above technical solution can more accurately determine whether the current image includes the target object by identifying the image features of each object in the image and comparing the image features of each object with the target image features, thereby providing a more accurate basis for subsequent steps.

[0064] Exemplarily, identifying the current image to determine the location of the target object includes: when the target object is not included in the current image, determining that the target object is not in the monitoring area. It can be understood that the image area captured by the image acquisition device used to capture the current image covers the monitoring area. Therefore, when the target object is not included in the current image, it can be directly determined that the target object is not in the monitoring area. The scheme steps of this example are simple, and it can quickly determine whether the target object is in the monitoring area, thereby providing a more accurate basis for subsequent steps.

[0065] Exemplarily, the method may further include the following step S150.

[0066] In step S150, when the state of the target object is not in the second state, if the position of the target object meets the second position requirement, the state of the target object is switched to the second state; wherein the second position requirement at least includes the following requirement: the target object is in the monitoring area.

[0067] In the solution of this example, when the state of the target item is not in the second state (for example, in the first state or lost state), it can be determined whether the position of the target item meets the second position requirement. If the position of the target item meets the second position requirement, the state of the target item is switched to the second state. In some embodiments, the second position requirement is: the target item is within the monitoring area. In this embodiment, if the target item is within the monitoring area, the state of the target item can be switched to the second state. In this article, the second state can also be referred to as the "returned" state.

[0068] Optionally, the second position requirement also includes the following requirement: the target object is not in the warning area, and the warning area is in the monitoring area. In this solution, the state of the target object can be switched to the second state when the target object is in the monitoring area and the target object is not in the warning area.

[0069] Optionally, the second position requirement further includes the following requirement: the target object is not in the preset safety area, and the preset safety area is in the monitoring area. In this solution, when the target object is in the preset safety area, the state of the target object can be switched to the second state.

[0070] Optionally, step S130, when the actual position of the target object meets any one of the position conditions in the first position requirement, switching the state of the target object to the first state is executed when the state of the target object is the second state.

[0071] Optionally, when the location of the target object meets the second location requirement, the method may further include: stopping the alarm operation. In this solution, the alarm may be automatically released when the actual location of the target object meets the second location requirement, which helps to reduce human intervention and further improve the management efficiency of public goods.

[0072] The above technical solution can update the status of the target item in time after the target item is returned, so that it is convenient for the management personnel to manage the target item, which helps to improve the management efficiency.

[0073] Exemplarily, after identifying the current image to determine the location of the target object, the method further includes the following steps S160 and S170.

[0074] In step S160, when the actual position of the target object is within the monitoring area, it is determined whether the actual position of the target object is the same as the initial position of the target object.

[0075] In step S170 , when the actual position of the target object is different from the initial position of the target object, images acquired after the current time are stored.

[0076] The initial position of the target object can be obtained by presetting, which will not be described in detail.

[0077] In the solution of this example, the image acquired after the current moment can be automatically stored after the target object is moved from the initial position. In the case where the current image is a video frame, this step can be expressed as storing the video after the current moment.

[0078] In some embodiments, the image may be saved after each acquisition. In other embodiments, only images acquired after the current moment (these images may include the image acquired at the current moment) may be stored, which helps to reduce memory usage.

[0079] In some embodiments, after step S170, the method may further include: when the time duration that the target object is continuously in the first state reaches a first time duration threshold, stopping storing the image. It is understandable that at this time, the target object may not be in the monitoring area, and it is not meaningful to continue storing the image. Therefore, the operation of storing the image may be stopped. This helps to reduce memory usage and helps to reduce the amount of data for subsequent analysis when the target object is lost.

[0080] The above technical solution stores images acquired after the current moment when the actual position of the target object is different from the initial position of the target object, so that the moving process of the target object can be viewed through the stored images after the target object is lost. This helps managers to retrieve the target object in time.

[0081] Exemplarily, when the time duration that the target object is continuously in the first state reaches a first time duration threshold, the method further includes: generating a movement trajectory of the target object based on at least a portion of the image stored before the current moment.

[0082] Optionally, at least part of the images include images acquired after the target object is moved from an initial position until a time period during which the target object is continuously in the first state reaches a first time period threshold.

[0083] In the solution of this example, the movement trajectory of the target object can be generated based on the stored image, which helps to assist managers in tracing the loss of public objects, thereby helping managers to retrieve public objects in a timely manner and improve the safety of public objects.

[0084] Exemplarily, the alarm operation includes at least one of the following operations: outputting audio prompt information, outputting text prompt information, and outputting light prompt information.

[0085] In one or some embodiments, the system for executing the above method may include an information output device. Exemplarily, the information output device may include one or more of a display device, a buzzer alarm, a speaker, a light-emitting device, a communication device, etc., which may be specifically set and expanded according to user needs. The communication device may include any wired communication device and / or a wireless communication device. Among them, the display device is used to output text prompt information, and the buzzer alarm and the speaker are used to output audio information. The light-emitting device is used to output light information. The communication device is used to transmit any form of prompt information to any associated device. The associated device may include but is not limited to a personal computer, a server, a mobile terminal (such as a user's smart phone), etc. For example, the information output device may be a buzzer alarm, which reminds the manager that the target item is lost by means of a buzzer alarm. For another example, the information output device may also be a display device, which reminds the manager that the target item is lost by displaying characters such as "the target item is lost". In one embodiment, a prompt may be provided in the form of a graphic through the screen of a user terminal interconnected with the system network for executing the above method. For example, a text prompt message may be sent to the user terminal to remind the manager in time.

[0086] The above technical solution issues an alarm by outputting prompt information, which can quickly notify the management personnel that the target item is lost, thereby facilitating the quick recovery of the item.

[0087] According to another aspect of the embodiments of the present application, an electronic device is also provided. Figure 2 FIG. 1 is a schematic block diagram of an electronic device according to an embodiment of the present application. Figure 2 As shown, the electronic device 200 includes: a processor 210 and a memory 220. The memory 220 stores a computer program, and the processor 210 is used to execute the computer program to implement the above method.

[0088] According to another aspect of the embodiment of the present application, a computer-readable storage medium is also provided. The storage medium stores a computer program / instruction, and the computer program / instruction implements the above method when executed by the processor. The storage medium may include, for example, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.

[0089] A person skilled in the art can easily understand the implementation structure, working principle and beneficial effects of the electronic device and the computer-readable storage medium by reading the above method, and will not be described in detail for the sake of brevity.

[0090] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.

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

[0092] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0093] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0094] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various application aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the application point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0095] Those skilled in the art will understand that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstract and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0096] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0097] The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules in the electronic device according to the embodiment of the present application. The present application may also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0098] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

[0099] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for preventing items from being lost, characterized in that: include: Get the current image of the monitored area; Recognize the current image to determine the actual location of the target object; When the actual position of the target object meets any one of the position conditions in the first position requirement, the state of the target object is switched to the first state, wherein the first position requirement includes the following position conditions: the target object is not in the monitoring area; When the time duration during which the target object is continuously in the first state reaches a first time duration threshold, an alarm operation is performed.

2. The method for preventing item loss according to claim 1, characterized in that: The identifying the current image to determine the actual position of the target object includes: Identifying whether the current image includes the target object; When the target object is included in the current image, determining a position of the target object in the current image; Based on the position of the target object in the current image, the actual position of the target object is determined, where the actual position of the target object is the position of the target object in the monitoring area.

3. The method for preventing item loss according to claim 2, characterized in that: The first position requirement further includes the following position condition: the actual position of the target object is within a warning area, wherein the warning area is within the monitoring area; after identifying the current image, the method further includes: Based on the actual position of the target object, determining whether the target object is within the warning area; and / or, The first position requirement further includes the following position condition: the position of the target object is not within a preset safety area, wherein the preset safety area is within the monitoring area; after identifying the current image, the method further includes: Based on the actual position of the target object, it is determined whether the target object is within the preset safety area.

4. The method for preventing item loss according to claim 2, characterized in that: The identifying whether the current image includes the target object comprises: identifying an object included in the current image; Extracting image features of each object in the current image; For each image feature of the object in the current image, the image feature is compared with a target image feature, wherein the target image feature is an image feature corresponding to the target object; When the image feature is the same as the target image feature, the object corresponding to the image feature is determined to be the target object.

5. The method for preventing item loss according to any one of claims 1 to 4, characterized in that: The identifying the current image to determine the location of the target object includes: When the target object is not included in the current image, it is determined that the target object is not in the monitoring area.

6. The method for preventing item loss according to any one of claims 1 to 4, characterized in that: The method further comprises: When the state of the target object is not in the second state, if the position of the target object meets the second position requirement, switching the state of the target object to the second state; Wherein, the second position requirement includes at least the following requirements: the target object is within the monitoring area; Preferably, the second position requirement further includes the following requirement: the target object is not in the warning area, and the warning area is in the monitoring area; Preferably, the second location requirement also includes the following requirement: the target object is not in a preset safety area, and the preset safety area is in the monitoring area.

7. The method for preventing item loss according to any one of claims 1 to 4, characterized in that: After identifying the current image to determine the location of the target object, the method further includes: When the actual location of the target object is within the monitoring area, Determining whether the actual position of the target object is the same as the initial position of the target object; When the actual position of the target object is different from the initial position of the target object, storing images acquired after the current moment; Preferably, when the time duration for which the target object is continuously in the first state reaches a first time duration threshold, the method further includes: A movement trajectory of the target object is generated based on at least a portion of the images stored before a current moment.

8. The method for preventing item loss according to any one of claims 1 to 4, characterized in that: The alarm operation includes at least one of the following operations: outputting audio prompt information, outputting text prompt information, and outputting light prompt information.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 8 is implemented.