Keyboard screen printing image detection method, device, equipment and storage medium

Using deep learning models to perform feature extraction and defect analysis on keyboard screen printing, and automatically adjusting screen printing parameters, it solves the problems of low efficiency and poor consistency of traditional detection, and achieves efficient and accurate screen printing quality control.

CN118505688BActive Publication Date: 2024-09-27SHENZHEN PRINTCHECKER INTELLIGENT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410956846.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Traditional keyboard screen printing quality inspection relies on manual visual inspection, which is inefficient and easily affected by subjective factors, resulting in inconsistent inspection results and difficulty in ensuring that each screen printing reaches the ideal state.

Method used

A deep learning model is used to perform feature extraction and defect analysis on the keyboard silk screen image. By comparing the preset mapping algorithm with standardized features, an adjustment strategy is developed and the screen printing parameters are iteratively adjusted until a standardized state is reached.

Benefits of technology

It improves the speed and accuracy of screen printing detection, reduces the subjective error of manual detection, ensures the consistency and accuracy of screen printing quality, reduces production costs and scrap rates, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505688B
    Figure CN118505688B
Patent Text Reader

Abstract

The present invention relates to an image detection method for keyboard silk screen, comprising the following steps: obtaining an image of keyboard silk screen, extracting features of each key in the image of keyboard silk screen through a preset deep learning model, and obtaining features of the key silk screen; obtaining standardized features of each key in the keyboard, and comparing the features of the key silk screen with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain comparison results; the number of the comparison results is the same as the number of the keys; performing defect analysis on the features of the key silk screen based on the comparison results to obtain characteristic defect types, and obtaining corresponding adjustment strategies based on the characteristic defect types; iteratively adjusting the silk screen parameters corresponding to the keys with the characteristic defect types using the corresponding adjustment strategies until the adjusted keyboard silk screen is the same as the standardized silk screen on the keys; ensuring high consistency and accuracy of silk screen quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image detection technology, and in particular to a keyboard silk screen image detection method, device, equipment and storage medium. Background Art

[0002] In the field of electronic equipment production, especially in keyboard production, the quality of silk screen printing directly affects the appearance and user experience of the product. The silk screen printing process involves printing specific patterns, text or images onto keyboard keys. High-quality silk screen printing should be clear, accurate, and consistent in color. However, due to various variables in the production process, such as the viscosity of silk screen ink, the uniformity of pressure, and the accuracy of the silk screen, it is difficult to ensure that every silk screen printing can achieve the ideal state. Traditional quality inspection mainly relies on manual visual inspection, which is not only inefficient, but also easily affected by subjective factors, resulting in inconsistent inspection results. Summary of the invention

[0003] The main purpose of the present invention is to provide a keyboard silk screen image detection method, device, equipment and storage medium, which ensures the high consistency and accuracy of silk screen quality.

[0004] To achieve the above object, the present invention provides an image detection method for keyboard silk screen, comprising the following steps:

[0005] Acquire an image of the keyboard silk screen, and extract features of each key in the image of the keyboard silk screen by using a preset deep learning model to obtain features of the key silk screen;

[0006] Obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain comparison results; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys;

[0007] Based on the comparison results, defect analysis is performed on the characteristics of the key screen printing to obtain characteristic defect types, and corresponding adjustment strategies are obtained based on the characteristic defect types; wherein the characteristic defect types include printing deviation and color deviation of the keyboard screen printing;

[0008] The silk screen printing parameters corresponding to the key with the characteristic defect type are iteratively adjusted using the corresponding adjustment strategy until the adjusted keyboard silk screen printing is the same as the standardized silk screen printing on the key.

[0009] As a further solution of the present invention, an image of a keyboard silk screen is obtained, and features of each key in the image of the keyboard silk screen are extracted through a preset deep learning model to obtain features of the key silk screen:

[0010] Scan the keyboard using a preset scanner to obtain an initial image of the keyboard;

[0011] Using a preset filtering algorithm to remove noise from the initial image of the keyboard to obtain an image of the keyboard silk screen;

[0012] Extracting the images within the boundaries of each key in the keyboard silk-screen image through a preset deep learning model to obtain images within the boundaries of each key;

[0013] Performing morphological adjustment on the images within the boundaries of each key to obtain each adjusted image; wherein the morphological adjustment includes expansion adjustment and / or erosion adjustment;

[0014] Performing character recognition on each of the adjusted images to obtain recognized characters;

[0015] The geometric features of the recognized characters are calculated to obtain the features of the key screen printing.

[0016] As a further solution of the present invention, the geometric features include character area, character outer contour perimeter, character height, and character width.

