CN112634259A - Automatic modeling and positioning method for keyboard keycaps - Google Patents

Automatic modeling and positioning method for keyboard keycaps Download PDF

Info

Publication number
CN112634259A
CN112634259A CN202011626981.2A CN202011626981A CN112634259A CN 112634259 A CN112634259 A CN 112634259A CN 202011626981 A CN202011626981 A CN 202011626981A CN 112634259 A CN112634259 A CN 112634259A
Authority
CN
China
Prior art keywords
keyboard
modeling
detected
parameters
keycap
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011626981.2A
Other languages
Chinese (zh)
Inventor
朱永吉
贺建平
赵敏
戴志强
金刚
赵严
姚毅
杨艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Luster LightTech Co Ltd
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd
Original Assignee
Luster LightTech Co Ltd
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Luster LightTech Co Ltd, Suzhou Luster Vision Intelligent Device Co Ltd, Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd filed Critical Luster LightTech Co Ltd
Priority to CN202011626981.2A priority Critical patent/CN112634259A/en
Publication of CN112634259A publication Critical patent/CN112634259A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

本申请属于工业视觉检测技术领域,尤其涉及一种键盘键帽自动建模定位方法。传统的键盘检测方法中,在便捷性、适应性上存在一定缺陷,难以满足键盘制造厂商在线批量检测的需求。尤其在键盘的批量检测中,多个机台同时运行时,模板适应性差导致产品的漏检率及过杀率偏高。本申请的键盘键帽自动建模定位方法,通过采用标准模板库以及预设参数快速对应建模,建模方式简单,具有较高的便捷性与可维护性;同时本申请中的标准模板具有较高的适应性,可适用于不同检测机台,完成对键盘的高质量快速检测,检测精度高且适用范围广泛,适于在工业视觉领域中键盘的流水线检测方面进行推广运用。

Figure 202011626981

The application belongs to the technical field of industrial visual inspection, and in particular relates to a method for automatic modeling and positioning of keyboard keycaps. In the traditional keyboard detection method, there are certain defects in convenience and adaptability, and it is difficult to meet the needs of keyboard manufacturers for online batch detection. Especially in the batch testing of keyboards, when multiple machines are running at the same time, the poor adaptability of the template leads to a high missed detection rate and overkill rate of the product. The automatic modeling and positioning method for keyboard keycaps of the present application uses a standard template library and preset parameters to quickly correspond to modeling, the modeling method is simple, and has high convenience and maintainability; at the same time, the standard template in the present application has It has high adaptability and can be applied to different testing machines to complete high-quality and rapid testing of keyboards. It has high testing accuracy and a wide range of applications. It is suitable for popularization and application in the pipeline testing of keyboards in the field of industrial vision.

Figure 202011626981

Description

