WO2020119419A1 - Image recognition-based testing and apparatus, and computer device and storage medium - Google Patents

Image recognition-based testing and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2020119419A1
WO2020119419A1 PCT/CN2019/120108 CN2019120108W WO2020119419A1 WO 2020119419 A1 WO2020119419 A1 WO 2020119419A1 CN 2019120108 W CN2019120108 W CN 2019120108W WO 2020119419 A1 WO2020119419 A1 WO 2020119419A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
sample
test sample
recognition
identification
Prior art date
Application number
PCT/CN2019/120108
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 WO2020119419A1 publication Critical patent/WO2020119419A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • the present application relates to the testing field, and in particular to a testing method, device, computer equipment, and storage medium based on image recognition.
  • AI Artificial Intelligence
  • image recognition requires learning a large number of images belonging to the same target, so as to train an image recognition model of the target (such as recognition of face images, plant images, etc.)
  • image recognition model such as recognition of face images, plant images, etc.
  • the embodiments of the present application provide a test method, device, computer equipment, and storage medium based on image recognition.
  • the present application improves test efficiency and accuracy, and at the same time provides a reference for further adjustment of the image recognition model, improving the user experience.
  • a test method based on image recognition including:
  • the test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  • test device based on image recognition including:
  • the first obtaining module is used to obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
  • the input module is used to receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target; and call an image recognition model through a preset interface corresponding to the interface address, and input the test sample In the image recognition model;
  • a second obtaining module configured to obtain the recognition result of the test sample output by the image recognition model
  • the third obtaining module is configured to obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
  • a computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  • One or more readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  • FIG. 1 is a schematic diagram of an application environment of a test method based on image recognition in an embodiment of the present application
  • FIG. 2 is a flowchart of a test method based on image recognition in an embodiment of the present application
  • FIG. 3 is a flowchart of a test method based on image recognition in another embodiment of the present application.
  • step S30 of an image recognition-based testing method in an embodiment of the present application is a flowchart of step S30 of an image recognition-based testing method in an embodiment of the present application
  • step S40 of an image recognition-based testing method in an embodiment of the present application is a flowchart of step S40 of an image recognition-based testing method in an embodiment of the present application
  • step S40 of a test method based on image recognition in another embodiment of the present application is a flowchart of step S40 of a test method based on image recognition in another embodiment of the present application.
  • FIG. 7 is a functional block diagram of a test device based on image recognition in an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a test device based on image recognition in another embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a second acquisition module of a test device based on image recognition in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a computer device in an embodiment of the present application.
  • the test method based on image recognition calls the image recognition model to be tested through a preset interface, so as to perform a full-scale test on the called image recognition model with a test sample to verify whether the image recognition model is achieved through the test results It can identify the requirements of the target, and then determine whether the image recognition model meets the standard of the current use scene; when the image recognition model does not meet the standard of the current use scene, the image recognition model can also be based on the test result Make adjustments.
  • This application improves the testing efficiency and accuracy, and at the same time provides a reference for the further adjustment of the image recognition model and improves the user experience.
  • This application can be applied in an application environment as shown in FIG. 1, in which a client (computer device) communicates with a server through a network.
  • the client includes but is not limited to various personal computers, notebook computers, smart phones, tablet computers, cameras and portable wearable devices.
  • the server can be realized by an independent server or a server cluster composed of multiple servers.
  • a test method based on image recognition is provided, and the method is applied to the server in FIG. 1 as an example for illustration, including the following steps:
  • the test sample refers to a sample used to test whether the image recognition model can accurately recognize the recognition target.
  • the recognition target refers to a recognition target of the image recognition model.
  • the recognition target is a peony flower.
  • the current test samples are all for testing the image Whether the identification model can identify peony flowers.
  • the unique identification of the identification target refers to a unique identification such as the number and name of the identification target.
  • the recognition object refers to an object included in the test sample that can be recognized by the image recognition model; each of the test samples includes at least one test object, the recognition object may be the same as the recognition target, or may be The recognition target is different.
  • the recognition target is peony, but the type of a test sample is an interference sample.
  • the test object in the interference sample may be peony flowers similar to peony flowers.
  • S101 Create a test sample library, set sample parameters in the test sample library, and store the sample test library in association with a unique identifier that identifies a target;
  • the sample parameters include, but are not limited to: the number and type of test samples, the scene in which the identification target included in the test sample is located, the angle of the identification target displayed in the test sample, and the like.
  • the test sample contains a recognition object (that is, a recognition object that can be recognized by the image recognition model), and the type of the test sample includes a conforming sample (the test sample contains a recognition object consistent with the recognition target, For example, if the identification target is peony, the identification object included in the test sample is also peony), and the non-conforming sample (the test sample contains identification objects that are inconsistent with the identification target, for example, if the identification target is peony, the test sample The identification object included in the leaf is a leaf), interference samples (the test sample contains identification objects that are inconsistent with the identification target, and are similar to the identification target and are easily confused, for example, the identification target is peony, the test sample contains The object of identification is peony similar to the peony flower).
  • a recognition object that is, a recognition object that can be recognized by the image recognition model
  • the type of the test sample includes a conforming sample
  • the test sample contains a recognition object consistent with the recognition target, For example, if the identification target is peon
  • the scene in which the recognition target included in the test sample refers to different recognition scenes in which the recognition target must be included in the conforming sample, for example, the test sample includes the recognition target in day and night , Solid color background, complex background and other test samples in different recognition scenarios. Understandably, in some embodiments, the scene in which the identified object in the non-compliant sample and the interference sample may be set.
  • the angle of the identification target displayed in the test sample refers to the display angle of the identification target that must be included in the conforming sample, for example, the display angle of the identification target in the test sample includes upward and downward incline ,, left and right, and you can set the specific angle range of their inclination (you can set different angle ranges for the same angle inclination, for example, you can set the sample parameters to include uptilt angles of 0-30 degrees, 30- 60 degrees, 60-90 degrees three incline angles). Understandably, in some embodiments, the display angle of the identification object in the non-conforming sample and the interference sample may also be set.
  • S102 Receive a test sample uploaded by the user to the test sample library on the client, record the identification object included in the test sample, and detect whether the uploaded test sample matches the sample parameter;
  • test samples require users (such as users or testers who create image recognition models) to upload them on the client.
  • step S101 After uploading the test samples, it will automatically detect whether all uploaded test samples conform to the sample parameters set in step S101 above, for example, whether the types of test samples and the number of various types of test samples meet the requirements. Contains the identification target scene and whether the number of test samples of each scene meets the requirements, whether the angle of the identification target displayed in the test sample and the number of test samples at each angle meet the requirements, etc.; if the uploaded test sample meets all For sample parameters, it can be determined that the uploaded test sample matches the sample parameter, and if the uploaded test sample does not match one of the sample parameters, it is determined that the uploaded test sample does not match the sample parameter.
  • a parameter identification model is established for each of the sample parameters to detect whether the uploaded test sample matches the sample parameter selected by the user when uploading; for example, if the user's currently uploaded test sample is the identification included in the test sample
  • the scene where the target is located is a coincident sample during the day.
  • the parameter identification model needs to identify whether the scene in the test sample is daytime, and whether the identification object in the test sample is the identification target; if it is daytime and the identification object is Identify the target, at this time it is considered that the uploaded test sample matches the sample parameter selected by the user when uploading; if one of the items does not match (the scene is not daytime, or the identification object in the test sample is not the identification target), at this time, the uploaded The test sample does not match the sample parameter selected by the user when uploading, prompting the user to re-upload or suggesting that there is a test risk. Understandably, in another embodiment, the test samples uploaded by the default user are all test samples whose confirmation is consistent with the sample parameters, and are no longer tested to reduce the server load and improve the test efficiency.
  • test sample matches the sample parameter, the test sample is prompted to meet the requirements
  • the uploaded test sample meets all sample parameters (the number and type of each test sample uploaded by the user all meet the requirements), the uploaded test sample matches the sample parameter, and at this time, the user is prompted to upload Of the test samples meet the requirements, and uploading the test samples is successful.
  • test sample does not match the sample parameter, display content that the test sample does not match the sample parameter and/or prompt that there is a test risk.
  • the uploaded test sample does not match one or more of the sample parameters, it is determined that the uploaded test sample does not match the sample parameter.
  • the user is prompted to have a test risk, such as prompting the user To the test effect"; at the same time, it can also display the specific content of the unmatched sample parameters, for example, display "the number of interference samples is still missing 10".
  • step S10 includes the following steps:
  • test samples in the test sample library are retrieved according to the unique identification of the identification target, and the identification objects in the test samples are obtained.
  • the unique identifier of the recognition target on the current display interface for example, if the recognition target is peony, you can select it in the current display interface
  • the test target is the unique number of the peony flower
  • the test sample in the test sample library is retrieved according to the unique identification of the identification target; as a preference, in one embodiment, the front end of the webpage for testing in the client
  • the test sample library can be uploaded on the webpage.
  • the front-end webpage when the user confirms that a certain identification target needs to be tested, the user can click the preset upload button on the front-end webpage. At this time, an input will appear on the front-end webpage.
  • the box is for the user to input the link address of the sample library associated with the identification target. After the user fills in the link address, he can jump to the sample library corresponding to the link address to obtain the test sample in the sample library to complete the upload test The sample library process.
  • test sample library may be stored in the background database in the background server, at this time it is only necessary to directly retrieve the test sample from the background database according to the unique identification of the identification target; in another embodiment
  • the test sample library is stored in the local database of the client that creates the image recognition model. At this time, it is necessary to first obtain the test sample from the local database according to the unique identifier of the recognition target to the background database, so as to facilitate subsequent testing.
  • the unique identification of the identification target is associated with the address of the test sample library. After selecting the unique identification of the identification target, the test sample library can be obtained And enter the test sample library corresponding to the address to retrieve test samples.
  • test samples all contain the identification objects
  • the identification objects in the test samples are acquired at the same time.
  • S20 Receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target, and call an image recognition model through a preset interface corresponding to the interface address, and input the test sample into the image In the recognition model;
  • the server provides a preset interface to facilitate the tester to call the image recognition model to be tested through the interface; wherein, the test instruction refers to the tester inputting or selecting a recognition target associated with the image recognition model on the client Unique identification (the unique identification of the identification target is associated with the interface address of the preset interface of the image identification model, so after entering or selecting the unique identification of the identification target, the image identification model call can be obtained Preset the interface address of the interface, so that after calling the image recognition model through the preset interface), when it is confirmed that a test needs to be performed (the test sample has been obtained at this time), it is sent by clicking or sliding a preset button Test instructions. Understandably, the above interface address can be entered in the front-end webpage.
  • the interface address is automatically displayed at this time. If the interface address has not been entered before, the interface address can be manually entered or selected and associated with the unique identifier of the identification target.
  • the server calls the image recognition model through the preset interface to perform image recognition on each of the test samples, and starts the test process.
  • the image recognition model inputs the test sample transmitted through a preset interface, and the image recognition model outputs the recognition result of the test sample.
  • the image recognition model There are only two kinds of recognition results: the test sample contains a recognition target (in this case, the image recognition model outputs a pass) and the test sample does not contain a recognition target (in this case, the image recognition model outputs a fail).
  • step S30 the acquiring the recognition result of the test sample output by the image recognition model includes:
  • S302 retrieve the second image feature of the recognition target according to the unique identifier of the recognition target; that is, each image recognition model is associated with a recognition target (or a second image feature extracted from the recognition target ), if only the recognition target is associated, in this step, the second image feature needs to be extracted from the recognition target.
  • S303 Determine, through the image recognition model, whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold; that is, the image recognition model can obtain the first image feature and
  • the similarity of the second image feature (including the color, shape, contour, distance between each feature and combination method of each feature in the image feature to determine), and the similarity threshold can be set according to demand, For example, set between 0.6-1.
  • test result refers to a determination result of determining whether the image recognition model meets the standard.
  • the test result may include that the recognition accuracy of the image recognition model has reached or has not yet reached the standard.
  • the recognition result includes that the test sample includes a recognition target and that the test sample does not include a recognition target; as shown in FIG. 5, the step S40 includes the following steps:
  • step S102 if the identification object in the test sample previously recorded in step S102 is the same as the identification target associated with the test sample library, it means that the test sample contains the identification target; at this time, if The identification result for the test sample is that the test sample contains the identification target, that is, it is detected that the identification result matches the identification object in the test sample; if the identification result for the test sample is the The identification target is not included in the test sample, that is, it is detected that the identification result does not match the identification object in the test sample.
  • the identification target associated with the test sample library is different (such as an interference sample or a non-conforming sample), it means that the test sample does not contain The identification target; at this time, if the identification result for the test sample is that the test sample contains the identification target, it is detected that the identification result does not match the identification object in the test sample; if The identification result of the test sample is that the test sample does not include the identification target, that is, it is detected that the identification result matches the identification object in the test sample.
  • test sample is counted as a matching sample.
  • test sample is counted as a mismatch sample.
  • X is the matching rate between the recognition result and the recognition object in the test sample
  • A is the matching sample
  • S405 Obtain a test result according to the matching rate, where the test result includes the image recognition model test passing and the image recognition model test failing.
  • the user who created the image recognition model may be prompted, the image recognition model has reached the standard, and the image recognition model may be used for image recognition; when the test result is When the image recognition model test fails, the user is prompted to further adjust the image recognition model.
  • the method further includes:
  • S407 Obtain the sample parameters corresponding to each of the unmatched samples, count the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, Sort the sample parameters; that is, in this step, obtain the specific data of the unmatched sample and the matched sample in the test sample, and determine the worst training effect in the image recognition model based on the above data And adjust it.
  • S408 Determine the link with the worst training effect of the image recognition model according to the ranking results of the sample parameters, and adjust the link with the worst training effect of the image recognition model. That is, the greater the number of unmatched samples corresponding to the sample parameters, the worse the training effect of the image recognition model on the test samples of the sample parameters. Conversely, the unmatched corresponding to the sample parameters The smaller the number of samples, the better the training effect of the image recognition model on the test samples of the sample parameters; after determining the preset number of links with the worst training effect of the image recognition model, the training can be strengthened for this link To obtain a more complete image recognition model, and then complete the adjustment of the image recognition model.
  • a test device based on image recognition corresponds one-to-one with the test method based on image recognition in the above embodiment.
  • the test device based on image recognition includes:
  • the first obtaining module 11 is configured to obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
  • the input module 12 is used to receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target; and call an image recognition model through a preset interface corresponding to the interface address, and transfer the test sample Input into the image recognition model;
  • the second obtaining module 13 is configured to obtain the recognition result of the test sample output by the image recognition model
  • the third obtaining module 14 is configured to obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
  • the device further includes:
  • the creation module 15 is used to create a test sample library, set the sample parameters in the test sample library, and store the sample test library in association with the unique identification of the identification target;
  • the detection module 16 is configured to receive a test sample uploaded by the user to the test sample library on the client, record the identification object included in the test sample, and detect whether the uploaded test sample matches the sample parameter;
  • the prompt module 17 is used to prompt the test sample to meet the requirements when the test sample matches the sample parameter;
  • the display module 18 is configured to display content that the test sample does not match the sample parameter and/or indicate that there is a test risk when the test sample does not match the sample parameter.
  • the second obtaining module 13 includes:
  • the extraction unit 131 is configured to extract the first image feature of the identification object of the test sample from the test samples input in the image recognition model;
  • the retrieval unit 132 is configured to retrieve the second image feature of the recognition target according to the unique identifier of the recognition target;
  • the judging unit 133 is configured to judge whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold through the image recognition model;
  • the first output unit 134 is configured to output a recognition result containing a recognition target in the test sample when the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
  • the second output unit 135 is configured to output a recognition result that does not include a recognition target in the test sample when the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold.
  • the third obtaining module 14 includes:
  • a detection unit configured to detect whether the recognition result matches the recognition object in the test sample
  • a first counting unit for counting the test sample into the matching sample when the recognition result matches the identification object in the test sample
  • a second counting unit configured to count the test sample as a non-matching sample when the recognition result does not match the identification object in the test sample
  • the calculation unit is used to calculate the matching rate between the recognition result and the recognition object in the test sample according to the following formula:
  • X is the matching rate between the recognition result and the recognition object in the test sample
  • A is the matching sample
  • the obtaining unit is configured to obtain a test result according to the matching rate, where the test result includes the image recognition model test passing and the image recognition model test failing.
  • the third obtaining module 14 further includes:
  • a prompting unit for prompting that the image recognition model needs to be further adjusted when the test result is that the image recognition model test fails
  • a statistical unit configured to obtain sample parameters corresponding to each of the unmatched samples, count the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, Sort each of the sample parameters;
  • the adjusting unit is configured to determine the link with the worst training effect of the image recognition model according to the ranking results of the sample parameters, and adjust the link with the worst training effect of the image recognition model.
  • Each module in the above-mentioned image recognition-based test device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above modules may be embedded in the hardware or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 10.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a readable storage medium and internal memory.
  • the readable storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. .
  • the computer-readable instructions are executed by the processor to implement a test method based on image recognition.
  • the readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer device including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  • one or more readable storage media storing computer-readable instructions are provided.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage Medium; the computer-readable instructions are stored on the readable storage medium, and when the computer-readable instructions are executed by one or more processors, the one or more processors implement the following steps:
  • the test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road DRAM
  • RDRAM memory bus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Image Analysis (AREA)

