WO2022027816A1 - Detection method for image acquisition apparatus, and related apparatus - Google Patents

Detection method for image acquisition apparatus, and related apparatus Download PDF

Info

Publication number
WO2022027816A1
WO2022027816A1 PCT/CN2020/120043 CN2020120043W WO2022027816A1 WO 2022027816 A1 WO2022027816 A1 WO 2022027816A1 CN 2020120043 W CN2020120043 W CN 2020120043W WO 2022027816 A1 WO2022027816 A1 WO 2022027816A1
Authority
WO
WIPO (PCT)
Prior art keywords
abnormality
preset
image information
abnormal
detection method
Prior art date
Application number
PCT/CN2020/120043
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 WO2022027816A1 publication Critical patent/WO2022027816A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Definitions

  • the present application relates to the technical field of abnormality detection of electronic products, and in particular, to a detection method for an image acquisition device and a related device.
  • the present application provides a detection method for an image acquisition device and a related device to solve the above technical problems.
  • a technical solution adopted in this application is to provide a detection method for an image acquisition device, the detection method comprising:
  • the plurality of abnormal image information includes a first preset abnormality
  • An abnormality analysis is performed on the first image acquired by the image acquisition device according to the abnormality model.
  • the step of performing abnormality determination on the first preset abnormality in the abnormal image information includes:
  • the position of the first preset abnormality For at least one of the position of the first preset abnormality, the size of the first preset abnormality, the number of the first preset abnormality, and the degree of abnormality of the first preset abnormality in the abnormal image information are marked.
  • the step of marking the abnormality degree of the first preset abnormality includes:
  • the first predetermined abnormality is scored according to the severity of the first predetermined abnormality.
  • the step of establishing the abnormality model of the first preset abnormality according to the judgment result of the abnormality judgment includes:
  • a plurality of All the first preset abnormalities in the abnormal image information are divided into a plurality of abnormal levels
  • An abnormality model is established, the abnormality model includes the plurality of abnormality levels, and each of the abnormality levels corresponds to at least one image information corresponding to the first predetermined abnormality.
  • the step of performing anomaly analysis on the first image acquired by the image acquisition device according to the anomaly model includes:
  • the abnormality level of the first image is determined by matching the first image acquired by the image acquisition device with the abnormality image information corresponding to the abnormality model.
  • the detection method after the step of performing abnormality judgment on the first preset abnormality in the abnormal image information, and after the abnormality model of the first preset abnormality is established according to the judgment result of the abnormality judgment Before the step of analyzing, the detection method also includes:
  • the enhanced processing method includes:
  • Dyeing is performed on the region corresponding to the first preset abnormality in the abnormal image information.
  • the first preset abnormality includes black spot abnormality.
  • a technical solution adopted in the present application is to provide a detection device for an image acquisition device, characterized in that the detection device includes a processor and a memory; the memory is used for storing the processing The computer program executed by the processor and the intermediate data generated when the computer program is executed; when the processor executes the computer program, it is used to implement the detection method described above.
  • a technical solution adopted in the present application is to provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores program data, and the program data can be executed to realize the The detection method described above.
  • the present application provides a detection method for an image acquisition device and a related device.
  • the abnormality model of the first abnormality can be preset, and then the first image obtained by the image acquisition device can be compared with the first preset abnormality model in the abnormality model. Anomalies are matched, so that the first image and all the first preset abnormal areas in the first image can be quickly and automatically identified, and the location, size and abnormal score can be marked, thereby improving the accuracy of the first image acquired by the image acquisition device.
  • the first preset anomalies with different anomaly levels in the model can be used to match the first preset anomalies in the first image, so that each of the first preset anomalies in the first image can be automatically detected. Perform location labeling, area calculations, and anomaly scoring, reducing reliance on technicians.
  • FIG. 1 is a schematic flowchart of an embodiment of a detection method for an image acquisition device provided by the present application
  • FIG. 2 is a schematic structural diagram of an embodiment of a detection device for an image acquisition device provided by the present application
  • FIG. 3 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present application.
  • FIG. 1 is a schematic flowchart of an embodiment of a detection method for an image acquisition device provided by the present application.
  • the detection method for the image acquisition device may specifically include the following steps:
  • S101 Acquire a plurality of abnormal image information, where the plurality of abnormal image information includes a first preset abnormality.
  • the detection method of the image acquisition device may be used to detect a first preset abnormality in an image acquired by the image acquisition device, where the first preset abnormality may be a black spot abnormality in abnormal image information such as photos , or it can also be abnormal problems such as white spots or colored spots, which are not limited here.
  • a plurality of abnormal image information having the first preset abnormality may be acquired first.
  • the multiple pieces of abnormal image information may be images obtained respectively by using multiple image obtaining devices.
  • the image acquisition apparatus may include a front or rear camera of a mobile terminal such as a mobile phone.
  • the detection method When the detection method is used to detect the front or rear camera of a mobile terminal such as a mobile phone, a plurality of different mobile terminals such as mobile phones can be obtained, and the front or rear camera of each mobile terminal such as a mobile phone can be used to shoot multiple A photograph is taken, and the photograph is the abnormal image information described above. If the abnormal image information has a first preset abnormality, the abnormal image information can be the abnormal image information described above.
  • each abnormal image information may be a picture obtained by photographing a solid-color background by an image obtaining device.
  • the solid-color background may be a white background, a gray background, or a solid-color background of other colors.
  • S102 Perform an abnormality determination on the first preset abnormality in the abnormal image information, and establish an abnormality model of the first preset abnormality according to the determination result of the abnormality determination.
  • step S101 When step S101 is completed, the steps of step S102 can be continued, and the details are as follows:
  • the abnormality determination for the first preset abnormality in the plurality of abnormal image information may be to perform abnormality determination on the first preset abnormality of each abnormal image information by means of manual determination. Thereby, the position, size, number and degree of abnormality of the region having the first preset abnormality in each abnormal image information can be determined.
  • each first preset abnormality in the abnormal image information may be marked by manual determination.
  • each first preset abnormality in each abnormal image information can be circled by a label box, wherein the label box corresponding to each first preset abnormality can be the same as the corresponding first preset abnormality.
  • the outer contours overlap.
  • the labeling frame of each abnormal image information can be formed by the personnel using a labeling pen to draw along the outer contour of the first preset abnormality; Preset abnormal outline drawing is formed.
  • the number of the first preset abnormality in each abnormal image information may be determined according to the number of marked boxes.
  • the area or size of the first preset abnormality corresponding to the marked frame can be confirmed according to the percentage of each marked frame in the entire graphic area of the abnormal image information.
  • the degree of abnormality of each first preset abnormality in each abnormal image information can also be determined.
  • the degree of abnormality of the first predetermined abnormality may be determined according to the obvious degree of the black spot.
  • each black spot abnormality can be scored according to the obvious degree of black spot. For example, when the black spot abnormality does not exist, the abnormal score corresponding to the abnormal degree can be set to 0 points, and when the black spot abnormality corresponds to When the picture is purely black, the abnormal score of the black spot can be set to 100 points. Therefore, different degrees of black spot anomalies can be scored according to the gray scale of the black spot.
  • the degree of abnormality of each first preset abnormality in each abnormal image information can also be scored by an experienced judging person according to their judgment experience.
  • an abnormality model of the first predetermined abnormality may also be established by the determination result of the abnormality determination.
  • a first preset abnormal abnormality model is established according to the judgment result of the abnormality judgment, wherein the abnormality model can be used to detect whether the image acquisition device is qualified, and the specific steps include:
  • At least one of the position of the first preset abnormality, the size of the first preset abnormality, the number of the first preset abnormality, and the degree of abnormality of the first preset abnormality obtained according to the judgment will have the first preset abnormality
  • the abnormal image information is divided into multiple abnormal levels.
  • a plurality of abnormal image information may be classified into two abnormal levels. That is, the abnormal image information is classified as pass or fail.
  • the abnormal image information is classified as pass or fail.
  • the overall area of the abnormal image information is not larger than a certain preset value; and when the abnormality scores of all the first preset abnormality degrees in the abnormal image information are lower than a certain preset score, it can indicate that If the abnormal image information is qualified, it means that the image acquisition device corresponding to the abnormal image information can be qualified; otherwise, the abnormal image information is unqualified, that is, the image acquisition device corresponding to the abnormal image information is qualified.
  • the abnormal image information having the first preset abnormality may also be divided into at least three abnormality levels, for example, the first preset abnormality of the abnormal image information may be divided into minor, moderate, and severe.
  • the abnormal image information corresponding to one or more abnormal levels may be set as acceptable; and the abnormal image information corresponding to the remaining abnormal levels may be set as unqualified.
  • abnormality score of each first preset abnormality area in the abnormality image information may be weighted, so as to obtain the overall abnormality score corresponding to the abnormality image information.
  • the overall abnormality score of the abnormal image information may be equal to the sum of the result value of the area of each first preset abnormality multiplied by its abnormality score.
  • a plurality of abnormal image information are classified into different abnormal levels by the overall abnormal score of each abnormal image information.
  • the specific method for dividing the abnormal level of the abnormal image information can be referred to above, which will not be repeated here.
  • the first preset abnormality with the most serious first preset abnormality in each abnormal image information may also be used to classify the abnormality level, wherein the most serious first preset abnormality refers to the first predetermined abnormality. Let the abnormal area multiplied by its abnormal score result value is the largest in the abnormal image information.
  • the abnormal model of the first preset abnormality can be established.
  • the abnormality model may include at least two abnormality levels as divided above, and each abnormality level may include at least one abnormality image information corresponding to the abnormality level.
  • the FPN target detection technology may be used to perform model parameter training on the above-mentioned multiple abnormal image information, so as to establish the above-mentioned abnormal model.
  • S103 Perform an anomaly analysis on the first image acquired by the image acquisition device according to the anomaly model.
  • step S103 After completing step S102 to establish the abnormality model of the first preset abnormality, the steps of step S103 are continued, and the details are as follows:
  • An abnormality analysis is performed on the first image acquired by the image acquisition device according to the abnormality model to determine whether the image acquisition device is qualified.
  • an abnormality analysis can be performed on each image acquisition device through the abnormal model established above to determine whether the image acquisition device is qualified.
  • the solid-color background as described above can be photographed by an image acquisition device, thereby acquiring the first image. Then, by matching the first image with the abnormal image information corresponding to the abnormal model described above, the abnormal level of the first image is determined. Specifically, when the first preset abnormality in the first image can be matched with abnormal image information corresponding to a certain abnormality level, it is determined that the abnormality level of the first image is the abnormality level corresponding to the abnormal image information. Wherein, if the abnormality level corresponds to qualified, it means that the image acquisition device that captures the first image is qualified; otherwise, it is unqualified.
  • a deep learning technology may also be used to further train the abnormal model. For example, when the first image cannot be matched with the abnormal image information corresponding to the abnormal model described above, the position, size, number and degree of normality of the abnormality of the first preset abnormality in the first image can be further carried out. judgment, thereby establishing a new abnormal level corresponding to the first image in the abnormal model model.
  • position labeling, area calculation, and anomaly scoring may also be performed for each first preset anomaly in the first image according to the anomaly model.
  • the detection The method further includes: performing enhancement processing on the first predetermined abnormality in each abnormal image information, so as to improve the recognition degree of the first predetermined abnormality after the enhancement processing.
  • the enhancement processing method includes: increasing the contrast between an area corresponding to the first preset abnormality and an area other than the first preset abnormality in the abnormal image information; or increasing the contrast between the area corresponding to the first preset abnormality in the abnormal image information Do dyeing. Therefore, the recognition degree of the first preset abnormality in each abnormal image information can be improved.
  • the same enhancement processing method as above can also be used to perform enhancement processing on the first preset abnormality in the first image, thereby improving the detection of the first abnormality in the first image.
  • a preset abnormal recognition ability can also be used to perform enhancement processing on the first preset abnormality in the first image, thereby improving the detection of the first abnormality in the first image.
  • the present application also proposes a detection device for an image acquisition device.
  • FIG. 2 is a schematic structural diagram of an embodiment of a detection device for an image acquisition device provided by the present application.
  • the detection device 20 includes a processor 210 and a memory 220; the memory 220 is used to store the computer program executed by the processor 210 and the intermediate data generated when the computer program is executed; when the processor 210 executes the computer program, it is used to receive image acquisition The image information of the first image acquired by the device, so as to implement the detection method as described above, so as to perform graphic detection on the first image acquired by the image acquisition device.
  • FIG. 3 is a schematic structural diagram of an embodiment of the computer-readable storage medium provided by the present application.
  • the computer-readable storage medium 30 stores program data 31, and the program data 31 may be a program or an instruction, and the program data can be executed to implement the above coordinate calibration method.
  • the computer-readable storage device 30 may be a storage chip in the terminal, a hard disk, or other readable and writable storage tools such as a mobile hard disk, a USB flash drive, an optical disk, or the like, or a server or the like.
  • the disclosed method and apparatus may be implemented in other manners.
  • the device implementations described above are only illustrative.
  • the division of processors or memories is only a logical function division. In actual implementation, there may be other divisions, such as multiple processors and memories.
  • the functions may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or connection may be through some interfaces, indirect coupling or connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this implementation manner.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods in various embodiments of the present invention.
  • the aforementioned computer-readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory).
  • the present application provides a detection method for an image acquisition device and a related device.
  • the abnormality model of the first abnormality can be preset, and then the first image obtained by the image acquisition device can be compared with the first preset abnormality model in the abnormality model. Anomalies are matched, so that the first image and all the first preset abnormal areas in the first image can be quickly and automatically identified and the location, size and abnormal score can be marked, so as to improve the accuracy of the first image acquired by the image acquisition device.
  • the first preset anomalies with different anomaly levels in the model can be used to match the first preset anomalies in the first image, so that each of the first preset anomalies in the first image can be automatically detected. Perform location labeling, area calculations, and anomaly scoring, reducing reliance on technicians.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

