Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for automatically identifying a diagonal line network, which are used for solving various problems of line network damage, unclear photographing, large error, low efficiency, labor consumption, high product reject ratio and the like existing in the conventional manual verification.
In a first aspect, the present invention provides a method for automatically identifying a diagonal net, the method comprising:
collecting image information of a to-be-tested inclined wire network;
image processing is carried out on the acquired image information, and the number of grooves of each main roller of the inclined wire net is identified;
carrying out difference value calculation on the obtained groove number data of each main roller to obtain the actual groove number of the inclined wire network to be detected;
comparing the actual number of grooves of the to-be-detected inclined wire net with a preset process standard value;
and judging whether the cutting process requirements are met or not according to the comparison result, and outputting the result to the human-computer interaction interface.
According to the method for automatically identifying the diagonal network, before the image information of the diagonal network is acquired, the following steps are further executed: and placing the industrial camera above the inclined wire net to be detected, and automatically adjusting the focal length according to the distance by the industrial camera to acquire.
According to the method for automatically identifying the diagonal network, before the image information of the diagonal network is acquired, the following steps are further executed: acquiring shooting length and shooting width of a to-be-detected inclined wire net, and acquiring visual field length and visual field width of an industrial camera in the to-be-detected inclined wire net; when shooting, the industrial camera is separated from the plane of the inclined wire network to be detected by a preset distance, the plane of the lens is parallel to the plane of the wire network, and the industrial camera is controlled to shoot images of a plurality of inclined wire networks to be detected according to the acquired shooting length, shooting width, vision length and vision width, so that complete image information of the inclined wire network to be detected is obtained;
wherein, the visual field length includes: starting from a first groove at the head of a main roller of the inclined wire net to be tested to a groove where a first wire of the inclined wire net to be tested is positioned; the field of view width includes: the tangential point position of the inclined wire net to be measured and the main roller is positioned at the position of the width range of the visual field.
According to the method for automatically identifying the diagonal network provided by the invention, the acquired image information is subjected to image processing, and the method comprises the following steps: performing texture extraction on the acquired image information by using an edge detection operator, preprocessing the extracted image, namely removing a noise image, converting the noise image into a gray image, and performing binarization extraction on the gray image to respectively obtain black and white stripe patterns of each main roller;
the edge detection operator adopts one of a Sobel operator and a Canny operator, or uses a convolution kernel which is the same as the local structure of the image repetition to carry out convolution operation with the image.
According to the method for automatically identifying the inclined wire net, provided by the invention, the number of grooves of each main roller of the inclined wire net is identified, and the method comprises the following steps: longitudinally dividing the obtained black-and-white stripe graph into a plurality of columns, respectively detecting the gray average value of each of the plurality of columns, and determining that the column with the gray average value larger than the gray average value of all the adjacent columns is the white stripe column of the black-and-white stripe graph; the column whose gradation average value is smaller than the gradation average value of all the columns adjacent thereto is the black stripe column of the black-and-white stripe pattern, thereby calculating the number of stripes of each black-and-white stripe pattern to determine the number of grooves of each main roller.
According to the method for automatically identifying the wire net of the invention, the number of grooves of each main roller of the wire net to be detected is identified, and the method comprises the following steps: and carrying out groove number identification on grooves of the left roller, the right roller and the lower roller of the wire mesh to be detected according to the image acquisition sequence, sequentially recording the groove number parameters, and calculating the actual numerical value of the wire mesh to be detected through the groove number difference value.
According to the method for automatically identifying the inclined wire net provided by the invention, the obtained groove number data of each main roller is subjected to difference value calculation, and the method comprises the following steps:
left roll groove number-right roll groove number = oblique line net groove number;
and then, comparing the obtained diagonal line net groove number with a preset process standard value, and judging whether the groove number of the lower roller is at the middle value of the groove numbers of the left roller and the right roller.
According to the method for automatically identifying the diagonal network, which is provided by the invention, when the image processing is carried out, the method further comprises the following steps: the method comprises the steps of forming an original image set x by using collected original images of all to-be-detected inclined wire nets, and marking the original images as x= { x1, x2, x3, …, xn };
post-processing the image information, collecting processed images, and forming a post-processed image set X by all the processed images, wherein the post-processed image set X is marked as X= { X1, X2, X3, …, xn }, and Xt is an image of Xt after post-processing;
establishing a context aggregation network model based on full convolution, wherein in the context aggregation network model, an image sequence formed by an original image which is not subjected to post-processing and a corresponding image which is subjected to post-processing is used as input, and parameters in the context aggregation network model are updated by adopting a supervision training mode to obtain a trained network model;
and inputting the image to be processed into the trained network model to obtain the image with enhanced visual effect.
In a second aspect, the present invention also provides an apparatus for automatically identifying a diagonal mesh, comprising:
the image acquisition unit is used for acquiring image information of the inclined wire network to be detected;
the image processing unit is used for carrying out image processing on the acquired image information and carrying out slot number identification on each main roller of the diagonal net;
the calculating unit is used for carrying out difference value calculation on the obtained groove number data of each main roller to obtain the actual groove number of the inclined wire network to be detected;
the judging unit is used for comparing the actual number of grooves of the to-be-detected inclined wire net with a preset process standard value;
and the result output unit is used for judging whether the cutting process requirements are met according to the comparison result and outputting the result to the human-computer interaction interface.
Therefore, the ditch number of the inclined wire net can be automatically identified by photographing through an industrial camera; the automatic focal length adjustment of the industrial camera solves the problems that when the line net is tilted, the line net is easily damaged or the photographing is unclear due to the limited operation space and the careless operation; after photographing is finished, the number of grooves of the inclined line net is automatically identified through a software algorithm, so that the problem that personnel are easy to miss numbers and leak numbers in the process of counting the line grooves can be solved; the invention is applied to the problem caused by the diagonal network in the silicon wafer cutting process, can reduce the abnormity such as line mark, thickness, warping and the like caused by the diagonal network in the silicon wafer cutting process, and effectively improves the silicon wafer production yield.
In a third aspect, the present invention also provides an electronic device, including:
a memory storing computer executable instructions;
a processor configured to execute the computer-executable instructions,
wherein the computer executable instructions, when executed by the processor, perform the steps of any of the methods for automatically identifying a diagonal network described above.
In a fourth aspect, the present invention also provides a computer readable storage medium storing computer executable instructions which when executed by a processor implement the steps of any of the above methods for automatically identifying a diagonal network.
It can be seen that the present invention provides an electronic device and a storage medium for automatically identifying a diagonal network, comprising: one or more memories, one or more processors. The memory is used for storing the program codes, intermediate data generated in the running process of the program, the output result of the model and model parameters; the processor is used for processor resources occupied by code running and a plurality of processor resources occupied when training the model.
The invention is described in further detail below with reference to the drawings and the detailed description.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 2-5, a method for automatically identifying a diagonal web, comprising the steps of:
step S1, collecting image information of a to-be-tested inclined wire network.
And S2, performing image processing on the acquired image information, and recognizing the number of grooves of each main roller of the diagonal web.
And S3, carrying out difference value calculation on the obtained groove number data of each main roller to obtain the actual groove number of the diagonal network to be tested.
And S4, comparing the actual groove number of the to-be-detected inclined wire net with a preset process standard value.
And S5, judging whether the cutting process requirements are met or not according to the comparison result, and outputting the result to the man-machine interaction interface.
In the above step S1, before the acquisition of the image information of the diagonal screen, further execution is performed of: and placing the industrial camera above the inclined wire net to be detected, and automatically adjusting the focal length according to the distance by the industrial camera to acquire.
In the above step S1, before the acquisition of the image information of the diagonal screen, further execution is performed of: acquiring shooting length and shooting width of a to-be-detected inclined wire net, and acquiring visual field length and visual field width of an industrial camera in the to-be-detected inclined wire net; when shooting is carried out, an industrial camera is spaced by a preset distance from the plane of the inclined wire net to be detected, and the plane of the lens is parallel to the plane of the wire net; the whole visual field range is 400 mm-200 mm, and according to the acquired shooting length, shooting width, visual field length and visual field width, the industrial camera is controlled to shoot images of a plurality of inclined wire nets to be detected, complete image information of the inclined wire nets to be detected is obtained, for example, the industrial camera is controlled to shoot images of a left roller, a right roller and a lower roller of the inclined wire nets to be detected in sequence.
The shooting length is the length of a rectangle which can surround the diagonal network to be detected, and the shooting length is the width of the rectangle which can surround the diagonal network to be detected.
Wherein, the visual field length includes: starting from a first groove at the head of a main roller of the inclined wire net to be tested to a groove where a first wire of the inclined wire net to be tested is positioned; the field of view width includes: the tangential point position of the inclined wire net to be measured and the main roller is positioned at the position of the width range of the visual field.
The industrial camera can automatically adjust the focal length according to the definition by manually adjusting the height of the lens within the range of 10cm-12cm through the self-contained function of the industrial camera (similar to the automatic focusing of a mobile phone camera), and the industrial camera can ensure that the picture reaches the identifiable standard (the resolution is 3904 x 2928 or more, ISO: 650-780).
Therefore, in the process of automatically identifying the diagonal network, staff places the industrial camera above the diagonal network to be checked, and the industrial camera automatically adjusts the focal length according to the distance to take a picture, so that the actual situation of the diagonal network can be clearly taken without being limited by space; after the oblique line net photographing is completed, the photographs are transmitted to system software to automatically identify the empty groove and the wire slot on the main roller.
In the step S2, image processing is performed on the acquired image information, including: and performing texture extraction on the acquired image information by using an edge detection operator, preprocessing the extracted image, namely removing a noise image, converting the noise image into a gray image, and performing binarization extraction on the gray image to respectively obtain black and white stripe patterns of each main roller.
The edge detection operator adopts one of a Sobel operator and a Canny operator, or uses a convolution kernel which is the same as the local structure of the image repetition to carry out convolution operation with the image.
Then, performing image morphology operation on the black-and-white stripe graph to obtain an operated black-and-white stripe graph, and then performing contour detection in the image to read all contours in the image; screening the outline according to the information such as the area, the shape and the like; if the contour is rectangular, the minimum bounding rectangle of the contour is taken as the final contour, otherwise, the screened contour is taken as the final contour.
In the step S2, the identifying of the number of grooves is performed on each main roll of the diagonal web, including: longitudinally dividing the obtained black-and-white stripe graph into a plurality of columns, respectively detecting the gray average value of each of the plurality of columns, and determining that the column with the gray average value larger than the gray average value of all the adjacent columns is the white stripe column of the black-and-white stripe graph; the column whose gradation average value is smaller than the gradation average value of all the columns adjacent thereto is the black stripe column of the black-and-white stripe pattern, thereby calculating the number of stripes of each black-and-white stripe pattern to determine the number of grooves of each main roller.
In this embodiment, the calculation of the gray average value specifically includes: first, a column gray value of each of a plurality of columns is detected, and a noise reduction gray value of each column is calculated according to the column gray value, wherein the noise reduction gray value is an average value of column gray values of adjacent columns before and after the column. The purpose of calculating the noise reduction gray value of each row according to the gray value of the row is to eliminate the problem that brightness of some parts is generally higher and brightness of other parts is generally lower caused by uneven brightness of an image of a diagonal line to be measured.
And calculating the average gray value of each column according to the noise reduction gray value, wherein the average gray value is the average value of the noise reduction gray values of each adjacent column before and after the column.
Then, determining a column with a gray average value larger than the gray average value of all columns adjacent to the column as a white stripe column of the black-and-white stripe map; the black stripe column of the black-and-white stripe pattern behaves with a gray average value smaller than the gray average value of all columns adjacent thereto.
Therefore, the influence of uneven brightness on black and white fringe pattern detection can be effectively eliminated by calculating the noise reduction gray value of each column; the middle rows of the black stripes and the white stripes can be effectively extracted by calculating the average gray value of each column, so that the distribution of the black-white stripe patterns is further determined, the calculated amount is simplified, and the black-white stripe recognition accuracy is high. The black-and-white stripe graph comprises a rectangular area where the to-be-detected diagonal line network is located, the gray value of the column is the sum or average value of the gray values of all the pixels in the column in the black-and-white stripe graph, and the sum or average value represents the whole gray condition of all the pixels in the column.
In the step S2, the identifying of the number of grooves of each main roll of the wire web to be tested includes: and carrying out groove number identification on grooves of the left roller, the right roller and the lower roller of the wire mesh to be detected according to the image acquisition sequence, sequentially recording the groove number parameters, and calculating the actual numerical value of the wire mesh to be detected through the groove number difference value.
In the step S3, the difference calculation is performed on the obtained groove number data of each main roller, including:
left roll groove number-right roll groove number = oblique line net groove number;
and then, comparing the obtained diagonal line net groove number with a preset process standard value, and judging whether the groove number of the lower roller is at the middle value of the groove numbers of the left roller and the right roller. If the left roll groove number is 20 grooves, the lower roll groove number is 18 grooves, and the right roll groove number is 15 grooves, the actual bevel line net groove number is 5 grooves. The preset process value is determined according to an actual process standard, if the preset process standard value is 5, the cutting process requirement is met when the number of left roller grooves is detected to be 20 grooves, the number of right roller grooves is detected to be 15 grooves, and the number of lower roller grooves is detected to be 18 grooves in real time.
Therefore, in the embodiment, after the recognition of the bevel line network grooves of the left roller, the right roller and the lower roller is completed, the system automatically compares the empty groove numbers among the three main rollers, automatically judges the bevel line network data and gives a conclusion. The invention solves the problems that the photographing is difficult due to space limitation in the photographing process of the oblique line net by using a camera manually, and the error number and the missing number are easy to occur in the manual counting of the grooves of the oblique line net; meanwhile, the invention realizes automatic identification and judgment of the number of the bevel wires, effectively improves the production efficiency and the product yield.
In the step S2, when performing image processing, the method further includes: the method comprises the steps of forming an original image set x by using collected original images of all to-be-detected inclined wire nets, and marking the original images as x= { x1, x2, x3, …, xn };
post-processing the image information, collecting processed images, and forming a post-processed image set X by all the processed images, wherein the post-processed image set X is marked as X= { X1, X2, X3, …, xn }, and Xt is an image of Xt after post-processing;
establishing a context aggregation network model based on full convolution, wherein in the context aggregation network model, an image sequence formed by an original image which is not subjected to post-processing and a corresponding image which is subjected to post-processing is used as input, and parameters in the context aggregation network model are updated by adopting a supervision training mode to obtain a trained network model;
and inputting the image to be processed into the trained network model to obtain the image with enhanced visual effect.
The post-processing in this embodiment refers to performing color, saturation, and contrast brightness adjustment operations on the image.
Device embodiment for automatically identifying diagonal network
In this embodiment, the present invention further provides an apparatus for automatically identifying a diagonal network, including:
the image acquisition unit 10 is used for acquiring image information of the to-be-detected inclined line network;
an image processing unit 20, configured to perform image processing on the acquired image information, and perform slot number recognition on each main roller of the diagonal web;
a calculating unit 30, configured to perform a difference calculation on the obtained slot number data of each main roller, so as to obtain an actual slot number of the diagonal network to be tested;
a judging unit 40, configured to compare the actual number of slots of the diagonal net to be tested with a preset process standard value;
and the result output unit 50 is used for judging whether the cutting process requirements are met according to the comparison result and outputting the result to the man-machine interaction interface.
Before the acquisition of the image information of the diagonal mesh, further execution: and placing the industrial camera above the inclined wire net to be detected, and automatically adjusting the focal length according to the distance by the industrial camera to acquire.
Before the acquisition of the image information of the diagonal mesh, further execution: acquiring shooting length and shooting width of a to-be-detected inclined wire net, and acquiring visual field length and visual field width of an industrial camera in the to-be-detected inclined wire net; when shooting is carried out, an industrial camera is spaced by a preset distance from the plane of the inclined wire net to be detected, and the plane of the lens is parallel to the plane of the wire net; the whole visual field range is 400 mm-200 mm, and according to the acquired shooting length, shooting width, visual field length and visual field width, the industrial camera is controlled to shoot images of a plurality of inclined wire nets to be detected, complete image information of the inclined wire nets to be detected is obtained, for example, the industrial camera is controlled to shoot images of a left roller, a right roller and a lower roller of the inclined wire nets to be detected in sequence.
In the image processing unit 20, image processing is performed on the acquired image information, including: and performing texture extraction on the acquired image information by using an edge detection operator, preprocessing the extracted image, namely removing a noise image, converting the noise image into a gray image, and performing binarization extraction on the gray image to respectively obtain black and white stripe patterns of each main roller.
In the image processing unit 20, the recognition of the number of grooves is performed for each main roller of the diagonal web, including: longitudinally dividing the obtained black-and-white stripe graph into a plurality of columns, respectively detecting the gray average value of each of the plurality of columns, and determining that the column with the gray average value larger than the gray average value of all the adjacent columns is the white stripe column of the black-and-white stripe graph; the column whose gradation average value is smaller than the gradation average value of all the columns adjacent thereto is the black stripe column of the black-and-white stripe pattern, thereby calculating the number of stripes of each black-and-white stripe pattern to determine the number of grooves of each main roller.
In the image processing unit 20, the identifying of the number of grooves of each main roll of the wire web to be tested includes: and carrying out groove number identification on grooves of the left roller, the right roller and the lower roller of the wire mesh to be detected according to the image acquisition sequence, sequentially recording the groove number parameters, and calculating the actual numerical value of the wire mesh to be detected through the groove number difference value.
In the calculating unit 30, the difference value calculation is performed on the acquired groove number data of each main roller, including:
left roll groove number-right roll groove number = oblique line net groove number;
and then, comparing the obtained diagonal line net groove number with a preset process standard value, and judging whether the groove number of the lower roller is at the middle value of the groove numbers of the left roller and the right roller. If the left roll groove number is 20 grooves, the lower roll groove number is 18 grooves, and the right roll groove number is 15 grooves, the actual bevel line net groove number is 5 grooves. The preset process value is determined according to an actual process standard, if the preset process standard value is 5, the cutting process requirement is met when the number of left roller grooves is detected to be 20 grooves, the number of right roller grooves is detected to be 15 grooves, and the number of lower roller grooves is detected to be 18 grooves in real time.
In performing image processing, the method further comprises: the method comprises the steps of forming an original image set x by using collected original images of all to-be-detected inclined wire nets, and marking the original images as x= { x1, x2, x3, …, xn };
post-processing the image information, collecting processed images, and forming a post-processed image set X by all the processed images, wherein the post-processed image set X is marked as X= { X1, X2, X3, …, xn }, and Xt is an image of Xt after post-processing;
establishing a context aggregation network model based on full convolution, wherein in the context aggregation network model, an image sequence formed by an original image which is not subjected to post-processing and a corresponding image which is subjected to post-processing is used as input, and parameters in the context aggregation network model are updated by adopting a supervision training mode to obtain a trained network model;
and inputting the image to be processed into the trained network model to obtain the image with enhanced visual effect.
Therefore, the ditch number of the inclined wire net can be automatically identified by photographing through an industrial camera; the automatic focal length adjustment of the industrial camera solves the problems that when the line net is tilted, the line net is easily damaged or the photographing is unclear due to the limited operation space and the careless operation; after photographing is finished, the number of grooves of the inclined line net is automatically identified through a software algorithm, so that the problem that personnel are easy to miss numbers and leak numbers in the process of counting the line grooves can be solved; the invention is applied to the problem caused by the diagonal network in the silicon wafer cutting process, can reduce the abnormity such as line mark, thickness, warping and the like caused by the diagonal network in the silicon wafer cutting process, and effectively improves the silicon wafer production yield.
In one embodiment, an electronic device is provided, which may be a server. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the electronic device is for storing data. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of automatically identifying a diagonal network.
It will be appreciated by those skilled in the art that the electronic device structure shown in this embodiment is merely a partial structure related to the present application and does not constitute a limitation of the electronic device to which the present application is applied, and that a specific electronic device may include more or fewer components than those shown in this embodiment, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It can be seen that the present invention provides an electronic device and a storage medium for automatically identifying a diagonal network, comprising: one or more memories, one or more processors. The memory is used for storing the program codes, intermediate data generated in the running process of the program, the output result of the model and model parameters; the processor is used for processor resources occupied by code running and a plurality of processor resources occupied when training the model.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.