[0017] As a further solution of the present invention, the standardized features of each key in the keyboard are obtained, and the features of the key silk screen are compared with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain a comparison result, including:

[0018] Obtain standardized features of each key in the keyboard, and respectively perform vector conversion on the features of the key silk screen and the standardized features to obtain the feature vector features of the corresponding key silk screen and the standardized key feature vector;

[0019] The feature vectors of each button silk screen and the standardized button feature vector are optimized respectively by Lagrange multiplier method to obtain the optimized feature vectors and standardized optimized feature vectors of the corresponding button silk screen;

[0020] The optimized feature vector and the standardized optimized feature vector of each button silk screen are respectively identified by the preset BERT model to obtain the corresponding optimized feature recognition vector and the standardized optimized feature recognition vector;

[0021] Performing vector classification on each of the optimized feature recognition vectors and the standardized optimized feature recognition vectors through a preset support vector machine to obtain a corresponding optimized feature recognition vector and a standardized optimized feature recognition vector;

[0022] The preset mapping algorithm is used to map and compare the optimized feature vectors and the standardized optimized feature vectors one by one to obtain a comparison result.

[0023] As a further solution of the present invention, defect analysis is performed on the features of the button silk screen based on the comparison results to obtain a characteristic defect type, and a corresponding adjustment strategy is obtained based on the characteristic defect type, including:

[0024] Based on the comparison results, defect analysis is performed on the features of the button silk screen to obtain multiple initial defect types;

[0025] Each initial defect type is preliminarily clustered by a preset clustering algorithm to obtain multiple initial clusters;

[0026] The initial defect types in each initial cluster are averaged to obtain the corresponding cluster center;

[0027] Calculate the distances between multiple initial defect types and each cluster center to obtain distance values;

[0028] Iteratively assigning each of the initial defect types based on the distance value to obtain a plurality of target clusters;

[0029] A characteristic defect type is obtained based on each target cluster, and a corresponding adjustment strategy is obtained based on the characteristic defect type.

[0030] As a further solution of the present invention, the silk screen parameters corresponding to the key with the characteristic defect type are iteratively adjusted using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key, including:

[0031] Match the button silk screen features of various defect types with the corresponding adjustment parameters to obtain the adjustment parameters corresponding to each defect type;

[0032] Performing parameter fitting on the adjustment parameter by using a preset fitting algorithm to obtain a fitting parameter;

[0033] Identifying missing values ​​and outliers in the fitting parameters, and eliminating the missing values ​​and outliers to obtain eliminated fitting parameters;

[0034] Based on the various defect types, parameter constraints are imposed on the elimination fitting parameters to obtain constrained fitting parameters; wherein the parameter constraints include upper and lower bounds of the constraint elimination fitting parameters;

[0035] The constraint fitting parameters are iteratively adjusted using a linear relaxation model until the adjusted keyboard silk screen is the same as the standardized silk screen on the key.

[0036] The present invention also provides an image detection device for keyboard silk screen, comprising:

[0037] An acquisition module is used to acquire an image of a keyboard silk screen, and extract features of each key in the image of the keyboard silk screen by using a preset deep learning model to obtain features of the key silk screen;

[0038] A comparison module is used to obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding key one by one through a preset mapping algorithm to obtain a comparison result; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys;

[0039] An analysis module, used to perform defect analysis on the characteristics of the key screen printing based on the comparison results, obtain characteristic defect types, and obtain corresponding adjustment strategies based on the characteristic defect types; wherein the characteristic defect types include printing skew and color deviation of the keyboard screen printing;

[0040] The adjustment module is used to iteratively adjust the silk screen parameters corresponding to the key with the characteristic defect type by using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key.

[0041] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0042] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0043] The image detection method of keyboard silk screen provided by the present invention comprises the following steps: obtaining an image of keyboard silk screen, extracting features of each key in the image of keyboard silk screen by a preset deep learning model, and obtaining features of key silk screen; obtaining standardized features of each key in the keyboard, and comparing the features of the key silk screen with the standardized features of the corresponding keys by a preset mapping algorithm, and obtaining comparison results; wherein the mapping algorithm is a pre-trained algorithm; the number of the comparison results is the same as the number of the keys; performing defect analysis on the features of the key silk screen based on the comparison results to obtain characteristic defect types, and obtaining corresponding adjustment strategies based on the characteristic defect types; wherein the characteristic defect types include printing skew and color deviation of keyboard silk screen; using the corresponding adjustment strategy to iteratively adjust the silk screen parameters corresponding to the keys with the characteristic defect types until the adjusted keyboard silk screen is the same as the standardized silk screen on the keys; through accurate defect analysis and effective iterative adjustment, the technical problem that it is currently difficult to ensure that each silk screen reaches an ideal state is solved, the silk screen quality of the final product is ensured, the labor cost is reduced, and the production efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 1 is a schematic diagram of the steps of a method for detecting an image of a keyboard screen printing according to an embodiment of the present invention;