Automatic modeling and positioning method for keyboard keycaps
Technical Field
The application relates to the technical field of industrial vision detection, in particular to an automatic modeling and positioning method for a keyboard and a keycap.
Background
The keyboard is used as a main input device of the electronic equipment and can be put into the market after being checked to be qualified. Various solutions have been developed for the industrial visual inspection of keyboards. In many detection schemes, the comparison and detection of machine vision requires key cap feature modeling for an actual keyboard, and then detailed comparison with a standard template is performed so as to evaluate whether the keyboard meets the standard or not.
Therefore, the key cap characteristic modeling is used as a core part of keyboard detection, and the quality of the keyboard detection is directly determined by the effect of the key cap characteristic modeling. The traditional keycap modeling method has certain defects in convenience and adaptability, and the requirement of keyboard manufacturers for online batch detection is difficult to meet. Due to the fact that the keyboard is various in types, and the characters, the formats and the sizes of keycaps are different among different countries, even if the same country produces various types of keyboards with different specifications and standards in different industrial scenes. The key cap feature modeling is complicated, and the modeling speed and accuracy of engineers are greatly influenced. In batch production, a plurality of machines run simultaneously, and poor template adaptability can result in higher product omission ratio and over-killing rate.
In summary, a method for detecting key caps of a keyboard with wide adaptability, high efficiency and high precision is needed.
Disclosure of Invention
The application provides an automatic modeling and positioning method for a keyboard keycap, and aims to solve the problems of complex modeling, poor efficiency and accuracy and weak adaptability of the conventional keyboard keycap detection method.
The technical scheme adopted by the application is as follows:
an automatic modeling and positioning method for a keyboard keycap comprises the following steps:
establishing a standard template library of a keyboard keycap, wherein each standard template in the standard template library stores key outline image information of the standard template and image information of key characters;
shooting a keyboard to be detected through a camera to obtain image information of the keyboard to be detected;
presetting modeling parameters according to image information of a keyboard to be detected, and performing keycap characteristic modeling according to a standard template library of keycaps of the keyboard to obtain keycap modeling image parameters of the keyboard to be detected;
the keycap modeling image parameters of the keyboard to be detected are compared with the image information parameters of the standard template, difference characteristics are searched, and detection of the keyboard quality is achieved.
Optionally, the step of shooting the keyboard to be detected through the camera to obtain the image information of the keyboard to be detected includes:
the camera is a double camera, and the complete image splicing is realized through the global positioning characteristic to obtain the image information of the keyboard to be detected.
Optionally, after the step of obtaining the image information of the keyboard to be detected by the two cameras, respectively performing keycap feature modeling on the two images shot by the two cameras in the modeling process, and performing image parameter splicing by using the global positioning feature, thereby obtaining the complete keycap modeling image parameters of the keyboard to be detected.
Optionally, in the step of obtaining a key cap modeling image parameter of the keyboard to be detected by presetting a modeling parameter for the image information of the keyboard to be detected and performing key cap feature modeling according to a standard template library of key caps of the keyboard, the key cap feature modeling is based on three feature parameters, namely, a key cap region feature parameter, a character region feature parameter and a line finding region feature parameter.
Optionally, in the step of obtaining the key cap modeling image parameters of the keyboard to be detected by presetting the modeling parameters of the image information of the keyboard to be detected and performing key cap feature modeling according to the standard template library of the key caps of the keyboard, the method includes:
processing the image information of the keyboard to be detected into binary image information through global binarization;
performing region analysis on the binary image information to obtain modeling characteristic parameters;
and carrying out positioning training according to the modeling characteristic parameters to obtain the complete keycap modeling image parameters of the keyboard to be detected.
Optionally, the area analysis is Blob analysis, key cap area characteristic parameters and character area characteristic parameters are obtained through the Blob analysis, a line finding tool is set according to the key cap area characteristic parameters, an accurate line is found, and the line finding area characteristic parameters are obtained.
Optionally, the modeling characteristic parameters include key cap region characteristic parameters, character region characteristic parameters and line finding region characteristic parameters.
Optionally, in the step of comparing the keycap modeling image parameter of the keyboard to be detected with the image information parameter of the standard template, searching for a difference characteristic, and realizing the detection of the keyboard quality, the method includes:
and performing Pattern inspection training on the key cap modeling image parameters of the complete keyboard to be detected, comparing the key cap modeling image parameters of the keyboard to be detected with preset regions of a standard template, searching for difference characteristics, and integrating the difference characteristics of all the regions to realize the detection of the keyboard quality.
Optionally, the method for automatically modeling and positioning a key cap of a keyboard includes:
the global binarization adopts a global self-adaptive mode to carry out image binarization, so that the characteristic enhancement of a keycap area and a character area is realized, and an interference area causing the connection of two keycap black areas is set as a filling area;
through the Blob analysis obtains the black key cap region, filters through the Blob screening and gets rid of the interference Blob, and the hole in the black key cap region is the character region promptly, looks for the line region and sets up according to Blob's external rectangle.
Optionally, in the step of obtaining the key cap modeling image parameters of the keyboard to be detected by presetting the modeling parameters of the image information of the keyboard to be detected and performing key cap feature modeling according to the standard template library of the key caps of the keyboard, the method includes:
and zooming the standard template in the corresponding standard template library according to the actual size of the keyboard to be detected, so that the size of the zoomed standard template is the same as the actual size of the keyboard to be detected.
The technical scheme of the application has the following beneficial effects:
according to the method, the standard template library and the preset parameters are adopted for rapid corresponding modeling, so that the modeling mode is simple, and the method has high convenience and maintainability; simultaneously standard template in this application has higher adaptability, and applicable in different detection board accomplishes the high quality short-term test to the keyboard, detects the high just application scope of precision extensively, is suitable for and popularizes and applies in the aspect of the assembly line detection of keyboard in the industry vision field.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block flow diagram of one embodiment of the present application;
FIG. 2 is a schematic diagram of a modeling area in an embodiment of the present application;
FIG. 3 is a schematic flow chart of modeling in an embodiment of the present application;
FIG. 4 is a diagram of a global positioning core in an embodiment of the present application;
FIG. 5 is a diagram of a character area in an embodiment of the present application;
FIG. 6 is a diagram illustrating a line finding area in an embodiment of the present application;
fig. 7 is a schematic diagram of an interference region in the embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited in the claims.
Referring to fig. 1, a flow diagram of an embodiment of the present application is shown.
The application provides a keyboard key cap automatic modeling and positioning method, which comprises the following steps:
s101, establishing a standard template library of a keyboard keycap, wherein each standard template in the standard template library stores key outline image information of the standard template and key character image information;
s102, shooting a keyboard to be detected through a camera to acquire image information of the keyboard to be detected;
s103, presetting modeling parameters according to image information of the keyboard to be detected, and performing keycap characteristic modeling according to a standard template library of keycaps of the keyboard to obtain keycap modeling image parameters of the keyboard to be detected;
and S104, comparing the keycap modeling image parameters of the keyboard to be detected with the image information parameters of the standard template, searching for difference characteristics, and realizing the detection of the keyboard quality.
In the embodiment, because the standard template library of the keyboard keycaps is established, illustratively, the standard template library can be preset with keyboard parameter information of various national standards of all countries, so that the standard template database with rich original data is formed, the time for real-time modeling in response to different keyboard types and specifications is saved, and the database calling has efficient and accurate technical effects.
Optionally, the step of shooting the keyboard to be detected through the camera to obtain the image information of the keyboard to be detected includes:
the camera is a double camera, and the complete image splicing is realized through the global positioning characteristic to obtain the image information of the keyboard to be detected.
In the embodiment, because the keyboard is long, the shooting of a single camera is difficult to cover the whole keyboard, so that the shooting of double cameras is adopted, and the spliced complete image is realized through the global positioning characteristic. And during modeling, the two images are subjected to modeling processing respectively. Of course, as another possible embodiment, the two images are first combined into a complete image and then subjected to modeling processing, which is also obvious based on this embodiment, and thus the invention also belongs to the protection scope of the inventive concept of this embodiment.
Optionally, after the step of obtaining the image information of the keyboard to be detected by the two cameras, respectively performing keycap feature modeling on the two images shot by the two cameras in the modeling process, and performing image parameter splicing by using the global positioning feature, thereby obtaining the complete keycap modeling image parameters of the keyboard to be detected.
Optionally, in the step of obtaining a key cap modeling image parameter of the keyboard to be detected by presetting a modeling parameter for the image information of the keyboard to be detected and performing key cap feature modeling according to a standard template library of key caps of the keyboard, the key cap feature modeling is based on three feature parameters, namely, a key cap region feature parameter, a character region feature parameter and a line finding region feature parameter.
Referring to fig. 2, in the present embodiment, the key cap region characteristic parameters, the character region characteristic parameters and the line finding region characteristic parameters required for modeling are based on the corresponding key cap region, the character region and the line finding region. The keycap area is located in the area surrounded by the larger rectangle in fig. 2, the character area is the smallest external rectangle area of the character in the figure, and the line finding area is the area of the three strip rectangles at the outermost periphery.
Optionally, in the step of obtaining the key cap modeling image parameters of the keyboard to be detected by presetting the modeling parameters of the image information of the keyboard to be detected and performing key cap feature modeling according to the standard template library of the key caps of the keyboard, the method includes:
s3001, processing the image information of the keyboard to be detected into binary image information through global binarization;
s3002, carrying out region analysis on the binary image information to obtain modeling characteristic parameters;
and S3003, performing positioning training according to the modeling characteristic parameters, and acquiring complete keycap modeling image parameters of the keyboard to be detected.
Referring to fig. 3 and 4, in the present embodiment, in the positioning training, a global positioning kernel needs to be determined, a splicing parameter feature is provided for splicing two images, and the positioning training is performed according to the same region in the two images, so that accurate positioning is realized, and a complete key cap modeling image parameter of the keyboard to be detected is obtained. For example, in fig. 4, the two images both include a space key, so that the space key is used as a global positioning core, and after positioning training, the key cap modeling image parameters of the complete keyboard to be detected can be accurately positioned and acquired.
Illustratively, in the actual modeling process, a modeling area is set: the modeling area mainly comprises a detection area (the area is subjected to Blob analysis and used for extracting key cap area characteristics and character area characteristics), a non-detection area (the area is mainly a direction key, an Enter key and the like which do not participate in detection), a filling area (the area is mainly provided with repeated key caps, interference areas and the like in the detection areas of the two images) and a global positioning area (the area is a common area of the two images, and the area is provided with global positioning characteristics used for image splicing).
Illustratively, the region analysis is Blob analysis, which includes Blob filtering, specifically: filter out all blobs (target + holes) of non-detection regions; filtering out elongated Blob according to the length-width ratio of the keycap specification of the product information; filtering out smaller black Blob according to the area of the keycap; filtering out the black Blob without the hole sub Blob; and ordering the blobs meeting the conditions according to the center coordinates in an increasing manner of Y, and arranging the blobs in the same row in an increasing manner of X into a two-dimensional matrix. Verifying that the Y coordinate deviation of the centers of the blobs in the same row does not exceed 20 pixels.
The character area for the keycap in the modeling, as shown in FIG. 5: the white hole in each keycap black Blob is externally connected with a rectangle, and the external rectangle is expanded for a certain distance to form a character area. If the character is a plurality of characters, the maximum external rectangle expansion distance of all the characters is taken as the character area. The keycap has three line finding areas, as shown in fig. 6: the left side, the right side and the upper side of a line finding tool for preliminarily setting the keycaps are shown as arrows, the positions of three edges of the area of the Blob are arranged, the positions can be slightly inside, the middle line position can be set to be 0.5 times of the distance between the keycaps which are retracted from the edge positions, and the width is the distance between the keycaps.
In another embodiment, the sorting of keycap IDs can be performed: for the convenience, the key caps can be numbered when modeling, key cap region coordinate information obtained through Blob analysis results is sorted from small to large according to the X/Y direction, and key cap IDs are unified.
Optionally, the area analysis is Blob analysis, key cap area characteristic parameters and character area characteristic parameters are obtained through the Blob analysis, a line finding tool is set according to the key cap area characteristic parameters, an accurate line is found, and the line finding area characteristic parameters are obtained.
Optionally, the modeling characteristic parameters include key cap region characteristic parameters, character region characteristic parameters and line finding region characteristic parameters.
Optionally, in the step of comparing the keycap modeling image parameter of the keyboard to be detected with the image information parameter of the standard template, searching for a difference characteristic, and realizing the detection of the keyboard quality, the method includes:
and performing Pattern inspection training on the key cap modeling image parameters of the complete keyboard to be detected, comparing the key cap modeling image parameters of the keyboard to be detected with preset regions of a standard template, searching for difference characteristics, and integrating the difference characteristics of all the regions to realize the detection of the keyboard quality.
Optionally, the method for automatically modeling and positioning a key cap of a keyboard includes:
the global binarization adopts a global self-adaptive mode to carry out image binarization, so that the characteristic enhancement of a keycap area and a character area is realized, and an interference area causing the connection of two keycap black areas is set as a filling area;
through the Blob analysis obtains the black key cap region, filters through the Blob screening and gets rid of the interference Blob, and the hole in the black key cap region is the character region promptly, looks for the line region and sets up according to Blob's external rectangle.
Referring to fig. 7, for example, as shown by a rectangular line frame in the figure, the interference region may cause the black regions of the two keycaps to be connected, a filling region may be provided, and the interference region in the binarized image is filled to 255, so as to eliminate the interference.
Optionally, in the step of obtaining the key cap modeling image parameters of the keyboard to be detected by presetting the modeling parameters of the image information of the keyboard to be detected and performing key cap feature modeling according to the standard template library of the key caps of the keyboard, the method includes:
and zooming the standard template in the corresponding standard template library according to the actual size of the keyboard to be detected, so that the size of the zoomed standard template is the same as the actual size of the keyboard to be detected.
In this embodiment, the image scaling needs to be determined: due to the difference of hardware of different detection machine platforms, the imaging of the same type of keyboard can be scaled in size, and in order to improve the applicability of the template, the specific size calculation needs to be carried out on the template, so that the proportion calculation is carried out according to the corresponding actual specific size during detection, the image scaling is realized, and the detection precision is improved; and (3) obtaining the upper edge line segment of the uppermost key cap and the edge line segments of the key caps on the left side and the right side through the key cap line finding area, and calculating the distance from the line segments to the edge line segment of the global positioning core, thereby accurately zooming after obtaining a specific size. In addition, for the present embodiment, it is needless to say that: when the size of the scaled standard template is very close to the actual size of the keyboard to be detected, the standard template is also regarded as the same and should not be regarded as a size which does not meet the standard, so that the over-killing rate is high. Therefore, the "same" in this embodiment also has similar inclusion, and should have certain elasticity.
According to the method, the standard template library and the preset parameters are adopted for rapid corresponding modeling, so that the modeling mode is simple, and the method has high convenience and maintainability; simultaneously standard template in this application has higher adaptability, and applicable in different detection board accomplishes the high quality short-term test to the keyboard, detects the high just application scope of precision extensively, is suitable for and popularizes and applies in the aspect of the assembly line detection of keyboard in the industry vision field.
The embodiments provided in the present application are only a few examples of the general concept of the present application, and do not limit the scope of the present application. Any other embodiments extended according to the scheme of the present application without inventive efforts will be within the scope of protection of the present application for a person skilled in the art.

