Mobile stall detection method, device, electronic equipment and storage medium

By combining the detection results of stall type, carrier type and attachment type, the deep learning network model is used to identify mobile stalls, which solves the problem of difficult identification in the existing technology and improves the accuracy of mobile stall detection and urban management efficiency.

CN113723226BActive Publication Date: 2024-09-06ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110932893.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-09-06
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

It is difficult to accurately identify and manage mobile stalls with existing technology, leading to difficulties in urban management and environmental sanitation and food safety issues.

Method used

By obtaining the image to be detected, combined with the detection results of stall type, carrier type and attachment type, a deep learning network model is used to determine whether it is a mobile stall and improve the accuracy of detection.

Benefits of technology

It improves the accuracy of mobile stall detection, reduces misidentifications, and enhances the efficiency of urban management and the effectiveness of law enforcement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113723226B
    Figure CN113723226B
Patent Text Reader

Abstract

The present application discloses a mobile stall detection method, device, electronic device and storage medium, the method comprising: acquiring an image to be detected; detecting at least two objects of the stall type, carrier type and accessory type of the stall to be detected in the image to be detected, and determining the detection results of the at least two objects; the carrier type is the type of the carrier carrying the items in the stall to be detected, and the accessory type is the type of the accessory associated with the stall to be detected; based on the detection results of the at least two objects, determining whether the stall to be detected is a mobile stall. Therefore, in the process of stall detection, the present application improves the accuracy of mobile stall detection by combining at least two objects of the stall type, carrier type and accessory type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a mobile stall detection method, device, electronic device and storage medium. Background Art

[0002] The management of business stalls is an important part of urban management. The management of business stalls directly affects the construction of modern cities. Mobile vendors such as retail enterprises or individuals usually use mobile stalls such as mobile sales trucks to sell goods at unfixed locations. The mobile stalls formed by mobile vendors in the process of selling not only occupy public places such as urban roads and squares, but also bring many problems such as environmental sanitation and food safety. The management of mobile stalls is a key and difficult point in the management of urban business stalls, which directly affects the construction and management of modern cities.

[0003] In order to reduce the number of mobile stalls, urban management usually needs to mobilize a large number of manpower to go to the streets to investigate and dissuade them. If they encounter guerrilla mobile vendors, management will be more difficult. With the popularization of intelligent urban management, image recognition and detection have played a great role in the fields of transportation and public safety. However, it is currently impossible to accurately identify mobile stalls from many stalls, which is not conducive to the management of mobile stalls. Summary of the invention

[0004] The present application provides a mobile stall detection method, device, electronic equipment and storage medium to improve the accuracy of mobile stall detection.

[0005] In a first aspect, the present application provides a method for detecting mobile stalls, comprising acquiring an image to be detected; detecting at least two objects among a stall type, a carrier type and an accessory type of the stall to be detected in the image to be detected, and determining detection results of the at least two objects; the carrier type is the type of a carrier carrying items in the stall to be detected, and the accessory type is the type of accessories associated with the stall to be detected; based on the detection results of the at least two objects, determining whether the stall to be detected is a mobile stall.

[0006] A second aspect of the present application provides a mobile stall detection device, comprising: a video frame acquisition module, used to acquire an image to be detected; a target detection module, connected to the video frame acquisition module, used to detect at least two objects among the stall type, carrier type and accessory type of the stall to be detected in the image to be detected, and determine the detection results of at least two objects, the carrier type is the type of the carrier carrying the items in the stall to be detected, and the accessory type is the type of the accessory associated with the stall to be detected; a processing module, connected to the target detection module, and based on the detection results of at least two objects, determines whether the stall to be detected is a mobile stall.

[0007] A third aspect of the present application provides an electronic device, comprising a processor and a memory coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the mobile stall detection method provided in the first aspect above.

[0008] A fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implements the mobile stall detection method provided in the first aspect above.

[0009] The present application has at least the following beneficial effect: compared with the prior art, the present application improves the accuracy of mobile stall detection by combining at least two objects among the stall type, carrier type and accessory type during the stall detection process. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0011] Figure 1 It is a flow chart of an embodiment of a mobile stall detection method of the present application;

[0012] Figure 2 is a flow chart of another embodiment of the stall detection method of the present application;

[0013] Figure 3 It is a flow chart of another embodiment of the mobile stall detection method of the present application;

[0014] Figure 4 It is a flow chart of another embodiment of the stall detection method of the present application;

[0015] Figure 5 It is a flow chart of another embodiment of the mobile stall detection method of the present application;

[0016] Figure 6 It is a schematic diagram of the fruit stall of the present application;