[0045] Figure 2 is a structural block diagram of an image detection device for keyboard silk screen in one embodiment of the present invention;

[0046] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] like Figure 1 As shown, Figure 1 1 is a schematic diagram of the steps of a method for detecting an image of a keyboard screen printing according to an embodiment of the present invention;

[0050] In one embodiment of the present invention, a method for detecting a keyboard screen image is provided, comprising the following steps:

[0051] Step S1, obtaining an image of a keyboard silk screen, and extracting features of each key in the image of the keyboard silk screen through a preset deep learning model to obtain features of the key silk screen.

[0052] Specifically, first, a high-quality keyboard silk screen image needs to be obtained. This is usually done through high-resolution photography or scanning equipment to ensure that the image is clear and the details of each key silk screen can be accurately captured. This is the basis for all subsequent analysis. After obtaining the image, the image preprocessing step removes noise, adjusts brightness and contrast, and also includes cropping, rotating and other operations to ensure image standardization. The purpose of preprocessing is to improve the accuracy and efficiency of feature extraction. The preprocessed keyboard silk screen image is analyzed using a preset deep learning model. The model is trained to identify and extract the features of the key silk screen, including key information such as shape, size, edge, color, etc. The deep learning model can be a convolutional neural network (CNN), etc. The above model can automatically recognize and learn complex patterns and features from the image. The extracted features are compared with the standardized features of each key in the database. The above steps usually involve calculating the difference between the two sets of features, such as evaluated by a distance function (such as Euclidean distance) or a similarity measure (such as cosine similarity). Based on the results of feature comparison, the type of silk screen defect can be identified, such as printing skew, color deviation, etc. Determined by predefined thresholds or standards, those exceeding these thresholds are considered defective. Finally, according to the type and degree of defects, corresponding adjustment strategies are formulated. These strategies may include adjusting the parameters of the screen printer, changing the screen, adjusting the ink concentration, etc. The defective screen parameters are then iteratively adjusted until they reach the same level as the standardized characteristics.

[0053] The above steps can bring the following technical effects: Through automated feature extraction and comparative analysis, the speed and accuracy of screen printing inspection are greatly improved, and the subjective errors of manual inspection are reduced. The deep learning model can identify tiny printing skew and color deviations, which are difficult for the human eye to detect. Improved product quality, reduced product rework and scrap rate. By reducing the need for manual inspection and increasing the speed of inspection, the production process becomes more efficient, thereby improving overall production capacity. Reduced manual inspection costs, while reducing scrap and improving product quality, reducing rework and after-sales service costs, has significant economic benefits.

[0054] Step S2, obtaining standardized features of each key in the keyboard, and using a preset mapping algorithm, comparing the features of the key silk screen with the standardized features of the corresponding key one by one to obtain comparison results; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys.

[0055] Specifically, the standardized features of each button are determined from the design specifications or by measuring qualified samples, which include information in multiple dimensions such as size, shape, position, color, etc. This step ensures that the inspection process has a clear and accurate reference standard. The extracted button features are analyzed using a pre-trained mapping algorithm (possibly based on deep learning, such as a convolutional neural network CNN) and mapped one by one with the standardized features. These algorithms are able to identify and process subtle differences between features and accurately perform matching analysis. The algorithm compares the extracted silk screen features of each button with the corresponding standardized features and calculates the differences. This may include differences in geometry, changes in color, etc. to ensure that every aspect is carefully evaluated. For each button, the algorithm generates a comparison result showing the difference between the actual features and the standard features. These results help identify which buttons' silk screens do not meet the standardization requirements and require further adjustment or correction.

[0056] The above steps can bring the following technical effects: by accurately comparing the actual silk screen features (features of the button silk screen) with the standardized features, it can ensure that the silk screen quality of each button meets the predetermined high standards, reducing the errors that may be caused by manual inspection. The feature comparison is automatically completed using the pre-trained mapping algorithm, which greatly speeds up the inspection process, making it possible to process a large number of buttons in a short time, and improving production efficiency. Through detailed feature comparison, it is possible to accurately locate which specific buttons have problems and the nature of the problems (such as shape mismatch, color deviation, etc.), providing a clear basis for subsequent adjustments. Automated feature comparison reduces dependence on manual inspection and reduces production costs. At the same time, it ensures the high quality standards of each product, improves the satisfaction of end users and the market competitiveness of products. Accurate defect identification makes adjustment measures more targeted, reduces trial and error time, and accelerates the optimization of production processes and the improvement of product quality. In summary, this method not only improves the inspection efficiency and accuracy through precise automated feature comparison, but also provides accurate data support for production adjustments, and ultimately achieves the dual goals of cost savings and product quality improvement.

