WO2023184833A1 - Detection result processing method and apparatus, device, medium, and computer program product - Google Patents

Detection result processing method and apparatus, device, medium, and computer program product Download PDF

Info

Publication number
WO2023184833A1
WO2023184833A1 PCT/CN2022/114478 CN2022114478W WO2023184833A1 WO 2023184833 A1 WO2023184833 A1 WO 2023184833A1 CN 2022114478 W CN2022114478 W CN 2022114478W WO 2023184833 A1 WO2023184833 A1 WO 2023184833A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection result
detection
historical
preset
result
Prior art date
Application number
PCT/CN2022/114478
Other languages
French (fr)
Chinese (zh)
Inventor
李建
张辉
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023184833A1 publication Critical patent/WO2023184833A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques

Definitions

  • the present disclosure relates to, but is not limited to, the technical field of image processing, and in particular, to a detection result processing method and device, equipment, media and computer program products.
  • Embodiments of the present disclosure provide at least a detection result processing method and device, equipment, media and computer program products.
  • Embodiments of the present disclosure provide a detection result processing method, which includes: obtaining the detection result of the image to be detected; judging whether the detection result satisfies the preset condition based on the historical detection result; in response to the detection result satisfying the preset condition, executing the detection result corresponding to Preset processing.
  • Embodiments of the present disclosure provide a detection result processing device, including: a detection part configured to obtain detection results of images to be detected; a judgment part configured to judge whether the detection results meet preset conditions based on historical detection results; and an execution part , configured to execute preset processing corresponding to the detection result in response to the detection result meeting the preset condition.
  • An embodiment of the present disclosure provides an electronic device, including a memory and a processor.
  • the processor is configured to execute program instructions stored in the memory to implement the above detection result processing method.
  • Embodiments of the present disclosure provide a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the above detection result processing method is implemented.
  • Embodiments of the present disclosure provide a computer program product.
  • the computer program product includes a computer program or instructions.
  • the above detection results are achieved when the electronic device is executed. Approach.
  • the preset processing corresponding to the detection result is executed. Compared with after performing the detection, , directly executing the preset processing corresponding to the detection result can reduce the probability of mistakenly executing the preset processing.
  • Figure 1 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure
  • Figure 2 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure
  • Figure 3 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure
  • Figure 4 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a detection result processing device provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
  • a and/or B in this article is an association relationship that describes related objects, indicating that there can be three relationships.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations.
  • the character "/" in this article generally indicates that the related objects are an "or” relationship.
  • "many” in this article means two or more than two.
  • the term "at least one” herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean including from A, Any one or more elements selected from the set composed of B and C.
  • the generally adopted method includes re-training the detection model used for detection in the detection application system after it has been used for a period of time. In this way, before the detection model is retrained, because the detection results are inaccurate, the problem of incorrect execution of corresponding processing occurs frequently, thus reducing the credibility of the product.
  • FIG. 1 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 1, the detection result processing method may include the following steps S11 to S13, wherein:
  • Step S11 Obtain the detection result of the image to be detected.
  • the images to be detected may include but are not limited to security monitoring images, medical images, hand-drawn images, animated images, etc.
  • the image to be detected is a security surveillance image.
  • the security monitoring images may be captured by monitoring equipment, such as monitoring cameras installed on various streets.
  • the image to be detected can be taken in a bank scene, a street scene, a construction site scene, a school scene, etc.
  • the method of obtaining the detection result of the image to be detected may be performed using a detection model, or may be determined by performing data analysis on the image information of the image to be detected using preset rules. During implementation, whether using a detection model or using preset rules to detect images to be detected, erroneous detection results may occur.
  • the pictures taken will be different from those taken under normal circumstances, resulting in errors in the detection results of the images to be detected.
  • Step S12 Determine whether the detection results meet the preset conditions based on historical detection results.
  • the execution device of the detection result processing method provided by the embodiment of the present disclosure determines that the detection result is accurate. Similarly, if the detection result does not meet the preset conditions, the execution device determines that the detection result is inaccurate. .
  • the determination method may be by comparing historical detection results stored in the blacklist database. By comparing the test results of this test with historical test results, it is judged whether the test results obtained by this test meet the preset conditions.
  • the historical detection results may be historical detection results that do not meet preset conditions.
  • the historical detection results may be obtained by this execution device or by other execution devices. For example, the historical detection results in the blacklist database are all obtained by this execution device.
  • the blacklist database can also store the shooting component information of the historical detection images corresponding to each historical detection result.
  • the shooting component information may include but is not limited to the installation address, model, shooting parameters (exposure time, simulation gain, etc.) of the shooting component, etc. So that subsequent users can adjust the shooting component according to the shooting component information, thereby improving the quality of the images captured by the shooting component, or comparing the detection results of the images to be detected captured by the shooting component with the historical detection corresponding to the shooting component in the blacklist database. The results are compared and the corresponding judgment results are obtained.
  • Step S13 In response to the detection result satisfying the preset condition, execute the preset processing corresponding to the detection result.
  • the preset processing corresponding to the detection results can be customized by the user, and is not limited in the embodiments of the present disclosure.
  • the preset processing may be alarm processing, target recognition processing, uploading detection results and corresponding images to be detected to a preset recipient or a back-end business processing system, etc. For example, if an image to be detected taken on a city street is detected and it is found that there is a national protected animal that escaped from a zoo in the image, alarm processing will be performed so that the corresponding processor can rush to the street location corresponding to the image to be detected in time to deal with the problem. The animal is protected, and the detection results and the corresponding images to be detected are uploaded to the preset recipient, so that the preset recipient can perform corresponding operations based on the received detection results and the images to be detected.
  • the preset processing corresponding to the detection result is executed. In this way, compared with directly executing the preset processing corresponding to the detection result after performing the detection, the probability of mistakenly executing the preset processing can be reduced.
  • step S14 may also be performed based on the determination result of step S12.
  • Step S14 In response to the detection result not meeting the preset condition, do not execute the preset processing corresponding to the detection result.
  • the detection result is that a fight event is detected, and the preset processing corresponding to the fight event is alarm processing, but because the detection result does not meet the preset conditions, the alarm processing will no longer be performed.
  • the above step S11 may be performed by a detection model.
  • Historical detection results include historical false detection results with incorrect detection results. Among them, each historical misdetection result is stored in a preset blacklist database.
  • the detection result processing method may also include the following steps S15 to S16, wherein:
  • Step S15 Receive the instruction to update the detection model
  • Step S16 In response to the instruction, the detection model is updated.
  • the updated detection model is trained by combining the historical misdetection results with the historical images to be detected corresponding to the historical misdetection results.
  • the instruction is also used to train the detection model in combination with the historical to-be-detected images corresponding to the historical misdetection results, so that the trained detection model can subsequently be used to perform the step of detecting the to-be-detected images.
  • the process of training the detection model using historical misdetection results and corresponding historical images to be detected can be executed by the execution device of the detection result processing method provided by the embodiment of the present disclosure, or by other devices. For example, the training process is performed by other devices.
  • the historical misdetection results in the blacklist library and the historical undetected images corresponding to the historical misdetection results are fed back to the training device at regular intervals, so that the training device can use the received historical misdetection results and historical misdetection results to
  • the image to be detected performs targeted secondary training on the detection model, and then the trained detection model is fed back to the execution device, so that the execution device detects the image to be detected based on the detection model after the secondary training.
  • the detection result processing method provided by the embodiment of the present disclosure can be processed in a short time.
  • the problem of event misdetection, and through accumulation over a period of time, provide more targeted training samples for secondary training on the algorithm side.
  • the detection result processing method provided by the embodiment of the present disclosure can be continuously executed.
  • the model can also be forward trained based on non-historical false detection results and corresponding historical images to be detected. That is, the model is trained based on the historical misdetection results and the historical images to be detected corresponding to the historical misdetection results as negative samples, and the model is trained based on the non-historical misdetection results and the corresponding historical images to be detected as positive samples. Regarding the subsequent specific training method of the detection model, the embodiment of the present disclosure does not limit it.
  • the detection model is updated to a detection model trained by historical misdetection results and corresponding historical images to be detected, so that the accuracy of the next detection result is higher.
  • the detection result includes the detection result type and the accuracy corresponding to the detection result type.
  • the detection result is an object detection result
  • the detection result type is an object type
  • the detection result is an event detection result
  • the detection result type is an event type.
  • the accuracy corresponding to the detection result type refers to the accuracy of the presence of objects of this object type or events of this event type in the image to be detected.
  • the objects here can include but are not limited to human bodies, animal bodies, vehicles and other non-fixed objects that are stored in a fixed position and cannot move by themselves and cannot be moved by external forces.
  • object detection includes species detection
  • the detection result can be a species detection result
  • the detection result type can be a category to which the detected species belongs.
  • the accuracy of a detection result type refers to the probability that an object of that target category exists in the image to be detected.
  • Event detection can include but is not limited to corresponding event detection in different application scenarios.
  • any scenario can include detection of fight events, detection of red light running events in traffic scenarios, detection of vehicle speeding events, and preset impoliteness in bank scenarios. Customer behavior detection, smoking incident detection, etc.
  • the detection result may be a conclusion of whether the target event is contained in the image to be detected, and the type of the detection result may be the type of the target event.
  • the detection result there can be many kinds of target events contained in the image to be detected, and the types of detection results also include many kinds.
  • the type of the detection result includes the speeding event type and the red light running event type.
  • the accuracy of the detection result type refers to the probability that the target event type exists in the image to be detected.
  • step S12 before performing step S12, the following step S17 may also be performed, wherein:
  • Step S17 Determine whether the detection result type in the detection result is a preset detection result type.
  • step S12 is executed.
  • the number of preset detection result types is at least one.
  • the preset detection result type is the preset object type; when the detection is event detection, the preset detection result type is the preset event type.
  • the preset detection result type includes a red light running event type and a car accident event type. If the detection result type is a red light running event type or a car accident event type, step S12 is executed.
  • FIG. 2 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 2, the above-mentioned step S12 includes the following steps S21 to step S22, wherein:
  • Step S21 Determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy.
  • the preset accuracy is based on the historical accuracy in historical detection results.
  • the historical detection results are detection results based on historical images to be detected.
  • the preset accuracy may be dynamically determined.
  • the preset accuracy may be obtained from the historical accuracy corresponding to historical misdetection results.
  • step S21 before performing step S21, the method further includes step S20, wherein:
  • Step S20 Determine a preset accuracy based on the historical accuracy corresponding to historical detection results including the detection result type.
  • the historical accuracy corresponding to different detection result types is the same or different.
  • the history including the detection result type is the historical accuracy corresponding to the detection result, which is determined based on the historical accuracy corresponding to the historical false detection results with respect to the detection result type.
  • the detection model supports the detection of m preset detection result types (for example, fighting event type, smoking event type, etc.). If the detection result type in this detection result is a fighting event type, the preset detection results in the blacklist database will be Result Type Historical Accuracy for Fight Event Type as Default Accuracy. By determining the corresponding historical accuracy for different detection result types, the corresponding preset accuracy can be determined for the detection results of different detection result types, thereby improving the accuracy of the judgment results.
  • m preset detection result types for example, fighting event type, smoking event type, etc.
  • the preset accuracy is considered to be 0.
  • the historical accuracy corresponding to the detection result type is considered to be 0.
  • historical detection results containing a detection result type refer to historical detection results whose detection result type is a preset detection result type.
  • Historical false detection results containing detection result types refer to historical detection results in which the detection result type is the preset detection result type and the detection result is incorrect.
  • test results were obtained.
  • test results there were 10 test results with the test result type being the preset test result type (such as fighting event type, smoking event type, etc.), which means 90 of them
  • the preset detection result type was not detected in the image to be detected.
  • 3 of the 10 test results are incorrect, and 7 test results are correct.
  • 10 historical test results including the test result type there are 3 historical false test results in total.
  • step S20 includes steps S201 to S202, wherein:
  • Step S201 Obtain the historical accuracy of each historical misdetection result including the detection result type.
  • Step S202 Average the historical accuracy corresponding to each historical misdetection result to obtain a preset accuracy.
  • the preset accuracy in addition to the average of the historical accuracy corresponding to each historical misdetection result of the detection result type, can also be a result obtained by other statistical methods, such as each historical accuracy Median, maximum, minimum, etc.
  • the disclosed embodiments are not limiting.
  • the historical accuracy corresponding to the detection result type is obtained, which can improve the accuracy of the judgment result.
  • the detection model supports the detection of a total of m preset detection result types (for example, fighting event types, smoking event types, etc.), and the determination of the historical accuracy of the fighting event type is based on the correspondence of historical misdetection results of the fighting event type.
  • the historical accuracy corresponding to the smoking event type is also determined by the historical accuracy corresponding to the historical misdetection results of the smoking event type.
  • the blacklist database also includes information about the shooting components corresponding to each historical misdetection result. There may be multiple preset accuracies regarding detection result types, and different historical accuracies are determined by historical misdetection results corresponding to the corresponding shooting components.
  • the detection result type corresponds to the first number of preset accuracies. If the current detection result belongs to the detection result type, and the detection result is obtained from the image to be detected captured by one of the first number of photographing components, then the preset accuracy corresponding to the photographing component is used as the final preset accuracy.
  • the first number of detection result types Statistics are performed on each preset accuracy to obtain the final preset accuracy.
  • Specific statistical methods may include but are not limited to averaging, median, maximum, minimum, etc., which are not limited in the embodiment of the present disclosure.
  • Step S22 In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, determine that the detection result satisfies the preset condition.
  • the detection result type included in the detection result is a fight type
  • the accuracy corresponding to the detection result type is 0.6
  • the preset accuracy is 0.55
  • the detection result in response to the accuracy corresponding to the detection result type being less than the preset accuracy, it is determined that the detection result does not meet the preset condition.
  • the detection result in response to the accuracy corresponding to the detection result type being less than the preset accuracy, the detection result is regarded as the historical misdetection result, and the accuracy in the detection result is regarded as the historical accuracy.
  • a preset detection result type matching the detection result type in the blacklist library is determined, and the detection result is added to the preset detection result type set to re-determine the preset detection result type. Assume the historical accuracy corresponding to the detection result type.
  • the detection result of the image to be detected is discarded.
  • the detection results are judged based on historical a priori information, Improved the accuracy of judgment results.
  • FIG. 3 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 3, the above step S12 may include the following steps S31 to S33, wherein:
  • Step S31 Determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy.
  • the preset accuracy is based on the historical accuracy in historical detection results.
  • the specific step of determining whether the accuracy is greater than or equal to the preset accuracy please refer to the determination process in the above-mentioned step S21.
  • Step S32 In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtain the user's judgment result about the detection result.
  • the image to be detected and the detection result are displayed on the display interface so that the user can check the detection result. That is, the user determines whether the detection result corresponding to the image to be detected is accurate. Among them, the user can make a positive result to indicate that the detection result is correct, and can also make a negative result to indicate that the detection result is incorrect. In some application scenarios, when the accuracy corresponding to the detection result type is greater than or equal to the accuracy, the detection results are reported so that users can make manual judgments.
  • Step S33 In response to the determination result being a positive result indicating that the detection result is correct, determine that the detection result satisfies the preset condition.
  • the detection result in response to the determination result being a negative result indicating that the detection result is incorrect, it is determined that the detection result does not meet the preset condition. And, in response to the judgment result being a negative result indicating that the detection result is incorrect, the detection result is used as a historical false detection result.
  • the detection degree in this detection result is regarded as historical accuracy.
  • a preset detection result type matching the detection result type in the blacklist library is determined, and the detection result is added to the preset detection result type set to re-determine the preset detection result type. Set the preset accuracy corresponding to the detection result type so that it can be used when judging the detection results next time.
  • the detection result in response to the detection result not meeting the preset condition, is used as a historical false detection result.
  • the historical false detection results are used in the next detection process to determine whether the detection results obtained by the next detection meet the preset conditions.
  • the detection results that do not meet the preset conditions can be put into the blacklist library. And the detection results that do not meet the preset conditions and the corresponding images to be detected can be stored for subsequent use.
  • the detection result is used as a historical misdetection result, which can improve the accuracy of the next detection result judgment.
  • each historical false detection result and the feature sequence extracted from the corresponding historical image to be detected are recorded in the blacklist database.
  • the above step S12 may include the following steps S121 to S123, wherein:
  • Step S121 Obtain the target feature sequence corresponding to the detection result.
  • the target feature sequence is a feature sequence extracted from the image to be detected corresponding to the historical false detection results.
  • the target feature sequence is used to obtain the detection result of the corresponding image to be detected.
  • feature extraction is performed on the image to be detected to obtain a feature sequence of the image to be detected, and then based on the feature sequence, a detection result of the image to be detected is obtained.
  • Step S122 Match the feature sequence of the image to be detected corresponding to the detection result with the target feature sequence to obtain a matching result.
  • Step S123 Determine whether the detection result satisfies the preset condition based on the matching result.
  • step S123 includes step S1231 and/or step S1232, wherein:
  • Step S1231 In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than the preset matching degree, it is determined that the detection result does not meet the preset condition.
  • Step S1232 In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and in response to the judgment result indicating that the detection result is An unmistakable positive result confirms that the test results meet the preset conditions.
  • the detection result in response to the judgment result being a negative result indicating that the detection result is incorrect, the detection result is regarded as a historical false detection result.
  • the detection result type in this detection result is matched with the preset detection result type corresponding to each historical false detection result. If the matching is successful, the feature sequence of the image to be detected corresponding to the detection result is matched with the preset detection result type. The feature sequences of historical images corresponding to each historical false detection result under the detection result type are matched. If the matching degree is greater than or equal to the preset matching degree, the detection result is deemed not to meet the preset conditions. If the matching degree is less than the preset matching degree, the step of obtaining the user's judgment result regarding the detection result in step S32 is executed.
  • steps S18 to S19 may also be performed, wherein:
  • Step S18 Determine the false detection rate corresponding to each historical detection result within the preset historical time period.
  • the false detection rate is obtained based on the number of historical false detection results and the number of total historical detection results within a preset time period.
  • the false detection rate may be the ratio of the number of historical false detection results to the total number of historical detection results within a preset time period.
  • the length of the preset historical time period can be set according to user needs, and is not limited in this disclosed embodiment.
  • the preset historical time period may be several hours or several days before the current detection process is performed. Among them, some are one and above. For example, if the preset time period is m days, there are a total of historical detection results during these m days, and there are b historical false detection results, then the false detection rate is b/a.
  • the total historical detection results are not the number of detections performed within the preset historical time period, but a collection of historical detection results whose detection result type is the preset detection result type.
  • Historical false detection results refer to historical detection results with incorrect detection results. Please refer to the above for specific acquisition methods.
  • the preset historical time period is 1 day before the current image to be detected is obtained, and the number of detections performed during this time period is 100 times to obtain 100 detection results.
  • the detection result type is the preset detection result type (such as a fight event type, smoking event type, etc.), and 3 of the 10 do not meet the preset conditions, and 7 meet the preset conditions, then there are a total of 10 historical detection results, and historical false detections There were 3 copies in total.
  • Step S19 In response to the false detection rate being greater than the preset false detection rate, execute the above step S11.
  • the detection result of the image to be detected is obtained, and preset processing corresponding to the detection result is performed.
  • the above step S12 may not be executed, and the preset processing corresponding to the detection result may be directly executed.
  • the preset false detection rate can be customized by the user. For example, if the preset false detection rate is 5% and the false detection rate within the preset historical time period is 2%, it is determined that the detection result meets the preset conditions.
  • obtaining the false detection rate corresponding to each historical detection result within the preset historical time period and comparing the false detection rate with the preset false detection rate is performed prior to the above step S12. If the false detection rate is greater than the preset false detection rate, the above step S12 is executed. Or, when the false detection rate is less than or equal to the preset false detection rate, step S12 is not performed and the detection result is directly confirmed to meet the preset conditions. That is, when the false detection rate is less than or equal to the preset false detection rate, the preset processing corresponding to the detection result is executed. When the false detection rate of the detection results is low, the probability of incorrect detection results is also lower, and the process of making judgments by using the false detection rate is relatively convenient.
  • FIG. 4 is a schematic flow chart of a detection result processing method provided by the embodiment of the present disclosure.
  • the detection result processing method provided by the embodiment of the present disclosure includes the following steps S41 to S49, wherein:
  • Step S41 Obtain the image to be detected.
  • the method of obtaining the image to be detected may be that after the photographing component captures the image to be detected, it receives the image to be detected sent by the photographing component through a pre-established communication link between the photographing component and the image to be detected.
  • capturing the image to be detected is also performed by an execution device that executes the detection result processing method provided by the embodiments of the present disclosure.
  • Step S42 Detect the image to be detected and obtain the detection result of the image to be detected.
  • step S42 after performing step S42, continue to perform step S41, and perform step S42 on the newly acquired image to be detected.
  • Step S43 Determine whether the accuracy corresponding to the detection result type is greater than the preset accuracy.
  • step S44 is executed; otherwise, step S45 is executed.
  • Step S44 In response to the accuracy corresponding to the detection result type being less than the preset accuracy, determine that the detection result does not meet the preset condition.
  • step S42 is re-executed, thereby cyclically executing the target detection method provided by the embodiment of the present disclosure. Furthermore, the detection results are used as historical misdetection results, and the accuracy corresponding to the detection results is used as historical accuracy, which is used to update the corresponding preset accuracy. In some embodiments, after step S44 is performed, step S41 may be re-executed and the cycle continues.
  • Step S45 In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtain the user's judgment result about the detection result.
  • Step S46 Determine whether the result is a positive result indicating that the detection result is correct.
  • step S48 is executed; otherwise, step S47 is executed.
  • Step S47 In response to the judgment result being a negative result indicating that the detection result is incorrect, determine that the detection result does not meet the preset condition.
  • step S42 is executed again, and the detection result processing method provided by the embodiment of the present disclosure is cyclically executed.
  • Step S48 In response to the judgment result being a positive result indicating that the detection result is correct, determine that the detection result satisfies the preset condition.
  • Step S49 Execute preset processing corresponding to the detection result.
  • the preset processing corresponding to the detection result is executed. Compared with directly executing the processing corresponding to the detection result after the detection, For preset processing, the probability of mistakenly executing the preset processing can be reduced.
  • the detection result processing method provided by the embodiments of the present disclosure can be applied to detection application systems.
  • This detection application system can be applied to scenarios such as smart cities, public safety, and security.
  • the detection application system includes a bottom layer and a business layer.
  • the bottom layer performs detection of the image to be detected and determines whether the accuracy in the detection results is greater than or equal to the preset accuracy. When the accuracy is judged to be greater than or equal to the preset accuracy, the detection results are reported to the business layer. Otherwise, the detection results are directly stored in the blacklist database or discarded. The user will manually judge whether the detection result is accurate at the business layer. If it is accurate, the user will enter the business processing link to perform the preset processing corresponding to the detection result.
  • the detection result will be stored in the blacklist database or discarded.
  • the accuracy becomes higher and higher.
  • product expectations for example, less than or equal to the preset False detection rate
  • the execution subject of the detection result processing method may be a detection result processing device.
  • the detection result processing method may be executed by a terminal device or a server or other processing device, where the terminal device may be a user equipment (User Equipment). , UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.
  • the detection result processing method can be implemented by the processor calling computer readable instructions stored in the memory.
  • the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible The internal logic is determined.
  • FIG. 5 is a schematic structural diagram of a detection result processing device provided by an embodiment of the present disclosure.
  • the detection result processing device 50 includes a detection part 51 , a judgment part 52 and an execution part 53 .
  • the detection part 51 is configured to obtain the detection result corresponding to the image to be detected;
  • the judgment part 52 is configured to judge whether the detection result satisfies the preset condition based on the historical detection results;
  • the execution part 53 is configured to respond to the detection result satisfying the preset condition Conditions, execute the preset processing corresponding to the detection results.
  • the detection results include the detection result type and the accuracy corresponding to the detection result type; the judgment part 52 is also configured to: determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy, and the preset accuracy is The accuracy is obtained based on the historical accuracy in historical detection results; in response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, it is determined that the detection result satisfies the preset conditions.
  • the detection results include the detection result type and the accuracy corresponding to the detection result type; the judgment part 52 is also configured to: determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy, and the preset accuracy is The degree is obtained based on the historical accuracy in historical detection results; in response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, the user's judgment about the detection result is obtained; in response to the judgment result being an affirmation indicating that the detection result is correct As a result, it is determined that the detection results meet the preset conditions.
  • the judgment part 52 is further configured to determine the preset accuracy based on the historical accuracy corresponding to historical detection results including detection result types, where the historical accuracy corresponding to different detection result types is the same or different.
  • the historical detection results include historical misdetection results with incorrect detection results.
  • the judgment part 52 is also configured to: obtain the historical accuracy of each historical misdetection result including the detection result type; The historical accuracy of the inspection results is averaged to obtain the preset accuracy.
  • the judgment part 52 is further configured to: in response to the judgment result being a negative result indicating that the detection result is incorrect, use the detection result as a historical misdetection result.
  • the judgment part 52 is also configured to: determine the false detection rate corresponding to each historical detection result within the preset historical time period, and the false detection rate is based on the number and total number of historical false detection results within the preset time period. The number of historical detection results is obtained; the detection part 51 is also configured to: in response to the false detection rate being greater than the preset false detection rate, execute acquisition of the detection results of the image to be detected.
  • the detection part 51 is also configured to: obtain the detection result of the image to be detected when it is determined that the false detection rate is less than or equal to the preset false detection rate; the execution part 53 is also configured to: execute Preset processing corresponding to the detection results.
  • the historical detection results include historical misdetection results with incorrect detection results.
  • the judgment part 52 is also configured to: obtain a target feature sequence corresponding to the detection result, and the target feature sequence is corresponding to the historical misdetection results.
  • the feature sequence extracted from the image to be detected, the target feature sequence is used to obtain the detection result corresponding to the image to be detected; the feature sequence of the image to be detected corresponding to the detection result is matched with the target feature sequence to obtain the matching result; determined based on the matching result Check whether the test results meet the preset conditions.
  • the judgment part 52 is also configured to: in response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than the preset matching degree, determine that the detection result does not meet the preset condition. ; and/or, in response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and respond to the judgment result as indicating A positive result that the test result is correct, confirming that the test result meets the preset conditions.
  • the detection result processing device 50 includes an update part (not shown).
  • the step of detecting the image to be detected is performed by the detection model.
  • the update part is configured to: receive an instruction to update the detection model, and update the detection model in response to the instruction.
  • the updated detection model is combined with historical misdetection results.
  • the historical images to be detected corresponding to the historical false detection results are obtained by training the detection model.
  • the detection result is an object detection result, and the detection result type is an object type; or the detection result is an event detection result, and the detection result type is an event type.
  • part may be part of a circuit, part of a processor, part of a program or software, etc., of course, it may also be a unit, it may be a module or it may be non-modular.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the electronic device 60 includes a memory 61 and a processor 62 .
  • the processor 62 is used to execute program instructions stored in the memory 61 to implement the steps in any of the above detection result processing method embodiments.
  • the electronic device 60 may include but is not limited to: security equipment, medical equipment, microcomputers, desktop computers, and servers.
  • the electronic device 60 may also include mobile devices such as laptop computers and tablet computers, which will not be discussed here. limited.
  • electronic equipment includes driving devices and sensors.
  • the sensor is used to obtain the motion parameters of the shooting device
  • the driving device is connected to the processor and lens of the shooting device, and is used to receive instructions from the processor and drive the lens to move to adjust the posture of the lens.
  • the processor 62 is used to control itself and the memory 61 to implement the steps in any of the above detection result processing method embodiments.
  • the processor 62 may also be called a CPU (Central Processing Unit).
  • the processor 62 may be an integrated circuit chip with signal processing capabilities.
  • the processor 62 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 gate or transistor logic devices, discrete hardware components.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the processor 62 may be implemented by an integrated circuit chip.
  • FIG. 7 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
  • the computer-readable storage medium 70 stores program instructions 71. When the program instructions 71 are executed by the processor, the steps in any of the above detection result processing method embodiments are implemented.
  • An embodiment of the present disclosure also provides a computer program product.
  • the computer program product includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device causes the electronic device to execute any of the above. Steps in the embodiment of the detection result processing method.
  • the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium.
  • the computer program product is embodied as a software product, such as a software development kit (SDK) and so on.
  • SDK software development kit
  • the functions or included parts of the device provided by the embodiments of the present disclosure can be used to perform the methods described in the above method embodiments.
  • the disclosed methods and devices can be implemented in other ways.
  • the device implementation described above is schematic.
  • the division of parts or units is a logical function division.
  • units or components may be combined or integrated into another unit.
  • a system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units. Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products.
  • the technical solution of the present disclosure is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the various implementation methods of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
  • Embodiments of the present disclosure provide a detection result processing method and device, equipment, media and computer program products.
  • the detection result processing method includes: obtaining the detection result of the image to be detected; judging whether the detection result satisfies the preset based on the historical detection results. Condition; in response to the detection result meeting the preset condition, execute the preset processing corresponding to the detection result.
  • the above solution can filter the detection results and reduce the probability of misoperation in preprocessing.