Claims (10)

1.一种键盘键帽自动建模定位方法,其特征在于,包括以下步骤:1. a keyboard keycap automatic modeling positioning method, is characterized in that, comprises the following steps: 建立键盘键帽的标准模板库,所述标准模板库中的每一个标准模板存储有该标准模板的按键轮廓图像信息以及按键字符的图像信息;A standard template library of keyboard keycaps is established, and each standard template in the standard template library stores the image information of the key outline and the image information of the key characters of the standard template; 通过相机对待检测键盘进行拍摄,获取待检测键盘的图像信息;Shoot the keyboard to be detected by the camera, and obtain the image information of the keyboard to be detected; 通过对待检测键盘的图像信息预设建模参数,根据键盘键帽的标准模板库进行键帽特征建模,获得待检测键盘的键帽建模图像参数;By presetting the modeling parameters of the image information of the keyboard to be detected, the keycap feature modeling is performed according to the standard template library of the keyboard keycaps, and the keycap modeling image parameters of the keyboard to be detected are obtained; 通过将待检测键盘的键帽建模图像参数与标准模板的图像信息参数进行比对,寻找差异特征,实现对键盘质量的检测。The quality of the keyboard is detected by comparing the image parameters of the keycap modeling of the keyboard to be detected with the image information parameters of the standard template to find differences. 2.根据权利要求1所述的键盘键帽自动建模定位方法,其特征在于,所述通过相机对待检测键盘进行拍摄,获取待检测键盘的图像信息的步骤中,包括:2. The method for automatic modeling and positioning of keyboard keycaps according to claim 1, wherein the step of photographing the keyboard to be detected by a camera to obtain image information of the keyboard to be detected comprises: 所述相机为双相机,通过全局定位特征实现拼合完整图像,获取待检测键盘的图像信息。The camera is a dual camera, and a complete image is assembled through the global positioning feature, and the image information of the keyboard to be detected is obtained. 3.根据权利要求2所述的键盘键帽自动建模定位方法,其特征在于,通过所述双相机获取待检测键盘的图像信息的步骤之后,在建模过程中采用对双相机拍摄的两幅图像分别进行键帽特征建模,通过全局定位特征进行图像参数的拼接,从而获取完整的待检测键盘的键帽建模图像参数。3. The method for automatic modeling and positioning of keyboard keycaps according to claim 2, characterized in that, after the step of acquiring the image information of the keyboard to be detected by the dual cameras, in the modeling process, two images taken by the dual cameras are used. The keycap feature modeling of each image is performed separately, and the image parameters are spliced through the global positioning feature, so as to obtain the complete keycap modeling image parameters of the keyboard to be detected. 4.根据权利要求1所述的键盘键帽自动建模定位方法,其特征在于,在所述通过对待检测键盘的图像信息预设建模参数,根据键盘键帽的标准模板库进行键帽特征建模,获得待检测键盘的键帽建模图像参数的步骤中,所述键帽特征建模基于键帽区域特征参数、字符区域特征参数以及找线区域特征参数三种特征参数。4. The method for automatic modeling and positioning of keyboard keycaps according to claim 1, wherein in the described preset modeling parameters by the image information of the keyboard to be detected, the keycap feature is carried out according to the standard template library of keyboard keycaps Modeling, in the step of obtaining the keycap modeling image parameters of the keyboard to be detected, the keycap feature modeling is based on three feature parameters: keycap region feature parameters, character region feature parameters, and line-finding region feature parameters. 5.根据权利要求2所述的键盘键帽自动建模定位方法,其特征在于,在所述通过对待检测键盘的图像信息预设建模参数,根据键盘键帽的标准模板库进行键帽特征建模,获得待检测键盘的键帽建模图像参数的步骤中,包括:5. The method for automatic modeling and positioning of keyboard keycaps according to claim 2, wherein in the described preset modeling parameters by the image information of the keyboard to be detected, the keycap feature is carried out according to the standard template library of keyboard keycaps Modeling, the steps of obtaining the keycap modeling image parameters of the keyboard to be detected include: 将所述待检测键盘的图像信息通过全局二值化处理为二值图像信息;processing the image information of the keyboard to be detected into binary image information through global binarization; 对所述二值图像信息进行区域分析,获取建模特征参数;Performing regional analysis on the binary image information to obtain modeling feature parameters; 根据所述建模特征参数进行定位训练,获取完整的待检测键盘的键帽建模图像参数。Positioning training is performed according to the modeling feature parameters, and the complete keycap modeling image parameters of the keyboard to be detected are obtained. 6.根据权利要求5所述的键盘键帽自动建模定位方法,其特征在于,所述区域分析为Blob分析,通过所述Blob分析获取键帽区域特征参数和字符区域特征参数,并根据键帽区域特征参数设置找线工具,找到准确的线,从而获取找线区域特征参数。6. keyboard keycap automatic modeling positioning method according to claim 5, is characterized in that, described area analysis is Blob analysis, obtain keycap area characteristic parameter and character area characteristic parameter by described Blob analysis, and according to key The feature parameters of the cap area are set to find the line tool to find the exact line, so as to obtain the feature parameters of the line search area. 7.根据权利要求5所述的键盘键帽自动建模定位方法,其特征在于,所述建模特征参数包括键帽区域特征参数、字符区域特征参数以及找线区域特征参数。7 . The method for automatic modeling and positioning of keyboard keycaps according to claim 5 , wherein the modeling feature parameters include keycap region feature parameters, character region feature parameters, and line-finding region feature parameters. 8 . 8.根据权利要求5所述的键盘键帽自动建模定位方法,其特征在于,在所述通过将待检测键盘的键帽建模图像参数与标准模板的图像信息参数进行比对,寻找差异特征,实现对键盘质量的检测的步骤中,包括:8. The method for automatic modeling and positioning of keyboard keycaps according to claim 5, characterized in that, in the described method, by comparing the image information parameters of the keycap modeling image parameters of the keyboard to be detected with the image information parameters of the standard template, to find differences Features, in the steps of realizing the detection of keyboard quality, including: 对所述完整的待检测键盘的键帽建模图像参数进行PatternInspect训练,通过将待检测键盘的键帽建模图像参数与标准模板的预设区域进行比对,寻找差异特征,综合所有区域的差异特征实现对键盘质量的检测。PatternInspect training is carried out to the keycap modeling image parameters of the complete keyboard to be detected, by comparing the keycap modeling image parameters of the keyboard to be detected with the preset area of the standard template, looking for difference features, synthesizing all regions. The difference feature realizes the detection of keyboard quality. 9.根据权利要求6所述的键盘键帽自动建模定位方法,其特征在于,包括:9. keyboard keycap automatic modeling positioning method according to claim 6, is characterized in that, comprising: 全局二值化采用全局自适应方式进行图像二值化,实现键帽区域与字符区域的特征增强,将导致两个键帽黑色区域相连的干扰区域设置为填充区域;The global binarization adopts the global adaptive method to perform image binarization, realizes the feature enhancement of the keycap area and the character area, and sets the interference area that leads to the connection of the black areas of the two keycaps as the filling area; 通过所述Blob分析,得到黑色键帽区域,通过Blob筛选过滤去除掉干扰Blob,黑色键帽区域内的孔洞即为字符区域,找线区域根据Blob的外接矩形进行设置。Through the Blob analysis, the black keycap area is obtained, and the interference Blob is removed by Blob filtering. The holes in the black keycap area are the character areas, and the line-finding area is set according to the circumscribing rectangle of the Blob. 10.根据权利要求1所述的键盘键帽自动建模定位方法,其特征在于,在所述通过对待检测键盘的图像信息预设建模参数,根据键盘键帽的标准模板库进行键帽特征建模,获得待检测键盘的键帽建模图像参数的步骤中,包括:10. The method for automatic modeling and positioning of keyboard keycaps according to claim 1, wherein in the described preset modeling parameters by the image information of the keyboard to be detected, the keycap feature is carried out according to the standard template library of the keyboard keycaps Modeling, the steps of obtaining the keycap modeling image parameters of the keyboard to be detected include: 根据待检测键盘的实际尺寸大小缩放所对应的标准模板库中的标准模板,使缩放后的标准模板的尺寸大小与待检测键盘的实际尺寸大小相同。The standard templates in the corresponding standard template library are scaled according to the actual size of the keyboard to be detected, so that the size of the scaled standard template is the same as the actual size of the keyboard to be detected.
CN202011626981.2A 2020-12-30 2020-12-30 Automatic modeling and positioning method for keyboard keycaps Pending CN112634259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011626981.2A CN112634259A (en) 2020-12-30 2020-12-30 Automatic modeling and positioning method for keyboard keycaps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011626981.2A CN112634259A (en) 2020-12-30 2020-12-30 Automatic modeling and positioning method for keyboard keycaps

