WO2021147386A1 - Screen scratch and crack detection method and device - Google Patents

Screen scratch and crack detection method and device Download PDF

Info

Publication number
WO2021147386A1
WO2021147386A1 PCT/CN2020/120889 CN2020120889W WO2021147386A1 WO 2021147386 A1 WO2021147386 A1 WO 2021147386A1 CN 2020120889 W CN2020120889 W CN 2020120889W WO 2021147386 A1 WO2021147386 A1 WO 2021147386A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen image
category
target candidate
candidate frame
image
Prior art date
Application number
PCT/CN2020/120889
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 WO2021147386A1 publication Critical patent/WO2021147386A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects

Definitions

  • the invention relates to the field of computers, in particular to a method and equipment for detecting screen scratches and chipping.
  • An object of the present invention is to provide a method and equipment for detecting screen scratches and chipping.
  • a method for detecting screen scratches and chipping including:
  • Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
  • Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
  • target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  • the convolutional neural network is a resnext101 convolutional neural network.
  • the yellow screen image and the black screen image are obtained, and the target categories are the target candidate frames of the scratch pattern category and the broken crack category.
  • the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
  • the target candidate frame in the yellow screen image is extracted through the RPN (Region Proposal Network) network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target in the yellow screen image is preset
  • the candidate frame has the probability value of scratches and cracks
  • the target candidate frame in the black screen image is extracted by the RPN network on the multi-layer feature layers of different scales corresponding to the black screen image, and the preset The probability value of scratches and cracks in each target candidate frame in the black screen image;
  • the first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained
  • the probability values belonging to the background category, the scratch pattern category and the broken crack category respectively input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image
  • the initial category is determined as the target category of the target candidate frame
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • outputting the target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category include:
  • the target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are sorted in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue.
  • the target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • the classification neural network is a fully connected layer classification neural network.
  • a screen scratch and chipping detection device wherein the device includes:
  • the display and shooting device is used to control the screen to display a full-screen yellow image below the preset exposure value, and shoot the yellow screen image based on the outline position of the screen; control the screen to display a full-screen black image higher than the preset exposure value, based on The outline position of the screen, taking a black screen image;
  • a feature extraction device for inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into the convolutional neural network, and extracting the corresponding black screen image Image characteristics;
  • the recognition device is configured to obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image respectively.
  • the convolutional neural network is a resnext101 convolutional neural network.
  • the identification device is used for:
  • the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
  • the target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks;
  • the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
  • the first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained
  • the probability values belonging to the background category, the scratch pattern category and the broken crack category respectively input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image
  • the initial category is determined as the target category of the target candidate frame
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • the identification device is used for:
  • the target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are sorted in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue.
  • the target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • the classification neural network is a fully connected layer classification neural network.
  • a computing-based device which includes:
  • a memory arranged to store computer-executable instructions which, when executed, cause the processor to:
  • Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
  • Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
  • target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  • a computer-readable storage medium having computer-executable instructions stored thereon, wherein, when the computer-executable instructions are executed by a processor, the processor:
  • Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
  • Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
  • target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  • the present invention obtains that the target categories in the yellow screen image and the black screen image are scratch marks and cracks based on the corresponding image features of the yellow screen image and the black screen image.
  • the target candidate frame can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of mobile phone and other smart devices such as valuation and recycling.
  • FIG. 1 shows a flowchart of a method for detecting screen scratches and chipping according to an embodiment of the present invention.
  • the terminal, the equipment of the service network, and the trusted party all include one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • the present invention provides a method for detecting screen scratches and chipping.
  • the method includes:
  • Step S1 controlling the screen to display a full-screen yellow image lower than the preset exposure value, and taking a yellow screen image based on the outline position of the screen;
  • Step S2 controlling the screen to display a full-screen black image higher than the preset exposure value, and taking a black screen image based on the outline position of the screen;
  • high-exposure pictures are conducive to shooting dark screen surface textures, but for bright screen surface textures it is easy to cause overexposure problems, so low-exposure pictures need to be used for auxiliary detection;
  • Step S3 input the yellow screen image into the convolutional neural network, and extract the image features corresponding to the yellow screen image; input the black screen image into the convolutional neural network, and extract the image features corresponding to the black screen image ;
  • the convolutional neural network may be a resnext101 convolutional neural network to extract accurate image features
  • Step S4 based on the image features corresponding to the yellow screen image and the black screen image, respectively, obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category.
  • the present invention obtains target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively. It can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of valuation and recycling of smart devices such as mobile phones.
  • step S4 based on the image characteristics corresponding to the yellow screen image and the black screen image, respectively, the yellow screen image and the black screen image are obtained, and the target category is scratch
  • the target candidate frames of the mark type and the crack type include:
  • Step S41 Based on the image features corresponding to the yellow screen image, and through the FPN (feature pyramid networks) method, obtain the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image; Image features and image features corresponding to the black screen image, and using the FPN method to obtain the corresponding multi-layer feature layers of different scales corresponding to the black screen image;
  • FPN feature pyramid networks
  • Step S42 Extract target candidate frames in the yellow screen image on the multi-layer feature layers of different scales corresponding to the yellow screen image through the RPN network, and preset each target candidate frame in the yellow screen image There is a probability value of scratches and cracks; the target candidate frame in the black screen image is extracted by the PRN network on the multi-layer feature layers of different scales corresponding to the black screen image, and the black screen is preset The probability value of scratches and cracks in each target candidate frame in the image;
  • Step S43 selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
  • the first 1000 target candidate frames in the yellow screen image with a larger probability value may be selected; the first 1000 target candidate frames in the black screen image with a larger probability value may be selected;
  • Step S44 Input the previously preset number of target candidate frames in the yellow screen image into the classification neural network, and obtain each corresponding output of the first preset number of target candidate frames in the yellow screen image
  • the target candidate frames respectively belong to the probability values of the background category, the scratch pattern category and the broken crack category
  • the probability value that each target candidate frame in the previously preset number of target candidate frames in the black screen image belongs to the background category, the scratch pattern category and the broken crack category respectively;
  • the classification neural network may be a fully connected layer classification neural network to obtain reliable classification
  • Step S45 Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
  • the neural network outputs a target candidate frame a with a background category probability value of 0.2, a scratch pattern category has a probability value of 0.3, and a broken crack category has a probability value of 0.5, then the target candidate frame a
  • the initial category is the crack category
  • the neural network outputs the probability value of the background category of a certain target candidate frame b as 0.1, the probability value of the scratch pattern category is 0.2, and the probability value of the broken crack category is 0.7, then the initial value of the target candidate frame b The category is broken and cracked;
  • Step S46 if it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
  • the preset probability threshold is 0.6
  • the neural network outputs that the initial category of a certain target candidate frame a is the broken crack category, and the probability value of the broken crack category is 0.5. Since the predetermined probability threshold of 0.6 is not exceeded, the initial category of the broken crack category of the target candidate frame a The category cannot be used as the target category;
  • the neural network outputs the initial category of a certain target candidate frame b as the broken crack category, and the probability value of the broken crack category is 0.7. Since the predetermined probability threshold of 0.6 is exceeded, the broken crack category of the target candidate frame b The initial category of can be used as the target category;
  • Step S47 outputting a target candidate frame whose target categories are determined to be the scratch pattern category and the broken crack category.
  • the initial category of the target candidate frame is determined, and then the target candidate frame of the determined target category is filtered from the target candidate frame of the determined initial category, which can further reliably and accurately identify the screen of the mobile phone and other devices. Scratches or cracks.
  • step S47 outputting target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category, including:
  • Step S471 Arrange the target candidate frames in the yellow screen image that overlap the target categories in descending order based on the probability value to obtain a first sorting queue, and use the target candidate frame with the highest probability value in the first sorting queue as The first reference candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold value of the area of the first reference candidate frame of the preset ratio , The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are arranged in descending order based on the probability value to obtain the second sorting queue, and the second sorting queue is obtained.
  • the target candidate frame with the highest probability value in the sorting queue is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of the reference candidate frame, the target candidate frame and its corresponding target category are deleted;
  • Step S472 outputting the target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category.
  • the preset ratio threshold may be 0.7.
  • the present invention provides a screen scratch and chipping detection device, which includes:
  • the display shooting device is used to control the screen to display a full-screen yellow image below the preset exposure value, and shoot the yellow screen image based on the outline position of the screen; control the screen to display a full-screen black image higher than the preset exposure value, based on The outline position of the screen, taking a black screen image;
  • a feature extraction device for inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into the convolutional neural network, and extracting the corresponding black screen image Image characteristics;
  • the convolutional neural network may be a resnext101 convolutional neural network to extract accurate image features
  • the recognition device is configured to obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively.
  • the present invention obtains target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively. It can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of valuation and recycling of smart devices such as mobile phones.
  • the identification device is used for:
  • the corresponding yellow screen image corresponding to the multi-layer feature layer of different scales is obtained; based on the image features corresponding to the black screen image and Image features corresponding to the black screen image, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the black screen image;
  • the target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks;
  • the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
  • the first 1000 target candidate frames in the yellow screen image with a larger probability value may be selected; the first 1000 target candidate frames in the black screen image with a larger probability value may be selected;
  • the first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained
  • the probability values belonging to the background category, the scratch pattern category and the broken crack category respectively input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image
  • the classification neural network may be a fully connected layer classification neural network
  • the neural network outputs a target candidate frame a with a background category probability value of 0.2, a scratch pattern category has a probability value of 0.3, and a broken crack category has a probability value of 0.5, then the target candidate frame a
  • the initial category is the crack category
  • the neural network outputs the probability value of the background category of a certain target candidate frame b as 0.1, the probability value of the scratch pattern category is 0.2, and the probability value of the broken crack category is 0.7, then the initial value of the target candidate frame b The category is broken and cracked;
  • the initial category is determined as the target category of the target candidate frame
  • the preset probability threshold is 0.6
  • the neural network outputs that the initial category of a certain target candidate frame a is the broken crack category, and the probability value of the broken crack category is 0.5. Since the predetermined probability threshold of 0.6 is not exceeded, the initial category of the broken crack category of the target candidate frame a The category cannot be used as the target category;
  • the neural network outputs that the initial category of a certain target candidate frame b is the broken crack category, and the probability value of the broken crack category is 0.7. Since the preset probability threshold of 0.6 is not exceeded, the broken crack of the target candidate frame b The initial category of the category can be used as the target category;
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • the initial category of the target candidate frame is determined, and then the target candidate frame of the determined target category is filtered from the target candidate frame of the determined initial category, which can further reliably and accurately identify the screen of the mobile phone and other devices. Scratches or cracks.
  • the identification device is used for:
  • the target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image whose positions where the target category is determined overlap are arranged in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue.
  • the target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
  • the output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  • the preset ratio threshold may be 0.7.
  • a computing-based device which includes:
  • a memory arranged to store computer-executable instructions which, when executed, cause the processor to:
  • Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
  • Control the screen to display a full-screen black image higher than the preset exposure value, and shoot a black screen image based on the outline position of the screen;
  • Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
  • Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
  • target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  • the present invention can be implemented in software and/or a combination of software and hardware.
  • it can be implemented by an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device.
  • the software program of the present invention may be executed by a processor to realize the above-mentioned steps or functions.
  • the software program (including related data structure) of the present invention can be stored in a computer-readable recording medium, such as a RAM memory, a magnetic or optical drive or a floppy disk and similar devices.
  • some steps or functions of the present invention may be implemented by hardware, for example, as a circuit that cooperates with a processor to execute each step or function.
  • a part of the present invention can be applied as a computer program product, such as a computer program instruction, when it is executed by a computer, through the operation of the computer, the method and/or technical solution according to the present invention can be invoked or provided.
  • the program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium, and/or transmitted through a data stream in a broadcast or other signal-bearing medium, and/or stored in accordance with the Said program instructions run in the working memory of the computer equipment.
  • an embodiment according to the present invention includes a device including a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, trigger
  • the operation of the device is based on the aforementioned methods and/or technical solutions according to multiple embodiments of the present invention.

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Analysis (AREA)