A detection method for an image acquisition apparatus, and a related apparatus. The detection method comprises: acquiring multiple pieces of anomalous image information, wherein each of the multiple pieces of anomalous image information comprises a first preset anomaly (S101); performing anomaly determination on the first preset anomaly in the anomalous image information, and establishing an anomaly model of the first preset anomaly according to a determination result of the anomaly determination (S102); and according to the anomaly model, performing anomaly analysis on a first image acquired by an image acquisition apparatus (S103). By means of the method, the first preset anomaly in the first image acquired by the image acquisition apparatus can be automatically detected and identified.

Description

一种用于图像获取装置的检测方法及相关装置A detection method and related device for an image acquisition device 技术领域technical field
本申请涉及电子产品的异常检测技术领域,尤其涉及一种用于图像获取装置的检测方法及相关装置。The present application relates to the technical field of abnormality detection of electronic products, and in particular, to a detection method for an image acquisition device and a related device.
背景技术Background technique
现有技术中,当对手机等电子产品的前摄像头或者后摄像头进行异常检测时;通常需要采用该电子产品的前摄像头或者后摄像头进行拍照,然后通过检查人员对拍照后获取的照片进行人工分析;In the prior art, when abnormal detection is performed on the front camera or rear camera of an electronic product such as a mobile phone, it is usually necessary to use the front camera or rear camera of the electronic product to take pictures, and then the inspectors manually analyze the pictures obtained after taking the pictures. ;
技术问题technical problem
而且由于手机等电子产品的前后摄像头拍摄得到的照片中的缺陷大形状不一、位置不确定、颜色深浅差别大、背景不同。因此,采用传统的图像处理和识别技术需要人工设定上百个阈值,且只能处理场景和缺陷单一固定的缺陷,对于形状、位置、背景、数目、颜色、深浅有巨大差异的缺陷难以识别。而且更进一步的说,当缺陷变化或者产线有所改动的时候,传统图像处理识别技术就需要重新设置阈值,这往往需要专家级算法工程师花大量的时间来调试。In addition, due to the defects in the photos taken by the front and rear cameras of mobile phones and other electronic products, the defects are large, the shape is uncertain, the position is uncertain, the color depth is different, and the background is different. Therefore, using traditional image processing and recognition technology requires manual setting of hundreds of thresholds, and can only deal with a single fixed defect of the scene and defect, and it is difficult to identify defects with huge differences in shape, position, background, number, color, and depth. . Furthermore, when the defect changes or the production line is changed, the traditional image processing and recognition technology needs to reset the threshold, which often requires expert algorithm engineers to spend a lot of time debugging.
技术解决方案technical solutions
本申请提供一种用于图像获取装置的检测方法及相关装置,以解决上述技术问题。The present application provides a detection method for an image acquisition device and a related device to solve the above technical problems.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种用于图像获取装置的检测方法,所述检测方法包括:In order to solve the above technical problems, a technical solution adopted in this application is to provide a detection method for an image acquisition device, the detection method comprising:
获取多个异常图像信息,多个所述异常图像信息中均包括第一预设异常;acquiring a plurality of abnormal image information, wherein the plurality of abnormal image information includes a first preset abnormality;
对所述异常图像信息中的所述第一预设异常进行异常判定,并根据所述异常判定的判定结果建立所述第一预设异常的异常模型;Performing an abnormality judgment on the first preset abnormality in the abnormal image information, and establishing an abnormality model of the first preset abnormality according to the judgment result of the abnormality judgment;
根据所述异常模型对图像获取装置获取的第一图像进行异常分析。An abnormality analysis is performed on the first image acquired by the image acquisition device according to the abnormality model.
可选地,所述对所述异常图像信息中的所述第一预设异常进行异常判定的步骤包括:Optionally, the step of performing abnormality determination on the first preset abnormality in the abnormal image information includes:
对所述异常图像信息中的所述第一预设异常的位置、所述第一预设异常的大小、第一预设异常的数量以及所述第一预设异常的异常程度中的至少一者进行标注。For at least one of the position of the first preset abnormality, the size of the first preset abnormality, the number of the first preset abnormality, and the degree of abnormality of the first preset abnormality in the abnormal image information are marked.
可选地,对所述第一预设异常的异常程度进行标注的步骤包括:Optionally, the step of marking the abnormality degree of the first preset abnormality includes:
根据所述第一预设异常的严重程度对所述第一预设异常的进行评分。The first predetermined abnormality is scored according to the severity of the first predetermined abnormality.
可选地,所述根据所述异常判定的判定结果建立所述第一预设异常的异常模型的步骤包括:Optionally, the step of establishing the abnormality model of the first preset abnormality according to the judgment result of the abnormality judgment includes:
根据判定得到的所述第一预设异常的位置、所述第一预设异常的大小、第一预设异常的数量以及所述第一预设异常的异常程度中的至少一者将多个所述异常图像信息中的所有的所述第一预设异常划分为多个异常等级;A plurality of All the first preset abnormalities in the abnormal image information are divided into a plurality of abnormal levels;
建立异常模型,所述异常模型包括所述多个异常等级,且每一所述异常等级均对应至少一个所述第一预设异常所对应的图像信息。An abnormality model is established, the abnormality model includes the plurality of abnormality levels, and each of the abnormality levels corresponds to at least one image information corresponding to the first predetermined abnormality.
可选地,所述根据所述异常模型对图像获取装置获取的第一图像进行异常分析的步骤包括:Optionally, the step of performing anomaly analysis on the first image acquired by the image acquisition device according to the anomaly model includes:
将所述图像获取装置获取的第一图像与所述异常模型中所对应的所述异常图像信息进行匹配,以确定所述第一图像的所述异常等级。The abnormality level of the first image is determined by matching the first image acquired by the image acquisition device with the abnormality image information corresponding to the abnormality model.
可选地,在所述对所述异常图像信息中的所述第一预设异常进行异常判定的步骤之后,且在根据所述异常判定的判定结果建立所述第一预设异常的异常模型析的步骤之前,所述检测方法还包括:Optionally, after the step of performing abnormality judgment on the first preset abnormality in the abnormal image information, and after the abnormality model of the first preset abnormality is established according to the judgment result of the abnormality judgment Before the step of analyzing, the detection method also includes:
对每一所述异常图像信息中的所述第一预设异常进行增强处理;以提高经过所述增强处理后的所述第一预设异常的辨识度。Perform enhancement processing on the first preset abnormality in each of the abnormal image information; so as to improve the recognition degree of the first preset abnormality after the enhancement processing.
可选地,所述增强处理的方式包括:Optionally, the enhanced processing method includes:
增大所述异常图像信息中对应所述第一预设异常的区域和所述第一预设异常以外的区域之间的对比度;或者increasing the contrast between an area corresponding to the first preset anomaly and an area other than the first preset anomaly in the abnormal image information; or
对所述异常图像信息中对应所述第一预设异常的区域进行染色处理。Dyeing is performed on the region corresponding to the first preset abnormality in the abnormal image information.
可选地,所述第一预设异常包括黑斑异常。Optionally, the first preset abnormality includes black spot abnormality.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种用于图像获取装置的检测装置,其特征在于,所述检测装置包括处理器以及存储器;所述存储器用于存储所述处理器执行的计算机程序以及在执行所述计算机程序时所产生的中间数据;所述处理器执行所述计算机程序时,用于实现如前文所述的检测方法。In order to solve the above technical problem, a technical solution adopted in the present application is to provide a detection device for an image acquisition device, characterized in that the detection device includes a processor and a memory; the memory is used for storing the processing The computer program executed by the processor and the intermediate data generated when the computer program is executed; when the processor executes the computer program, it is used to implement the detection method described above.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序数据,所述程序数据能够被执行以实现如前文所述的检测方法。In order to solve the above technical problems, a technical solution adopted in the present application is to provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores program data, and the program data can be executed to realize the The detection method described above.
有益效果beneficial effect
本申请的有益效果是:本申请提供一种用于图像获取装置的检测方法及相关装置。通过采用对多个异常图像信息中多个第一预设异常进行异常判定,从而第一预设异常的异常模型,然后可以将图像获取装置获取的第一图像与该异常模型中第一预设异常进行匹配,从而可以对第一图像与中的所有的第一预设异常的区域进行快速自动识别且进行位置、大小以及异常评分的标注,从而可以提高对图像获取装置获取的第一图像的异常检测效率,且对具有不同形态、大小、颜色、背景、数目的第一预设异常有鲁棒的检测效果;同时,采用深度学习技术可以对第一预设异常的异常模型进行进一步的训练,从而可以提高对不同大小、形状、颜色、背景、数目以及异常程度的第一预设异常检测的适应性;进一步的,采用本申请提供的检测方法,可以在后续对图像获取装置获取的第一图像进行检测时,可以采用因此模型中具有不同异常等级的第一预设异常与第一图像中的第一预设异常相匹配,从而可以自动对第一图像中每一个第一预设异常进行位置标注、面积计算以及异常评分,从而可以减小对技术人员的依赖。The beneficial effects of the present application are as follows: the present application provides a detection method for an image acquisition device and a related device. By using a plurality of first preset abnormalities in the plurality of abnormal image information to perform abnormality determination, the abnormality model of the first abnormality can be preset, and then the first image obtained by the image acquisition device can be compared with the first preset abnormality model in the abnormality model. Anomalies are matched, so that the first image and all the first preset abnormal areas in the first image can be quickly and automatically identified, and the location, size and abnormal score can be marked, thereby improving the accuracy of the first image acquired by the image acquisition device. Anomaly detection efficiency, and robust detection effect for the first preset anomalies with different shapes, sizes, colors, backgrounds, and numbers; at the same time, the use of deep learning technology can further train the anomaly models of the first preset anomalies , so that the adaptability to the first preset abnormality detection of different sizes, shapes, colors, backgrounds, numbers and degrees of abnormality can be improved; further, by using the detection method provided by the present application, the first preset abnormality detection method obtained by the image acquisition device can be used in the follow-up. When an image is detected, the first preset anomalies with different anomaly levels in the model can be used to match the first preset anomalies in the first image, so that each of the first preset anomalies in the first image can be automatically detected. Perform location labeling, area calculations, and anomaly scoring, reducing reliance on technicians.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图,其中:In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, under the premise of no creative work, other drawings can also be obtained from these drawings, wherein:
图1是本申请提供的一种用于图像获取装置的检测方法一实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a detection method for an image acquisition device provided by the present application;
图2是本申请提供的一种用于图像获取装置的检测装置一实施例的结构示意图;FIG. 2 is a schematic structural diagram of an embodiment of a detection device for an image acquisition device provided by the present application;
图3是本申请提供的计算机可读存储介质一实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a 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 those of ordinary skill in the art without creative work fall within the protection scope of the present application.
请参阅图1,图1是本申请提供的一种用于图像获取装置的检测方法一实施例的流程示意图。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an embodiment of a detection method for an image acquisition device provided by the present application.
其中,用于图像获取装置的检测方法具体可以包括如下步骤:Wherein, the detection method for the image acquisition device may specifically include the following steps:
S101:获取多个异常图像信息,多个异常图像信息中均包括第一预设异常。S101: Acquire a plurality of abnormal image information, where the plurality of abnormal image information includes a first preset abnormality.
本实施例中,图像获取装置的检测方法可以用于对图像获取装置的获取的图像中的第一预设异常进行检测,其中第一预设异常可以是照片等异常图像信息中的黑斑异常,或者也可以是白斑或者彩斑等异常问题,在此不做限定。In this embodiment, the detection method of the image acquisition device may be used to detect a first preset abnormality in an image acquired by the image acquisition device, where the first preset abnormality may be a black spot abnormality in abnormal image information such as photos , or it can also be abnormal problems such as white spots or colored spots, which are not limited here.
其中,可以先获取多个具有第一预设异常的异常图像信息。多个异常图像信息可以是采用多个图像获取装置分别获取的图像。Wherein, a plurality of abnormal image information having the first preset abnormality may be acquired first. The multiple pieces of abnormal image information may be images obtained respectively by using multiple image obtaining devices.
本实施例中,图像获取装置可以包括手机等移动终端的前置或者后置摄像头。In this embodiment, the image acquisition apparatus may include a front or rear camera of a mobile terminal such as a mobile phone.
当采用该检测方法对手机等移动终端的前置或者后置摄像头进行检测时,可以获取多个不同的手机等移动终端,并且采用每一个手机等移动终端的前置或者后置摄像头各拍摄多个照片,拍摄的照片则是如前文所述的异常图像信息,若当该异常图像信息中具有第一预设异常时,则该异常图像信息可以为前文所述的异常图像信息。When the detection method is used to detect the front or rear camera of a mobile terminal such as a mobile phone, a plurality of different mobile terminals such as mobile phones can be obtained, and the front or rear camera of each mobile terminal such as a mobile phone can be used to shoot multiple A photograph is taken, and the photograph is the abnormal image information described above. If the abnormal image information has a first preset abnormality, the abnormal image information can be the abnormal image information described above.
其中,每一个异常图像信息,均可以是通过图像获取装置对纯色背景进行拍摄而获取的图片。其中,纯色背景可以时白色背景、灰色背景或者其他颜色的纯色背景。Wherein, each abnormal image information may be a picture obtained by photographing a solid-color background by an image obtaining device. The solid-color background may be a white background, a gray background, or a solid-color background of other colors.
S102:对异常图像信息中的第一预设异常进行异常判定,并根据异常判定的判定结果建立第一预设异常的异常模型。S102: Perform an abnormality determination on the first preset abnormality in the abnormal image information, and establish an abnormality model of the first preset abnormality according to the determination result of the abnormality determination.
当完成步骤S101后,则可以继续进行步骤S102的步骤,具体如下:When step S101 is completed, the steps of step S102 can be continued, and the details are as follows:
当获取到多个具有第一预设异常的异常图像信息后,需要对多个异常图像信息中的一预设异常进行异常判定,并根据异常判定的判定结果建立第一预设异常的异常模型。After acquiring a plurality of abnormal image information with the first predetermined abnormality, it is necessary to perform abnormality judgment on a predetermined abnormality among the plurality of abnormal image information, and establish the abnormality model of the first predetermined abnormality according to the judgment result of the abnormality judgment .
其中,对多个异常图像信息中的第一预设异常进行异常判定可以是采用人工判定的方式对每一个异常图像信息的第一预设异常进行异常判定。从而可以确定每一个异常图像信息中具有第一预设异常的区域的位置、大小、数量以及异常程度。The abnormality determination for the first preset abnormality in the plurality of abnormal image information may be to perform abnormality determination on the first preset abnormality of each abnormal image information by means of manual determination. Thereby, the position, size, number and degree of abnormality of the region having the first preset abnormality in each abnormal image information can be determined.
其中,可以通过人工判定的方式对异常图像信息中的每一个第一预设异常进行标注。例如,可以采用标注框将每一个异常图像信息中的每一个第一预设异常圈出,其中,每一第一预设异常所对应的标注框均可以与其所对应的第一预设异常的外轮廓相重叠。Wherein, each first preset abnormality in the abnormal image information may be marked by manual determination. For example, each first preset abnormality in each abnormal image information can be circled by a label box, wherein the label box corresponding to each first preset abnormality can be the same as the corresponding first preset abnormality. The outer contours overlap.
本步骤中,每一个异常图像信息的标注框可以为人员采用标注笔沿第一预设异常的外轮廓绘制形成;或者为人员在预设的标注软件上,采用该软件的绘图工具沿第一预设异常的外轮廓绘制形成。In this step, the labeling frame of each abnormal image information can be formed by the personnel using a labeling pen to draw along the outer contour of the first preset abnormality; Preset abnormal outline drawing is formed.
当完成对每一个异常图像信息中的第一预设异常进行标注后,则可以根据标注框的个数确定每一个异常图像信息中的第一预设异常的个数。同时,根据每一个标注框占该异常图像信息整个图形面积的百分比,从而可以确认该标注框所对应的第一预设异常的面积或者大小。After marking the first preset abnormality in each abnormal image information, the number of the first preset abnormality in each abnormal image information may be determined according to the number of marked boxes. At the same time, the area or size of the first preset abnormality corresponding to the marked frame can be confirmed according to the percentage of each marked frame in the entire graphic area of the abnormal image information.
本步骤中,当完成对每一个异常图像信息中的第一预设异常进行标注后,还可以对每一个异常图像信息中的每一个第一预设异常的异常程度进行判定。In this step, after marking the first preset abnormality in each abnormal image information, the degree of abnormality of each first preset abnormality in each abnormal image information can also be determined.
当第一预设异常为黑斑异常时,可以根据黑斑的明显程度对第一预设异常进行异常程度的判定。其中,可以根据黑斑的明显程度对每一个黑斑异进行异常评分,例如当不存在该黑斑异常时,该异常程度所对应的异常评分可以设置为0分,当该黑斑异常对应为纯属黑色画面时,则可以将该黑斑的异常评分可以设置为100分。因此可以根据该黑斑的灰阶对不同程度的黑斑异常进行评分。When the first preset abnormality is a black spot abnormality, the degree of abnormality of the first predetermined abnormality may be determined according to the obvious degree of the black spot. Wherein, each black spot abnormality can be scored according to the obvious degree of black spot. For example, when the black spot abnormality does not exist, the abnormal score corresponding to the abnormal degree can be set to 0 points, and when the black spot abnormality corresponds to When the picture is purely black, the abnormal score of the black spot can be set to 100 points. Therefore, different degrees of black spot anomalies can be scored according to the gray scale of the black spot.
或者,也可以通过具有经验的判定人员根据其判定经验对每一个异常图像信息中的每一个第一预设异常的异常程度进行评分。Alternatively, the degree of abnormality of each first preset abnormality in each abnormal image information can also be scored by an experienced judging person according to their judgment experience.
当采用上述方法完成对异常图像信息中的第一预设异常进行的异常判定后,还可以通过异常判定的判定结果建立该第一预设异常的异常模型。After the abnormality determination of the first preset abnormality in the abnormal image information is completed by using the above method, an abnormality model of the first predetermined abnormality may also be established by the determination result of the abnormality determination.
本实施例中,根据异常判定的判定结果建立第一预设异常的异常模型,其中通过该异常模型可以用于检测图像获取装置是否合格,其具体步骤包括:In this embodiment, a first preset abnormal abnormality model is established according to the judgment result of the abnormality judgment, wherein the abnormality model can be used to detect whether the image acquisition device is qualified, and the specific steps include:
1、根据判定得到的第一预设异常的位置、第一预设异常的大小、第一预设异常的数量以及第一预设异常的异常程度中的至少一者将具有第一预设异常的异常图像信息划分为多个异常等级。1. At least one of the position of the first preset abnormality, the size of the first preset abnormality, the number of the first preset abnormality, and the degree of abnormality of the first preset abnormality obtained according to the judgment will have the first preset abnormality The abnormal image information is divided into multiple abnormal levels.
例如,可以将多个异常图像信息划分为两个异常等级。即,异常图像信息划分为合格或者不合格。其中,当异常图像信息的总体面积不大于某一预设数值;且当异常图像信息中的所有的第一预设异常的异常程度的异常评分均低于某一预设分数时,则可以表明该异常图像信息为合格,此时表明拍摄该异常图像信息所对应的图像获取装置可以为合格;否则该异常图像信息则不合格,即拍摄该异常图像信息所对应的图像获取装置为合格。For example, a plurality of abnormal image information may be classified into two abnormal levels. That is, the abnormal image information is classified as pass or fail. Wherein, when the overall area of the abnormal image information is not larger than a certain preset value; and when the abnormality scores of all the first preset abnormality degrees in the abnormal image information are lower than a certain preset score, it can indicate that If the abnormal image information is qualified, it means that the image acquisition device corresponding to the abnormal image information can be qualified; otherwise, the abnormal image information is unqualified, that is, the image acquisition device corresponding to the abnormal image information is qualified.
或者,也可以将具有第一预设异常的异常图像信息划分为至少三个异常等级,例如可将异常图像信息的第一预设异常划分为轻微、中等以及严重等。同样的,也可以将其中的某一个或者多个异常等级所对应的异常图像信息设定为合格;且将其余的异常等级所对应的异常图像信息设定为不合格。Alternatively, the abnormal image information having the first preset abnormality may also be divided into at least three abnormality levels, for example, the first preset abnormality of the abnormal image information may be divided into minor, moderate, and severe. Similarly, the abnormal image information corresponding to one or more abnormal levels may be set as acceptable; and the abnormal image information corresponding to the remaining abnormal levels may be set as unqualified.
进一步的,还可以对异常图像信息中每一个第一预设异常面积大小加权其异常评分,从而获取该异常图像信息多对应的整体异常分数。Further, the abnormality score of each first preset abnormality area in the abnormality image information may be weighted, so as to obtain the overall abnormality score corresponding to the abnormality image information.
具体的,异常图像信息的整体异常分数可以等于每一个第一预设异常的面积乘以其异常评分的结果值之和。Specifically, the overall abnormality score of the abnormal image information may be equal to the sum of the result value of the area of each first preset abnormality multiplied by its abnormality score.
然后,通过每一个异常图像信息的整体异常分数从而将多个异常图像信息划分为不同异常等级。具体对异常图像信息的异常等级的划分方法可以参阅前文,在此不作赘述。Then, a plurality of abnormal image information are classified into different abnormal levels by the overall abnormal score of each abnormal image information. The specific method for dividing the abnormal level of the abnormal image information can be referred to above, which will not be repeated here.
或者,在其他的实施方式中,还可以采用每一个异常图像信息中第一预设异常最严重的第一预设异常进行异常等级划分,其中第一预设异常最严重是指该第一预设异常的面积乘以其异常评分结果值为该异常图像信息中最大的。Or, in other embodiments, the first preset abnormality with the most serious first preset abnormality in each abnormal image information may also be used to classify the abnormality level, wherein the most serious first preset abnormality refers to the first predetermined abnormality. Let the abnormal area multiplied by its abnormal score result value is the largest in the abnormal image information.
2、当完成将异常图像信息划分为多个异常等级后,则可以建立第一预设异常的异常模型。其中,该异常模型中可以包括如前文所划分的至少两个异常等级,且每一个异常等级中均可以包括至少一个与该异常等级相对应的异常图像信息。2. After the abnormal image information is divided into a plurality of abnormal levels, the abnormal model of the first preset abnormality can be established. Wherein, the abnormality model may include at least two abnormality levels as divided above, and each abnormality level may include at least one abnormality image information corresponding to the abnormality level.
本步骤中,可以采用FPN目标检测技术对上述多个异常图像信息进行模型参数训练,从而建立上述的异常模型。In this step, the FPN target detection technology may be used to perform model parameter training on the above-mentioned multiple abnormal image information, so as to establish the above-mentioned abnormal model.
S103:根据异常模型对图像获取装置获取的第一图像进行异常分析。S103: Perform an anomaly analysis on the first image acquired by the image acquisition device according to the anomaly model.
当完成步骤S102建立第一预设异常的异常模型后,继续进行步骤S103的步骤,具体如下:After completing step S102 to establish the abnormality model of the first preset abnormality, the steps of step S103 are continued, and the details are as follows:
根据异常模型对图像获取装置获取的第一图像进行异常分析,以确定图像获取装置是否合格。An abnormality analysis is performed on the first image acquired by the image acquisition device according to the abnormality model to determine whether the image acquisition device is qualified.
本步骤中,可以通过前文所建立的异常模型对每一个图像获取装置进行异常分析,以确定图像获取装置是否合格。In this step, an abnormality analysis can be performed on each image acquisition device through the abnormal model established above to determine whether the image acquisition device is qualified.
具体的,可以通过图像获取装置对如前文所述的纯色背景进行拍摄,从而获取到第一图像。然后通过将第一图像与前文所述的异常模型中所对应的异常图像信息进行匹配,以确定第一图像的异常等级。具体的,当第一图像中的第一预设异常可以与某一异常等级所对应的的异常图像信息进行匹配,以确定第一图像的异常等级为与该异常图像信息所对应的异常等级。其中,若该异常等级对应为合格,则说明该拍摄该第一图像的图像获取装置为合格,否则为不合格。Specifically, the solid-color background as described above can be photographed by an image acquisition device, thereby acquiring the first image. Then, by matching the first image with the abnormal image information corresponding to the abnormal model described above, the abnormal level of the first image is determined. Specifically, when the first preset abnormality in the first image can be matched with abnormal image information corresponding to a certain abnormality level, it is determined that the abnormality level of the first image is the abnormality level corresponding to the abnormal image information. Wherein, if the abnormality level corresponds to qualified, it means that the image acquisition device that captures the first image is qualified; otherwise, it is unqualified.
进一步的,在本实施例中,还可以采用深度学习技术对该异常模型进行进一步的训练。例如,当第一图像无法与前文所述的异常模型中所对应的异常图像信息相匹配时,可以对第一图像的中第一预设异常的异常的位置、大小、数量以及常程度进行进一步判断,从而在该异常模型模型中建立该第一图像所对应的新的异常等级。Further, in this embodiment, a deep learning technology may also be used to further train the abnormal model. For example, when the first image cannot be matched with the abnormal image information corresponding to the abnormal model described above, the position, size, number and degree of normality of the abnormality of the first preset abnormality in the first image can be further carried out. judgment, thereby establishing a new abnormal level corresponding to the first image in the abnormal model model.
进一步的,在其他的实施方式中,还可以根据异常模型对第一图像中每一个第一预设异常进行位置标注、面积计算以及异常评分。Further, in other implementation manners, position labeling, area calculation, and anomaly scoring may also be performed for each first preset anomaly in the first image according to the anomaly model.
本实施例中,在步骤S102对异常图像信息中的第一预设异常进行异常判定的步骤之后,且在根据异常判定的判定结果建立第一预设异常的异常模型析的步骤之前,该检测方法还包括:对每一异常图像信息中的第一预设异常进行增强处理,以提高经过增强处理后的第一预设异常的辨识度。其中,增强处理的方式包括:增大异常图像信息中对应第一预设异常的区域和第一预设异常以外的区域之间的对比度;或者对异常图像信息中对应第一预设异常的区域进行染色处理。从而可以提高每一每一异常图像信息中的第一预设异常进的辨识度。In this embodiment, after the step S102 of performing abnormality determination on the first predetermined abnormality in the abnormal image information, and before the step of establishing an abnormality model analysis of the first predetermined abnormality according to the determination result of the abnormality determination, the detection The method further includes: performing enhancement processing on the first predetermined abnormality in each abnormal image information, so as to improve the recognition degree of the first predetermined abnormality after the enhancement processing. The enhancement processing method includes: increasing the contrast between an area corresponding to the first preset abnormality and an area other than the first preset abnormality in the abnormal image information; or increasing the contrast between the area corresponding to the first preset abnormality in the abnormal image information Do dyeing. Therefore, the recognition degree of the first preset abnormality in each abnormal image information can be improved.
此时,采用图像获取装置获取的第一图像后,也可以采用如前文相同的增强处理的方式对第一图像中的第一预设异常进行增强处理,从而可以提高对第一图像中的第一预设异常的识别能力。At this time, after using the first image acquired by the image acquisition device, the same enhancement processing method as above can also be used to perform enhancement processing on the first preset abnormality in the first image, thereby improving the detection of the first abnormality in the first image. A preset abnormal recognition ability.
基于同样的发明构思,本申请还提出了一种用于图像获取装置的检测装置。Based on the same inventive concept, the present application also proposes a detection device for an image acquisition device.
请参阅图2,图2是本申请提供的一种用于图像获取装置的检测装置一实施例的结构示意图。Please refer to FIG. 2 , which is a schematic structural diagram of an embodiment of a detection device for an image acquisition device provided by the present application.
其中,检测装置20包括处理器210以及存储器220;存储器220用于存储处理器210执行的计算机程序以及在执行计算机程序时所产生的中间数据;处理器210执行计算机程序时,用于接收图像获取装置的获取的第一图像的图像信息,从而实现如前文所述的检测方法,以对该图像获取装置的获取的第一图像进行图形检测。The detection device 20 includes a processor 210 and a memory 220; the memory 220 is used to store the computer program executed by the processor 210 and the intermediate data generated when the computer program is executed; when the processor 210 executes the computer program, it is used to receive image acquisition The image information of the first image acquired by the device, so as to implement the detection method as described above, so as to perform graphic detection on the first image acquired by the image acquisition device.
基于同样的发明构思,本申请还提出了一种计算机可读存储介质,请参阅图3,图3是本申请提供的计算机可读存储介质一实施例的结构示意图。计算机可读存储介质30中存储有程序数据31,程序数据31可以为程序或指令,该程序数据能够被执行以实现上述坐标标定方法。Based on the same inventive concept, the present application also proposes a computer-readable storage medium, please refer to FIG. 3 , which is a schematic structural diagram of an embodiment of the computer-readable storage medium provided by the present application. The computer-readable storage medium 30 stores program data 31, and the program data 31 may be a program or an instruction, and the program data can be executed to implement the above coordinate calibration method.
在一个实施例中,计算机可读存储装置30可以是终端中的存储芯片、硬盘或者是移动硬盘或者优盘、光盘等其他可读写存储的工具,还可以是服务器等等。In one embodiment, the computer-readable storage device 30 may be a storage chip in the terminal, a hard disk, or other readable and writable storage tools such as a mobile hard disk, a USB flash drive, an optical disk, or the like, or a server or the like.
在本发明所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,处理器或存储器的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个处理器与存储器实现的功能可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或连接可以是通过一些接口,装置或单元的间接耦合或连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the device implementations described above are only illustrative. For example, the division of processors or memories is only a logical function division. In actual implementation, there may be other divisions, such as multiple processors and memories. The functions may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or connection may be through some interfaces, indirect coupling or connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this implementation manner.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读取存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式方法的全部或部分步骤。而前述的计算机可读取存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable The storage medium includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned computer-readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory). Various media that can store program codes, such as Memory), magnetic disks, or optical disks.
综上所述,本申请提供一种用于图像获取装置的检测方法及相关装置。通过采用对多个异常图像信息中多个第一预设异常进行异常判定,从而第一预设异常的异常模型,然后可以将图像获取装置获取的第一图像与该异常模型中第一预设异常进行匹配,从而可以对第一图像与中的所有的第一预设异常的区域进行快速自动识别且进行位置、大小以及异常评分的标注,从而可以提高对图像获取装置获取的第一图像的异常检测效率,且对具有不同形态、大小、颜色、背景、数目的第一预设异常有鲁棒的检测效果;同时,采用深度学习技术可以对第一预设异常的异常模型进行进一步的训练,从而可以提高对不同大小、形状、颜色、背景、数目以及异常程度的第一预设异常检测的适应性;进一步的,采用本申请提供的检测方法,可以在后续对图像获取装置获取的第一图像进行检测时,可以采用因此模型中具有不同异常等级的第一预设异常与第一图像中的第一预设异常相匹配,从而可以自动对第一图像中每一个第一预设异常进行位置标注、面积计算以及异常评分,从而可以减小对技术人员的依赖。In conclusion, the present application provides a detection method for an image acquisition device and a related device. By using a plurality of first preset abnormalities in the plurality of abnormal image information to perform abnormality determination, the abnormality model of the first abnormality can be preset, and then the first image obtained by the image acquisition device can be compared with the first preset abnormality model in the abnormality model. Anomalies are matched, so that the first image and all the first preset abnormal areas in the first image can be quickly and automatically identified and the location, size and abnormal score can be marked, so as to improve the accuracy of the first image acquired by the image acquisition device. Anomaly detection efficiency, and robust detection effect for the first preset anomalies with different shapes, sizes, colors, backgrounds, and numbers; at the same time, the use of deep learning technology can further train the anomaly models of the first preset anomalies , so that the adaptability to the first preset abnormality detection of different sizes, shapes, colors, backgrounds, numbers and degrees of abnormality can be improved; further, by using the detection method provided by the present application, the first preset abnormality detection method obtained by the image acquisition device can be used in the follow-up. When an image is detected, the first preset anomalies with different anomaly levels in the model can be used to match the first preset anomalies in the first image, so that each of the first preset anomalies in the first image can be automatically detected. Perform location labeling, area calculations, and anomaly scoring, reducing reliance on technicians.
以上所述仅为本申请的实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above descriptions are only the embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related technologies Fields are similarly included within the scope of patent protection of this application.