[0057] Step S3, based on the comparison result, defect analysis is performed on the characteristics of the key screen printing to obtain characteristic defect types, and corresponding adjustment strategies are obtained based on the characteristic defect types; wherein the characteristic defect types include printing skew and color deviation of the keyboard screen printing.

[0058] Specifically, after completing the feature comparison, the system will use pre-defined logic and parameters to analyze the comparison results and automatically identify which button screen printing features have significant differences from the standardized features. The above differences are identified as different defect types according to the preset classification. Based on the results of the comparative analysis, the system classifies the differences into specific defect types, such as printing skew or color deviation. The above steps usually rely on advanced algorithms or artificial intelligence models, such as deep learning networks, to accurately distinguish and identify various types of defects. According to the identified characteristic defect types, corresponding adjustment strategies are formulated. For example, for the problem of printing skew, the adjustment strategy includes correcting the alignment of the screen printing machinery or changing the pressure setting; for color deviation, the adjustment strategy is to adjust the ink formula or change the concentration and application method of the ink. Apply the formulated adjustment strategy to the production process and re-test the adjusted products to confirm whether the problem has been resolved. If the test results still do not meet the standards, further adjustments may be required. The above process requires multiple iterations until the product's screen printing features fully meet the standardization requirements.

[0059] The following technical effects can be achieved through the above steps: Through efficient algorithm analysis, the specific defect types of keyboard silk screen can be accurately identified and classified, which is crucial for subsequent adjustment and correction work. Based on accurate defect type identification, more accurate and effective adjustment strategies can be implemented to quickly correct problems, reduce rework and scrap rates in production, and improve overall production efficiency. Through automated defect analysis and adjustment, the reliance on manual inspection is reduced, and production costs are reduced. At the same time, reducing scrap and improving production efficiency also directly reduce the cost of the production process. Ensuring that each product passes precise quality control improves product consistency and reliability, which is critical to maintaining brand reputation and consumer satisfaction. Automated defect analysis and adjustment strategy implementation can speed up the discovery and correction of problems, shorten production cycles, and bring products to market faster. Through a set of processes, the image inspection and quality control of keyboard silk screen is not only more accurate and efficient, but also can improve product quality while reducing costs, meeting the market demand for high-quality electronic products.

[0060] Step S4, iteratively adjusting the silk screen parameters corresponding to the key with the characteristic defect type using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key.

[0061] Specifically, based on the above defect analysis steps, the specific defect type of each key screen is identified. Then, one or more specific adjustment strategies are formulated for each defect type. For example, for printing skew, the adjustment strategy may include adjusting the pressure or alignment parameters of the screen printer; for color deviation, the ink formula or the amount of ink used may need to be adjusted. According to the formulated adjustment strategy, the screen printing equipment on the production line is initially adjusted. This may include physical adjustments to the hardware, changes to the software settings, or a combination of the two. After the adjustment, the adjusted keyboard screen is re-tested to evaluate the effect of the adjustment. This step repeats the image acquisition and feature extraction process described previously to ensure that the latest screen feature information is obtained. The features of the re-acquired screen image are analyzed and the differences before and after the adjustment are compared to determine whether the expected adjustment effect has been achieved. If the effect does not meet the requirements, the effectiveness of the adjustment strategy needs to be further analyzed. If the adjusted effect still does not meet the standardization requirements, the adjustment strategy is modified or refined as needed, and the adjustment, detection and evaluation process is repeated. This process may require multiple iterations until the features of the keyboard screen match the standardized screen features.

[0062] The following technical effects can be achieved through the above steps: Through this series of iterative adjustment steps, the defects of keyboard silk screen can be accurately corrected, whether it is printing skew or color deviation, it can be effectively solved. Iterative adjustment until it meets the standardization requirements ensures that the quality of each product meets the predetermined standards and improves the overall quality and market competitiveness of the product. Through effective adjustment strategies, waste caused by quality problems is reduced, production costs are reduced, and possible after-sales service costs and brand reputation losses are also reduced. With the optimization of the adjustment process, the number of iterations is reduced, the production process is smoother, and production efficiency and capacity are improved. High-quality products can enhance consumers' trust and satisfaction with the brand, and help establish a good market reputation and customer loyalty. In summary, this step achieves precise control of the quality of keyboard silk screen through detailed defect analysis and targeted adjustment strategies, which not only improves product quality, but also improves production efficiency and economic benefits.