[0017] Figure 7 is another schematic diagram of the fruit stall of the present application;

[0018] Figure 8 is a schematic diagram of the vegetable stall of the present application;

[0019] Fig. 9 is another schematic diagram of the vegetable stall of the present application;

[0020] Fig.10It is a schematic diagram of the catering booth of this application;

[0021] Fig.11 It is a schematic diagram of the framework structure of the mobile stall detection device of the present application;

[0022] Fig.12 It is a schematic diagram of the framework structure of the electronic device of the present application;

[0023] Fig.13 It is a schematic diagram of the framework structure of the computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0024] 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.

[0025] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0026] In a first aspect, the present application provides a mobile stall detection method, which improves the accuracy of mobile stall detection by combining at least two objects among the stall type, carrier type and accessory type during the detection process. Figure 1 , Figure 1 : is a flow chart of an embodiment of a mobile stall detection method of the present application, the method comprising the following steps:

[0027] S11: Acquire the image to be detected.

[0028] Specifically, the video frame sequence of the place to be detected can be obtained by an image acquisition device. The image acquisition device can be fixed at a certain position to acquire the video frame sequence of a specific place, and the image acquisition device can also adjust its own position to acquire the video frame sequence of different places to be detected.

[0029] The video frame sequence is a video frame sequence obtained for the same place to be detected. The video frame sequence may be a continuous or discontinuous video frame sequence. The number of frames in the video frame sequence is greater than a preset number of frames. The preset number of frames may be 1000 frames, 1500 frames, and so on.

[0030] In some embodiments, the image to be detected may be one frame of image or multiple frames of image in a video frame sequence, without specific limitation.

[0031] S12: Detect at least two objects among the stall type, carrier type and accessory type of the stall to be detected in the image to be detected, and determine the detection results of the at least two objects; the carrier type is the type of the carrier carrying the items in the stall to be detected, and the accessory type is the type of the accessory associated with the stall to be detected.

[0032] Specifically, a preset detection model can be used to perform image detection on at least two objects of the stall type, carrier type, and accessory type of the image to be detected. The preset detection model is a deep learning network model, which is pre-trained through a large number of training samples. The preset detection model can be an image detection model to perform image detection on video frames and obtain detection results.

[0033] More specifically, the preset detection model may be a target detection model for performing target detection on at least two objects of the stall type, carrier type, and accessory type of the stall to be detected. Determining the detection results of at least two objects is to determine whether the object is detected in the detection results. For example, the stall type and carrier type of the stall to be detected are detected, and it is determined whether the stall type and carrier type are detected.

[0034] Combined with the above content, when the video frame sequence includes multiple consecutive video frames, the preset detection model continuously performs image detection on the current video frame in the video frame sequence according to the acquisition time sequence of the video frames to obtain the image detection result of the current video frame. At this time, the current video frame is the image to be detected.

[0035] Specifically, the stall types can be divided according to the types of goods sold in the stalls. For example, the stall types may include fruit stalls, vegetable stalls, catering stalls, clothing stalls, grocery stalls, and the like.

[0036] The carrier type is the type of the carrier carrying the items in the stall to be inspected. For example, the carrier type may include motor vehicles, non-motor vehicles, ordinary containers, and the like.

[0037] The accessory type is the type of accessory associated with the stall to be detected, and the accessory type may be the type of other items in the stall except for goods and carriers. For example, the accessory type may be service supplies, shielding supplies, mobile gas and power supply supplies, etc. Among them, service supplies may include tables, chairs, etc., shielding supplies may include parasols, baffles, etc., and gas and power supply supplies may include gas tanks, generators, etc.

[0038] Of course, the classification of booth types, carrier types and accessory types is not limited to this.

[0039] In combination with the above content, the object detection model can be used to obtain the types of items in the stalls, so as to determine the stall type, carrier type and accessory type by the item types. For the stall to be detected, the number of stall types is 1, and the number of carrier types and accessory types can be 1 or greater than 1. Since there is only one stall type, when there are many types of items, the type of item corresponding to the largest number of items can be used as the basis for determining the stall type.

[0040] For example, when it is detected that a stall includes a large amount of fruit, the stall type can be obtained as a fruit stall. When it is detected that a stall includes a cart, the carrier type can be obtained as a non-motor vehicle type. When it is detected that the accessory type includes a gas tank, the accessory type can be obtained as a mobile gas and power supply type.

[0041] S13: Based on the detection results of at least two objects, determine whether the stall to be detected is a mobile stall.

