Plate size identification method, device, equipment and medium
By combining weighing and photo measurement technology, the size of artificial stone slabs is automatically calculated, which solves the problem of long manual measurement time, and achieves efficient and accurate automatic measurement, which improves the storage efficiency.
Patent Information
- Application Number
- CN202510120250.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-25
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2045-01-25
AI Technical Summary
It takes a long time to manually measure the size of artificial stone slabs, resulting in low storage efficiency.
Using a method combining weighing and photography measurement technology, by obtaining the weight of the board and the board surface image, using the known shooting distance and image pixel ratio for size calculation, automatically correcting the shooting distance and correcting image distortion, and gradually improving the measurement accuracy.
It realizes automatic measurement of plate size without manual participation, improves measurement accuracy and efficiency, and improves the storage efficiency of artificial stone slabs.
Smart Images

Figure CN119762820A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of size recognition, and in particular to a method, device, equipment and medium for recognizing the size of a plate. Background Art
[0002] Artificial stone slabs need to be stored in warehouses after production. In order to facilitate the subsequent deep processing of artificial stone slabs, it is necessary to obtain the size information of the artificial stone slabs for registration when the artificial stone slabs are put into warehouses, so that when they are shipped out, artificial stone slabs of corresponding sizes can be quickly selected for shipping out for processing.
[0003] Currently, the size of artificial stone slabs is usually measured manually with the help of a tape measure. Since the size of artificial stone slabs is usually large, manual measurement takes a long time, resulting in low warehousing efficiency of artificial stone slabs. Summary of the invention
[0004] In view of the above-mentioned defects, the purpose of the present invention is to propose a plate size recognition method, device, equipment and medium to solve the problem that it takes a long time to manually measure the size of artificial stone plates, thereby resulting in low warehousing efficiency of artificial stone plates.
[0005] To achieve this object, the present invention adopts the following technical solutions:
[0006] A method for identifying plate size comprises the following steps:
[0007] Initialization settings:
[0008] Get the number of shots at n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n , get the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n , where n≥2;
[0009] The nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n Make associations;
[0010] Actual identification:
[0011] S1, obtain the weight M of the target plate;
[0012] S2, obtain the installation distance H from the camera to the carrier surface 1 , matching and installation distance H 1Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′ n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 ;
[0013] S3, obtaining the surface image of the target plate, and obtaining the pixel width w of the surface of the target plate according to the surface image 1 and pixel length l 1 , according to the pixel width w of the target plate surface 1 and R′ 模糊 Calculate the rough width W of the target plate 1 , according to the pixel length l of the target plate surface 1 and R 模糊 Calculate the rough length L of the target plate 1 ;
[0014] S4, calculate the rough thickness D of the plate according to the preset density ρ 1 , the calculation formula is D 1 =M / (W 1 ×L 1 ×ρ);
[0015] S5, calculate the rough thickness D of the plate 1 Compare with several preset standard thicknesses and take the closest standard thickness as the final thickness D of the plate 2 ;
[0016] S6, according to the final thickness D 2 Determine the shooting distance H from the camera to the surface of the target plate 2 , the calculation formula is H 2 =H 1 -D 2 ;
[0017] S7, matching with shooting distance H 2 Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′ n , the associated length ratio R n Defined as R 精确 , the associated width ratio R′ n Defined as R′ 精确 , according to the pixel width w of the target plate surface 1 and R′ 精确 Calculate the exact width W of the target plate2 , according to the pixel length l of the target plate surface 1 and R 精确 Calculate the exact length L of the target plate 2 .
[0018] Preferably, obtain the n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n and obtain the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n The steps are:
[0019] Enter the known plate dimensions, including the known width W 3n and the known length L 3n ;
[0020] Get the known plate at the current known shooting distance h n The pixel width w of the known plate surface is extracted from the plate surface image 2n and pixel length l 2n ;
[0021] Calculate the current known shooting distance h n The length ratio R n and width ratio R′ n , the calculation formula is Rn=L 3n / l 2n , R′n=W 3n / w 2n .
[0022] Preferably, in step S2, the rough width W 1 The calculation formula is W 1 =w 1 ×R′ 模糊 , roughly length L 1 The calculation formula is L 1 = l 1 ×R 模糊 .
[0023] Preferably, in step S7, the precise width W 2 The calculation formula is W 2 =w 1 ×R′ 精确 , exact length L 2 The calculation formula is L 2 = l 1 ×R 精确 .
[0024] Preferably, in step S3, a distortion correction process is performed on the acquired surface image of the target plate.
[0025] A plate size recognition device, applied to the plate size recognition method described above, comprises a camera mechanism, a material taking and placing mechanism, a weighing mechanism and a control processor;
[0026] The weighing mechanism is provided with a plate-carrying surface, the plate-carrying surface is used to store the target plate, and the weighing mechanism is used to obtain the weight of the target plate stored on the plate-carrying surface;
[0027] The material taking and placing mechanism is used to take out the target plate and place the taken out target plate on the plate carrying surface of the weighing mechanism;
[0028] The camera mechanism is arranged at one side of the weighing mechanism, the camera end of the camera mechanism is arranged toward the board-carrying surface, and the camera mechanism is used to take a board surface image of the target board stored in the weighing mechanism;
[0029] The control processor is in communication connection with the photographing mechanism, the material taking and placing mechanism and the weighing mechanism, and the control processor is used to execute the steps of the plate size recognition method described above.
[0030] Preferably, the control processor comprises:
[0031] A preset module is used to obtain the n The n length ratios R of the known plate length and the plate image pixel length n , get n known shooting distances h n The n width ratios R′ of the known plate width and the plate image pixel width n , where n ≥ 2; it is also used to convert the nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n One-to-one association; also used to store the density ρ of the plate;
[0032] An image processing module is used to receive and process the image information of the target plate surface taken by the camera mechanism to obtain the installation distance H. 1 The pixel width w of the target plate surface 1 and pixel length l 1 ; It is also used to perform distortion correction processing on the acquired surface image of the target plate;
[0033] A rough size calculation module, the rough size calculation module matches the installation distance H 1Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′ n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 , according to the pixel width w of the target plate surface 1 and R′ 模糊 Calculate the rough width W of the target plate 1 , according to the pixel length l of the target plate surface 1 and R 模糊 Calculate the rough length L of the target plate 1 ; It is also used to calculate the rough thickness D of the plate according to the preset density ρ and weight M 1 ;
[0034] A matching module is used to set the rough thickness D 1 Compare with several preset standard thicknesses and take the closest standard thickness as the final thickness D of the plate 2 ;
[0035] The distance correction module is used to correct the distance H according to the installation distance 1 and the final thickness of the plate D 2 , calculate the shooting distance H from the camera to the surface of the target plate 2 ;
[0036] The precise size calculation module is used to match the shooting distance H 2 Equal known shooting distance, obtain the associated length ratio R of the matched known shooting distance n and the width ratio R′ n , the associated length ratio R n Defined as R 精确 , the width ratio R′ of the association n Defined as R′ 精确 , according to the pixel width w of the target plate surface 1 and R′ 精确 Calculate the exact width W of the target plate 2 , according to the pixel length l of the target plate surface 1 and R 精确 Calculate the exact length L of the target plate 2 .
[0037] Preferably, the preset module includes a storage submodule, a preset calculation submodule and an association submodule;
[0038] The storage submodule is used to store the known dimensions of the plate, including the known width W 3n and the known length L 3n , and is also used to store the density ρ of the sheet;
[0039] The preset calculation submodule is used to calculate and obtain the number of known shooting distances h at n n The length ratio R n and width ratio R′ n , the calculation formula is R n =L 3n / l 2n , R′ n =W 3n / w 2n ;
[0040] The association submodule is used to associate the nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n One to one association.
[0041] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described above when executing the computer program.
[0042] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described above are implemented.
[0043] The technical solution provided by the present invention may include the following beneficial effects:
[0044] The present invention combines weighing and photographic measurement technology, and can automatically correct the shooting distance between the photographed surface of the plate and the camera, so as to calculate the size of the plate according to the size of the corrected shooting distance and the ratio of image pixels, with higher accuracy, and can automatically measure the size information of the plate without human intervention, thereby improving the warehousing efficiency of the plate. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a flow chart of the initialization setting of the present invention;
[0046] Figure 2 is a flow chart of the actual identification of the present invention;
[0047] Figure 3 is a schematic diagram of the structure of the control processor of the present invention;
[0048] Figure 4It is a structural schematic diagram of the material taking and placing mechanism and the weighing mechanism of the present invention;
[0049] Figure 5 It is a structural schematic diagram of the photographing mechanism and the weighing mechanism of the present invention.
[0050] Among them: 1. Photographic mechanism; 2. Material taking and placing mechanism; 3. Weighing mechanism. DETAILED DESCRIPTION
[0051] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0052] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "transverse", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, features defined as "first" or "second" may explicitly or implicitly include one or more of the features, and are used to distinguish and describe features, without distinction of order or importance.
[0053] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0054] Below is the attached figure Figures 1 to 5 The technical solution of the present invention is further illustrated by specific implementation methods.
[0055] like Figure 1-5 As shown, a plate size identification method comprises the following steps:
[0056] Initialization settings:
[0057] Get the number of shots at n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n, get the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n , where n≥2;
[0058] The nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n Make associations;
[0059] Actual identification:
[0060] S1, obtain the weight M of the target plate;
[0061] S2, obtain the installation distance H from the camera to the carrier surface 1 , matching and installation distance H 1 Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′ n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 ;
[0062] S3, obtaining the surface image of the target plate, and obtaining the pixel width w of the surface of the target plate according to the surface image 1 and pixel length l 1 , according to the pixel width w of the target plate surface 1 and R′ 模糊 Calculate the rough width W of the target plate 1 , according to the pixel length l of the target plate surface 1 and R 模糊 Calculate the rough length L of the target plate 1 ;
[0063] S4, calculate the rough thickness D of the plate according to the preset density ρ 1 , the calculation formula is D 1 =M / (W 1 ×L 1 ×ρ);
[0064] S5, calculate the rough thickness D of the plate 1 Compare with several preset standard thicknesses and take the closest standard thickness as the final thickness D of the plate 2 ;
[0065] S6, according to the final thickness D 2Determine the shooting distance H from the camera to the surface of the target plate 2 , the calculation formula is H 2 =H 1 -D 2 ;
[0066] S7, matching with shooting distance H 2 Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′ n , the associated length ratio R n Defined as R 精确 , the associated width ratio R′ n Defined as R′ 精确 , according to the pixel width w of the target plate surface 1 and R′ 精确 Calculate the exact width W of the target plate 2 , according to the pixel length l of the target plate surface 1 and R 精确 Calculate the exact length L of the target plate 2 .
[0067] The present invention firstly determines the installation distance H 1 The length ratio R n and width ratio R′ n To calculate the rough length L of the plate 1 and the rough width W 1 , then calculate the rough thickness D of the plate according to the preset density ρ 1 , and the rough thickness D 1 Compare with several preset standard thicknesses to get the final thickness D 2 , then through the final thickness D 2 Calculate the shooting distance H from the camera to the surface of the target plate 2 , and finally through the shooting distance H 2 The length ratio R n and width ratio R′ n To calculate the exact length L of the target plate 2 and the exact width W 2 , making the measured size of the plate more accurate. The present invention combines weighing and photographic measurement technology to calculate the size information of the artificial stone plate. The accurate size information of the plate can be automatically measured without human intervention, which is highly efficient and can improve the warehousing efficiency of the plate.
[0068] It is worth noting that due to the installation distance H 1is the distance from the camera to the board surface. The camera is set facing the board surface. When the target board is placed on the board surface, the board surface image taken by the camera is the image of the side of the target board facing the camera. Therefore, the thickness D of the board also needs to be calculated. 2 , and according to the thickness of the plate D 2 To calculate the shooting distance H from the camera to the side of the target plate facing the camera 2 , so according to the shooting distance H 2 The length ratio R n and width ratio R′ n To calculate the exact width W of the target plate 2 and the exact length L 2 .
[0069] like Figure 1-3 As shown, obtain the n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n and obtain the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n The steps are:
[0070] Enter the known plate dimensions, including the known width W 3n and the known length L 3n ;
[0071] Get the known plate at the current known shooting distance h n The pixel width w of the known plate surface is extracted from the plate surface image 2n and pixel length l 2n ;
[0072] Calculate the current known shooting distance h n The length ratio R n and width ratio R′ n , the calculation formula is Rn=L 3n / l 2n , R′n=W 3n / w 2n .
[0073] Specifically, by using n known shooting distances h n Take a photo of the known plate at n known shooting distances h to obtain the known plate n The board surface image at n known shooting distances h is extracted based on the board surface image. n The pixel width w of the board at 2n and pixel length l 2n, thus calculating the known plate at n known shooting distances h n The length ratio R n and width ratio R′ n .
[0074] It is worth noting that the known width W 3n and the known length L 3n The unit is meter, the length ratio R n and width ratio R′ n The unit is meters / pixel.
[0075] like Figure 1-3 As shown, in step S2, the rough width W 1 The calculation formula is W 1 =w 1 ×R′ 模糊 , roughly length L 1 The calculation formula is L 1 = l 1 ×R 模糊 .
[0076] like Figure 1-3 As shown, in step S7, the precise width W 2 The calculation formula is W 2 =w 1 ×R′ 精确 , exact length L 2 The calculation formula is L 2 = l 1 ×R 精确 .
[0077] like Figure 1-3 As shown, in step S3, the acquired surface image of the target plate is subjected to distortion correction processing.
[0078] Specifically, in order to avoid the distortion of the camera lens and the influence of the plate placed obliquely on the carrier surface on the imaging effect, it is necessary to perform pre-processing such as distortion correction on the captured plate surface image after shooting, so that the pixel width and pixel length of the acquired plate surface image are more accurate, thereby improving the accuracy of plate size measurement.
[0079] like Figure 4-5 As shown, a plate size recognition device is applied to the above-mentioned plate size recognition method, comprising a camera mechanism 1, a material taking and placing mechanism 2, a weighing mechanism 3 and a control processor;
[0080] The weighing mechanism 3 is provided with a plate-carrying surface, and the plate-carrying surface is used to store the target plate, and the weighing mechanism 3 is used to obtain the weight of the target plate stored on the plate-carrying surface;
[0081] The material taking and placing mechanism 2 is used to take out the target plate and place the taken out target plate on the plate carrying surface of the weighing mechanism 3;
[0082] The camera mechanism 1 is disposed on one side of the weighing mechanism 3, and the camera end of the camera mechanism 1 is disposed toward the board-carrying surface. The camera mechanism 1 is used to capture the board surface image of the target board stored in the weighing mechanism 3;
[0083] The control processor is in communication connection with the photographing mechanism 1 , the material taking and placing mechanism 2 and the weighing mechanism 3 , and the control processor is used to execute the steps of the plate size recognition method described above.
[0084] It can be understood that the target plate is placed on the loading surface of the weighing mechanism 3 through the material picking and discharging mechanism 2, and then the weight of the target plate is obtained by the weighing mechanism 3, and the surface image of the target plate is photographed by the photographing mechanism 1, and then the size parameters of the target plate are calculated by the control processor. The size measurement of the target plate can be automatically completed without human intervention, thereby improving the measurement efficiency of the plate size.
[0085] like Figure 3 As shown, the control processor includes:
[0086] A preset module is used to obtain the n The n length ratios R of the known plate length and the plate image pixel length n , get n known shooting distances h n The n width ratios R′ of the known plate width and the plate image pixel width n , n is greater than or equal to 2; it is also used to convert the nth known shooting distance h n The length ratio R corresponding to the nth n and the nth width ratio R′ n One-to-one association; also used to store the density ρ of the plate;
[0087] An image processing module is used to receive and process the image information of the target plate surface taken by the camera 1 to obtain the installation distance H. 1 The pixel width w of the target plate surface 1 and pixel length l 1 ; It is also used to perform distortion correction processing on the acquired surface image of the target plate;
[0088] A rough size calculation module, the rough size calculation module matches the installation distance H 1 Equal known shooting distances, obtain the associated length ratio R of the matched known shooting distances n and width ratio R′n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 , according to the pixel width w of the target plate surface 1 and R′ 模糊 Calculate the rough width W of the target plate 1 , according to the pixel length l of the target plate surface 1 and R 模糊 Calculate the rough length L of the target plate 1 ; It is also used to calculate the rough thickness D of the plate according to the preset density ρ and weight M 1 ;
[0089] A matching module is used to set the rough thickness D 1 Compare with several preset standard thicknesses and take the closest standard thickness as the final thickness D of the plate 2 ;
[0090] The distance correction module is used to correct the distance H according to the installation distance 1 and the final thickness of the plate D 2 , calculate the shooting distance H from the camera to the surface of the target plate 2 ;
[0091] The precise size calculation module is used to match the shooting distance H 2 Equal known shooting distance, obtain the associated length ratio R of the matched known shooting distance n and width ratio R′ n , the associated length ratio R n Defined as R 精确 , the associated width ratio R′ n Defined as R′ 精确 , according to the pixel width w of the target plate surface 1 and R′ 精确 Calculate the exact width W of the target plate 2 , according to the pixel length l of the target plate surface 1 and R 精确 Calculate the exact length L of the target plate 2 .
[0092] It is worth noting that the preset module can store the known size of the plate at n known shooting distances h n The length ratio R n and width ratio R′ n , and the known shooting distance h nThe corresponding length ratio R n and width ratio R′ n One by one, so as to obtain the shooting distance H 2 When you click on the shooting distance H, you can quickly know the shooting distance H 2 The length ratio R n and width ratio R′ n .
[0093] like Figure 3 As shown, the preset module includes a storage submodule, a preset calculation submodule and an association submodule;
[0094] The storage submodule is used to store the known dimensions of the plate, including the known width W 3n and the known length L 3n , and is also used to store the density ρ of the sheet;
[0095] The preset calculation submodule is used to calculate and obtain the number of known shooting distances h at n n The length ratio R n and width ratio R′ n , the calculation formula is R n =L 3n / l 2n , R′ n =W 3n / w 2n ;
[0096] The association submodule is used to associate the nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n One to one association.
[0097] In order to solve the above technical problems, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the plate size identification method as described above when executing the computer program.
[0098] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the plate size identification method as described above are implemented.
[0099] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the scope of protection of the present invention.
Claims
1. A method for identifying plate size, characterized in that: The following steps are involved: Initialization settings: Get the number of shots at n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n , get the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n , where n≥2; The nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n Make associations; Actual identification: S1, obtain the weight M of the target plate; S2, obtain the installation distance H1 from the camera to the carrier surface, match the known shooting distance equal to the installation distance H1, and obtain the associated length ratio R of the matched known shooting distance n and width ratio R′ n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 ; S3, obtaining the surface image of the target plate, obtaining the pixel width w1 and pixel length l1 of the surface of the target plate according to the surface image, and obtaining the pixel width w1 and pixel length l1 of the surface of the target plate according to the pixel width w1 and R′ of the surface of the target plate. 模糊 The rough width W1 of the target plate is calculated, based on the pixel length l1 and R 模糊 Calculate the rough length L1 of the target plate; S4, calculating the rough thickness D1 of the plate according to the preset density ρ, the calculation formula is D1 = M / (W1×L1×ρ); S5, comparing the calculated rough thickness D1 of the plate with several preset standard thicknesses, and taking the closest standard thickness as the final thickness D2 of the plate; S6, determining the shooting distance H2 from the camera to the surface of the target plate according to the final thickness D2, the calculation formula is H2 = H1-D2; S7, matching a known shooting distance equal to the shooting distance H2, and obtaining a length ratio R associated with the matched known shooting distance n and width ratio R′ n , the associated length ratio R n Defined as R 精确 , the associated width ratio R′ n Defined as R′ 精确 , according to the pixel width w1 and R′ of the target plate 精确 Calculate the exact width W2 of the target plate, based on the pixel length l1 and R of the target plate surface 精确 The exact length L2 of the target plate is calculated.
2. A plate size identification method according to claim 1, characterized in that: Get the number of shots at n known shooting distances h n The length ratio R of the known plate surface length and the corresponding n plate surface image pixel lengths n and obtain the value of n known shooting distances h n The width ratio R′ of the known plate width and the corresponding n plate image pixel widths n The steps are: Enter the known plate dimensions, including the known width W 3n and the known length L 3n ; Get the known plate at the current known shooting distance h n The pixel width w of the known plate surface is extracted from the plate surface image 2n and pixel length l 2n ; Calculate the current known shooting distance h n The length ratio R n and width ratio R′ n , the calculation formula is Rn=L 3n / l 2n , R′n=W 3n / w 2n .
3. A plate size identification method according to claim 1, characterized in that: In step S2, the calculation formula of the rough width W1 is W1=w1×R′ 模糊 , the calculation formula of the rough length L1 is L1=l1×R 模糊 .
4. A plate size identification method according to claim 1, characterized in that: In step S7, the calculation formula of the precise width W2 is W2=w1×R′ 精确 The exact length L2 is calculated as L2 = l1 × R 精确 .
5. A plate size identification method according to claim 1, characterized in that: In step S3, the acquired surface image of the target plate is subjected to distortion correction processing.
6. A plate size recognition device, using the plate size recognition method according to any one of claims 1 to 5, characterized in that: It comprises a photographing mechanism (1), a material taking and placing mechanism (2), a weighing mechanism (3) and a control processor; The weighing mechanism (3) is provided with a plate-carrying surface, the plate-carrying surface is used to store the target plate, and the weighing mechanism (3) is used to obtain the weight of the target plate stored on the plate-carrying surface; The material taking and placing mechanism (2) is used to take out the target plate and place the taken out target plate on the plate carrying surface of the weighing mechanism (3); The camera mechanism (1) is arranged on one side of the weighing mechanism (3), the camera end of the camera mechanism (1) is arranged toward the board carrier surface, and the camera mechanism (1) is used to capture the board surface image of the target board stored in the weighing mechanism (3); The control processor is connected in communication with the photographing mechanism (1), the material taking and placing mechanism (2) and the weighing mechanism (3), and the control processor is used to execute the steps of the plate size identification method.
7. A plate size identification device according to claim 6, characterized in that: The control processor comprises: A preset module is used to obtain the n The n length ratios R of the known plate length and the plate image pixel length n , get n known shooting distances h n The n width ratios R′ of the known plate width and the plate image pixel width n , where n ≥ 2; it is also used to convert the nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n One-to-one association; also used to store the density ρ of the plate; An image processing module, the image processing module is used to receive and process the surface image information of the target plate photographed by the photographing mechanism (1) to obtain the pixel width w1 and pixel length l1 of the surface of the target plate at the installation distance H1; and is also used to perform distortion correction processing on the obtained surface image of the target plate; A rough size calculation module, which matches a known shooting distance equal to the installation distance H1, and obtains a length ratio R associated with the matched known shooting distance n and width ratio R′ n , the associated length ratio R n Defined as R 模糊 , the associated width ratio R′ n Defined as R′ 模糊 , according to the pixel width w1 and R′ of the target plate 模糊 The rough width W1 of the target plate is calculated, based on the pixel length l1 and R 模糊 The rough length L1 of the target plate is calculated; it is also used to calculate the rough thickness D1 of the plate according to the preset density ρ and weight M; A matching module, the matching module is used to compare the rough thickness D1 with a plurality of preset standard thicknesses, and take the closest standard thickness as the final thickness D2 of the plate; A distance correction module, which is used to calculate the shooting distance H2 from the camera to the surface of the target plate according to the installation distance H1 and the final thickness D2 of the plate; An accurate size calculation module, the accurate size calculation module is used to match a known shooting distance equal to the shooting distance H2, and obtain the length ratio R associated with the matched known shooting distance n and the width ratio R′ n , the associated length ratio R n Defined as R 精确 , the width ratio R′ of the association n Defined as R′ 精确 , according to the pixel width w1 and R′ of the target plate 精确 Calculate the exact width W2 of the target plate, based on the pixel length l1 and R 精确 The exact length L2 of the target plate is calculated.
8. A plate size identification device according to claim 7, characterized in that: The preset module includes a storage submodule, a preset calculation submodule and an association submodule; The storage submodule is used to store the known dimensions of the plate, including the known width W 3n and the known length L 3n , and is also used to store the density ρ of the sheet; The preset calculation submodule is used to calculate and obtain the number of known shooting distances h at n n The length ratio R n and width ratio R′ n , the calculation formula is R n =L 3n / l 2n , R′ n =W 3n / w 2n ; The association submodule is used to associate the nth known shooting distance h n and the corresponding nth length ratio R n and the nth width ratio R′ n One to one association.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the plate size identification method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the plate size identification method as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and device for measuring size of mobile phone based on laser ranging and image comparison
CN109059763A
Size detection method and device, electronic equipment and readable storage medium
CN111932605A
Stacked plate density identification method, device and system
CN115015031A
Security inspection machine calibration method, related method, device, equipment and storage medium
CN117422777A
Stone quality detection system and method
CN118010752A