Abstract

An image recognition-based testing and apparatus, and a computer device and a storage medium. The method comprises: obtaining a test sample and a recognition object in the test sample according to the unique identifier of a recognition target (s10); receiving a test instruction, obtaining a preset interface address associated with the unique identifier of the recognition target, invoking an image recognition model by means of a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model (s20); obtaining a test sample recognition result output by the image recognition model (s30); and obtaining a test result according to the rate of matching between the recognition result and the recognition object in the test sample (s40). The method increases test efficiency and accuracy, and provides a reference for further adjustment of an image recognition model, thereby improving user experience.

Description

基于图像识别的测试方法、装置、计算机设备及存储介质Test method, device, computer equipment and storage medium based on image recognition
本申请以2018年12月14日提交的申请号为201811536981.6,名称为“基于图像识别的测试方法、装置、计算机设备及存储介质”的中国申请专利申请为基础,并要求其优先权。This application is based on the Chinese patent application filed on December 14, 2018 with the application number 201811536981.6, titled "Testing Methods, Devices, Computer Equipment, and Storage Media Based on Image Recognition", and claims its priority.
技术领域Technical field
本申请涉及测试领域,具体涉及一种基于图像识别的测试方法、装置、计算机设备及存储介质。The present application relates to the testing field, and in particular to a testing method, device, computer equipment, and storage medium based on image recognition.
背景技术Background technique
目前,AI(Artificial Intelligence,人工智能)技术逐渐兴起并成为互联网热门。比如,通过AI技术可以进行图像识别,进行图像识别需要对大量的属于同一目标物的图像进行学习,从而训练出该目标物的图像识别模型(比如对人脸图像、植物图像等进行识别),但是,现有技术中,在对图像识别模型训练完毕之后,并没有好的测试方法和工具来对该图像识别模型进行测试,以检验该图像识别模型是否达到可以识别目标物的要求,以确定该图像识别模型是否达到符合当前的使用场景的标准。因此,当前急需一种好的测试方法,以确定已训练好的图像识别模型中当前的算法,是否能够识别一个图片中的目标物,或者在该图片里不包含目标物时能够对用户进行提示。At present, AI (Artificial Intelligence) technology has gradually emerged and become popular on the Internet. For example, AI technology can be used for image recognition, and image recognition requires learning a large number of images belonging to the same target, so as to train an image recognition model of the target (such as recognition of face images, plant images, etc.), However, in the prior art, after the image recognition model is trained, there are no good test methods and tools to test the image recognition model to check whether the image recognition model meets the requirements of recognizing the target object to determine Whether the image recognition model meets the standards of the current use scene. Therefore, there is an urgent need for a good test method to determine whether the current algorithm in the trained image recognition model can identify the target in a picture or can prompt the user when the target is not included in the picture .
发明内容Summary of the invention
本申请实施例提供一种基于图像识别的测试方法、装置、计算机设备及存储介质,本申请提高了测试效率和精确度,同时为图像识别模型的进一步调整提供了参照,提升了用户体验。The embodiments of the present application provide a test method, device, computer equipment, and storage medium based on image recognition. The present application improves test efficiency and accuracy, and at the same time provides a reference for further adjustment of the image recognition model, improving the user experience.
一种基于图像识别的测试方法,包括:A test method based on image recognition, including:
根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
一种基于图像识别的测试装置,包括:A test device based on image recognition, including:
第一获取模块,用于根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;The first obtaining module is used to obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
输入模块,用于接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;The input module is used to receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target; and call an image recognition model through a preset interface corresponding to the interface address, and input the test sample In the image recognition model;
第二获取模块,用于获取所述图像识别模型输出的对所述测试样本的识别结果;A second obtaining module, configured to obtain the recognition result of the test sample output by the image recognition model;
第三获取模块,用于根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The third obtaining module is configured to obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings, and claims.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application For those of ordinary skill in the art, without paying any creative work, other drawings can also be obtained based on these drawings.
图1是本申请一实施例中基于图像识别的测试方法的应用环境示意图;1 is a schematic diagram of an application environment of a test method based on image recognition in an embodiment of the present application;
图2是本申请一实施例中基于图像识别的测试方法的流程图;2 is a flowchart of a test method based on image recognition in an embodiment of the present application;
图3是本申请另一实施例中基于图像识别的测试方法的流程图;3 is a flowchart of a test method based on image recognition in another embodiment of the present application;
图4是本申请一实施例中基于图像识别的测试方法的步骤S30的流程图;4 is a flowchart of step S30 of an image recognition-based testing method in an embodiment of the present application;
图5是本申请一实施例中基于图像识别的测试方法的步骤S40的流程图;5 is a flowchart of step S40 of an image recognition-based testing method in an embodiment of the present application;
图6是本申请另一实施例中基于图像识别的测试方法的步骤S40的流程图;6 is a flowchart of step S40 of a test method based on image recognition in another embodiment of the present application;
图7是本申请一实施例中基于图像识别的测试装置的原理框图;7 is a functional block diagram of a test device based on image recognition in an embodiment of the present application;
图8是本申请另一实施例中基于图像识别的测试装置的原理框图;8 is a schematic block diagram of a test device based on image recognition in another embodiment of the present application;
图9是本申请一实施例中基于图像识别的测试装置的第二获取模块的原理框图;9 is a schematic block diagram of a second acquisition module of a test device based on image recognition in an embodiment of the present application;
图10是本申请一实施例中计算机设备的示意图。10 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请提供的基于图像识别的测试方法,通过预设接口调用待测试的图像识别模型,从而利用测试样本对调用的该图像识别模型进行全方位测试,以通过测试结果检验该图像识别模型是否达到可以辨认识别目标的要求,进而确定该图像识别模型是否达到符合当前的使用场景的标准;在该图像识别模型未达到符合当前的使用场景的标准时,还可以根据该测试结果对所述图像识别模型进行调整。本申请提高了测试效率和精确度,同时为图像识别模型的进一步调整提供了参照,提升了用户体验。本申请可应用在如图1的应用环境中,其中,客户端(计算机设备)通过网络与服务器进行通信。其中,客户端(计算机设备)包括但不限于为各种个人计算机、笔记本电脑、智能手机、平板电脑、摄像头和便携式可穿戴设备。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The test method based on image recognition provided by this application calls the image recognition model to be tested through a preset interface, so as to perform a full-scale test on the called image recognition model with a test sample to verify whether the image recognition model is achieved through the test results It can identify the requirements of the target, and then determine whether the image recognition model meets the standard of the current use scene; when the image recognition model does not meet the standard of the current use scene, the image recognition model can also be based on the test result Make adjustments. This application improves the testing efficiency and accuracy, and at the same time provides a reference for the further adjustment of the image recognition model and improves the user experience. This application can be applied in an application environment as shown in FIG. 1, in which a client (computer device) communicates with a server through a network. Among them, the client (computer device) includes but is not limited to various personal computers, notebook computers, smart phones, tablet computers, cameras and portable wearable devices. The server can be realized by an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种基于图像识别的测试方法,以该方法应用在图1中的服务器为例进行说明,包括以下步骤:In an embodiment, as shown in FIG. 2, a test method based on image recognition is provided, and the method is applied to the server in FIG. 1 as an example for illustration, including the following steps:
S10,根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象。S10. Acquire a test sample and the identification object in the test sample according to the unique identification of the identification target.
其中,所述测试样本是指用于测试图像识别模型是否可以准确识别出识别目标的样本。The test sample refers to a sample used to test whether the image recognition model can accurately recognize the recognition target.
所述识别目标,是指所述图像识别模型的识别目标,比如,所述图像识别模型用于识别牡丹花,则所述识别目标即为牡丹花,当前的测试样本,均是为了测试该图像识别模型是否可以识别出牡丹花。The recognition target refers to a recognition target of the image recognition model. For example, if the image recognition model is used to recognize a peony flower, the recognition target is a peony flower. The current test samples are all for testing the image Whether the identification model can identify peony flowers.
所述识别目标的唯一标识是指所述识别目标的编号、名称等具有唯一性的标识。The unique identification of the identification target refers to a unique identification such as the number and name of the identification target.
所述识别对象是指测试样本中包含的可供图像识别模型进行识别的对象;每一个所述测试样本中至少包含一个测试对象,所述识别对象可能与所述识别目标相同,亦可能与所述识别目标不同。比如,识别目标为牡丹花,但是一个测试样本的类型为干扰样本,此时,该干扰样本中的测试对象可能为与牡丹花相似的芍药花。The recognition object refers to an object included in the test sample that can be recognized by the image recognition model; each of the test samples includes at least one test object, the recognition object may be the same as the recognition target, or may be The recognition target is different. For example, the recognition target is peony, but the type of a test sample is an interference sample. At this time, the test object in the interference sample may be peony flowers similar to peony flowers.
在一实施例中,如图3所示,所述步骤S10之前,包括以下步骤:In an embodiment, as shown in FIG. 3, before the step S10, the following steps are included:
S101,创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;S101: Create a test sample library, set sample parameters in the test sample library, and store the sample test library in association with a unique identifier that identifies a target;
所述样本参数包括但不限定于为:测试样本的数量、类型、测试样本中包含的识别目标所处的场景、测试样本中展示的识别目标的角度等。The sample parameters include, but are not limited to: the number and type of test samples, the scene in which the identification target included in the test sample is located, the angle of the identification target displayed in the test sample, and the like.
其中,所述测试样本中包含识别对象(也即可以供所述图像识别模型进行识别的识别对象),所述测试样本的类型包含符合型样本(测试样本中包含与识别目标一致的识别对象,比如,识别目标为牡丹花,测试样本中包含的识别对象也为牡丹花)、不符合型样本(测试样本中包含与所述识别目标不一致的识别对象,比如,识别目标为牡丹花,测试样本中包含的识别对象为树叶)、干扰样本(测试样本中包含与所述识别目标不一致,且与所述识别目标即为相似容易混淆的识别对象,比如,识别目标为牡丹花,测试样本中包含的识别对象为与所述牡丹花相似的芍药)。Wherein, the test sample contains a recognition object (that is, a recognition object that can be recognized by the image recognition model), and the type of the test sample includes a conforming sample (the test sample contains a recognition object consistent with the recognition target, For example, if the identification target is peony, the identification object included in the test sample is also peony), and the non-conforming sample (the test sample contains identification objects that are inconsistent with the identification target, for example, if the identification target is peony, the test sample The identification object included in the leaf is a leaf), interference samples (the test sample contains identification objects that are inconsistent with the identification target, and are similar to the identification target and are easily confused, for example, the identification target is peony, the test sample contains The object of identification is peony similar to the peony flower).
所述测试样本中包含的识别目标所处的场景,是指在符合型样本中,必须要包含的识别目标所处的不同的识别场景,比如,所述测试样本中包含识别目标处于白天、黑夜、纯色背景、复杂背景等不同识别场景中的测试样本。可理解地,在一些实施例中,亦可设定不符合型样本与干扰样本中的识别对象所处的场景。The scene in which the recognition target included in the test sample refers to different recognition scenes in which the recognition target must be included in the conforming sample, for example, the test sample includes the recognition target in day and night , Solid color background, complex background and other test samples in different recognition scenarios. Understandably, in some embodiments, the scene in which the identified object in the non-compliant sample and the interference sample may be set.
所述测试样本中展示的识别目标的角度,是指在符合型样本中,必须要包含的识别目标的展示角度,比如,所述测试样本中所述识别目标的展示角度包含上倾、下倾、、左倾、右倾,且可以设定其倾向的具体角度范围(可以为同一个角度倾向设定不同的角度范围,比如,可以设定样本参数中包括上倾角度为0-30度、30-60度、60-90度三种上倾角度)。可理解地,在一些实施例中,亦可设定不符合型样本与干扰样本中的识别对象的展示角度。The angle of the identification target displayed in the test sample refers to the display angle of the identification target that must be included in the conforming sample, for example, the display angle of the identification target in the test sample includes upward and downward incline ,, left and right, and you can set the specific angle range of their inclination (you can set different angle ranges for the same angle inclination, for example, you can set the sample parameters to include uptilt angles of 0-30 degrees, 30- 60 degrees, 60-90 degrees three incline angles). Understandably, in some embodiments, the display angle of the identification object in the non-conforming sample and the interference sample may also be set.
S102,接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;S102: Receive a test sample uploaded by the user to the test sample library on the client, record the identification object included in the test sample, and detect whether the uploaded test sample matches the sample parameter;
可理解地,所述测试样本需要用户(比如创建图像识别模型的用户或测试人员)在客户端自行上传。Understandably, the test samples require users (such as users or testers who create image recognition models) to upload them on the client.
在上传测试样本之后,会自动检测上传的所有测试样本是否符合上述步骤S101中设定的样本参数,比如,测试样本的类型的种类与各种类的测试样本的数量是否符合要求、测试样本中包含的识别目标所处的场景及各场景的测试样本的数量是否符合要求、测试样本中展示的识别目标的角度及各角度的测试样本的数量是否符合要求等;若上传的测试样本符合所有的样本参数,则可判定上传的所述测试样本与所述样本参数匹配,若上传的测试样本与其中一个样本参数不符,则判定上传的所述测试样本与所述样本参数不匹配。After uploading the test samples, it will automatically detect whether all uploaded test samples conform to the sample parameters set in step S101 above, for example, whether the types of test samples and the number of various types of test samples meet the requirements. Contains the identification target scene and whether the number of test samples of each scene meets the requirements, whether the angle of the identification target displayed in the test sample and the number of test samples at each angle meet the requirements, etc.; if the uploaded test sample meets all For sample parameters, it can be determined that the uploaded test sample matches the sample parameter, and if the uploaded test sample does not match one of the sample parameters, it is determined that the uploaded test sample does not match the sample parameter.
在一实施例中,为各所述样本参数设立参数识别模型,以检测上传的测试样本是否与用户上传时选取的样本参数匹配;比如,若用户当前上传的测试样本为测试样本中包含的识别目标所处的场景为白天的符合型样本,此时,参数识别模型需要识别该测试样本中的场景是否为白天,且所述测试样本中的识别对象是否为识别目标;若是白天且识别对象为识别目标,此时认为上传的测试样本与用户上传时选取的样本参数匹配;若其中一项不符(场景不是白天,或所述测试样本中的识别对象不是识别目标),此时,认为上传的测试样本与用户上传时 选取的样本参数不匹配,提示用户重新上传或提示存在测试风险。可理解地,在另一实施例中,默认用户上传的测试样本均为其确认与样本参数相符的测试样本,不再对其进行检测,以减轻服务器负载,提升测试效率。In an embodiment, a parameter identification model is established for each of the sample parameters to detect whether the uploaded test sample matches the sample parameter selected by the user when uploading; for example, if the user's currently uploaded test sample is the identification included in the test sample The scene where the target is located is a coincident sample during the day. At this time, the parameter identification model needs to identify whether the scene in the test sample is daytime, and whether the identification object in the test sample is the identification target; if it is daytime and the identification object is Identify the target, at this time it is considered that the uploaded test sample matches the sample parameter selected by the user when uploading; if one of the items does not match (the scene is not daytime, or the identification object in the test sample is not the identification target), at this time, the uploaded The test sample does not match the sample parameter selected by the user when uploading, prompting the user to re-upload or suggesting that there is a test risk. Understandably, in another embodiment, the test samples uploaded by the default user are all test samples whose confirmation is consistent with the sample parameters, and are no longer tested to reduce the server load and improve the test efficiency.
S103,在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;S103, when the test sample matches the sample parameter, the test sample is prompted to meet the requirements;
也即,若上传的测试样本符合所有的样本参数(用户上传的各测试样本的数量、类型等全部符合要求),则上传的所述测试样本与所述样本参数匹配,此时,提示用户上传的测试样本符合要求,此时上传测试样本成功。That is, if the uploaded test sample meets all sample parameters (the number and type of each test sample uploaded by the user all meet the requirements), the uploaded test sample matches the sample parameter, and at this time, the user is prompted to upload Of the test samples meet the requirements, and uploading the test samples is successful.
S104,在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。S104: When the test sample does not match the sample parameter, display content that the test sample does not match the sample parameter and/or prompt that there is a test risk.
也即,若上传的测试样本与其中一个或多个样本参数不符,则判定上传的所述测试样本与所述样本参数不匹配,此时,提示用户存在测试风险,比如提示用户“可能达不到测试效果”;同时还可以显示不匹配的样本参数的具体内容,比如,显示“干扰样本数量尚缺少10个”。That is, if the uploaded test sample does not match one or more of the sample parameters, it is determined that the uploaded test sample does not match the sample parameter. At this time, the user is prompted to have a test risk, such as prompting the user To the test effect"; at the same time, it can also display the specific content of the unmatched sample parameters, for example, display "the number of interference samples is still missing 10".
在一实施例中,所述步骤S10包括以下步骤:In an embodiment, the step S10 includes the following steps:
根据所述识别目标的唯一标识调取所述测试样本库中的测试样本,并获取所述测试样本中的识别对象。The test samples in the test sample library are retrieved according to the unique identification of the identification target, and the identification objects in the test samples are obtained.
也即,若需要进行测试,此时可以在当前显示界面上输入(或自识别目标列表中选取)所述识别目标的唯一标识(比如识别目标为牡丹花,此时可以在当前显示界面中选择测试目标为牡丹花的唯一编号),并根据所述识别目标的唯一标识调取所述测试样本库中的测试样本;作为优选,在一实施例中,在客户端中进行测试的网页的前端网页中可以上传该测试样本库,在该前端网页中,用户在确认需要对某一个识别目标进行测试时,可以在该前端网页中点击预设上传按钮,此时,前端网页中会出现一个输入框供用户输入与该识别目标关联的样本库的链接地址,在用户填写该链接地址之后,可以跳转至该链接地址所对应的样本库,获取该样本库中的测试样本,以完成上传测试样本库的过程。That is, if testing is required, you can enter (or select from the list of recognition targets) the unique identifier of the recognition target on the current display interface (for example, if the recognition target is peony, you can select it in the current display interface) The test target is the unique number of the peony flower), and the test sample in the test sample library is retrieved according to the unique identification of the identification target; as a preference, in one embodiment, the front end of the webpage for testing in the client The test sample library can be uploaded on the webpage. In the front-end webpage, when the user confirms that a certain identification target needs to be tested, the user can click the preset upload button on the front-end webpage. At this time, an input will appear on the front-end webpage. The box is for the user to input the link address of the sample library associated with the identification target. After the user fills in the link address, he can jump to the sample library corresponding to the link address to obtain the test sample in the sample library to complete the upload test The sample library process.
可理解地,所述测试样本库可以存储在后台服务器中的后台数据库中,此时仅需要直接根据所述识别目标的唯一标识自后台数据库中调取测试样本即可;在另一实施例中,所述测试样本库存储在创建图像识别模型的客户端的本地数据库,此时,需要首先自本地数据库中根据所述识别目标的唯一标识获取所述测试样本至后台数据库,以便于后续进行测试。Understandably, the test sample library may be stored in the background database in the background server, at this time it is only necessary to directly retrieve the test sample from the background database according to the unique identification of the identification target; in another embodiment The test sample library is stored in the local database of the client that creates the image recognition model. At this time, it is necessary to first obtain the test sample from the local database according to the unique identifier of the recognition target to the background database, so as to facilitate subsequent testing.
可理解地,不管所述测试样本库在何处,所述识别目标的唯一标识与所述测试样本库的地址关联,在选取所述识别目标的唯一标识之后,即可获取所述测试样本库的地址,并进入与该地址对应的测试样本库中调取测试样本。Understandably, no matter where the test sample library is, the unique identification of the identification target is associated with the address of the test sample library. After selecting the unique identification of the identification target, the test sample library can be obtained And enter the test sample library corresponding to the address to retrieve test samples.
同时,由于测试样本中均包含识别对象,因此在获取到所述测试样本时,同时获取所述测试样本中的识别对象。At the same time, since the test samples all contain the identification objects, when the test samples are acquired, the identification objects in the test samples are acquired at the same time.
S20,接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址,并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;S20. Receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target, and call an image recognition model through a preset interface corresponding to the interface address, and input the test sample into the image In the recognition model;
在本实施例中,服务器提供预设接口以方便测试人员通过该接口调用待测试的图像识别模型;其中,所述测试指令是指测试人员在客户端输入或选取与图像识别模型关联的识别目标的唯一标识(所述识别目标的唯一标识与所述图像识别模型的预设接口的接口地址关联,因此在输入或选取所述识别目标的唯一标识之后,即可获取调用所述图像识别模型的预设接口的接口地址,从而通过所述预设接口调用所述图像识别模型)之后,确认需要进行测试时(此时已经获取到所述测试样本),通过点击或滑动预设按钮的形式发送的测试指令。可理解地,上述接口地址可以在前端网页中输入,比如,选取所述识别目标的唯一标识之后,会自动跳转至该前端网页中,若在此前,测试人员已经输入过与该识别目标的唯一标识关联的接口地址,则此时自动显示该接口地址即可,若此前并未输入过接口地址,此时可以手动输入或者选择该接口地址,并将其与该识别目标的唯一标识关联。In this embodiment, the server provides a preset interface to facilitate the tester to call the image recognition model to be tested through the interface; wherein, the test instruction refers to the tester inputting or selecting a recognition target associated with the image recognition model on the client Unique identification (the unique identification of the identification target is associated with the interface address of the preset interface of the image identification model, so after entering or selecting the unique identification of the identification target, the image identification model call can be obtained Preset the interface address of the interface, so that after calling the image recognition model through the preset interface), when it is confirmed that a test needs to be performed (the test sample has been obtained at this time), it is sent by clicking or sliding a preset button Test instructions. Understandably, the above interface address can be entered in the front-end webpage. For example, after selecting the unique identification of the identification target, it will automatically jump to the front-end webpage. If the tester has input the To uniquely identify the associated interface address, the interface address is automatically displayed at this time. If the interface address has not been entered before, the interface address can be manually entered or selected and associated with the unique identifier of the identification target.
服务器通过所述预设接口调用所述图像识别模型对每个所述测试样本进行图像识别,开始测试过程。The server calls the image recognition model through the preset interface to perform image recognition on each of the test samples, and starts the test process.
S30,获取所述图像识别模型输出的对所述测试样本的识别结果。S30. Obtain the recognition result of the test sample output by the image recognition model.
在本实施例中,所述图像识别模型中输入的是通过预设接口传输的所述测试样本,所述图像识别模型中输出的是对所述测试样本的识别结果,所述图像识别模型的识别结果仅包含两种:所述测试样本中包含识别目标(此时,所述图像识别模型输出pass)以及所述测试样本中不包含识别目标(此时,所述图像识别模型输出fail)。In this embodiment, the image recognition model inputs the test sample transmitted through a preset interface, and the image recognition model outputs the recognition result of the test sample. The image recognition model There are only two kinds of recognition results: the test sample contains a recognition target (in this case, the image recognition model outputs a pass) and the test sample does not contain a recognition target (in this case, the image recognition model outputs a fail).
在一实施例中,如图4所示,所述步骤S30中,所述获取所述图像识别模型输出的对所述测试样本的识别结果,包括:In an embodiment, as shown in FIG. 4, in step S30, the acquiring the recognition result of the test sample output by the image recognition model includes:
S301,在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;也即,提取每一个所述测试样本中的识别对象中的第一图像特征。S301. Extract the first image feature of the identification object of the test sample from the test samples input in the image recognition model; that is, extract the first image of the identification object in each of the test samples feature.
S302,根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;也即,每一个图像识别模型均关联有一个识别目标(或自所述识别目标中提取的第二图像特征),若关联的仅为所述识别目标,在该步骤中,需要自所述识别目标中提取所述第二图像特征。S302: Retrieve the second image feature of the recognition target according to the unique identifier of the recognition target; that is, each image recognition model is associated with a recognition target (or a second image feature extracted from the recognition target ), if only the recognition target is associated, in this step, the second image feature needs to be extracted from the recognition target.
S303,通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;也即,所述图像识别模型可以获取所述第一图像特征与所述第二图像特征的相似度(包括图像特征中各特征的颜色、形状、轮廓、各特征之间的距离和组合方式等来进行判断),且所述相似度阈值可以根据需求设定,比如设定为0.6-1之间。S303. Determine, through the image recognition model, whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold; that is, the image recognition model can obtain the first image feature and The similarity of the second image feature (including the color, shape, contour, distance between each feature and combination method of each feature in the image feature to determine), and the similarity threshold can be set according to demand, For example, set between 0.6-1.
S304,在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;也即,在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,认为所述测试样本中的识别对象与所述识别目标为同一物体,此时,认为所述测试样本中的测试对象即为识别目标,并输出所述测试样本中包含识别目标的识别结果。S304: When the similarity between the first image feature and the second image feature exceeds a preset similarity threshold, output a recognition result including the recognition target in the test sample; that is, in the first image feature When the similarity with the second image feature exceeds a preset similarity threshold, the identification object in the test sample and the identification target are considered to be the same object, and at this time, the test object in the test sample is considered to be Identify the target, and output the identification result of the test sample containing the identified target.
S305,在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。也即,在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,认为所述测试样本中的识别对象与所述识别目标不是同一物体,此时,认为所述测试样本中的测试对象不是识别目标,并输出所述测试样本中不包含识别目标的识别结果。S305. When the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold, output a recognition result that the test sample does not include a recognition target. That is, when the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold, it is considered that the recognition object in the test sample and the recognition target are not the same object, at this time, It is considered that the test object in the test sample is not the recognition target, and the recognition result that the test sample does not contain the recognition target is output.
S40,根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。S40. Obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
其中,所述测试结果是指判定所述图像识别模型是否达标的判定结果。该测试结果可能包括所述图像识别模型识别精确度已经达标或尚未达标等。Wherein, the test result refers to a determination result of determining whether the image recognition model meets the standard. The test result may include that the recognition accuracy of the image recognition model has reached or has not yet reached the standard.
在一实施例中,所述识别结果包括所述测试样本中包含识别目标和所述测试样本中不包含识别目标;如图5所示,所述步骤S40包括以下步骤:In an embodiment, the recognition result includes that the test sample includes a recognition target and that the test sample does not include a recognition target; as shown in FIG. 5, the step S40 includes the following steps:
S401,检测所述识别结果与所述测试样本中的识别对象是否匹配。S401: Detect whether the recognition result matches the recognition object in the test sample.
也即,若此前在步骤S102中记录的所述测试样本中的识别对象,与所述测试样本库关联的所述识别目标相同,代表所述测试样本中包含所述识别目标;此时,若对于所述测试样本的识别结果为所述测试样本中包含所述识别目标,即检测到所述识别结果与所述测试样本中的识别对象匹配;若对于所述测试样本的识别结果为所述测试样本中不包含所述识别目标,即检测到所述识别结果与所述测试样本中的识别对象不匹配。That is, if the identification object in the test sample previously recorded in step S102 is the same as the identification target associated with the test sample library, it means that the test sample contains the identification target; at this time, if The identification result for the test sample is that the test sample contains the identification target, that is, it is detected that the identification result matches the identification object in the test sample; if the identification result for the test sample is the The identification target is not included in the test sample, that is, it is detected that the identification result does not match the identification object in the test sample.
若此前在步骤S102中记录的所述测试样本中的识别对象,与所述测试样本库关联的所述识别目标不同(比如为干扰样本或不符合型样本),代表所述测试样本中不包含所述识别目标;此时,若对于所述测试样本的识别结果为所述测试样本中包含所述识别目标,即检测到所述识别结果与所述测试样本中的识别对象不匹配;若对于所述测试样本的识别结果为所述测试样本中不包含所述识别目标,即检测到所述识别结果与所述测试样本中的识别对象匹配。If the identification object in the test sample previously recorded in step S102, the identification target associated with the test sample library is different (such as an interference sample or a non-conforming sample), it means that the test sample does not contain The identification target; at this time, if the identification result for the test sample is that the test sample contains the identification target, it is detected that the identification result does not match the identification object in the test sample; if The identification result of the test sample is that the test sample does not include the identification target, that is, it is detected that the identification result matches the identification object in the test sample.
S402,在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配 样本。S402, when the recognition result matches the recognition object in the test sample, the test sample is counted as a matching sample.
S403,在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本。S403, when the recognition result does not match the recognition object in the test sample, the test sample is counted as a mismatch sample.
S404,根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:S404. Calculate the matching rate between the recognition result and the recognition object in the test sample according to the following formula:
X=A/(A+B)*100%X=A/(A+B)*100%
其中:among them:
X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
A为所述匹配样本;A is the matching sample;
B为所述不匹配样本。B is the unmatched sample.
S405,根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。S405: Obtain a test result according to the matching rate, where the test result includes the image recognition model test passing and the image recognition model test failing.
在所述测试结果为所述图像识别模型测试通过时,可以提示创建所述图像识别模型的用户,该图像识别模型已经达标,可以使用所述图像识别模型进行图像识别;在所述测试结果为所述图像识别模型测试不通过时,提示用户需要进一步调整所述图像识别模型。When the test result is that the image recognition model has passed the test, the user who created the image recognition model may be prompted, the image recognition model has reached the standard, and the image recognition model may be used for image recognition; when the test result is When the image recognition model test fails, the user is prompted to further adjust the image recognition model.
在一实施例中,如图6所示,所述步骤S405之后,所述方法还包括:In an embodiment, as shown in FIG. 6, after the step S405, the method further includes:
S406,在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型。S406, when the test result is that the image recognition model test fails, it prompts that the image recognition model needs to be further adjusted.
S407,获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;也即,在该步骤中,获取所述测试样本中的所述不匹配样本和所述匹配样本的具体数据,同时根据上述数据确定所述图像识别模型中训练效果最差的环节并对其进行调整。S407: Obtain the sample parameters corresponding to each of the unmatched samples, count the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, Sort the sample parameters; that is, in this step, obtain the specific data of the unmatched sample and the matched sample in the test sample, and determine the worst training effect in the image recognition model based on the above data And adjust it.
S408,根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。也即,所述样本参数对应的所述不匹配样本的数量越多,说明所述图像识别模型对该样本参数的测试样本的训练效果越差,相反,所述样本参数对应的所述不匹配样本的数量越少,说明所述图像识别模型对该样本参数的测试样本的训练效果越好;可以在确定所述图像识别模型训练效果最差的预设数量的环节之后,对该环节加强训练以获取更完善的图像识别模型,进而完成对所述图像识别模型的调整。S408: Determine the link with the worst training effect of the image recognition model according to the ranking results of the sample parameters, and adjust the link with the worst training effect of the image recognition model. That is, the greater the number of unmatched samples corresponding to the sample parameters, the worse the training effect of the image recognition model on the test samples of the sample parameters. Conversely, the unmatched corresponding to the sample parameters The smaller the number of samples, the better the training effect of the image recognition model on the test samples of the sample parameters; after determining the preset number of links with the worst training effect of the image recognition model, the training can be strengthened for this link To obtain a more complete image recognition model, and then complete the adjustment of the image recognition model.
在一实施例中,如图7所示,提供一种基于图像识别的测试装置,该基于图像识别的测试装置与上述实施例中基于图像识别的测试方法一一对应。所述基于图像识别的测试装置包括:In an embodiment, as shown in FIG. 7, a test device based on image recognition is provided. The test device based on image recognition corresponds one-to-one with the test method based on image recognition in the above embodiment. The test device based on image recognition includes:
第一获取模块11,用于根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;The first obtaining module 11 is configured to obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
输入模块12,用于接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;The input module 12 is used to receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target; and call an image recognition model through a preset interface corresponding to the interface address, and transfer the test sample Input into the image recognition model;
第二获取模块13,用于获取所述图像识别模型输出的对所述测试样本的识别结果;The second obtaining module 13 is configured to obtain the recognition result of the test sample output by the image recognition model;
第三获取模块14,用于根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The third obtaining module 14 is configured to obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
在一实施例中,如图8所示,所述装置还包括:In an embodiment, as shown in FIG. 8, the device further includes:
创建模块15,用于创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;The creation module 15 is used to create a test sample library, set the sample parameters in the test sample library, and store the sample test library in association with the unique identification of the identification target;
检测模块16,用于接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;The detection module 16 is configured to receive a test sample uploaded by the user to the test sample library on the client, record the identification object included in the test sample, and detect whether the uploaded test sample matches the sample parameter;
提示模块17,用于在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;The prompt module 17 is used to prompt the test sample to meet the requirements when the test sample matches the sample parameter;
显示模块18,用于在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。The display module 18 is configured to display content that the test sample does not match the sample parameter and/or indicate that there is a test risk when the test sample does not match the sample parameter.
在一实施例中,如图9所示,所述第二获取模块13包括:In an embodiment, as shown in FIG. 9, the second obtaining module 13 includes:
提取单元131,用于在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;The extraction unit 131 is configured to extract the first image feature of the identification object of the test sample from the test samples input in the image recognition model;
调取单元132,用于根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;The retrieval unit 132 is configured to retrieve the second image feature of the recognition target according to the unique identifier of the recognition target;
判断单元133,用于通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;The judging unit 133 is configured to judge whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold through the image recognition model;
第一输出单元134,用于在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;The first output unit 134 is configured to output a recognition result containing a recognition target in the test sample when the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
第二输出单元135,用于在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。The second output unit 135 is configured to output a recognition result that does not include a recognition target in the test sample when the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold.
在一实施例中,所述第三获取模块14包括:In an embodiment, the third obtaining module 14 includes:
检测单元,用于检测所述识别结果与所述测试样本中的识别对象是否匹配;A detection unit, configured to detect whether the recognition result matches the recognition object in the test sample;
第一计入单元,用于在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配样本;A first counting unit for counting the test sample into the matching sample when the recognition result matches the identification object in the test sample;
第二计入单元,用于在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本;A second counting unit, configured to count the test sample as a non-matching sample when the recognition result does not match the identification object in the test sample;
计算单元,用于根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:The calculation unit is used to calculate the matching rate between the recognition result and the recognition object in the test sample according to the following formula:
X=A/(A+B)*100%X=A/(A+B)*100%
其中:among them:
X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
A为所述匹配样本;A is the matching sample;
B为所述不匹配样本;B is the unmatched sample;
获取单元,用于根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。The obtaining unit is configured to obtain a test result according to the matching rate, where the test result includes the image recognition model test passing and the image recognition model test failing.
在一实施例中,所述第三获取模块14还包括:In an embodiment, the third obtaining module 14 further includes:
提示单元,用于在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型;A prompting unit, for prompting that the image recognition model needs to be further adjusted when the test result is that the image recognition model test fails;
统计单元,用于获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;A statistical unit, configured to obtain sample parameters corresponding to each of the unmatched samples, count the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, Sort each of the sample parameters;
调整单元,用于根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。The adjusting unit is configured to determine the link with the worst training effect of the image recognition model according to the ranking results of the sample parameters, and adjust the link with the worst training effect of the image recognition model.
关于基于图像识别的测试装置的具体限定可以参见上文中对于基于图像识别的测试方法的限定,在此不再赘述。上述基于图像识别的测试装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the test device based on image recognition, reference may be made to the above definition of the test method based on image recognition, which will not be repeated here. Each module in the above-mentioned image recognition-based test device may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in the hardware or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图10所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该可读存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为可读存储介质中的操作系统和计算机可读指令的运行提供环境。。该计算机可读指令被处理器执行时以实现一种基于图像识别的测试方法。本实施例所提供的可读存储介质包括 非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure may be as shown in FIG. 10. The computer device includes a processor, memory, network interface, and database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and internal memory. The readable storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. . The computer-readable instructions are executed by the processor to implement a test method based on image recognition. The readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
在一个实施例中,提供了一个或多个存储有计算机可读指令的可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质;该可读存储介质上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现以下步骤:In one embodiment, one or more readable storage media storing computer-readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage Medium; the computer-readable instructions are stored on the readable storage medium, and when the computer-readable instructions are executed by one or more processors, the one or more processors implement the following steps:
根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质或易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、存储器总线直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art may understand that all or part of the process in the method of the foregoing embodiments may be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions may be stored in a non-volatile computer In a readable storage medium or a volatile readable storage medium, when the computer-readable instructions are executed, they may include the processes of the foregoing method embodiments. Wherein, any reference to the memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元或模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元或模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional unit or module is used as an example for illustration. In practical applications, the above-mentioned functions may be allocated by different functional units or Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application. Within the scope of protection of this application.