[0042] Based on the detection results of at least two objects, it can be known whether the object is detected, and whether it is a mobile stall can be determined based on whether the object is detected. That is, based on the detection results of at least two detection objects, it can be known whether the stall type, carrier type and accessory type are detected, and thus the mobile stall can be judged.

[0043] For example, if the stall type, carrier type, and accessory type are detected in the image to be detected based on the detection result, then the stall is more likely to be a mobile stall. If the stall type and carrier type are detected, then the stall is less likely to be a mobile stall. If only the stall type is detected, then the stall is less likely to be a mobile stall.

[0044] In some embodiments, the possibility that the stall to be detected is a mobile stall can be obtained based on the detection result. When the possibility is greater than a threshold, the stall to be detected is treated as a mobile stall.

[0045] Therefore, during the stall detection process, the present application determines whether the stall to be detected is a mobile stall by combining the detection results of at least two objects among the stall type, carrier type and accessory type, thereby improving the accuracy of mobile stall detection.

[0046] See also Figure 2 , Figure 2 It is a flow chart of another embodiment of the mobile stall detection method of the present application.

[0047] Specifically, the above step S13 may be:

[0048] S21: Determine a booth evaluation value of the booth to be detected based on the detection results of at least two objects.

[0049] The booth evaluation value is a value used to evaluate the possibility that the booth is a mobile booth. The larger the booth evaluation value is, the greater the possibility that the booth to be detected is a mobile booth.

[0050] Each object may correspond to a preset evaluation value, and if an object is detected, the evaluation value corresponding to the object is calculated into the booth evaluation value. For example, if the booth type and the carrier type are detected, the preset evaluation values ​​corresponding to the booth type and the carrier type are calculated into the booth evaluation value.

[0051] Among them, different corresponding preset evaluation values ​​can be set, and can be set according to the importance of the object to the mobile stall judgment. An object can be set with different preset evaluation values, and different evaluation values ​​correspond to different objects under the same object.

[0052] S22: If it is determined that the booth evaluation value is greater than or equal to the preset booth evaluation value, the booth to be detected in the image to be detected is determined to be a mobile booth.

[0053] The preset stall evaluation value can be set according to the accuracy requirements of mobile stall detection. If higher accuracy is required to detect mobile stalls, a higher preset stall evaluation value can be set.

[0054] When the booth evaluation value is greater than or equal to the preset booth evaluation value, it means that more objects are detected in the image to be detected, or although fewer objects are detected, the objects are more important to the judgment of mobile booths.

[0055] Therefore, this embodiment determines the mobile stalls by obtaining the stall evaluation value, thereby achieving quantitative determination of the mobile stalls and improving the accuracy of the mobile stall determination.

[0056] Furthermore, the above step S21 may specifically include: determining a booth evaluation value of the booth to be inspected based on the inspection results of the at least two objects and the weights corresponding to the at least two objects.

[0057] That is, the booth evaluation value is set as a weight, different objects can correspond to different weights, and the same object can also be set with different weights. At this time, the booth evaluation value of the booth to be detected is the weight corresponding to the detection object.

[0058] Specifically, each stall type corresponds to a weight, and the weights corresponding to different stall types can be the same or different. Each carrier type corresponds to a weight, and the weights corresponding to different carrier types are different. Each accessory type corresponds to a weight, and the weights corresponding to different accessory types are different.

[0059] Specifically, when the detection results include stall type, carrier type and accessory type, the weights of the stall type, carrier type and accessory type are calculated based on the weights corresponding to the stall type, carrier type and accessory type, and the sum of the weights of the stall type, carrier type and accessory type is used as the weight of the image to be detected.

[0060] For example, the stall type is recorded as 1, and the weight of the stall type = 1 * the weight corresponding to the stall type. The weights of the carrier type and the accessory type are calculated similarly. For another example, the stall type is a fruit stall, and the weight corresponding to the fruit stall is 0.4, then the weight of the fruit stall is 1 * 0.4 = 0.4.

[0061] Among them, for the same stall, when there are more than two carrier types, the weight corresponding to the carrier type is the sum of the weights of different carrier types. Correspondingly, when there are multiple accessory types, the weight calculation is the same.

[0062] For example, when there are two carrier types, the weight of the carrier type is = 1*weight corresponding to one carrier type + 1*weight corresponding to another carrier type.

[0063] See also Figure 3 , Figure 3 It is a flow chart of another embodiment of the mobile stall detection method of the present application.

[0064] In combination with the above content, the image to be detected may include multiple frame images in the target video, the target video may be the above video frame sequence, and the multiple frame images may be continuous multiple frame images in the video frame sequence.

