WO2019096178A1 - Fiber detection method and apparatus, and electronic device - Google Patents

Fiber detection method and apparatus, and electronic device Download PDF

Info

Publication number
WO2019096178A1
WO2019096178A1 PCT/CN2018/115493 CN2018115493W WO2019096178A1 WO 2019096178 A1 WO2019096178 A1 WO 2019096178A1 CN 2018115493 W CN2018115493 W CN 2018115493W WO 2019096178 A1 WO2019096178 A1 WO 2019096178A1
Authority
WO
WIPO (PCT)
Prior art keywords
fiber
image
learning model
detected
preset depth
Prior art date
Application number
PCT/CN2018/115493
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 WO2019096178A1 publication Critical patent/WO2019096178A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks

Definitions

  • the present application relates to the field of image recognition technologies, and in particular, to a fiber detecting method, device, and electronic device.
  • the purpose of the present application is to provide a fiber detecting method, device and electronic device capable of performing independent neural network detection and identification on each fiber through various deep learning models based on convolutional neural networks, thereby When the mixed fiber is detected, the interference of other fibers on the identification is excluded, and the purpose of accurately identifying the fiber is achieved.
  • an embodiment of the present application provides a fiber detecting method, including:
  • Extracting fiber characteristics of the fiber image to be detected according to a preset depth learning model includes a plurality of deep learning models based on a convolutional neural network;
  • the fiber feature is identified by a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
  • the embodiment of the present application provides a first possible implementation manner of the first aspect, wherein acquiring the image of the fiber to be detected includes:
  • An image obtained by taking an image of a target object by an electron microscope is obtained, and a fiber image to be detected is obtained; the target object includes a fiber structure.
  • embodiments of the present application provide a second possible embodiment of the first aspect, wherein the fiber characteristics comprise: fiber type, fiber diameter, and fiber count.
  • the embodiment of the present application provides a third possible implementation manner of the first aspect, wherein the deep learning model based on the convolutional neural network is trained by using fiber sample data exceeding a certain threshold, the fiber sample The data includes pictures corresponding to different types of fibers.
  • the embodiment of the present application provides a fourth possible implementation manner of the first aspect, wherein the classifier based on the preset deep learning model training is obtained by:
  • the fiber sample data includes fiber characteristics, matching degree and recognition result.
  • the embodiment of the present application provides a fifth possible implementation manner of the first aspect, wherein the fiber feature is identified by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected. Specifically, including:
  • the fiber feature is converted into a binary data format and then input into a classifier based on the preset depth learning model training to generate a recognition result corresponding to the fiber image to be detected.
  • the embodiment of the present application provides a sixth possible implementation manner of the first aspect, wherein the fiber feature is identified by using a classifier trained based on the preset depth learning model to generate an image of the fiber to be detected. After the results, it also includes:
  • the recognition result of the fiber image to be detected is stored as a new fiber sample data in the fiber sample database.
  • an embodiment of the present application provides a fiber detecting device, where the device includes:
  • An image acquisition module configured to acquire a fiber image to be detected
  • a feature extraction module configured to extract a fiber feature of the fiber image to be detected according to a preset depth learning model, where the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network;
  • the fiber identification module is configured to identify the fiber feature by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, where the computer stores a computer program executable on a processor, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented. .
  • the embodiment of the present application further provides a computer readable medium having a processor-executable non-volatile program code, the program code causing a processor to perform the method described in the first aspect.
  • the fiber image to be detected is first obtained, and then the fiber feature of the fiber image to be detected is extracted according to a preset depth learning model, wherein the preset depth learning model includes a plurality of convolutional neural networks.
  • the deep learning model finally uses the classifier based on the preset deep learning model to identify the fiber features and generate the recognition result of the fiber image to be detected.
  • the fiber detection method can perform independent neural network detection and identification on each fiber through a variety of deep learning models based on convolutional neural networks, thereby eliminating the interference of other fibers on the identification of the mixed fibers, and accurately identifying the fibers. the goal of.
  • FIG. 1 is a flow chart of a fiber detecting method according to Embodiment 1 of the present application.
  • FIG. 2 is a flow chart of another fiber detecting method according to Embodiment 1 of the present application.
  • FIG. 3 is a flow chart of another fiber detecting method according to Embodiment 1 of the present application.
  • FIG. 5 is a schematic structural diagram of a fiber detecting device according to Embodiment 2 of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to Embodiment 3 of the present application.
  • the existing fiber detection and identification method is performed on an artificial basis, which is not only time-consuming and laborious, but also inefficient, especially for materials containing a hybrid fiber structure, which is difficult to identify.
  • the fiber detecting method, device and electronic device provided by the embodiments of the present application can perform independent neural network detection and identification on each fiber through various deep learning models based on convolutional neural networks, thereby detecting mixed fibers. When the interference of other fibers is recognized, the purpose of accurately identifying the fiber is achieved.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the present application provides a fiber detecting method, which can be applied to fiber detecting scenarios in various fields, such as cloth fiber detection and plant fiber testing in the field of garment production.
  • the method includes:
  • S101 Acquire an image of the fiber to be detected.
  • the target test substance is a material containing a fibrous structure such as cloth, a high polymer composite material, and a plant specimen.
  • the electron microscope can be a microscope of different types and different specifications, and the relevant professional uses an electron microscope to collect an image of the fiber to be detected of the object to be detected.
  • S102 Extracting fiber characteristics of the fiber image to be detected according to the preset depth learning model, and the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network.
  • the deep learning model based on convolutional neural network is trained by fiber sample data exceeding a certain threshold, and the fiber sample data includes pictures corresponding to different types of fibers.
  • the above various deep learning models based on convolutional neural networks can be implemented by the Caffe deep learning framework.
  • the fiber image includes a plurality of fiber sample data having different fiber types, fiber diameters, and fiber numbers, which is advantageous for accurate recognition of the fiber image to be detected later, and the convolutional neural network is improved.
  • the ability of the deep learning model to recognize, even if the fiber to be tested is a hybrid fiber, can be accurately identified.
  • the step S102 specifically includes: performing the feature training in the plurality of base layers included in the preset depth learning model as the input image as the input image, and extracting the fully connected layer or other designated base layers in the multiple integrations after the training is completed.
  • the output feature vector is used as the corresponding fiber feature in the image of the fiber to be detected.
  • fiber characteristics include: fiber type, fiber diameter and fiber number.
  • S103 Identify a fiber feature by using a classifier trained based on a preset depth learning model to generate a recognition result of the fiber image to be detected.
  • the extracted fiber features are input into a classifier trained based on a preset depth learning model, and after the classifier is identified, the final recognition result is obtained.
  • the recognition results are fiber type, fiber diameter, and fiber number.
  • the classifier based on the preset deep learning model training is obtained in the following manner, as shown in FIG. 2:
  • S201 Extracting deep features of fiber sample data using a plurality of deep learning models based on convolutional neural networks.
  • the fiber sample data includes fiber characteristics, matching degree and recognition result.
  • the above machine learning algorithm may be a neighboring algorithm, a maximum expectation algorithm, and a support vector machine algorithm.
  • the specific algorithm may be selected according to a specific situation, which is not limited herein.
  • the fiber sample data includes triple data; wherein the triple data includes: source data, forward data belonging to the same category as the source data, and subordinate to the source data Reverse data for different categories.
  • the source data is sample data with the same recognition result randomly obtained from the fiber sample data.
  • the forward data is sample data that is randomly obtained from the fiber sample data and is consistent with the recognition result of the source data; the matching degree of the source data is higher than the matching degree of the forward data.
  • the reverse data is sample data that is randomly obtained from the fiber sample data and is inconsistent with the recognition result of the source data.
  • the triplet data is: a first picture with good performance of the fiber image in the fiber sample data, a second picture with poor performance of the fiber image in the fiber sample data, and the first picture and the second picture
  • the picture identifies a third picture with a different result.
  • the specific first picture is the source data with the highest matching degree
  • the second picture has a gap with the first picture in terms of definition and resolution
  • the matching degree is lower than the first picture, but is still a fiber image, and is a forward data.
  • the third picture is the reverse data of the reverse contrast in the training, and the positive opposition ratio is used to further enhance the recognition ability of the classifier and improve the accuracy of the neural network fiber detection and recognition.
  • the classifier for training based on the preset depth learning model is used to identify the fiber features, and the recognition result of the fiber image to be detected is generated, which specifically includes the following steps, as shown in FIG. 3:
  • S301 Determine a data format corresponding to the classifier trained based on the preset depth learning model.
  • the fiber feature is converted, converted into a binary data format, and then input into the trained classifier for recognition, because the machine language is Binary, so the binary data format can speed up the recognition process, and no additional data conversion is required when performing the recognition, thereby improving the efficiency of recognition.
  • the fiber recognition effect of the classifier trained based on the deep learning model is more accurate.
  • the fiber image to be detected is first obtained, and then the fiber feature of the fiber image to be detected is extracted according to a preset depth learning model, wherein the preset depth learning model includes a plurality of convolutional neural networks.
  • the deep learning model finally uses the classifier based on the preset deep learning model to identify the fiber features and generate the recognition result of the fiber image to be detected.
  • the fiber detection method can perform independent neural network detection and identification on each fiber through a variety of deep learning models based on convolutional neural networks, thereby eliminating the interference of other fibers on the identification of the mixed fibers, and accurately identifying the fibers. the goal of.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the present application provides a fiber detecting device.
  • the device includes an image acquiring module 51, a feature extracting module 52, and a fiber identifying module 53.
  • the image obtaining module 51 is configured to acquire a fiber image to be detected.
  • the feature extraction module 52 is configured to extract fiber characteristics of the fiber image to be detected according to the preset depth learning model, and the preset depth learning model includes multiple convolutional neural networks.
  • the deep learning model; the fiber identification module 53 is configured to identify the fiber features by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
  • each module has the same technical features as the fiber detecting method described above, and therefore, the above functions can also be implemented, and details are not described herein again.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the embodiment of the present application further provides an electronic device.
  • the electronic device includes: a processor 60, a memory 61, a bus 62, and a communication interface 63.
  • the processor 60, the communication interface 63, and the memory 61 pass through the bus.
  • 62 is connected; the processor 60 is configured to execute an executable module, such as a computer program, stored in the memory 61.
  • the steps of the method as described in the method embodiments are implemented when the processor executes a computer program.
  • the memory 61 may include a high speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
  • RAM high speed random access memory
  • non-volatile memory such as at least one disk memory.
  • the communication connection between the system network element and at least one other network element is implemented by at least one communication interface 63 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
  • the bus 62 can be an ISA bus, a PCI bus, or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one double-headed arrow is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the memory 61 is configured to store a program, and the processor 60 executes the program after receiving the execution instruction, and the method executed by the device defined by the flow process disclosed in any embodiment of the present application may be applied to the processing.
  • processor 60 or implemented by processor 60.
  • Processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 60 or an instruction in the form of software.
  • the processor 60 may be a general-purpose processor, including a central processing unit (CPU) and a network processor (NP), and may also be a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and performs the steps of the above method in combination with its hardware.
  • the computer program product of the method for locating a network device includes a computer readable storage medium storing non-volatile program code executable by a processor, the program code including instructions configurable to execute the front
  • a computer readable storage medium storing non-volatile program code executable by a processor, the program code including instructions configurable to execute the front
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that comprises one or more of the Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-transitory computer readable storage medium executable by a processor.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Evolutionary Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