Abstract

Embodiments of the present invention provide a detection result processing method and apparatus, a device, a medium, and a computer program product. The detection result processing method comprises: obtaining a detection result of an image to be detected; determining, on the basis of a historical detection result, whether the detection result satisfies a preset condition; and in response to the detection result satisfying the preset condition, executing preset processing corresponding to the detection result.

Description

检测结果处理方法和装置、设备、介质及计算机程序产品Test result processing methods and devices, equipment, media and computer program products
相关申请的交叉引用Cross-references to related applications
本公开实施例基于申请号为202210314170.1、申请日为2022年03月28日、申请名称为“检测结果处理方法和装置、设备、介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosed embodiment is based on a Chinese patent application with application number 202210314170.1, application date is March 28, 2022, and the application name is "Detection result processing method and device, equipment, medium", and claims the priority of this Chinese patent application , the entire content of this Chinese patent application is hereby incorporated by reference into this disclosure.
技术领域Technical field
本公开涉及但不限于图像处理技术领域,尤其涉及一种检测结果处理方法和装置、设备、介质及计算机程序产品。The present disclosure relates to, but is not limited to, the technical field of image processing, and in particular, to a detection result processing method and device, equipment, media and computer program products.
背景技术Background technique
相关技术中,由于待检测图像和检测环境的千差万别,导致检测结果不准确,降低了产品的可信度。In related technologies, due to the wide variety of images to be detected and detection environments, the detection results are inaccurate and the credibility of the product is reduced.
发明内容Contents of the invention
本公开实施例至少提供一种检测结果处理方法和装置、设备、介质及计算机程序产品。Embodiments of the present disclosure provide at least a detection result processing method and device, equipment, media and computer program products.
本公开实施例提供了一种检测结果处理方法,包括:获取待检测图像的检测结果;基于历史检测结果判断检测结果是否满足预设条件;响应于检测结果满足预设条件,执行检测结果对应的预设处理。Embodiments of the present disclosure provide a detection result processing method, which includes: obtaining the detection result of the image to be detected; judging whether the detection result satisfies the preset condition based on the historical detection result; in response to the detection result satisfying the preset condition, executing the detection result corresponding to Preset processing.
本公开实施例提供了一种检测结果处理装置,包括:检测部分,被配置为获取待检测图像的检测结果;判断部分,被配置为基于历史检测结果判断检测结果是否满足预设条件;执行部分,被配置为响应于检测结果满足预设条件,执行检测结果对应的预设处理。Embodiments of the present disclosure provide a detection result processing device, including: a detection part configured to obtain detection results of images to be detected; a judgment part configured to judge whether the detection results meet preset conditions based on historical detection results; and an execution part , configured to execute preset processing corresponding to the detection result in response to the detection result meeting the preset condition.
本公开实施例提供了一种电子设备,包括存储器和处理器,处理器用于执行存储器中存储的程序指令,以实现上述检测结果处理方法。An embodiment of the present disclosure provides an electronic device, including a memory and a processor. The processor is configured to execute program instructions stored in the memory to implement the above detection result processing method.
本公开实施例提供了一种计算机可读存储介质,其上存储有程序指令,程序指令被处理器执行时实现上述检测结果处理方法。Embodiments of the present disclosure provide a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the above detection result processing method is implemented.
本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在电子设备上运行的情况下,使得所述电子设备执行时实现上述检测结果处理方法。Embodiments of the present disclosure provide a computer program product. The computer program product includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the above detection results are achieved when the electronic device is executed. Approach.
在本公开实施例中,通过在获取到待检测图像的检测结果后,并且基于历史检测结果判断检测结果满足预设条件的情况下,执行检测结果对应的预设处理,相比在进行检测之后,直接执行检测结果对应的预设处理而言,能够减少误执行预设处理的概率。In the embodiment of the present disclosure, after obtaining the detection result of the image to be detected, and judging that the detection result satisfies the preset conditions based on the historical detection results, the preset processing corresponding to the detection result is executed. Compared with after performing the detection, , directly executing the preset processing corresponding to the detection result can reduce the probability of mistakenly executing the preset processing.
应当理解的是,以上的一般描述和后文的细节描述是示例性和解释性的,而非限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory, and are not restrictive of the disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings herein are incorporated into and constitute a part of this specification. They illustrate embodiments consistent with the disclosure and, together with the description, serve to explain the technical solutions of the disclosure.
图1为本公开实施例提供的一种检测结果处理方法的流程示意图;Figure 1 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种检测结果处理方法的示出步骤S12的部分子流程示意图;Figure 2 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的一种检测结果处理方法的示出步骤S12的部分子流程示意图;Figure 3 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种检测结果处理方法的流程示意图;Figure 4 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种检测结果处理装置的结构示意图;Figure 5 is a schematic structural diagram of a detection result processing device provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种电子设备的结构示意图;Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种计算机可读存储介质的结构示意图。FIG. 7 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面结合说明书附图,对本公开实施例的方案进行详细说明。The solutions of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本公开。In the following description, for purposes of explanation and not limitation, specific details such as specific system structures, interfaces, technologies, and the like are set forth in order to provide a thorough understanding of the present disclosure.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。此外,本文中的“多”表示两个或者多于两个。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is an association relationship that describes related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean including from A, Any one or more elements selected from the set composed of B and C.
相关技术中,由于待检测图像和检测环境的千差万别,导致检测结 果不准在项目初期是经常遇到的问题,也是比较严重的问题。一般采用的方式包括检测应用系统中用于检测的检测模型在应用一段时间后,重新对检测模型进行二次训练。这样在该检测模型还未重新训练过程中,因为检测结果不准确,导致错误执行对应处理的问题频发,从而降低产品的可信度。In related technologies, due to the wide variety of images to be detected and detection environments, inaccurate detection results are a common problem encountered in the early stages of the project, and it is also a relatively serious problem. The generally adopted method includes re-training the detection model used for detection in the detection application system after it has been used for a period of time. In this way, before the detection model is retrained, because the detection results are inaccurate, the problem of incorrect execution of corresponding processing occurs frequently, thus reducing the credibility of the product.
图1为本公开实施例提供的一种检测结果处理方法的流程示意图。如图1所示,该检测结果处理方法可以包括如下步骤S11至步骤S13,其中:Figure 1 is a schematic flowchart of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 1, the detection result processing method may include the following steps S11 to S13, wherein:
步骤S11:获取待检测图像的检测结果。Step S11: Obtain the detection result of the image to be detected.
这里,待检测图像可以包括但不限于安防监控图像、医疗图像、手绘图像、动画图像等。例如,待检测图像为安防监控图像。其中,该安防监控图像可以是由监控设备拍摄得到的,比如,安装于各街道的监控摄像头。Here, the images to be detected may include but are not limited to security monitoring images, medical images, hand-drawn images, animated images, etc. For example, the image to be detected is a security surveillance image. The security monitoring images may be captured by monitoring equipment, such as monitoring cameras installed on various streets.
在一些应用场景中,待检测图像可以是银行场景下拍摄得到的、街道场景下拍摄得到的、工地场景下拍摄得到的、学校场景下拍摄得到等。In some application scenarios, the image to be detected can be taken in a bank scene, a street scene, a construction site scene, a school scene, etc.
其中,获取待检测图像的检测结果的方式可以是使用检测模型执行,还可以是使用预设规则,通过对待检测图像的图像信息进行数据分析确定的。在实施时,无论是使用检测模型还是使用预设规则对待检测图像进行检测,都有可能出现错误的检测结果。The method of obtaining the detection result of the image to be detected may be performed using a detection model, or may be determined by performing data analysis on the image information of the image to be detected using preset rules. During implementation, whether using a detection model or using preset rules to detect images to be detected, erroneous detection results may occur.
例如,若用于拍摄的镜头出现雾、水珠、以及树叶等物体遮挡,导致拍摄出的图片与正常情况下拍摄得到的图片存在一定的区别,导致得到的待检测图像的检测结果出现错误。For example, if the lens used for shooting is blocked by objects such as fog, water droplets, leaves, etc., the pictures taken will be different from those taken under normal circumstances, resulting in errors in the detection results of the images to be detected.
步骤S12:基于历史检测结果判断检测结果是否满足预设条件。Step S12: Determine whether the detection results meet the preset conditions based on historical detection results.
这里,若检测结果满足预设条件,则本公开实施例提供的检测结果处理方法的执行设备则确定检测结果准确,同理,若检测结果不满足预设条件,执行设备则确定检测结果不准确。Here, if the detection result meets the preset conditions, the execution device of the detection result processing method provided by the embodiment of the present disclosure determines that the detection result is accurate. Similarly, if the detection result does not meet the preset conditions, the execution device determines that the detection result is inaccurate. .
在一些实施方式中,该判断方式可以是通过与黑名单库中存放的历史检测结果进行比较。通过将此次检测的检测结果与历史检测结果进行比较,以此判断此次检测得到的检测结果是否满足预设条件。其中,历史检测结果可以是不满足预设条件的历史检测结果。该历史检测结果可以是由本执行设备得到,还可以是由其他执行设备得到。例如,黑名单库中的历史检测结果均为本执行设备得到。In some implementations, the determination method may be by comparing historical detection results stored in the blacklist database. By comparing the test results of this test with historical test results, it is judged whether the test results obtained by this test meet the preset conditions. The historical detection results may be historical detection results that do not meet preset conditions. The historical detection results may be obtained by this execution device or by other execution devices. For example, the historical detection results in the blacklist database are all obtained by this execution device.
在一些应用场景中,黑名单库中还可存放各历史检测结果对应历史检测图像的拍摄组件信息。In some application scenarios, the blacklist database can also store the shooting component information of the historical detection images corresponding to each historical detection result.
例如,拍摄组件信息可以包括但不限于拍摄组件的安装地址、型号、拍摄参数(曝光时间、模拟增益等)等。以便后续用户可以根据拍摄组件信息对拍摄组件进行调整,从而提高该拍摄组件所拍摄图像的质量,或者将该拍摄组件所拍摄待检测图像的检测结果与黑名单库中该拍摄组件对应的历史检测结果进行比较,得到对应的判断结果。For example, the shooting component information may include but is not limited to the installation address, model, shooting parameters (exposure time, simulation gain, etc.) of the shooting component, etc. So that subsequent users can adjust the shooting component according to the shooting component information, thereby improving the quality of the images captured by the shooting component, or comparing the detection results of the images to be detected captured by the shooting component with the historical detection corresponding to the shooting component in the blacklist database. The results are compared and the corresponding judgment results are obtained.
步骤S13:响应于检测结果满足预设条件,执行检测结果对应的预设处理。Step S13: In response to the detection result satisfying the preset condition, execute the preset processing corresponding to the detection result.
这里,检测结果对应的预设处理可以由用户自定义,本公开实施例不作限定。Here, the preset processing corresponding to the detection results can be customized by the user, and is not limited in the embodiments of the present disclosure.
例如,预设处理可以是报警处理、目标识别处理、上传检测结果与对应的待检测图像至预设接收方或者后端的业务处理系统等等。比如,若对城市街道拍摄得到的待检测图像进行检测,得到该图像中存在某动物园出逃的国家级保护动物,则执行报警处理以便对应的处理人及时赶往待检测图像对应的街道地点对该动物进行保护,以及通过将检测结果和对应的待检测图像上传至预设接收方,以便预设接收方根据接收到的检测结果和待检测图像执行其对应的操作。For example, the preset processing may be alarm processing, target recognition processing, uploading detection results and corresponding images to be detected to a preset recipient or a back-end business processing system, etc. For example, if an image to be detected taken on a city street is detected and it is found that there is a national protected animal that escaped from a zoo in the image, alarm processing will be performed so that the corresponding processor can rush to the street location corresponding to the image to be detected in time to deal with the problem. The animal is protected, and the detection results and the corresponding images to be detected are uploaded to the preset recipient, so that the preset recipient can perform corresponding operations based on the received detection results and the images to be detected.
在本公开实施例中,通过在获取到待检测图像的检测结果后,并且基于历史检测结果判断检测结果满足预设条件的情况下,执行检测结果对应的预设处理。这样,相比在进行检测之后,直接执行检测结果对应的预设处理而言,能够减少误执行预设处理的概率。In the embodiment of the present disclosure, after obtaining the detection result of the image to be detected, and judging that the detection result satisfies the preset condition based on the historical detection results, the preset processing corresponding to the detection result is executed. In this way, compared with directly executing the preset processing corresponding to the detection result after performing the detection, the probability of mistakenly executing the preset processing can be reduced.
在一些实施例中,在执行步骤S12之后,根据步骤S12的判断结果,还可执行步骤S14。In some embodiments, after performing step S12, step S14 may also be performed based on the determination result of step S12.
步骤S14:响应于检测结果不满足预设条件,不执行检测结果对应的预设处理。Step S14: In response to the detection result not meeting the preset condition, do not execute the preset processing corresponding to the detection result.
例如,若检测结果为检测到打架事件,而打架事件对应的预设处理为报警处理,但是因为检测结果不满足预设条件,则不再执行报警处理。For example, if the detection result is that a fight event is detected, and the preset processing corresponding to the fight event is alarm processing, but because the detection result does not meet the preset conditions, the alarm processing will no longer be performed.
在一些实施方式中,上述步骤S11可以是由检测模型执行的。历史检测结果包括检测结果有误的历史误检结果。其中,各历史误检结果存放在预先设定的黑名单库中。In some implementations, the above step S11 may be performed by a detection model. Historical detection results include historical false detection results with incorrect detection results. Among them, each historical misdetection result is stored in a preset blacklist database.
在一些实施例中,检测结果处理方法还可包括以下步骤S15至步骤 S16,其中:In some embodiments, the detection result processing method may also include the following steps S15 to S16, wherein:
步骤S15:接收更新检测模型的指令;Step S15: Receive the instruction to update the detection model;
步骤S16:响应于该指令对检测模型进行更新,更新后的检测模型是由历史误检结果结合历史误检结果对应的历史待检测图像训练得到的。Step S16: In response to the instruction, the detection model is updated. The updated detection model is trained by combining the historical misdetection results with the historical images to be detected corresponding to the historical misdetection results.
在一些实施方式中,该指令还用于结合该历史误检结果对应的历史待检测图像,对检测模型进行训练,以便后续使用训练后的检测模型执行对待检测图像进行检测的步骤。其中,使用历史误检结果以及对应的历史待检测图像,对检测模型进行训练的过程可以由本公开实施例提供的检测结果处理方法的执行设备执行,也可以由其他设备执行。例如,该训练过程由其他设备执行。In some embodiments, the instruction is also used to train the detection model in combination with the historical to-be-detected images corresponding to the historical misdetection results, so that the trained detection model can subsequently be used to perform the step of detecting the to-be-detected images. The process of training the detection model using historical misdetection results and corresponding historical images to be detected can be executed by the execution device of the detection result processing method provided by the embodiment of the present disclosure, or by other devices. For example, the training process is performed by other devices.
在一些应用场景中,每隔一段时间,将黑名单库中的历史误检结果以及历史误检结果对应的历史待检测图像反馈至训练设备,以便训练设备根据接收到的历史误检结果以及历史待检测图像对检测模型进行针对性的二次训练,进而将训练好的检测模型反馈到执行设备,以便执行设备根据二次训练之后的检测模型对待检测图像进行检测。In some application scenarios, the historical misdetection results in the blacklist library and the historical undetected images corresponding to the historical misdetection results are fed back to the training device at regular intervals, so that the training device can use the received historical misdetection results and historical misdetection results to The image to be detected performs targeted secondary training on the detection model, and then the trained detection model is fed back to the execution device, so that the execution device detects the image to be detected based on the detection model after the secondary training.
在本公开实施例中,由于重新训练检测模型比较耗时,同时对模型的训练都要依赖于一定的样本数据,那么,通过本公开实施例提供的检测结果处理方法,可以在短时间内处理事件误检的问题,同时通过一段时间的积累,为算法侧二次训练提供了更加针对性的训练样本。进一步地,在检测模型的二次训练过程中,本公开实施例提供的检测结果处理方法可以持续执行。In the embodiment of the present disclosure, since retraining the detection model is time-consuming, and the training of the model depends on certain sample data, the detection result processing method provided by the embodiment of the present disclosure can be processed in a short time. The problem of event misdetection, and through accumulation over a period of time, provide more targeted training samples for secondary training on the algorithm side. Furthermore, during the secondary training process of the detection model, the detection result processing method provided by the embodiment of the present disclosure can be continuously executed.
在一些实施例中,还可根据非历史误检结果以及对应的历史待检测图像对模型进行正向训练。即,根据历史误检结果以及历史误检结果对应的历史待检测图像作为负样本对模型进行训练,以及根据非历史误检结果以及对应的历史待检测图像作为正样本对模型进行训练。关于后续对检测模型具体的训练方式,本公开实施例不作限定。In some embodiments, the model can also be forward trained based on non-historical false detection results and corresponding historical images to be detected. That is, the model is trained based on the historical misdetection results and the historical images to be detected corresponding to the historical misdetection results as negative samples, and the model is trained based on the non-historical misdetection results and the corresponding historical images to be detected as positive samples. Regarding the subsequent specific training method of the detection model, the embodiment of the present disclosure does not limit it.
在本公开实施例中,通过将检测模型更新为经历史误检结果和对应的历史待检测图像训练后的检测模型,使得下次检测结果的准确度更高。In the embodiment of the present disclosure, the detection model is updated to a detection model trained by historical misdetection results and corresponding historical images to be detected, so that the accuracy of the next detection result is higher.
在一些实施例中,检测结果包括检测结果类型以及检测结果类型对应的准确度。In some embodiments, the detection result includes the detection result type and the accuracy corresponding to the detection result type.
在一些实施例中,检测结果为对象检测结果,检测结果类型为对象 类型。或检测结果为事件检测结果,检测结果类型为事件类型。检测结果类型对应的准确度指的是待检测图像中存在该对象类型的对象或该事件类型的事件的准确度。In some embodiments, the detection result is an object detection result, and the detection result type is an object type. Or the detection result is an event detection result, and the detection result type is an event type. The accuracy corresponding to the detection result type refers to the accuracy of the presence of objects of this object type or events of this event type in the image to be detected.
其中,这里的对象可以包括但不限于人体、动物体、车辆等非固定存放在一个固定位置自身无法移动且无法在外力作用下移动的物体。Among them, the objects here can include but are not limited to human bodies, animal bodies, vehicles and other non-fixed objects that are stored in a fixed position and cannot move by themselves and cannot be moved by external forces.
例如,对象检测包括物种检测,检测结果可以为物种检测结果,检测结果类型可以为检测到的物种所属的类别。检测结果类型的准确度指的是待检测图像中存在该目标类别的对象的概率。For example, object detection includes species detection, the detection result can be a species detection result, and the detection result type can be a category to which the detected species belongs. The accuracy of a detection result type refers to the probability that an object of that target category exists in the image to be detected.
事件检测可以包括但不限于不同应用场景下对应的事件检测,例如,任何场景下均可包括的打架事件检测、交通场景下的闯红灯事件检测、车辆超速事件检测、银行场景下的预设不礼貌待客户的行为检测、抽烟事件检测等等。在事件检测中,检测结果可以是待检测图像中是否包含目标事件的结论,检测结果的类型可以为目标事件的类型。其中,待检测图像中包含的目标事件可以有多种,则检测结果的类型也包括多种。Event detection can include but is not limited to corresponding event detection in different application scenarios. For example, any scenario can include detection of fight events, detection of red light running events in traffic scenarios, detection of vehicle speeding events, and preset impoliteness in bank scenarios. Customer behavior detection, smoking incident detection, etc. In event detection, the detection result may be a conclusion of whether the target event is contained in the image to be detected, and the type of the detection result may be the type of the target event. Among them, there can be many kinds of target events contained in the image to be detected, and the types of detection results also include many kinds.
例如,待检测图像中包含超速事件以及闯红灯事件,则检测结果的类型包含超速事件类型以及闯红灯事件类型。检测结果类型的准确度指的是待检测图像中存在目标事件类型的概率。For example, if the image to be detected contains speeding events and red light running events, the type of the detection result includes the speeding event type and the red light running event type. The accuracy of the detection result type refers to the probability that the target event type exists in the image to be detected.
在一些应用场景中,在执行步骤S12之前还可执行以下步骤S17,其中:In some application scenarios, before performing step S12, the following step S17 may also be performed, wherein:
步骤S17:判断检测结果中检测结果类型是否为预设检测结果类型。Step S17: Determine whether the detection result type in the detection result is a preset detection result type.
这里,响应于检测结果类型为预设检测结果类型,则执行步骤S12。其中,预设检测结果类型的数量为至少一种。Here, in response to the detection result type being the preset detection result type, step S12 is executed. The number of preset detection result types is at least one.
在一些实施方式中,在检测为对象检测的情况下,预设检测结果类型为预设对象类型;在检测为事件检测时,预设检测结果类型为预设事件类型。In some implementations, when the detection is object detection, the preset detection result type is the preset object type; when the detection is event detection, the preset detection result type is the preset event type.
例如,检测为事件检测,预设检测结果类型包括闯红灯事件类型以及车祸事件类型,在检测结果类型为闯红灯事件类型或车祸事件类型的情况下,执行步骤S12。For example, if the detection is event detection, the preset detection result type includes a red light running event type and a car accident event type. If the detection result type is a red light running event type or a car accident event type, step S12 is executed.
图2为本公开实施例提供的一种检测结果处理方法的示出步骤S12的部分子流程示意图。如图2所示,上述步骤S12包括以下步骤S21至步骤S22,其中:FIG. 2 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 2, the above-mentioned step S12 includes the following steps S21 to step S22, wherein:
步骤S21:判断检测结果类型对应的准确度是否大于或等于预设准 确度。Step S21: Determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy.
这里,预设准确度是基于历史检测结果中的历史准确度得到的。该历史检测结果为基于历史待检测图像进行检测得到的检测结果。其中,预设准确度可以是动态确定的。在一些实施方式中,该预设准确度可以为历史误检结果对应的历史准确度得到的。Here, the preset accuracy is based on the historical accuracy in historical detection results. The historical detection results are detection results based on historical images to be detected. Wherein, the preset accuracy may be dynamically determined. In some implementations, the preset accuracy may be obtained from the historical accuracy corresponding to historical misdetection results.
在一些实施方式中,在执行步骤S21之前,所述方法还包括步骤S20,其中:In some embodiments, before performing step S21, the method further includes step S20, wherein:
步骤S20:基于包含检测结果类型的历史检测结果对应的历史准确度确定预设准确度。Step S20: Determine a preset accuracy based on the historical accuracy corresponding to historical detection results including the detection result type.
这里,不同检测结果类型对应的历史准确度相同或不同。Here, the historical accuracy corresponding to different detection result types is the same or different.
在一些实施方式中,包含检测结果类型的历史为检测结果对应的历史准确度是基于关于检测结果类型的历史误检结果对应的历史准确度确定的。In some embodiments, the history including the detection result type is the historical accuracy corresponding to the detection result, which is determined based on the historical accuracy corresponding to the historical false detection results with respect to the detection result type.
例如,检测模型一共支持检测m种预设检测结果类型(比如,打架事件类型、抽烟事件类型等),若此次检测结果中检测结果类型为打架事件类型,则将黑名单库中预设检测结果类型为打架事件类型的历史准确度作为预设准确度。通过对不同检测结果类型分别确定对应的历史准确度,使得能够针对不同检测结果类型的检测结果确定对应的预设准确度,从而提高判断结果的准确度。For example, the detection model supports the detection of m preset detection result types (for example, fighting event type, smoking event type, etc.). If the detection result type in this detection result is a fighting event type, the preset detection results in the blacklist database will be Result Type Historical Accuracy for Fight Event Type as Default Accuracy. By determining the corresponding historical accuracy for different detection result types, the corresponding preset accuracy can be determined for the detection results of different detection result types, thereby improving the accuracy of the judgment results.
在一些应用场景中,在项目运行初期,黑名单库中不存在历史检测结果,则认为预设准确度为0。In some application scenarios, in the early stages of project operation, if there are no historical detection results in the blacklist database, the preset accuracy is considered to be 0.
在一些实施方式中,若黑名单中不存在检测结果类型对应的历史误检结果,则认为检测结果类型对应的历史准确度为0。In some implementations, if there is no historical false detection result corresponding to the detection result type in the blacklist, the historical accuracy corresponding to the detection result type is considered to be 0.
在一些实施方式中,包含检测结果类型的历史检测结果指的是检测结果类型为预设检测结果类型的历史检测结果。包含检测结果类型的历史误检结果指的是检测结果类型为预设检测结果类型,且检测结果有误的历史检测结果。In some embodiments, historical detection results containing a detection result type refer to historical detection results whose detection result type is a preset detection result type. Historical false detection results containing detection result types refer to historical detection results in which the detection result type is the preset detection result type and the detection result is incorrect.
例如,一共执行了100次检测得到100份检测结果,其中,检测结果类型为预设检测结果类型(例如打架事件类型、抽烟事件类型等)的检测结果一共有10份,也就是说其中90份待检测图像中并未检测到预设检测结果类型。且该10份中有3份检测结果有误,7份检测结果无误,则包含检测结果类型的历史检测结果一共有10份,历史误检结果一共 有3份。For example, a total of 100 tests were performed and 100 test results were obtained. Among them, there were 10 test results with the test result type being the preset test result type (such as fighting event type, smoking event type, etc.), which means 90 of them The preset detection result type was not detected in the image to be detected. And 3 of the 10 test results are incorrect, and 7 test results are correct. Then there are 10 historical test results including the test result type, and there are 3 historical false test results in total.
在一些实施例中,上述步骤S20包括步骤S201至步骤S202,其中:In some embodiments, the above step S20 includes steps S201 to S202, wherein:
步骤S201:获取包含检测结果类型的各历史误检结果中的历史准确度。Step S201: Obtain the historical accuracy of each historical misdetection result including the detection result type.
步骤S202:将各历史误检结果对应的历史准确度进行平均,得到预设准确度。Step S202: Average the historical accuracy corresponding to each historical misdetection result to obtain a preset accuracy.
在一些实施例中,预设准确度除了可以是关于检测结果类型的各历史误检结果对应的历史准确度的平均值以外,还可以是由其他统计学方式统计得到的结果,例如各历史准确度的中位数、最大值、最小值等。本公开实施例不作限定。In some embodiments, in addition to the average of the historical accuracy corresponding to each historical misdetection result of the detection result type, the preset accuracy can also be a result obtained by other statistical methods, such as each historical accuracy Median, maximum, minimum, etc. The disclosed embodiments are not limiting.
在本公开实施例中,通过统计关于检测结果类型的各历史误检结果中的历史准确度,得到检测结果类型对应的历史准确度,能够提高判断结果的准确度。In the embodiment of the present disclosure, by counting the historical accuracy of each historical misdetection result regarding the detection result type, the historical accuracy corresponding to the detection result type is obtained, which can improve the accuracy of the judgment result.
例如,检测模型一共支持检测m种预设检测结果类型(比如,打架事件类型、抽烟事件类型等),则关于打架事件类型的历史准确度的确定则是基于打架事件类型的历史误检结果对应的历史准确度确定的,假设黑名单库中属于打架事件类型的历史误检结果有4个,其对应的历史准确度分别是0.5、0.45、0.6、0.6,则打架事件类型对应的历史准确度为(0.5+0.5+0.6+0.6)/4=0.55。同理,抽烟事件类型对应的历史准确度也是由抽烟事件类型的历史误检结果对应的历史准确度确定的。For example, the detection model supports the detection of a total of m preset detection result types (for example, fighting event types, smoking event types, etc.), and the determination of the historical accuracy of the fighting event type is based on the correspondence of historical misdetection results of the fighting event type. The historical accuracy of It is (0.5+0.5+0.6+0.6)/4=0.55. Similarly, the historical accuracy corresponding to the smoking event type is also determined by the historical accuracy corresponding to the historical misdetection results of the smoking event type.
在一些应用场景中,黑名单库中还包括各历史误检结果对应的拍摄组件的信息。关于检测结果类型的预设准确度可包括多个,不同的历史准确度由对应的拍摄组件对应的历史误检结果确定。In some application scenarios, the blacklist database also includes information about the shooting components corresponding to each historical misdetection result. There may be multiple preset accuracies regarding detection result types, and different historical accuracies are determined by historical misdetection results corresponding to the corresponding shooting components.
例如,检测结果类型下的历史误检结果对应的历史待检测图像分别由第一数量个拍摄组件拍摄,则该检测结果类型对应有第一数量个预设准确度,若当前检测结果属于该检测结果类型,并且该检测结果由这第一数量个拍摄组件中的其中一个所拍摄的待检测图像得到,则使用该拍摄组件对应的预设准确度作为最终的预设准确度。For example, if the historical undetected images corresponding to the historical misdetection results under the detection result type are taken by the first number of shooting components, then the detection result type corresponds to the first number of preset accuracies. If the current detection result belongs to the detection result type, and the detection result is obtained from the image to be detected captured by one of the first number of photographing components, then the preset accuracy corresponding to the photographing component is used as the final preset accuracy.
在一些实施方式中,若当前检测结果属于该检测结果类型,并且当前检测结果并非由这第一数量个拍摄组件中的任意一个所拍摄的待检测图像得到,则对检测结果类型的第一数量个预设准确度进行统计,得到最终的预设准确度。具体的统计方式可以包括但不限于求平均、求中 位数、最大值、最小值等等,本公开实施例不作限定。In some embodiments, if the current detection result belongs to this detection result type, and the current detection result is not obtained from the image to be detected captured by any one of the first number of shooting components, then the first number of detection result types Statistics are performed on each preset accuracy to obtain the final preset accuracy. Specific statistical methods may include but are not limited to averaging, median, maximum, minimum, etc., which are not limited in the embodiment of the present disclosure.
步骤S22:响应于检测结果类型对应的准确度大于或等于预设准确度,确定检测结果满足预设条件。Step S22: In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, determine that the detection result satisfies the preset condition.
例如,若检测结果中包含的检测结果类型为打架类型,检测结果类型对应的准确度为0.6,而预设准确度为0.55,则确定检测结果满足预设条件。For example, if the detection result type included in the detection result is a fight type, the accuracy corresponding to the detection result type is 0.6, and the preset accuracy is 0.55, then it is determined that the detection result meets the preset conditions.
在一些实施方式中,响应于检测结果类型对应的准确度小于预设准确度,确定检测结果不满足预设条件。在一些应用场景中,响应于检测结果类型对应的准确度小于预设准确度,将检测结果作为历史误检结果,将检测结果中的准确度作为历史准确度。在实施时,基于检测结果中的检测结果类型,确定黑名单库中与该检测结果类型匹配的预设检测结果类型,并将检测结果加入该预设检测结果类型集合中,以重新确定该预设检测结果类型对应的历史准确度。或者,响应于准确度小于预设准确度,丢弃待检测图像的检测结果。In some embodiments, in response to the accuracy corresponding to the detection result type being less than the preset accuracy, it is determined that the detection result does not meet the preset condition. In some application scenarios, in response to the accuracy corresponding to the detection result type being less than the preset accuracy, the detection result is regarded as the historical misdetection result, and the accuracy in the detection result is regarded as the historical accuracy. During implementation, based on the detection result type in the detection result, a preset detection result type matching the detection result type in the blacklist library is determined, and the detection result is added to the preset detection result type set to re-determine the preset detection result type. Assume the historical accuracy corresponding to the detection result type. Alternatively, in response to the accuracy being less than the preset accuracy, the detection result of the image to be detected is discarded.
在本公开实施例中,通过基于历史检测结果的历史准确度确定预设准确度,并基于预设准确度判断检测结果是否满足预设条件,实现了基于历史先验信息对检测结果进行判断,提高了判断结果的准确度。In the embodiment of the present disclosure, by determining the preset accuracy based on the historical accuracy of historical detection results, and judging whether the detection results meet the preset conditions based on the preset accuracy, the detection results are judged based on historical a priori information, Improved the accuracy of judgment results.
图3为本公开实施例提供的一种检测结果处理方法的示出步骤S12的部分子流程示意图。如图3所示,上述步骤S12可以包括以下步骤S31至步骤S33,其中:FIG. 3 is a partial sub-flow schematic diagram showing step S12 of a detection result processing method provided by an embodiment of the present disclosure. As shown in Figure 3, the above step S12 may include the following steps S31 to S33, wherein:
步骤S31:判断检测结果类型对应的准确度是否大于或等于预设准确度。Step S31: Determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy.
这里,预设准确度是基于历史检测结果中的历史准确度得到的。其中,具体判断准确度是否大于或等于预设准确度的步骤可参见上述步骤S21中的判断过程。Here, the preset accuracy is based on the historical accuracy in historical detection results. For the specific step of determining whether the accuracy is greater than or equal to the preset accuracy, please refer to the determination process in the above-mentioned step S21.
步骤S32:响应于检测结果类型对应的准确度大于或等于预设准确度,获取用户关于检测结果的判断结果。Step S32: In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtain the user's judgment result about the detection result.
在一些实施方式中,在显示界面上显示待检测图像以及检测结果,以便用户对检测结果进行核对。即,用户判断该待检测图像对应的检测结果是否准确。其中,用户可以做出用于表示检测结果无误的肯定结果,还可做出用于表示检测结果有误的否定结果。在一些应用场景中,在检测结果类型对应的准确度大于或等于准确度的情况下,将检测结果上报, 以便用户进行人工判断。In some implementations, the image to be detected and the detection result are displayed on the display interface so that the user can check the detection result. That is, the user determines whether the detection result corresponding to the image to be detected is accurate. Among them, the user can make a positive result to indicate that the detection result is correct, and can also make a negative result to indicate that the detection result is incorrect. In some application scenarios, when the accuracy corresponding to the detection result type is greater than or equal to the accuracy, the detection results are reported so that users can make manual judgments.
步骤S33:响应于判断结果为表示检测结果无误的肯定结果,确定检测结果满足预设条件。Step S33: In response to the determination result being a positive result indicating that the detection result is correct, determine that the detection result satisfies the preset condition.
在一些实施方式中,响应于判断结果为表示检测结果有误的否定结果,确定检测结果不满足预设条件。以及,响应于判断结果为表示检测结果有误的否定结果,将检测结果作为历史误检结果。该检测结果中的检测度作为历史准确度。在实施时,基于检测结果中的检测结果类型,确定黑名单库中与该检测结果类型匹配的预设检测结果类型,并将检测结果加入该预设检测结果类型集合中,以重新确定该预设检测结果类型对应的预设准确度,以便下次对检测结果进行判断时使用。In some embodiments, in response to the determination result being a negative result indicating that the detection result is incorrect, it is determined that the detection result does not meet the preset condition. And, in response to the judgment result being a negative result indicating that the detection result is incorrect, the detection result is used as a historical false detection result. The detection degree in this detection result is regarded as historical accuracy. During implementation, based on the detection result type in the detection result, a preset detection result type matching the detection result type in the blacklist library is determined, and the detection result is added to the preset detection result type set to re-determine the preset detection result type. Set the preset accuracy corresponding to the detection result type so that it can be used when judging the detection results next time.
在本公开实施例中,通过获取用户关于检测结果是否有误的判断结果,并且在用户给出的肯定结果之后,确定检测结果满足预设条件,能够提高判断结果的准确度。In the embodiment of the present disclosure, by obtaining the user's judgment result on whether the detection result is wrong, and after the user gives a positive result, it is determined that the detection result satisfies the preset conditions, so that the accuracy of the judgment result can be improved.
在一些实施方式中,响应于检测结果不满足预设条件,将检测结果作为历史误检结果。其中,历史误检结果用于在下次检测过程中,判断下次检测得到的检测结果是否满足预设条件。在实施时,可以将此次不满足预设条件的检测结果放入黑名单库中。并且可以将不满足预设条件的检测结果以及对应的待检测图像进行存储,以便后续使用。In some embodiments, in response to the detection result not meeting the preset condition, the detection result is used as a historical false detection result. Among them, the historical false detection results are used in the next detection process to determine whether the detection results obtained by the next detection meet the preset conditions. During implementation, the detection results that do not meet the preset conditions can be put into the blacklist library. And the detection results that do not meet the preset conditions and the corresponding images to be detected can be stored for subsequent use.
在本公开实施方式中,通过在检测结果不满足预设条件的情况下,不执行检测结果对应的预设处理,能够减少错误执行预设处理的概率。另外,在检测结果不满足预设条件的情况下,将检测结果作为历史误检结果,能够提高下次检测结果判断的准确度。In the embodiments of the present disclosure, by not executing the preset processing corresponding to the detection result when the detection result does not meet the preset condition, the probability of incorrect execution of the preset processing can be reduced. In addition, when the detection result does not meet the preset conditions, the detection result is used as a historical misdetection result, which can improve the accuracy of the next detection result judgment.
在一些实施例中,黑名单库中记录各历史误检结果以及由对应历史待检测图像提取得到的特征序列。上述步骤S12可以包括以下步骤S121至步骤S123,其中:In some embodiments, each historical false detection result and the feature sequence extracted from the corresponding historical image to be detected are recorded in the blacklist database. The above step S12 may include the following steps S121 to S123, wherein:
步骤S121:获取与检测结果对应的目标特征序列。Step S121: Obtain the target feature sequence corresponding to the detection result.
这里,目标特征序列是从历史误检结果对应的待检测图像中提取得到的特征序列。目标特征序列用于得到对应的待检测图像的检测结果。在一些实施方式中,对待检测图像进行特征提取,得到关于待检测图像的特征序列,然后基于特征序列,得到待检测图像的检测结果。Here, the target feature sequence is a feature sequence extracted from the image to be detected corresponding to the historical false detection results. The target feature sequence is used to obtain the detection result of the corresponding image to be detected. In some embodiments, feature extraction is performed on the image to be detected to obtain a feature sequence of the image to be detected, and then based on the feature sequence, a detection result of the image to be detected is obtained.
步骤S122:将检测结果对应的待检测图像的特征序列与目标特征序列进行匹配,得到匹配结果。Step S122: Match the feature sequence of the image to be detected corresponding to the detection result with the target feature sequence to obtain a matching result.
步骤S123:基于匹配结果确定检测结果是否满足预设条件。Step S123: Determine whether the detection result satisfies the preset condition based on the matching result.
在一些实施方式中,所述步骤S123包括步骤S1231和/或步骤S1232,其中:In some implementations, step S123 includes step S1231 and/or step S1232, wherein:
步骤S1231:响应于检测结果对应的待检测图像的特征序列与目标特征序列之间的匹配程度大于预设匹配程度,确定检测结果不满足所述预设条件。Step S1231: In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than the preset matching degree, it is determined that the detection result does not meet the preset condition.
步骤S1232:响应于检测结果对应的待检测图像的特征序列与目标特征序列之间的匹配程度小于或等于预设匹配程度,获取用户关于检测结果的判断结果,并响应于判断结果为表示检测结果无误的肯定结果,确定检测结果满足预设条件。Step S1232: In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and in response to the judgment result indicating that the detection result is An unmistakable positive result confirms that the test results meet the preset conditions.
在一些应用场景中,响应于判断结果为表示检测结果有误的否定结果,将检测结果作为历史误检结果。In some application scenarios, in response to the judgment result being a negative result indicating that the detection result is incorrect, the detection result is regarded as a historical false detection result.
例如,将此次检测结果中的检测结果类型与各历史误检结果对应的预设检测结果类型进行匹配,在匹配成功的情况下,将检测结果对应的待检测图像的特征序列与该预设检测结果类型下各历史误检结果对应的历史图像的特征序列进行匹配,在匹配程度大于或等于预设匹配程度的情况下,认定检测结果不满足预设条件。在匹配程度小于预设匹配程度的情况下,执行上述步骤S32中获取用户关于检测结果的判断结果的步骤。For example, the detection result type in this detection result is matched with the preset detection result type corresponding to each historical false detection result. If the matching is successful, the feature sequence of the image to be detected corresponding to the detection result is matched with the preset detection result type. The feature sequences of historical images corresponding to each historical false detection result under the detection result type are matched. If the matching degree is greater than or equal to the preset matching degree, the detection result is deemed not to meet the preset conditions. If the matching degree is less than the preset matching degree, the step of obtaining the user's judgment result regarding the detection result in step S32 is executed.
在一些实施例中,在执行上述步骤S11以前还可执行以下步骤S18至步骤S19,其中:In some embodiments, before performing the above step S11, the following steps S18 to S19 may also be performed, wherein:
步骤S18:确定预设历史时间段内各历史检测结果对应的误检率。Step S18: Determine the false detection rate corresponding to each historical detection result within the preset historical time period.
这里,误检率基于预设时间段内的历史误检结果的数量和总历史检测结果的数量得到。Here, the false detection rate is obtained based on the number of historical false detection results and the number of total historical detection results within a preset time period.
在一些实施方式中,误检率可以为预设时间段内的历史误检结果的数量与总历史检测结果的数量的比值。其中,预设历史时间段的长短可根据用户需求自行设定,本公开实施例不作限定。In some embodiments, the false detection rate may be the ratio of the number of historical false detection results to the total number of historical detection results within a preset time period. The length of the preset historical time period can be set according to user needs, and is not limited in this disclosed embodiment.
例如,预设历史时间段可以是执行本次检测过程以前的若干小时或若干天。其中,若干为一及以上。比如,若预设时间段为m天,这m天期间总历史检测结果一共有a份,历史误检结果一共有b份,则误检率为b/a。For example, the preset historical time period may be several hours or several days before the current detection process is performed. Among them, some are one and above. For example, if the preset time period is m days, there are a total of historical detection results during these m days, and there are b historical false detection results, then the false detection rate is b/a.
在一些实施方式中,总历史检测结果并非预设历史时间段内执行检 测的次数,而是检测结果类型为预设检测结果类型的历史检测结果集合。历史误检结果指的是检测结果有误的历史检测结果,具体获取方式可参见上述。In some embodiments, the total historical detection results are not the number of detections performed within the preset historical time period, but a collection of historical detection results whose detection result type is the preset detection result type. Historical false detection results refer to historical detection results with incorrect detection results. Please refer to the above for specific acquisition methods.
例如,预设历史时间段为获取当前待检测图像前1天,其中该时间段内执行了检测次数为100次得到100份检测结果,其中,检测结果类型为预设检测结果类型(例如打架事件类型、抽烟事件类型等)的检测结果一共有10份,则且该10份中有3份不满足预设条件,7份满足预设条件,则总历史检测结果一共有10份,历史误检结果一共有3份。For example, the preset historical time period is 1 day before the current image to be detected is obtained, and the number of detections performed during this time period is 100 times to obtain 100 detection results. Among them, the detection result type is the preset detection result type (such as a fight event type, smoking event type, etc.), and 3 of the 10 do not meet the preset conditions, and 7 meet the preset conditions, then there are a total of 10 historical detection results, and historical false detections There were 3 copies in total.
步骤S19:响应于误检率大于预设误检率,执行上述步骤S11。Step S19: In response to the false detection rate being greater than the preset false detection rate, execute the above step S11.
在一些实施例中,在确定误检率小于或等于预设误检率的情况下,获取待检测图像的检测结果,并执行检测结果对应的预设处理。In some embodiments, when it is determined that the false detection rate is less than or equal to the preset false detection rate, the detection result of the image to be detected is obtained, and preset processing corresponding to the detection result is performed.
这里,在误检率小于或等于预设误检率的情况下,可以不用执行上述步骤S12,直接执行检测结果对应的预设处理。其中,预设误检率可以由用户自定义。例如,若预设误检率为5%,而预设历史时间段内的误检率为2%,则确定检测结果满足预设条件。Here, when the false detection rate is less than or equal to the preset false detection rate, the above step S12 may not be executed, and the preset processing corresponding to the detection result may be directly executed. Among them, the preset false detection rate can be customized by the user. For example, if the preset false detection rate is 5% and the false detection rate within the preset historical time period is 2%, it is determined that the detection result meets the preset conditions.
在一些实施例中,获取预设历史时间段内各历史检测结果对应的误检率以及将误检率与预设误检率之间的比较先于上述步骤S12执行。在误检率大于预设误检率的情况下,执行上述步骤S12。或,在误检率小于或等于预设误检率的情况下,不执行步骤S12,直接确认检测结果满足预设条件。即,在误检率小于或等于预设误检率的情况下,执行检测结果对应的预设处理。在检测结果的误检率较低时,检测结果有误的概率也就越低,通过使用误检率进行判断的过程相对方便。In some embodiments, obtaining the false detection rate corresponding to each historical detection result within the preset historical time period and comparing the false detection rate with the preset false detection rate is performed prior to the above step S12. If the false detection rate is greater than the preset false detection rate, the above step S12 is executed. Or, when the false detection rate is less than or equal to the preset false detection rate, step S12 is not performed and the detection result is directly confirmed to meet the preset conditions. That is, when the false detection rate is less than or equal to the preset false detection rate, the preset processing corresponding to the detection result is executed. When the false detection rate of the detection results is low, the probability of incorrect detection results is also lower, and the process of making judgments by using the false detection rate is relatively convenient.
为了更好地理解本公开实施例提供的技术方案,请同时参见图4,图4为本公开实施例提供的一种检测结果处理方法的流程示意图。如图4所示,本公开实施例提供的检测结果处理方法包括以下步骤S41至步骤S49,其中:In order to better understand the technical solution provided by the embodiment of the present disclosure, please also refer to FIG. 4 , which is a schematic flow chart of a detection result processing method provided by the embodiment of the present disclosure. As shown in Figure 4, the detection result processing method provided by the embodiment of the present disclosure includes the following steps S41 to S49, wherein:
步骤S41:获取待检测图像。Step S41: Obtain the image to be detected.
这里,获取待检测图像的方式可以是拍摄组件在拍摄到待检测图像之后,由预先建立的拍摄组件与待检测图像之间的通信链路,接收由拍摄组件发送的待检测图像。在一些其它实施例中,拍摄待检测图像也由执行本公开实施例提供的检测结果处理方法的执行设备执行。Here, the method of obtaining the image to be detected may be that after the photographing component captures the image to be detected, it receives the image to be detected sent by the photographing component through a pre-established communication link between the photographing component and the image to be detected. In some other embodiments, capturing the image to be detected is also performed by an execution device that executes the detection result processing method provided by the embodiments of the present disclosure.
步骤S42:对待检测图像进行检测,得到待检测图像的检测结果。Step S42: Detect the image to be detected and obtain the detection result of the image to be detected.
这里,具体检测方式如上述所示。在一些实施方式中,在执行步骤S42之后,继续执行步骤S41,并对新获取到的待检测图像执行步骤S42。Here, the specific detection method is as shown above. In some embodiments, after performing step S42, continue to perform step S41, and perform step S42 on the newly acquired image to be detected.
步骤S43:判断检测结果类型对应的准确度是否大于预设准确度。Step S43: Determine whether the accuracy corresponding to the detection result type is greater than the preset accuracy.
这里,具体判断方式如上述所示。在判断结果为准确度小于预设准确度的的情况下,执行步骤S44,否则执行步骤S45。Here, the specific judgment method is as shown above. If the judgment result is that the accuracy is less than the preset accuracy, step S44 is executed; otherwise, step S45 is executed.
步骤S44:响应于检测结果类型对应的准确度小于预设准确度,确定检测结果不满足预设条件。Step S44: In response to the accuracy corresponding to the detection result type being less than the preset accuracy, determine that the detection result does not meet the preset condition.
这里,再重新执行步骤S42,以此循环执行本公开实施例提供的目标检测方法。并且,将检测结果作为历史误检结果,并将检测结果对应的准确度为历史准确度,用于更新对应的预设准确度。在一些实施方式中,在执行步骤S44之后,还可重新执行步骤S41以此循环。Here, step S42 is re-executed, thereby cyclically executing the target detection method provided by the embodiment of the present disclosure. Furthermore, the detection results are used as historical misdetection results, and the accuracy corresponding to the detection results is used as historical accuracy, which is used to update the corresponding preset accuracy. In some embodiments, after step S44 is performed, step S41 may be re-executed and the cycle continues.
步骤S45:响应于检测结果类型对应的准确度大于或等于预设准确度,获取用户关于检测结果的判断结果。Step S45: In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtain the user's judgment result about the detection result.
这里,具体获取方式如上述所示。Here, the specific acquisition method is as shown above.
步骤S46:判断结果是否为表示检测结果无误的肯定结果。Step S46: Determine whether the result is a positive result indicating that the detection result is correct.
这里,在判断结果为表示检测结果无误的肯定结果的情况下,执行步骤S48,否则执行步骤S47。Here, if the judgment result is a positive result indicating that the detection result is correct, step S48 is executed; otherwise, step S47 is executed.
步骤S47:响应于判断结果为表示检测结果有误的否定结果,确定检测结果不满足预设条件。Step S47: In response to the judgment result being a negative result indicating that the detection result is incorrect, determine that the detection result does not meet the preset condition.
这里,再重新执行步骤S42,循环执行本公开实施例提供的检测结果处理方法。Here, step S42 is executed again, and the detection result processing method provided by the embodiment of the present disclosure is cyclically executed.
步骤S48:响应于判断结果为表示检测结果无误的肯定结果,确定检测结果满足预设条件。Step S48: In response to the judgment result being a positive result indicating that the detection result is correct, determine that the detection result satisfies the preset condition.
步骤S49:执行检测结果对应的预设处理。Step S49: Execute preset processing corresponding to the detection result.
这里,具体执行与检测结果对应的预设处理的方式如上述所示。Here, the specific way of executing the preset processing corresponding to the detection result is as shown above.
在本公开实施例中,通过在对待检测图像进行检测之后,并且在检测结果满足预设条件的情况下,执行检测结果对应的预设处理,相比在进行检测之后,直接执行检测结果对应的预设处理而言,能够减少误执行预设处理的概率。In the embodiment of the present disclosure, after the image to be detected is detected, and when the detection result satisfies the preset conditions, the preset processing corresponding to the detection result is executed. Compared with directly executing the processing corresponding to the detection result after the detection, For preset processing, the probability of mistakenly executing the preset processing can be reduced.
在一些应用场景中,本公开实施例提供的检测结果处理方法可以应用于检测应用系统。该检测应用系统可以适用于智慧城市、公共安全、安防等场景。该检测应用系统包括底层以及业务层,底层执行对待检测 图像进行检测,以及判断检测结果中的准确度是否大于或等于预设准确度。在判断结果为准确度大于或等于预设准确度的情况下,将检测结果上报至业务层,否则直接将检测结果存放在黑名单库中或丢弃。用户在业务层会人工判断该检测结果是否准确,若准确,则进入业务处理环节执行与检测结果对应的预设处理,否则将检测结果存放在黑名单库中或丢弃。在一些实施方式中,随着检测模型不断根据历史误检结果以及对应的待检测图像进行训练,准确度越来越高,在误检率符合产品预期的情况下(例如,小于或等于预设误检率),可以选择跳过预设准确度的比较过程以及人工判断过程,直接进入业务处理环节执行与检测结果对应的预设处理。In some application scenarios, the detection result processing method provided by the embodiments of the present disclosure can be applied to detection application systems. This detection application system can be applied to scenarios such as smart cities, public safety, and security. The detection application system includes a bottom layer and a business layer. The bottom layer performs detection of the image to be detected and determines whether the accuracy in the detection results is greater than or equal to the preset accuracy. When the accuracy is judged to be greater than or equal to the preset accuracy, the detection results are reported to the business layer. Otherwise, the detection results are directly stored in the blacklist database or discarded. The user will manually judge whether the detection result is accurate at the business layer. If it is accurate, the user will enter the business processing link to perform the preset processing corresponding to the detection result. Otherwise, the detection result will be stored in the blacklist database or discarded. In some embodiments, as the detection model continues to be trained based on historical misdetection results and corresponding images to be detected, the accuracy becomes higher and higher. When the false detection rate meets product expectations (for example, less than or equal to the preset False detection rate), you can choose to skip the comparison process of preset accuracy and the manual judgment process, and directly enter the business processing link to execute the preset processing corresponding to the detection results.
在本公开实施例中,检测结果处理方法的执行主体可以是检测结果处理装置,例如,检测结果处理方法可以由终端设备或服务器或其它处理设备执行,其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些实现方式中,该检测结果处理方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In the embodiment of the present disclosure, the execution subject of the detection result processing method may be a detection result processing device. For example, the detection result processing method may be executed by a terminal device or a server or other processing device, where the terminal device may be a user equipment (User Equipment). , UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc. In some implementations, the detection result processing method can be implemented by the processor calling computer readable instructions stored in the memory.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of specific embodiments, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The internal logic is determined.
基于同一发明构思,本公开实施例中还提供了与检测结果处理方法对应的检测结果处理装置。图5为本公开实施例提供的一种检测结果处理装置的结构示意图。检测结果处理装置50包括检测部分51、判断部分52以及执行部分53。检测部分51,被配置为获取待检测图像对应的检测结果;判断部分52,被配置为基于历史检测结果判断检测结果是否满足预设条件;执行部分53,被配置为响应于检测结果满足预设条件,执行检测结果对应的预设处理。Based on the same inventive concept, embodiments of the present disclosure also provide a detection result processing device corresponding to the detection result processing method. Figure 5 is a schematic structural diagram of a detection result processing device provided by an embodiment of the present disclosure. The detection result processing device 50 includes a detection part 51 , a judgment part 52 and an execution part 53 . The detection part 51 is configured to obtain the detection result corresponding to the image to be detected; the judgment part 52 is configured to judge whether the detection result satisfies the preset condition based on the historical detection results; the execution part 53 is configured to respond to the detection result satisfying the preset condition Conditions, execute the preset processing corresponding to the detection results.
在一些实施例中,检测结果包括检测结果类型以及检测结果类型对应的准确度;判断部分52,还被配置为:判断检测结果类型对应的准确度是否大于或等于预设准确度,预设准确度是基于历史检测结果中的历史准确度得到;响应于检测结果类型对应的准确度大于或等于预设准确度,确定检测结果满足预设条件。In some embodiments, the detection results include the detection result type and the accuracy corresponding to the detection result type; the judgment part 52 is also configured to: determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy, and the preset accuracy is The accuracy is obtained based on the historical accuracy in historical detection results; in response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, it is determined that the detection result satisfies the preset conditions.
在一些实施例中,检测结果包括检测结果类型以及检测结果类型对应的准确度;判断部分52,还被配置为:判断检测结果类型对应的准确度是否大于或等于预设准确度,预设准确度是基于历史检测结果中的历史准确度得到;响应于检测结果类型对应的准确度大于或等于预设准确度,获取用户关于检测结果的判断结果;响应于判断结果为表示检测结果无误的肯定结果,确定检测结果满足预设条件。In some embodiments, the detection results include the detection result type and the accuracy corresponding to the detection result type; the judgment part 52 is also configured to: determine whether the accuracy corresponding to the detection result type is greater than or equal to the preset accuracy, and the preset accuracy is The degree is obtained based on the historical accuracy in historical detection results; in response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, the user's judgment about the detection result is obtained; in response to the judgment result being an affirmation indicating that the detection result is correct As a result, it is determined that the detection results meet the preset conditions.
在一些实施例中,判断部分52,还被配置为:基于包含检测结果类型的历史检测结果对应的历史准确度确定预设准确度,其中,不同检测结果类型对应的历史准确度相同或不同。In some embodiments, the judgment part 52 is further configured to determine the preset accuracy based on the historical accuracy corresponding to historical detection results including detection result types, where the historical accuracy corresponding to different detection result types is the same or different.
在一些实施例中,历史检测结果包括检测结果有误的历史误检结果,判断部分52,还被配置为:获取包含检测结果类型的各历史误检结果中的历史准确度;将各历史误检结果的历史准确度进行平均,得到预设准确度。In some embodiments, the historical detection results include historical misdetection results with incorrect detection results. The judgment part 52 is also configured to: obtain the historical accuracy of each historical misdetection result including the detection result type; The historical accuracy of the inspection results is averaged to obtain the preset accuracy.
在一些实施例中,判断部分52,还被配置为:响应于判断结果为表示检测结果有误的否定结果,将检测结果作为历史误检结果。In some embodiments, the judgment part 52 is further configured to: in response to the judgment result being a negative result indicating that the detection result is incorrect, use the detection result as a historical misdetection result.
在一些实施例中,判断部分52,还被配置为:确定预设历史时间段内各历史检测结果对应的误检率,误检率基于预设时间段内的历史误检结果的数量和总历史检测结果的数量得到;检测部分51,还被配置为:响应于误检率大于预设误检率,执行获取待检测图像的检测结果。In some embodiments, the judgment part 52 is also configured to: determine the false detection rate corresponding to each historical detection result within the preset historical time period, and the false detection rate is based on the number and total number of historical false detection results within the preset time period. The number of historical detection results is obtained; the detection part 51 is also configured to: in response to the false detection rate being greater than the preset false detection rate, execute acquisition of the detection results of the image to be detected.
在一些实施例中,检测部分51,还被配置为:在确定误检率小于或等于预设误检率的情况下,获取待检测图像的检测结果;执行部分53,还被配置为:执行检测结果对应的预设处理。In some embodiments, the detection part 51 is also configured to: obtain the detection result of the image to be detected when it is determined that the false detection rate is less than or equal to the preset false detection rate; the execution part 53 is also configured to: execute Preset processing corresponding to the detection results.
在一些实施例中,历史检测结果包括检测结果有误的历史误检结果,判断部分52,还被配置为:获取与检测结果对应的目标特征序列,目标特征序列是从历史误检结果对应的待检测图像中提取得到的特征序列,目标特征序列用于得到对应待检测图像的检测结果;将检测结果对应的待检测图像的特征序列与目标特征序列进行匹配,得到匹配结果;基于匹配结果确定检测结果是否满足预设条件。In some embodiments, the historical detection results include historical misdetection results with incorrect detection results. The judgment part 52 is also configured to: obtain a target feature sequence corresponding to the detection result, and the target feature sequence is corresponding to the historical misdetection results. The feature sequence extracted from the image to be detected, the target feature sequence is used to obtain the detection result corresponding to the image to be detected; the feature sequence of the image to be detected corresponding to the detection result is matched with the target feature sequence to obtain the matching result; determined based on the matching result Check whether the test results meet the preset conditions.
在一些实施例中,判断部分52,还被配置为:响应于检测结果对应的待检测图像的特征序列与目标特征序列之间的匹配程度大于预设匹配程度,确定检测结果不满足预设条件;和/或,响应于检测结果对应的待检测图像的特征序列与目标特征序列之间的匹配程度小于或等于预 设匹配程度,获取用户关于检测结果的判断结果,并响应于判断结果为表示检测结果无误的肯定结果,确定检测结果满足预设条件。In some embodiments, the judgment part 52 is also configured to: in response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than the preset matching degree, determine that the detection result does not meet the preset condition. ; and/or, in response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and respond to the judgment result as indicating A positive result that the test result is correct, confirming that the test result meets the preset conditions.
在一些实施例中,检测结果处理装置50包括更新部分(图未示)。对待检测图像进行检测的步骤是由检测模型执行的,更新部分,被配置为:接收更新检测模型的指令,并响应于指令对检测模型进行更新,更新后的检测模型是由历史误检结果结合历史误检结果对应的历史待检测图像,对检测模型进行训练得到的。In some embodiments, the detection result processing device 50 includes an update part (not shown). The step of detecting the image to be detected is performed by the detection model. The update part is configured to: receive an instruction to update the detection model, and update the detection model in response to the instruction. The updated detection model is combined with historical misdetection results. The historical images to be detected corresponding to the historical false detection results are obtained by training the detection model.
在一些实施例中,检测结果为对象检测结果,检测结果类型为对象类型;或,检测结果为事件检测结果,检测结果类型为事件类型。In some embodiments, the detection result is an object detection result, and the detection result type is an object type; or the detection result is an event detection result, and the detection result type is an event type.
关于装置中的各部分的处理流程、以及各部分之间的交互流程的描述可以参照上述方法实施例中的相关说明。For descriptions of the processing flow of each part in the device and the interaction flow between the parts, please refer to the relevant descriptions in the above method embodiments.
在本公开实施例以及其他的实施例中,“部分”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是单元,还可以是模块也可以是非模块化的。In the embodiments of the present disclosure and other embodiments, "part" may be part of a circuit, part of a processor, part of a program or software, etc., of course, it may also be a unit, it may be a module or it may be non-modular.
基于同一发明构思,本公开实施例中还提供了一种电子设备。图6为本公开实施例提供的一种电子设备的结构示意图。如图6所示,电子设备60包括存储器61和处理器62,处理器62用于执行存储器61中存储的程序指令,以实现上述任一检测结果处理方法实施例中的步骤。在一些实施场景中,电子设备60可以包括但不限于:安防设备、医疗设备、微型计算机、台式电脑、服务器,此外,电子设备60还可以包括笔记本电脑、平板电脑等移动设备,在此不做限定。Based on the same inventive concept, an electronic device is also provided in an embodiment of the present disclosure. FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 6 , the electronic device 60 includes a memory 61 and a processor 62 . The processor 62 is used to execute program instructions stored in the memory 61 to implement the steps in any of the above detection result processing method embodiments. In some implementation scenarios, the electronic device 60 may include but is not limited to: security equipment, medical equipment, microcomputers, desktop computers, and servers. In addition, the electronic device 60 may also include mobile devices such as laptop computers and tablet computers, which will not be discussed here. limited.
其中,电子设备包括驱动器件以及传感器。传感器用于获取拍摄设备的运动参数,驱动器件与拍摄设备的处理器和镜片连接,用于接收处理器的指令,驱动镜片移动以调整镜片的位姿。Among them, electronic equipment includes driving devices and sensors. The sensor is used to obtain the motion parameters of the shooting device, and the driving device is connected to the processor and lens of the shooting device, and is used to receive instructions from the processor and drive the lens to move to adjust the posture of the lens.
在一些实施方式中,处理器62用于控制其自身以及存储器61以实现上述任一检测结果处理方法实施例中的步骤。处理器62还可以称为CPU(Central Processing Unit,中央处理单元)。处理器62可以是一种集成电路芯片,具有信号的处理能力。处理器62还可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器 或者该处理器也可以是任何常规的处理器等。另外,处理器62可以由集成电路芯片共同实现。In some embodiments, the processor 62 is used to control itself and the memory 61 to implement the steps in any of the above detection result processing method embodiments. The processor 62 may also be called a CPU (Central Processing Unit). The processor 62 may be an integrated circuit chip with signal processing capabilities. The processor 62 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 gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. In addition, the processor 62 may be implemented by an integrated circuit chip.
基于同一发明构思,本公开实施例中还提供了一种计算机可读存储介质。图7为本公开实施例提供的一种计算机可读存储介质的结构示意图。计算机可读存储介质70存储有程序指令71,程序指令71被处理器执行时实现上述任一检测结果处理方法实施例中的步骤。Based on the same inventive concept, embodiments of the present disclosure also provide a computer-readable storage medium. FIG. 7 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present disclosure. The computer-readable storage medium 70 stores program instructions 71. When the program instructions 71 are executed by the processor, the steps in any of the above detection result processing method embodiments are implemented.
本公开实施例中还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在电子设备上运行的情况下,使得所述电子设备执行上述任一检测结果处理方法实施例中的步骤。其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一些实施例中,所述计算机程序产品具体体现为计算机存储介质,在一些实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。An embodiment of the present disclosure also provides a computer program product. The computer program product includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device causes the electronic device to execute any of the above. Steps in the embodiment of the detection result processing method. Among them, the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof. In some embodiments, the computer program product is embodied as a computer storage medium. In some embodiments, the computer program product is embodied as a software product, such as a software development kit (SDK) and so on.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的部分可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述。In some embodiments, the functions or included parts of the device provided by the embodiments of the present disclosure can be used to perform the methods described in the above method embodiments. For specific implementation, reference can be made to the description of the above method embodiments.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考。The above description of various embodiments is intended to emphasize the differences between the various embodiments, and the similarities or similarities may be referred to each other.
在本公开实施例所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式是示意性的,例如,部分或单元的划分,为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。In the several embodiments provided by the embodiments of this disclosure, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is schematic. For example, the division of parts or units is a logical function division. In actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another unit. A system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出 贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本公开各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units. Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solution of the present disclosure is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the various implementation methods of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
工业实用性Industrial applicability
本公开实施例提供了一种检测结果处理方法和装置、设备、介质及计算机程序产品,所述检测结果处理方法包括:获取待检测图像的检测结果;基于历史检测结果判断检测结果是否满足预设条件;响应于检测结果满足预设条件,执行检测结果对应的预设处理。上述方案,能够实现对检测结果进行筛选,减少预处理的误操作概率。Embodiments of the present disclosure provide a detection result processing method and device, equipment, media and computer program products. The detection result processing method includes: obtaining the detection result of the image to be detected; judging whether the detection result satisfies the preset based on the historical detection results. Condition; in response to the detection result meeting the preset condition, execute the preset processing corresponding to the detection result. The above solution can filter the detection results and reduce the probability of misoperation in preprocessing.