[0065] See also Figure 3 , Figure 3 It is a flow chart of another embodiment of the mobile stall detection method of the present application.

[0066] Specifically, the above step S13 may include:

[0067] S31: Determine a booth evaluation value of a booth to be detected in each frame of images based on detection results of at least two objects in each frame of images in the plurality of frames of images.

[0068] Specifically, the image currently being detected in the multiple frames of images is the image to be detected, and at least two objects in the image to be detected can be detected according to the acquisition order of the multiple frames of images to respectively obtain the booth evaluation value corresponding to each frame of image.

[0069] S32: Determine whether the booth to be detected is a mobile booth based on the booth evaluation value of the booth to be detected in each frame image and a preset booth evaluation value.

[0070] Specifically, the booth evaluation value of each frame of the multiple frames of images is compared with a preset booth evaluation value, thereby determining whether the booth to be detected in each frame of the image is a mobile booth.

[0071] For example, if a total of 1000 frames of images are acquired, the booth evaluation value of each frame of the image is compared with the preset booth evaluation value, and then it is determined whether the booth to be detected in each frame of the 1000 frames of images is a mobile booth.

[0072] See also Figure 4 , Figure 4 It is a flow chart of another embodiment of the mobile stall detection method of the present application.

[0073] In some embodiments, the above step S32 specifically includes:

[0074] S41: Determine the cumulative number of frame images whose booth evaluation value is greater than or equal to a preset booth evaluation value.

[0075] Specifically, after obtaining the stall evaluation value of a frame, it is determined whether the stall evaluation value of the frame is greater than or equal to the preset stall evaluation value. If the stall evaluation value of the frame is greater than the preset stall evaluation value, it means that the stall to be detected in the frame is likely to be a mobile stall.

[0076] Further, the total number of image frames whose booth evaluation values ​​are greater than or equal to the preset booth evaluation value in the multiple frames of images is obtained. For example, if the total number of image frames is 1000, and it is determined that the booth evaluation values ​​of 800 frames of images are greater than or equal to the preset booth evaluation value, then the cumulative number of frame images whose booth evaluation values ​​are greater than or equal to the preset booth evaluation value is 800.

[0077] In some embodiments, before step S41, the method further includes: determining whether the at least two objects include a booth type; if not, updating the preset booth evaluation value and the first frame number threshold.

[0078] It should be understood that if at least two objects do not include a stall type, it means that the stall type is not detected at this time, and the detected object may not even be a stall. At this time, if it is to be determined whether the stall is a mobile stall, it is necessary to further update the preset stall evaluation value and the first frame number threshold, thereby improving the accuracy of the detection.

[0079] In some embodiments, the preset stall evaluation value and the first frame number threshold may be increased.

[0080] S42: If it is determined that the accumulated number of frames is greater than the first frame number threshold, it is determined that the stall to be detected is a mobile stall.

[0081] The first frame number threshold may be a relatively large frame number threshold. It should be understood that when the cumulative frame number is greater than the first frame number threshold, it indicates that the stalls to be detected in a large number of image frames are likely to be mobile stalls, indicating that there is a high possibility of mobile stalls in the acquisition scenario of multiple frames of images. At this time, it is determined that the stalls to be detected in each frame of the image are mobile stalls, that is, the stalls to be detected in the images acquired in the detection scenario are mobile stalls.

[0082] In other embodiments, when the ratio between the accumulated number of frames and the total number of frames obtained is greater than a preset ratio, it may be determined that the stall to be detected is a mobile stall.

[0083] It should be understood that the stall to be detected is judged as a mobile stall only when it is determined that the cumulative number of frames is greater than the first frame number threshold. This determination method greatly improves the accuracy of mobile stall detection, and especially improves the accuracy of detecting whether there is a stable mobile stall in a specific scenario.

[0084] For example, when a mobile stall passes through the scene where the image frame is acquired, the preset stall evaluation value in a few image frames is greater than or equal to the preset stall evaluation value, but because the accumulated number of frames is too small at this time, the stall to be detected is not regarded as a mobile stall. At this time, the moving mobile stall is avoided from being detected as a mobile stall, ensuring the accuracy of detecting whether there is a stable mobile stall in a specific scene and ensuring the effectiveness of law enforcement.

[0085] S43: If it is determined that the accumulated frame number is greater than the second frame number threshold, an alarm message is issued, and the second frame number threshold is greater than the first frame number threshold.