A fiber detection method and apparatus, and an electronic equipment, relating to the technical field of image recognition. The fiber detection method comprises: obtaining a fiber image to be detected (S101); extracting fiber features of the fiber image to be detected according to a preset deep learning model, the preset deep learning model comprising multiple deep learning models based on a convolutional neural network (S102); and utilizing a classifier trained based on the preset deep learning model to recognize the fiber features, and generating a recognition result of the fiber image to be detected (S103). According to the fiber detection method, independent neural network detection recognition can be performed on each type of fibers by means of the deep learning models based on the convolutional neural network, and therefore, interference on recognition from other fibers during blend fiber detection is eliminated, and the purpose of accurate fiber recognition is achieved.

Description

纤维检测方法、装置及电子设备Fiber testing method, device and electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年11月14日提交中国专利局的申请号为201711126617.8、名称为“纤维检测方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application No. 201711126617.8, entitled "Fiber Detection Method, Apparatus, and Electronic Apparatus", filed on November 14, 2017, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及图像识别技术领域,尤其是涉及一种纤维检测方法、装置及电子设备。The present application relates to the field of image recognition technologies, and in particular, to a fiber detecting method, device, and electronic device.
背景技术Background technique
随着我国经济的持续快速发展,各行各业均呈现蓬勃发展态势。随之而来的是,各种包含纤维结构的物质材料越来越丰富,其种类、纤维组成和形态等千差万别。目前的纤维检测识别方式是基于人工的方式来进行的,通常需要采集图像,然后对上述图像进行观测,根据已有经验和知识,确定该图像中的纤维类型,计算其纤维直径及数量等。此过程费时费力,且效率低下,尤其对于包含混合型纤维结构的材料来说,其识别的难度很大。With the sustained and rapid development of China's economy, all walks of life have shown a booming trend. Along with this, various materials containing fibrous structures are becoming more and more abundant, and their types, fiber compositions and forms vary widely. The current fiber detection and identification method is based on manual methods. It is usually necessary to collect images, and then observe the above images. According to the existing experience and knowledge, the fiber types in the images are determined, and the fiber diameter and number are calculated. This process is time consuming and labor inefficient, especially for materials containing hybrid fiber structures, which are difficult to identify.
发明内容Summary of the invention
有鉴于此,本申请的目的在于提供一种纤维检测方法、装置及电子设备,能够通过多种基于卷积神经网络的深度学习模型,对每种纤维进行独立的神经网络检测识别,从而在对混合纤维检测时,排除其他纤维对识别的干扰,达到准确识别纤维的目的。In view of this, the purpose of the present application is to provide a fiber detecting method, device and electronic device capable of performing independent neural network detection and identification on each fiber through various deep learning models based on convolutional neural networks, thereby When the mixed fiber is detected, the interference of other fibers on the identification is excluded, and the purpose of accurately identifying the fiber is achieved.
第一方面,本申请实施例提供了一种纤维检测方法,包括:In a first aspect, an embodiment of the present application provides a fiber detecting method, including:
获取待检测纤维图像;Obtaining an image of the fiber to be tested;
根据预设深度学习模型提取待检测纤维图像的纤维特征,预设深度学习模型包括多种基于卷积神经网络的深度学习模型;Extracting fiber characteristics of the fiber image to be detected according to a preset depth learning model, and the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network;
利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。The fiber feature is identified by a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
结合第一方面,本申请实施例提供了第一方面的第一种可能的实施方式,其中,获取待检测纤维图像,具体包括:With reference to the first aspect, the embodiment of the present application provides a first possible implementation manner of the first aspect, wherein acquiring the image of the fiber to be detected includes:
获取电子显微镜对目标检测物进行拍照所采集的图像,得到待检测纤维图像;目标检测物包含纤维结构。An image obtained by taking an image of a target object by an electron microscope is obtained, and a fiber image to be detected is obtained; the target object includes a fiber structure.
结合第一方面,本申请实施例提供了第一方面的第二种可能的实施方式,其中,纤维特征包括:纤维类型、纤维直径和纤维数量。In connection with the first aspect, embodiments of the present application provide a second possible embodiment of the first aspect, wherein the fiber characteristics comprise: fiber type, fiber diameter, and fiber count.
结合第一方面,本申请实施例提供了第一方面的第三种可能的实施方式,其中,基于卷积神经网络的深度学习模型是通过数量超过一定阈值的纤维样本数据训练得到的,纤维 样本数据包括不同类型的纤维对应的图片。With reference to the first aspect, the embodiment of the present application provides a third possible implementation manner of the first aspect, wherein the deep learning model based on the convolutional neural network is trained by using fiber sample data exceeding a certain threshold, the fiber sample The data includes pictures corresponding to different types of fibers.
结合第一方面,本申请实施例提供了第一方面的第四种可能的实施方式,其中,通过以下方式获得基于预设深度学习模型训练的分类器:With reference to the first aspect, the embodiment of the present application provides a fourth possible implementation manner of the first aspect, wherein the classifier based on the preset deep learning model training is obtained by:
利用多种基于卷积神经网络的深度学习模型提取纤维样本数据的深层特征;Extracting deep features of fiber sample data using a variety of deep learning models based on convolutional neural networks;
基于机器学习算法,对深层特征训练分类器;Training a classifier for deep features based on a machine learning algorithm;
其中纤维样本数据中包括纤维特征、匹配度和识别结果。Among them, the fiber sample data includes fiber characteristics, matching degree and recognition result.
结合第一方面,本申请实施例提供了第一方面的第五种可能的实施方式,其中,利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果,具体包括:With reference to the first aspect, the embodiment of the present application provides a fifth possible implementation manner of the first aspect, wherein the fiber feature is identified by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected. Specifically, including:
确定基于预设深度学习模型训练的分类器所对应的数据格式;Determining a data format corresponding to the classifier trained based on the preset deep learning model;
如果数据格式包括二进制数据格式,将纤维特征转换为二进制数据格式后输入基于预设深度学习模型训练的分类器,以生成对应待检测纤维图像的识别结果。If the data format includes a binary data format, the fiber feature is converted into a binary data format and then input into a classifier based on the preset depth learning model training to generate a recognition result corresponding to the fiber image to be detected.
结合第一方面,本申请实施例提供了第一方面的第六种可能的实施方式,其中,在利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果之后,还包括:With reference to the first aspect, the embodiment of the present application provides a sixth possible implementation manner of the first aspect, wherein the fiber feature is identified by using a classifier trained based on the preset depth learning model to generate an image of the fiber to be detected. After the results, it also includes:
将待检测纤维图像的识别结果作为新的纤维样本数据保存在纤维样本数据库中。The recognition result of the fiber image to be detected is stored as a new fiber sample data in the fiber sample database.
第二方面,本申请实施例提供一种纤维检测装置,装置包括:In a second aspect, an embodiment of the present application provides a fiber detecting device, where the device includes:
图像获取模块,配置成获取待检测纤维图像;An image acquisition module configured to acquire a fiber image to be detected;
特征提取模块,配置成根据预设深度学习模型提取待检测纤维图像的纤维特征,预设深度学习模型包括多种基于卷积神经网络的深度学习模型;a feature extraction module configured to extract a fiber feature of the fiber image to be detected according to a preset depth learning model, where the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network;
纤维识别模块,配置成利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。The fiber identification module is configured to identify the fiber feature by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
第三方面,本申请实施例提供一种电子设备,包括存储器和处理器,存储器上存储有可在处理器上运行的计算机程序,处理器执行计算机程序时实现第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the computer stores a computer program executable on a processor, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented. .
第四方面,本申请实施例还提供一种具有处理器可执行的非易失的程序代码的计算机可读介质,程序代码使处理器执行第一方面所述的方法。In a fourth aspect, the embodiment of the present application further provides a computer readable medium having a processor-executable non-volatile program code, the program code causing a processor to perform the method described in the first aspect.
本申请实施例带来了以下有益效果:The embodiments of the present application bring the following beneficial effects:
在本申请实施例提供的纤维检测方法中,首先获取待检测纤维图像,然后根据预设深度学习模型提取待检测纤维图像的纤维特征,其中,预设深度学习模型包括多种基于卷积神经网络的深度学习模型,最后利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。该纤维检测方法能够通过多种基于卷积神经网络 的深度学习模型,对每种纤维进行独立的神经网络检测识别,从而在对混合纤维检测时,排除其他纤维对识别的干扰,达到准确识别纤维的目的。In the fiber detecting method provided by the embodiment of the present application, the fiber image to be detected is first obtained, and then the fiber feature of the fiber image to be detected is extracted according to a preset depth learning model, wherein the preset depth learning model includes a plurality of convolutional neural networks. The deep learning model finally uses the classifier based on the preset deep learning model to identify the fiber features and generate the recognition result of the fiber image to be detected. The fiber detection method can perform independent neural network detection and identification on each fiber through a variety of deep learning models based on convolutional neural networks, thereby eliminating the interference of other fibers on the identification of the mixed fibers, and accurately identifying the fibers. the goal of.
本申请的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows and become apparent from the description. The objectives and other advantages of the present invention are realized and attained by the structure of the invention.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features, and advantages of the present invention will become more apparent from the following description.
附图说明DRAWINGS
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the specific embodiments or the description of the prior art will be briefly described below, and obviously, the attached in the following description The drawings are some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为本申请实施例一提供的一种纤维检测方法的流程图;1 is a flow chart of a fiber detecting method according to Embodiment 1 of the present application;
图2为本申请实施例一提供的另一种纤维检测方法的流程图;2 is a flow chart of another fiber detecting method according to Embodiment 1 of the present application;
图3为本申请实施例一提供的另一种纤维检测方法的流程图;3 is a flow chart of another fiber detecting method according to Embodiment 1 of the present application;
图4为本申请实施例一提供的另一种纤维检测方法的流程图;4 is a flow chart of another fiber detecting method according to Embodiment 1 of the present application;
图5为本申请实施例二提供的一种纤维检测装置的结构示意图;FIG. 5 is a schematic structural diagram of a fiber detecting device according to Embodiment 2 of the present application; FIG.
图6为本申请实施例三提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to Embodiment 3 of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的技术方案进行清楚和完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the accompanying drawings. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of them. An embodiment. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
目前现有的纤维检测识别方式是基于人工的方式来进行的,不仅费时费力,而且效率低下,尤其对于包含混合型纤维结构的材料来说,其识别的难度很大。基于此,本申请实施例提供的纤维检测方法、装置及电子设备,能够通过多种基于卷积神经网络的深度学习模型,对每种纤维进行独立的神经网络检测识别,从而在对混合纤维检测时,排除其他纤维对识别的干扰,达到准确识别纤维的目的。At present, the existing fiber detection and identification method is performed on an artificial basis, which is not only time-consuming and laborious, but also inefficient, especially for materials containing a hybrid fiber structure, which is difficult to identify. Based on this, the fiber detecting method, device and electronic device provided by the embodiments of the present application can perform independent neural network detection and identification on each fiber through various deep learning models based on convolutional neural networks, thereby detecting mixed fibers. When the interference of other fibers is recognized, the purpose of accurately identifying the fiber is achieved.
为便于对本实施例进行理解,首先对本申请实施例所公开的一种纤维检测方法进行详细介绍。In order to facilitate the understanding of the present embodiment, a fiber detecting method disclosed in the embodiment of the present application is first introduced in detail.
实施例一:Embodiment 1:
本申请实施例提供了一种纤维检测方法,该方法可以应用于多种领域的纤维检测情景 中,比如:服装生产领域的布料纤维检测和植物纤维检测等。参见图1所示,该方法包括:The embodiment of the present application provides a fiber detecting method, which can be applied to fiber detecting scenarios in various fields, such as cloth fiber detection and plant fiber testing in the field of garment production. Referring to Figure 1, the method includes:
S101:获取待检测纤维图像。S101: Acquire an image of the fiber to be detected.
具体地,获取电子显微镜对目标检测物进行拍照所采集的图像,得到待检测纤维图像。其中,目标检测物为包含纤维结构的物质,比如布料、高聚合物复合材料和植物标本等。电子显微镜可以为不同类型和不同规格的显微镜,相关专业人员利用电子显微镜采集待检测物的待检测纤维图像。Specifically, an image acquired by photographing the target object by an electron microscope is acquired, and an image of the fiber to be detected is obtained. Among them, the target test substance is a material containing a fibrous structure such as cloth, a high polymer composite material, and a plant specimen. The electron microscope can be a microscope of different types and different specifications, and the relevant professional uses an electron microscope to collect an image of the fiber to be detected of the object to be detected.
S102:根据预设深度学习模型提取待检测纤维图像的纤维特征,预设深度学习模型包括多种基于卷积神经网络的深度学习模型。S102: Extracting fiber characteristics of the fiber image to be detected according to the preset depth learning model, and the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network.
基于卷积神经网络的深度学习模型是通过数量超过一定阈值的纤维样本数据训练得到的,纤维样本数据包括不同类型的纤维对应的图片。The deep learning model based on convolutional neural network is trained by fiber sample data exceeding a certain threshold, and the fiber sample data includes pictures corresponding to different types of fibers.
在一个优选的实施方式中,上述多种基于卷积神经网络的深度学习模型可以通过Caffe深度学习框架实现。In a preferred embodiment, the above various deep learning models based on convolutional neural networks can be implemented by the Caffe deep learning framework.
具体地,纤维样本数据中的纤维图像的数量越多越好,种类越多越好,数据越多,训练生成的基于卷积神经网络的深度学习模型的通用性越好。本申请实施例以布料纤维为例,上述纤维图像包括纤维类型、纤维直径及纤维数量不同的多种纤维样本数据,这样有利于后续对待检测纤维图像的准确识别,提高该基于卷积神经网络的深度学习模型的识别能力,即使待检测纤维是混合纤维,也可以对其进行准确地识别。Specifically, the more the number of fiber images in the fiber sample data, the better, the more the types, the more the data, the better the versatility of the training-generated deep learning model based on the convolutional neural network. In the embodiment of the present application, taking the cloth fiber as an example, the fiber image includes a plurality of fiber sample data having different fiber types, fiber diameters, and fiber numbers, which is advantageous for accurate recognition of the fiber image to be detected later, and the convolutional neural network is improved. The ability of the deep learning model to recognize, even if the fiber to be tested is a hybrid fiber, can be accurately identified.
该步骤S102具体包括:将待检测纤维图像作为输入图像在预设深度学习模型中包含的多个基层中依次进行特征训练,当训练完成后,提取多个集成中的全连接层或者其他指定基层输出的特征向量作为该待检测纤维图像中对应的纤维特征。其中,纤维特征包括:纤维类型、纤维直径和纤维数量。The step S102 specifically includes: performing the feature training in the plurality of base layers included in the preset depth learning model as the input image as the input image, and extracting the fully connected layer or other designated base layers in the multiple integrations after the training is completed. The output feature vector is used as the corresponding fiber feature in the image of the fiber to be detected. Among them, fiber characteristics include: fiber type, fiber diameter and fiber number.
S103:利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。S103: Identify a fiber feature by using a classifier trained based on a preset depth learning model to generate a recognition result of the fiber image to be detected.
将上述提取的纤维特征输入基于预设深度学习模型训练的分类器,通过该分类器识别后,获得最终的识别结果。具体地,识别结果为纤维类型、纤维直径以及纤维数量。The extracted fiber features are input into a classifier trained based on a preset depth learning model, and after the classifier is identified, the final recognition result is obtained. Specifically, the recognition results are fiber type, fiber diameter, and fiber number.
在一个可选的实施方式中,通过以下方式获得基于预设深度学习模型训练的分类器,参见图2所示:In an optional implementation manner, the classifier based on the preset deep learning model training is obtained in the following manner, as shown in FIG. 2:
S201:利用多种基于卷积神经网络的深度学习模型提取纤维样本数据的深层特征。S201: Extracting deep features of fiber sample data using a plurality of deep learning models based on convolutional neural networks.
S202:基于机器学习算法,对深层特征训练分类器。S202: Train the classifier for the deep feature based on the machine learning algorithm.
其中纤维样本数据中包括纤维特征、匹配度和识别结果。上述机器学习算法可以是邻近算法、最大期望算法及支持向量机算法等,具体算法可以根据具体情况选择,这里不作限定。Among them, the fiber sample data includes fiber characteristics, matching degree and recognition result. The above machine learning algorithm may be a neighboring algorithm, a maximum expectation algorithm, and a support vector machine algorithm. The specific algorithm may be selected according to a specific situation, which is not limited herein.
在一个可选的实施例中,上述纤维样品数据包括三元组数据;其中该三元组数据包括:源数据、与所述源数据属于同一类别的正向数据、以及与该源数据分属不同类别的反向数据。In an optional embodiment, the fiber sample data includes triple data; wherein the triple data includes: source data, forward data belonging to the same category as the source data, and subordinate to the source data Reverse data for different categories.
其中,源数据为从纤维样品数据中随机获取到的识别结果相同的样本数据。正向数据为从纤维样本数据中随机获取的与源数据的识别结果一致的样本数据;该源数据的匹配度高于正向数据的匹配度。反向数据为从纤维样本数据中随机获取的与源数据的识别结果不一致的样本数据。The source data is sample data with the same recognition result randomly obtained from the fiber sample data. The forward data is sample data that is randomly obtained from the fiber sample data and is consistent with the recognition result of the source data; the matching degree of the source data is higher than the matching degree of the forward data. The reverse data is sample data that is randomly obtained from the fiber sample data and is inconsistent with the recognition result of the source data.
在一个具体的实施方式中,三元组数据分别为:纤维样本数据中纤维图像性能良好的第一图片,纤维样本数据中纤维图像性能较差的第二图片,以及与第一图片和第二图片识别结果不同的第三图片。具体的第一图片为匹配程度最高的源数据,第二图片在清晰度和分辨率等方面与第一图片存在差距,其匹配度低于第一图片,但仍是纤维图像,为正向数据。第三图片则是在训练是进行反向对比的反向数据,以次通过正反对比,进一步增强了分类器的识别能力,提高了神经网络纤维检测识别准确性。In a specific embodiment, the triplet data is: a first picture with good performance of the fiber image in the fiber sample data, a second picture with poor performance of the fiber image in the fiber sample data, and the first picture and the second picture The picture identifies a third picture with a different result. The specific first picture is the source data with the highest matching degree, and the second picture has a gap with the first picture in terms of definition and resolution, and the matching degree is lower than the first picture, but is still a fiber image, and is a forward data. . The third picture is the reverse data of the reverse contrast in the training, and the positive opposition ratio is used to further enhance the recognition ability of the classifier and improve the accuracy of the neural network fiber detection and recognition.
利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果,具体包括以下步骤,参见图3所示:The classifier for training based on the preset depth learning model is used to identify the fiber features, and the recognition result of the fiber image to be detected is generated, which specifically includes the following steps, as shown in FIG. 3:
S301:确定基于预设深度学习模型训练的分类器所对应的数据格式。S301: Determine a data format corresponding to the classifier trained based on the preset depth learning model.
S302:如果数据格式包括二进制数据格式,将纤维特征转换为二进制数据格式后输入基于预设深度学习模型训练的分类器,以生成对应待检测纤维图像的识别结果。S302: If the data format includes a binary data format, converting the fiber feature into a binary data format, and inputting a classifier based on the preset depth learning model training to generate a recognition result corresponding to the fiber image to be detected.
具体地,若预设深度学习模型训练的分类器支持二进制数据格式,那么就将纤维特征进行转换,转换为二进制的数据格式,再输入到上述训练的分类器中,进行识别,由于机器语言为二进制,因此通过二进制的数据格式,可以加快识别的过程,在进行识别时,不需要再进行额外的数据转换,由此可以提高识别的效率。Specifically, if the classifier trained by the preset deep learning model supports the binary data format, the fiber feature is converted, converted into a binary data format, and then input into the trained classifier for recognition, because the machine language is Binary, so the binary data format can speed up the recognition process, and no additional data conversion is required when performing the recognition, thereby improving the efficiency of recognition.
此外,在生成待检测纤维图像的识别结果之后,还包括以下步骤,参见图4所示:In addition, after generating the recognition result of the fiber image to be detected, the following steps are further included, as shown in FIG. 4:
S401:将待检测纤维图像的识别结果作为新的纤维样本数据保存在纤维样本数据库中。S401: The recognition result of the fiber image to be detected is saved as a new fiber sample data in the fiber sample database.
通过不断地更新纤维样本数据库中的数据,使得基于深度学习模型训练出的分类器的纤维识别效果更加精确。By continuously updating the data in the fiber sample database, the fiber recognition effect of the classifier trained based on the deep learning model is more accurate.
在本申请实施例提供的纤维检测方法中,首先获取待检测纤维图像,然后根据预设深度学习模型提取待检测纤维图像的纤维特征,其中,预设深度学习模型包括多种基于卷积神经网络的深度学习模型,最后利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。该纤维检测方法能够通过多种基于卷积神经网络的深度学习模型,对每种纤维进行独立的神经网络检测识别,从而在对混合纤维检测时,排除其他纤维对识别的干扰,达到准确识别纤维的目的。In the fiber detecting method provided by the embodiment of the present application, the fiber image to be detected is first obtained, and then the fiber feature of the fiber image to be detected is extracted according to a preset depth learning model, wherein the preset depth learning model includes a plurality of convolutional neural networks. The deep learning model finally uses the classifier based on the preset deep learning model to identify the fiber features and generate the recognition result of the fiber image to be detected. The fiber detection method can perform independent neural network detection and identification on each fiber through a variety of deep learning models based on convolutional neural networks, thereby eliminating the interference of other fibers on the identification of the mixed fibers, and accurately identifying the fibers. the goal of.
实施例二:Embodiment 2:
本申请实施例提供一种纤维检测装置,参见图5所示,该装置包括:图像获取模块51、特征提取模块52和纤维识别模块53。The embodiment of the present application provides a fiber detecting device. As shown in FIG. 5, the device includes an image acquiring module 51, a feature extracting module 52, and a fiber identifying module 53.
其中,图像获取模块51,配置成获取待检测纤维图像;特征提取模块52,配置成根据预设深度学习模型提取待检测纤维图像的纤维特征,预设深度学习模型包括多种基于卷积神经网络的深度学习模型;纤维识别模块53,配置成利用基于预设深度学习模型训练的分类器对纤维特征进行识别,生成待检测纤维图像的识别结果。The image obtaining module 51 is configured to acquire a fiber image to be detected. The feature extraction module 52 is configured to extract fiber characteristics of the fiber image to be detected according to the preset depth learning model, and the preset depth learning model includes multiple convolutional neural networks. The deep learning model; the fiber identification module 53 is configured to identify the fiber features by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
本申请实施例所提供的纤维检测装置中,各个模块的工作过程与前述纤维检测方法具有相同的技术特征,因此,同样可以实现上述功能,在此不再赘述。In the fiber detecting device provided by the embodiment of the present application, the working process of each module has the same technical features as the fiber detecting method described above, and therefore, the above functions can also be implemented, and details are not described herein again.
实施例三:Embodiment 3:
本申请实施例还提供一种电子设备,参见图6所示,该电子设备包括:处理器60,存储器61,总线62和通信接口63,所述处理器60、通信接口63和存储器61通过总线62连接;处理器60配置成执行存储器61中存储的可执行模块,例如计算机程序。处理器执行计算机程序时实现如方法实施例所述的方法的步骤。The embodiment of the present application further provides an electronic device. As shown in FIG. 6, the electronic device includes: a processor 60, a memory 61, a bus 62, and a communication interface 63. The processor 60, the communication interface 63, and the memory 61 pass through the bus. 62 is connected; the processor 60 is configured to execute an executable module, such as a computer program, stored in the memory 61. The steps of the method as described in the method embodiments are implemented when the processor executes a computer program.
其中,存储器61可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口63(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。The memory 61 may include a high speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented by at least one communication interface 63 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
总线62可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线和控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The bus 62 can be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one double-headed arrow is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
其中,存储器61配置成存储程序,所述处理器60在接收到执行指令后,执行所述程序,前述本申请实施例任一实施例揭示的流过程定义的装置所执行的方法可以应用于处理器60中,或者由处理器60实现。The memory 61 is configured to store a program, and the processor 60 executes the program after receiving the execution instruction, and the method executed by the device defined by the flow process disclosed in any embodiment of the present application may be applied to the processing. In processor 60, or implemented by processor 60.
处理器60可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器60中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器60可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)和网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器61,处理器60读取存储器61中的信息,结合其硬件完成上述方法的步骤。 Processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 60 or an instruction in the form of software. The processor 60 may be a general-purpose processor, including a central processing unit (CPU) and a network processor (NP), and may also be a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and performs the steps of the above method in combination with its hardware.
本申请实施例所提供的网络设备的定位方法的计算机程序产品,包括存储了处理器可执行的非易失的程序代码的计算机可读存储介质,所述程序代码包括的指令可配置成执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product of the method for locating a network device provided by the embodiment of the present application includes a computer readable storage medium storing non-volatile program code executable by a processor, the program code including instructions configurable to execute the front For the specific implementation of the method, refer to the method embodiment, and details are not described herein again.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置及电子设备的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device and the electronic device described above can refer to the corresponding process in the foregoing method embodiments, and details are not described herein again.
附图中的流程图和框图显示了根据本申请的多个实施例方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个配置成实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present application. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that comprises one or more of the Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”和“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位或以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”和“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside" and "outside" etc. The orientation or positional relationship of the indications is based on the orientation or positional relationship shown in the drawings, for the convenience of the description and the simplified description, and does not indicate or imply that the device or component referred to has a specific orientation or a specific orientation. Construction and operation are therefore not to be construed as limiting the application. Moreover, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络 单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-transitory computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific embodiments of the present application, and are used to explain the technical solutions of the present application, and are not limited thereto. The scope of protection of the present application is not limited thereto, although reference is made to the foregoing. The present invention has been described in detail with reference to the embodiments of the present invention. It will be understood by those skilled in the art that the technical solutions described in the foregoing embodiments can still be modified within the technical scope of the present disclosure. The changes may be easily conceived, or equivalently substituted for some of the technical features; and the modifications, variations, or substitutions of the present invention are not intended to depart from the spirit and scope of the technical solutions of the embodiments of the present application. Within the scope of protection. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (10)

  1. 一种纤维检测方法,其特征在于,包括:A fiber detecting method, comprising:
    获取待检测纤维图像;Obtaining an image of the fiber to be tested;
    根据预设深度学习模型提取所述待检测纤维图像的纤维特征,所述预设深度学习模型包括多种基于卷积神经网络的深度学习模型;Extracting fiber features of the image to be detected according to a preset depth learning model, the preset depth learning model comprising a plurality of deep learning models based on a convolutional neural network;
    利用基于所述预设深度学习模型训练的分类器对所述纤维特征进行识别,生成所述待检测纤维图像的识别结果。The fiber feature is identified by a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
  2. 根据权利要求1所述的方法,其特征在于,所述获取待检测纤维图像,具体包括:The method according to claim 1, wherein the obtaining the image of the fiber to be detected comprises:
    获取电子显微镜对目标检测物进行拍照所采集的图像,得到所述待检测纤维图像;所述目标检测物包含纤维结构。An image obtained by photographing a target object by an electron microscope is obtained to obtain an image of the fiber to be detected; the target object includes a fiber structure.
  3. 根据权利要求1所述的方法,其特征在于,所述纤维特征包括:纤维类型、纤维直径和纤维数量。The method of claim 1 wherein said fiber characteristics comprise: fiber type, fiber diameter, and fiber count.
  4. 根据权利要求1所述的方法,其特征在于,所述基于卷积神经网络的深度学习模型是通过数量超过一定阈值的纤维样本数据训练得到的,所述纤维样本数据包括不同类型的纤维对应的图片。The method of claim 1 wherein said convolutional neural network based deep learning model is trained by fiber sample data having a number exceeding a certain threshold, said fiber sample data comprising different types of fibers corresponding to image.
  5. 根据权利要求1所述的方法,其特征在于,通过以下方式获得所述基于所述预设深度学习模型训练的分类器:The method according to claim 1, wherein the classifier based on the preset deep learning model training is obtained by:
    利用基于卷积神经网络的深度学习模型提取纤维样本数据的深层特征;Extracting deep features of fiber sample data using a deep learning model based on convolutional neural networks;
    基于机器学习算法,对所述深层特征训练分类器;Training a classifier for the deep feature based on a machine learning algorithm;
    其中所述纤维样本数据中包括纤维特征、匹配度和识别结果。The fiber sample data includes fiber characteristics, matching degree, and recognition result.
  6. 根据权利要求1所述的方法,其特征在于,所述利用基于所述预设深度学习模型训练的分类器对所述纤维特征进行识别,生成所述待检测纤维图像的识别结果,具体包括:The method according to claim 1, wherein the identifying the fiber feature by using a classifier trained based on the preset depth learning model, and generating the recognition result of the to-be-detected fiber image, specifically includes:
    确定所述基于所述预设深度学习模型训练的分类器所对应的数据格式;Determining, according to the data format corresponding to the classifier trained by the preset depth learning model;
    如果所述数据格式包括二进制数据格式,将所述纤维特征转换为二进制数据格式后输入所述基于所述预设深度学习模型训练的分类器,以生成对应所述待检测纤维图像的识别结果。If the data format includes a binary data format, the fiber feature is converted into a binary data format, and the classifier trained based on the preset depth learning model is input to generate a recognition result corresponding to the fiber image to be detected.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述利用基于所述预设深度学习模型训练的分类器对所述纤维特征进行识别,生成所述待检测纤维图像的识别结果之后,还包括:The method according to any one of claims 1 to 6, wherein the fiber feature is identified by using a classifier trained based on the preset depth learning model to generate the image of the fiber to be detected. After identifying the results, it also includes:
    将所述待检测纤维图像的识别结果作为新的纤维样本数据保存在纤维样本数据库中。The recognition result of the image of the fiber to be detected is stored as new fiber sample data in the fiber sample database.
  8. 一种纤维检测装置,其特征在于,所述装置包括:A fiber detecting device, characterized in that the device comprises:
    图像获取模块,配置成获取待检测纤维图像;An image acquisition module configured to acquire a fiber image to be detected;
    特征提取模块,配置成根据预设深度学习模型提取所述待检测纤维图像的纤维特征,所述预设深度学习模型包括多种基于卷积神经网络的深度学习模型;a feature extraction module, configured to extract a fiber feature of the to-be-detected fiber image according to a preset depth learning model, where the preset depth learning model includes a plurality of deep learning models based on a convolutional neural network;
    纤维识别模块,配置成利用基于所述预设深度学习模型训练的分类器对所述纤维特征进行识别,生成所述待检测纤维图像的识别结果。And a fiber identification module configured to identify the fiber feature by using a classifier trained based on the preset depth learning model to generate a recognition result of the fiber image to be detected.
  9. 一种电子设备,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现上述权利要求1至7任一项所述的方法的步骤。An electronic device comprising a memory and a processor having stored thereon a computer program executable on the processor, wherein the processor executes the computer program to implement the above claims 1 to 7 The steps of any of the methods described.
  10. 一种具有处理器可执行的非易失的程序代码的计算机可读介质,其特征在于,所述程序代码使所述处理器执行所述权利要求1至7任一项所述的方法。A computer readable medium having a processor-executable non-volatile program code, the program code causing the processor to perform the method of any one of claims 1 to 7.