[0063] In a specific embodiment, an image of a keyboard silk screen is obtained, and features of each key in the image of the keyboard silk screen are extracted using a preset deep learning model to obtain features of the key silk screen:

[0064] Scan the keyboard using a preset scanner to obtain an initial image of the keyboard;

[0065] Using a preset filtering algorithm to remove noise from the initial image of the keyboard to obtain an image of the keyboard silk screen;

[0066] Extracting the images within the boundaries of each key in the keyboard silk-screen image through a preset deep learning model to obtain images within the boundaries of each key;

[0067] Performing morphological adjustment on the images within the boundaries of each key to obtain each adjusted image; wherein the morphological adjustment includes expansion adjustment and / or erosion adjustment;

[0068] Performing character recognition on each of the adjusted images to obtain recognized characters;

[0069] The geometric features of the recognized characters are calculated to obtain the features of the key screen printing.

[0070] Specifically, first, a preset high-resolution scanner is used to perform a comprehensive scan of the keyboard to obtain a high-quality initial image of the keyboard. The above steps are the basis of the entire process, ensuring that the image to be processed subsequently is derived from high-quality input. A preset filtering algorithm is applied to the obtained initial image to remove noise to clarify the keyboard silk screen image. The above steps are crucial to improving image quality, which can effectively remove the noise generated during the image scanning process and improve the accuracy of image analysis. The preset deep learning model is used to identify the boundaries of each key in the processed keyboard silk screen image, and the image within the boundary of each key is extracted. The above steps usually involve complex image segmentation technology to ensure accurate identification of each key area. The extracted key image is morphologically adjusted, including dilation and erosion operations, to optimize image features for subsequent character recognition. Morphological adjustment helps to eliminate small defects in the image and strengthen the boundaries, making the characters clearer and more recognizable. Image recognition technology is used to perform character recognition on the morphologically adjusted image. The above steps are implemented through a deep learning model, which can accurately identify the characters and symbols on the keys. Finally, the geometric features of the recognized characters are calculated, such as the size, position, and shape of the characters, so as to obtain the detailed features of each key silk screen. This includes information such as the geometric size and relative position of the characters, providing quantitative data for subsequent feature comparison.

[0071] The above steps can bring the following technical effects: Through this series of detailed steps, the features of the keyboard silk screen can be extracted with high precision, providing accurate basic data for subsequent quality inspection and defect analysis. The entire process realizes automation from image acquisition to feature extraction, significantly improving processing speed and efficiency, and reducing the need for manual operation. Through morphological adjustment and advanced character recognition technology, the characters on the keys can be accurately identified, and a high recognition rate can be maintained even when the image quality is not ideal or the characters are more complex. Based on precise geometric feature calculations, the tiny defects of the keyboard silk screen, such as printing skew and color deviation, can be carefully detected, providing reliable data support for quality control. This process not only improves the accuracy and efficiency of keyboard silk screen detection, but also helps to improve the quality of the final product and the efficiency of the production line by timely identifying and correcting defects. In summary, this step achieves high-precision extraction of keyboard silk screen features through advanced image processing and deep learning technology, which not only optimizes the production process, but also provides strong technical support for ensuring product quality.

[0072] In a specific embodiment, the geometric features include character area, character outer contour perimeter, character height, and character width.

[0073] In a specific embodiment, the standardized features of each key in the keyboard are obtained, and the features of the key silk screen are compared with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain a comparison result, including:

[0074] Obtain standardized features of each key in the keyboard, and respectively perform vector conversion on the features of the key silk screen and the standardized features to obtain the feature vector features of the corresponding key silk screen and the standardized key feature vector;

[0075] The feature vectors of each button silk screen and the standardized button feature vector are optimized respectively by Lagrange multiplier method to obtain the optimized feature vectors and standardized optimized feature vectors of the corresponding button silk screen;

[0076] The optimized feature vector and the standardized optimized feature vector of each button silk screen are respectively identified by the preset BERT model to obtain the corresponding optimized feature recognition vector and the standardized optimized feature recognition vector;

[0077] Performing vector classification on each of the optimized feature recognition vectors and the standardized optimized feature recognition vectors through a preset support vector machine to obtain a corresponding optimized feature recognition vector and a standardized optimized feature recognition vector;

[0078] The preset mapping algorithm is used to map and compare the optimized feature vectors and the standardized optimized feature vectors one by one to obtain a comparison result.