[0086] Since the second frame number threshold is greater than the first frame number threshold, when the cumulative frame number is greater than the second frame number threshold, it means that a large number of image frames have booth evaluation values ​​greater than the preset booth evaluation value. At this time, it is very likely that the booth to be detected is a mobile booth.

[0087] At this time, the possibility of detecting mobile stalls is very high through alarm reminders to monitoring personnel, which can attract the attention of monitoring personnel, and then further conduct verification of specific image acquisition scenes, thereby improving the effectiveness of law enforcement.

[0088] See also Figure 5 , Figure 5 It is a flow chart of another embodiment of the mobile stall detection method of the present application.

[0089] In some embodiments, the above step S41 includes:

[0090] S51: Determine whether the booth evaluation value of the booth to be detected in the image to be detected is greater than or equal to a preset booth evaluation value.

[0091] Specifically, the booth evaluation value of the booth to be detected is compared with the preset booth evaluation value, and then it is determined whether the booth evaluation value of the booth to be detected is greater than the preset booth evaluation value.

[0092] If yes, execute step S52, if no, execute step S53.

[0093] S52: The cumulative number of frames increases by one frame.

[0094] The previously accumulated number of frames is increased by one frame. For example, the previously accumulated number of frames is 800 frames. If it is detected that the booth evaluation value in the image to be detected is greater than or equal to the preset booth evaluation value, the previously accumulated number of frames is increased by one frame, and the accumulated number of frames is 801 frames.

[0095] S53: Determine whether the booth evaluation value of the booth to be detected in the image to be detected is less than half of the preset booth evaluation value.

[0096] When the booth evaluation value of the booth to be detected in the image to be detected is less than the preset booth evaluation value, it is further determined whether the booth evaluation value of the booth to be detected in the image to be detected is less than half of the preset booth evaluation value. If yes, step S54 is executed, and if no, step S55 is executed.

[0097] S54: The accumulated number of frames decreases by one frame.

[0098] If the booth evaluation value of the booth to be detected in the image to be detected is less than half of the preset booth evaluation value, it means that the possibility that the booth to be detected in the image to be detected is a mobile booth is very small.

[0099] It should be understood that if the booth evaluation value of the booth to be detected in the continuous detection of multiple frames of images is less than half of the preset booth evaluation value, it means that the possibility of the existence of mobile booths in the image acquisition scene is very small. By reducing the cumulative number of frames, the influence of the previous cumulative number of frames on the current detection result can be eliminated, thereby improving the accuracy of the detection result.

[0100] S55: The accumulated number of frames remains unchanged.

[0101] If the booth evaluation value of the booth to be detected in the image to be detected is not less than half of the preset booth evaluation value, it means that although the booth to be detected in the image to be detected cannot be evaluated as a mobile booth, the booth to be detected is suspected to be a mobile booth. At this time, the cumulative number of frames remains unchanged, that is, the previous detection results are retained at this time, and the booth to be detected is further evaluated in combination with subsequent detection results.

[0102] See also Figure 6-Figure 10 , Figure 6 This is a schematic diagram of the fruit stall of this application. Figure 7 is another schematic diagram of the fruit stall of this application, Figure 8 This is a schematic diagram of the vegetable stall of this application. Fig. 9 is another schematic diagram of the vegetable stall of this application, Fig.10 It is a schematic diagram of the catering stall of this application.

[0103] In some specific embodiments, the stall types include fruit stalls, vegetable stalls, catering stalls, clothing stalls and other stall types. Figure 6 as well as Figure 7 , is a schematic diagram of a fruit stall; Figure 8 as well as Fig. 9 , is a schematic diagram of a vegetable stall; Fig.10 , a schematic diagram of a catering stall.

[0104] Specifically, the carrier type may include a first carrier and a second carrier, different carrier types correspond to different weights, and each carrier type may include multiple carriers. When one or more carriers belonging to the same carrier type are detected, only one carrier type is detected.

[0105] The loading capacity of the first carrier is greater than or equal to the preset loading capacity, and the loading capacity of the second carrier is less than the preset loading capacity. Therefore, the first carrier is a larger carrier, and the second carrier is a smaller carrier. For example, the first carrier may include a motor vehicle, a tricycle, a cart, etc., and the second carrier may include a storage basket, a storage bag, a storage box, etc.

[0106] Combination Figure 6 as well as Fig.10 , there is a motor vehicle in the stall, then there is a first carrier in the stall. Figure 7 as well as Fig. 9 , the stall has a cart and a tricycle respectively, then the stall has a first carrier. Figure 8 , there are no motor vehicles, tricycles and carts in the stall, and there are no large carriers in the stall. Figure 6 There is also a storage basket in the stall, and a small carrier is also provided in the stall. Figure 7 , Figure 8 as well as Fig. 9If there is a storage bag in the booth, there is also a small carrier in the booth.