PCT/CN2018/115493 2017-11-14 2018-11-14 Fiber detection method and apparatus, and electronic device WO2019096178A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711126617.8A CN107909107B (en) 2017-11-14 2017-11-14 Fiber detection method and device and electronic equipment
CN201711126617.8 2017-11-14

Publications (1)

Publication Number Publication Date
WO2019096178A1 true WO2019096178A1 (en) 2019-05-23

Family

ID=61845585

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115493 WO2019096178A1 (en) 2017-11-14 2018-11-14 Fiber detection method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN107909107B (en)
WO (1) WO2019096178A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111696064A (en) * 2020-06-15 2020-09-22 北京金山云网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable medium
CN112446392A (en) * 2019-08-28 2021-03-05 银河水滴科技(北京)有限公司 Training of sealing ring classification model and classification method and device of sealing ring
CN113210264A (en) * 2021-05-19 2021-08-06 江苏鑫源烟草薄片有限公司 Method and device for removing tobacco impurities
CN113936277A (en) * 2021-09-14 2022-01-14 北京焦耳科技有限公司 Double-mode identification method, system and medium for handwritten name and school number
CN116796159A (en) * 2023-08-17 2023-09-22 浙江恒逸石化有限公司 Dyeing effect prediction method, training method and device of dyeing effect prediction model
US12026963B1 (en) 2023-08-17 2024-07-02 Zhejiang Hengyi Petrochemical Co., Ltd. Dyeing effect prediction method, training method of dyeing effect prediction model, electronic device and storage medium

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909107B (en) * 2017-11-14 2020-09-15 深圳码隆科技有限公司 Fiber detection method and device and electronic equipment
CN108563906B (en) * 2018-05-02 2022-03-22 北京航空航天大学 Short fiber reinforced composite material macroscopic performance prediction method based on deep learning
US10896498B2 (en) * 2018-07-23 2021-01-19 The Boeing Company Characterization of melted veil strand ratios in plies of fiber material
CN110924052A (en) * 2018-09-20 2020-03-27 格力电器(武汉)有限公司 Washing machine control method and device
CN109492544B (en) * 2018-10-19 2023-01-03 兰波(苏州)智能科技有限公司 Method for classifying animal fibers through enhanced optical microscope
CN109543532B (en) * 2018-10-19 2023-07-28 兰波(苏州)智能科技有限公司 Fiber classification method based on classification standard and human behavior
CN109583564A (en) * 2018-10-31 2019-04-05 东华大学 Extremely similar animal origin automatic identifying method based on VGG convolutional neural networks
CN109460471B (en) * 2018-11-01 2021-09-24 信融源大数据科技(北京)有限公司 Method for establishing fiber category map library based on self-learning mode
CN109544549A (en) * 2018-12-04 2019-03-29 深圳码隆科技有限公司 Spinning machine fault monitoring method, device and server
CN111665243B (en) * 2019-03-05 2024-03-19 温力力 Textile fiber identification and component detection system
CN111665244B (en) * 2019-03-05 2024-03-19 温力力 Method based on textile fiber identification and component detection system
WO2020236446A1 (en) * 2019-05-17 2020-11-26 Corning Incorporated Predicting optical fiber manufacturing performance using neural network
CN112529829B (en) * 2019-08-28 2024-04-19 银河水滴科技(北京)有限公司 Training method and device for burr positioning and burr detection model
CN111860510B (en) * 2020-07-29 2021-06-18 浙江大华技术股份有限公司 X-ray image target detection method and device
CN112241713B (en) * 2020-10-22 2023-12-29 江苏美克医学技术有限公司 Method and device for identifying vaginal microorganisms based on pattern recognition and deep learning
CN112489019A (en) * 2020-12-01 2021-03-12 合肥工业大学 Method for rapidly identifying chopped fibers in GFRC image based on deep learning
CN112669271A (en) * 2020-12-22 2021-04-16 深圳酷派技术有限公司 Object surface defect detection method, related device and computer storage medium
CN113255790B (en) * 2021-05-31 2021-10-22 创新奇智(北京)科技有限公司 Textile fiber component identification method, electronic device and storage medium
CN113640326B (en) * 2021-08-18 2023-10-10 华东理工大学 Multistage mapping reconstruction method for micro-nano structure of nano-porous resin matrix composite material

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9436895B1 (en) * 2015-04-03 2016-09-06 Mitsubishi Electric Research Laboratories, Inc. Method for determining similarity of objects represented in images
CN106295629A (en) * 2016-07-15 2017-01-04 北京市商汤科技开发有限公司 Structured text detection method and system
CN106778685A (en) * 2017-01-12 2017-05-31 司马大大(北京)智能系统有限公司 Electrocardiogram image-recognizing method, device and service terminal
CN106960219A (en) * 2017-03-10 2017-07-18 百度在线网络技术(北京)有限公司 Image identification method and device, computer equipment and computer-readable medium
CN107909107A (en) * 2017-11-14 2018-04-13 深圳码隆科技有限公司 Fiber check and measure method, apparatus and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05116967A (en) * 1991-10-23 1993-05-14 Furukawa Electric Co Ltd:The Production of optical fiber base material
CN101096819B (en) * 2006-06-27 2014-07-09 中国纺织科学研究院 Organization discrimination method of fabrics
CN101178396B (en) * 2007-11-29 2011-08-31 东华大学 Cashmere fibre, fleece fibre blended spinning quantitative determination instrument and method
CN101424680B (en) * 2008-12-11 2012-01-04 东华大学 Computer automatic recognition apparatus and method for profile fiber
CN102951603A (en) * 2011-08-19 2013-03-06 新加坡科技研究局 Methods to form substrates for optical sensing by surface enhanced raman spectroscopy (sers) and substrates formed by methods
CN103149210B (en) * 2013-02-25 2015-09-30 东华大学 A kind of fabric cashmere content detection system and method based on scale picture and text feature
CN105654123B (en) * 2015-12-26 2019-02-22 河北工业大学 A kind of recognition methods of woven fabric structure figure
CN105760877B (en) * 2016-02-19 2019-03-05 天纺标检测认证股份有限公司 A kind of woollen and cashmere recognizer based on gray level co-occurrence matrixes model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9436895B1 (en) * 2015-04-03 2016-09-06 Mitsubishi Electric Research Laboratories, Inc. Method for determining similarity of objects represented in images
CN106295629A (en) * 2016-07-15 2017-01-04 北京市商汤科技开发有限公司 Structured text detection method and system
CN106778685A (en) * 2017-01-12 2017-05-31 司马大大(北京)智能系统有限公司 Electrocardiogram image-recognizing method, device and service terminal
CN106960219A (en) * 2017-03-10 2017-07-18 百度在线网络技术(北京)有限公司 Image identification method and device, computer equipment and computer-readable medium
CN107909107A (en) * 2017-11-14 2018-04-13 深圳码隆科技有限公司 Fiber check and measure method, apparatus and electronic equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112446392A (en) * 2019-08-28 2021-03-05 银河水滴科技(北京)有限公司 Training of sealing ring classification model and classification method and device of sealing ring
CN111696064A (en) * 2020-06-15 2020-09-22 北京金山云网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable medium
CN111696064B (en) * 2020-06-15 2023-08-18 北京金山云网络技术有限公司 Image processing method, device, electronic equipment and computer readable medium
CN113210264A (en) * 2021-05-19 2021-08-06 江苏鑫源烟草薄片有限公司 Method and device for removing tobacco impurities
CN113210264B (en) * 2021-05-19 2023-09-05 江苏鑫源烟草薄片有限公司 Tobacco sundry removing method and device
CN113936277A (en) * 2021-09-14 2022-01-14 北京焦耳科技有限公司 Double-mode identification method, system and medium for handwritten name and school number
CN116796159A (en) * 2023-08-17 2023-09-22 浙江恒逸石化有限公司 Dyeing effect prediction method, training method and device of dyeing effect prediction model
CN116796159B (en) * 2023-08-17 2023-11-17 浙江恒逸石化有限公司 Dyeing effect prediction method, training method and device of dyeing effect prediction model
US12026963B1 (en) 2023-08-17 2024-07-02 Zhejiang Hengyi Petrochemical Co., Ltd. Dyeing effect prediction method, training method of dyeing effect prediction model, electronic device and storage medium