Abstract

A screen scratch and crack detection method and device. On the basis of image features corresponding to a yellow screen image and a black screen image, respectively, target candidate frames, of which the target categories are a scratch category and a crack category, in the yellow screen image and the black screen image are obtained, so that scratches or cracks on screens of devices such as mobile phones can be accurately recognized, increasing the evaluation and recycling efficiency of smart devices such as mobile phones.

Description

屏幕划痕碎裂检测方法及设备Screen scratch and chipping detection method and equipment 技术领域Technical field
本发明涉及计算机领域,尤其涉及一种屏幕划痕碎裂检测方法及设备。The invention relates to the field of computers, in particular to a method and equipment for detecting screen scratches and chipping.
背景技术Background technique
现有的手机等设备等屏幕划痕碎裂检测方式都是人工方式,费时费力,影响手机等智能设备估价回收等效率。Existing methods for detecting screen scratches on mobile phones and other devices are manual methods, which are time-consuming and labor-intensive, and affect the efficiency of mobile phones and other smart devices such as valuation and recycling.
发明内容Summary of the invention
本发明的一个目的是提供一种屏幕划痕碎裂检测方法及设备。An object of the present invention is to provide a method and equipment for detecting screen scratches and chipping.
根据本发明的一个方面,提供了一种屏幕划痕碎裂检测方法,该方法包括:According to one aspect of the present invention, there is provided a method for detecting screen scratches and chipping, the method including:
控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
进一步的,上述方法中,所述卷积神经网络为resnext101卷积神经网络。Further, in the above method, the convolutional neural network is a resnext101 convolutional neural network.
进一步的,上述方法中,分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中,目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:Further, in the above method, based on the image features corresponding to the yellow screen image and the black screen image, respectively, the yellow screen image and the black screen image are obtained, and the target categories are the target candidate frames of the scratch pattern category and the broken crack category. ,include:
基于所述黄色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Based on the image features corresponding to the yellow screen image, and through the FPN method, the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
通过RPN(Region Proposal Network)网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;通过RPN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;The target candidate frame in the yellow screen image is extracted through the RPN (Region Proposal Network) network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target in the yellow screen image is preset The candidate frame has the probability value of scratches and cracks; the target candidate frame in the black screen image is extracted by the RPN network on the multi-layer feature layers of different scales corresponding to the black screen image, and the preset The probability value of scratches and cracks in each target candidate frame in the black screen image;
选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;The first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained The probability values belonging to the background category, the scratch pattern category and the broken crack category respectively; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image The probability value of each target candidate frame in the previously preset number of target candidate frames belonging to the background category, the scratch pattern category and the broken crack category respectively;
将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;If it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
进一步的,上述方法中,输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:Further, in the above method, outputting the target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category include:
对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;The target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are sorted in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue. The target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
进一步的,上述方法中,所述分类神经网络为全连接层分类神经网络。Further, in the above method, the classification neural network is a fully connected layer classification neural network.
根据本发明的另一方面,还提供一种屏幕划痕碎裂检测设备,其中,该设备包括:According to another aspect of the present invention, there is also provided a screen scratch and chipping detection device, wherein the device includes:
显示拍摄装置,用于控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;The display and shooting device is used to control the screen to display a full-screen yellow image below the preset exposure value, and shoot the yellow screen image based on the outline position of the screen; control the screen to display a full-screen black image higher than the preset exposure value, based on The outline position of the screen, taking a black screen image;
特征提取装置,用于将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;A feature extraction device for inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into the convolutional neural network, and extracting the corresponding black screen image Image characteristics;
识别装置,用于分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类 别和碎裂纹类别的目标候选框。The recognition device is configured to obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image respectively.
进一步的,上述设备中,所述卷积神经网络为resnext101卷积神经网络。Further, in the above device, the convolutional neural network is a resnext101 convolutional neural network.
进一步的,上述设备中,所述识别装置,用于:Further, in the above-mentioned equipment, the identification device is used for:
基于所述黄色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Based on the image features corresponding to the yellow screen image, and through the FPN method, the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
通过RPN网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;通过RPN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;The target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks; the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;The first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained The probability values belonging to the background category, the scratch pattern category and the broken crack category respectively; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image The probability value of each target candidate frame in the previously preset number of target candidate frames belonging to the background category, the scratch pattern category and the broken crack category respectively;
将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;If it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
进一步的,上述设备中,所述识别装置,用于:Further, in the above-mentioned equipment, the identification device is used for:
对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;The target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are sorted in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue. The target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
进一步的,上述设备中,所述分类神经网络为全连接层分类神经网络。Further, in the above device, the classification neural network is a fully connected layer classification neural network.
根据本发明的另一方面,还提供一种基于计算的设备,其中,包括:According to another aspect of the present invention, there is also provided a computing-based device, which includes:
处理器;以及Processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色 屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
根据本发明的另一方面,还提供一种计算机可读存储介质,其上存储有计算机可执行指令,其中,该计算机可执行指令被处理器执行时使得该处理器:According to another aspect of the present invention, there is also provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein, when the computer-executable instructions are executed by a processor, the processor:
控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
与现有技术相比,本发明通过分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框,可以准确识别出手机等设备屏幕上的划痕纹或碎裂纹,可以提高手机等智能设备估价回收等效率。Compared with the prior art, the present invention obtains that the target categories in the yellow screen image and the black screen image are scratch marks and cracks based on the corresponding image features of the yellow screen image and the black screen image. The target candidate frame can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of mobile phone and other smart devices such as valuation and recycling.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more apparent:
图1示出本发明一实施例的屏幕划痕碎裂检测方法的流程图。FIG. 1 shows a flowchart of a method for detecting screen scratches and chipping according to an embodiment of the present invention.
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference signs in the drawings represent the same or similar components.
具体实施方式Detailed ways
下面结合附图对本发明作进一步详细描述。The present invention will be described in further detail below in conjunction with the accompanying drawings.
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration of this application, the terminal, the equipment of the service network, and the trusted party all include one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
如图1所示,本发明提供一种屏幕划痕碎裂检测方法,所述方法包括:As shown in FIG. 1, the present invention provides a method for detecting screen scratches and chipping. The method includes:
步骤S1,控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Step S1, controlling the screen to display a full-screen yellow image lower than the preset exposure value, and taking a yellow screen image based on the outline position of the screen;
在此,针对白色轮廓的设备如手机、PAD等,通过获取黄色屏幕图像,可以保证此类设备的屏幕上的划痕纹、碎裂纹的识别准确度;Here, for devices with white outlines, such as mobile phones, PADs, etc., by acquiring yellow screen images, the accuracy of the identification of scratches and cracks on the screen of such devices can be guaranteed;
步骤S2,控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Step S2, controlling the screen to display a full-screen black image higher than the preset exposure value, and taking a black screen image based on the outline position of the screen;
在此,拍摄高、低曝光值图片的目的是:高曝光值图片有利于拍摄深色屏幕表面纹路,但对于亮色屏幕表面纹路容易产生过曝问题,因此需要使用低曝光值图片辅助检测;Here, the purpose of taking pictures with high and low exposure values is: high-exposure pictures are conducive to shooting dark screen surface textures, but for bright screen surface textures it is easy to cause overexposure problems, so low-exposure pictures need to be used for auxiliary detection;
拍摄黑、黄两种图片的目的是:经过实验得知不同类型的纹路在不同背景颜色图片拍摄下清晰程度不同,因此我们选用了实验效果较好的黑色和黄色图片作为背景;The purpose of shooting black and yellow pictures is: through experiments, we know that different types of textures are different in the different background color pictures, so we choose black and yellow pictures with better experimental results as the background;
步骤S3,将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Step S3, input the yellow screen image into the convolutional neural network, and extract the image features corresponding to the yellow screen image; input the black screen image into the convolutional neural network, and extract the image features corresponding to the black screen image ;
在此,所述卷积神经网络可以是resnext101卷积神经网络,以提取到准确的图像特征;Here, the convolutional neural network may be a resnext101 convolutional neural network to extract accurate image features;
步骤S4,分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Step S4, based on the image features corresponding to the yellow screen image and the black screen image, respectively, obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category.
在此,本发明通过分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框,可以准确识别出手机等设备屏幕上的划痕纹或碎裂纹,可以提高手机等智能设备估价回收等效率。Here, the present invention obtains target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively. It can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of valuation and recycling of smart devices such as mobile phones.
本发明的屏幕划痕碎裂检测方法一实施例中,步骤S4,分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中,目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:In an embodiment of the screen scratch detection method of the present invention, in step S4, based on the image characteristics corresponding to the yellow screen image and the black screen image, respectively, the yellow screen image and the black screen image are obtained, and the target category is scratch The target candidate frames of the mark type and the crack type include:
步骤S41,基于所述黄色屏幕图像对应的图像特征,并通过FPN(feature pyramid networks)方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色 屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Step S41: Based on the image features corresponding to the yellow screen image, and through the FPN (feature pyramid networks) method, obtain the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image; Image features and image features corresponding to the black screen image, and using the FPN method to obtain the corresponding multi-layer feature layers of different scales corresponding to the black screen image;
步骤S42,通过RPN网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;通过PRN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;Step S42: Extract target candidate frames in the yellow screen image on the multi-layer feature layers of different scales corresponding to the yellow screen image through the RPN network, and preset each target candidate frame in the yellow screen image There is a probability value of scratches and cracks; the target candidate frame in the black screen image is extracted by the PRN network on the multi-layer feature layers of different scales corresponding to the black screen image, and the black screen is preset The probability value of scratches and cracks in each target candidate frame in the image;
步骤S43,选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Step S43, selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
在此,可以选取概率值较大的所述黄色屏幕图像中的前1000个的目标候选框;选取概率值较大的所述黑色屏幕图像中的前1000个的目标候选框;Here, the first 1000 target candidate frames in the yellow screen image with a larger probability value may be selected; the first 1000 target candidate frames in the black screen image with a larger probability value may be selected;
步骤S44,将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;Step S44: Input the previously preset number of target candidate frames in the yellow screen image into the classification neural network, and obtain each corresponding output of the first preset number of target candidate frames in the yellow screen image The target candidate frames respectively belong to the probability values of the background category, the scratch pattern category and the broken crack category; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output The probability value that each target candidate frame in the previously preset number of target candidate frames in the black screen image belongs to the background category, the scratch pattern category and the broken crack category respectively;
在此,所述分类神经网络可以是全连接层分类神经网络,以得到可靠等分类;Here, the classification neural network may be a fully connected layer classification neural network to obtain reliable classification;
步骤S45,将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Step S45: Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
在此,例如,所述神经网络输出某个目标候选框a的背景类别的概率值为0.2,划痕纹类别的概率值为0.3,碎裂纹类别的概率值为0.5,那么该 目标候选框a的初始类别为碎裂纹类别;Here, for example, if the neural network outputs a target candidate frame a with a background category probability value of 0.2, a scratch pattern category has a probability value of 0.3, and a broken crack category has a probability value of 0.5, then the target candidate frame a The initial category is the crack category;
又如,所述神经网络输出某个目标候选框b的背景类别的概率值为0.1,划痕纹类别的概率值为0.2,碎裂纹类别的概率值为0.7,那么该目标候选框b的初始类别为碎裂纹类别;For another example, the neural network outputs the probability value of the background category of a certain target candidate frame b as 0.1, the probability value of the scratch pattern category is 0.2, and the probability value of the broken crack category is 0.7, then the initial value of the target candidate frame b The category is broken and cracked;
步骤S46,若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;Step S46, if it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
在此,例如,预设概率阈值为0.6,Here, for example, the preset probability threshold is 0.6,
所述神经网络输出某个目标候选框a的初始类别为碎裂纹类别,碎裂纹类别的概率值为0.5,由于没有超过0.6的预设概率阈值,所以该目标候选框a的碎裂纹类别的初始类别不能作为目标类别;The neural network outputs that the initial category of a certain target candidate frame a is the broken crack category, and the probability value of the broken crack category is 0.5. Since the predetermined probability threshold of 0.6 is not exceeded, the initial category of the broken crack category of the target candidate frame a The category cannot be used as the target category;
又如,所述神经网络输出某个目标候选框b的初始类别为碎裂纹类别,碎裂纹类别的概率值为0.7,由于超过0.6的预设概率阈值,所以该目标候选框b的碎裂纹类别的初始类别可以作为目标类别;For another example, the neural network outputs the initial category of a certain target candidate frame b as the broken crack category, and the probability value of the broken crack category is 0.7. Since the predetermined probability threshold of 0.6 is exceeded, the broken crack category of the target candidate frame b The initial category of can be used as the target category;
步骤S47,输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。Step S47, outputting a target candidate frame whose target categories are determined to be the scratch pattern category and the broken crack category.
在此,本实施例通过目标候选框的初始类别的确定,再从确定初始类别的目标候选框中筛选出确定目标类别的目标候选框,能够进一步可靠、准确的识别出手机等设备屏幕上的划痕纹或碎裂纹。Here, in this embodiment, the initial category of the target candidate frame is determined, and then the target candidate frame of the determined target category is filtered from the target candidate frame of the determined initial category, which can further reliably and accurately identify the screen of the mobile phone and other devices. Scratches or cracks.
本发明的屏幕划痕碎裂检测方法一实施例中,步骤S47,输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:In an embodiment of the screen scratch and chipping detection method of the present invention, in step S47, outputting target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category, including:
步骤S471,对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠 的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;Step S471: Arrange the target candidate frames in the yellow screen image that overlap the target categories in descending order based on the probability value to obtain a first sorting queue, and use the target candidate frame with the highest probability value in the first sorting queue as The first reference candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold value of the area of the first reference candidate frame of the preset ratio , The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image where the target category is determined overlapped are arranged in descending order based on the probability value to obtain the second sorting queue, and the second sorting queue is obtained. The target candidate frame with the highest probability value in the sorting queue is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of the reference candidate frame, the target candidate frame and its corresponding target category are deleted;
步骤S472,输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。Step S472, outputting the target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category.
在此,所述预设比例阈值可以为0.7,当所述排序队列中的后续队列中的每一个目标候选框与所述基准候选框的重叠面积超过0.7的比例所述基准候选框的面积,则将目标候选框及其对应的目标类别删除;Here, the preset ratio threshold may be 0.7. When the overlapping area of each target candidate frame and the reference candidate frame in the subsequent queues in the sorting queue exceeds 0.7 of the area of the reference candidate frame, Then delete the target candidate frame and its corresponding target category;
本实施例通过将重叠面积超过预设比例的基准候选框的面积准候选框的面积的阈值的后续每一个目标候选框进行进一步过滤删除,可以保证输出的可靠的确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。In this embodiment, by further filtering and deleting each subsequent target candidate frame whose overlapping area exceeds the threshold value of the area of the reference candidate frame of the preset ratio and the area of the quasi-candidate frame, it is possible to ensure that the output reliably determines that the target category is scratched. The target candidate frame of the category and the crack category.
本发明提供一种屏幕划痕碎裂检测设备,所述设备包括:The present invention provides a screen scratch and chipping detection device, which includes:
显示拍摄装置,用于控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;The display shooting device is used to control the screen to display a full-screen yellow image below the preset exposure value, and shoot the yellow screen image based on the outline position of the screen; control the screen to display a full-screen black image higher than the preset exposure value, based on The outline position of the screen, taking a black screen image;
在此,针对白色轮廓的设备如手机、PAD等,通过获取黄色屏幕图像,可以保证此类设备的屏幕上的划痕纹、碎裂纹的识别准确度;Here, for devices with white outlines, such as mobile phones, PADs, etc., by acquiring yellow screen images, the accuracy of the identification of scratches and cracks on the screen of such devices can be guaranteed;
特征提取装置,用于将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;A feature extraction device for inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into the convolutional neural network, and extracting the corresponding black screen image Image characteristics;
在此,所述卷积神经网络可以是resnext101卷积神经网络,以提取到准确的图像特征;Here, the convolutional neural network may be a resnext101 convolutional neural network to extract accurate image features;
识别装置,用于分别基于所述黄色屏幕图像和黑色屏幕图像对应的图 像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。The recognition device is configured to obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively.
在此,本发明通过分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框,可以准确识别出手机等设备屏幕上的划痕纹或碎裂纹,可以提高手机等智能设备估价回收等效率。Here, the present invention obtains target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image, respectively. It can accurately identify scratches or cracks on the screen of mobile phones and other devices, and can improve the efficiency of valuation and recycling of smart devices such as mobile phones.
本发明的屏幕划痕碎裂检测方法一实施例中,所述识别装置,用于:In an embodiment of the screen scratch and chipping detection method of the present invention, the identification device is used for:
基于所述黄色屏幕图像对应的图像特征,并通过FPN(feature pyramid networks)方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Based on the image features corresponding to the yellow screen image, and through the FPN (feature pyramid networks) method, the corresponding yellow screen image corresponding to the multi-layer feature layer of different scales is obtained; based on the image features corresponding to the black screen image and Image features corresponding to the black screen image, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the black screen image;
通过RPN网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;通过RPN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;The target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks; the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
在此,可以选取概率值较大的所述黄色屏幕图像中的前1000个的目标候选框;选取概率值较大的所述黑色屏幕图像中的前1000个的目标候选框;Here, the first 1000 target candidate frames in the yellow screen image with a larger probability value may be selected; the first 1000 target candidate frames in the black screen image with a larger probability value may be selected;
将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值; 将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;The first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained The probability values belonging to the background category, the scratch pattern category and the broken crack category respectively; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image The probability value of each target candidate frame in the previously preset number of target candidate frames belonging to the background category, the scratch pattern category and the broken crack category respectively;
在此,所述分类神经网络可以是全连接层分类神经网络;Here, the classification neural network may be a fully connected layer classification neural network;
将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
在此,例如,所述神经网络输出某个目标候选框a的背景类别的概率值为0.2,划痕纹类别的概率值为0.3,碎裂纹类别的概率值为0.5,那么该目标候选框a的初始类别为碎裂纹类别;Here, for example, if the neural network outputs a target candidate frame a with a background category probability value of 0.2, a scratch pattern category has a probability value of 0.3, and a broken crack category has a probability value of 0.5, then the target candidate frame a The initial category is the crack category;
又如,所述神经网络输出某个目标候选框b的背景类别的概率值为0.1,划痕纹类别的概率值为0.2,碎裂纹类别的概率值为0.7,那么该目标候选框b的初始类别为碎裂纹类别;For another example, the neural network outputs the probability value of the background category of a certain target candidate frame b as 0.1, the probability value of the scratch pattern category is 0.2, and the probability value of the broken crack category is 0.7, then the initial value of the target candidate frame b The category is broken and cracked;
若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;If it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
在此,例如,预设概率阈值为0.6,Here, for example, the preset probability threshold is 0.6,
所述神经网络输出某个目标候选框a的初始类别为碎裂纹类别,碎裂纹类别的概率值为0.5,由于没有超过0.6的预设概率阈值,所以该目标候选框a的碎裂纹类别的初始类别不能作为目标类别;The neural network outputs that the initial category of a certain target candidate frame a is the broken crack category, and the probability value of the broken crack category is 0.5. Since the predetermined probability threshold of 0.6 is not exceeded, the initial category of the broken crack category of the target candidate frame a The category cannot be used as the target category;
又如,所述神经网络输出某个目标候选框b的初始类别为碎裂纹类别,碎裂纹类别的概率值为0.7,由于没有超过0.6的预设概率阈值,所以该目标候选框b的碎裂纹类别的初始类别可以作为目标类别;For another example, the neural network outputs that the initial category of a certain target candidate frame b is the broken crack category, and the probability value of the broken crack category is 0.7. Since the preset probability threshold of 0.6 is not exceeded, the broken crack of the target candidate frame b The initial category of the category can be used as the target category;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
在此,本实施例通过目标候选框的初始类别的确定,再从确定初始类别的目标候选框中筛选出确定目标类别的目标候选框,能够进一步可靠、准确的识别出手机等设备屏幕上的划痕纹或碎裂纹。Here, in this embodiment, the initial category of the target candidate frame is determined, and then the target candidate frame of the determined target category is filtered from the target candidate frame of the determined initial category, which can further reliably and accurately identify the screen of the mobile phone and other devices. Scratches or cracks.
本发明的屏幕划痕碎裂检测方法一实施例中,所述识别装置,用于:In an embodiment of the screen scratch and chipping detection method of the present invention, the identification device is used for:
对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;The target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image whose positions where the target category is determined overlap are arranged in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue. The target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
在此,所述预设比例阈值可以为0.7,当所述排序队列中的后续队列中的每一个目标候选框与所述基准候选框的重叠面积超过0.7的比例所述基准候选框的面积,则将目标候选框及其对应的目标类别删除;Here, the preset ratio threshold may be 0.7. When the overlapping area of each target candidate frame and the reference candidate frame in the subsequent queues in the sorting queue exceeds 0.7 of the area of the reference candidate frame, Then delete the target candidate frame and its corresponding target category;
本实施例通过将重叠面积超过预设比例的基准候选框的面积准候选框的面积的阈值的后续每一个目标候选框进行进一步过滤删除,可以保证输出的可靠的确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。In this embodiment, by further filtering and deleting each subsequent target candidate frame whose overlapping area exceeds the threshold value of the area of the reference candidate frame of the preset ratio and the area of the quasi-candidate frame, it is possible to ensure that the output reliably determines that the target category is scratched. The target candidate frame of the category and the crack category.
根据本发明的另一方面,还提供一种基于计算的设备,其中,包括:According to another aspect of the present invention, there is also provided a computing-based device, which includes:
处理器;以及Processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位 置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and shoot a black screen image based on the outline position of the screen;
将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
根据本发明的另一方面,还提供一种计算机可读存储介质,其上存储有计算机可执行指令,其中,该计算机可执行指令被处理器执行时使得该处理器:According to another aspect of the present invention, there is also provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein, when the computer-executable instructions are executed by a processor, the processor:
控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
本发明的各设备和存储介质实施例的详细内容,具体可参见各方法实施例的对应部分,在此,不再赘述。For details of the device and storage medium embodiments of the present invention, please refer to the corresponding parts of the method embodiments for details, which will not be repeated here.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在 内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application also intends to include these modifications and variations.
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present invention can be implemented in software and/or a combination of software and hardware. For example, it can be implemented by an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In an embodiment, the software program of the present invention may be executed by a processor to realize the above-mentioned steps or functions. Similarly, the software program (including related data structure) of the present invention can be stored in a computer-readable recording medium, such as a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present invention may be implemented by hardware, for example, as a circuit that cooperates with a processor to execute each step or function.
另外,本发明的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本发明的方法和/或技术方案。而调用本发明的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的计算机设备的工作存储器中。在此,根据本发明的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本发明的多个实施例的方法和/或技术方案。In addition, a part of the present invention can be applied as a computer program product, such as a computer program instruction, when it is executed by a computer, through the operation of the computer, the method and/or technical solution according to the present invention can be invoked or provided. The program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium, and/or transmitted through a data stream in a broadcast or other signal-bearing medium, and/or stored in accordance with the Said program instructions run in the working memory of the computer equipment. Here, an embodiment according to the present invention includes a device including a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, trigger The operation of the device is based on the aforementioned methods and/or technical solutions according to multiple embodiments of the present invention.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特 定的顺序。For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description, and therefore it is intended to fall within the claims. All changes within the meaning and scope of the equivalent elements of are included in the present invention. Any reference signs in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claims can also be implemented by one unit or device through software or hardware. The first and second words are used to denote names, but do not denote any specific order.