Claims (27)

  1. 一种检测结果处理方法,包括:A method for processing test results, including:
    获取待检测图像的检测结果;Obtain the detection results of the image to be detected;
    基于历史检测结果判断所述检测结果是否满足预设条件;Determine whether the detection results meet the preset conditions based on historical detection results;
    响应于所述检测结果满足预设条件,执行所述检测结果对应的预设处理。In response to the detection result satisfying the preset condition, preset processing corresponding to the detection result is executed.
  2. 根据权利要求1所述的方法,其中,所述检测结果包括检测结果类型以及所述检测结果类型对应的准确度;所述基于历史检测结果判断所述检测结果是否满足预设条件,包括:The method according to claim 1, wherein the detection result includes a detection result type and an accuracy corresponding to the detection result type; and determining whether the detection result satisfies a preset condition based on historical detection results includes:
    判断所述检测结果类型对应的准确度是否大于或等于预设准确度,所述预设准确度是基于所述历史检测结果中的历史准确度得到的;Determine whether the accuracy corresponding to the detection result type is greater than or equal to a preset accuracy, which is obtained based on the historical accuracy in the historical detection results;
    响应于所述检测结果类型对应的准确度大于或等于所述预设准确度,确定所述检测结果满足预设条件。In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, it is determined that the detection result satisfies the preset condition.
  3. 根据权利要1所述的方法,其中,所述检测结果包括检测结果类型以及所述检测结果类型对应的准确度;所述基于历史检测结果判断所述检测结果是否满足预设条件,包括:The method according to claim 1, wherein the detection result includes a detection result type and an accuracy corresponding to the detection result type; and determining whether the detection result satisfies a preset condition based on historical detection results includes:
    判断所述检测结果类型对应的准确度是否大于或等于预设准确度,所述预设准确度是基于所述历史检测结果中的历史准确度得到的;Determine whether the accuracy corresponding to the detection result type is greater than or equal to a preset accuracy, which is obtained based on the historical accuracy in the historical detection results;
    响应于所述检测结果类型对应的准确度大于或等于所述预设准确度,获取用户关于所述检测结果的判断结果;In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtaining the user's judgment result regarding the detection result;
    响应于所述判断结果为表示所述检测结果无误的肯定结果,确定所述检测结果满足预设条件。In response to the judgment result being a positive result indicating that the detection result is correct, it is determined that the detection result satisfies the preset condition.
  4. 根据权利要求2或3所述的方法,其中,所述判断所述检测结果类型对应的准确度是否大于或等于预设准确度之前,所述方法还包括:The method according to claim 2 or 3, wherein before determining whether the accuracy corresponding to the detection result type is greater than or equal to a preset accuracy, the method further includes:
    基于包含所述检测结果类型的历史检测结果对应的历史准确度确定所述预设准确度,其中,不同所述检测结果类型对应的历史准确度相同或不同。The preset accuracy is determined based on the historical accuracy corresponding to historical detection results including the detection result type, where the historical accuracy corresponding to different detection result types is the same or different.
  5. 根据权利要求4所述的方法,其中,所述历史检测结果包括检测结果有误的历史误检结果;所述基于包含所述检测结果类型的历史检测结果对应的历史准确度确定所述预设准确度,包括:The method according to claim 4, wherein the historical detection results include historical misdetection results with incorrect detection results; the preset is determined based on the historical accuracy corresponding to the historical detection results including the detection result type. Accuracy, including:
    获取包含所述检测结果类型的各历史误检结果中的历史准确度;Obtain the historical accuracy of each historical false detection result including the detection result type;
    将各所述历史误检结果的历史准确度进行平均,得到所述预设准确度。The historical accuracy of each of the historical misdetection results is averaged to obtain the preset accuracy.
  6. 根据权利要求4或5所述的方法,其中,所述方法还包括:The method according to claim 4 or 5, wherein the method further includes:
    响应于所述判断结果为表示所述检测结果有误的否定结果,将所述检测结果作为历史误检结果。In response to the judgment result being a negative result indicating that the detection result is incorrect, the detection result is used as a historical false detection result.
  7. 根据权利要求2至6中任一项所述的方法,其中,所述获取待检测图像的检测结果之前,所述方法还包括:The method according to any one of claims 2 to 6, wherein before obtaining the detection result of the image to be detected, the method further includes:
    确定预设历史时间段内各历史检测结果对应的误检率,所述误检率基于所述预设时间段内的历史误检结果的数量和总历史检测结果的数量得到;Determine the false detection rate corresponding to each historical detection result within the preset historical time period, the false detection rate being obtained based on the number of historical false detection results within the preset time period and the number of total historical detection results;
    响应于所述误检率大于预设误检率,执行所述获取待检测图像的检测结果。In response to the false detection rate being greater than the preset false detection rate, the acquisition of the detection result of the image to be detected is performed.
  8. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7, further comprising:
    在确定所述误检率小于或等于所述预设误检率的情况下,获取待检测图像的检测结果;When it is determined that the false detection rate is less than or equal to the preset false detection rate, obtain the detection result of the image to be detected;
    执行所述检测结果对应的预设处理。Execute preset processing corresponding to the detection results.
  9. 根据权利要求1至8中任一项所述的方法,其中,所述历史检测结果包括检测结果有误的历史误检结果;所述基于历史检测结果判断所述检测结果是否满足预设条件,包括:The method according to any one of claims 1 to 8, wherein the historical detection results include historical misdetection results with incorrect detection results; and judging whether the detection results meet preset conditions based on the historical detection results, include:
    获取与所述检测结果对应的目标特征序列,所述目标特征序列是从历史误检结果对应的待检测图像中提取得到的特征序列,所述目标特征序列用于得到对应待检测图像的检测结果;Obtain a target feature sequence corresponding to the detection result. The target feature sequence is a feature sequence extracted from the image to be detected corresponding to the historical misdetection result. The target feature sequence is used to obtain the detection result corresponding to the image to be detected. ;
    将所述检测结果对应的待检测图像的特征序列与所述目标特征序列进行匹配,得到匹配结果;Match the feature sequence of the image to be detected corresponding to the detection result with the target feature sequence to obtain a matching result;
    基于所述匹配结果确定所述检测结果是否满足预设条件。It is determined based on the matching result whether the detection result satisfies a preset condition.
  10. 根据权利要求9所述的方法,其中,所述基于所述匹配结果确定所述检测结果是否满足预设条件,包括以下至少之一:The method according to claim 9, wherein determining whether the detection result satisfies a preset condition based on the matching result includes at least one of the following:
    响应于所述检测结果对应的待检测图像的特征序列与所述目标特征序列之间的匹配程度大于预设匹配程度,确定所述检测结果不满足所述预设条件;In response to a matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than a preset matching degree, it is determined that the detection result does not satisfy the preset condition;
    响应于所述检测结果对应的待检测图像的特征序列与所述目标特征序列之间的匹配程度小于或等于所述预设匹配程度,获取用户关于所 述检测结果的判断结果,并响应于所述判断结果为表示所述检测结果无误的肯定结果,确定所述检测结果满足所述预设条件。In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and respond to the The judgment result is a positive result indicating that the detection result is correct, and it is determined that the detection result satisfies the preset condition.
  11. 根据权利要求1至10中任一项所述的方法,其中,所述历史检测结果包括检测结果有误的历史误检结果,所述获取待检测图像的检测结果是由检测模型执行的,所述方法还包括:The method according to any one of claims 1 to 10, wherein the historical detection results include historical misdetection results with incorrect detection results, and the acquisition of the detection results of the image to be detected is performed by a detection model, so The above methods also include:
    接收更新所述检测模型的指令;Receive instructions to update the detection model;
    响应于所述指令对所述检测模型进行更新,更新后的所述检测模型是由所述历史误检结果结合所述历史误检结果对应的历史待检测图像训练得到的。The detection model is updated in response to the instruction, and the updated detection model is trained by combining the historical false detection results with the historical to-be-detected images corresponding to the historical false detection results.
  12. 根据权利要求2至11中任一项所述的方法,其中,所述检测结果为对象检测结果,所述检测结果类型为对象类型;或,所述检测结果为事件检测结果,所述检测结果类型为事件类型。The method according to any one of claims 2 to 11, wherein the detection result is an object detection result and the detection result type is an object type; or the detection result is an event detection result and the detection result Type is event type.
  13. 一种检测结果处理装置,包括:A test result processing device, including:
    检测部分,被配置为获取待检测图像的检测结果;The detection part is configured to obtain the detection results of the image to be detected;
    判断部分,被配置为基于历史检测结果判断所述检测结果是否满足预设条件;The judgment part is configured to judge whether the detection results meet the preset conditions based on the historical detection results;
    执行部分,被配置为响应于所述检测结果满足预设条件,执行所述检测结果对应的预设处理。The execution part is configured to execute the preset processing corresponding to the detection result in response to the detection result satisfying the preset condition.
  14. 根据权利要求13所述的装置,其中,所述检测结果包括检测结果类型以及所述检测结果类型对应的准确度;The device according to claim 13, wherein the detection result includes a detection result type and an accuracy corresponding to the detection result type;
    所述判断部分,还被配置为:判断所述检测结果类型对应的准确度是否大于或等于预设准确度,所述预设准确度是基于所述历史检测结果中的历史准确度得到的;响应于所述检测结果类型对应的准确度大于或等于所述预设准确度,确定所述检测结果满足预设条件。The judgment part is further configured to: judge whether the accuracy corresponding to the detection result type is greater than or equal to a preset accuracy, where the preset accuracy is obtained based on the historical accuracy in the historical detection results; In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, it is determined that the detection result satisfies the preset condition.
  15. 根据权利要13所述的装置,其中,所述检测结果包括检测结果类型以及所述检测结果类型对应的准确度;The device according to claim 13, wherein the detection result includes a detection result type and an accuracy corresponding to the detection result type;
    所述判断部分,还被配置为:判断所述检测结果类型对应的准确度是否大于或等于预设准确度,所述预设准确度是基于所述历史检测结果中的历史准确度得到的;响应于所述检测结果类型对应的准确度大于或等于所述预设准确度,获取用户关于所述检测结果的判断结果;响应于所述判断结果为表示所述检测结果无误的肯定结果,确定所述检测结果满足预设条件。The judgment part is further configured to: judge whether the accuracy corresponding to the detection result type is greater than or equal to a preset accuracy, where the preset accuracy is obtained based on the historical accuracy in the historical detection results; In response to the accuracy corresponding to the detection result type being greater than or equal to the preset accuracy, obtaining the user's judgment result regarding the detection result; in response to the judgment result being a positive result indicating that the detection result is correct, determining The detection results meet the preset conditions.
  16. 根据权利要求14或15所述的装置,其中,The device according to claim 14 or 15, wherein,
    所述判断部分,还被配置为:基于包含所述检测结果类型的历史检测结果对应的历史准确度确定所述预设准确度,其中,不同所述检测结果类型对应的历史准确度相同或不同。The judgment part is further configured to: determine the preset accuracy based on the historical accuracy corresponding to historical detection results including the detection result type, wherein the historical accuracy corresponding to different detection result types is the same or different .
  17. 根据权利要求16所述的装置,其中,The device of claim 16, wherein:
    所述判断部分,还被配置为:获取包含所述检测结果类型的各历史误检结果中的历史准确度;将各所述历史误检结果的历史准确度进行平均,得到所述预设准确度。The judgment part is also configured to: obtain the historical accuracy of each historical misdetection result including the detection result type; average the historical accuracy of each of the historical misdetection results to obtain the preset accuracy Spend.
  18. 根据权利要求16或17所述的装置,其中,The device according to claim 16 or 17, wherein,
    所述判断部分,还被配置为:响应于所述判断结果为表示所述检测结果有误的否定结果,将所述检测结果作为历史误检结果。The judgment part is further configured to: in response to the judgment result being a negative result indicating that the detection result is incorrect, use the detection result as a historical misdetection result.
  19. 根据权利要求14至16中任一项所述的装置,其中,The device according to any one of claims 14 to 16, wherein
    所述判断部分,还被配置为:确定预设历史时间段内各历史检测结果对应的误检率,所述误检率基于所述预设时间段内的历史误检结果的数量和总历史检测结果的数量得到;The judgment part is also configured to: determine the false detection rate corresponding to each historical detection result within the preset historical time period, the false detection rate is based on the number of historical false detection results within the preset time period and the total history The number of test results is obtained;
    所述检测部分,还被配置为:响应于所述误检率大于预设误检率,执行所述获取待检测图像的检测结果。The detection part is further configured to: in response to the false detection rate being greater than the preset false detection rate, execute the acquisition of the detection result of the image to be detected.
  20. 根据权利要求19所述的方法,其中,The method of claim 19, wherein:
    所述检测部分,还被配置为:在确定所述误检率小于或等于所述预设误检率的情况下,获取待检测图像的检测结果;The detection part is further configured to: obtain the detection result of the image to be detected when it is determined that the false detection rate is less than or equal to the preset false detection rate;
    所述执行部分,还被配置为:执行所述检测结果对应的预设处理。The execution part is also configured to execute preset processing corresponding to the detection result.
  21. 根据权利要求13至20中任一项所述的装置,其中,所述历史检测结果包括检测结果有误的历史误检结果;The device according to any one of claims 13 to 20, wherein the historical detection results include historical false detection results with incorrect detection results;
    所述判断部分,还被配置为:获取与所述检测结果对应的目标特征序列,所述目标特征序列是从历史误检结果对应的待检测图像中提取得到的特征序列,所述目标特征序列用于得到对应待检测图像的检测结果;将所述检测结果对应的待检测图像的特征序列与所述目标特征序列进行匹配,得到匹配结果;基于所述匹配结果确定所述检测结果是否满足预设条件。The judgment part is also configured to: obtain a target feature sequence corresponding to the detection result. The target feature sequence is a feature sequence extracted from the image to be detected corresponding to the historical misdetection result. The target feature sequence Used to obtain the detection result corresponding to the image to be detected; match the feature sequence of the image to be detected corresponding to the detection result with the target feature sequence to obtain a matching result; determine whether the detection result satisfies the predetermined condition based on the matching result. Set conditions.
  22. 根据权利要求21所述的装置,其中,所述检测部分,还被配置为以下至少之一:The device according to claim 21, wherein the detection part is further configured to be at least one of the following:
    响应于所述检测结果对应的待检测图像的特征序列与所述目标特征序列之间的匹配程度大于预设匹配程度,确定所述检测结果不满足所述预设条件;In response to a matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being greater than a preset matching degree, it is determined that the detection result does not satisfy the preset condition;
    响应于所述检测结果对应的待检测图像的特征序列与所述目标特征序列之间的匹配程度小于或等于所述预设匹配程度,获取用户关于所述检测结果的判断结果,并响应于所述判断结果为表示所述检测结果无误的肯定结果,确定所述检测结果满足所述预设条件。In response to the matching degree between the feature sequence of the image to be detected corresponding to the detection result and the target feature sequence being less than or equal to the preset matching degree, obtain the user's judgment result about the detection result, and respond to the The judgment result is a positive result indicating that the detection result is correct, and it is determined that the detection result satisfies the preset condition.
  23. 根据权利要求13至22中任一项所述的装置,其中,所述历史检测结果包括检测结果有误的历史误检结果,所述获取待检测图像的检测结果是由检测模型执行的,所述装置还包括更新部分;The device according to any one of claims 13 to 22, wherein the historical detection results include historical misdetection results with incorrect detection results, and the acquisition of the detection results of the image to be detected is performed by a detection model, so The device also includes an update part;
    所述更新部分,还被配置为:接收更新所述检测模型的指令;响应于所述指令对所述检测模型进行更新,更新后的所述检测模型是由所述历史误检结果结合所述历史误检结果对应的历史待检测图像训练得到的。The update part is also configured to: receive an instruction to update the detection model; update the detection model in response to the instruction, and the updated detection model is the combination of the historical false detection results and the It is obtained by training on the historical images to be detected corresponding to the historical false detection results.
  24. 根据权利要求14至23中任一项所述的装置,其中,所述检测结果为对象检测结果,所述检测结果类型为对象类型;或,所述检测结果为事件检测结果,所述检测结果类型为事件类型。The device according to any one of claims 14 to 23, wherein the detection result is an object detection result, and the detection result type is an object type; or the detection result is an event detection result, and the detection result Type is event type.
  25. 一种电子设备,包括存储器和处理器,所述处理器用于执行所述存储器中存储的程序指令,以实现权利要求1至12中任一项所述的方法。An electronic device includes a memory and a processor. The processor is configured to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 12.
  26. 一种计算机可读存储介质,其上存储有程序指令,所述程序指令被处理器执行时实现权利要求1至12中任一项所述的方法。A computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a processor, the method of any one of claims 1 to 12 is implemented.
  27. 一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在电子设备上运行的情况下,使得所述电子设备执行权利要求1至12中任一项所述的方法。A computer program product, the computer program product comprising a computer program or instructions, when the computer program or instructions are run on an electronic device, causing the electronic device to execute any one of claims 1 to 12 Methods.