Publications (1)

Publication Number Publication Date
CN112634259A true CN112634259A (en) 2021-04-09

Family

ID=75290045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011626981.2A Pending CN112634259A (en) 2020-12-30 2020-12-30 Automatic modeling and positioning method for keyboard keycaps

Country Status (1)

Country Link
CN (1) CN112634259A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643272A (en) * 2021-08-24 2021-11-12 凌云光技术股份有限公司 Target positioning modeling method
CN114782433A (en) * 2022-06-20 2022-07-22 联宝(合肥)电子科技有限公司 Keycap detection method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000193437A (en) * 1998-12-28 2000-07-14 Kyoto Trust Kk Method and system for inspecting pattern defect of keyboard of various electronic devices, and computer- readable recording medium where pattern defect inspection program is recorded
CN103163155A (en) * 2013-02-26 2013-06-19 上海大学 Device and method for detecting keyboard defects
CN106251341A (en) * 2016-07-22 2016-12-21 凌云光技术集团有限责任公司 A kind of press quality quantity measuring method
CN106503735A (en) * 2016-10-18 2017-03-15 凌云光技术集团有限责任公司 The recognition methodss of wiring board item number and device
CN106886989A (en) * 2015-12-11 2017-06-23 东莞东聚电子电讯制品有限公司 Automatic optical inspection method of keyboard keys
CN108562250A (en) * 2018-05-16 2018-09-21 湖南大学 Keyboard cover flatness method for fast measuring based on structure light imaging and device
CN110596121A (en) * 2019-09-12 2019-12-20 南京旷云科技有限公司 Keyboard appearance detection method and device and electronic system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000193437A (en) * 1998-12-28 2000-07-14 Kyoto Trust Kk Method and system for inspecting pattern defect of keyboard of various electronic devices, and computer- readable recording medium where pattern defect inspection program is recorded
CN103163155A (en) * 2013-02-26 2013-06-19 上海大学 Device and method for detecting keyboard defects
CN106886989A (en) * 2015-12-11 2017-06-23 东莞东聚电子电讯制品有限公司 Automatic optical inspection method of keyboard keys
CN106251341A (en) * 2016-07-22 2016-12-21 凌云光技术集团有限责任公司 A kind of press quality quantity measuring method
CN106503735A (en) * 2016-10-18 2017-03-15 凌云光技术集团有限责任公司 The recognition methodss of wiring board item number and device
CN108562250A (en) * 2018-05-16 2018-09-21 湖南大学 Keyboard cover flatness method for fast measuring based on structure light imaging and device
CN110596121A (en) * 2019-09-12 2019-12-20 南京旷云科技有限公司 Keyboard appearance detection method and device and electronic system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643272A (en) * 2021-08-24 2021-11-12 凌云光技术股份有限公司 Target positioning modeling method
CN114782433A (en) * 2022-06-20 2022-07-22 联宝(合肥)电子科技有限公司 Keycap detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
WO2017181724A1 (en) Inspection method and system for missing electronic component
CN104568986A (en) Method for automatically detecting printing defects of remote controller panel based on SURF (Speed-Up Robust Feature) algorithm
CN110097542A (en) Detection method, device and the storage medium of chip bubble
CN107895362B (en) A machine vision method for quality inspection of miniature terminals
CN108918093B (en) Optical filter mirror surface defect detection method and device and terminal equipment
CN107356213B (en) Optical filter concentricity measuring method and terminal equipment
CN112634203A (en) Image detection method, electronic device and computer-readable storage medium
CN111695373B (en) Zebra stripes positioning method, system, medium and equipment
CN115239727A (en) PCB surface defect detection method
CN111354038A (en) Anchor object detection method and device, electronic equipment and storage medium
CN112634259A (en) Automatic modeling and positioning method for keyboard keycaps
CN118202383A (en) Defect detection method, defect detection system and defect detection program
CN115619787A (en) UV adhesive defect detection method, system, equipment and medium
CN104749801B (en) High Precision Automatic optical detecting method and system
CN112669272B (en) AOI rapid detection method and rapid detection system
CN117011216A (en) Defect detection method and device, electronic equipment and storage medium
CN116678898B (en) A universal wafer defect detection method, system, equipment and medium
CN116681879B (en) Intelligent interpretation method for transition position of optical image boundary layer
CN116993654B (en) Camera module defect detection method, device, equipment, storage medium and product
CN117132797A (en) POLMARK positioning detection method and system for LCD display screen
CN117635599A (en) Defect detection model training and defect detection method, device, equipment and medium
CN110956640A (en) A method for detecting and registering edge points in heterologous images
CN118169144B (en) Defect detection method, system and medium based on multistage matching and AI recheck
CN114125435A (en) Intelligent image defect detection method for network camera
CN117474923B (en) Diaphragm image processing method, diaphragm defect detecting method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409

RJ01 Rejection of invention patent application after publication