Claims (20)

  1. 一种基于图像识别的测试方法,其特征在于,包括:A test method based on image recognition is characterized by including:
    根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
    接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
    获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
    根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  2. 如权利要求1所述的基于图像识别的测试方法,其特征在于,所述根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象之前,包括:The test method based on image recognition according to claim 1, wherein before acquiring the test sample and the identification object in the test sample according to the unique identification of the identification target, comprising:
    创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;Create a test sample library, set sample parameters in the test sample library, and store the sample test library in association with a unique identification of the identification target;
    接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;Receiving a test sample uploaded by the user to the test sample library on the client, recording the identification object included in the test sample, and detecting whether the uploaded test sample matches the sample parameter;
    在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;When the test sample matches the sample parameter, the test sample is prompted to meet the requirements;
    在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。When the test sample does not match the sample parameter, display content that the test sample does not match the sample parameter and/or suggest that there is a test risk.
  3. 如权利要求1所述基于图像识别的测试方法,其特征在于,所述获取所述图像识别模型输出的对所述测试样本的识别结果,包括:The test method based on image recognition according to claim 1, wherein the obtaining the recognition result of the test sample output by the image recognition model includes:
    在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;Extracting the first image feature of the identification object of the test sample from the test sample input in the image recognition model;
    根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;Extracting the second image feature of the identification target according to the unique identification of the identification target;
    通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;Judging by the image recognition model whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
    在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;When the similarity between the first image feature and the second image feature exceeds a preset similarity threshold, output a recognition result including a recognition target in the test sample;
    在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。When the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold, output a recognition result that does not include a recognition target in the test sample.
  4. 如权利要求2所述的基于图像识别的测试方法,其特征在于,所述根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果,包括:The test method based on image recognition according to claim 2, wherein the obtaining the test result according to the matching rate between the recognition result and the recognition object in the test sample includes:
    检测所述识别结果与所述测试样本中的识别对象是否匹配;Detecting whether the recognition result matches the recognition object in the test sample;
    在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配样本;When the recognition result matches the recognition object in the test sample, the test sample is counted into the matching sample;
    在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本;When the recognition result does not match the recognition object in the test sample, the test sample is counted as a non-matching sample;
    根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:The matching rate between the recognition result and the recognition object in the test sample is calculated according to the following formula:
    X=A/(A+B)*100%X=A/(A+B)*100%
    其中:among them:
    X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
    A为所述匹配样本;A is the matching sample;
    B为所述不匹配样本;B is the unmatched sample;
    根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。A test result is obtained according to the matching rate, and the test result includes that the image recognition model test passes and the image recognition model test fails.
  5. 如权利要求4所述的基于图像识别的测试方法,其特征在于,所述根据所述匹配率获取测试结果之后,所述方法还包括:The test method based on image recognition according to claim 4, wherein after the test result is obtained according to the matching rate, the method further comprises:
    在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型;When the test result is that the image recognition model test fails, it prompts that the image recognition model needs to be further adjusted;
    获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;Obtaining sample parameters corresponding to each of the unmatched samples, counting the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, for each sample Parameter sorting;
    根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。The link with the worst training effect of the image recognition model is determined according to the ranking results of the sample parameters, and the link with the worst training effect of the image recognition model is adjusted.
  6. 一种基于图像识别的测试装置,其特征在于,包括:A test device based on image recognition, characterized in that it includes:
    第一获取模块,用于根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;The first obtaining module is used to obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
    输入模块,用于接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;The input module is used to receive a test instruction, obtain a preset interface address associated with the unique identification of the identification target; and call an image recognition model through a preset interface corresponding to the interface address, and input the test sample In the image recognition model;
    第二获取模块,用于获取所述图像识别模型输出的对所述测试样本的识别结果;A second obtaining module, configured to obtain the recognition result of the test sample output by the image recognition model;
    第三获取模块,用于根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The third obtaining module is configured to obtain a test result according to a matching rate between the recognition result and the recognition object in the test sample.
  7. 如权利要求6所述的基于图像识别的测试装置,其特征在于,所述装置还包括:The test device based on image recognition according to claim 6, wherein the test device further comprises:
    创建模块,用于创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;A creation module, used to create a test sample library, set the sample parameters in the test sample library, and store the sample test library in association with the unique identification of the identification target;
    检测模块,用于接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;The detection module is configured to receive the test sample uploaded by the user to the test sample library on the client, record the identification object included in the test sample, and detect whether the uploaded test sample matches the sample parameter;
    提示模块,用于在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;A prompt module, used to prompt the test sample to meet requirements when the test sample matches the sample parameter;
    显示模块,用于在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。The display module is configured to display content that the test sample does not match the sample parameter and/or indicate that there is a test risk when the test sample does not match the sample parameter.
  8. 如权利要求6所述的基于图像识别的测试装置,其特征在于,所述第二获取模块包括:The test device based on image recognition according to claim 6, wherein the second acquisition module comprises:
    提取单元,用于在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;An extraction unit, configured to extract the first image feature of the identification object of the test sample from the test samples input in the image identification model;
    调取单元,用于根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;A retrieving unit, configured to retrieve the second image feature of the recognition target according to the unique identifier of the recognition target;
    判断单元,用于通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;A judgment unit, configured to judge whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold through the image recognition model;
    第一输出单元,用于在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;A first output unit, configured to output a recognition result including a recognition target in the test sample when the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
    第二输出单元,用于在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。The second output unit is configured to output a recognition result that does not include a recognition target in the test sample when the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold.
  9. 如权利要求7所述的基于图像识别的测试装置,其特征在于,所述第三获取模块包括:The test device based on image recognition according to claim 7, wherein the third acquisition module comprises:
    检测单元,用于检测所述识别结果与所述测试样本中的识别对象是否匹配;A detection unit, configured to detect whether the recognition result matches the recognition object in the test sample;
    第一计入单元,用于在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配样本;A first counting unit for counting the test sample into the matching sample when the recognition result matches the identification object in the test sample;
    第二计入单元,用于在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本;A second counting unit, configured to count the test sample as a non-matching sample when the recognition result does not match the identification object in the test sample;
    计算单元,用于根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:The calculation unit is used to calculate the matching rate between the recognition result and the recognition object in the test sample according to the following formula:
    X=A/(A+B)*100%X=A/(A+B)*100%
    其中:among them:
    X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
    A为所述匹配样本;A is the matching sample;
    B为所述不匹配样本;B is the unmatched sample;
    获取单元,用于根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。The obtaining unit is configured to obtain a test result according to the matching rate, where the test result includes the image recognition model test passing and the image recognition model test failing.
  10. 如权利要求9所述的基于图像识别的测试装置,其特征在于,所述第三获取模块还包括:The test device based on image recognition according to claim 9, wherein the third acquisition module further comprises:
    提示单元,用于在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型;A prompting unit, for prompting that the image recognition model needs to be further adjusted when the test result is that the image recognition model test fails;
    统计单元,用于获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;A statistical unit, configured to obtain sample parameters corresponding to each of the unmatched samples, count the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, Sort each of the sample parameters;
    调整单元,用于根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。The adjusting unit is configured to determine the link with the worst training effect of the image recognition model according to the ranking results of the sample parameters, and adjust the link with the worst training effect of the image recognition model.
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that, when the processor executes the computer-readable instructions, it is implemented as follows step:
    根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
    接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
    获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
    根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  12. 如权利要求11所述的计算机设备,其特征在于,所述根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象之前,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 11, wherein the processor executes the computer-readable instruction before acquiring the test sample and the identification object in the test sample according to the unique identification of the identification target Implement the following steps:
    创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;Create a test sample library, set sample parameters in the test sample library, and store the sample test library in association with a unique identification of the identification target;
    接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;Receiving a test sample uploaded by the user to the test sample library on the client, recording the identification object included in the test sample, and detecting whether the uploaded test sample matches the sample parameter;
    在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;When the test sample matches the sample parameter, the test sample is prompted to meet the requirements;
    在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。When the test sample does not match the sample parameter, display content that the test sample does not match the sample parameter and/or suggest that there is a test risk.
  13. 如权利要求11所述的计算机设备,其特征在于,所述获取所述图像识别模型输出的对所述测试样本的识别结果,包括:The computer device according to claim 11, wherein the obtaining the recognition result of the test sample output by the image recognition model comprises:
    在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;Extracting the first image feature of the identification object of the test sample from the test sample input in the image recognition model;
    根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;Extracting the second image feature of the identification target according to the unique identification of the identification target;
    通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;Judging by the image recognition model whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
    在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;When the similarity between the first image feature and the second image feature exceeds a preset similarity threshold, output a recognition result including the recognition target in the test sample;
    在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。When the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold, output a recognition result that does not include a recognition target in the test sample.
  14. 如权利要求12所述的计算机设备,其特征在于,所述根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果,包括:The computer device according to claim 12, wherein the obtaining the test result according to the matching rate between the recognition result and the recognition object in the test sample includes:
    检测所述识别结果与所述测试样本中的识别对象是否匹配;Detecting whether the recognition result matches the recognition object in the test sample;
    在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配样本;When the recognition result matches the recognition object in the test sample, the test sample is counted into the matching sample;
    在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本;When the recognition result does not match the recognition object in the test sample, the test sample is counted as a non-matching sample;
    根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:The matching rate between the recognition result and the recognition object in the test sample is calculated according to the following formula:
    X=A/(A+B)*100%X=A/(A+B)*100%
    其中:among them:
    X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
    A为所述匹配样本;A is the matching sample;
    B为所述不匹配样本;B is the unmatched sample;
    根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。A test result is obtained according to the matching rate, and the test result includes that the image recognition model test passes and the image recognition model test fails.
  15. 如权利要求14所述的计算机设备,其特征在于,所述根据所述匹配率获取测试结果之后,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 14, wherein after the test result is obtained according to the matching rate, when the processor executes the computer-readable instruction, the following steps are further implemented:
    在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型;When the test result is that the image recognition model test fails, it prompts that the image recognition model needs to be further adjusted;
    获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;Obtaining sample parameters corresponding to each of the unmatched samples, counting the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, for each sample Parameter sorting;
    根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。The link with the worst training effect of the image recognition model is determined according to the ranking results of the sample parameters, and the link with the worst training effect of the image recognition model is adjusted.
  16. 一个或多个存储有计算机可读指令的可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions, characterized in that, when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象;Obtain the test sample and the identification object in the test sample according to the unique identification of the identification target;
    接收测试指令,获取与所述识别目标的唯一标识关联的预设的接口地址;并通过与所述接口地址对应的预设接口调用图像识别模型,并将所述测试样本输入所述图像识别模型中;Receiving a test instruction, obtaining a preset interface address associated with the unique identification of the identification target; and invoking an image recognition model through a preset interface corresponding to the interface address, and inputting the test sample into the image recognition model in;
    获取所述图像识别模型输出的对所述测试样本的识别结果;Obtaining the recognition result of the test sample output by the image recognition model;
    根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果。The test result is obtained according to the matching rate between the recognition result and the recognition object in the test sample.
  17. 如权利要求16所述的可读存储介质,其特征在于,所述根据识别目标的唯一标识,获取测试样本以及所述测试样本中的识别对象之前,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The readable storage medium according to claim 16, wherein the computer-readable instruction is one or more before acquiring the test sample and the identification object in the test sample according to the unique identification of the identification target When the processor executes, the one or more processors further execute the following steps:
    创建测试样本库,设定所述测试样本库中的样本参数,并将所述样本测试库与识别目标的唯一标识关联存储;Create a test sample library, set sample parameters in the test sample library, and store the sample test library in association with a unique identification of the identification target;
    接收用户在客户端上传至所述测试样本库中的测试样本,记录所述测试样本中包含的识别对象,并检测上传的所述测试样本与所述样本参数是否匹配;Receiving a test sample uploaded by the user to the test sample library on the client, recording the identification object included in the test sample, and detecting whether the uploaded test sample matches the sample parameter;
    在所述测试样本与所述样本参数匹配时,提示测试样本符合要求;When the test sample matches the sample parameter, the test sample is prompted to meet the requirements;
    在所述测试样本与所述样本参数不匹配时,显示所述测试样本与所述样本参数不匹配内容和/或提示存在测试风险。When the test sample does not match the sample parameter, display content that the test sample does not match the sample parameter and/or suggest that there is a test risk.
  18. 如权利要求16所述的可读存储介质,其特征在于,所述获取所述图像识别模型输出的对所述测试样本的识别结果,包括:The readable storage medium according to claim 16, wherein the acquiring the recognition result of the test sample output by the image recognition model includes:
    在输入所述图像识别模型中的所述测试样本中,提取所述测试样本的识别对象的第一图像特征;Extracting the first image feature of the identification object of the test sample from the test sample input in the image recognition model;
    根据所述识别目标的唯一标识调取所述识别目标的第二图像特征;Retrieving the second image feature of the identification target according to the unique identification of the identification target;
    通过所述图像识别模型判断所述第一图像特征与所述第二图像特征的相似度是否超过预设相似度阈值;Judging by the image recognition model whether the similarity between the first image feature and the second image feature exceeds a preset similarity threshold;
    在所述第一图像特征与所述第二图像特征的相似度超过预设相似度阈值时,输出所述测试样本中包含识别目标的识别结果;When the similarity between the first image feature and the second image feature exceeds a preset similarity threshold, output a recognition result including a recognition target in the test sample;
    在所述第一图像特征与所述第二图像特征的相似度未超过预设相似度阈值时,输出所述测试样本中不包含识别目标的识别结果。When the similarity between the first image feature and the second image feature does not exceed a preset similarity threshold, output a recognition result that does not include a recognition target in the test sample.
  19. 如权利要求17所述的可读存储介质,其特征在于,所述根据所述识别结果与所述测试样本中的识别对象的匹配率获取测试结果,包括:The readable storage medium according to claim 17, wherein the obtaining the test result according to the matching rate between the recognition result and the recognition object in the test sample includes:
    检测所述识别结果与所述测试样本中的识别对象是否匹配;Detecting whether the recognition result matches the recognition object in the test sample;
    在所述识别结果与所述测试样本中的识别对象匹配时,将所述测试样本计入匹配样本;When the recognition result matches the recognition object in the test sample, the test sample is counted into the matching sample;
    在所述识别结果与所述测试样本中的识别对象不匹配时,将所述测试样本计入不匹配样本;When the recognition result does not match the recognition object in the test sample, the test sample is counted as a non-matching sample;
    根据以下公式计算所述识别结果与所述测试样本中的识别对象的匹配率:The matching rate between the recognition result and the recognition object in the test sample is calculated according to the following formula:
    X=A/(A+B)*100%X=A/(A+B)*100%
    其中:among them:
    X为所述识别结果与所述测试样本中的识别对象的匹配率;X is the matching rate between the recognition result and the recognition object in the test sample;
    A为所述匹配样本;A is the matching sample;
    B为所述不匹配样本;B is the unmatched sample;
    根据所述匹配率获取测试结果,所述测试结果包括所述图像识别模型测试通过与所述图像识别模型测试不通过。A test result is obtained according to the matching rate, and the test result includes that the image recognition model test passes and the image recognition model test fails.
  20. 如权利要求19所述的可读存储介质,其特征在于,所述根据所述匹配率获取测试结果之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The readable storage medium of claim 19, wherein after the test result is obtained according to the matching rate, when the computer-readable instructions are executed by one or more processors, the one or more Each processor also performs the following steps:
    在所述测试结果为所述图像识别模型测试不通过时,提示需要进一步调整所述图像识别模型;When the test result is that the image recognition model test fails, it prompts that the image recognition model needs to be further adjusted;
    获取各所述不匹配样本对应的样本参数,统计各所述样本参数对应的所述不匹配样本的数量,并根据各所述样本参数对应的所述不匹配样本的数量,对各所述样本参数进行排序;Obtaining sample parameters corresponding to each of the unmatched samples, counting the number of the unmatched samples corresponding to each of the sample parameters, and according to the number of the unmatched samples corresponding to each of the sample parameters, for each sample Parameter sorting;
    根据各所述样本参数的排序结果确定所述图像识别模型训练效果最差的环节,并对所述图像识别模型训练训练效果最差的环节进行调整。The link with the worst training effect of the image recognition model is determined according to the ranking results of the sample parameters, and the link with the worst training effect of the image recognition model is adjusted.