Claims (12)

  1. 一种屏幕划痕碎裂检测方法,其中,该方法包括:A method for detecting broken screen scratches, wherein the method includes:
    控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
    控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
    将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
    分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  2. 根据权利要求1所述的方法,其中,所述卷积神经网络为resnext101卷积神经网络。The method according to claim 1, wherein the convolutional neural network is a resnext101 convolutional neural network.
  3. 根据权利要求1所述的方法,其中,分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中,目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:The method according to claim 1, wherein the yellow screen image and the black screen image are obtained based on the image characteristics corresponding to the yellow screen image and the black screen image respectively, and the target categories are the scratch pattern category and the broken crack category The target candidate frame includes:
    基于所述黄色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Based on the image features corresponding to the yellow screen image, and through the FPN method, the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
    通过RPN网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的 每个目标候选框存在划痕纹和碎裂纹的概率值;通过RPN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;The target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks; the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
    选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
    将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;The first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained The probability values belonging to the background category, the scratch pattern category and the broken crack category respectively; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image The probability value of each target candidate frame in the previously preset number of target candidate frames belonging to the background category, the scratch pattern category and the broken crack category respectively;
    将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
    若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;If it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
    输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  4. 根据权利要求3所述的方法,其中,输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框,包括:3. The method according to claim 3, wherein outputting the target candidate frames whose target categories are determined to be the scratch pattern category and the broken crack category comprises:
    对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设 比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;The target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image whose positions where the target category is determined overlap are arranged in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue. The target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
    输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  5. 根据权利要求1所述的方法,其中,所述分类神经网络为全连接层分类神经网络。The method according to claim 1, wherein the classification neural network is a fully connected layer classification neural network.
  6. 一种屏幕划痕碎裂检测设备,其中,该设备包括:A screen scratch and chipping detection device, wherein the device includes:
    显示拍摄装置,用于控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;The display and shooting device is used to control the screen to display a full-screen yellow image below the preset exposure value, and shoot the yellow screen image based on the outline position of the screen; control the screen to display a full-screen black image higher than the preset exposure value, based on The outline position of the screen, taking a black screen image;
    特征提取装置,用于将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;A feature extraction device for inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into the convolutional neural network, and extracting the corresponding black screen image Image characteristics;
    识别装置,用于分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。An identification device is used to obtain target candidate frames in the yellow screen image and the black screen image whose target categories are the scratch pattern category and the broken crack category based on the image features corresponding to the yellow screen image and the black screen image respectively.
  7. 根据权利要求6所述的设备,其中,所述卷积神经网络为resnext101卷积神经网络。The device according to claim 6, wherein the convolutional neural network is a resnext101 convolutional neural network.
  8. 根据权利要求6所述的设备,其中,所述识别装置,用于:The device according to claim 6, wherein the identification device is used for:
    基于所述黄色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黄色屏幕图像对应的不同尺度的多层特征层;基于所述黑色屏幕图像对应的图像特征和黑色屏幕图像对应的图像特征,并通过FPN方法,得到对应的所述黑色屏幕图像对应的不同尺度的多层特征层;Based on the image features corresponding to the yellow screen image, and through the FPN method, the corresponding multi-layer feature layers of different scales corresponding to the yellow screen image are obtained; based on the image features corresponding to the black screen image and the corresponding black screen image Image features, and using the FPN method to obtain multi-layer feature layers of different scales corresponding to the corresponding black screen image;
    通过RPN网络在所述黄色屏幕图像对应的不同尺度的多层特征层进行所述黄色屏幕图像中的目标候选框的提取,并预设所述黄色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;通过RPN网络在所述黑色屏幕图像对应的不同尺度的多层特征层进行所述黑色屏幕图像中的目标候选框的提取,并预设所述黑色屏幕图像中的每个目标候选框存在划痕纹和碎裂纹的概率值;The target candidate frame in the yellow screen image is extracted through the RPN network on the multi-layer feature layers of different scales corresponding to the yellow screen image, and each target candidate frame in the yellow screen image is preset to have scratches The probability value of grains and cracks; the target candidate frame in the black screen image is extracted on the multi-layer feature layers of different scales corresponding to the black screen image through the RPN network, and the target candidate frame in the black screen image is preset The probability value of scratches and cracks in each target candidate frame;
    选取概率值较大的所述黄色屏幕图像中的前预设个数的目标候选框;选取概率值较大的所述黑色屏幕图像中的前预设个数的目标候选框;Selecting the first preset number of target candidate frames in the yellow screen image with a larger probability value; selecting the first preset number of target candidate frames in the black screen image with a larger probability value;
    将所述黄色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黄色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;将所述黑色色屏幕图像中的前预设个数的目标候选框输入分类神经网络,并获取对应输出的所述黑色屏幕图像中的前预设个数的目标候选框中的每一目标候选框分别属于背景类别、划痕纹类别和碎裂纹类别的概率值;The first preset number of target candidate frames in the yellow screen image are input into the classification neural network, and each target candidate frame in the first preset number of target candidate frames in the yellow screen image corresponding to the output is obtained The probability values belonging to the background category, the scratch pattern category and the broken crack category respectively; input the previously preset number of target candidate frames in the black screen image into the classification neural network, and obtain the corresponding output black screen image The probability value of each target candidate frame in the previously preset number of target candidate frames belonging to the background category, the scratch pattern category and the broken crack category respectively;
    将每个目标候选框的概率值较大的对应类别确定为该目标候选框的初始类别;Determine the corresponding category with a larger probability value of each target candidate frame as the initial category of the target candidate frame;
    若确定初始类别的目标候选框的该初始类别的概率值大于预设概率阈值,则将该初始类别确定为该目标候选框的目标类别;If it is determined that the probability value of the initial category of the target candidate frame of the initial category is greater than the preset probability threshold, then the initial category is determined as the target category of the target candidate frame;
    输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  9. 根据权利要求8所述的设备,其中,所述识别装置,用于:The device according to claim 8, wherein the identification device is used for:
    对所述黄色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第一排序队列,将所述第一排序队列中概率值最高的目标候选框作为第一基准候选框,若所述第一排序队列中的后续队列中的每一个目标候选框与所述第一基准候选框的重叠面积是超过预设比例的第一基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;对所述黑色屏幕图像中的确定了目标类别的位置重叠的目标候选框基于概率值进行降序排列得到第二排序队列,将所述第二排序队列中概率值最高的目标候选框作为第二基准候选框,若所述第二排序队列中的后续每一个目标候选框与所述第二基准候选框的重叠面积超过预设比例的第二基准候选框的面积的阈值,则将目标候选框及其对应的目标类别删除;The target candidate frames in the yellow screen image with the positions of the determined target categories overlapped are sorted in descending order based on the probability value to obtain the first sorting queue, and the target candidate frame with the highest probability value in the first sorting queue is used as the first reference Candidate frame, if the overlapping area of each target candidate frame in the subsequent queues in the first sorting queue and the first reference candidate frame exceeds the threshold of the area of the first reference candidate frame of the preset ratio, then The target candidate frame and its corresponding target category are deleted; the target candidate frames in the black screen image whose positions where the target category is determined overlap are arranged in descending order based on the probability value to obtain a second sorting queue, and the second sorting queue is placed in the second sorting queue. The target candidate frame with the highest probability value is used as the second reference candidate frame. If the overlapping area of each subsequent target candidate frame in the second sorting queue and the second reference candidate frame exceeds the preset ratio of the second reference candidate frame The threshold of the area of, delete the target candidate frame and its corresponding target category;
    输出确定了目标类别为划痕纹类别和碎裂纹类别的目标候选框。The output determines the target candidate frame with the target category as scratch pattern category and broken crack category.
  10. 根据权利要求8所述的设备,其中,所述分类神经网络为全连接层分类神经网络。The device according to claim 8, wherein the classification neural network is a fully connected layer classification neural network.
  11. 一种基于计算的设备,其中,包括:A computing-based device, which includes:
    处理器;以及Processor; and
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
    控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
    控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
    将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
    分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
  12. 一种计算机可读存储介质,其上存储有计算机可执行指令,其中,该计算机可执行指令被处理器执行时使得该处理器:A computer-readable storage medium having computer-executable instructions stored thereon, wherein, when the computer-executable instructions are executed by a processor, the processor:
    控制屏幕显示低于预设曝光值的满屏黄色的图像,基于屏幕的轮廓位置,拍摄黄色屏幕图像;Control the screen to display a full-screen yellow image below the preset exposure value, and take a yellow screen image based on the outline position of the screen;
    控制屏幕显示高于预设曝光值的满屏黑色的图像,基于屏幕的轮廓位置,拍摄黑色屏幕图像;Control the screen to display a full-screen black image higher than the preset exposure value, and take a black screen image based on the outline position of the screen;
    将所述黄色屏幕图像输入卷积神经网络,提取到所述黄色屏幕图像对应的图像特征;将所述黑色屏幕图像输入卷积神经网络,提取到所述黑色屏幕图像对应的图像特征;Inputting the yellow screen image into a convolutional neural network, and extracting image features corresponding to the yellow screen image; inputting the black screen image into a convolutional neural network, and extracting image features corresponding to the black screen image;
    分别基于所述黄色屏幕图像和黑色屏幕图像对应的图像特征,得到所述黄色屏幕图像和黑色屏幕图像中的目标类别为划痕纹类别和碎裂纹类别的目标候选框。Based on the image features corresponding to the yellow screen image and the black screen image, respectively, target candidate frames in the yellow screen image and the black screen image are obtained in which the target categories are the scratch pattern category and the broken crack category.
