A method, module, electronic device and readable medium for determining object misrelease
By combining detection devices and target detection models, the problem of inaccurate personnel counts in the detection space caused by manual statistics has been solved, achieving more accurate personnel count control.
Patent Information
- Application Number
- CN202111242536.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-10-25
AI Technical Summary
In existing technologies, relying on manual counting to detect the number of people in a space is prone to errors, leading to unreasonable control of the number of people.
The release position of the target object is obtained by the detection device, and the target detection model is used to determine whether the target object is at the scene boundary. Based on the comparison results of the release position and the position label, it is determined whether the object has been mistakenly released, and then the detection of the detection device is adjusted.
This improves the rationality of personnel number control in the detection space and avoids unreasonable control based on the wrong number of people.
Smart Images

Figure CN114005084B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of detection technology, and in particular to a method, module, electronic device, and readable medium for determining the accidental release of an object. Background Technology
[0002] With the development of society, personnel detection and quantity statistics are indispensable requirements in many application scenarios, such as indoor scenarios like train stations, hospitals, and libraries, or outdoor scenarios like open-air exhibitions. It is necessary to reasonably control the flow of people in real time based on the number of people in the detection space to avoid overcrowding caused by too many people in the detection space.
[0003] Currently, the number of people in the testing area is mainly counted manually, specifically by staff at the testing entrances and exits. However, manual counting is prone to errors, leading to inaccurate personnel counts. Since staff cannot obtain this information, they continue to count the number of people in the testing area based on the incorrect results, resulting in unreasonable control of the number of people in the testing area. Summary of the Invention
[0004] The purpose of this application is to provide a method, module, electronic device, and readable medium for determining accidental release of objects, in order to solve the problem of unreasonable control over the number of people in the detection space. The specific technical solution is as follows:
[0005] Firstly, a method for determining accidental release of an object is provided, the method comprising:
[0006] The target release position of the target object sent by the detection device is obtained, wherein the target release position is used to indicate that the target object is located on the scene boundary, and the detection device changes the target object from a detectable state to an undetectable state at the scene boundary;
[0007] The target release location is input into the target detection model to obtain the target location label of the target release location output by the target detection model. The target location label is used to indicate that the target release location is at a non-scene boundary or a scene boundary. The non-scene boundary is used to indicate that the target object is within the detection range of the detection device.
[0008] Based on the comparison results between the target release location and the target location label, it is determined whether the target object has been falsely released. The difference in the comparison results indicates that a false release has occurred. The false release is used to indicate that the number of first objects detected by the detection device is different from the number of second objects detected by the target detection model.
[0009] Optionally, determining whether the target object has been mistakenly released includes:
[0010] If the target location label indicates that the target release location is outside the scene boundary, it is determined that the target object has been mistakenly released.
[0011] Control the detection device to re-detect the object.
[0012] Optionally, determining whether the target object has been mistakenly released includes:
[0013] When the target location label indicates that the target release location is at the scene boundary, it is confirmed that the target object has been correctly released, wherein the correct release is used to indicate that the number of first objects detected by the detection device is the same as the number of second objects detected by the target detection model.
[0014] Optionally, the scene boundary includes a main boundary and scene entrances / exits. Before obtaining the target release position of the target object sent by the detection device, the method further includes:
[0015] Multiple alternative release positions and the number of occurrences of the alternative release positions are obtained, wherein the alternative release positions are used to indicate that the detection device changes the detection object from a detectable state to an undetectable state at the scene boundary;
[0016] Select from the candidate release locations a scene entrance / exit that appears more than the first threshold number of times and a main boundary that appears less than the first threshold number of times, wherein the main boundary and the scene entrance / exit constitute the scene boundary;
[0017] The target detection model is obtained based on the position of the main boundary and the position of the entrance / exit at the scene entrance / exit.
[0018] Optionally, obtaining the target detection model based on the main boundary position and the entrance / exit positions at the scene entrance / exit includes:
[0019] Obtain the sample location and the sample location label of the sample location, wherein the sample location label is used to indicate whether the sample location is at the scene boundary or not at the scene boundary, and the sample location label of the main boundary location and the sample location label of the entrance / exit location are used to indicate that the sample location is at the scene boundary;
[0020] The sample location is input into the initial detection model to obtain the detection label of the sample location output by the initial detection model;
[0021] If the detection label is different from the sample location label, the initial detection model is adjusted to obtain a target detection model, wherein the detection label output by the target detection model is the same as the sample location label.
[0022] Optionally, before obtaining the sample location and the sample location label of the sample location, the method further includes:
[0023] The main boundary position of the main boundary and the entrance / exit position of the scene entrance / exit are used as sample positions, and the position within the detection range is used as the sample position;
[0024] A semi-automatic annotation method is used to label the sample locations, resulting in sample location labels;
[0025] The sample location and the sample location label are stored in the database.
[0026] Optionally, obtaining multiple alternative release locations includes:
[0027] Multiple candidate release positions are obtained through a detection device, wherein the candidate release positions are used to indicate to the detection device to change the detection object from a detectable state to an undetectable state;
[0028] Determine the number of releases for each of the candidate release locations;
[0029] Select alternative release locations from the candidate release locations whose release count exceeds the second threshold.
[0030] Secondly, a module for determining accidental release of an object is provided, the module comprising:
[0031] The acquisition module is used to acquire the target release position of the target object sent by the detection device, wherein the target release position is used to indicate that the target object is located on the scene boundary, and the detection device changes the target object from a detectable state to an undetectable state at the scene boundary;
[0032] The module is used to input the target release location into the target detection model and obtain the target location label of the target release location output by the target detection model. The target location label is used to indicate that the target release location is at a non-scene boundary or a scene boundary. The non-scene boundary is used to indicate that the target object is within the detection range of the detection device.
[0033] The determination module is used to determine whether the target object has been falsely released based on the comparison result between the target release location and the target location label. The difference in the comparison result indicates that a false release has occurred. The false release is used to indicate that the number of first objects detected by the detection device is different from the number of second objects detected by the target detection model.
[0034] Thirdly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0035] Memory, used to store computer programs;
[0036] A processor, when executing a program stored in memory, implements the steps of the method for determining the accidental release of any of the described objects.
[0037] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when the computer program is executed by a processor, it implements the steps of the method for determining the accidental release of any of the aforementioned objects.
[0038] Beneficial effects of the embodiments in this application:
[0039] In this application, the server obtains the target release position (the target object is at the scene boundary) based on the detection device and the target position label (the target object is at the non-scene boundary or scene boundary) based on the target detection model. Based on the comparison result between the target release position and the target position label, the server can determine whether the target object has been mistakenly released, that is, whether the number of first objects detected by the detection device is the same as the number of second objects detected by the target detection model.
[0040] If the number of the first object is the same as the number of the second object, it means that the number of objects detected by the detection device is accurate; if the number of the first object is different from the number of the second object, it means that the number of objects detected by the detection device is inaccurate. This can avoid continuing to control the number of personnel based on the incorrect number of people and improve the rationality of personnel number control in the detection space.
[0041] Of course, implementing any product or method of this application does not necessarily require achieving all of the above advantages at the same time. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A schematic diagram of the hardware environment for a method to determine the accidental release of an object provided in an embodiment of this application;
[0044] Figure 2 A flowchart illustrating a method for determining accidental release of an object, provided in an embodiment of this application;
[0045] Figure 3 This is a flowchart of a method for obtaining a target detection model provided in an embodiment of this application;
[0046] Figure 4 A schematic diagram of a device for determining the accidental release of an object, provided in an embodiment of this application;
[0047] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustration and has no specific meaning in itself. Therefore, "module" and "part" may be used interchangeably.
[0050] To address the problems mentioned in the background art, according to one aspect of the embodiments of this application, an embodiment of a method for determining the accidental release of an object is provided.
[0051] Optionally, in the embodiments of this application, the method for determining the accidental release of an object described above can be applied to, for example... Figure 1 The hardware environment shown consists of a detection device 101 and a server 103. For example... Figure 1 As shown, server 103 is connected to detection device 101 via a network and can be used to provide services to terminals or clients installed on terminals. Database 105 can be set up on the server or independently of the server to provide data storage services for server 103. The network mentioned above includes, but is not limited to, wide area network, metropolitan area network or local area network. Detection device 101 includes, but is not limited to, PC, mobile phone, tablet computer, etc.
[0052] One method for determining the accidental release of an object in this application embodiment can be executed by server 103 to determine the number of objects within the detection range.
[0053] The following will describe in detail, with reference to specific implementation methods, a method for determining the accidental release of an object provided in the embodiments of this application, such as... Figure 2 As shown, the specific steps are as follows:
[0054] Step 201: Obtain the target release position of the target object sent by the detection device.
[0055] The target release position is used to indicate that the target object is located on the scene boundary, and the detection device changes the target object from a detectable state to an undetectable state at the scene boundary.
[0056] In this embodiment of the application, a detection device capable of detecting and tracking target objects is fixed in the personnel detection space. The detection device has a corresponding detection range, and the boundary of the detection range is the scene boundary.
[0057] If the target object is within the detection range of the detection device, the detection device is detectable to the target object. As the target object moves from within the detection range to outside the detection range, it crosses the scene boundary. At the scene boundary, the detection device changes from a detectable state to an undetectable state. After the target object moves outside the detection range, the detection device becomes undetectable to the target object.
[0058] When the target object is located at the target release position, it is considered that the detection device cannot detect the target object, and the number of objects detected by the detection device will decrease.
[0059] For example, the detection device is a millimeter-wave radar, and this application does not impose specific limitations on the detection device.
[0060] Step 202: Input the target release location into the target detection model to obtain the target location label of the target release location output by the target detection model.
[0061] Among them, the target location label is used to indicate that the target release location is either outside the scene boundary or within the scene boundary. The outside scene boundary is used to indicate that the target object is within the detection range of the detection device.
[0062] In this embodiment of the application, the server inputs the target release location into the target detection model and obtains the target location label of the target release location output by the target detection model. The target location label is used to indicate that the target release location is at a non-scene boundary or a scene boundary.
[0063] Non-scene boundary refers to the target object being within the detection range of the detection device. That is, if the target object is at a non-scene boundary, it means that the detection device can detect the target object, and the number of objects within the detection range will not decrease.
[0064] Step 203: Based on the comparison results between the target release location and the target location label, determine whether the target object has been mistakenly released.
[0065] Among them, the difference in comparison results indicates false release, which is used to indicate that the number of first objects detected by the detection device is different from the number of second objects detected by the target detection model.
[0066] The server compares the target release location with the target location label to determine whether the location of the target object detected by the detection device is consistent with the location of the target object detected by the target detection model.
[0067] If the server determines that the location is consistent, it indicates that the target object is located on the scene boundary, and the target object is considered to have been released correctly. The number of the first object detected by the detection device is the same as the number of the second object detected by the target detection model.
[0068] If the server determines the location inconsistently, it indicates that the detection device can determine the target object is located on the scene boundary, but the detection device cannot detect it; however, the target detection model can determine the target object is located outside the scene boundary, and the detection device should have been able to detect it. In this case, the target object is considered to have been falsely released, meaning the number of the first object detected by the detection device differs from the number of the second object detected by the target detection model. False releases could occur because the target object is within the detection range but is obscured by an obstacle, or it could be due to a malfunction in the detection device.
[0069] In this application, the server obtains the target release position (the target object is at the scene boundary) based on the detection device and the target position label (the target object is at the non-scene boundary or scene boundary) based on the target detection model. Based on the comparison result between the target release position and the target position label, the server can determine whether the target object has been mistakenly released, that is, whether the number of first objects detected by the detection device is the same as the number of second objects detected by the target detection model.
[0070] If the number of the first object is the same as the number of the second object, it means that the number of objects detected by the detection device is accurate; if the number of the first object is different from the number of the second object, it means that the number of objects detected by the detection device is inaccurate. This can avoid continuing to control the number of personnel based on the incorrect number of people and improve the rationality of personnel number control in the detection space.
[0071] As an optional implementation, determining whether a target object has been mistakenly released includes: if the target location label indicates that the target release location is not at the scene boundary, determining that the target object has been mistakenly released; and controlling the detection device to re-detect the object.
[0072] In this embodiment, if the server determines that the target release location is outside the scene boundary based on the target location label, it indicates that the target object has been mistakenly released. That is, the detection device cannot actually detect the target object, while the target location label output by the target detection model indicates that the target object is within the detection range and the detection device should have been able to detect the target object. In this case, the number of the first object detected by the detection device is different from the number of the second object detected by the target detection model. The server then controls the detection device to re-detect the object so that the number of people within the detection range is counted correctly, thereby improving the rationality of the control of the number of people in the detection space.
[0073] As an optional implementation, determining whether a target object has been mistakenly released includes: confirming that the target object has been correctly released when the target location label indicates that the target release location is at the scene boundary, wherein correct release is used to indicate that the number of first objects detected by the detection device is the same as the number of second objects detected by the target detection model.
[0074] In this embodiment of the application, if the server determines that the target release position is at the scene boundary based on the target position label, it indicates that the target object has been correctly released. That is, the target object can be determined to be on the scene boundary based on both the detection device and the target detection model. At this time, it is assumed that the number of the first object detected by the detection device is the same as the number of the second object detected by the target detection model. Then the server continues to receive the next target release position sent by the detection device.
[0075] As an optional implementation method, such as Figure 3 As shown, the scene boundary includes the main boundary and scene entrances / exits. Before obtaining the target release position of the target object sent by the detection device, the method also includes:
[0076] Step 301: Obtain multiple alternative release locations and the number of times each alternative release location appears.
[0077] Among them, the alternative release position is used to indicate that the detection device changes the detection object from a detectable state to an undetectable state at the scene boundary.
[0078] In this embodiment of the application, the database stores multiple alternative release locations and the number of times each alternative release location appears. The server retrieves multiple alternative release locations and the number of times each alternative release location appears from the database.
[0079] The alternative release position is used to indicate when the detection device changes the detected object from a detectable state to an undetectable state at the scene boundary. The alternative release position indicates that the target object is at the scene boundary, which can be the main boundary or a scene entrance / exit. The main boundary and scene entrances / exits constitute the scene boundary. The alternative release position is specifically the alternative release coordinates on the scene boundary.
[0080] Step 302: Select scene entrances and exits that appear more times than the first time threshold and main boundaries that appear less times than the first time threshold from the candidate release locations.
[0081] The main boundary and scene entrances / exits constitute the scene boundary.
[0082] The scene boundary can be the boundary of the detection range of the detection device itself, or it can be the boundary of the detection space, such as a wall. If the detection device is on one side of the wall and the target object is on the other side of the wall, the detection device will not be able to detect the target object.
[0083] If the scene boundary is the boundary of the detection space, then the detection space should have entrances and exits, i.e., scene entrances and exits. The detected object needs to enter and exit the detection range of the detection device through these scene entrances and exits. Therefore, at these scene entrances and exits, the number of times the detected object changes from a detectable state to an undetectable state is relatively high. The server will use the candidate release locations where the number of occurrences exceeds the first threshold as scene entrances and exits, and correspondingly, the server will use locations where the number of occurrences is lower than the first threshold as the primary boundary.
[0084] Step 303: Obtain the target detection model based on the main boundary position and the entrance / exit positions at the scene entrances / exits.
[0085] The server uses the main boundary position and the entrance / exit positions at the scene's entrances and exits as sample positions, along with other positions within the detection range. A semi-automatic annotation method is then used to label these sample positions, resulting in sample position labels. Finally, the sample positions and their labels are stored in the database. Specifically, the main boundary position uses the main boundary coordinates, and the entrance / exit positions use the entrance / exit coordinates.
[0086] When the server needs to build an object detection model, it retrieves sample locations and sample location labels from the database, trains the initial detection model, and obtains the object detection model.
[0087] In this application, the server needs sample locations to build the object detection model, and the main boundary location and entrance / exit locations can be used as sample locations. In addition, the server uses locations on the scene boundary that appear more than once a threshold as scene entrances / exits, which facilitates the detection of scene entrances / exits and increases the diversity of sample locations.
[0088] As an optional implementation, obtaining the target detection model based on the main boundary position and the entrance / exit positions of the scene entrance / exit includes: acquiring sample positions and sample position labels for the sample positions, wherein the sample position labels are used to indicate whether the sample position is at the scene boundary or not, and the sample position labels at the main boundary position and the sample position labels at the entrance / exit positions are used to indicate that the sample position is at the scene boundary; inputting the sample positions into the initial detection model to obtain the detection labels of the sample positions output by the initial detection model; if the detection labels are different from the sample position labels, adjusting the initial detection model to obtain the target detection model, wherein the detection labels output by the target detection model are the same as the sample position labels.
[0089] In this embodiment of the application, the server obtains the sample location and the sample location label of the sample location. The sample location includes the main boundary coordinates, the entrance / exit coordinates or the non-scene boundary coordinates. The sample location label is used to indicate whether the sample location is at the scene boundary or the non-scene boundary. The sample location label of the main boundary location and the sample location label of the entrance / exit location are used to indicate that the sample location is at the scene boundary.
[0090] The server inputs the sample location into the initial detection model and obtains the detection label of the sample location output by the initial detection model. If the server determines that the detection label is different from the sample location label, it adjusts the initial detection model until the detection label output by the initial detection model is the same as the sample location label. Then, the adjusted initial detection model is used as the target detection model.
[0091] As an optional implementation, obtaining multiple candidate release positions includes: obtaining multiple candidate release positions through a detection device, wherein the candidate release positions are used to instruct the detection device to change the detection object from a detectable state to an undetectable state; determining the number of releases for each candidate release position; and selecting candidate release positions from the candidate release positions whose number of releases exceeds a second threshold.
[0092] In this embodiment, the candidate release position is the location where the detection device changes the detected object from a detectable state to an undetectable state. The candidate release position can be either the scene boundary of the detection device or the location of a moving occluder. If the candidate release position is the scene boundary of the detection device, the detected object will frequently release at the scene boundary, and the number of releases at the candidate release position will exceed the second threshold. If the candidate release position is the location of a moving occluder, the detected object will not frequently release at the scene boundary, and the number of releases at the candidate release position will not exceed the second threshold. To obtain an accurate scene boundary, the server uses candidate release positions with a release count exceeding the second threshold as alternative release positions, which improves the accuracy of boundary position determination.
[0093] Optionally, this application embodiment also provides a flowchart of a method for determining an object that has been mistakenly released, with the specific steps as follows.
[0094] Step 1: Obtain the target release location of the target object sent by the detection device.
[0095] Step 2: Obtain multiple potential release locations using a detection device.
[0096] Step 3: Select candidate release locations from the candidate release locations whose release count exceeds the threshold of the second count.
[0097] Step 4: Select the entrance / exit positions that appear more than the first time threshold and the main boundary positions that appear no more than the first time threshold from the candidate release positions.
[0098] Step 5: Obtain the target detection model based on the main boundary position and the entrance / exit position.
[0099] Step 6: Input the target release location into the target detection model to obtain the target location label of the target release location output by the target detection model.
[0100] Step 7: Based on the comparison results between the target release location and the target location label, determine whether the target object has been mistakenly released. If yes, proceed to step 8; otherwise, proceed to step 9.
[0101] Step 8: Control the detection device to re-detect the object.
[0102] Step 9: Continue receiving the next target release location sent by the detection device.
[0103] The execution order of steps 1 and steps 2-5 is not important.
[0104] Based on the same technical concept, embodiments of this application also provide a module for determining accidental release of objects, such as... Figure 4 As shown, the device includes:
[0105] The acquisition module 401 is used to acquire the target release position of the target object sent by the detection device. The target release position is used to indicate that the target object is located on the scene boundary. The detection device changes the target object from a detectable state to an undetectable state at the scene boundary.
[0106] The module 402 is used to input the target release position into the target detection model and obtain the target position label of the target release position output by the target detection model. The target position label is used to indicate that the target release position is at a non-scene boundary or a scene boundary. The non-scene boundary is used to indicate that the target object is within the detection range of the detection device.
[0107] The determination module 403 is used to determine whether the target object has been mistakenly released based on the comparison results between the target release location and the target location label. The difference in the comparison results indicates that a mistaken release has occurred. A mistaken release is used to indicate that the number of first objects detected by the detection device is different from the number of second objects detected by the target detection model.
[0108] Optionally, the determining module 403 is used for:
[0109] If the target location label indicates that the target release location is outside the scene boundary, it is determined that the target object has been mistakenly released;
[0110] Control the detection device to re-detect the object.
[0111] Optionally, the determining module 403 is used for:
[0112] When the target location label indicates that the target release location is at the scene boundary, it is confirmed that the target object has been correctly released. Here, "correctly released" is used to indicate that the number of the first objects detected by the detection device is the same as the number of the second objects detected by the target detection model.
[0113] Optionally, the device is also used for:
[0114] Obtain multiple alternative release positions and the number of times each alternative release position appears. The alternative release positions are used to instruct the detection device to change the detection object from a detectable state to an undetectable state at the scene boundary.
[0115] Select scene entrances and exits that appear more than the first time threshold and main boundaries that appear less than the first time threshold from the candidate release locations. The main boundaries and scene entrances and exits constitute the scene boundaries.
[0116] The target detection model is obtained based on the position of the main boundary and the positions of the entrances and exits at the scene entrances and exits.
[0117] Optionally, the device is also used for:
[0118] Obtain the sample location and the sample location label of the sample location. The sample location label is used to indicate whether the sample location is at the scene boundary or not. The sample location label of the main boundary location and the sample location label of the entrance / exit location are used to indicate that the sample location is at the scene boundary.
[0119] Input the sample location into the initial detection model to obtain the detection label of the sample location output by the initial detection model;
[0120] When the detection label and the sample location label are different, the initial detection model is adjusted to obtain the target detection model, where the detection label output by the target detection model is the same as the sample location label.
[0121] Optionally, the device is also used for:
[0122] The main boundary position of the main boundary and the entrance / exit position of the scene entrance / exit are used as sample positions, and the positions within the detection range are used as sample positions.
[0123] A semi-automatic annotation method was used to label the sample locations, resulting in sample location labels.
[0124] Store the sample location and sample location label in the database.
[0125] Optionally, the device is also used for:
[0126] Multiple candidate release positions are obtained through the detection device. The candidate release positions are used to indicate to the detection device to change the state of the detected object from detectable to undetectable.
[0127] Determine the number of releases for each candidate release location;
[0128] Select candidate release locations from the pool of candidate release locations that have been released more than the threshold number for the second release.
[0129] According to another aspect of the embodiments of this application, this application provides an electronic device, such as... Figure 5 As shown, the system includes a memory 503, a processor 501, a communication interface 502, and a communication bus 504. The memory 503 stores a computer program that can run on the processor 501. The memory 503 and the processor 501 communicate through the communication interface 502 and the communication bus 504. When the processor 501 executes the computer program, it implements the steps of the above method.
[0130] The memory and processor in the aforementioned electronic devices communicate with each other via a communication bus and a communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0131] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0132] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0133] According to another aspect of the embodiments of this application, a computer-readable medium having processor-executable non-volatile program code is also provided.
[0134] Optionally, in embodiments of this application, the computer-readable medium is configured to store program code for the processor to execute the above-described method:
[0135] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.
[0136] In specific implementation, the embodiments of this application can be referred to the above embodiments and have corresponding technical effects.
[0137] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0138] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0139] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0140] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0141] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0142] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0143] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0144] If the aforementioned function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks. It should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0145] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining accidental release of an object, characterized in that, The method comprises: acquiring a target release position of a target object sent by a detection device, wherein the target release position is used to indicate that the target object is located on a scene boundary, and the detection device is in a detectable state at the scene boundary and is in an undetectable state; inputting the target release position into a target detection model to obtain a target position label of the target release position output by the target detection model, wherein the target position label is used to indicate that the target release position is in a non-scene boundary or a scene boundary, and the non-scene boundary is used to indicate that the target object is in a detection range of the detection device; determining whether the target object realizes a misrelease according to a comparison result of the target release position and the target position label, wherein the comparison result is different, indicating that the misrelease is realized, and the misrelease is used to indicate that a first object quantity detected by the detection device is different from a second object quantity detected by the target detection model; the scene boundary comprises a main boundary and a scene entrance and exit, and the target detection model is obtained according to a main boundary position of the main boundary and an entrance and exit position at the scene entrance and exit, comprising: acquiring a sample position and a sample position label of the sample position, wherein the sample position label is used to indicate that the sample position is in a scene boundary or a non-scene boundary, and sample position labels of the main boundary position and the entrance and exit position are used to indicate that the sample position is in a scene boundary; inputting the sample position into an initial detection model to obtain a detection label of the sample position output by the initial detection model; in a case where the detection label is different from the sample position label, adjusting the initial detection model to obtain a target detection model, wherein a detection label output by the target detection model is the same as the sample position label.
2. The method of claim 1, wherein, The determination of whether the target object realizes the misrelease comprises: in a case where the target position label indicates that the target release position is in a non-scene boundary, determining that the target object realizes the misrelease; controlling the detection device to re-perform object detection.
3. The method of claim 1, wherein, The determination of whether the target object realizes the misrelease comprises: in a case where the target position label indicates that the target release position is in a scene boundary, confirming that the target object realizes a correct release, wherein the correct release is used to indicate that the first object quantity detected by the detection device is the same as the second object quantity detected by the target detection model.
4. The method of claim 1, wherein, Before the acquiring of the target release position of the target object sent by the detection device, the method further comprises: acquiring a plurality of candidate release positions and occurrence times of the candidate release positions, wherein the candidate release positions are used to indicate that the detection device is in a detectable state at the scene boundary and is in an undetectable state; selecting, from the candidate release positions, a scene entrance and exit with an occurrence time exceeding a first time threshold and a main boundary with an occurrence time lower than the first time threshold, wherein the main boundary and the scene entrance and exit constitute the scene boundary; According to the main boundary position of the main boundary and the entrance and exit position at the scene entrance and exit, the target detection model is obtained.
5. The method of claim 1, wherein, Before the sample position and the sample position label of the sample position are obtained, the method further comprises: The main boundary position of the main boundary and the entrance and exit position at the scene entrance and exit are taken as sample positions, and positions in the detection range are taken as sample positions; The sample positions are labeled in position by using a semi-automatic labeling method, and sample position labels are obtained; The sample positions and the sample position labels are stored in a database.
6. The method of claim 4, wherein, The obtaining of the plurality of candidate release positions comprises: A plurality of candidate release positions are obtained by a detection device, wherein the candidate release positions are used to indicate that the detection device changes the detection object from a detectable state to an undetectable state; The release times of each candidate release position are determined; Candidate release positions whose release times exceed a second number threshold are selected from the candidate release positions.
7. A module for determining the accidental release of an object, characterized in that, The module comprises: An acquisition module, configured to acquire a target release position of a target object sent by a detection device, wherein the target release position is used to indicate that the target object is located on a scene boundary, and the detection device changes the target object from a detectable state to an undetectable state at the scene boundary; A obtaining module, configured to input the target release position into a target detection model to obtain a target position label of the target release position output by the target detection model, wherein the target position label is used to indicate that the target release position is on a non-scene boundary or a scene boundary, and the non-scene boundary is used to indicate that the target object is in a detection range of the detection device; A determination module, configured to determine whether the target object realizes a false release according to a comparison result of the target release position and the target position label, wherein a different comparison result indicates that the false release is realized, and the false release is used to indicate that a first object number detected by the detection device is different from a second object number detected by the target detection model; The scene boundary comprises a main boundary and a scene entrance and exit, and the target detection model is obtained according to the main boundary position of the main boundary and the entrance and exit position at the scene entrance and exit, comprising: The sample position and the sample position label of the sample position are obtained, wherein the sample position label is used to indicate that the sample position is on a scene boundary or a non-scene boundary, and the sample position label of the main boundary position and the sample position label of the entrance and exit position are used to indicate that the sample position is on a scene boundary; The sample position is input into an initial detection model to obtain a detection label of the sample position output by the initial detection model; In a case where the detection label is different from the sample position label, the initial detection model is adjusted to obtain a target detection model, wherein a detection label output by the target detection model is the same as the sample position label.
8. An electronic device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; The memory is used to store a computer program. A processor for implementing the method steps of any one of claims 1-6 when the processor executes a program stored on a memory.
9. A computer-readable storage medium, characterized in that, A computer program stored in the computer readable storage medium, the computer program being executed by a processor to implement the method steps of any one of claims 1-6.
Citation Information
Patent Citations
Refrigeration equipment noise adjusting method and device, and electronic equipment
CN109682162A
Automatic green belt watering method and system based on watering cart, terminal and medium
CN116433956A