PCT/CN2019/120108 2018-12-14 2019-11-22 Image recognition-based testing and apparatus, and computer device and storage medium WO2020119419A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811536981.6 2018-12-14
CN201811536981.6A CN109766915A (en) 2018-12-14 2018-12-14 Test method, device, computer equipment and storage medium based on image recognition

Publications (1)

Publication Number Publication Date
WO2020119419A1 true WO2020119419A1 (en) 2020-06-18

Family

ID=66451961

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120108 WO2020119419A1 (en) 2018-12-14 2019-11-22 Image recognition-based testing and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109766915A (en)
WO (1) WO2020119419A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282483A (en) * 2021-02-07 2021-08-20 北京大米科技有限公司 Test method, related device and computer medium
CN113642448A (en) * 2021-08-09 2021-11-12 中国人民解放军海军航空大学航空作战勤务学院 Image recognition method and device for sea/ground maneuvering target by aerial platform
CN113642642A (en) * 2021-08-13 2021-11-12 上海哔哩哔哩科技有限公司 Control identification method and device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766915A (en) * 2018-12-14 2019-05-17 深圳壹账通智能科技有限公司 Test method, device, computer equipment and storage medium based on image recognition
CN110427962A (en) * 2019-06-20 2019-11-08 厦门网宿有限公司 A kind of test method, electronic equipment and computer readable storage medium
CN112286780B (en) * 2019-07-23 2024-03-12 浙江宇视科技有限公司 Method, device, equipment and storage medium for testing recognition algorithm
CN110908901B (en) * 2019-11-11 2023-05-02 福建天晴数码有限公司 Automatic verification method and system for image recognition capability
CN110826646A (en) * 2019-11-27 2020-02-21 深圳市优必选科技股份有限公司 Robot vision testing method and device, storage medium and terminal equipment
CN111563049B (en) * 2020-07-13 2020-11-03 支付宝(杭州)信息技术有限公司 Attack testing method, device and equipment for biological feature recognition
CN112000578B (en) * 2020-08-26 2022-12-13 支付宝(杭州)信息技术有限公司 Test method and device of artificial intelligence system
CN115147700B (en) * 2022-06-23 2023-05-09 中国电子技术标准化研究院 Target recognition rate parameter calibration method and device for image recognition system
CN115205589A (en) * 2022-07-04 2022-10-18 腾讯科技(深圳)有限公司 Object identification method and device, electronic equipment and storage medium
CN115166469B (en) * 2022-09-07 2022-12-27 江苏东海半导体股份有限公司 Method and device for testing Mosfet device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2521092A1 (en) * 2009-12-28 2012-11-07 Cyber Ai Entertainment Inc. Image recognition system
CN108121943A (en) * 2016-11-30 2018-06-05 阿里巴巴集团控股有限公司 Method of discrimination and device and computing device based on picture
CN108304754A (en) * 2017-03-02 2018-07-20 腾讯科技(深圳)有限公司 The recognition methods of vehicle and device
CN108416198A (en) * 2018-02-06 2018-08-17 平安科技(深圳)有限公司 Man-machine identification model establishes device, method and computer readable storage medium
CN109766915A (en) * 2018-12-14 2019-05-17 深圳壹账通智能科技有限公司 Test method, device, computer equipment and storage medium based on image recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2521092A1 (en) * 2009-12-28 2012-11-07 Cyber Ai Entertainment Inc. Image recognition system
CN108121943A (en) * 2016-11-30 2018-06-05 阿里巴巴集团控股有限公司 Method of discrimination and device and computing device based on picture
CN108304754A (en) * 2017-03-02 2018-07-20 腾讯科技(深圳)有限公司 The recognition methods of vehicle and device
CN108416198A (en) * 2018-02-06 2018-08-17 平安科技(深圳)有限公司 Man-machine identification model establishes device, method and computer readable storage medium
CN109766915A (en) * 2018-12-14 2019-05-17 深圳壹账通智能科技有限公司 Test method, device, computer equipment and storage medium based on image recognition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282483A (en) * 2021-02-07 2021-08-20 北京大米科技有限公司 Test method, related device and computer medium
CN113642448A (en) * 2021-08-09 2021-11-12 中国人民解放军海军航空大学航空作战勤务学院 Image recognition method and device for sea/ground maneuvering target by aerial platform
CN113642448B (en) * 2021-08-09 2024-01-26 中国人民解放军海军航空大学航空作战勤务学院 Image recognition method and device for sea/ground maneuvering target by air platform
CN113642642A (en) * 2021-08-13 2021-11-12 上海哔哩哔哩科技有限公司 Control identification method and device
CN113642642B (en) * 2021-08-13 2024-04-30 上海哔哩哔哩科技有限公司 Control identification method and device

