This application claims priority under 35 U.S.C. §119(a) to Korean Patent Application No. 10-2011-0102734, which was filed in the Korean Intellectual Property Office on Oct. 7, 2011, the entire disclosure of which is incorporated herein by reference.
1. Field of the Invention
The present invention relates generally to a display device, and more particularly, to an apparatus and method of detecting an input position with display pattern recognition.
2. Description of the Related Art
Recently, a method of entering a position based input by sensing the position on a display screen with pattern recognition has been developed and used as a way of input in a display device. The pattern recognition based method takes a picture of a pattern formed on a display with an input device, such as an electronic pen having a camera, recognizes a pattern in the captured image, detects a position of the electronic pen, and enters an input based on the detected position. Such a method recognizes a command or position pointed to by the electronic pen by photographing a display area pointed to by the electronic pen with the camera that takes a picture in a direction of the tip of the electronic pen and then detecting an arranged pattern from the captured image.
Referring to
Referring to
Further, the LCD panel typically includes subpixels corresponding to color filters, each creating one of colors Red (R), Green (G), and Blue B), and a black matrix. Accordingly, if the digital paper 1 is attached onto the surface of the LCD panel, the LCD panel grows thicker, and if the digital paper 1 happens to cover some subpixels, the display brightness deteriorates.
Further, if a material to reflect IR light is used in making the pattern of the digital paper 1, instead of the pigment that absorbs the IR light, the reflective material may affect subpixels of the display panel, thereby undesirably reducing the brightness and the contrast ratio of the display.
Newer LCD-based display devices have bigger screen sizes and higher in resolutions, thus resulting in a greater amount of information for informing the position to which the electronic pen points on the display screen. Therefore, for a display device having a larger screen size and a higher resolution, a pattern should also be information-intensive in order to inform the position of the electronic pen.
For example, although the recent market is still dominated by Full High Definition (FHD) class display devices, Ultra High Definition (UHD) class display devices are expected to become mainstream in the future market. Accordingly, patterns should become more information-intensive for position information for about 10 million pixels of the UHD class display devices.
However, the conventional method of using the digital paper 1 is inefficient in forming the information-intensive pattern because the pattern is physically manufactured. Also, when a part of the pattern of the digital paper 1 is lost or erroneous, another problem arises that the error cannot be checked.
In addition, the conventional method of using the digital paper 1 is susceptible to leaking the pattern technology, because the pattern is fixed.
Therefore, pattern recognition methods other than the digital paper based pattern recognition method, which fit properties of the display device, are required.
Accordingly, the present invention is designed to address at least the problems and/or disadvantages described above and to provide at least the advantages described below.
Accordingly, an aspect of the present invention is to provide an apparatus and method of detecting a position using display pattern recognition.
Another aspect of the present invention is to provide an apparatus and method of detecting an input position by recognizing a pattern formed in a display panel, based on properties of the display panel instead of digital paper.
Another aspect of the present invention is to provide an apparatus and method of detecting a position using display pattern recognition, which reduce required calculations and thus memory consumption, by applying a low complex algorithm in recognition of a pattern formed in the display panel to detect an input position.
Another aspect of the present invention is to provide an apparatus and method of detecting a position using display pattern recognition, which enable better detection of an input position by minimizing errors and noise in recognition of a pattern formed in the display panel to detect the input position.
In accordance with an aspect of the present invention, an apparatus is provided for detecting an input position using display pattern recognition. The apparatus includes an effective pattern area extractor for receiving an image of a display screen captured by a camera and extracting an effective pattern area for pattern recognition from the captured image of the display screen; a pattern recognizer for detecting subpixels included in the effective pattern area and identifying a plurality of holes included in each of the subpixels; and a display coordinate calculator for detecting an input position based on points at which the plurality of holes included in the each of the subpixels are formed.
In accordance with another aspect of the present invention, a method of detecting an input position using display pattern recognition is provided, The method includes receiving an image of a display screen captured by a camera; extracting an effective pattern area for pattern recognition from the captured image of the display screen; detecting subpixels included in the effective pattern area; identifying a plurality of holes included in each of the subpixels; and detecting an input position based on points at which the plurality of holes included in each of the subpixels are formed.
The above and other aspects, features, and advantages of certain embodiments of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
Various embodiments of the present invention will now be described in detail with reference to the accompanying drawings. In the following description, specific details such as detailed configuration and components are merely provided to assist the overall understanding of these embodiments of the present invention. Therefore, it should be apparent to those skilled in the art that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
In accordance with an embodiment of the present invention, an apparatus and method are disclosed for detecting a pixel position by recognizing a pattern formed on a display panel. Specifically, a pixel position is detected by recognizing a pattern, where the pattern represents the pixel position with subpixels (R, G, B) in a display device for displaying an image with the pixels that consist of the subpixels. The apparatus receives a pattern image on a display screen captured by a camera, extracts an effective pattern area from the received pattern image, recognizes a pattern of the effective pattern area, and detects a position that corresponds to the recognized pattern. The detected position may be a position to which an input device is pointing or a position to which the input device attempts to enter an input, and the position may be used to enter or recognize a certain input or command that corresponds to the position.
Although embodiments of the present invention will be described below using an LCD panel in which a pattern is formed, the following embodiments of the present invention may be applied to any display device in which a pattern using the subpixels may be formed, where the display device includes pixels having subpixels, e.g., an LCD panel, a Plasma Display Panel (PDP), an Organic Light-Emitting Display (OLED), and an Electronic Paper.
Referring to
Specifically,
The dent hole 40 represents a basis for calculating an absolute position value of a pixel, and is formed at a point at which it is clearly distinguishable from other holes. The X coordinate holes are formed at points that represent values for calculating an X coordinate value of the pixel. The Y coordinate holes are formed at points that represent values for calculating a Y-coordinate value of the pixel. The error detection holes are formed at points that represent values for determining whether the points at which the X- and Y coordinate holes are formed is correct.
When supporting up to 4802×2744 resolution, the dent hole 40 may be formed first in a single subpixel Dent to set a basis for calculating the absolute position value of the pixel. For the XY coordinate values, seven septernary numbers for X0, X1, X2, X3, Y1, Y2, and Y3 and one quaternary number for Y0 may be used, in which case position holes that correspond to X coordinate holes may be formed at seven points within four subpixels X0, X1, X2, and X3 because the maximum X coordinate value is 4802. The seven points each represent a value of 0˜6, and the X coordinate value may be calculated by Equation (1).
X coordinate value=73×X3+72×X2+7×X1+X0 (1)
Because the maximum Y coordinate value is 2744, position holes corresponding to Y coordinate holes may be formed at seven points within four subpixels Y0, Y1, Y2, and Y3. The seven points within each of subpixels Y1, Y2, and Y3 each represent a value of 0-6, while seven points within the subpixel Y0 each have a value of 0 to 3 because the subpixel Y0 uses the quaternary number. Thus, the Y coordinate value may be calculated using Equation (2).
Y coordinate value=72×4×Y3+7×4×Y2+4×Y1+Y0 (2)
In order to determine whether the points at which the X and Y coordinate holes are formed are correct, i.e., whether there is an error at the points, a parity check technique is applied to form parity holes at seven points within each of three subpixels p, q, and r. The parity check technique, in principle, discovers an error by adding an extra parity checker bit to ensure the number of bits that represent “1” in binary form to be even or odd. Because a septernary number is used, the parity checker may have a value from 0 to 6.
The seven hole points within each of the p, q, and r subpixels represent a value obtained by summing up values of certain position holes, i.e., represent a parity bit. Thus, the value (parity bit) of each of the p, q, r subpixels may be calculated using Equation (3).
p=modulo7(X3+Y1+X0)
q=modulo7(X2+Y2)
r=modulo7(X1+Y3+Y0) (3)
In Equation (3), p is a basis for determining an error for X3, Y1, and X0, and q is a basis for X2 and Y2. Also, r is a basis for determining an error for the values of X1, Y3, and Y0.
An error is determined to occur when a result of the modulo operation of each of p, q, r and the parity hole value are different in the decoding process. Accordingly, a single error occurrence guarantees the error detection.
Such an error detection technique should also be applied in determining positions for a partial combination of two basic patterns (floating property). To enable the parity check according to the floating property, position hole information is transformed based on the position of the parity hole. If an error occurs in a hole that corresponds to a lower significant digit, then an error also occurs in a hole that corresponds to a higher significant digit. If only one parity check equation is used, an error occurring in a hole brings the same result of occurring errors in two or more holes because the holes in which errors occur are subject to the same parity check equation.
This problem may be solved by involving position holes of the same coordinate axis in different parity check equations. The X-axis and Y-axis each have 4 position holes, and a total of 4 parity check equations are used. However, available holes, except for the dent and position holes, should be included in 3 subpixels. Therefore, up to 3 parity check equations may be used.
However, a problem inevitably arises in that position holes for the same coordinate axis are subject to one parity check equation. Accordingly, it is desirable to use a method involving position holes that correspond to a least significant digit and a most significant digit in a same parity check equation, as in Equation (3) for p, q, and r, because it is less likely for an error occurring at a position hole that corresponds to the lowest significant digit to affect a position hole to the highest significant digit.
In
Once the display panel has a pattern formed, an input device (e.g., an electronic pen, etc.) generates light in a direction of the display panel, captures a display screen illuminated by the light with a camera, and detects the input position of the input device from the captured image of the display screen.
This is achieved because the black matrix 301 in the display screen is formed to have a material or structure that absorbs light generated by a light source of the input device, and when the input device illuminates the display screen and takes a picture of it with the camera, light absorption occurs in the black matrix 301 area so the image is black for the black matrix 301 area.
According to an embodiment of the present invention, because the plurality of holes included in the subpixel are also formed of the same material as that of the black matrix 301 area or of a material that absorbs light, they also appear black. Thus, because the captured image appears as a pattern formed by the black matrix and the plurality of holes and the pattern is predetermined or stored to correspond to a position, detection of the position of the captured image becomes possible using the recognized pattern.
Referring to
Referring to
The captured image of the display screen is entered in the effective pattern area extractor 50, and the effective pattern area extractor 50 extracts an effective pattern area from the captured image as illustrated in
Referring again to
Referring to
More specifically, in order to calculate the first rotation angle (φ1), the rotation angle corrector 52 establishes an exploring area (a) for a base point by fixing a center of the captured image of the display screen as a basis for the X-axis (horizontal axis) direction and setting up the entire height of the captured image of the display screen for the y-axis (vertical axis) direction. The rotation angle corrector 52 explores a predetermined exploring area (a) for the base point with a window in a predetermined dimension (illustrated as a 3×5 window in a blue rectangle in
In order to obtain the second rotation angle (φ2), the rotation angle corrector 52 sets up a second base point for obtaining a straight line that corresponds to the second black matrix area (L2) to be a point which is perpendicular to the straight line corresponding to the first black matrix (L1) and at which the sum of values of pixels within the 3×5 pixel area becomes the minimum. Then, the rotation angle corrector 52 generates straight lines passing through the second base point from +75° to +105° with respect to the straight line corresponding to the first black matrix (L1) at 2° intervals, obtains variance of pixels through which each straight line passes, and recognizes a straight line having minimum variance as the second black matrix area (L2). The rotation angle corrector 52 calculates a slope of the straight line corresponding to the second black matrix area (L2) with respect to a slope (L2′) perpendicular to the slope of the straight line corresponding to the first black matrix area (L1) of the captured image of the display screen to be the second rotation angle (φ2). The rotation angle corrector 52 also corrects the captured image of the display screen based on the first and second rotation angles (φ1, φ2).
As described above, upon completion of correcting the captured image of the display screen, the effective pattern area extractor 50 determines the black matrix area with the black matrix area determiner 54. The black matrix area determiner 54 explores each of the intersecting first and second black matrix areas and determines whether each of the first and second black matrix areas corresponds to a wide black matrix area formed between pixels or a narrow black matrix area formed between subpixels.
Typically, in the display panel, a set of R, G, and B subpixels constitutes a pixel, and thus the distance between pixels and the distance between the subpixels are different. Widths of black matrix areas between pixels and between subpixels are different as well. Because the distance between pixels is longer than that between subpixels, the width of the black matrix area formed between pixels is wider than that formed between subpixels. Accordingly, if the black matrix area is wide, the black matrix is recognized as the wide black matrix area formed between pixels, and if narrow, it is recognized as the narrow black matrix area formed between subpixels.
The black matrix area determiner 54 calculates a projection value for each point, which is the sum of all pixel values of a straight line intersecting with the point, while moving along each of the first and second black matrix areas. Then, the black matrix area determiner 54 determines whether each of the intersecting first and second black matrix areas belongs to a minor set in which both the wide and narrow black matrix areas exist, or a major set consisting only of the wide black matrix areas, based on the distribution of projection values.
Referring to
Referring first to
Referring to
The black matrix area determiner 54 detects all the black matrix areas in the image of the display screen corrected in the way described above, selects a black matrix area nearest to the center of the image of the display screen from among the detected black matrix areas, and provides the selected black matrix area to the warping unit 56.
The warping unit 56 performs sophisticated exploration at 0.5° intervals on four wide black matrix areas located outside of the black matrix area selected by the black matrix area determiner 54. The warping unit 56 calculates a rotated angle more sophisticatedly compared with the black matrix area determiner 54 that does the same at 0.5° intervals. The warping unit 56 detects the black matrix area more sophisticatedly within the range of −2.5°-+2.5° with respect to the current angle. The warping unit 56 then determines vertex positions of a square formed by 4 selected wide black matrix areas.
Referring to
After reconstructing the image as illustrated in
In Equation (4), ctr_x and ctr_y each represent the four points' center of gravity in the original image. f—1i represents {−1new/2, 1new/2, 1new/2, −1new/2}. S—1i represents {−1new/2, −1new/2, 1new/2, 1new/2}.
Once the effective pattern area, as illustrated in
More specifically, the pattern recognizer 60 includes a subpixel detector 62, a normalizer 64, and a dent and position hole determiner 66.
The subpixel detector 62 explores a boundary between each of subpixels and the black matrix area, and uses the explored boundary to detect each subpixel area. Specifically, because the subpixel may contact the wide or narrow matrix area, the subpixel detector 62 distinguishes a boundary with the wide black matrix area (Thick Boundary, TCB) from a boundary with the narrow black matrix area (Thin Boundary, TNB), explores the TCB, and then explores the TNB based on the TCB. The subpixel detector 62 explores the TCB using a difference in pixel values between the black matrix area and the subpixel, because the pixel value for the black matrix area has a dark value and the pixel value for the subpixel has a bright value. The subpixel detector 62 sets a location where there is a big change in pixel values to be the TCB by using the difference in pixel value between the black matrix area and the subpixel.
The subpixel detector 62 performs a projection on the entire image corresponding to the extracted effective pattern area in horizontal (X-axis) and vertical (Y-axis) directions and observes the change in pixel values.
The change in pixel values is calculated using Equation (5).
diffx=px(x)−px(x−1)
diffy=py(y)−py(y−1) (5)
In Equation (5), diffy is an amount of change of a value resulting from the projection in the X-axis direction, and diffy is an amount of change of a value resulting from the projection in the Y-axis direction. A point having the maximum diffx is a turning point from which a dark area turns to a bright area, and corresponds to the left TCB of the subpixel, and a point having the minimum diffx is a turning point from which a bright area turns to a dark area, and corresponds to the right TCB of the subpixel.
Referring to
After obtaining the TCB of the subpixel, the subpixel detector 62 explores the TNB based on the position of the TCB. Because the TNB is likely to be at points that are ⅓ and ⅔ of the distance between the left TCB and the right TCB, the subpixel detector 62 determines the ⅓ and ⅔ points of the distance between the TCBs to be expected TNB points. The subpixel detector 62 sets an exploration range for the TNB to be the range from −2 to +2 with respect to the expected TNB points, sums pixel values on the Y-axis, and sets a position having the minimum sum of the pixel values on the Y-axis to be the TNB. The range of the Y-axis having the pixels thereon to be summed is from the upper TCB to the lower TCB.
According to the foregoing method, the subpixel detector 62 explores a boundary between each subpixel and the black matrix, and uses the explored boundary to detect each subpixel area.
After detecting the subpixel area, the normalizer 64 of the pattern recognizer 60 performs normalization on the area. The normalization performs adjustment of the brightness in the subpixel area to be flattened out. This facilitates detection of holes within the subpixel area. The dent and hole determiner 66 in the pattern recognizer 60 determines the dent hole, position holes, or parity holes in the subpixel area having the brightness adjusted by the normalizer 64.
First, to determine the dent hole, the normalizer 64 limits the normalization only to an expected dent hole area in order to minimize the processing amount of the normalization.
Referring to
Such normalization may be performed using Equation (6).
dent_block[d]=dent_block[d]*comparisonavg/comparison_block[d] (6)
After the normalization, the dent and hole determiner 66 determines the dent hole by selecting a subpixel having a largest difference between the dent_block value and the comparisonavg value.
To determine position holes and parity holes, the normalizer 64 performs normalization on each subpixel in the effective pattern area, independently.
Referring to
The normalizer 64 then sets the left edge area 1201, as illustrated in
Y=Y+left_lineavg−other_lineavg (7)
In Equation (7), other_line represents an expected area 1202 of the position holes and parity holes, except for the base area for normalization, and Y is a pixel belonging to other_line.
After performing normalization on all the subpixels one by one, the dent and hole determiner 66 explores the expected area 1202 of the position holes and parity holes of each subpixel and determines the position holes and the parity holes.
Referring to
Upon completion of pattern recognition with the dent, position, and parity holes determined in the effective pattern area by the pattern recognizer 60, the display coordinate calculator 70 detects the pixel position based on the pattern recognition result.
Referring to
Referring to
The apparatus extracts an effective pattern area from the captured image of the display screen, in step 104. The effective pattern area refers to an area to be used for pattern recognition in the entire area of the captured image. Specifically, the apparatus corrects some distortion due to a difference between the captured image of the display screen and an actual image of the display screen, i.e., a rotated angel, detects a black matrix area from the corrected image, and extracts the effective pattern area in a predetermined basic pattern block size to detect an arbitrary position using the black matrix area.
After extracting the effective pattern area, the apparatus detects a subpixel within the effective pattern area, normalizes the quality of the subpixel, and then determines the dent and holes to recognize a pattern, in step 106.
Upon recognition of the pattern, the apparatus calculates a display coordinate of the pixel based on the result of the pattern recognition, in step 108. That is, the apparatus detects the pixel position by analyzing points where the dent hole, the position holes, and the parity holes are formed and by calculating the display coordinate of the pixel.
As described above, a pixel position is detected by recognizing a pattern formed in a display according to properties of a display panel, which facilitates easy pattern recognition compared to the conventional pattern recognition method using a separately attached digital paper. This has an advantage of reducing the required calculations and memory consumption by using a low complex algorithm for pattern recognition, thereby improving input processing even when a quick writing is done with an input device, such as the electronic pen. Further, more precise pattern recognition is performed by easily detecting holes in an image of the display screen, and detecting an input position based on the correct pattern recognition result.
Various modifications can be made possible without departing the present invention. For example, although in the foregoing description of the present invention, a 2×2 pixel base pattern structure was taken as an example, various pixel based pattern structures may also be used for position detection.
While the present invention has been particularly shown and described with reference to certain embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2011-0102734 | Oct 2011 | KR | national |