[0107] The first carrier and the second carrier can be further refined into carrier types. The first carrier can include at least two first sub-carriers, and different first sub-carriers have different weights. The second carrier can include at least two second sub-carriers, and different second sub-carriers have different weights. For example, the first carrier includes two first sub-carriers, one first sub-carrier includes a tricycle, and the other first sub-carrier includes a motor vehicle.

[0108] In some embodiments, if the stall type is not detected, the weight of the first carrier is set to be greater than the weight of the accessory type, and the weight of the accessory type is set to be greater than the weight of the second carrier.

[0109] For example, the first carrier includes two first sub-carriers, the first sub-carrier includes a tricycle, and the other first sub-carrier includes a motor vehicle. The weight of the tricycle is 0.4, and the weight of the motor vehicle is 0.2. The weight of the accessory type is 0.2. At this time, there is only one accessory type, and the accessory types include umbrellas, tables, chairs, etc. The second carrier includes storage baskets, storage bags, and storage boxes, and the weight is 0.1.

[0110] In some specific embodiments, the stall type is a fruit stall, the weight of the fruit stall is greater than the weight of the first carrier, the weight of the first carrier is greater than the weight of the second carrier, and the weight of the second carrier is greater than or equal to the weight of the accessory type.

[0111] Specifically, the weight of a fruit stand is 0.4. The first carrier includes three first sub-carriers, one of which includes a tricycle and a cart, another first sub-carrier includes a motor vehicle, and another first sub-carrier includes a table. The weights of the tricycle and the cart are 0.3, the weight of the motor vehicle is 0.2, and the weight of the table is 0.05. The second carrier includes two second sub-carriers, one of which includes a storage basket and a storage basket, and the other second sub-carrier includes a storage bucket. The weights of the storage basket and the storage basket are 0.2, and the weight of the storage bucket is 0.1. The accessory type is a shielding umbrella, with a weight of 0.2.

[0112] It should be understood that because fruits are easily damaged, they are usually placed on certain carriers. Among them, when placed on a tricycle or a cart, the stall is more likely to be a mobile stall; when placed on a motor vehicle, the stall is less likely to be a mobile stall; when placed on a table, it is likely to be operated outside the store, and the possibility of a mobile stall is smaller. Therefore, when the stall type is a fruit stall, the first carrier is the main judgment condition, and the second carrier and the type of accessories are secondary conditions.

[0113] In some specific embodiments, the stall type is a vegetable stall, the weight of the vegetable stall is greater than the weight of the second carrier, the weight of the second carrier is greater than the weight of the first carrier, and the weight of the first carrier is greater than or equal to the weight of the accessory type.

[0114] Specifically, the weight of the vegetable stall is 0.4. The second carrier includes two second sub-carriers, one of which is a storage basket, a storage basket, and a storage bag, and the other second sub-carrier includes a storage bucket. The weights of the storage basket, the storage basket, and the storage bag are 0.3, and the weight of the storage bucket is 0.2. The first carrier is a tricycle with a weight of 0.1; the accessory type is a shielding umbrella with a weight of 0.1.

[0115] It should be understood that due to the short shelf life of vegetables, mobile vendors in the market usually sell in small quantities, and generally do not have the first carrier. Usually, the vegetables are placed directly on the ground or placed in storage baskets, storage baskets, storage bags and storage barrels for sale. In this case, the second carrier is the main judgment condition, and the first carrier and the shielding umbrella are secondary judgment conditions. The more types of second carriers there are, the more likely the stall is a mobile stall.

[0116] In some specific embodiments, the stall type is a catering stall, the weight of the first carrier is greater than the weight of the catering stall, the weight of the catering stall is greater than the weight of the accessory type, and the weight of the accessory type is greater than or equal to the weight of the second carrier.

[0117] Specifically, the weight of the food stall is 0.3. The first carrier is a tricycle with a weight of 0.4. The accessory types are gas tanks and parasols with a weight of 0.2. The second carrier includes two second sub-carriers, one of which includes a table and a chair, and the other includes a storage bucket and a storage bag. The weights of the table and the chair are 0.2, and the weights of the storage bucket and the storage bag are 0.1.

[0118] It should be understood that when the stall type is a catering stall, the first carrier is more likely to be needed, so the first carrier is used as the main judgment condition. At this time, the second carrier and the type of accessories are secondary judgment conditions. When the accessory type is a shielding umbrella and a gas tank, the stall is more likely to be a mobile stall.

