Control method, control device and processor of sheet object detection device
By setting a reference mark in the film detection device and using air scan image data to correct the original image data, the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit is solved and the accuracy of detection is improved.
Patent Information
- Application Number
- CN202011536227.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2040-12-22
AI Technical Summary
In the existing thin film detection device, the gap between the detection unit and the common unit is uneven, resulting in inaccurate detection results.
By set the benchmark identification in the tested object detection device, and use air -sweeping image data to correct the original image data, the periodic noise caused by unevenness caused by uneven gaps.
It improves the accuracy of detection and solves the problem of inaccurate detection results caused by uneven gaps between detection units and common units.
Smart Images

Figure CN112683905B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sheet object detection, and in particular to a control method, a control device, a computer-readable storage medium and a processor of a sheet object detection device. Background Art
[0002] The online continuous electrical property measurement, thickness measurement, boundary detection, damage detection and foreign body detection of thin sheet items such as bills, paper, plastic film, textile products, insulating membranes, etc., are playing an increasingly important role in the production, detection, identification, processing and recycling of the corresponding products. In recent years, the detection technology of film thickness through electrostatic induction between electrodes has been continuously studied and explored. For this type of continuous detection of electrostatic induction, rotatable round rollers are often used as product carriers or power transmission auxiliary rollers. At the same time, the use of round rollers as public units for electrostatic excitation for electrostatic detection is also under continuous research.
[0003] like Figure 1 As shown, a sheet object detection device component is currently disclosed. This detection device component is usually divided into two parts: a detection unit 10 and a common unit 20. The detection unit 10 and the common unit 20 are arranged opposite to each other in the first direction and are spaced at a certain distance to form a channel for the object to be detected with a uniform gap. The detection unit is composed of a frame 11, a detection substrate 12 and a cover plate 15. A detection chip 13 is arranged on the detection substrate in the second direction, and a detection control unit 14 is arranged below the detection substrate. The common unit 20 is composed of a conductive cylinder, which is at least composed of a metal cylinder, and may also include a cylinder with a surface covered with other materials such as rubber. A pulse signal is applied to the conductive cylinder of the common unit 20, and the conductive cylinder applies an electric field to the detection chip. When the thickness, material, etc. of the medium in the gap between the common unit and the detection chip change, the voltage induced by the detection chip 13 will change, thereby detecting the thickness, damage, boundary and foreign matter of the sheet object.
[0004] The above-mentioned existing detection device has the following problems: due to the limitation of process accuracy or the limitation of installation structure size accuracy, the common unit cylinder itself has certain tiny tolerances in dimensions such as linearity, and the gap between the common unit and the first cover plate of the detection unit after installation will also be uneven. In this way, when the common unit rotates when the product is working, the gap between the common unit and the detection unit will change periodically, which will have a periodic impact on the detection results and seriously affect the detection results.
[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention
[0006] The main purpose of the present application is to provide a control method, a control device, a computer-readable storage medium and a processor for a sheet object detection device, so as to solve the problem of inaccurate detection results caused by uneven gaps between detection units and common units in thin film detection devices in the prior art.
[0007] According to one aspect of an embodiment of the present invention, a control method for a sheet object detection device is provided, the sheet object detection device comprising a detection unit, a common unit and a reference mark, the detection unit comprising a plurality of detection chips, the detection chips being arranged in sequence at least along a second direction, the common unit and the detection unit being opposite to and spaced apart in a first direction, the second directions being respectively perpendicular to the first directions, the reference mark being arranged on the common unit, the reference mark being used to distinguish a rotation period of the common unit, the control method comprising: controlling the sheet object detection device to perform an empty scan to obtain empty scan image data; placing an object to be detected in the interval between the common unit and the detection unit, controlling the object to be detected to move, and the moving direction of the object to be detected being perpendicular to the second direction, to obtain original image data of the object to be detected; and correcting the original image data using the empty scan image data according to the rotation period to obtain corrected image data of the object to be detected.
[0008] Optionally, the sheet object detection device further includes a reference mark, which is arranged on a first surface of the common unit, the first surface is a surface of the common unit close to the detection unit, the area corresponding to the reference mark of the first surface is the first area, and the other areas of the first surface are the second area, the minimum distance between each position of the first area and the detection unit is the first distance, the minimum distance between each position of the second area and the detection unit is the second distance, and the first distance is not equal to the second distance. The sheet object detection device is controlled to perform an empty scan to obtain empty scan image data, including: controlling the sheet object detection device to perform an empty scan for a predetermined time to obtain preliminary empty scan image data, wherein the predetermined time is greater than or equal to twice the rotation period; identifying feature points in the preliminary empty scan image data to obtain at least two first feature points, wherein the first feature points are image data of the reference mark collected during the empty scan process; determining the empty scan image data according to the first feature points, wherein the empty scan image data is image data collected within a first predetermined time period of the predetermined time, wherein the first predetermined time period is a time period between the start acquisition moment or the end acquisition moment corresponding to any two first feature points adjacent in acquisition order.
[0009] Optionally, the original image data is corrected using the air-scanned image data according to the rotation cycle to obtain corrected image data of the object to be measured, including: identifying feature points in the original image data to obtain second feature points, where the second feature points are image data of the reference mark collected during the movement of the object to be measured; the first original image data, the second original image data and the third original image data are respectively corrected using the air-scanned image data to obtain first corrected image data, second corrected image data and third corrected image data, where the corrected image data is composed of the first corrected image data, the second corrected image data and the third corrected image data, where the first original image data is the original image data collected before collecting the first second feature point, the second original image data is the original image data collected within a second predetermined time period, the second predetermined time period is the time period between the start collection time or the end collection time corresponding to any two second feature points adjacent in collection order, and the third original image data is the original image data collected after collecting the last second feature point.
[0010] Optionally, the air-scanned image data is used to correct the first original image data, the second original image data and the third original image data respectively to obtain the first corrected image data, the second corrected image data and the third corrected image data, including: splitting the air-scanned image data into a plurality of first lines of data and numbering them in sequence to obtain corresponding line numbers, splitting the original image data into a plurality of second lines of data and numbering them in sequence to obtain corresponding line numbers; determining the line number corresponding to each second feature point; using a first predetermined number of the first lines of data with line numbers from large to small to correct the first original image data to obtain the first corrected image data, the first predetermined number being the difference between the line number of the first second feature point and the minimum line number of the second line data, and the second line data in the first original image data being the same as the first line number. The second original image data is corrected by a second predetermined number of the first line data to obtain the second corrected image data, the second predetermined number is the number of the first line data, and the second line data in the second original image data corresponds one-to-one to the first line data; the third original image data is corrected by a third predetermined number of the first line data with line numbers from small to large to obtain the third corrected image data, the third predetermined number is the difference between the maximum line number of the second line data and the line number of the last second feature point, and the second line data in the third original image data corresponds one-to-one to the first line data; the corrected image data is determined according to the corrected image data being the first corrected image data, the second corrected image data and the third corrected image data.
[0011] Optionally, the first original image data is corrected using a first predetermined number of the first row data with row numbers ranging from large to small to obtain the first corrected image data, including: calculating a first average grayscale value, the first average grayscale value being the average grayscale value of each of the first row data; and obtaining the first corrected image data based on the second row data of the first original image data and the corresponding first row data and the first average grayscale value.
[0012] Optionally, after correcting the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured, the control method further includes: normalizing the corrected image data to obtain secondary corrected image data of the object to be measured.
[0013] Optionally, the corrected image data is normalized to obtain secondary corrected image data of the object to be measured, including: calculating a second average grayscale value, the second average grayscale value is the average grayscale value of invalid data in the second row of data, the invalid data is image data collected in an invalid area, and the invalid area is other areas of the first surface except the reference mark and the allowed passage area of the object to be measured; calculating a normalization coefficient, the normalization coefficient is the ratio of the first average grayscale value to the second average grayscale value; and calculating the secondary corrected image data of the object to be measured based on the normalization coefficient and the second row of data.
[0014] According to another aspect of an embodiment of the present invention, a control device for a sheet object detection device is also provided. The sheet object detection device includes a detection unit, a common unit and a reference mark. The detection unit includes a plurality of detection chips, and the detection chips are arranged in sequence at least along a second direction. The common unit and the detection unit are opposite to each other and spaced apart in a first direction, and the second directions are respectively perpendicular to the first directions. The reference mark is arranged on the common unit, and the reference mark is used to distinguish the rotation period of the common unit. The control device includes: a first control unit, used to control the sheet object detection device to perform an empty scan to obtain empty scan image data; a second control unit, used to place an object to be detected in the interval between the common unit and the detection unit, control the movement of the object to be detected, and the movement direction of the object to be detected is perpendicular to the second direction to obtain the original image data of the object to be detected; and a correction unit, used to correct the original image data using the empty scan image data according to the rotation period to obtain the corrected image data of the object to be detected.
[0015] According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the methods described.
[0016] According to yet another aspect of an embodiment of the present invention, a processor is provided, wherein the processor is used to run a program, wherein any one of the methods is executed when the program is run.
[0017] In an embodiment of the present invention, in the control method of the sheet object detection device, first, the sheet object detection device is controlled to perform an empty scan to obtain empty scan image data, then, the object to be detected is placed in the gap between the common unit and the detection unit, the object to be detected is controlled to move, and the moving direction of the object to be detected is perpendicular to the second direction, to obtain the original image data of the object to be detected, and finally, the empty scan image data is used to correct the original image data according to the rotation period to obtain the corrected image data of the object to be detected. The above method divides the original image data according to the rotation period, and corrects the divided original image data one by one through the empty scan image data, thereby removing the periodic noise caused by uneven gaps, improving the accuracy of detection, and solving the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 A schematic structural diagram of a sheet object detection device in the prior art is shown;
[0020] Figure 2 A flow chart showing a control method of a sheet object detection device according to an embodiment of the present application;
[0021] Figure 3 A schematic diagram showing a sheet object detection device according to an embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram showing a sheet object detection device according to another embodiment of the present application;
[0023] Figure 5 A schematic diagram showing a sheet object detection device according to another embodiment of the present application;
[0024] Figure 6 A schematic diagram showing a sheet object detection device according to another embodiment of the present application;
[0025] Figure 7 A schematic diagram showing a sheet object detection device according to another embodiment of the present application;
[0026] Figure 8 A schematic diagram showing a sheet object detection device according to another embodiment of the present application;
[0027] Fig. 9 A schematic diagram of a control device of a sheet object detection device according to an embodiment of the present application is shown.
[0028] The above drawings include the following reference numerals:
[0029] 10. Detection unit; 11. Frame; 12. Detection substrate; 13. Detection chip; 14. Detection control unit; 15. Cover plate; 20. Common unit; 30. Reference mark. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element through a third element.
[0034] As mentioned in the background technology, the uneven gap between the detection unit and the common unit in the thin film detection device in the prior art leads to inaccurate detection results. In order to solve the above problem, in a typical embodiment of the present application, a control method, a control device, a computer-readable storage medium and a processor for a sheet object detection device are provided.
[0035] According to an embodiment of the present application, a control method for a sheet object detection device is provided, wherein the sheet object detection device includes a detection unit, a common unit and a reference mark, wherein the detection unit includes a plurality of detection chips, wherein the detection chips are arranged in sequence at least along a second direction, wherein the common unit is opposite to and spaced from the detection unit in a first direction, wherein the second direction is respectively perpendicular to the first direction, and wherein the reference mark is arranged on the common unit, and wherein the reference mark is used to distinguish a rotation period of the common unit.
[0036] Figure 2 FIG. 1 is a flow chart of a control method of a sheet object detection device according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0037] Step S101, controlling the sheet object detection device to perform an empty scan to obtain empty scan image data;
[0038] Step S102, placing the object to be tested in the gap between the common unit and the detection unit, controlling the object to be tested to move, and the moving direction of the object to be tested is perpendicular to the second direction, to obtain original image data of the object to be tested;
[0039] Step S103, correcting the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured.
[0040] In the control method of the sheet object detection device, first, the sheet object detection device is controlled to perform an empty scan to obtain empty scan image data, then, the object to be detected is placed in the gap between the common unit and the detection unit, the object to be detected is controlled to move, and the moving direction of the object to be detected is perpendicular to the second direction, to obtain the original image data of the object to be detected, and finally, the empty scan image data is used to correct the original image data according to the rotation period to obtain the corrected image data of the object to be detected. The method divides the original image data according to the rotation period, and corrects the divided original image data one by one through the empty scan image data, thereby removing the periodic noise caused by uneven gaps, improving the accuracy of detection, and solving the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art.
[0041] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0042] In one embodiment of the present application, the sheet object detection device further includes a reference mark, which is arranged on a first surface of the common unit, the first surface is a surface of the common unit close to the detection unit, the area corresponding to the reference mark of the first surface is the first area, and the other areas of the first surface are the second area, the minimum distance between each position of the first area and the detection unit is the first distance, the minimum distance between each position of the second area and the detection unit is the second distance, and the first distance is not equal to the second distance. The sheet object detection device is controlled to scan in vain to obtain the scanned image data, including: controlling the sheet object detection device to scan in vain for a predetermined time to obtain the preliminary scanned image data, the predetermined time being greater than or equal to twice the rotation period; identifying feature points in the preliminary scanned image data to obtain at least two first feature points, the first feature points being the image data of the reference mark collected during the scanned process; determining the scanned image data according to the first feature points, the scanned image data being the image data collected within a first predetermined time period of the predetermined time, the first predetermined time period being the time period between the start acquisition moment or the end acquisition moment corresponding to any two first feature points adjacent in acquisition order. Specifically, the predetermined time is greater than or equal to twice the rotation period, which can ensure that the image data of a complete air scan of the sheet object detection device is collected. The time period from the start of collection of a first feature point to the start of collection of the next first feature point is a complete rotation period, and the time period from the end of collection of a first feature point to the end of collection of the next first feature point is also a complete rotation period. The preparatory air scan image data collected in these two time periods is the air scan image data, and the air scan image data is the image data collected during a complete rotation period during the air scan process.
[0043] In one embodiment of the present application, the reference mark is disposed on the first surface of the common unit, the first surface is the surface of the common unit close to the detection unit, the area corresponding to the reference mark on the first surface is the first area, the other areas of the first surface are the second area, the minimum distance between each position of the first area and the detection unit is the first distance, the minimum distance between each position of the second area and the detection unit is the second distance, and the first distance is not equal to the second distance. Specifically, the first distance is not equal to the second distance, because the gap corresponding to the first area where the reference mark is located is different from the gap corresponding to other areas, the image data corresponding to the reference mark in the collected image data is easy to identify, that is, the feature points are easy to identify, and the original image data is further divided according to the rotation period through the feature points.
[0044] In one embodiment of the present application, the first surface includes an invalid area, the length of the invalid area in the second direction is greater than or equal to a predetermined distance, and the invalid area is a partial area on the first surface close to the reference mark. Figures 3 to 8 As shown, the invalid area is the area with a length of x in the second direction, and the area with a length of d in the second direction is the passing area. When the object to be tested is tested, the object to be tested is controlled to pass through the gap corresponding to the passing area. The length of the invalid area in the second direction is greater than or equal to the predetermined distance, ensuring that the invalid area can collect a predetermined amount of image data, which is not interfered by the object to be tested, and is convenient for normalization of the original image data to reduce the influence of random noise and further improve the accuracy of the image data. Those skilled in the art can select a suitable predetermined distance according to actual conditions, for example, 2 mm.
[0045] In one embodiment of the present application, Figure 3 As shown, the reference mark 30 is attached to the first surface or the reference mark 30 is a protrusion on the first surface. Specifically, if a conductor is attached to the first surface as a reference mark, or the reference mark is integrally formed with a common unit, a protrusion is formed on the first surface, so that the gap corresponding to the surface area where the reference mark is located is different from the gap corresponding to other surface areas, those skilled in the art can select a reference mark of a suitable shape according to actual conditions, for example, a square, a circle, or a ring.
[0046] In one embodiment of the present application, Figures 4 to 7 As shown, the reference mark 30 is a groove, which is formed by etching a portion of the first surface. Specifically, etching a common unit to form a groove as the reference mark has a simple process and saves conductive materials.
[0047] In one embodiment of the present application, the above groove is a circular groove, a square groove and an annular groove. Figure 4 As shown, the above groove is a square groove, such as Figure 5 As shown, the above groove is a circular groove, such as Figure 6 As shown, the groove is an annular groove. Of course, the groove is not limited thereto, and those skilled in the art can select a groove of a suitable shape according to actual conditions, for example, an irregularly shaped groove.
[0048] In one embodiment of the present application, Figure 7 As shown, there are two reference marks 30, and the two reference marks 30 are different. Specifically, setting two reference marks can improve the recognition rate of feature points, increase the reliability of correction, and reduce the dependence on the unit reference mark.
[0049] In one embodiment of the present application, Figure 8 As shown, the reference mark 30 is an encoder, which is arranged at one end of the common unit 20. The encoder generates a number as the common unit 20 rotates, and the number corresponds to the rotation position of the common unit 20. Specifically, the encoder rotates with the common unit, and the encoder can generate a number at every predetermined angle, and 360° is a cycle, so that the number corresponds to the rotation position of the common unit.
[0050] In one embodiment of the present application, the above-mentioned numbers correspond to the row data one by one, and the above-mentioned row data is the image input data collected by the above-mentioned detection chip. Specifically, the above-mentioned common unit rotates a predetermined angle, and the above-mentioned detection chip collects a row of data. The above-mentioned encoder can generate a number every predetermined angle, and 360° is a cycle, so that the above-mentioned numbers correspond to the row data one by one.
[0051] In one embodiment of the present application, the above numbers are repeated periodically. Specifically, the above numbers are repeated periodically so as to divide the original image data according to the rotation period by numbers.
[0052] In one embodiment of the present application, the above-mentioned original image data is corrected using the above-mentioned air-scanned image data according to the above-mentioned rotation period to obtain the corrected image data of the above-mentioned object to be measured, including: identifying the feature points in the above-mentioned original image data to obtain the second feature points, and the above-mentioned second feature points are the image data of the above-mentioned reference mark collected during the movement of the above-mentioned object to be measured; using the above-mentioned air-scanned image data to respectively correct the first original image data, the second original image data and the third original image data to obtain the first corrected image data, the second corrected image data and the third corrected image data, the above-mentioned corrected image data is composed of the above-mentioned first corrected image data, the above-mentioned second corrected image data and the above-mentioned third corrected image data, the above-mentioned first original image data is the above-mentioned original image data collected before collecting the first above-mentioned second feature point, the above-mentioned second original image data is the above-mentioned original image data collected within the second predetermined time period, the above-mentioned second predetermined time period is the time period between the start collection time or the end collection time corresponding to any two above-mentioned second feature points adjacent in the collection order, and the above-mentioned third original image data is the above-mentioned original image data collected after collecting the last above-mentioned second feature point. Specifically, since uneven gaps may cause periodic noise, the collected original image data are divided according to the rotation period. The first original image data is the original image data collected before collecting the first second feature point, the third original image data is the original image data collected after collecting the last second feature point, and the second original image data is the original image data collected within a second predetermined time period. The second predetermined time period is the time period between the start acquisition moment or the end acquisition moment corresponding to any two adjacent second feature points in the acquisition order, that is, the first original image data and the third original image data are both image data collected for less than one rotation period in the original image data, and the second original image data is image data collected for a complete rotation period in the original image data. The first original image data, the second original image data and the third original image data are respectively corrected using the above-mentioned empty scan image data, so that the original image data can be corrected one by one to obtain the above-mentioned corrected image data.
[0053] In one embodiment of the present application, the above-mentioned air-scanned image data is used to correct the first original image data, the second original image data and the third original image data respectively to obtain the first corrected image data, the second corrected image data and the third corrected image data, including: splitting the above-mentioned air-scanned image data into multiple first row data and numbering them in sequence to obtain corresponding row numbers, splitting the above-mentioned original image data into multiple second row data and numbering them in sequence to obtain corresponding row numbers; determining the row number corresponding to each of the above-mentioned second feature points; using the above-mentioned first row data with a first predetermined number of row numbers from large to small to correct the above-mentioned first original image data to obtain the above-mentioned first corrected image data, the above-mentioned first predetermined number is the difference between the row number of the first of the above-mentioned second feature points and the minimum row number of the above-mentioned second row data, and the above-mentioned second row data in the above-mentioned first original image data is different from the above-mentioned second feature point in the above-mentioned first original image data. The first row data corresponds one to one; the second original image data is corrected using a second predetermined number of the first row data to obtain the second corrected image data, the second predetermined number is the number of the first row data, and the second row data in the second original image data corresponds one to one with the first row data; the third original image data is corrected using a third predetermined number of the first row data with row numbers from small to large to obtain the third corrected image data, the third predetermined number is the difference between the maximum row number of the second row data and the row number of the last second feature point, and the second row data in the third original image data corresponds one to one with the first row data; the corrected image data is determined based on the corrected image data being the first corrected image data, the second corrected image data and the third corrected image data. Specifically, the scanned image data and the original image data are split to obtain a plurality of first row data and a plurality of second row data, respectively. The number of row data of the first original image data is a first predetermined number, that is, the difference between the row number of the first second feature point and the minimum row number of the second row data. The first original image data is corrected by using the first predetermined number of first row data with row numbers from large to small, so as to achieve a one-to-one correction to obtain the first corrected image data. Similarly, the number of row data of the third original image data is a third predetermined number, that is, the difference between the maximum row number of the second row data and the row number of the last second feature point. The third original image data is corrected by using the first predetermined number of first row data with row numbers from small to large, so as to achieve a one-to-one correction to obtain the third corrected image data. Since the second original image data is the image data collected during a complete rotation period in the original image data, the second original image data can be corrected one-to-one by directly using all the scanned image data, so as to obtain the second corrected image data, thereby obtaining the complete corrected image data.
[0054] It should be noted that the span of the second feature points may occupy multiple rows of data. When determining the row numbers corresponding to the multiple second feature points, it is sufficient to ensure that the intervals between adjacent row numbers are equal.
[0055] In one embodiment of the present application, the first original image data is corrected using the first predetermined number of first row data with row numbers from large to small to obtain the first corrected image data, including: calculating a first average grayscale value, the first average grayscale value being the average grayscale value of each of the first row data; and obtaining the first corrected image data based on the second row data of the first original image data and the corresponding first row data and the first average grayscale value. Specifically, the corresponding first row data is subtracted from the second row data of the first original image data, and the corresponding average grayscale value of the first row data is added to remove periodic noise, thereby completing the correction of the first original image data.
[0056] In one embodiment of the present application, the second original image data is corrected using the second predetermined number of the first row data to obtain the second corrected image data, including: calculating the second corrected image data according to the second row data of the second original image data, the corresponding first row data and the first average grayscale value. Specifically, the corresponding first row data is subtracted from the second row data of the second original image data, and the average grayscale value of the corresponding first row data is added to remove the periodic noise and complete the correction of the second original image data.
[0057] In one embodiment of the present application, the third original image data is corrected by using the first row data of the third predetermined number of row numbers from small to large to obtain the third corrected image data, including: calculating the third corrected image data according to the second row data of the third original image data, the corresponding first row data and the first average grayscale value. Specifically, the corresponding first row data is subtracted from the second row data of the third original image data, and the average grayscale value of the corresponding first row data is added to remove the periodic noise and complete the correction of the third original image data.
[0058] In one embodiment of the present application, after the above-mentioned original image data is corrected using the above-mentioned air scan image data according to the above-mentioned rotation period to obtain the corrected image data of the above-mentioned object to be measured, the above-mentioned control method further includes: normalizing the above-mentioned corrected image data to obtain the secondary corrected image data of the above-mentioned object to be measured. Specifically, the background of the corrected image data obtained by the preliminary correction is normalized to further eliminate noise and improve the accuracy of the image data.
[0059] In one embodiment of the present application, the above-mentioned corrected image data is normalized to obtain the secondary corrected image data of the above-mentioned object to be tested, including: calculating the second average grayscale value, the above-mentioned second average grayscale value is the average grayscale value of the invalid data of the above-mentioned second row of data, the above-mentioned invalid data is the image data collected in the invalid area, and the above-mentioned invalid area is other areas of the above-mentioned first surface except the above-mentioned reference mark and the allowed passage area of the above-mentioned object to be tested; calculating the normalization coefficient, the above-mentioned normalization coefficient is the ratio of the above-mentioned first average grayscale value to the above-mentioned second average grayscale value; according to the above-mentioned normalization coefficient and the above-mentioned second row of data, the secondary corrected image data of the above-mentioned object to be tested is calculated. Specifically, when the object to be tested is detected, the object to be tested is made to pass through the gap corresponding to the allowed passage area, and the image data collected in the invalid area will not be affected by the object to be tested. The second average grayscale value is calculated using this image data to reduce the influence of random noise, and the secondary correction improves the accuracy of the image data.
[0060] The embodiment of the present application also provides a control device for a sheet object detection device. It should be noted that the control device for a sheet object detection device in the embodiment of the present application can be used to execute the control method for a sheet object detection device provided in the embodiment of the present application. The control device for a sheet object detection device provided in the embodiment of the present application is introduced below. The sheet object detection device includes a detection unit, a common unit and a reference mark. The detection unit includes a plurality of detection chips, and the detection chips are arranged in sequence at least along the second direction. The common unit is opposite to the detection unit in the first direction and is arranged at intervals. The second direction is respectively perpendicular to the first direction. The reference mark is arranged on the common unit, and the reference mark is used to distinguish the rotation period of the common unit.
[0061] Fig. 9 Schematic diagram of a control device for a sheet object detection device according to an embodiment of the present application. Fig. 9 As shown, the device comprises:
[0062] The first control unit 100 is used to control the sheet object detection device to scan in vain to obtain the scanned image data;
[0063] The second control unit 200 is used to place the object to be tested in the interval between the common unit and the detection unit, control the movement of the object to be tested, and the moving direction of the object to be tested is perpendicular to the second direction, so as to obtain the original image data of the object to be tested;
[0064] The correction unit 300 is used to correct the original image data using the air scan image data according to the rotation period to obtain the corrected image data of the object to be measured.
[0065] In the control device of the sheet object detection device, the first control unit controls the sheet object detection device to perform an empty scan to obtain empty scan image data, the second control unit places the object to be detected in the gap between the common unit and the detection unit, controls the movement of the object to be detected, and the moving direction of the object to be detected is perpendicular to the second direction, to obtain the original image data of the object to be detected, and the correction unit corrects the original image data according to the rotation period using the empty scan image data to obtain the corrected image data of the object to be detected. The device divides the original image data according to the rotation period, and corrects the divided original image data one by one through the empty scan image data, thereby removing the periodic noise caused by uneven gaps, improving the accuracy of detection, and solving the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art.
[0066] In one embodiment of the present application, the sheet object detection device further includes a reference mark, which is arranged on a first surface of the common unit, the first surface is a surface of the common unit close to the detection unit, the area corresponding to the reference mark of the first surface is a first area, and other areas of the first surface are second areas, the minimum distance between each position of the first area and the detection unit is a first distance, the minimum distance between each position of the second area and the detection unit is a second distance, the first distance is not equal to the second distance, and the first control unit includes a first control subunit, a first identification subunit and a first determination subunit, wherein the first control subunit The first identification subunit is used to control the predetermined time of the above-mentioned sheet object detection device to scan the air scan, and obtain the preliminary air scan image data, and the predetermined time is greater than or equal to twice the above-mentioned rotation cycle; the first identification subunit is used to identify the feature points in the above-mentioned preliminary air scan image data, and obtain at least two first feature points, and the above-mentioned first feature points are the image data of the above-mentioned reference mark collected during the air scan process; the above-mentioned first determination subunit is used to determine the above-mentioned air scan image data according to the above-mentioned first feature points, and the above-mentioned air scan image data is the image data collected within the first predetermined time period of the above-mentioned predetermined time, and the above-mentioned first predetermined time period is the time period between the start acquisition time or the end acquisition time corresponding to any two adjacent first feature points in the acquisition order. Specifically, the above-mentioned predetermined time is greater than or equal to twice the rotation cycle, which can ensure that the image data of the sheet object detection device for a complete cycle of air scan is collected, and the time period from the start acquisition time of a first feature point to the start acquisition time of the next first feature point is a complete rotation cycle, and the time period from the end acquisition time of a first feature point to the end acquisition time of the next first feature point is also a complete rotation cycle. The preliminary air scan image data collected in these two time periods are the air scan image data, and the air scan image data is the image data collected in a complete rotation cycle during the air scan process.
[0067] In one embodiment of the present application, the reference mark is disposed on the first surface of the common unit, the first surface is the surface of the common unit close to the detection unit, the area corresponding to the reference mark on the first surface is the first area, the other areas of the first surface are the second area, the minimum distance between each position of the first area and the detection unit is the first distance, the minimum distance between each position of the second area and the detection unit is the second distance, and the first distance is not equal to the second distance. Specifically, the first distance is not equal to the second distance, because the gap corresponding to the first area where the reference mark is located is different from the gap corresponding to other areas, the image data corresponding to the reference mark in the collected image data is easy to identify, that is, the feature points are easy to identify, and the original image data is further divided according to the rotation period through the feature points.
[0068] In one embodiment of the present application, the first surface includes an invalid area, the length of the invalid area in the second direction is greater than or equal to a predetermined distance, and the invalid area is a partial area on the first surface close to the reference mark. Figures 3 to 8 As shown, the invalid area is the area with a length of x in the second direction, and the area with a length of d in the second direction is the passing area. When the object to be tested is tested, the object to be tested is controlled to pass through the gap corresponding to the passing area. The length of the invalid area in the second direction is greater than or equal to the predetermined distance, ensuring that the invalid area can collect a predetermined amount of image data, which is not interfered by the object to be tested, and is convenient for normalization of the original image data to reduce the influence of random noise and further improve the accuracy of the image data. Those skilled in the art can select a suitable predetermined distance according to actual conditions, for example, 2 mm.
[0069] In one embodiment of the present application, Figure 3 As shown, the reference mark 30 is attached to the first surface or the reference mark 30 is a protrusion on the first surface. Specifically, if a conductor is attached to the first surface as a reference mark, or the reference mark is integrally formed with a common unit, a protrusion is formed on the first surface, so that the gap corresponding to the surface area where the reference mark is located is different from the gap corresponding to other surface areas, those skilled in the art can select a reference mark of a suitable shape according to actual conditions, for example, a square, a circle, or a ring.
[0070] In one embodiment of the present application, Figures 4 to 7 As shown, the reference mark 30 is a groove, which is formed by etching a portion of the first surface. Specifically, etching a common unit to form a groove as the reference mark has a simple process and saves conductive materials.
[0071] In one embodiment of the present application, the above groove is a circular groove, a square groove and an annular groove. Figure 4 As shown, the above groove is a square groove, such as Figure 5 As shown, the above groove is a circular groove, such as Figure 6 As shown, the groove is an annular groove. Of course, the groove is not limited thereto, and those skilled in the art can select a groove of a suitable shape according to actual conditions, for example, an irregularly shaped groove.
[0072] In one embodiment of the present application, Figure 7 As shown, there are two reference marks 30, and the two reference marks 30 are different. Specifically, setting two reference marks can improve the recognition rate of feature points, increase the reliability of correction, and reduce the dependence on the unit reference mark.
[0073] In one embodiment of the present application, Figure 8 As shown, the reference mark 30 is an encoder, which is arranged at one end of the common unit 20. The encoder generates a number as the common unit 20 rotates, and the number corresponds to the rotation position of the common unit 20. Specifically, the encoder rotates with the common unit, and the encoder can generate a number at every predetermined angle, and 360° is a cycle, so that the number corresponds to the rotation position of the common unit.
[0074] In one embodiment of the present application, the above-mentioned numbers correspond to the row data one by one, and the above-mentioned row data is the image input data collected by the above-mentioned detection chip. Specifically, the above-mentioned common unit rotates a predetermined angle, and the above-mentioned detection chip collects a row of data. The above-mentioned encoder can generate a number every predetermined angle, and 360° is a cycle, so that the above-mentioned numbers correspond to the row data one by one.
[0075] In one embodiment of the present application, the above-mentioned numbers are repeated periodically. Specifically, the above-mentioned numbers are repeated periodically so as to divide the original image data into the rotation period by numbers.
[0076] In one embodiment of the present application, the correction unit includes a second recognition subunit and a correction subunit, wherein the second recognition subunit is used to identify feature points in the original image data to obtain second feature points, and the second feature points are image data of the reference mark collected during the movement of the object to be measured; the correction subunit uses the air scan image data to respectively correct the first original image data, the second original image data and the third original image data to obtain first corrected image data, second corrected image data and third corrected image data, and the corrected image data is composed of the first corrected image data, the second corrected image data and the third corrected image data, the first original image data is the original image data collected before collecting the first second feature point, the second original image data is the original image data collected within a second predetermined time period, the second predetermined time period is the time period between the start collection time or the end collection time corresponding to any two second feature points adjacent in collection order, and the third original image data is the original image data collected after collecting the last second feature point. Specifically, since uneven gaps may cause periodic noise, the collected original image data are divided according to the rotation period. The first original image data is the original image data collected before collecting the first second feature point, the third original image data is the original image data collected after collecting the last second feature point, and the second original image data is the original image data collected within a second predetermined time period. The second predetermined time period is the time period between the start acquisition moment or the end acquisition moment corresponding to any two adjacent second feature points in the acquisition order, that is, the first original image data and the third original image data are both image data collected for less than one rotation period in the original image data, and the second original image data is image data collected for a complete rotation period in the original image data. The first original image data, the second original image data and the third original image data are respectively corrected using the above-mentioned empty scan image data, so that the original image data can be corrected one by one to obtain the above-mentioned corrected image data.
[0077] In one embodiment of the present application, the correction sub-unit includes a splitting module, a first determination module, a first correction module, a second correction module, a third correction module and a second determination module, wherein the splitting sub-module is used to split the air-scanned image data into a plurality of first rows of data and number them in sequence to obtain corresponding row numbers, and split the original image data into a plurality of second rows of data and number them in sequence to obtain corresponding row numbers; the first determination sub-module is used to determine the row number corresponding to each of the second feature points; the first correction sub-module is used to correct the first original image data using a first predetermined number of the first rows of data having row numbers from large to small to obtain the first corrected image data, wherein the first predetermined number is the difference between the row number of the first second feature point and the minimum row number of the second row of data, and the second row of data in the first original image data corresponds one-to-one to the first row of data; The correction submodule is used to correct the second original image data using a second predetermined number of the first line data to obtain the second corrected image data, the second predetermined number is the number of the first line data, and the second line data in the second original image data corresponds one-to-one with the first line data; the third correction submodule is used to correct the third original image data using a third predetermined number of the first line data with line numbers from small to large to obtain the third corrected image data, the third predetermined number is the difference between the maximum line number of the second line data and the line number of the last second feature point, and the second line data in the third original image data corresponds one-to-one with the first line data; the second determination submodule is used to determine the corrected image data according to the corrected image data as the first corrected image data, the second corrected image data and the third corrected image data. Specifically, the scanned image data and the original image data are split to obtain a plurality of first row data and a plurality of second row data, respectively. The number of row data of the first original image data is a first predetermined number, that is, the difference between the row number of the first second feature point and the minimum row number of the second row data. The first original image data is corrected by using the first predetermined number of first row data with row numbers from large to small, so as to achieve a one-to-one correction to obtain the first corrected image data. Similarly, the number of row data of the third original image data is a third predetermined number, that is, the difference between the maximum row number of the second row data and the row number of the last second feature point. The third original image data is corrected by using the first predetermined number of first row data with row numbers from small to large, so as to achieve a one-to-one correction to obtain the third corrected image data. Since the second original image data is the image data collected during a complete rotation period in the original image data, the second original image data can be corrected one-to-one by directly using all the scanned image data, so as to obtain the second corrected image data, thereby obtaining the complete corrected image data.
[0078] It should be noted that the span of the second feature points may occupy multiple rows of data. When determining the row numbers corresponding to the multiple second feature points, it is sufficient to ensure that the intervals between adjacent row numbers are equal.
[0079] In one embodiment of the present application, the first correction module includes a first calculation submodule and a second calculation submodule, wherein the first calculation submodule is used to calculate a first average grayscale value, which is an average grayscale value of each of the first rows of data; the second calculation submodule is used to calculate the first corrected image data according to the second row of data of the first original image data, the corresponding first row of data, and the first average grayscale value. Specifically, the corresponding first row of data is subtracted from the second row of data of the first original image data, and then the corresponding average grayscale value of the first row of data is added, so that the periodic noise can be removed and the correction of the first original image data can be completed.
[0080] In one embodiment of the present application, the second correction module includes a third calculation submodule, wherein the third calculation submodule is used to calculate the second corrected image data according to the second row data of the second original image data, the corresponding first row data, and the first average grayscale value. Specifically, the second row data of the second original image data is subtracted from the corresponding first row data, and the average grayscale value of the corresponding first row data is added to remove the periodic noise and complete the correction of the second original image data.
[0081] In one embodiment of the present application, the second correction module includes a fourth calculation submodule, wherein the fourth calculation submodule is used to calculate the third corrected image data according to the second row data of the third original image data, the corresponding first row data, and the first average grayscale value. Specifically, the corresponding first row data is subtracted from the second row data of the third original image data, and the corresponding average grayscale value of the first row data is added to remove the periodic noise and complete the correction of the third original image data.
[0082] In one embodiment of the present application, the control device further includes a processing unit, which is used to correct the original image data using the air scan image data according to the rotation period to obtain the corrected image data of the object to be measured, and then normalize the corrected image data to obtain the secondary corrected image data of the object to be measured. Specifically, the background of the corrected image data obtained by the preliminary correction is normalized to further eliminate noise and improve the accuracy of the image data.
[0083] In one embodiment of the present application, the processing unit includes a first calculation subunit, a second calculation subunit and a third calculation subunit, wherein the first calculation subunit is used to calculate the second average gray value, the second average gray value is the average gray value of invalid data in the second row of data, the invalid data is the image data collected in the invalid area, and the invalid area is the other area in the first surface except the reference mark and the allowed passage area of the object to be tested; the second calculation subunit is used to calculate the normalization coefficient, the normalization coefficient is the ratio of the first average gray value to the second average gray value; the third calculation subunit is used to calculate the secondary corrected image data of the object to be tested according to the normalization coefficient and the second row of data. Specifically, when the object to be tested is detected, the object to be tested is made to pass through the gap corresponding to the allowed passage area, and the image data collected in the invalid area will not be affected by the object to be tested. The image data is used to calculate the second average gray value to reduce the influence of random noise, and the secondary correction improves the accuracy of the image data.
[0084] The control device of the sheet object detection device comprises a processor and a memory. The first control unit, the second control unit and the correction unit are stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.
[0085] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art can be solved by adjusting kernel parameters.
[0086] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0087] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the control method of the sheet object detection device is implemented.
[0088] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the control method of the sheet object detection device is executed when the program is run.
[0089] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0090] Step S101, controlling the sheet object detection device to perform an empty scan to obtain empty scan image data;
[0091] Step S102, placing the object to be tested in the gap between the common unit and the detection unit, controlling the object to be tested to move, and the moving direction of the object to be tested is perpendicular to the second direction, to obtain original image data of the object to be tested;
[0092] Step S103, correcting the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured.
[0093] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0094] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0095] Step S101, controlling the sheet object detection device to perform an empty scan to obtain empty scan image data;
[0096] Step S102, placing the object to be tested in the gap between the common unit and the detection unit, controlling the object to be tested to move, and the moving direction of the object to be tested is perpendicular to the second direction, to obtain original image data of the object to be tested;
[0097] Step S103, correcting the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured.
[0098] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0100] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned computer-readable storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0103] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0104] 1) In the control method of the sheet object detection device of the present application, first, the sheet object detection device is controlled to perform an empty scan to obtain empty scan image data, then, the object to be detected is placed in the gap between the common unit and the detection unit, the object to be detected is controlled to move, and the moving direction of the object to be detected is perpendicular to the second direction, to obtain the original image data of the object to be detected, and finally, the empty scan image data is used to correct the original image data according to the rotation period to obtain the corrected image data of the object to be detected. The above method divides the original image data according to the rotation period, and corrects the divided original image data one by one through the empty scan image data, thereby removing the periodic noise caused by uneven gaps, improving the accuracy of detection, and solving the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art.
[0105] 2) In the control device of the sheet object detection device of the present application, the first control unit controls the sheet object detection device to perform an empty scan to obtain empty scan image data, the second control unit places the object to be detected in the gap between the common unit and the detection unit, controls the movement of the object to be detected, and the movement direction of the object to be detected is perpendicular to the second direction, to obtain the original image data of the object to be detected, and the correction unit uses the empty scan image data to correct the original image data according to the rotation period to obtain the corrected image data of the object to be detected. The above device divides the original image data according to the rotation period, and corrects the divided original image data one by one through the empty scan image data, thereby removing the periodic noise caused by uneven gaps, improving the accuracy of detection, and solving the problem of inaccurate detection results caused by uneven gaps between the detection unit and the common unit in the thin film detection device in the prior art.
[0106] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a sheet object detection device, the sheet object detection device comprising a detection unit, a common unit and a reference mark, the detection unit comprising a plurality of detection chips, the detection chips being arranged in sequence at least along a second direction, the common unit and the detection unit being arranged opposite to each other and spaced apart in a first direction, the second direction being respectively perpendicular to the first direction, the reference mark being arranged on the common unit, the reference mark being used to distinguish a rotation period of the common unit, characterized in that: The control method comprises: Control the sheet object detection device to perform an empty scan to obtain empty scan image data; Placing the object to be tested in the interval between the common unit and the detection unit, controlling the movement of the object to be tested, and the moving direction of the object to be tested is perpendicular to the second direction, to obtain original image data of the object to be tested; Correcting the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured; The original image data is corrected using the air-scanned image data according to the rotation cycle to obtain the corrected image data of the object to be measured, including: identifying feature points in the original image data to obtain second feature points, where the second feature points are image data of the reference mark collected during the movement of the object to be measured; the first original image data, the second original image data and the third original image data are respectively corrected using the air-scanned image data to obtain first corrected image data, second corrected image data and third corrected image data, where the corrected image data is composed of the first corrected image data, the second corrected image data and the third corrected image data, where the first original image data is the original image data collected before collecting the first second feature point, the second original image data is the original image data collected within a second predetermined time period, the second predetermined time period is the time period between the start collection time or the end collection time corresponding to any two second feature points adjacent in collection order, and the third original image data is the original image data collected after collecting the last second feature point; The first original image data, the second original image data and the third original image data are corrected respectively using the air-scanned image data to obtain first corrected image data, second corrected image data and third corrected image data, including: splitting the air-scanned image data into a plurality of first lines of data and numbering them in sequence to obtain corresponding line numbers, splitting the original image data into a plurality of second lines of data and numbering them in sequence to obtain corresponding line numbers; determining the line number corresponding to each second feature point; correcting the first original image data using a first predetermined number of the first lines of data with line numbers from large to small to obtain the first corrected image data, the first predetermined number being the difference between the line number of the first second feature point and the minimum line number of the second line data, The second line data in the first original image data corresponds one-to-one to the first line data; the second original image data is corrected using a second predetermined number of the first line data to obtain the second corrected image data, the second predetermined number is the number of the first line data, and the second line data in the second original image data corresponds one-to-one to the first line data; the third original image data is corrected using a third predetermined number of the first line data with line numbers from small to large to obtain the third corrected image data, the third predetermined number is the difference between the maximum line number of the second line data and the line number of the last second feature point, and the second line data in the third original image data corresponds one-to-one to the first line data.
2. The method according to claim 1, characterized in that The sheet object detection device further includes a reference mark, the reference mark is arranged on a first surface of the common unit, the first surface is a surface of the common unit close to the detection unit, the area corresponding to the reference mark of the first surface is a first area, and other areas of the first surface are second areas. The minimum distance between each position of the first area and the detection unit is a first distance, and the minimum distance between each position of the second area and the detection unit is a second distance. The first distance is not equal to the second distance. Controlling the sheet object detection device to perform an empty scan to obtain empty scan image data includes: Control the sheet object detection device to perform an idle scan for a predetermined time to obtain preliminary idle scan image data, wherein the predetermined time is greater than or equal to twice the rotation period; Identify feature points in the preliminary air scan image data to obtain at least two first feature points, where the first feature points are image data of the reference mark collected during the air scan; The air-scanned image data is determined according to the first feature point, and the air-scanned image data is image data collected within a first predetermined time period of the predetermined time. The first predetermined time period is the time period between the start and end collection times corresponding to any two adjacent first feature points in the collection order.
3. The method according to claim 2, characterized in that Correcting the first original image data using a first predetermined number of the first line data having line numbers from large to small to obtain the first corrected image data includes: Calculate a first average grayscale value, where the first average grayscale value is an average grayscale value of each of the first rows of data; The first corrected image data is calculated based on the second line data of the first original image data, the corresponding first line data and the first average gray value.
4. The method according to claim 3, characterized in that After the original image data is corrected by using the air scan image data according to the rotation period to obtain the corrected image data of the object to be measured, the control method further includes: The corrected image data is normalized to obtain secondary corrected image data of the object to be measured.
5. The method according to claim 4, characterized in that Normalizing the corrected image data to obtain secondary corrected image data of the object to be measured, including: Calculate a second average grayscale value, where the second average grayscale value is an average grayscale value of invalid data in the second row of data, where the invalid data is image data collected in an invalid area, and the invalid area is other areas of the first surface except the reference mark and the area where the object to be measured is allowed to pass; Calculating a normalization coefficient, where the normalization coefficient is a ratio of the first average grayscale value to the second average grayscale value; Second-corrected image data of the object to be measured is calculated based on the normalization coefficient and the second row of data.
6. A control device for a sheet object detection device, the sheet object detection device comprising a detection unit, a common unit and a reference mark, the detection unit comprising a plurality of detection chips, the detection chips being arranged in sequence at least along a second direction, the common unit and the detection unit being arranged opposite to each other and spaced apart in a first direction, the second direction being respectively perpendicular to the first direction, the reference mark being arranged on the common unit, the reference mark being used to distinguish a rotation period of the common unit, characterized in that: The control device comprises: A first control unit, used for controlling the sheet object detection device to scan in vain to obtain the scanned image data; A second control unit, used for placing the object to be tested in the interval between the common unit and the detection unit, controlling the movement of the object to be tested, and the moving direction of the object to be tested is perpendicular to the second direction, to obtain original image data of the object to be tested; A correction unit, configured to correct the original image data using the air scan image data according to the rotation period to obtain corrected image data of the object to be measured; The correction unit includes a second recognition subunit and a correction subunit, wherein the second recognition subunit is used to identify feature points in the original image data to obtain second feature points, and the second feature points are image data of the reference mark collected during the movement of the object to be measured; the correction subunit uses the air scan image data to respectively correct the first original image data, the second original image data and the third original image data to obtain first corrected image data, second corrected image data and third corrected image data, and the corrected image data is composed of the first corrected image data, the second corrected image data and the third corrected image data, the first original image data is the original image data collected before collecting the first second feature point, the second original image data is the original image data collected within a second predetermined time period, the second predetermined time period is the time period between the start collection time or the end collection time corresponding to any two second feature points adjacent in collection order, and the third original image data is the original image data collected after collecting the last second feature point; The correction subunit includes a splitting module, a first determination module, a first correction module, a second correction module and a third correction module, wherein the splitting module is used to split the air scan image data into multiple first row data and number them in sequence to obtain corresponding row numbers, and split the original image data into multiple second row data and number them in sequence to obtain corresponding row numbers; the first determination module is used to determine the row number corresponding to each second feature point; the first correction module is used to correct the first original image data using a first predetermined number of the first row data with row numbers from large to small to obtain the first corrected image data, the first predetermined number being the difference between the row number of the first second feature point and the minimum row number of the second row data, the first original image data The second line data corresponds one-to-one to the first line data; the second correction module is used to correct the second original image data using a second predetermined number of the first line data to obtain the second corrected image data, the second predetermined number is the number of the first line data, and the second line data in the second original image data corresponds one-to-one to the first line data; the third correction module is used to correct the third original image data using a third predetermined number of the first line data with line numbers from small to large to obtain the third corrected image data, the third predetermined number is the difference between the maximum line number of the second line data and the line number of the last second feature point, and the second line data in the third original image data corresponds one-to-one to the first line data.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method of any one of claims 1 to 5.
8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 5 when running.
Citation Information
Patent Citations
Thickness detection device, method and system, storage medium and processor
CN110425973A
Sheet-shaped object detection device
CN214252038U