A storage location occupancy identification method, device, storage medium and electronic equipment
Through the comprehensive evaluation of image recognition and multiple detection results, the problem of the lack of an effective tracking mechanism for the location occupancy recognition method in the prior art is solved, and the location occupancy information output with high accuracy and fault tolerance is achieved.
Patent Information
- Application Number
- CN202411914264.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-01
AI Technical Summary
The existing library position occupancy identification methods lack an effective tracking mechanism, which causes the target to move or disappear, and the occupancy type of the system output may jump, resulting in misjudgment.
By obtaining the currently to be processed image information, identifying the information of the library location and the target object, performing the location occupancy detection, and storing the detection results into the occupancy status set, and determining the occupancy status information of the library location through a comprehensive evaluation of multiple detection results.
It realizes accurate and reliable output of the location occupancy information, improves the system's fault tolerance and accuracy, and ensures that accurate location occupancy information is provided under various conditions.
Smart Images

Figure CN119741678A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for identifying storage location occupancy. Background Art
[0002] With the development of autonomous driving technology, automatic parking has become an important feature of modern cars. Through the coordinated work of on-board sensors, processors and control systems, the vehicle can identify suitable parking spaces and complete the parking process without human intervention. In this process, it is crucial to accurately detect whether there are obstacles in the parking space and assess whether these obstacles will affect the safety and feasibility of parking. The parking space occupancy recognition technology is designed to solve this problem. It can output common occupancy type information to ensure the normal operation of the automatic parking function.
[0003] Existing methods for identifying storage location occupancy mainly rely on the combination of radar and visual systems to detect the occupancy status of the target and output the results. However, existing solutions lack an effective tracking mechanism for the target. Once the target moves or disappears, the occupancy type output by the system may jump, leading to misjudgment. Summary of the invention
[0004] The technical problem to be solved by this application is to provide a method, device, storage medium and electronic device for identifying storage location occupancy, which can provide accurate and reliable storage location occupancy information. The specific solution is as follows:
[0005] A method for identifying storage location occupancy, comprising:
[0006] Get the image information currently to be processed;
[0007] Recognize the image information to obtain the storage location information of the storage location and the object information of the target object in the image information;
[0008] Performing a storage location occupancy detection according to the storage location information and the object information to obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object;
[0009] If the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object, storing the current occupancy detection result of the storage location in the occupancy state set corresponding to the storage location;
[0010] Determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location;
[0011] Output the occupancy status information of the storage location.
[0012] The above method may optionally determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location, including:
[0013] In a case where the current occupancy detection result of the storage location is not the first detection result of the storage location, detecting whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold;
[0014] When the number of occupancy detection results stored in the occupancy state set is not less than a preset first number threshold, determining the occupancy state information of the storage location according to the multiple occupancy detection results stored in the occupancy state set;
[0015] In the case that the current occupancy detection result of the storage location is the first detection result of the storage location, the current occupancy detection result of the storage location is used as the initial occupancy status information of the storage location, and the occupancy status information is output.
[0016] Optionally, in the above method, determining the occupancy status information of the storage location according to the multiple occupancy detection results stored in the occupancy status set includes:
[0017] Voting is performed according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, and N is less than the first quantity threshold;
[0018] According to the voting information, determining the occupancy detection result with the largest number among the current occupancy detection results of the storage location and the first occupancy detection results;
[0019] The occupancy status information of the storage location is determined according to the occupancy detection result with the largest quantity.
[0020] In the above method, optionally, determining the occupancy status information of the storage location according to the occupancy detection result with the largest number ratio includes:
[0021] Detecting whether the priority of a first target object meets a preset priority condition, the first target object being the target object with the highest priority occupying the storage location in the occupancy detection results with the largest number;
[0022] If the priority of the first target object meets the preset priority condition, the occupancy detection result with the largest number is determined as the new occupancy status information of the storage location, and the process returns to execute the step of obtaining the image information to be processed.
[0023] The above method may optionally further include:
[0024] If the priority of the first target object does not meet the preset priority condition, then detecting whether the priority of the first target object is lower than the priority of the second target object; the second target object is the target object occupying the storage location in the previous occupancy status information of the storage location;
[0025] If the priority of the first target object is not lower than the priority of the second target object, the occupancy detection result with the largest number is determined as the new occupancy state of the storage location, and the step of obtaining the image information to be processed is returned to execute until the number of occupancy detection results stored in the occupancy state set is greater than a preset second number threshold; the second number threshold is greater than the first number threshold;
[0026] If the priority of the first target object is lower than the priority of the second target object, the previous occupancy status information of the storage location is used as the current occupancy status information of the storage location.
[0027] A storage location occupancy identification device, comprising:
[0028] An acquisition unit, used for acquiring image information currently to be processed;
[0029] A recognition unit, used to recognize the image information, and obtain the storage location information of the storage location and the object information of the target object in the image information;
[0030] A detection unit, configured to perform a storage location occupancy detection according to the storage location information and the object information, and obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object;
[0031] A storage unit, configured to store the current occupancy detection result of the storage location into an occupancy state set corresponding to the storage location if the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object;
[0032] a determination unit, configured to determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location;
[0033] The output unit is used to output the occupancy status information of the storage location.
[0034] In the above device, optionally, the determining unit includes:
[0035] a detection subunit, configured to detect whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold value when the current occupancy detection result of the storage location is not the first detection result of the storage location;
[0036] a first determining subunit, configured to determine the occupancy status information of the storage location according to a plurality of occupancy detection results stored in the occupancy status set, when the number of occupancy detection results stored in the occupancy status set is not less than a preset first number threshold;
[0037] The output subunit is used to use the current occupancy detection result of the storage location as the initial occupancy status information of the storage location when the current occupancy detection result of the storage location is the first detection result of the storage location, and output the occupancy status information.
[0038] In the above device, optionally, the first determining subunit includes:
[0039] A voting module, configured to vote according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, where N is less than the first quantity threshold;
[0040] A first determination module is used to determine the occupancy detection result with the largest number ratio among the current occupancy detection result of the storage location and the first occupancy detection result according to the voting information;
[0041] The first determination module is used to determine the occupancy status information of the storage location according to the occupancy detection result with the largest quantity.
[0042] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned storage location occupancy identification method.
[0043] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above-mentioned storage location occupancy identification method.
[0044] Based on the implementation of the present application, a method, device, storage medium and electronic device for identifying the occupancy of a storage location provided by the present application are provided. The method comprises: obtaining the current image information to be processed; identifying the image information, obtaining the storage location information of the storage location in the image information and the object information of the target object; performing storage location occupancy detection according to the storage location information and the object information, obtaining the current occupancy detection result of the storage location, and the occupancy detection result indicates whether the storage location is occupied by the target object; if the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object, storing the current occupancy detection result of the storage location in the occupancy state set corresponding to the storage location; determining the occupancy state information of the storage location according to the occupancy detection result stored in the occupancy state set corresponding to the storage location; and outputting the occupancy state information of the storage location. The method provided by the embodiment of the present application has the characteristics of high fault tolerance, and can accurately judge the occupancy state of different types of targets by analyzing the relative position between the target and the storage location. At the same time, due to the simple calculation process and low resource occupation, the system runs efficiently and stably, and has strong resistance to the interference of external environmental factors, ensuring that accurate and reliable storage location occupancy information can be provided under various conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0046] Figure 1 A method flow chart of a storage location occupancy identification method provided in this application;
[0047] Figure 2 A flowchart of a process for determining occupancy status information of a storage location provided in the present application;
[0048] Figure 3 A flowchart of a storage location occupancy status tracking process provided for this application;
[0049] Figure 4 A schematic diagram of the structure of a storage location occupancy identification device provided in this application;
[0050] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0053] At present, the existing methods for identifying the occupancy of storage locations mainly rely on the combination of radar and visual systems to detect the occupancy status of the target and output the results. However, this method has obvious limitations: on the one hand, in order to cover different scenes and angles, it is usually necessary to deploy multiple radars and cameras, which not only increases the cost of the system, but also makes hardware integration complicated; on the other hand, due to the lack of an effective tracking mechanism for the target, once the target moves or disappears, the occupancy type output by the system may jump, leading to misjudgment. In addition, there are methods based on deep learning models that directly train models to identify the occupancy status of different targets in storage locations. Although this method can provide more accurate results under specific conditions, it relies entirely on computationally resource-intensive models, requires a lot of computing power support, and has poor adaptability when facing new scenes that have never been seen, limiting its practicality and universality.
[0054] Based on this, an embodiment of the present application provides a method for identifying a storage location occupancy. The method can be applied to an electronic device, which can be a vehicle controller, or a cloud server or terminal device connected to the vehicle for communication. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0055] S101: Obtain image information currently to be processed.
[0056] In this embodiment, the image information currently to be processed can be captured in real time from the camera or loaded from the storage medium. Specifically, a real-time image containing the storage environment can be obtained by a camera installed at a specific position of the vehicle, or a pre-stored image file can be read.
[0057] Optionally, to ensure that the image is suitable for further processing, a series of preprocessing operations may be performed, such as grayscale, resizing, noise removal, contrast enhancement, and geometric transformation. These steps are designed to optimize image quality and reduce unnecessary computational burden.
[0058] S102: Identify the image information to obtain the storage location information of the storage location and the object information of the target object in the image information.
[0059] In this embodiment, the image information can be recognized by a pre-trained deep learning model to obtain the storage location information of the storage location and the object information of the target object in the image information. The deep learning model may include a convolutional neural network or an object detection network.
[0060] Optionally, the storage location information may include the type, distance and storage location identifier of the storage location, and the storage location identifier may be a tracking code tracking_id of the storage location.
[0061] In this embodiment, the object information may include the type of target (wheel chock, cone barrel, ground lock, etc.), coordinates, and target object identification. The target object identification may be a tracking code of the target object.
[0062] Optionally, the storage location in the image information may be one or more, and the number of target objects may also be one or more.
[0063] S103: Performing a storage location occupancy detection according to the storage location information and the object information to obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object.
[0064] In this embodiment, the coordinates of each target object and the location of the storage location may be compared to determine whether the target object is in the storage location, or to determine whether the target object exists in the storage location, thereby obtaining an occupancy detection result.
[0065] Optionally, if there is at least one target object in the storage location, it is determined that the storage location is occupied by the target object, otherwise, it is determined that the storage location is not occupied.
[0066] S104: If the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object, the current occupancy detection result of the storage location is stored in an occupancy state set corresponding to the storage location.
[0067] In this embodiment, an occupancy status set may be set for the storage location, and the occupancy status set may be used to store the occupancy status detection result of the storage location, so that the occupancy status of the storage location may be tracked.
[0068] S105: Determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location.
[0069] In this embodiment, the occupancy status information of the storage location may be determined by one or more recent occupancy detection results in the occupancy status set.
[0070] S106: Outputting the occupancy status information of the storage location.
[0071] Optionally, the occupancy status information may include whether the storage location is occupied and object information of a target object occupying the storage location.
[0072] The method provided by the embodiment of the present application has the characteristics of high fault tolerance. By analyzing the relative position between the target and the storage location, the occupancy status of different types of targets can be accurately determined. In addition, the present embodiment can complete the functional deployment through a panoramic camera, which significantly reduces the hardware cost and complexity. At the same time, due to the simple calculation process and low resource consumption, the system runs efficiently and stably, and has strong resistance to interference from external environmental factors, ensuring that accurate and reliable storage location occupancy information can be provided under various conditions.
[0073] In an embodiment provided by the present application, based on the above solution, optionally, determining the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location includes:
[0074] In a case where the current occupancy detection result of the storage location is not the first detection result of the storage location, detecting whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold;
[0075] When the number of occupancy detection results stored in the occupancy state set is not less than a preset first number threshold, determining the occupancy state information of the storage location according to the multiple occupancy detection results stored in the occupancy state set;
[0076] In the case that the current occupancy detection result of the storage location is the first detection result of the storage location, the current occupancy detection result of the storage location is used as the initial occupancy status information of the storage location, and the occupancy status information is output.
[0077] In this embodiment, the actual occupancy status information of the storage location can be determined by analyzing the detection results stored in the occupancy status set corresponding to the storage location. For non-first occupancy detection results, it can be checked whether sufficient (reaching or exceeding the preset first quantity threshold) historical detection records have been accumulated in the occupancy status set; if the conditions are met, the occupancy status information of the storage location is comprehensively judged based on these accumulated multiple occupancy detection results to improve accuracy. For the first detection result of the storage location, that is, when there is no previous detection record, the current detection result can be used as the initial occupancy status information and output, ensuring that the status of the new storage location or the beginning of a new detection cycle can be reflected in a timely and accurate manner. This mechanism not only takes into account the immediacy of the initial detection, but also improves the reliability of subsequent status judgments through comprehensive evaluation of multiple detection results.
[0078] In an embodiment provided in the present application, based on the above solution, optionally, the process of determining the occupancy status information of the storage location according to the multiple occupancy detection results stored in the occupancy status set is as follows: Figure 2 As shown, including:
[0079] S201: Voting is performed according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, and N is less than the first quantity threshold.
[0080] In this embodiment, in order to determine the occupancy status information of the storage location, a voting mechanism can be used. Specifically, when a sufficient number of detection results (reaching or exceeding a preset first number threshold) are stored in the occupancy status set, the system will select the current occupancy detection result and the previous N consecutive detection results (N is less than the first number threshold) for voting. In this way, the system can comprehensively consider a series of recent detection results instead of relying solely on a single detection, thereby improving the accuracy and stability of the judgment.
[0081] S202: According to the voting information, determine the occupancy detection result with the largest number ratio among the current occupancy detection results of the storage location and the first occupancy detection results.
[0082] Specifically, occupancy detection results with the same results can be divided into a voting group, and the number of occupancy detection results in each voting group can be determined, so that the occupancy detection results in the target voting group are determined as the occupancy detection results with the largest number, and the target voting group is the voting group with the largest number of occupancy detection results.
[0083] S203: Determine the occupancy status information of the storage location according to the occupancy detection result with the largest quantity.
[0084] In this embodiment, the occupancy status information of the storage location may be determined based on the occupancy detection results in the voting group with the largest number of occupancy detection results.
[0085] Optionally, after the voting process is over, the state that appears most frequently among these test results, that is, the occupancy test result with the largest number of occupancy, can be determined based on the voting information, and used as the final storage location occupancy status information. This not only reduces the error that may be caused by a single test result, but also effectively responds to temporary interference or abnormal situations, ensuring that the determination of storage location occupancy status is more reliable. By combining historical data with current data, more accurate storage location management can be provided in a dynamic environment.
[0086] In an embodiment provided by the present application, based on the above solution, optionally, determining the occupancy status information of the storage location according to the occupancy detection result with the largest number ratio includes:
[0087] Detecting whether the priority of a first target object meets a preset priority condition, the first target object being the target object with the highest priority occupying the storage location in the occupancy detection results with the largest number;
[0088] If the priority of the first target object meets the preset priority condition, the occupancy detection result with the largest number is determined as the new occupancy status information of the storage location, and the process returns to execute the step of obtaining the image information to be processed.
[0089] In this embodiment, one of the key steps to determine the storage location occupancy status information is to evaluate the priority of the target objects in the occupancy detection results with the largest number. The target object with the highest priority (i.e., the first target object) in these detection results can be identified first, and then checked to see if it meets the preset priority conditions. This process ensures that even when there are multiple different types of targets in the same storage location, the system can select the most appropriate occupancy status for update according to predefined rules, thereby improving the rationality and accuracy of the status determination.
[0090] If the priority of the first target object meets the preset conditions, the occupancy detection result with the largest number of items can be used as the new occupancy status information of the storage location, and the step of obtaining the current image information to be processed can be returned to start a new round of detection cycle. This can simplify the processing flow and ensure that the storage location status can respond to the latest actual situation in a timely manner, especially in the face of dynamically changing environments, and can provide a more real-time and reliable storage location management solution.
[0091] Optionally, the priority condition may be that the priority is greater than a preset priority threshold.
[0092] In some embodiments, the priority of a target object of a fixed facility type may be set to be greater than a priority threshold, and the priority of a mobile object type may be set to be no greater than the priority threshold. Alternatively, the priority of a mobile object type may be set to be greater than a priority threshold, and the priority of a target object of a fixed facility type may be set to be no greater than the priority threshold.
[0093] In an embodiment provided in the present application, based on the above solution, optionally, it further includes:
[0094] If the priority of the first target object does not meet the preset priority condition, then detecting whether the priority of the first target object is lower than the priority of the second target object; the second target object is the target object occupying the storage location in the previous occupancy status information of the storage location;
[0095] If the priority of the first target object is not lower than the priority of the second target object, the occupancy detection result with the largest number is determined as the new occupancy state of the storage location, and the step of obtaining the image information to be processed is returned to execute until the number of occupancy detection results stored in the occupancy state set is greater than a preset second number threshold; the second number threshold is greater than the first number threshold;
[0096] If the priority of the first target object is lower than the priority of the second target object, the previous occupancy status information of the storage location is used as the current occupancy status information of the storage location.
[0097] In this embodiment, if the priority of the first target object does not meet the preset conditions, the priority of the first target object and the second target object (i.e., the target object in the previous occupancy status information of the storage location) can be further compared. This additional verification step ensures that the update of the storage location occupancy status is not only based on the number of current detection results, but also takes into account the priority of the historical occupancy status. If the priority of the first target object is not lower than that of the second target object, the occupancy detection result with the largest number can be confirmed as the new occupancy status, and new image information can continue to be acquired and processed until the number of detection results in the occupancy status set exceeds a higher second number threshold, which further enhances the stability and accuracy of the judgment.
[0098] However, if the priority of the first target object is lower than that of the second target object, it indicates that the current detection result may not be as reliable or important as the previous occupancy status. In this case, the original occupancy status information can be maintained unchanged. This mechanism effectively prevents misjudgment of the storage location status due to temporary or low-priority targets, and ensures the continuity and reliability of the storage location management system. In this way, it can provide more intelligent and accurate storage location occupancy status judgment in complex and changing environments, while ensuring that high-priority targets are given attention.
[0099] In one embodiment provided in the present application, the environmental image information can be first obtained through the camera module, and then the target detection model can be used to infer the five key points of the target, namely the four vertices and a center point of the target bounding box (bbox). If these five points are all within the storage location range, it is determined that the storage location is occupied. The method provided in the embodiment of the present application can realize real-time tracking of the storage location occupancy status, and assign different priorities according to the target type. When multiple targets appear at the same time, the high-priority target information is output first.
[0100] In this embodiment, if Figure 3 As shown in the figure, once a target is detected entering a storage location for the first time, its initial occupancy status is recorded; for targets that appear continuously in the high-quality area, the storage location occupancy status is updated only after confirmation by the multi-frame voting algorithm. This method effectively reduces the false alarm rate and ensures the accuracy of the storage location occupancy information.
[0101] This application can be applied to the field of automatic parking and can identify various types of obstacles, including but not limited to cone barrels, wheel chocks, open and closed ground locks, hemispherical obstacles, water barriers, pedestrians, bicycles, trash cans, underground warning signs, baby carriages, shopping carts, and reverse wheel chocks. Through the effective monitoring of these common obstacles, this technology provides solid support for intelligent parking lot management and autonomous driving. In addition, due to its simple implementation principle and high fault tolerance, it only needs a panoramic camera to complete the task, so it is cost-effective and has strong anti-interference ability.
[0102] In summary, this vision-based storage occupancy recognition technology has become an ideal choice for improving warehouse management and automatic parking efficiency with its advantages of low computational complexity, low cost and high precision. It not only simplifies the storage management process, but also enhances the reliability and adaptability of the system, providing a new solution for static traffic management in the construction of future smart cities.
[0103] and Figure 1 Corresponding to the method described above, the embodiment of the present application also provides a storage location occupancy identification device for Figure 1 The specific implementation of the method is shown in the following diagram: Figure 4 As shown, specifically including:
[0104] An acquisition unit 401 is used to acquire image information to be processed currently;
[0105] The recognition unit 402 is used to recognize the image information and obtain the storage location information of the storage location and the object information of the target object in the image information;
[0106] A detection unit 403 is used to perform a storage location occupancy detection according to the storage location information and the object information, and obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object;
[0107] The storage unit 404 is configured to store the current occupancy detection result of the storage location into an occupancy state set corresponding to the storage location if the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object;
[0108] A determination unit 405, configured to determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location;
[0109] The output unit 406 is used to output the occupancy status information of the storage location.
[0110] In an embodiment provided in the present application, based on the above solution, optionally, the determining unit includes:
[0111] a detection subunit, configured to detect whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold value when the current occupancy detection result of the storage location is not the first detection result of the storage location;
[0112] a first determining subunit, configured to determine the occupancy status information of the storage location according to a plurality of occupancy detection results stored in the occupancy status set, when the number of occupancy detection results stored in the occupancy status set is not less than a preset first number threshold;
[0113] The output subunit is used to use the current occupancy detection result of the storage location as the initial occupancy status information of the storage location when the current occupancy detection result of the storage location is the first detection result of the storage location, and output the occupancy status information.
[0114] In an embodiment provided in the present application, based on the above solution, optionally, the first determining subunit includes:
[0115] A voting module, configured to vote according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, where N is less than the first quantity threshold;
[0116] A first determination module is used to determine the occupancy detection result with the largest number ratio among the current occupancy detection result of the storage location and the first occupancy detection result according to the voting information;
[0117] The first determination module is used to determine the occupancy status information of the storage location according to the occupancy detection result with the largest quantity.
[0118] In an embodiment provided in the present application, based on the above solution, optionally, the first determining module includes:
[0119] A detection submodule, used to detect whether the priority of a first target object meets a preset priority condition, wherein the first target object is the target object with the highest priority occupying the storage location in the occupancy detection results with the largest number;
[0120] The first execution submodule is used to determine the occupancy detection result with the largest number as the new occupancy status information of the storage location if the priority of the first target object meets the preset priority condition, and return to execute the step of obtaining the image information to be processed.
[0121] In an embodiment provided in the present application, based on the above solution, optionally, the first determining module further includes:
[0122] A second execution submodule is used to detect whether the priority of the first target object is lower than the priority of a second target object if the priority of the first target object does not meet a preset priority condition; the second target object is the target object occupying the storage location in the previous occupancy status information of the storage location;
[0123] A third execution submodule is used for determining the occupancy detection result with the largest number as the new occupancy state of the storage location if the priority of the first target object is not lower than the priority of the second target object, and returning to trigger the acquisition unit to execute the step of acquiring the current image information to be processed, until the number of occupancy detection results stored in the occupancy state set is greater than a preset second number threshold; the second number threshold is greater than the first number threshold;
[0124] The fourth execution submodule is configured to use the previous occupancy status information of the storage location as the current occupancy status information of the storage location if the priority of the first target object is lower than the priority of the second target object.
[0125] The specific principles and execution processes of each unit and module in the storage location occupancy identification device disclosed in the above-mentioned embodiment of the present application are the same as the storage location occupancy identification method disclosed in the above-mentioned embodiment of the present application. Please refer to the corresponding parts of the storage location occupancy identification method provided in the above-mentioned embodiment of the present application, and will not be repeated here.
[0126] An embodiment of the present application further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned storage location occupancy identification method.
[0127] The present application also provides an electronic device, whose structural diagram is as follows: Figure 5 As shown, it specifically includes a memory 501 and one or more instructions 502, wherein the one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to perform the following operations:
[0128] Get the image information currently to be processed;
[0129] Recognize the image information to obtain the storage location information of the storage location and the object information of the target object in the image information;
[0130] Performing a storage location occupancy detection according to the storage location information and the object information to obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object;
[0131] If the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object, storing the current occupancy detection result of the storage location in the occupancy state set corresponding to the storage location;
[0132] Determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location;
[0133] Output the occupancy status information of the storage location.
[0134] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0136] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0137] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0138] The above is a detailed introduction to a storage location occupancy identification method provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for identifying storage location occupancy, characterized in that: include: Get the image information currently to be processed; Recognize the image information to obtain the storage location information of the storage location and the object information of the target object in the image information; Performing a storage location occupancy detection according to the storage location information and the object information to obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object; If the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object, storing the current occupancy detection result of the storage location in the occupancy state set corresponding to the storage location; Determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location; Output the occupancy status information of the storage location.
2. The method according to claim 1, characterized in that Determining the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location includes: In a case where the current occupancy detection result of the storage location is not the first detection result of the storage location, detecting whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold; When the number of occupancy detection results stored in the occupancy status set is not less than a preset first number threshold, determining the occupancy status information of the storage location according to the multiple occupancy detection results stored in the occupancy status set; In the case that the current occupancy detection result of the storage location is the first detection result of the storage location, the current occupancy detection result of the storage location is used as the initial occupancy status information of the storage location, and the occupancy status information is output.
3. The method according to claim 2, characterized in that The determining the occupancy status information of the storage location according to the plurality of occupancy detection results stored in the occupancy status set includes: Voting is performed according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, and N is less than the first quantity threshold; According to the voting information, determining the occupancy detection result with the largest number among the current occupancy detection results of the storage location and the first occupancy detection results; The occupancy status information of the storage location is determined according to the occupancy detection result with the largest quantity.
4. The method according to claim 3, characterized in that The determining of the occupancy status information of the storage location according to the occupancy detection result with the largest number of items includes: Detecting whether the priority of a first target object meets a preset priority condition, the first target object being the target object with the highest priority occupying the storage location in the occupancy detection results with the largest number; If the priority of the first target object meets the preset priority condition, the occupancy detection result with the largest number is determined as the new occupancy status information of the storage location, and the process returns to execute the step of obtaining the image information to be processed.
5. The method according to claim 4, characterized in that Also includes: If the priority of the first target object does not meet the preset priority condition, detecting whether the priority of the first target object is lower than the priority of the second target object; The second target object is the target object occupying the storage location in the previous occupation status information of the storage location; If the priority of the first target object is not lower than the priority of the second target object, the occupancy detection results with the largest number are determined as the new occupancy state of the storage location, and the process returns to the step of obtaining the image information to be processed until the number of occupancy detection results stored in the occupancy state set is greater than a preset second number threshold; The second quantity threshold is greater than the first quantity threshold; If the priority of the first target object is lower than the priority of the second target object, the previous occupancy status information of the storage location is used as the current occupancy status information of the storage location.
6. A storage location occupancy identification device, characterized in that: include: An acquisition unit, used for acquiring image information currently to be processed; A recognition unit, used to recognize the image information, and obtain the storage location information of the storage location and the object information of the target object in the image information; A detection unit, configured to perform a storage location occupancy detection according to the storage location information and the object information, and obtain a current occupancy detection result of the storage location, wherein the occupancy detection result indicates whether the storage location is occupied by the target object; A storage unit, configured to store the current occupancy detection result of the storage location into an occupancy state set corresponding to the storage location if the current occupancy detection result of the storage location indicates that the storage location is occupied by the target object; a determination unit, configured to determine the occupancy status information of the storage location according to the occupancy detection result stored in the occupancy status set corresponding to the storage location; The output unit is used to output the occupancy status information of the storage location.
7. The device according to claim 6, characterized in that The determining unit comprises: a detection subunit, configured to detect whether the number of occupancy detection results stored in the occupancy state set is less than a preset first number threshold value when the current occupancy detection result of the storage location is not the first detection result of the storage location; a first determining subunit, configured to determine the occupancy status information of the storage location according to a plurality of occupancy detection results stored in the occupancy status set, when the number of occupancy detection results stored in the occupancy status set is not less than a preset first number threshold; The output subunit is used to use the current occupancy detection result of the storage location as the initial occupancy status information of the storage location when the current occupancy detection result of the storage location is the first detection result of the storage location, and output the occupancy status information.
8. The device according to claim 7, characterized in that The first determining subunit includes: A voting module, configured to vote according to the current occupancy detection result of the storage location and the first occupancy detection result stored in the occupancy status set to obtain voting information; the first occupancy detection result is N consecutive detection results before the current occupancy detection result of the storage location, where N is less than the first quantity threshold; A first determination module is used to determine the occupancy detection result with the largest number ratio among the current occupancy detection result of the storage location and the first occupancy detection result according to the voting information; The first determination module is used to determine the occupancy status information of the storage location according to the occupancy detection result with the largest quantity.
9. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the storage location occupancy identification method according to any one of claims 1 to 5.
10. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the storage location occupancy identification method as described in any one of claims 1 to 5.