Also Published As

Publication number Publication date
CN109766915A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
WO2020119419A1 (en) Image recognition-based testing and apparatus, and computer device and storage medium
CN109389030B (en) Face characteristic point detection method and device, computer equipment and storage medium
RU2631994C1 (en) Method, device and server for determining image survey plan
WO2019020049A1 (en) Image retrieval method and apparatus, and electronic device
CN109992601B (en) To-do information pushing method and device and computer equipment
CN109783604B (en) Information extraction method and device based on small amount of samples and computer equipment
WO2022042123A1 (en) Image recognition model generation method and apparatus, computer device and storage medium
CN110135505B (en) Image classification method and device, computer equipment and computer readable storage medium
WO2021114612A1 (en) Target re-identification method and apparatus, computer device, and storage medium
CN111832581B (en) Lung feature recognition method and device, computer equipment and storage medium
WO2019056503A1 (en) Store monitoring evaluation method, device and storage medium
CN110969045B (en) Behavior detection method and device, electronic equipment and storage medium
CN112434556A (en) Pet nose print recognition method and device, computer equipment and storage medium
CN110879780A (en) Page abnormity detection method and device, electronic equipment and readable storage medium
CN111144372A (en) Vehicle detection method, device, computer equipment and storage medium
CN111144285A (en) Fat and thin degree identification method, device, equipment and medium
WO2023065744A1 (en) Face recognition method and apparatus, device and storage medium
CN111881740A (en) Face recognition method, face recognition device, electronic equipment and medium
CN113283388B (en) Training method, device, equipment and storage medium of living body face detection model
CN111914068B (en) Method for extracting test question knowledge points
CN114329022A (en) Method for training erotic classification model, method for detecting image and related device
CN113158900A (en) Training method, device and equipment for human face living body detection model and storage medium
WO2021036681A1 (en) Data verification method and apparatus, computer device and storage medium
CN111783062B (en) Verification code identification method, device, computer equipment and storage medium
CN112241705A (en) Target detection model training method and target detection method based on classification regression

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: 19895370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 30.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19895370

Country of ref document: EP

Kind code of ref document: A1