Claims (10)

  1. 一种用于图像获取装置的检测方法,其特征在于,所述检测方法包括:A detection method for an image acquisition device, characterized in that the detection method comprises:
    获取多个异常图像信息,多个所述异常图像信息中均包括第一预设异常;acquiring a plurality of abnormal image information, wherein the plurality of abnormal image information includes a first preset abnormality;
    对所述异常图像信息中的所述第一预设异常进行异常判定,并根据所述异常判定的判定结果建立所述第一预设异常的异常模型;Performing an abnormality judgment on the first preset abnormality in the abnormal image information, and establishing an abnormality model of the first preset abnormality according to the judgment result of the abnormality judgment;
    根据所述异常模型对图像获取装置获取的第一图像进行异常分析。An abnormality analysis is performed on the first image acquired by the image acquisition device according to the abnormality model.
  2. 根据权利要求1所述的检测方法,其特征在于,所述对所述异常图像信息中的所述第一预设异常进行异常判定的步骤包括:The detection method according to claim 1, wherein the step of performing abnormality determination on the first preset abnormality in the abnormal image information comprises:
    对所述异常图像信息中的所述第一预设异常的位置、所述第一预设异常的大小、第一预设异常的数量以及所述第一预设异常的异常程度中的至少一者进行标注。For at least one of the position of the first preset abnormality, the size of the first preset abnormality, the number of the first preset abnormality, and the degree of abnormality of the first preset abnormality in the abnormal image information are marked.
  3. 根据权利要求2所述的检测方法,其特征在于,对所述第一预设异常的异常程度进行标注的步骤包括:The detection method according to claim 2, wherein the step of marking the abnormality degree of the first preset abnormality comprises:
    根据所述第一预设异常的严重程度对所述第一预设异常的进行评分。The first predetermined abnormality is scored according to the severity of the first predetermined abnormality.
  4. 根据权利要求2所述的检测方法,其特征在于,所述根据所述异常判定的判定结果建立所述第一预设异常的异常模型的步骤包括:The detection method according to claim 2, wherein the step of establishing the abnormality model of the first preset abnormality according to the judgment result of the abnormality judgment comprises:
    根据判定得到的所述第一预设异常的位置、所述第一预设异常的大小、第一预设异常的数量以及所述第一预设异常的异常程度中的至少一者将多个所述异常图像信息中的所有的所述第一预设异常划分为多个异常等级;A plurality of All the first preset abnormalities in the abnormal image information are divided into a plurality of abnormal levels;
    建立异常模型,所述异常模型包括所述多个异常等级,且每一所述异常等级均对应至少一个所述第一预设异常所对应的图像信息。An abnormality model is established, the abnormality model includes the plurality of abnormality levels, and each of the abnormality levels corresponds to at least one image information corresponding to the first predetermined abnormality.
  5. 根据权利要求4所述的检测方法,其特征在于,所述根据所述异常模型对图像获取装置获取的第一图像进行异常分析的步骤包括:The detection method according to claim 4, wherein the step of performing anomaly analysis on the first image acquired by the image acquisition device according to the anomaly model comprises:
    将所述图像获取装置获取的第一图像与所述异常模型中所对应的所述异常图像信息进行匹配,以确定所述第一图像的所述异常等级。The abnormality level of the first image is determined by matching the first image acquired by the image acquisition device with the abnormality image information corresponding to the abnormality model.
  6. 根据权利要求1-5任一项所述的检测方法,其特征在于,在所述对所述异常图像信息中的所述第一预设异常进行异常判定的步骤之后,且在根据所述异常判定的判定结果建立所述第一预设异常的异常模型析的步骤之前,所述检测方法还包括:The detection method according to any one of claims 1-5, characterized in that after the step of performing abnormality determination on the first preset abnormality in the abnormal image information, and after the abnormality is determined according to the abnormality Before the step of establishing the abnormal model analysis of the first preset abnormality based on the judgment result of the judgment, the detection method further includes:
    对每一所述异常图像信息中的所述第一预设异常进行增强处理;以提高经过所述增强处理后的所述第一预设异常的辨识度。Perform enhancement processing on the first preset abnormality in each of the abnormal image information; so as to improve the recognition degree of the first preset abnormality after the enhancement processing.
  7. 根据权利要求6所述的检测方法,其特征在于,所述增强处理的方式包括:The detection method according to claim 6, wherein the enhancement processing method comprises:
    增大所述异常图像信息中对应所述第一预设异常的区域和所述第一预设异常以外的区域之间的对比度;或者increasing the contrast between an area corresponding to the first preset anomaly and an area other than the first preset anomaly in the abnormal image information; or
    对所述异常图像信息中对应所述第一预设异常的区域进行染色处理。Dyeing is performed on the region corresponding to the first preset abnormality in the abnormal image information.
  8. 根据权利要求6所述的检测方法,其特征在于,所述第一预设异常包括黑斑异常。The detection method according to claim 6, wherein the first preset abnormality comprises a black spot abnormality.
  9. 一种用于图像获取装置的检测装置,其特征在于,所述检测装置包括处理器以及存储器;所述存储器用于存储所述处理器执行的计算机程序以及在执行所述计算机程序时所产生的中间数据;所述处理器执行所述计算机程序时,用于实现如权利要求1-8任一项所述的检测方法。A detection device for an image acquisition device, characterized in that the detection device includes a processor and a memory; the memory is used to store a computer program executed by the processor and a computer program generated when the computer program is executed. Intermediate data; when the processor executes the computer program, it is used to implement the detection method according to any one of claims 1-8.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序数据,所述程序数据能够被执行以实现如权利要求1-8任意一项所述的检测方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores program data, and the program data can be executed to implement the detection method according to any one of claims 1-8.