PCT/CN2020/120889 2020-01-21 2020-10-14 Screen scratch and crack detection method and device WO2021147386A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010072280.2A CN111175318A (en) 2020-01-21 2020-01-21 Screen scratch fragmentation detection method and equipment
CN202010072280.2 2020-01-21

Publications (1)

Publication Number Publication Date
WO2021147386A1 true WO2021147386A1 (en) 2021-07-29

Family

ID=70624648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/120889 WO2021147386A1 (en) 2020-01-21 2020-10-14 Screen scratch and crack detection method and device

Country Status (2)

Country Link
CN (1) CN111175318A (en)
WO (1) WO2021147386A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11436570B2 (en) 2014-10-31 2022-09-06 Ecoatm, Llc Systems and methods for recycling consumer electronic devices
US11462868B2 (en) 2019-02-12 2022-10-04 Ecoatm, Llc Connector carrier for electronic device kiosk
US11482067B2 (en) 2019-02-12 2022-10-25 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices
US11798250B2 (en) 2019-02-18 2023-10-24 Ecoatm, Llc Neural network based physical condition evaluation of electronic devices, and associated systems and methods
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition
US11989701B2 (en) 2014-10-03 2024-05-21 Ecoatm, Llc System for electrically testing mobile devices at a consumer-operated kiosk, and associated devices and methods
US12033454B2 (en) 2020-08-17 2024-07-09 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111175318A (en) * 2020-01-21 2020-05-19 上海悦易网络信息技术有限公司 Screen scratch fragmentation detection method and equipment
CN111325716B (en) * 2020-01-21 2023-09-01 上海万物新生环保科技集团有限公司 Screen scratch and fragmentation detection method and equipment
CN112348808A (en) * 2020-11-30 2021-02-09 广州绿怡信息科技有限公司 Screen perspective detection method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017156046A1 (en) * 2016-03-07 2017-09-14 Hyla, Inc. Screen damage detection for devices
CN107783321A (en) * 2016-08-24 2018-03-09 神讯电脑(昆山)有限公司 LCDs detection means and its method
CN108061735A (en) * 2017-12-01 2018-05-22 工业互联网创新中心(上海)有限公司 The recognition methods of component surface defect and device
CN108345911A (en) * 2018-04-16 2018-07-31 东北大学 Surface Defects in Steel Plate detection method based on convolutional neural networks multi-stage characteristics
CN109144764A (en) * 2018-07-31 2019-01-04 深圳点猫科技有限公司 A kind of screen dead pixel detection method and equipment based on education operating system
CN109239102A (en) * 2018-08-21 2019-01-18 南京理工大学 A kind of flexible circuit board open defect detection method based on CNN
US20190147586A1 (en) * 2017-11-15 2019-05-16 Omron Corporation Defect inspection apparatus, defect inspection method, and program thereof
CN110097544A (en) * 2019-04-25 2019-08-06 武汉精立电子技术有限公司 A kind of display panel open defect detection method
CN111175318A (en) * 2020-01-21 2020-05-19 上海悦易网络信息技术有限公司 Screen scratch fragmentation detection method and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013020335A (en) * 2011-07-08 2013-01-31 Nikon Corp Image classification method
CN107862657A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN110322510B (en) * 2019-06-27 2021-08-27 电子科技大学 6D pose estimation method using contour information
CN110660072B (en) * 2019-09-20 2022-08-26 北京神工科技有限公司 Method and device for identifying straight line edge, storage medium and electronic equipment
CN111325716B (en) * 2020-01-21 2023-09-01 上海万物新生环保科技集团有限公司 Screen scratch and fragmentation detection method and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017156046A1 (en) * 2016-03-07 2017-09-14 Hyla, Inc. Screen damage detection for devices
CN107783321A (en) * 2016-08-24 2018-03-09 神讯电脑(昆山)有限公司 LCDs detection means and its method
US20190147586A1 (en) * 2017-11-15 2019-05-16 Omron Corporation Defect inspection apparatus, defect inspection method, and program thereof
CN108061735A (en) * 2017-12-01 2018-05-22 工业互联网创新中心(上海)有限公司 The recognition methods of component surface defect and device
CN108345911A (en) * 2018-04-16 2018-07-31 东北大学 Surface Defects in Steel Plate detection method based on convolutional neural networks multi-stage characteristics
CN109144764A (en) * 2018-07-31 2019-01-04 深圳点猫科技有限公司 A kind of screen dead pixel detection method and equipment based on education operating system
CN109239102A (en) * 2018-08-21 2019-01-18 南京理工大学 A kind of flexible circuit board open defect detection method based on CNN
CN110097544A (en) * 2019-04-25 2019-08-06 武汉精立电子技术有限公司 A kind of display panel open defect detection method
CN111175318A (en) * 2020-01-21 2020-05-19 上海悦易网络信息技术有限公司 Screen scratch fragmentation detection method and equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11989701B2 (en) 2014-10-03 2024-05-21 Ecoatm, Llc System for electrically testing mobile devices at a consumer-operated kiosk, and associated devices and methods
US11436570B2 (en) 2014-10-31 2022-09-06 Ecoatm, Llc Systems and methods for recycling consumer electronic devices
US11462868B2 (en) 2019-02-12 2022-10-04 Ecoatm, Llc Connector carrier for electronic device kiosk
US11482067B2 (en) 2019-02-12 2022-10-25 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices
US11843206B2 (en) 2019-02-12 2023-12-12 Ecoatm, Llc Connector carrier for electronic device kiosk
US11798250B2 (en) 2019-02-18 2023-10-24 Ecoatm, Llc Neural network based physical condition evaluation of electronic devices, and associated systems and methods
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition
US12033454B2 (en) 2020-08-17 2024-07-09 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices

Also Published As

Publication number Publication date
CN111175318A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
WO2021147386A1 (en) Screen scratch and crack detection method and device
WO2021147387A1 (en) Screen scratch and crack detection method and device
WO2021147385A1 (en) Screen detection method and apparatus
US11410277B2 (en) Method and device for blurring image background, storage medium and electronic apparatus
WO2021082923A1 (en) Electronic device screen area defect detection method and device
US9697416B2 (en) Object detection using cascaded convolutional neural networks
WO2021082921A1 (en) Back cover appearance defect detection method for electronic apparatus, and apparatus
CN111311556B (en) Mobile phone defect position identification method and equipment
US8744208B2 (en) Image binarization based on grey membership parameter of pixels
US8744176B2 (en) Object segmentation at a self-checkout
US8849062B2 (en) Eye defect detection in international standards organization images
CN111325717B (en) Mobile phone defect position identification method and equipment
US11790499B2 (en) Certificate image extraction method and terminal device
WO2021082920A1 (en) Method and device for detecting border appearance defects of electronic device
US8306262B2 (en) Face tracking method for electronic camera device
CN111191568B (en) Method, device, equipment and medium for identifying flip image
US9679354B2 (en) Duplicate check image resolution
WO2021147388A1 (en) Camera color spot detection method and device
CN109409210B (en) Face detection method and system based on SSD (solid State disk) framework
US10909227B2 (en) Certificate verification
CN113129298A (en) Definition recognition method of text image
CN107403127B (en) Vehicle unloading state monitoring method based on image ORB characteristics
CN112101135A (en) Moving target detection method and device and terminal equipment
WO2023225774A1 (en) Image processing method and apparatus, and electronic device and computer-readable storage medium
JP2007334876A (en) System and method for processing document image

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

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

Country of ref document: EP

Kind code of ref document: A1