[0119] In some specific embodiments, the stall type is a clothing stall, the weight of the stall type is greater than the stall type of the second carrier, the weight of the second carrier is greater than the type of the first carrier, and the type of the first carrier is greater than or equal to the type of the accessory type.

[0120] Specifically, the weight of the clothing stall is 0.4. The second carrier includes storage baskets, storage bags and storage boxes, and their weights are 0.3. The first carrier includes two first sub-carriers, one of which includes a motor vehicle and the other second sub-carrier includes a tricycle. The weight of the motor vehicle is 0.2 and the weight of the tricycle is 0.1. The accessory types include shade umbrellas, tables and chairs, and their weights are 0.1.

[0121] It should be understood that when the stall type is a clothing stall, the second carrier is used as the primary judgment condition, and the first carrier and the type of accessories are used as secondary conditions.

[0122] See also Fig.11 , Fig.11 It is a schematic diagram of the framework structure of the mobile stall detection device 20 of the present application.

[0123] A second aspect of the present application provides a mobile stall detection device 20, which includes a video frame acquisition module 201, a target detection module 202 and a processing module 203. The target detection module 202 is connected to the video frame acquisition module 201, and the processing module 203 is connected to the target detection module 202.

[0124] The video frame acquisition module 201 is used to acquire the image to be detected.

[0125] Among them, the target detection module 202 is used to detect at least two objects among the stall type, carrier type and accessory type of the stall to be detected in the detection image, and determine the detection results of at least two objects. The carrier type is the type of carrier carrying the items in the stall to be detected, and the accessory type is the type of accessory associated with the stall to be detected.

[0126] The processing module 203 is used to determine whether the stall to be detected is a mobile stall based on the detection results of at least two objects.

[0127] It should be understood that for the specific description of the corresponding steps executed by the above modules, reference can be made to the mobile stall detection method provided in the first aspect above.

[0128] See also Fig.12 , Fig.12 It is a schematic diagram of the framework structure of the electronic device 30 of the present application.

[0129] The third aspect of the present application provides an electronic device 30, including a processor 301 and a memory 302 coupled to each other, the processor 301 is used to execute program instructions stored in the memory 302 to implement the mobile stall detection method provided in the first aspect above.

[0130] In a specific implementation scenario, the electronic device 30 may include, but is not limited to: a microcomputer, a server, and in addition, the electronic device 30 may also include mobile devices such as a laptop computer and a tablet computer, which are not limited here.

[0131] Specifically, the processor 301 is used to control itself and the memory 302 to implement the steps of the above-mentioned mobile stall detection method embodiment. The processor 301 can also be called a CPU (Central Processing Unit). The processor 301 may be an integrated circuit chip with signal processing capabilities. The processor 301 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 301 can be implemented by an integrated circuit chip.

[0132] See also Fig.13 , Fig.13 It is a schematic diagram of the framework structure of the computer-readable storage medium 40 of the present application.

[0133] A fourth aspect of the present application provides a computer-readable storage medium 40 on which program instructions 401 are stored. When the program instructions 401 are executed by a processor, the mobile stall detection method provided in the first aspect is implemented.

[0134] The computer-readable storage medium 40 may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0135] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.

[0136] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A mobile stall detection method, characterized in that: The method comprises: Acquire the image to be detected; Detect at least two objects among a stall type, a carrier type, and an accessory type of the stall to be detected in the image to be detected, and determine detection results of the at least two objects; the carrier type is the type of a carrier carrying items in the stall to be detected, and the accessory type is the type of an accessory associated with the stall to be detected; Based on the detection results of the at least two objects, determining whether the booth to be detected is a mobile booth; Wherein, determining whether the booth to be detected is a mobile booth based on the detection results of the at least two objects includes: Determining a booth evaluation value of the booth to be detected based on the detection results of the at least two objects and the weights corresponding to the at least two objects; If it is determined that the booth evaluation value is greater than or equal to the preset booth evaluation value, then determining that the booth to be detected in the image to be detected is a mobile booth; The at least two objects include a booth type and a carrier type of the booth to be detected; the carrier type includes a first carrier and a second carrier; different carrier types correspond to different weights.

2. The method according to claim 1, characterized in that: The image to be detected includes multiple frames of images in the target video; Determining a booth evaluation value of the booth to be detected in the image to be detected based on the detection results of the at least two objects includes: Determine, based on the detection results of at least two objects in each frame of the multiple images, a booth evaluation value of the booth to be detected in each frame of the images; Based on the booth evaluation value of the booth to be detected in each frame image and the preset booth evaluation value, it is determined whether the booth to be detected is the mobile booth.