PCT/CN2022/114478 2022-03-28 2022-08-24 Detection result processing method and apparatus, device, medium, and computer program product WO2023184833A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210314170.1A CN114627098A (en) 2022-03-28 2022-03-28 Detection result processing method and device, equipment and medium
CN202210314170.1 2022-03-28

Publications (1)

Publication Number Publication Date
WO2023184833A1 true WO2023184833A1 (en) 2023-10-05

Family

ID=81903945

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114478 WO2023184833A1 (en) 2022-03-28 2022-08-24 Detection result processing method and apparatus, device, medium, and computer program product

Country Status (2)

Country Link
CN (1) CN114627098A (en)
WO (1) WO2023184833A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114627098A (en) * 2022-03-28 2022-06-14 上海商汤智能科技有限公司 Detection result processing method and device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995982A (en) * 2017-09-15 2018-05-04 达闼科技(北京)有限公司 A kind of target identification method, device and intelligent terminal
US20190318208A1 (en) * 2016-12-27 2019-10-17 Cloudminds (Shenzhen) Robotics Systems Co., Ltd Image identification system and image identification method
CN110968718A (en) * 2019-11-19 2020-04-07 北京百度网讯科技有限公司 Target detection model negative sample mining method and device and electronic equipment
CN111507467A (en) * 2019-01-31 2020-08-07 北京奇虎科技有限公司 Neural network model training method and device, computer equipment and storage medium
US20200394452A1 (en) * 2017-11-30 2020-12-17 Kofax, Inc. Object detection and image cropping using a multi-detector approach
CN112529851A (en) * 2020-11-27 2021-03-19 中冶赛迪重庆信息技术有限公司 Method, system, terminal and medium for determining state of hydraulic pipe
CN114627098A (en) * 2022-03-28 2022-06-14 上海商汤智能科技有限公司 Detection result processing method and device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190318208A1 (en) * 2016-12-27 2019-10-17 Cloudminds (Shenzhen) Robotics Systems Co., Ltd Image identification system and image identification method
CN107995982A (en) * 2017-09-15 2018-05-04 达闼科技(北京)有限公司 A kind of target identification method, device and intelligent terminal
US20200394452A1 (en) * 2017-11-30 2020-12-17 Kofax, Inc. Object detection and image cropping using a multi-detector approach
CN111507467A (en) * 2019-01-31 2020-08-07 北京奇虎科技有限公司 Neural network model training method and device, computer equipment and storage medium
CN110968718A (en) * 2019-11-19 2020-04-07 北京百度网讯科技有限公司 Target detection model negative sample mining method and device and electronic equipment
CN112529851A (en) * 2020-11-27 2021-03-19 中冶赛迪重庆信息技术有限公司 Method, system, terminal and medium for determining state of hydraulic pipe
CN114627098A (en) * 2022-03-28 2022-06-14 上海商汤智能科技有限公司 Detection result processing method and device, equipment and medium