[0079] Specifically, standardized features are obtained from each button, and these features and the corresponding button silk screen features are converted into vector form to form feature vectors and standardized feature vectors. The Lagrange multiplier method is used to optimize the feature vectors of each button silk screen and the standardized button feature vectors to generate optimized feature vectors. The preset BERT model is used to process the optimized feature vectors to obtain optimized feature recognition vectors and standardized optimized feature recognition vectors. The optimized recognition vectors are classified using a support vector machine (SVM) to obtain the final optimized feature classification vectors and standardized optimized feature classification vectors. The optimized feature classification vectors are compared one by one through a mapping algorithm to obtain the final comparison results, thereby judging the silk screen quality of each button.

[0080] The above steps can bring the following technical effects: Using the advanced BERT model and SVM, the silk screen features of keyboard keys can be identified and classified with high precision, improving the accuracy of feature extraction. The feature vector optimized by the Lagrange multiplier method can better reflect the silk screen features of the keys, which helps to improve the accuracy of subsequent recognition and classification. The entire process has a high degree of automation, from feature extraction to feature comparison, which reduces manual intervention and improves detection efficiency. The above process can analyze the silk screen quality of each key in detail, which helps to timely discover and correct problems in the production process and improve the quality of the final product. Through quantified feature vectors and comparison results, data-driven decision support is provided, which helps to optimize the production process and accurately control quality. Through the above steps, detailed and accurate detection of keyboard silk screen can be achieved, providing strong technical support for improving production efficiency and product quality.

[0081] In a specific embodiment, defect analysis is performed on the features of the button silk screen based on the comparison result to obtain a feature defect type, and a corresponding adjustment strategy is obtained based on the feature defect type, including:

[0082] Based on the comparison results, defect analysis is performed on the features of the button silk screen to obtain multiple initial defect types;

[0083] Each initial defect type is preliminarily clustered by a preset clustering algorithm to obtain multiple initial clusters;

[0084] The initial defect types in each initial cluster are averaged to obtain the corresponding cluster center;

[0085] Calculate the distances between multiple initial defect types and each cluster center to obtain distance values;

[0086] Iteratively assigning each of the initial defect types based on the distance value to obtain a plurality of target clusters;

[0087] A characteristic defect type is obtained based on each target cluster, and a corresponding adjustment strategy is obtained based on the characteristic defect type.

[0088] Specifically, first, the initial defect type in the button silk screen is identified through comparative analysis. The above steps require detailed inspection of the differences between the silk screen results and the expected results, such as deviations in color, shape, position, etc. The above initial defect types are classified using a preset clustering algorithm (such as K-means, DBSCAN, etc.). The purpose of the above steps is to classify similar defects into one category to form multiple initial clusters. The defects within each initial cluster are averaged to obtain a cluster center representing the characteristics of the cluster. The above steps help to determine the "center" or "average" defect type of each cluster. Calculate the distance from each initial defect type to each cluster center. The above distance can be Euclidean distance, Manhattan distance or other suitable distance measurement methods. According to the distance value obtained in the previous step, the initial defect type is iteratively redistributed to the cluster represented by the nearest cluster center. This process may be repeated many times until some form of convergence condition is reached (for example, no defect type changes the cluster to which it belongs). Finally, the characteristic defect type is determined based on the formed target cluster, and a targeted adjustment strategy is formulated accordingly. These strategies may include improving the screen printing process, adjusting the screen or ink configuration, optimizing operating parameters, etc.

[0089] The above steps can bring the following technical effects: The automated defect analysis and clustering process is much faster than manual inspection, and can quickly identify and classify defect types. Reduce subjective judgment errors that may occur during defect analysis. By accurately identifying defect types and causes, the production process can be adjusted more targeted to reduce the incidence of future defects. The ultimate goal is to improve the overall quality and consistency of button screen printing by optimizing adjustment strategies. This method optimizes production processes in a data-driven way, improves efficiency and product quality, and is of great value to companies that produce high-quality products.

[0090] In a specific embodiment, the silk screen parameters corresponding to the key with the characteristic defect type are iteratively adjusted using a corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key, including:

[0091] Match the button silk screen features of various defect types with the corresponding adjustment parameters to obtain the adjustment parameters corresponding to each defect type;

[0092] Performing parameter fitting on the adjustment parameter by using a preset fitting algorithm to obtain a fitting parameter;

[0093] Identifying missing values ​​and outliers in the fitting parameters, and eliminating the missing values ​​and outliers to obtain eliminated fitting parameters;

[0094] Based on the various defect types, parameter constraints are imposed on the elimination fitting parameters to obtain constrained fitting parameters; wherein the parameter constraints include upper and lower bounds of the constraint elimination fitting parameters;

[0095] The constraint fitting parameters are iteratively adjusted using a linear relaxation model until the adjusted keyboard silk screen is identical to the standardized silk screen on the key.