3. The method according to claim 2, characterized in that The determining whether the booth to be detected is the mobile booth based on the booth evaluation value of the booth to be detected in each frame image and the preset booth evaluation value includes: Determine the cumulative number of frame images whose booth evaluation value is greater than or equal to the preset booth evaluation value; If it is determined that the accumulated number of frames is greater than the first frame number threshold, the stall to be detected is determined to be the mobile stall.

4. The method according to claim 3, characterized in that After determining that the booth to be detected is the mobile booth, the method further includes: If it is determined that the accumulated frame number is greater than a second frame number threshold, an alarm message is issued, and the second frame number threshold is greater than the first frame number threshold.

5. The method according to claim 3, characterized in that: The step of determining the accumulated number of frame images whose booth evaluation value is greater than or equal to the preset booth evaluation value comprises: Determine whether the booth evaluation value of the booth to be detected in the image to be detected is greater than or equal to a preset booth evaluation value; If yes, the cumulative number of frames increases by one frame; If not, determining whether the booth evaluation value of the booth to be detected in the image to be detected is less than half of the preset booth evaluation value; If the booth evaluation value of the booth to be detected in the image to be detected is less than half of the preset booth evaluation value, the accumulated number of frames is reduced by one frame; If the booth evaluation value of the booth to be detected in the image to be detected is not less than half of the preset booth evaluation value, the accumulated number of frames remains unchanged.

6. The method according to claim 3, characterized in that Before determining the accumulated number of frame images whose booth evaluation value is greater than or equal to the preset booth evaluation value, the method further includes: determining whether the at least two objects include the stall type; If not, the preset booth evaluation value and the first frame number threshold are updated.

7. The method according to claim 1, characterized in that The stall type includes at least one of a fruit stall, a vegetable stall, a catering stall and a clothing stall; the loading capacity of the first carrier is greater than or equal to a preset loading capacity, and the loading capacity of the second carrier is less than the preset loading capacity.

8. The method according to claim 7, characterized in that The stall type is a fruit stall, the weight of the fruit stall is greater than the weight of the first carrier, the weight of the first carrier is greater than the weight of the second carrier, and the weight of the second carrier is greater than or equal to the weight of the accessory type; or The stall type is a vegetable stall, the weight of the vegetable stall is greater than the weight of the second carrier, the weight of the second carrier is greater than the weight of the first carrier, and the weight of the first carrier is greater than or equal to the weight of the accessory type; or The stall type is a catering stall, the weight of the first carrier is greater than the weight of the catering stall, the weight of the catering stall is greater than the weight of the accessory type, and the weight of the accessory type is greater than or equal to the weight of the second carrier; or The stall type is a clothing stall, the weight of the stall type is greater than the weight of the second carrier, the weight of the second carrier is greater than the weight of the first carrier, and the weight of the first carrier is greater than or equal to the weight of the accessory type.

9. The method according to claim 1, characterized in that: The at least two objects include the carrier type and the accessory type, the carrier type includes a first carrier and a second carrier, the loading capacity of the first carrier is greater than or equal to a preset loading capacity, and the loading capacity of the second carrier is less than the preset loading capacity; the weight of the first carrier is greater than the weight of the accessory type, and the weight of the accessory type is greater than the weight of the second carrier.

10. A mobile stall detection device, characterized in that: The device comprises: A video frame acquisition module is used to acquire the image to be detected; an object detection module, connected to the video frame acquisition module, and configured to detect at least two objects of the stall type, carrier type, and accessory type of the stall to be detected in the image to be detected, and determine the detection results of the at least two objects, wherein the carrier type is the type of the carrier carrying the items in the stall to be detected, and the accessory type is the type of the accessory associated with the stall to be detected; A processing module is connected to the target detection module, and determines whether the stall to be detected is a mobile stall based on the detection results of the at least two objects; wherein the processing module determines the stall evaluation value of the stall to be detected based on the detection results of the at least two objects and the weights corresponding to the at least two objects; if the processing module determines that the stall evaluation value is greater than or equal to the preset stall evaluation value, it is determined that the stall to be detected in the image to be detected is a mobile stall; wherein the at least two objects include the stall type and the carrier type of the stall to be detected; the carrier type includes a first carrier and a second carrier; different carrier types correspond to different weights.

11. An electronic device, characterized in that: It comprises a processor and a memory coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the mobile stall detection method according to any one of claims 1 to 9.

12. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by the processor, the mobile stall detection method described in any one of claims 1-9 is implemented.