Also Published As

Publication number Publication date
CN114627098A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN110807377B (en) Target tracking and intrusion detection method, device and storage medium
US7460689B1 (en) System and method of detecting, recognizing, and tracking moving targets
CN109815787B (en) Target identification method and device, storage medium and electronic equipment
AU2014240669B2 (en) Object monitoring system, object monitoring method, and monitoring target extraction project
WO2018099032A1 (en) Target tracking method and device
CN111127508B (en) Target tracking method and device based on video
WO2022134387A1 (en) Vehicle wrong-way travel detection method, apparatus, device, computer-readable storage medium, and computer program product
WO2021031954A1 (en) Object quantity determination method and apparatus, and storage medium and electronic device
CN110647818A (en) Identification method and device for shielding target object
WO2023184833A1 (en) Detection result processing method and apparatus, device, medium, and computer program product
CN110688883A (en) Vehicle and pedestrian detection method and device
CN109684944B (en) Obstacle detection method, obstacle detection device, computer device, and storage medium
WO2022199360A1 (en) Moving object positioning method and apparatus, electronic device, and storage medium
CN111898491A (en) Method and device for identifying reverse driving of vehicle and electronic equipment
CN112381054A (en) Method for detecting working state of camera and related equipment and system
CN113869137A (en) Event detection method and device, terminal equipment and storage medium
CN110289992B (en) Message processing method and device
CN111382606A (en) Tumble detection method, tumble detection device and electronic equipment
CN113052019A (en) Target tracking method and device, intelligent equipment and computer storage medium
CN113139434A (en) City management event processing method and device, electronic equipment and readable storage medium
US20210125013A1 (en) Image recognition system and updating method thereof
CN111784750A (en) Method, device and equipment for tracking moving object in video image and storage medium
JP2007510994A (en) Object tracking in video images
CN114846513A (en) Motion analysis system and motion analysis program
CN112927258A (en) Target tracking method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934653

Country of ref document: EP

Kind code of ref document: A1