[0096] Specifically, first, the silk screen features of buttons with different defect types are matched with the corresponding adjustment parameters. According to each defect type (such as light color, position offset, etc.), the silk screen parameters that need to be adjusted (such as ink concentration, silk screen pressure, positioning accuracy, etc.) are determined. The above adjustment parameters are fitted using a preset fitting algorithm (for example, linear regression, polynomial regression, etc.) to obtain a set of fitting parameters that can best describe the relationship between parameters and defects. Missing values ​​and outliers are identified and eliminated in the fitting parameters. This is to ensure that the data based on the subsequent steps is as accurate as possible and to avoid the adverse effects of abnormal data on parameter adjustment. Parameter constraints are imposed on the fitting parameters after elimination, including setting the upper and lower bounds of the parameters. The above steps ensure that the parameter adjustment is carried out within a reasonable range to prevent excessive adjustment from causing other types of defects. The constrained fitting parameters are iteratively adjusted using a linear relaxation model. By gradually adjusting the silk screen parameters, the adjusted button silk screen gradually approaches the standardized silk screen effect.

[0097] The above steps can bring the following technical effects: It is possible to accurately adjust the silk screen parameters for specific defect types, improving the pertinence and efficiency of the adjustment. Through iterative adjustment, the quality of the button silk screen is gradually optimized to reach or approach the predetermined standard. The rework or scrap rate caused by substandard silk screen quality is effectively reduced, saving costs. The silk screen printing process is optimized in a data-driven manner to improve the stability and predictability of the production process. The entire adjustment process can achieve a high degree of automation, reduce manual intervention, and reduce human errors. The above method uses data analysis and machine learning technology to intelligently optimize the production process, which not only improves product quality, but also enhances production efficiency and economic benefits, which is of great significance to improving the technical level of the manufacturing industry.

[0098] The above describes the keyboard screen image detection method in the embodiment of the present invention. The following describes the keyboard screen image detection device in the embodiment of the present invention. Figure 2 , an embodiment of the image detection device for keyboard silk screen in the embodiment of the present invention includes:

[0099] An acquisition module 21 is used to acquire an image of a keyboard silk screen, and extract features of each key in the image of the keyboard silk screen by using a preset deep learning model to obtain features of the key silk screen;

[0100] The comparison module 22 is used to obtain the standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding key one by one through a preset mapping algorithm to obtain a comparison result; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys;

[0101] The analysis module 23 is used to perform defect analysis on the characteristics of the key screen printing based on the comparison result, obtain the characteristic defect type, and obtain the corresponding adjustment strategy based on the characteristic defect type; wherein the characteristic defect type includes printing deviation and color deviation of the keyboard screen printing;

[0102] The adjustment module 24 is used to iteratively adjust the silk screen parameters corresponding to the key with the characteristic defect type by using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key.

[0103] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.

[0104] Reference Figure 3 The present invention also provides a computer device in an embodiment, wherein the internal structure of the computer device can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device system, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0105] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0106] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0108] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0109] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A keyboard screen printing image detection method, characterized in that: The following steps are involved: Acquire an image of the keyboard silk screen, and extract features of each key in the image of the keyboard silk screen by using a preset deep learning model to obtain features of the key silk screen; Obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain comparison results; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys; Based on the comparison results, defect analysis is performed on the characteristics of the key screen printing to obtain characteristic defect types, and corresponding adjustment strategies are obtained based on the characteristic defect types; wherein the characteristic defect types include printing deviation and color deviation of the keyboard screen printing; Iteratively adjusting the silk screen parameters corresponding to the key with the characteristic defect type by using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key; Obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain comparison results, including: Obtain standardized features of each key in the keyboard, and respectively perform vector conversion on the features of the key silk screen and the standardized features to obtain a feature vector of the corresponding key silk screen and a standardized key feature vector; The feature vectors of each button silk screen printing and the standardized button feature vector are optimized respectively by Lagrange multiplier method to obtain the optimized feature vectors and standardized optimized feature vectors of the corresponding button silk screen printing; The optimized feature vector and the standardized optimized feature vector of each button silk screen are respectively identified by the preset BERT model to obtain the corresponding optimized feature recognition vector and the standardized optimized feature recognition vector; Performing vector classification on each of the optimized feature recognition vectors and the standardized optimized feature recognition vectors through a preset support vector machine to obtain a corresponding optimized feature recognition vector and a standardized optimized feature recognition vector; A preset mapping algorithm is used to perform one-to-one mapping comparison on each of the optimized feature vectors and the standardized optimized feature vectors to obtain a comparison result.