Also Published As

Publication number Publication date
CN107909107A (en) 2018-04-13
CN107909107B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
WO2019096178A1 (en) Fiber detection method and apparatus, and electronic device
WO2019096179A1 (en) Clothes logo effect detection method and apparatus, and electronic device
US11741593B2 (en) Product defect detection method, device and system
JP2018522343A (en) Method, computer device and storage device for building a decision model
CN110309060B (en) Detection method and device for updating identification algorithm, storage medium and computer equipment
WO2020029608A1 (en) Method and apparatus for detecting burr of electrode sheet
CN107845113A (en) Object element localization method, device and ui testing method, apparatus
JP2019050376A5 (en)
CN110232379A (en) A kind of vehicle attitude detection method and system
CN111045924B (en) Processing method, device and equipment for user interface visual acceptance
US20230214989A1 (en) Defect detection method, electronic device and readable storage medium
CN108805180B (en) Target object detection method and device
CN110968712B (en) BIM family model acquisition method, device and system
CN112784835B (en) Method and device for identifying authenticity of circular seal, electronic equipment and storage medium
CN109241485A (en) Relation establishing method and device are jumped between a kind of page
CN105589801A (en) Mobile phone cluster test method and system
CN114813757A (en) Full-angle appearance detection method and device for plastic product
CN111402220A (en) Method and device for acquiring information
JP2019527848A (en) Security inspection simulation training apparatus, method and system
CN105302715B (en) The acquisition methods and device of application program user interface
JP6733984B2 (en) Image analysis device
CN109102486B (en) Surface defect detection method and device based on machine learning
CN204795439U (en) A predistortion test card molding system for image acquisition system that distorts greatly
CN103336739A (en) Software testing method and platform
KR102031001B1 (en) Apparatus for Providing Service of Checking Workpiece and Driving Method Thereof

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

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

Country of ref document: EP

Kind code of ref document: A1