PCT/CN2020/120043 2020-08-03 2020-10-09 Detection method for image acquisition apparatus, and related apparatus WO2022027816A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010767360.XA CN111935480B (en) 2020-08-03 2020-08-03 Detection method for image acquisition device and related device
CN202010767360.X 2020-08-03

Publications (1)

Publication Number Publication Date
WO2022027816A1 true WO2022027816A1 (en) 2022-02-10

Family

ID=73306400

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/120043 WO2022027816A1 (en) 2020-08-03 2020-10-09 Detection method for image acquisition apparatus, and related apparatus

Country Status (2)

Country Link
CN (1) CN111935480B (en)
WO (1) WO2022027816A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114464316A (en) * 2022-04-11 2022-05-10 武汉大学 Stomach abnormal risk grade prediction method, device, terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572508A (en) * 2012-02-13 2012-07-11 北京文安科技发展有限公司 Video fault diagnosis system and method
CN104732510A (en) * 2013-12-23 2015-06-24 浙江大华技术股份有限公司 Camera lens black spot detecting method and device
US20180373961A1 (en) * 2017-06-26 2018-12-27 Nicira, Inc. System and method for deploying graphical diagram topologies
CN109167998A (en) * 2018-11-19 2019-01-08 深兰科技(上海)有限公司 Detect method and device, the electronic equipment, storage medium of camera status
CN110868586A (en) * 2019-11-08 2020-03-06 北京转转精神科技有限责任公司 Automatic detection method for defects of camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306931A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Smart TV anomaly detection method and device
CN109376628A (en) * 2018-10-10 2019-02-22 杭州登虹科技有限公司 A kind of picture quality detection method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572508A (en) * 2012-02-13 2012-07-11 北京文安科技发展有限公司 Video fault diagnosis system and method
CN104732510A (en) * 2013-12-23 2015-06-24 浙江大华技术股份有限公司 Camera lens black spot detecting method and device
US20180373961A1 (en) * 2017-06-26 2018-12-27 Nicira, Inc. System and method for deploying graphical diagram topologies
CN109167998A (en) * 2018-11-19 2019-01-08 深兰科技(上海)有限公司 Detect method and device, the electronic equipment, storage medium of camera status
CN110868586A (en) * 2019-11-08 2020-03-06 北京转转精神科技有限责任公司 Automatic detection method for defects of camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114464316A (en) * 2022-04-11 2022-05-10 武汉大学 Stomach abnormal risk grade prediction method, device, terminal and readable storage medium
CN114464316B (en) * 2022-04-11 2022-07-19 武汉大学 Stomach abnormal risk grade prediction method, device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN111935480B (en) 2022-02-15
CN111935480A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
US20210019878A1 (en) Image processing device, image processing method, and image processing program
US10740912B2 (en) Detection of humans in images using depth information
CN114240939B (en) Method, system, equipment and medium for detecting appearance defects of mainboard components
TWI709085B (en) Method, device, computer readable storage medium and computing equipment for damage segmentation of vehicle damage image
CN111310826B (en) Method and device for detecting labeling abnormality of sample set and electronic equipment
CN110287862B (en) Anti-candid detection method based on deep learning
CN109918523B (en) Circuit board component detection method based on YOLO9000 algorithm
US11315229B2 (en) Method for training defect detector
US20210319250A1 (en) Matching method and apparatus, electronic device, computer-readable storage medium, and computer program
TWI635462B (en) A method of evaluating the quality of images
CN113706490B (en) Wafer defect detection method
CN111860369A (en) Fraud identification method and device and storage medium
WO2024002187A1 (en) Defect detection method, defect detection device, and storage medium
TW202127372A (en) Method for defect level determination and computer readable storage medium thereof
CN111415339A (en) Image defect detection method for complex texture industrial product
CN113780484B (en) Industrial product defect detection method and device
WO2022027816A1 (en) Detection method for image acquisition apparatus, and related apparatus
CN114821274A (en) Method and device for identifying state of split and combined indicator
US11176419B1 (en) Method for labeling image
CN116681677A (en) Lithium battery defect detection method, device and system
CN117218633A (en) Article detection method, device, equipment and storage medium
CN116342589A (en) Cross-field scratch defect continuity detection method and system
CN107729839B (en) Method and device for identifying on-off state of pull-plug switch of protection pressing plate
CN115578362A (en) Defect detection method and device for electrode coating, electronic device and medium
CN105184244B (en) Video human face detection method and device

Legal Events

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

Ref document number: 20948341

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20948341

Country of ref document: EP

Kind code of ref document: A1