2. The method for detecting keyboard screen printing image according to claim 1, characterized in that: Get an image of the keyboard silk screen, and use a preset deep learning model to extract features of each key in the image of the keyboard silk screen to obtain the features of the key silk screen: Scan the keyboard using a preset scanner to obtain an initial image of the keyboard; Using a preset filtering algorithm to remove noise from the initial image of the keyboard to obtain an image of the keyboard silk screen; Extracting the image within the boundary of each key in the keyboard silk-screen image through a preset deep learning model to obtain the image within the boundary of each key; Performing morphological adjustment on the images within the boundaries of each key to obtain each adjusted image; wherein the morphological adjustment includes expansion adjustment and / or erosion adjustment; Performing character recognition on each of the adjusted images to obtain recognized characters; The geometric features of the recognized characters are calculated to obtain the features of the key screen printing.

3. The method for detecting keyboard screen printing image according to claim 2, characterized in that: The geometric features include character area, character outer contour perimeter, character height, and character width.

4. The method for detecting keyboard screen printing image according to claim 1, characterized in that: Based on the comparison result, defect analysis is performed on the features of the button silk screen to obtain a feature defect type, and a corresponding adjustment strategy is obtained based on the feature defect type, including: Based on the comparison results, defect analysis is performed on the features of the button silk screen to obtain multiple initial defect types; Each initial defect type is preliminarily clustered by a preset clustering algorithm to obtain multiple initial clusters; The initial defect types in each initial cluster are averaged to obtain the corresponding cluster center; Calculate the distances between multiple initial defect types and each cluster center to obtain corresponding distance values; Iteratively assigning each of the initial defect types based on each of the distance values ​​to obtain a plurality of target clusters; A characteristic defect type is obtained based on each target cluster, and a corresponding adjustment strategy is obtained based on the characteristic defect type.

5. The keyboard screen image detection method according to claim 1, characterized in that: Iteratively adjusting the silk screen parameters corresponding to the key with the characteristic defect type by using the corresponding adjustment strategy until the adjusted keyboard silk screen is the same as the standardized silk screen on the key, including: Match the button silk screen features of various defect types with the corresponding adjustment parameters to obtain the adjustment parameters corresponding to each defect type; Performing parameter fitting on the adjustment parameter by using a preset fitting algorithm to obtain a fitting parameter; Identifying missing values ​​and outliers in the fitting parameters, and eliminating the missing values ​​and outliers to obtain eliminated fitting parameters; Based on the various defect types, parameter constraints are imposed on the elimination fitting parameters to obtain constrained fitting parameters; wherein the parameter constraints include upper and lower bounds of the constraint elimination fitting parameters; The constraint fitting parameters are iteratively adjusted using a linear relaxation model until the adjusted keyboard silk screen is the same as the standardized silk screen on the key.

6. A keyboard screen printing image detection device, characterized in that: include: An acquisition module is used to acquire an image of a keyboard silk screen, and extract features of each key in the image of the keyboard silk screen by using a preset deep learning model to obtain features of the key silk screen; A comparison module is used to obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding key one by one through a preset mapping algorithm to obtain a comparison result; wherein the mapping algorithm is a pre-trained algorithm; and the number of the comparison results is the same as the number of the keys; An analysis module, used to perform defect analysis on the characteristics of the key screen printing based on the comparison results, obtain characteristic defect types, and obtain corresponding adjustment strategies based on the characteristic defect types; wherein the characteristic defect types include printing skew and color deviation of the keyboard screen printing; An adjustment module, used for iteratively adjusting the silk screen parameters corresponding to the key with the characteristic defect type by using a corresponding adjustment strategy, until the adjusted keyboard silk screen is the same as the standardized silk screen on the key; Obtain standardized features of each key in the keyboard, and compare the features of the key silk screen with the standardized features of the corresponding keys one by one through a preset mapping algorithm to obtain comparison results, including: Obtain standardized features of each key in the keyboard, and respectively perform vector conversion on the features of the key silk screen and the standardized features to obtain a feature vector of the corresponding key silk screen and a standardized key feature vector; The feature vectors of each button silk screen printing and the standardized button feature vector are optimized respectively by Lagrange multiplier method to obtain the optimized feature vectors and standardized optimized feature vectors of the corresponding button silk screen printing; The optimized feature vector and the standardized optimized feature vector of each button silk screen are respectively identified by the preset BERT model to obtain the corresponding optimized feature recognition vector and the standardized optimized feature recognition vector; Performing vector classification on each of the optimized feature recognition vectors and the standardized optimized feature recognition vectors through a preset support vector machine to obtain a corresponding optimized feature recognition vector and a standardized optimized feature recognition vector; A preset mapping algorithm is used to perform one-to-one mapping comparison on each of the optimized feature vectors and the standardized optimized feature vectors to obtain a comparison result.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.