Embedding a pattern design onto a liquid crystal display

Information

  • Patent Grant
  • 7619607
  • Patent Number
    7,619,607
  • Date Filed
    Thursday, June 30, 2005
    19 years ago
  • Date Issued
    Tuesday, November 17, 2009
    15 years ago
Abstract
A method and system for presenting data on a medium for capture by an input device is described. The method embeds a symbol design, such as an embedded interaction code (EIC), in an image on a display screen, such as a liquid crystal display (LCD). A grid with a plurality of pixels defines a size of an EIC pattern on an LCD. An area of the grid is used to embed position data and/or metadata information. The area may be defined by a sub-pixel of the plurality of pixels and/or the edges of the grid itself. The sub-pixel with the EIC pattern may be configured to have a grey value based upon a color of an underlying image associated with an application program being displayed on the LCD. The method also allows for decoding of the position data and/or metadata information in the EIC pattern on the LCD.
Description
BACKGROUND

The advent of the computer has boomed to a point of prolific use in a variety of different areas. Computers are used throughout the world for everything from controlling speed and direction in a vehicle, to making an online order for a new product, to allowing a young child to learn how to count or read. Within the business industry, the use of the computer has greatly increased the efficiency for performing tasks.


Computer users are accustomed to using a mouse and keyboard as a way of interacting with a personal computer. Despite the advances in technology, most computer users tend to use documents printed on paper as their primary editing tool. Some advantages of printed paper include its readability and portability. Others include the ability to share annotated paper documents and the ease at which one can archive printed paper. In the case of annotations, the printed document assumes a greater significance because of the annotations placed on it by the user. One of the difficulties, however, with having a printed document with annotations is the later need to have the annotations entered back into the electronic form of the document. This requires the original user or another user to wade through the annotations and enter them into a personal computer. In some cases, a user will scan in the annotations and the original text, thereby creating a new document. These multiple steps make the interaction between the printed document and the electronic version of the document difficult to handle on a repeated basis. Further, scanned-in images are frequently non-modifiable. There may be no way to separate the annotations from the original text. This makes using the annotations difficult.


Computer technology has advanced in some areas in order to attempt to address these problems. With the advent of the tablet style personal computer, a computer user can input handwritten strokes onto the display regions of the monitor. As such, annotations may be entered directly into a document. However, many problems exist with respect to tracking the movement of an input device for the handwritten annotations.


One technique of capturing handwritten information is by using a pen whose location may be determined during writing. One type of pen functions by using a camera to capture an image of paper encoded with a predefined pattern. This pattern is used by the pen to determine a location of a pen on a piece of paper. However, the pattern is encoded onto a paper document. A user must still maintain a paper document for use with the pen to be uploaded to a personal computer.


SUMMARY

Aspects of the present invention are directed generally to presenting data on a medium for capture by an input device. More particularly, aspects of the present invention are directed to a method and system for embedding a symbol design, such as an embedded interaction code (EIC), in an image on a display screen, such as a liquid crystal display (LCD). A grid with a plurality of pixels defines a size of an EIC pattern on an LCD. An area of the grid is used to embed position data and/or metadata information. The area may be defined by a sub-pixel of the plurality of pixels and/or the edges of the grid itself. The sub-pixel with the EIC pattern may be configured to have a grey value based upon a color of an underlying image associated with an application program being displayed on the LCD. Another aspect of the present invention provides for decoding of the position data and/or metadata information in the EIC pattern on the LCD.





BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing summary of the invention, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the accompanying drawings, which are included by way of example, and not by way of limitation with regard to the claimed invention.



FIG. 1A illustrates a schematic diagram of a general-purpose digital computing environment in which certain aspects of the present invention may be implemented;



FIGS. 1B through 1M show a general-purpose computer environment supporting one or more aspects of the present invention;



FIG. 2 illustrates an example of an embedded interaction code (EIC) symbol composed of liquid crystal display (LCD) sub-pixels in accordance with at least one aspect of the present invention;



FIG. 3 illustrates an example of liquid crystal cells and sub-pixels arranged in an LCD;



FIGS. 4A and 4B illustrate examples of a symbol of 4×4 LCD pixels, where each sub-pixel may be embedded with 2 bits in accordance with at least one aspect of the present invention;



FIG. 5 illustrates an example EIC pattern tiled with the 4×4 symbol of FIG. 4A when magnified in accordance with at least one aspect of the present invention;



FIG. 6 illustrates another example of a symbol of 3×3 LCD pixels, where each sub-pixel may be embedded with 2 bits in accordance with at least one aspect of the present invention;



FIG. 7 illustrates another example of a symbol of 4×5 LCD pixels, where each sub-pixel may be embedded with 3 bits in accordance with at least one aspect of the present invention;



FIG. 8 illustrates another examples of a symbol of 4×4 LCD pixels, where the black matrix may be embedded with positioning data bits in accordance with at least one aspect of the present invention;



FIGS. 9A-9C illustrate example EIC pattern images captured by a camera in accordance with at least one aspect of the present invention;



FIGS. 10A and 10B illustrate a portion of an LCD screen with an EIC pattern watermarked on the screen in accordance with at least one aspect of the present invention;



FIG. 11 illustrates an example array of embedded interaction codes in accordance with at least one aspect of the present invention;



FIG. 12 illustrates example liquid crystal cells and sub-pixels arranged in an LCD, with four possible positions, in the red channel (R) of a sub-pixel for embedding an EIC pattern in accordance with at least one aspect of the present invention;



FIG. 13 illustrates an example of a captured image by a camera in accordance with at least one aspect of the present invention;



FIG. 14 illustrates an example of a normalized image of FIG. 13 with an effective LCD grid mask in accordance with at least one aspect of the present invention;



FIG. 15 illustrates an example pixel index for determining orientation and position data in accordance with at least one aspect of the present invention;



FIG. 16 illustrates an example of a mask M1 with pixels that lie on the edge and vertex of LCD grids in accordance with at least one aspect of the present invention;



FIG. 17 illustrates an example block diagram for defining pixels that neighbor a pixel (x, y) in accordance with at least one aspect of the present invention;



FIG. 18 illustrates an example of a mask M2 eroded from mask M1 in accordance with at least one aspect of the present invention;



FIG. 19 illustrates an example of a mask M3 in accordance with at least one aspect of the present invention;



FIG. 20 illustrates an example of a mask M4 in accordance with at least one aspect of the present invention;



FIG. 21 illustrates an example of a mask M5 in accordance with at least one aspect of the present invention;



FIG. 22 illustrates an example of a mask M6 in accordance with at least one aspect of the present invention;



FIG. 23 illustrates an example of LCD-pixel grid analysis when applied to mask M6 in accordance with at least one aspect of the present invention;



FIG. 24 illustrates two coordinate systems in accordance with at least one aspect of the present invention;



FIG. 25 illustrates effective embedded interaction coding pixels in accordance with at least one aspect of the present invention;



FIG. 26 illustrates an example LCD pixel grid showing 8 sampling points taken within the grid in accordance with at least one aspect of the present invention;



FIGS. 27 and 28 illustrate an example of how a reference frame for the LCD pixel grids is redefined so that an axis is consistent with an ideal reference frame in accordance with at least one aspect of the present invention;



FIG. 29 illustrates an example LCD pixel with the smallest average grey-level difference of four orientations for the LCD pixel as determined in accordance with at least one aspect of the present invention;



FIGS. 30A-30D illustrate four interpretation bits in an EIC symbol in accordance with at least one aspect of the present invention;



FIG. 31 illustrates example bit arrays that are constructed from retrieved bits in accordance with at least one aspect of the present invention;



FIG. 32 is an illustrative block diagram of a system for creating an EIC pattern on an LCD in accordance with at least one aspect of the present invention;



FIG. 33 is a flowchart of an illustrative method for creating an EIC pattern on an LCD in accordance with at least one aspect of the present invention;



FIG. 34 is an illustrative block diagram of a system for decoding an EIC pattern on an LCD in accordance with at least one aspect of the present invention; and



FIGS. 35-37 are flowcharts of illustrative methods for decoding an EIC pattern on an LCD in accordance with at least one aspect of the present invention.





DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In the following description of various illustrative embodiments, reference is made to the accompanying drawings, which form a part hereof, and in which are shown, by way of illustration, various embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural and functional modifications may be made without departing from the scope of the present invention.


Terms




  • Pen Any writing implement that may or may not include the ability to store ink. In some examples, a stylus with no ink capability may be used as a pen in accordance with embodiments of the present invention.

  • Camera An image capture system that may capture an image from paper, a computer display, or any other medium.

  • EIC Symbol The EIC symbol array is formed by EIC symbols in place of the bits of

  • Array the m-array representing X-Y position and metadata. Represents the physical space covered by the m-array representing X-Y position and metadata. EIC symbol array can be allocated to pages of a document.

  • Stroke An action made by the pen on a document or surface contain the EIC symbol array, where the array is captured by the camera during the performance of the action.

  • Grid The grid is a set of lines formed by EIC dots in EIC symbol array.




FIG. 1 illustrates an example of a suitable computing system environment 100 on which the invention may be implemented. The computing system environment 100 is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the invention. Neither should the computing system environment 100 be interpreted as having any dependency nor requirement relating to any one or combination of components illustrated in the exemplary computing system environment 100.


The invention is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.


The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.


With reference to FIG. 1A, an exemplary system for implementing the invention includes a general-purpose computing device in the form of a computer 110. Components of computer 110 may include, but are not limited to, a processing unit 120, a system memory 130, and a system bus 121 that couples various system components including the system memory to the processing unit 120. The system bus 121 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus.


Computer 110 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by computer 110 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read only memory (ROM), electronically erasable programmable read only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by computer 110. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of the any of the above should also be included within the scope of computer readable media.


The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as ROM 131 and RAM 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation, FIG. 1A illustrates operating system 134, application programs 135, other program modules 136, and program data 137.


The computer 110 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, FIG. 1A illustrates a hard disk drive 141 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 151 that reads from or writes to a removable, nonvolatile magnetic disk 152, and an optical disc drive 155 that reads from or writes to a removable, nonvolatile optical disc 156 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 141 is typically connected to the system bus 121 through a non-removable memory interface such as interface 140, and magnetic disk drive 151 and optical disc drive 155 are typically connected to the system bus 121 by a removable memory interface, such as interface 150.


The drives and their associated computer storage media discussed above and illustrated in FIG. 1A, provide storage of computer readable instructions, data structures, program modules and other data for the computer 110. In FIG. 1A, for example, hard disk drive 141 is illustrated as storing operating system 144, application programs 145, other program modules 146, and program data 147. Note that these components can either be the same as or different from operating system 134, application programs 135, other program modules 136, and program data 137. Operating system 144, application programs 145, other program modules 146, and program data 147 are given different numbers here to illustrate that, at a minimum, they are different copies. A user may enter commands and information into the computer 110 through input devices such as a digital camera (not shown), a keyboard 162, and pointing device 161, commonly referred to as a mouse, trackball or touch pad. Other input devices (not shown) may include a pen, stylus and tablet, microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus 121, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such as speakers 197 and printer 196, which may be connected through an output peripheral interface 195. A digitizer 165 and accompanying pen or stylus 166 are provided in order to digitally capture freehand input. Although a direct connection between the pen digitizer 165 and the user input interface 160 is shown, in practice, the digitizer 165 may be coupled to the processing unit 120 directly, via a parallel port or other interface and the system bus 121 as known in the art. Furthermore, although the digitizer 165 is shown apart from the monitor 191, the usable input area of the digitizer 165 may be co-extensive with the display area of the monitor 191. Further still, the digitizer 165 may be integrated in the monitor 191, or may exist as a separate device overlaying or otherwise appended to the monitor 191.


The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110, although only a memory storage device 181 has been illustrated in FIG. 1A. The logical connections depicted in FIG. 1A include a local area network (LAN) 171 and a wide area network (WAN) 173, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.


When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation, FIG. 1A illustrates remote application programs 185 as residing on memory device 181. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.


It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers can be used. The existence of any of various well-known protocols such as TCP/IP, Ethernet, FTP, HTTP and the like is presumed, and the system can be operated in a client-server configuration to permit a user to retrieve web pages from a web-based server. Any of various conventional web browsers can be used to display and manipulate data on web pages.


A programming interface (or more simply, interface) may be viewed as any mechanism, process, protocol for enabling one or more segment(s) of code to communicate with or access the functionality provided by one or more other segment(s) of code. Alternatively, a programming interface may be viewed as one or more mechanism(s), method(s), function call(s), module(s), object(s), etc. of a component of a system capable of communicative coupling to one or more mechanism(s), method(s), function call(s), module(s), etc. of other component(s). The term “segment of code” in the preceding sentence is intended to include one or more instructions or lines of code, and includes, e.g., code modules, objects, subroutines, functions, and so on, regardless of the terminology applied or whether the code segments are separately compiled, or whether the code segments are provided as source, intermediate, or object code, whether the code segments are utilized in a runtime system or process, or whether they are located on the same or different machines or distributed across multiple machines, or whether the functionality represented by the segments of code are implemented wholly in software, wholly in hardware, or a combination of hardware and software.


Notionally, a programming interface may be viewed generically, as shown in FIG. 1B or FIG. 1C. FIG. 1B illustrates an interface Interface1 as a conduit through which first and second code segments communicate. FIG. 1C illustrates an interface as comprising interface objects I1 and I2 (which may or may not be part of the first and second code segments), which enable first and second code segments of a system to communicate via medium M. In the view of FIG. 1C, one may consider interface objects I1 and I2 as separate interfaces of the same system and one may also consider that objects I1 and I2 plus medium M comprise the interface. Although FIGS. 1B and 1C show bi-directional flow and interfaces on each side of the flow, certain implementations may only have information flow in one direction (or no information flow as described below) or may only have an interface object on one side. By way of example, and not limitation, terms such as application programming interface (API), entry point, method, function, subroutine, remote procedure call, and component object model (COM) interface, are encompassed within the definition of programming interface.


Aspects of such a programming interface may include the method whereby the first code segment transmits information (where “information” is used in its broadest sense and includes data, commands, requests, etc.) to the second code segment; the method whereby the second code segment receives the information; and the structure, sequence, syntax, organization, schema, timing and content of the information. In this regard, the underlying transport medium itself may be unimportant to the operation of the interface, whether the medium be wired or wireless, or a combination of both, as long as the information is transported in the manner defined by the interface. In certain situations, information may not be passed in one or both directions in the conventional sense, as the information transfer may be either via another mechanism (e.g. information placed in a buffer, file, etc. separate from information flow between the code segments) or non-existent, as when one code segment simply accesses functionality performed by a second code segment. Any or all of these aspects may be important in a given situation, e.g., depending on whether the code segments are part of a system in a loosely coupled or tightly coupled configuration, and so this list should be considered illustrative and non-limiting.


This notion of a programming interface is known to those skilled in the art and is clear from the foregoing detailed description of the invention. There are, however, other ways to implement a programming interface, and, unless expressly excluded, these too are intended to be encompassed by the claims set forth at the end of this specification. Such other ways may appear to be more sophisticated or complex than the simplistic view of FIGS. 1B and 1C, but they nonetheless perform a similar function to accomplish the same overall result. We will now briefly describe some illustrative alternative implementations of a programming interface.


A. Factoring

A communication from one code segment to another may be accomplished indirectly by breaking the communication into multiple discrete communications. This is depicted schematically in FIGS. 1D and 1E. As shown, some interfaces can be described in terms of divisible sets of functionality. Thus, the interface functionality of FIGS. 1B and 1C may be factored to achieve the same result, just as one may mathematically provide 24, or 2 times 2 times 3 times 2. Accordingly, as illustrated in FIG. 1D, the function provided by interface Interface1 may be subdivided to convert the communications of the interface into multiple interfaces Interface1A, Interface1B, Interface1C, etc. while achieving the same result. As illustrated in FIG. 1E, the function provided by interface I1 may be subdivided into multiple interfaces I1a, I1b, I1c, etc. while achieving the same result. Similarly, interface I2 of the second code segment which receives information from the first code segment may be factored into multiple interfaces I2a, I2b, I2c, etc. When factoring, the number of interfaces included with the 1st code segment need not match the number of interfaces included with the 2nd code segment. In either of the cases of FIGS. 1D and 1E, the functional spirit of interfaces Interface1 and I1 remain the same as with FIGS. 1B and 1C, respectively. The factoring of interfaces may also follow associative, commutative, and other mathematical properties such that the factoring may be difficult to recognize. For instance, ordering of operations may be unimportant, and consequently, a function carried out by an interface may be carried out well in advance of reaching the interface, by another piece of code or interface, or performed by a separate component of the system. Moreover, one of ordinary skill in the programming arts can appreciate that there are a variety of ways of making different function calls that achieve the same result.


B. Redefinition

In some cases, it may be possible to ignore, add or redefine certain aspects (e.g., parameters) of a programming interface while still accomplishing the intended result. This is illustrated in FIGS. 1F and 1G. For example, assume interface Interface1 of FIG. 1B includes a function call Square (input, precision, output), a call that includes three parameters, input, precision and output, and which is issued from the 1st Code Segment to the 2nd Code Segment. If the middle parameter precision is of no concern in a given scenario, as shown in FIG. 1F, it could just as well be ignored or even replaced with a meaningless (in this situation) parameter. One may also add an additional parameter of no concern. In either event, the functionality of square can be achieved, so long as output is returned after input is squared by the second code segment. Precision may very well be a meaningful parameter to some downstream or other portion of the computing system; however, once it is recognized that precision is not necessary for the narrow purpose of calculating the square, it may be replaced or ignored. For example, instead of passing a valid precision value, a meaningless value such as a birth date could be passed without adversely affecting the result. Similarly, as shown in FIG. 1G, interface I1 is replaced by interface I1′, redefined to ignore or add parameters to the interface. Interface I2 may similarly be redefined as interface I2′, redefined to ignore unnecessary parameters, or parameters that may be processed elsewhere. The point here is that in some cases a programming interface may include aspects, such as parameters, which are not needed for some purpose, and so they may be ignored or redefined, or processed elsewhere for other purposes.


C. Inline Coding

It may also be feasible to merge some or all of the functionality of two separate code modules such that the “interface” between them changes form. For example, the functionality of FIGS. 1B and 1C may be converted to the functionality of FIGS. 1H and 1I, respectively. In FIG. 1H, the previous 1st and 2nd Code Segments of FIG. 1B are merged into a module containing both of them. In this case, the code segments may still be communicating with each other but the interface may be adapted to a form which is more suitable to the single module. Thus, for example, formal Call and Return statements may no longer be necessary, but similar processing or response(s) pursuant to interface Interface1 may still be in effect. Similarly, shown in FIG. 11, part (or all) of interface 12 from FIG. 1C may be written inline into interface I1 to form interface I1″. As illustrated, interface I2 is divided into I2a and I2b, and interface portion I2a has been coded in-line with interface I1 to form interface I1″. For a concrete example, consider that the interface I1 from FIG. 1C performs a function call square (input, output), which is received by interface I2, which after processing the value passed with input (to square it) by the second code segment, passes back the squared result with output. In such a case, the processing performed by the second code segment (squaring input) can be performed by the first code segment without a call to the interface.


D. Divorce

A communication from one code segment to another may be accomplished indirectly by breaking the communication into multiple discrete communications. This is depicted schematically in FIGS. 1J and 1K. As shown in FIG. 1J, one or more piece(s) of middleware (Divorce Interface(s), since they divorce functionality and/or interface functions from the original interface) are provided to convert the communications on the first interface, Interface1, to conform them to a different interface, in this case interfaces Interface2A, Interface2B and Interface2C. This might be done, e.g., where there is an installed base of applications designed to communicate with, say, an operating system in accordance with an Interface1 protocol, but then the operating system is changed to use a different interface, in this case interfaces Interface2A, Interface2B and Interface2C. The point is that the original interface used by the 2nd Code Segment is changed such that it is no longer compatible with the interface used by the 1st Code Segment, and so an intermediary is used to make the old and new interfaces compatible. Similarly, as shown in FIG. 1K, a third code segment can be introduced with divorce interface DI1 to receive the communications from interface I1 and with divorce interface D12 to transmit the interface functionality to, for example, interfaces I2a and I2b, redesigned to work with DI2, but to provide the same functional result. Similarly, DI1 and DI2 may work together to translate the functionality of interfaces I1 and I2 of FIG. 1C to a new operating system, while providing the same or similar functional result.


E. Rewriting

Yet another possible variant is to dynamically rewrite the code to replace the interface functionality with something else but which achieves the same overall result. For example, there may be a system in which a code segment presented in an intermediate language (e.g. Microsoft IL, Java ByteCode, etc.) is provided to a Just-in-Time (JIT) compiler or interpreter in an execution environment (such as that provided by the .Net framework, the Java runtime environment, or other similar runtime type environments). The JIT compiler may be written so as to dynamically convert the communications from the 1st Code Segment to the 2nd Code Segment, i.e., to conform them to a different interface as may be required by the 2nd Code Segment (either the original or a different 2nd Code Segment). This is depicted in FIGS. 1L and 1M. As can be seen in FIG. 1L, this approach is similar to the Divorce scenario described above. It might be done, e.g., where an installed base of applications are designed to communicate with an operating system in accordance with an Interface1 protocol, but then the operating system is changed to use a different interface. The JIT Compiler could be used to conform the communications on the fly from the installed-base applications to the new interface of the operating system. As depicted in FIG. 1M, this approach of dynamically rewriting the interface(s) may be applied to dynamically factor, or otherwise alter the interface(s) as well.


It is also noted that the above-described scenarios for achieving the same or similar result as an interface via alternative embodiments may also be combined in various ways, serially and/or in parallel, or with other intervening code. Thus, the alternative embodiments presented above are not mutually exclusive and may be mixed, matched and combined to produce the same or equivalent scenarios to the generic scenarios presented in FIGS. 1B and 1C. It is also noted that, as with most programming constructs, there are other similar ways of achieving the same or similar functionality of an interface which may not be described herein, but nonetheless are represented by the spirit and scope of the invention, i.e., it is noted that it is at least partly the functionality represented by, and the advantageous results enabled by, an interface that underlie the value of an interface.


Aspects of the present invention include placing an encoded data pattern in a liquid crystal display (LCD) form. For example, the encoded data stream may be represented as an encoded image overlying the displayed image or may be a physical encoded image on a display screen (so any image portion captured by a pen is locatable on the display screen). In accordance with one aspect of the invention, the design pattern hides position information ad/or metadata information. The pattern is displayed on an LCD screen, so when a camera samples pictures from the LCD screen, the camera or computing device associated with the camera may determine its position on the LCD screen accordingly and/or any metadata stored within the pattern. Aspects of the present invention provide an embedded interaction code (EIC) pattern that is embedded into sub pixels of an LCD, showing up temporally.


An embedded interaction code (EIC) symbol is the smallest unit of visual representation of an EIC array, which is a single or multiple binary array that are used to represent x-y position and metadata. An EIC symbol includes: one or more bits encoded in one symbol, visual representation of the bits, and physical size of the one symbol. For LCD embodiments, the EIC pattern design may be represented by LCD pixels or sub-pixels. FIG. 2 is a sketch figure of an EIC symbol 200 composed of LCD sub-pixels, which represents the design of an EF-diamond-8 bit-a-16. FIG. 2 illustrates a symbol of 12×4 LCD pixels, where each sub-pixel may be embedded with 8 bits. An EF-diamond-8 bit-a-16 was originally designed for operation on printed documents. In accordance with at least one aspect of the present invention, such a symbol may also operate on LCD screen. As shown, dots 201 may be dots which are shown as clock dots, dots 203 may be dot positions which are left blank to help detect orientation of the EIC pattern, and dots 205 may be dot positions which are used to embed a bit for x-y position and metadata.


Although utilizing an EIC pattern on paper is known and used, there are issues when one attempts to directly use an EIC pattern for paper on an LCD. Some of these issues include the symbol size, the visual effect, and the algorithm complexity. As such, an EIC symbol for an LCD are redesigned and optimized in accordance with features of an LCD.


An LCD screen utilizes the open and shutter operation of liquid crystal cells arranged uniformly in the screen to show images. The operation of the lighting and non-lighting of pixels and sub-pixels are well known by those skilled in the art. Behind the crystal cells are many lamps that are lit when the displayer is electrified. If all the liquid crystal cells are open, back light comes into an individual's eyes fully, so the screen is white. When displaying, each pixel's state of being open or close may be determined through the analog to digital conversion of the display signals, so the picture may be shown by controlling the state of each LCD pixel. Because the lighting rate of the back lamp in an LCD is higher than the refresh rate of a cathode ray tube (CRT) device, the pictures on an LCD are very steady. A displayer emits three kinds of light, namely red, green, and blue.


The liquid crystal cells and sub-pixels arranged in the LCD are formed as shown in FIG. 3. An LCD pixel 300 may be composed of an arrangement of 4×4 sub-pixels 310. One sub-pixel 310 is shown by a dashed line. Within a sub-pixel 310, the red 311, green 313, and/or blue 315 channels may be used to embed code, which decreases the stimulus to eyes in spatial distribution as compared to the application of an EIC pattern onto a paper surface. The LCD grid 320 may be used to detect the grid information. A black dot used as clock dot in an EIC pattern on a paper surface may be neglected for application on an LCD screen. Sparser distribution of coded dots also contributes to a decreased affect on a user during normal reading of an LCD screen as described below.


For an LCD screen, an EIC pattern may be configured and displayed with the detection functionalities of a standard EIC paper based design pattern while being less sensitive to the human eye. Aspects of the present invention describe an EIC symbol pattern to embed into an EIC array. Features of LCD technology may be used to decrease the algorithm complexity and affect on the human eye.



FIG. 4A illustrates a symbol of 4×4 LCD pixels, where each sub-pixel may be embedded with 2 bits. FIG. 5 is an illustrative EIC pattern tiled with the 4×4 symbol when magnified 800%. Normally in computer graphics, the intensity formula I=0.59*R+0.3*G+0.11*B is used. The red channel (R) influences intensity more than the green channel (G) or the blue channel (B), and is more sensitive to a camera. Moreover, the color red is more sensitive to the human eye compared to the color green or the color blue. As such, implementations of the present invention are illustrated with the red channel (R) being used to embed code; however, it should be understood by those skilled in the art that the green channel, (G), blue channel (B), or combinations of the red channel, green channel and/or blue channel may be used and that the present invention is not so limited to the illustrations provided herein.


In one embodiment, when embedding code at a red channel (R) sub-pixel position, the gray value of red channel (R) equals zero and the grey value of green channel (G) and blue channel (B) equals 255 respectively. The red channel (R) sub-pixel is dark with no light irradiating, whereas, the green channel (G) and blue channel (B) sub-pixels are fully open, and are shown as white. In accordance with another embodiment, the grey value of each of the red channel (R), green channel (G), and blue channel (B) may be changed based upon a color of an underlying image displayed on the LCD. Moreover, as shown in FIG. 4A, in order to make the codes sparser, there is no black dot in the symbol design, and only one dot is shown of four possible positions, 421, 423, 425, and 427, in each symbol. For example, if the code is 00, then a dot is displayed at red channel (0, 0) sub-pixel position 421. If the code is 01, then a dot is displayed at red channel (0, 1) sub-pixel position 423.


In addition, in each configuration, such as the 4×4 configuration shown in FIG. 4A, the right-most column CRight and bottom-most row RBottom may remain blank. Such a design with the right most column and bottom most row remaining blank ensures that two embedded codes are not connected, potentially causing an error when attempting to read information. The configuration to leave a column blank and a row blank of code may be different, such as shown in FIG. 4B where the left most column remains blank and the top most row remains blank of possible code positions. It should be understood by those skilled in the art that other configurations may be implemented in accordance with aspects of the present invention, including the use of all row and/or columns for positioning of code data.



FIGS. 6 and 7 illustrate other symbols of LCD pixels. FIG. 6 illustrates a symbol of 3×3 LCD pixels, where each sub-pixel may be embedded with two (2) bits. FIG. 7 illustrates a symbol of 4×5 LCD pixels, where each sub-pixel may be embedded with three (3) bits. Although these are but some examples, it should be understood that one or more aspects of the present invention may be implemented within other configurations. For example, the size of the EIC pattern may be defined by a certain number of columns 1 to M and a certain number of rows 1 to N. FIG. 6 illustrates an example of three columns and three rows, while FIG. 7 illustrates an example of 5 columns and 4 rows.


Because the code is embedded into a sub-pixel, e.g., the red channel as shown in the illustrated Figures, the orientation of the EIC pattern is known if the LCD grid is known. In implementation, the grid of an LCD may be captured by a camera as shown in FIG. 9A. Because the left side of an LCD pixel value is dark and the right side is white, determination of the orientation of the pattern may be done. If the orientation of the pattern has been determined, then the black dots may be decoded in the symbol. Consequently, the position information and/or metadata information may be decoded as is done in paper-type EIC pattern applications.


In accordance with another aspect of the present invention, an EIC symbol pattern may also be embedded into other areas for the sub-pixels. For example, as shown in FIG. 8, an EIC symbol pattern may also be embedded into a black matrix, e.g., the LCD grid. As shown in FIG. 8, as opposed to positioning code within a color channel sub-pixel, such as the red channel (R) position in a sub-pixel, an edge 831 of a sub-pixel may be darkened. The code may be configured to include some of the region of the sub-pixel designated for a particular color channel.


With respect to actually embedding an EIC pattern on an LCD screen, one point may be to decrease the appearance of the pattern in temporal and spatial distribution, so as to decrease the stimulus to the human eye. In accordance with one implementation, an overlay technology, such as Microsoft® DirectX, by Microsoft® Corporation of Redmond, Wash., may be used to show the EIC pattern, periodically switching to the LCD screen surface. In such an implementation, the pattern is flashing. The interchanging frequency depends on the refresh time of the particular LCD. For example, if the refresh time of an LCD screen is 12 ms, and the ratio to show the pattern versus screen content is set to 1:1, then the EIC pattern presentation frequency is approximately 40 Hz.



FIGS. 9A-9C illustrate three EIC pattern images captured by a camera. FIG. 9A illustrates a captured EIC pattern image of symbols of 4×4 LCD pixels, where each sub-pixel may be embedded with 2 bits. Such a captured EIC pattern correlates to the EIC pattern symbol as shown in FIG. 4A. FIG. 9B illustrates a captured EIC pattern image of symbols of 3×3 LCD pixels, where each sub-pixel may be embedded with 2 bits. Such a captured EIC pattern correlates to the EIC pattern symbol as shown in FIG. 6. FIG. 9C illustrates a captured EIC pattern image of symbols of 4×5 LCD pixels, where each sub-pixel may be embedded with 3 bits. Such a captured EIC pattern correlates to the EIC pattern symbol as shown in FIG. 7. Image processing and decoding for aspects of the present invention are described more fully in detail below.


In accordance with another implementation of aspects of the present invention, an image on an LCD screen may be watermarked with an EIC pattern. In such an implementation, the EIC pattern may not flash. Instead, the EIC pattern is updated when content refresh is refreshed on the LCD screen. The process of watermarking may be performed in a memory of the LCD with graphics processing units (GPU) or by other means and methods.


As shown in FIGS. 10A and 10B, a portion of an LCD screen is shown with an EIC pattern watermarked on the screen image. The grey value of the sub-pixels used to embed code may be changed in accordance with the background color of the underlying image displayed on the LCD. For example, FIG. 10A illustrates a portion in which sub-pixels 1040 are shown with EIC code embedded therein. FIG. 10B illustrates the portion in a magnified form to illustrate how one sub-pixel 1041 with an embedded EIC code has a different grey value from another sub-pixel 1043 with an embedded EIC code. In the example shown, the grey value of sub-pixels used to embed the code is changed in accordance with the background color of the screen image displayed on the LCD. As such, if a user changes a general location of an image on the LCD display screen, the sub-pixel of that portion of the LCD screen for display of an image and embedded EIC code is changed as well in accordance with the background color of the underlying image. Methods and systems for changing the color may include alpha-blending with a standard implemented color for the EIC code on a white background, varying the grey of the sub-pixel by a certain percentage with respect to the background image grey value, or other methods and systems.



FIG. 11 shows an array 1101 of EIC elements arranged into symbols 1103 that have the EIC elements located on gridlines 1104. An image 1102 is captured by a camera. The EIC symbols 1103 and images of EIC dots can be analyzed to find the corresponding grid lines 1104 in image 1102. If the grid lines 1104 in the image 1102 are found, the corresponding EIC symbols 1103 can be identified and the image 1102 located within array 1101. Here, array 1101 is shown with a height of 214−1 and a width of 214+1. The size of the array can vary, of course, as well as the resulting information provided in each EIC symbol 1103 (where the smaller the array, the less information needed in EIC symbols to locate the image 1102 in the array 1101).


An m-array may be used to represent the X, Y position in an array and multiple m-arrays may be used to represent metadata. These multiple m-arrays may be encoded in EIC symbols. In each EIC symbol, one bit from each m-array may be encoded. EIC symbols in place of the bits of the m-array representing X, Y position and/or metadata information form an EIC symbol array (visually, the tiling of EIC symbols forms the EIC pattern). FIG. 11 shows an EIC symbol array 1101 (of EIC symbol 8-a-16, in an m-array with the order of 28).


EIC pattern analysis includes two main steps. First, images may be processed to improve contrast or undergo other preprocessing. Next, features of an EIC pattern in the image are analyzed. A pen-type input device may be used to analyze the image. The input device is assumed to capture images from a plane. The spatial transform converts the plane to a resulting image (which is also assumed to be a plane). This transformation may be a perspective transform. Here, an EIC pattern in image is expected to lie on grid lines 1104 that are a perspective transform of the grid lines in the EIC symbol array. The perspective transform is first assumed to be an affine transform (i.e. evenly spaced parallel lines are kept evenly spaced and parallel, but perpendicular lines may not be perpendicular anymore). Rotation, scale and translation of the affine transform are estimated from analyzing the EIC pattern in image. The perspective transform can then be obtained by fitting an effective EIC pattern to the affine transformed grid lines.


As described above, an x-y position and metadata information may be embedded on an LCD screen and a pen-type device with a camera assembly may track the position by reading the embedded data. In accordance with further aspects of the present invention, position data and metadata information may be decoded from the images captured by a camera, such as a pen-type input device with a camera, when the camera moves over an LCD screen. As such, the position data and metadata information in an EIC pattern in an image may be decoded by a camera and/or a computer associated with a camera that captures the EIC pattern. The algorithms described herein illustrate methods and systems for decoding 4×4 LCD pixels, where each sub-pixel may be embedded with 2 bits. FIG. 12 illustrates liquid crystal cells and sub-pixels arranged in an LCD, with four possible positions, 1221, 1223, 1225, and 1227 in the red channel (R) of a sub-pixel for embedding an EIC pattern.


In accordance with aspects of the present invention, there are two steps for decoding x-y position data and/or metadata information from captured images. The first step is vision processing of a captured image, where the input is the captured image and the output is an extracted bit stream. The second step is decoding the x-y position data and/or metadata from the extracted bit stream.



FIG. 13 illustrates a sample of a captured image. Certain aspects of the present invention with respect to decoding data from a captured image will utilize the image captured in FIG. 13. In accordance with these aspects of the present invention, the vision processing of a captured image may contain three steps. The steps are pre-processing, LCD-pixel grid analysis, and EIC symbol recognition.


One aspect of the step of pre-processing is to obtain effective pixels that form the LCD grids, i.e., the LCD grid mask. All pixels on the LCD grids are not needed for further data processing, just the pixels near the grid vertex for the algorithm within the next step to determine the perspective transform of the LCD grids from the LCD screen plane to the sensor plane.


As described above, the input of the pre-processing step is a captured image, such as the image shown in FIG. 13. The output is an effective LCD grid mask. FIG. 14 illustrates a normalized image of FIG. 13 with an effective LCD grid mask indicated by the white dotted pixels 1401.


In the descriptions below, an image sensor size of 128×100 pixels is utilized. Pixels are indexed from the top left corner. FIG. 15 illustrates an example pixel index utilized in the examples described below. In accordance with aspects of the present invention, a morphological approach is used to separate the LCD grid mask.


First, pixels that lie on the edge and vertex of the LCD grids are separated. The size of an LCD grid cell in a captured image is known roughly. Therefore, a rough ratio is determined so that the number of pixels that lie on the edge or vertex of the LCD grids in a small block may be estimated. For example, the ratio may be determined to be 2/3. The grey level value of pixels that lie on the edge or vertex of the LCD grids is lower than the grey level values of the pixels that lie on the center of grids. From this information, the captured image may be divided into small blocks, e.g., the block size may be 6×6, and the darkest 24 pixels (2/3*6×6) may be selected as the estimated pixels that form the LCD grids. FIG. 16 illustrates pixels that lie on the edge and vertex of the LCD grids. By dividing the image into small blocks, the pixels that lie on both edge and vertex of the LCD grids are separated as a mask M1. A mask such as M1 is a binary array the same size as the captured image; 1 means valid and 0 means invalid. If a pixel (x, y) lies on an edge or vertex of the LCD grids, then M1 (x, y) is equal to 1, else M1 (x, y) is equal to 0.


The next step is the binary erosion of the mask M1. A binary erosion operator may be used in this step. The input of the operator is the mask M1 obtained in the last step and the output is a new mask M2. For each pixel (x, y), M2(x, y) is equal to 1 if M1(x, y) is equal to 1 and there are 3 or more neighboring pixels of (x, y), which equal to 1, else M2(x, y) is equal to 0. The concept and associated algorithms of binary erosion is readily understood by those skilled in the art.


Two pixels are neighbors to each other if they are directly below, above, or next to each other. FIG. 17 shows neighboring pixels in accordance with aspects of the present invention. Pixel 1701 is a given pixel (x, y). Pixels 1703, 1705, 1707, and 1709 are neighboring pixels of pixel (x, y) 1701. Some neighboring pixels are shown in the cardinal directions (up, down, left, right) of pixel 1701. Others, pixels 1702, 1704, 1706, and 1708, are on the diagonals from pixel 1701. By using a binary erosion operator, many pixels that lie on the edge of grids are thrown off, as shown by mask M2 in FIG. 18.


The third step of pre-processing includes separating large connected regions of mask M2. Two new masks M3 and M4 are obtained by judging the size of connected regions of the mask M2. Mask M3(x, y) is equal to 1 if pixel (x, y) belongs to the small size, e.g., size <15, connected regions of mask M2. Mask M4(x, y) is equal to 1 if (x, y) belongs to the large size, e.g., size ≧15, connected regions of mask M2. Connected regions are identified as Rt, where t=1, 2, . . . , T,


Rt={(xi, yi)|M2(xi, yi)=1, (xi, yi) are neighbors}, the size of a connected region means the count of pixels in the region.


If mask M3(x, y) is equal to 1, the pixel (x, y) is considered to lie on the vertex of the LCD grids, as shown by the pixels in FIG. 19. The pixels that lie on the large connected regions, as represented by mask M3 and as the pixels shown in FIG. 20, are further processed in the next step.


The fourth step of pre-processing includes thinning the mask M4. Mask M4 is processed by another binary erosion operator and a new mask M5 is obtained. Mask M5(x, y) is equal to 1 if M4(x, y) is equal to 1 and the value of 3 or 4 neighbor pixels of (x, y) in mask M4 are equal to 1. The pixels that belong to the small connected regions of M5 form another mask M6. Mask M5 and mask M6 are illustrated in FIGS. 21 and 22 respectively. The LCD grid mask is obtained by merging the mask M3 and mask M6, as shown in FIG. 14.


The second step of vision processing, LCD-pixel grid analysis, is described below. As FIG. 23 shows, using the result of pre-processing, LCD-pixel grid analysis may be applied to retrieve the accurate perspective LCD pixel grid. It is understood by those skilled in the art that various methods may be used for LCD-pixel grid analysis. One example method for LCD-pixel grid analysis is described below.


EIC pattern analysis obtains a homography matrix describing the perspective transform from a grid to an image. A perspective transform is a planar transform that is a perspective projection. With a perspective transform, a line is still a line. Parallel lines may not be parallel anymore. Instead, they may appear to converge to a vanishing point. To obtain the perspective transform, the affine transform is first obtained. Then, the affine transform is used as an initial estimate of perspective transform, and a perspective transform is determined. An affine transform keeps evenly spaced parallel lines evenly spaced and parallel, but perpendicular lines may not remain perpendicular. This step obtains the rotation, scale (distance between parallel lines) and translation (distance between the origins) of the affine transform. The output of this step is a homography matrix that describes the affine transform.


First, the system finds two main directions of EIC symbols. This step looks at all the directions formed by pairs of connected effective EIC pattern regions and finds two directions that occur the most often.


As described above, given effective EIC pattern mask, regions Rt, where t=1, 2, . . . , T, of pixels (xi, yi) are identified:

Rt={(xi, yi)|EIC Pattern Mask (xi, yi)=1, (xi, yi) are neighbors}.


Next, gray-level centroids of the regions are identified. For each region Rt, where t=1, 2, . . . T, gray-level centroid ( xt, yt) is:








x
_

t

=


1




i
=
0


N
t




G


(


x
i

,

y
i


)









i
=
0


N
t




(


x
i

·

G


(


x
i

,

y
i


)



)











y
_

t

=


1




i
=
0


N
t




G


(


x
i

,

y
i


)









i
=
0


N
t




(


y
i

·

G


(


x
i

,

y
i


)



)








where (xi, yi) is a pixel in region Rt, G(xi, yi) is the gray-level of the pixel, and Nt is the total number of pixels in region Rt.


Third, for each pair of regions, Ru and Rv, a direction of the pair is obtained:







θ

u
,
v


=

arc






tan


(




y
_

u

-


y
_

v





x
_

u

-


x
_

v



)








where 0≦θu,v<180. FIG. 24 shows an example of θ. Here, θ is a rotation about point 2401 from horizontal line 2402 to a line 2403 connecting centroids 2401 with another centroid 2404. The determination of angle θ may be performed for all centroids from all centroids in the capture image.


Once all the directions are obtained, a histogram of directions can be created. The X axis is θ. The Y axis is the frequency count of θ.


Next, the histogram is first normalized using template [−0.1, −0.1, −0.1, −0.1, −0.1, 0, 0, 0, 1, 0, 0, 0, −0.1, −0.1, −0.1, −0.1, −0.1]. That is, for every x, where x=0, 1, . . . , 179,







Y


(
x
)


=




i
=
0

16



(


template


[
i
]


·

Y


(

mod


(


x
+
i
-
8

,
180

)


)



)







mod(x, y) is a function that returns the positive remainder of x divided by y. For example, mod(3,2)=1, mod(−3,2)=1.


Next, four candidates of the main directions are identified. The X value that has the highest Y value is set as Candidate 1. Y values of adjacent X are suppressed to 0, i.e. Y(x)=0, where x is in the range of mod(Candidate 1±30, 180). Find the next X value with the highest Y value and set as Candidate 2. Y values of adjacent X are suppressed to 0, i.e. Y(x)=0, where x is in the range of mod(Candidate 2±30, 180). Repeat the process to find Candidate 3 and Candidate 4. The reason for the suppression of the regions is that these angles are where EIC symbols are not expected to lie.


From the 4 candidates, 2 pairs of near perpendicular directions are identified. That is, for a candidate xi, select another candidate xj, such that abs(90−abs(xi−xj)) is minimized. abs(x) is a function that returns the absolute value of x. For example, abs(1.8)=1.8, abs(−1.8)=1.8.


Now, select (xi, xj) such that Y(xi)+Y(xj) is maximized.


Given the pair selected, (xi, xj), centroid of a small area near xi and xj is calculated:








x
_

i

=





k
=

-
5


5



(


mod


(



x
i

+
k

,
180

)


·

Y


(

mod


(



x
i

+
k

,
180

)


)



)






k
=

-
5


5



Y


(

mod


(



x
i

+
k

,
180

)


)












x
_

j

=





k
=

-
5


5



(


mod


(



x
j

+
k

,
180

)


·

Y


(

mod


(



x
j

+
k

,
180

)


)



)






k
=

-
5


5



Y


(

mod


(



x
j

+
k

,
180

)


)








The two centroids are the two main directions. That is, suppose xi< xj, θh= xi, and θv= xj.


Next, the system determines the scale and translation for the EIC symbols.


In the step, one looks for the scale and translation of the affine transform. Scale is the distance between two adjacent parallel lines. Translation is the distance between the image center and the origin of the coordinate system formed by the grid lines. Both scale and translation are measured in pixels.



FIG. 25 shows the affine transformed grid lines. The two main directions are: θh, θv. The two scales along the two directions are: Sh, Sv. The two translations are: Δh, Δv.


Note that the H, V coordinate system shown in FIG. 25 is the coordinate system of the grid. Grid lines are not seen in image. But as explained before, if one assumes an affine transform is from a paper plane to an image plane, the EIC pattern in the image may appear to lie on grid lines that are an affine transform of the grid lines in the EIC symbol array. Therefore, one can draw grid lines in image (the gridlines parallel to lines 2501 and 2502) and the H, V coordinate system based on an affine transform of the grid lines in EIC symbol array.


The X, Y coordinate system shown in FIG. 25 is the coordinate system of the image. Facing the image, the X− is always horizontal and Y is always vertical. The image center is the origin of the X, Y coordinate system.


To obtain the two scales Sh, Sv, the image may be rotated counterclockwise with θh, θv respectively.


From here, with the affine transform obtained, the perspective transform may be obtained from the affine transform. It should be understood by those skilled in the art that there are a number of different way in which to retrieve the LCD grid and that the examples provided herein are but illustrative examples. After successfully retrieving the LCD grid, three algorithms apply the grid and image to recognize the embedded EIC information: EIC symbol orientation; symbol analysis; and EIC bits extraction. First, to determine the EIC symbol orientation in the image, steps may be utilized as described below.


As shown in FIG. 26, eight (8) points of each LCD pixel are sampled. The positions (hi,j,p, vi,j,p) of the 8 sampling points Gi,j,p(0≦p≦7) in each LCD pixel grid (i, j) are:







(


1
3

,

1
3


)

,

(


1
2

,

1
3


)

,

(


2
3

,

1
3


)

,

(


1
3

,

1
2


)

,

(


2
3

,

1
2


)

,

(


1
3

,

2
3


)

,






(


1
2

,

2
3


)






and







(


2
3

,

2
3


)

.







In accordance with aspects of the present invention, the LCD pixel grid is valid only if 8 sampling points are all valid. The sampling algorithm may include bilinear sampling.


Next, the average grey-level difference Di,j,q(0≦q≦3) of four orientations for each valid LCD pixel grid is calculated. One method for calculating the grey-level difference follows the equation:






{





D

i
,
j
,
0


=



(


G

i
,
j
,
0


+

G

i
,
j
,
3


+

G

i
,
j
,
5



)

-

(


G

i
,
j
,
2


+

G

i
,
j
,
4


+

G

i
,
j
,
7



)


3








D

i
,
j
,
1


=



(


G

i
,
j
,
0


+

G

i
,
j
,
1


+

G

i
,
j
,
2



)

-

(


G

i
,
j
,
5


+

G

i
,
j
,
6


+

G

i
,
j
,
7



)


3








D

i
,
j
,
2


=



(


G

i
,
j
,
2


+

G

i
,
j
,
4


+

G

i
,
j
,
7



)

-

(


G

i
,
j
,
0


+

G

i
,
j
,
3


+

G

i
,
j
,
5



)


3








D

i
,
j
,
3


=



(


G

i
,
j
,
5


+

G

i
,
j
,
6


+

G

i
,
j
,
7



)

-

(


G

i
,
j
,
0


+

G

i
,
j
,
1


+

G

i
,
j
,
2



)


3









Then, smallest 25 differences Di,j,q for each orientation q from all valid LCD pixel grids are selected and their average grey-level difference Dq(0≦q≦3) of each orientation is averaged. The threshold 25 is the average visible EIC symbol on an LCD in a captured image by a camera. It should be understood by those skilled in the art that the threshold value of 25 is one illustrative value, but other smaller or larger values may be utilized. Next, most possible correct orientation q, which has the smallest Dq(0≦q≦3), is determined. As shown in FIGS. 27 and 28, the reference frame for the LCD pixel grids is redefined so that an axis is consistent with an ideal reference frame. Finally, the average grey-level difference Di,j,0 of all valid LCD pixel grids is recalculated in the new reference frame.


The second algorithm to recognize the embedded EIC information is symbol analysis. EIC symbol orientation has been determined above; however, the EIC symbol on the LCD reference alignment remains unknown. For symbol analysis, two algorithms may be used to retrieve horizontal and vertical alignment respectively. First, the smallest 25 differences Di,j,0 from all valid LCD pixel grids are selected. The threshold 25 is the average visible EIC symbol on an LCD in a captured image by a camera. It should be understood by those skilled in the art that the threshold value of 25 is but one value and other smaller or larger values may be utilized.


Then, EIC symbol horizontal alignment is calculated. First, a histogram count Hp(0≦p≦3) of the selected Di,j,0 is obtained by Mod(j,4). Second, the correct horizontal alignment position is obtained as the histogram index P with the biggest value Hp(0≦p≦3).


Next, EIC symbol vertical alignment is calculated. First, a histogram count Vp(0≦p≦3) of the selected Di,j,0 is obtained by Mod(i,4). Second, the correct vertical alignment position is obtained as the histogram index P with the biggest value Vp(0≦p≦3).


Finally, the third algorithm to recognize the embedded EIC information is the EIC bits extraction algorithm, where EIC bits for each EIC symbol in the image are calculated. First, as shown in FIG. 26, the smallest Di,j,0 2601 of four possible information LCD pixels for each EIC symbol is identified. Second, two EIC bits (B1B0) are retrieved from the EIC symbol as shown in FIGS. 30A-30D. Finally, bit arrays are constructed from the retrieved bits such as shown in FIG. 31.


The extracted EIC bits are a piece of single m-array bits that are used to decode x-y position data and/or metadata information. It should be understood by those skilled in the art that various methods may be used for EIC decoding of the EIC bit stream. One example method for EIC decoding of the EIC bit stream is described below.


In order to determine the position of an image relative to an LCD using an m-array, it is necessary to determine the position of a bit captured in the bit relative to the m-array. That is, it is necessary to determine if the bit is the first bit, second bit, etc. in the m-sequence to determine the position of the bit in the m-array.


For any number s, where 0≦s≦2n−1, there exists a unique polynomial r(x), where







r


(
x
)


=




i
=
0


n
-
1





r
i



x
i








whose order is less than n, such that xs≡r(x)(mod Pn(x)), and vice versa. In other words, there is a one-to-one relationship between s and r(x). Thus, xs/Pn(x) and r(x)/Pn(x) will generate the same m-sequence. For convenience, setting Q(x)=1, m can be assumed to be the m-sequence generated by 1/Pn(x). If a bit is the s′-th bit of m, where 0≦s′<2n−1, the m-sequence that starts from that bit is R=σ−s′(m)=σ2n−1−s′(m)=σs(m), where s=2n−1−s′. R corresponds to division xs/Pn(x).


As previously noted, there exists








r


(
x
)


=




i
=
0


n
-
1





r
i



x
i




,





that satisfies r(x)≡xs(mod Pn(x)). R also corresponds to r(x)/Pn(x). Letting m=(m0 m1 . . . mi . . . m2n−3 m2n−2)t (where the superscript t stands for vector or matrix transpose), and σi(mt)=(m2n−1−i m2n−i . . . m0 . . . m2n−3−i m2n−2−i), r(x)/Pn(x) and 1/Pn(x) will have the following relationship:











r


(
x
)




/




P
n



(
x
)



=


(




i
=
0


n
-
1





r
i



x
i



)



/




P
n



(
x
)









=




i
=
0


n
-
1




[


r
i



x
i



/




P
n



(
x
)



]








=




i
=
0


n
-
1






r
i



[



x
i

·
1



/




P
n



(
x
)



]


.










With R corresponding to r(x)/Pn(x), and σi(m) corresponding to xi·1/Pn(x), then,

Rt=rt{circumflex over (M)}

where R is the m-sequence that starts from the s′-th bit of m, r=(r0 r1 r2 . . . rn−1)t are the coefficients of r(x), and







M
^

=


(




m
t






σ


(

m
t

)













σ

n
-
1




(

m
t

)





)

.





Again, the addition and multiplication operations are binary operations, i.e., addition is XOR and multiplication is AND.


If an image captures K bits b=(b0 b1 b2 . . . bK−1)t of m (K≧n), and the relative distances between the positions of the bits in the m-sequence are: si=d(bi, b0)), where i=0, 1, . . . , K−1 and s0=0, selecting the si+1-th bits of R and the si+1-th columns of {circumflex over (M)} will result in:

bt=rtM

where bt is the transpose of b, M is a sub-matrix of {circumflex over (M)} and consists of the si+1-th columns of {circumflex over (M)}, where i=0, 1, 2, . . . , K−1.


If M is a non-degenerate matrix and b does not contain error bits, then r can be solved by selecting n bits from b by solving for:

rt={tilde over (b)}t{tilde over (M)}−1

where {tilde over (M)} is any non-degenerate n×n sub-matrix of M, and {tilde over (b)} is the corresponding sub-vector of b consisting of the selected n bits.


In most cases, however, an image cannot capture a set of bits b that does not contain error bits. For example, improper illumination, document content, dust and creases can all obscure the visual representation of bits in an image, preventing these bits from being recognized or causing the value of these bits to be improperly recognized. The solution of r becomes difficult when there are error bits in b. Further, decoding becomes even more difficult because the coefficient matrix M is not fixed when the pen moves, changing the image from frame to frame. Moreover, the structure of M is irregular. Therefore, traditional decoding algorithms cannot effectively be applied to solve r under practical circumstances.


To address these difficulties, stochastic solution techniques provide a high decoding accuracy under practical conditions. As will be described in more detail, these techniques solve the equation bt=rtM incrementally so that many solution candidates are readily available without having to solve this equation exactly.


According to various examples of the invention, independent n bits (i.e., the sub-matrix consisting of the corresponding columns of M is non-degenerate) are randomly selected from the group of b that are captured in an image of a document. Supposing that b(0) are the n bits chosen, a solution for r can then be obtained as:

[r(0)]t=[b(0)]t[M(0)]−1

where M(0) contains the corresponding columns of the array M for the chosen bits.


For simplicity, the n bits chosen from b to make up b(0) can be moved to the beginning of b, with the remaining bits making up b moved to the end of b. This leads to the relationship

([b(0)]t,[ b(0)]t)=[r(0)]t(M(0), M(0))+(0nt,[e(0)]t)

where b(0) are the chosen n bits, b(0) are the remaining bits from the set b, M(0) is the corresponding columns of M for the chosen bits, M(0) is the corresponding columns of M for the remaining bits, 0nt=(0 0 . . . 0)1×n, [r(0)]t=[b(0)]t[M(0)]−1, and [e(0)]t=[ b(0)]t+[r(0)]tM(0).


The value (0nt,[e(0)]t) refers to the “difference vector” between ([b(0)]t,[ b(0)]t) and [r(0)]t(M(0), M(0)), or simply the different vector of r(0), and the number of 1's in (0nt,[e(0)]t) is called the number of different bits. The vector containing different bits between ([b(0)]t.[ b(0)]t) and [r(0)]t(M(0), M(0)) alternately can be identified as D(0). If D(0)=(0nt,[e(0)]t), then the number d(0) of 1's in D(0) is d(0)=HammingWeight(D(0))=HammingWeight(e(0)). That is, d(0) is the number of different bits between ([b(0)]t,[ b(0)]t) and [r(0)]t(M(0), M(0)).


Next, some of the chosen bits n from the set b are switched with some of the remaining bits from the set b. In particular, J bit pairs (kj,lj) are switched between the original chosen bits n and the remaining bits from the set of bits b, where k1≠k2≠ . . . ≠kJ≦n, n<l1≠l2≠ . . . ≠lJ≦K. It should be noted that the bit order is redefined in ([b(0)]t,[ b(0)]t), and these bits are not maintained in their original order. The relationship between the bits before and after switching is:









[



(
1
)


]

t

=



[



(
0
)


]

t

+



[



(
0
)


]

t





E

l
-
n




[

P

R
j


(
0
)


]



-
1




(



E
k
t



P

(
0
)



+

E

l
-
n

t


)




,







[

r

(
1
)


]

t

=



[

r

(
0
)


]

t

+



[



(
0
)


]

t





E

l
-
n




[

P

R
j


(
0
)


]



-
1






E
k
t



[

M

(
0
)


]



-
1





,






P

(
1
)


=


P

(
0
)


+




(


E
k

+


P

(
0
)




E

l
-
n




)



[

P

R
j


(
0
)


]



-
1




(



E
k
t



P

(
0
)



+

E

l
-
n

t


)




,







[

M

(
1
)


]


-
1


=



[

M

(
0
)


]


-
1


+




(


E
k

+


P

(
0
)




E

l
-
n




)



[

P

R
j


(
0
)


]



-
1






E
k
t



[

M

(
0
)


]



-
1





,




where








E
k

=


(




e

k
1





e

k
2








e

k
J





)


n
×
J



,






E

l
-
n


=


(




e


l
1

-
n





e


l
2

-
n








e


l
J

-
n





)



(

K
-
n

)

×
J



,






P

R
j


(
0
)


=


E
k
t



P

(
0
)




E

l
-
n












e
i
t

=


(



0





0



1
i



0





0



)


l
×
n





or





l
×

(

K
-
n

)




,








and








P

(
i
)


=



[

M

(
i
)


]


-
1





M
_


(
i
)




,





i
=
0

,
1.




If the choice of (kj,lj) is to make:

[e(0)]tEl−n[PRJ(0)]−1=1Jt,

where 1Jt=(1 1 . . . 1)1×J, then

[e(1)]t=[e(0)]t+1Jt(EktP(0)+El−nt)
[r(1)]t=[r(0)]t+1JtEkt[M(0)]−1.


In view of [e(0)]tEl−n[PRJ(0)]−1=1Jt given k1≠k2≠ . . . ≠kJ≦n, the choice of n<l1≠l2≠ . . . ≠lJ≦K is as follows: {l1, l2, . . . , lJ}⊂{p1, . . . , pm}, where {p1, . . . , pm.} are the indices of the O-bits of [e(0)]t+1JtEktP(0), and PRJ(0) is invertible. Therefore, if the rank of EktP(0)Ep−n is less than J, then such l1, l2, . . . , lJ cannot be chosen, where Ep−n=(ep1−n ep2−n . . . epm−n)(K−n)×m. Choosing other l1, l2, . . . , lJ is equivalent to switching a smaller number of bit pairs, and therefore does not conform to the goal of switching J bits. It should be noted that, as long as the rank of EktP(0)Ep−n is J, the choice of l1, l2, . . . , lJ will result in the identical location vector. Therefore, choosing one combination is sufficient. Moreover, as long as PRJ(0) is invertible, the newly selected n bits are also independent.


With the above choice of l1, l2, . . . , lJ, the number of different bits in e(i+1) is:

The number of 1's in ([e(0)]t+1JtEktP(0))+J


It should be noted that EktP(0)El−n actually means choosing the k1, . . . , kJ-th rows and l1−n, . . . lJ−n-th columns of P(0), while 1JtEktP(0) actually means summing the k1, . . . , kJ-th rows of P(0). No matrix computation is needed.


Thus, the decoding steps can be summarized as follows. First, an independent n-bit combination is generated from the group of bits b captured in an image. It should be noted that, with various embodiments of the invention, the selection of the n-bits can be combined with bit recognition confidence techniques, to help ensure that the most accurately recognized bits are selected for the n-bit combination.


Next, the relationship ([b(0)]t,[ b(0)]t)=[r(0)]t(M(0), M(0))+(0nt,[e(0)]t) is solved to determine d(0)=HammingWeight(D(0))=HammingWeight(e(0)). If the number of different bits d(0) is 0, then the process is stopped and the solution r(0) is output. Otherwise, all J (=1 and 2) bit pairs are switched, and the number of different bits d is again determined using the relationship ([e(0)]t+1JtEktP(0))+J. It should be noted, however, that this relationship can only be evaluated when the rank of EktP(0)Ep−n is J. In this case there is no need to specify l1, l2, . . . , lJ. Next, the minimal number d of different bits is determined.


The above process has to be repeated several times in order to ensure a high enough probability of successful decoding. To estimate the times of selecting the n-bit b(0) from b, the number r of the error bits in b is first predicted to be d. If r is changed, then








p
s

=



C
r
s



C

K
-
r


n
-
s




C
K
n



,





is computed, which is the probability that the chosen n bits contain s error bits, where







C
a
b

=


a
!



b
!




(

a
-
b

)

!








is the combinatory number, and








P
s

=




i
=
0

s



p
i



,





is the probability that the chosen n bits contain less than s+1 error bits. In practice, s=2 in order to minimize the computation load. Next, s2 is computed, such that 1−(1−P2)s2≧Pe, where Pe is the expected probability of successful decoding. If the times S of chosen b(0) is equal to or larger than s2, then the process is stopped and the results are output. Otherwise, the process is repeated with a new independent n-bit combination b(0) generated from the group of bits b captured in an image. Using this process, as long as the chosen n bits contain less than J+1 error bits, the correct solution can be found.


Illustrative components for a system 3200 for creating an EIC pattern on an LCD is shown in FIG. 32. System 3200 is shown to include a design component 3201, a processor component 3203, an embedding component 3205, an LCD 3207, and a decoder component 3209. Design component 3201 may be configured to define a size 3221 of the EIC pattern for display on the LCD 3207. The size 3221 may be defined by a grid with pixels arranged into columns and rows. Processor component 3203 may be configured to determine an area 3223 of the grid for embedding position data associated with the dimensions of the LCD 3207.


Embedding component 3205 may be configured to embed the position data 3225 in the determined area of the grid. LCD 3207 may be configured to display the position data in the EIC pattern on a screen. LCD 3207 may be configured to intermittently display 3227 the EIC pattern and/or display the EIC pattern as a watermark 3237 on an underlying image associated with an application program. Decoder component 3209 may be configured to decode the embedded position data and/or metadata information. Decoder component 3209 may be configured to include a camera 3229 configured to capture an image of the EIC pattern and an extractor 3239 configured to extract the embedded position data and/or metadata information from the captured image of the EIC pattern.



FIG. 33 is an illustrative method for creating an EIC pattern on an LCD in accordance with at least one aspect of the present invention. The process starts at step 3301 where a size of the EIC pattern on an LCD is defined by a grid and pixels. At step 3303, an area of the grid for embedding position data and/or metadata information is determined. A determination is made at step 3305 as to whether the determined area is a pixel. If the determined area is a pixel, the process moves to step 3307 where a specific sub-pixel of the determined pixel is determined to embed the EIC pattern. At step 3309, the position data and/or metadata information is embedded in the specific sub-pixel of the determined pixel. Such a sub-pixel may be the red channel sub-pixel of a pixel. Proceeding to step 3311, the grey value of the sub-pixel of the determined pixel may be changed based upon a background color of an underlying image currently displayed on the LCD screen. The process then moves to step 3317.


If the determined area is not a pixel in step 3305, the process moves to step 3313 where the position data and/or metadata information is embedded in a portion of the black matrix of the grid itself. Such a portion may be an edge that separates two sub-pixels of one pixel or two sub-pixels of two different pixels. Proceeding to step 3315, the grey value of the portion of the grid may be changed based upon a background color of an underlying image currently displayed on the LCD screen. The process then moves to step 3317. At step 3317, an orientation of the EIC pattern is determined. Moving to step 3319, the position data and/or metadata information is decoded and the process ends.


Illustrative components for a system 3400 for decoding an EIC pattern on an LCD is shown in FIG. 34. System 3400 is shown to include an input component 3401, a processor component 3403, and a decoding component 3405. Input component 3401 may be configured to receive captured images. Decoding component 3405 may be configured to decode position data and/or metadata information from an extracted bit stream to determine a position of the capture images with respect to a screen of the LCD. Processor component 3403 may be configured to process the captured images and output an extracted bit stream.


Processor component may be configured to include a preprocessing component 3411, a definition component 3413, a recognition component 3415, and an extracting component 3417. Preprocessing component 3411 may be configured to determine pixels corresponding to LCD pixel grids associated with the EIC pattern. Definition component 3413 may be configured to define the LCD pixel grids based upon the determined pixels. Recognition component 3415 may be configured to recognize the EIC pattern from the LCD pixel grids, and extracting component 3417 may be configured to extract a bit stream of EIC bits based upon the recognized EIC pattern.


Preprocessing component 3411 may further be configured to include a pixel separator, a binary erosion component, a separation component, a mask definer, and a mask merger. The pixel separator may be configured to separate pixels that lie on edges and vertexes of the LCD pixel grids as a first mask. The binary erosion component may be configured to erode the first mask to obtain a second mask, the second mask including fewer pixels than the first mask. The separation component may be configured to separate connected regions of the second mask in accordance with a first threshold to obtain a third mask and a fourth mask. The mask definer may be configured to define a sixth mask as pixels that belong to regions of the fifth mask, and the mask merger may be configured to merge the third and the sixth masks to define the LCD pixel grids. The binary erosion component may be further configured to erode the fourth mask to obtain a fifth mask, and a second threshold may be defined to correspond to a region of the fifth mask.


Recognition component 3415 may further be configured to include an orientation component, an alignment retriever, and a calculation component. The orientation component may be configured to determine an orientation of the EIC pattern in the captured image. The alignment retriever may be configured to retrieve horizontal and vertical alignment information for the orientation, and the calculation component may be configured to calculate EIC bits for the EIC pattern.



FIG. 35 is an illustrative method for decoding an EIC pattern on an LCD in accordance with at least one aspect of the present invention. The process starts at step 3501 where a captured image is received by the system. At step 3503, the captured image is processed to output an extracted bit stream. At step 3505, position data and/or metadata information is decoded from the extracted bit stream. Proceeding to step 3507, a position of the captured image with respect to a screen of an LCD is determined and the process ends.



FIG. 36 provides an illustrative method for step 3503 shown in FIG. 35 in accordance with at least one aspect of the present invention. The process starts at step 3601 where the captured image is preprocessed to determine pixels corresponding to LCD pixel grids associated with the EIC pattern. At step 3603, the LCD pixel grids are defined based upon the pixels. Moving to step 3605, the EIC pattern is recognized from the LCD pixel grids. A bit stream of EIC bits based upon the recognized EIC pattern is extracted at step 3607 and the process ends.



FIG. 37 provides an illustrative method for step 3601 shown in FIG. 36 in accordance with at least one aspect of the present invention. The process starts at step 3701 where pixels that lie on edges or vertexes of the LCD grids are separated as a first mask. At step 3703, a binary erosion operation is performed on the first mask to obtain a second mask. In this step, fewer pixels remain in the second mask compared to the first mask. Proceeding to step 3705, connected regions of the second mask are separated in accordance with a first threshold to obtain a third mask and a fourth mask. Another binary erosion operation is performed at step 3707 on the fourth mask to obtain a fifth mask. Moving to step 3709, a second threshold corresponding to a region of the fifth mask is defined. At step 3711, a sixth mask is defined as pixels that belong to the regions of the fifth mask. Finally, at step 3713, the third and the sixth masks are merged to define the LCD pixel grids and the process ends.


With respect to an application programming interface (API), various aspects of the present invention may be performed by an API. For example, public APIs may interface with an operating system to allow the operating system to provide the various features of the present invention. In one illustrative embodiment, a software architecture for processing data representative of positioning information on an LCD screen and/or metadata information may include a component configured to recognize the position of an input device with respect to an area of an LCD screen and an application program interface to access the component. An API may receive a request to recognize the position of an input device, access the necessary function(s) to perform the operation, and then send the results back to an operating system. The operating system may use the data provided from the API to perform the various features of the present invention. In another embodiment, the component may be configured to process a captured image to output an extracted bit stream, to decode position data and/or metadata information from the extracted bit stream, and to determine a position of the captured image with respect to a screen of an LCD.


As can be appreciated by one skilled in the art, a computer system with an associated computer-readable medium containing instructions for controlling the computer system can be utilized to implement the illustrative embodiments that are disclosed herein. The computer system may include at least one computer such as a microprocessor, digital signal processor, and associated peripheral electronic circuitry.


While illustrative systems and methods as described herein embodying various aspects of the present invention are shown, it will be understood by those skilled in the art, that the invention is not limited to these embodiments. Modifications may be made by those skilled in the art, particularly in light of the foregoing teachings. For example, each of the elements of the aforementioned embodiments may be utilized alone or in combination or subcombination with elements of the other embodiments. It will also be appreciated and understood that modifications may be made without departing from the true spirit and scope of the present invention. The description is thus to be regarded as illustrative instead of restrictive of the present invention.

Claims
  • 1. A method for creating a pattern on a liquid crystal display (LCD) and decoding position data from the pattern, the method comprising steps of: defining a size of the pattern on an LCD by a grid with a plurality of pixels, each pixel having sub-pixels with an adjustable intensity value;determining an area of the grid for embedding position data, wherein the position data provides an indication of position relative to the LCD and wherein the position data is comprised of a plurality of dots; andembedding the position data in the determined area of the grid by: for each dot associated with the position data, selecting one of the plurality of pixels of the grid corresponding to the position of the dot of the pattern,selecting a sub-pixel of the selected pixel, andadjusting the intensity value of the selected sub-pixel to indicate its correspondence with the dot wherein the adjusted intensity value of the selected sub-pixel is based on an underlying image displayed on the LCD;receiving a captured image:decoding position data from the pattern, wherein decoding position data includes, processing the captured image to output an extracted bit stream by, preprocessing the captured image to determine pixels corresponding to LCD pixel grids associated with the embedded interaction code pattern, wherein preprocessing includes: separating pixels that lie on edges and vertexes of the LCD pixel grids as a first mask,binary eroding the first mask to obtain a second mask, the second mask including fewer pixels than the first mask,separating connected regions of the second mask in accordance with a first threshold to obtain a third mask and a fourth mask,binary eroding the fourth mask to obtain a fifth mask,defining a second threshold corresponding to a region of the fifth mask,defining a sixth mask as pixels that belong to the regions of the fifth mask, andmerging the third and the sixth masks to define the LCD pixel grids,defining the LCD pixel grids based upon the pixels,recognizing the embedded interaction code pattern from the LCD pixel grids,extracting a bit stream of embedded interaction code bits based upon the recognized embedded interaction code pattern to obtain the extracted bit stream;decoding position data from the extracted bit stream, anddetermining a position of the captured image relative to the LCD based upon the decoded position data
  • 2. The method of claim 1, wherein the determined area of the grid includes a pixel of the plurality of pixels and the step of embedding includes embedding the position data in a sub-pixel of the pixel.
  • 3. The method of claim 2, wherein a pixel includes three sub-pixels including a red channel sub-pixel, a green channel sub-pixel, and a blue channel sub-pixel.
  • 4. The method of claim 3, wherein the step of embedding the position data in the sub-pixel includes embedding the position data in the red channel sub-pixel.
  • 5. The method of claim 4 wherein the grey value of the red channel sub-pixel equals zero and the grey value of the green channel sub-pixel and the blue channel sub-pixel equals 255.
  • 6. The method of claim 4, wherein the intensity value of the red channel sub-pixel is based upon a color of an underlying image displayed on the LCD.
  • 7. The method of claim 1, wherein the step of decoding includes a step of determining the orientation of the pattern.
  • 8. The method of claim 1, wherein the size of the pattern is defined by columns 1 to M and rows 1 to N, M and N being integers.
  • 9. The method of claim 8, wherein M and N are equal in value.
  • 10. The method of claim 8, wherein the step of embedding includes embedding the position data in one of columns 1 to M−1 and in one of rows 1 to N−1.
  • 11. The method of claim 1, wherein the position data includes two bits of data to define a position along an x axis and a y axis.
  • 12. The method of claim 1, further comprising a step of displaying the EIC pattern on the LCD by intermittently flashing the EIC pattern.
  • 13. The method of claim 1, further comprising a step of displaying the pattern on the LCD by watermarking an image on the LCD with the pattern.
  • 14. The method of claim 1, wherein the determined area of the grid includes first and second pixels of the plurality of pixels and the step of embedding includes embedding the position data in a sub-pixel of the first pixel and a sub-pixel of the second pixel, wherein the intensity value of the first sub-pixel is different from the intensity value of the second sub-pixel and is based upon a color of an underlying image displayed on the LCD.
  • 15. A system for creating a pattern on a liquid crystal display (LCD), the system comprising: a design component configured to define a size of the pattern for display on the LCD, the size defined by a grid with a matrix formed by a plurality of pixels arranged in a plurality of columns and a plurality of rows, each pixel having sub-pixels with adjustable intensity values;a processor component configured to determine an area of the grid for embedding position data relative to the LCD;an embedding component configured to, when the determined area is a pixel, embed the position data relative to the LCD in the determined area of the grid by adjusting the intensity value of a sub-pixel of at least one of the plurality of pixels;an embedding component configured to, when the determined area is not a pixel, embed the position data relative to the LCD in the determined area of the grid by adjusting the intensity value of a portion of the matrix, wherein the position data is not based on an underlying image displayed on the LCD; andan LCD configured to display the position data in the pattern wherein the location of the position data is not based on an underlying image displayed on the LCD.
  • 16. The system of claim 15, further comprising a decoder component configured to decode the embedded position data.
  • 17. The system of claim 16, wherein the decoder component includes a camera configured to capture an image of the pattern and an extracting component configured to extract the embedded position data from the captured image of the pattern.
  • 18. The system of claim 15, wherein the LCD is further configured to display the position data in the EIC pattern by intermittently flashing the EIC pattern on the LCD.
US Referenced Citations (284)
Number Name Date Kind
4686329 Joyce Aug 1987 A
4742558 Ishibashi et al. May 1988 A
4745269 Van Gils May 1988 A
4829583 Monroe et al. May 1989 A
4941124 Skinner, Jr. Jul 1990 A
5032924 Brown et al. Jul 1991 A
5051736 Bennett et al. Sep 1991 A
5073966 Sato Dec 1991 A
5146552 Cassorla et al. Sep 1992 A
5153928 Iizuka Oct 1992 A
5181257 Steiner et al. Jan 1993 A
5196875 Stuckler Mar 1993 A
5235654 Anderson et al. Aug 1993 A
5243149 Comerford et al. Sep 1993 A
5247137 Epperson Sep 1993 A
5253336 Yamada Oct 1993 A
5288986 Pine et al. Feb 1994 A
5294792 Lewis et al. Mar 1994 A
5335150 Huang Aug 1994 A
5365598 Sklarew Nov 1994 A
5394487 Burger et al. Feb 1995 A
5398082 Henderson et al. Mar 1995 A
5414227 Schubert et al. May 1995 A
5442147 Burns et al. Aug 1995 A
5448372 Axman et al. Sep 1995 A
5450603 Davies Sep 1995 A
5454054 Iizuka Sep 1995 A
5471533 Wang et al. Nov 1995 A
5477012 Sekendur Dec 1995 A
5511156 Nagasaka Apr 1996 A
5546515 Mochizuki Aug 1996 A
5581637 Cass et al. Dec 1996 A
5581682 Anderson et al. Dec 1996 A
5587558 Matsushima et al. Dec 1996 A
5612524 Sant'Anselmo et al. Mar 1997 A
5626620 Kieval et al. May 1997 A
5629499 Flickinger et al. May 1997 A
5635697 Shellhammer et al. Jun 1997 A
5644652 Bellegarda et al. Jul 1997 A
5652412 Lazzouni et al. Jul 1997 A
5661291 Ahearn et al. Aug 1997 A
5661506 Lazzouni et al. Aug 1997 A
5670897 Kean Sep 1997 A
5686718 Iwai et al. Nov 1997 A
5692073 Cass Nov 1997 A
5719884 Roth et al. Feb 1998 A
5721940 Luther et al. Feb 1998 A
5726435 Hara et al. Mar 1998 A
5727098 Jacobson Mar 1998 A
5754280 Kato et al. May 1998 A
5756981 Roustaei et al. May 1998 A
5765176 Bloomberg Jun 1998 A
5774602 Taguchi et al. Jun 1998 A
5817992 D'Antonio Oct 1998 A
5818436 Imai et al. Oct 1998 A
5822436 Rhoads Oct 1998 A
5822465 Normile et al. Oct 1998 A
5825015 Chan et al. Oct 1998 A
5825892 Braudaway et al. Oct 1998 A
5850058 Tano et al. Dec 1998 A
5852434 Sekendur Dec 1998 A
5855483 Collins et al. Jan 1999 A
5855594 Olive et al. Jan 1999 A
5875264 Carlstrom Feb 1999 A
5890177 Moody et al. Mar 1999 A
5897648 Henderson Apr 1999 A
5898166 Fukuda et al. Apr 1999 A
5902968 Sato et al. May 1999 A
5937110 Petrie et al. Aug 1999 A
5939703 Hecht et al. Aug 1999 A
5960124 Taguchi et al. Sep 1999 A
5961571 Gorr et al. Oct 1999 A
5995084 Chan et al. Nov 1999 A
6000614 Yang et al. Dec 1999 A
6000621 Hecht et al. Dec 1999 A
6000946 Snyders et al. Dec 1999 A
6005973 Seybold et al. Dec 1999 A
6041335 Merritt et al. Mar 2000 A
6044165 Perona et al. Mar 2000 A
6044301 Hartlaub et al. Mar 2000 A
6052481 Grajski et al. Apr 2000 A
6054990 Tran Apr 2000 A
6076734 Dougherty et al. Jun 2000 A
6081261 Wolff et al. Jun 2000 A
6108453 Acharya Aug 2000 A
6141014 Endo et al. Oct 2000 A
6151424 Hsu Nov 2000 A
6157935 Tran et al. Dec 2000 A
6181329 Stork et al. Jan 2001 B1
6186405 Yoshioka Feb 2001 B1
6188392 O'Connor et al. Feb 2001 B1
6192380 Light et al. Feb 2001 B1
6202060 Tran Mar 2001 B1
6208771 Jared et al. Mar 2001 B1
6208894 Schulman et al. Mar 2001 B1
6219149 Kawata et al. Apr 2001 B1
6226636 Abdel-Mottaleb et al. May 2001 B1
6230304 Groeneveld et al. May 2001 B1
6243071 Shwarts et al. Jun 2001 B1
6249614 Kolesnik et al. Jun 2001 B1
6254253 Daum et al. Jul 2001 B1
6256398 Chang Jul 2001 B1
6259827 Nichani Jul 2001 B1
6278968 Franz et al. Aug 2001 B1
6294775 Seibel et al. Sep 2001 B1
6310988 Flores et al. Oct 2001 B1
6327395 Hecht et al. Dec 2001 B1
6330976 Dymetman et al. Dec 2001 B1
6335727 Morishita et al. Jan 2002 B1
6340119 He et al. Jan 2002 B2
6396598 Kashiwagi et al. May 2002 B1
6408330 DeLaHuerga Jun 2002 B1
6441920 Smith Aug 2002 B1
6479768 How Nov 2002 B1
6492981 Stork et al. Dec 2002 B1
6517266 Saund Feb 2003 B2
6522928 Whitehurst et al. Feb 2003 B2
6529638 Westerman Mar 2003 B1
6532152 White et al. Mar 2003 B1
6538187 Beigi Mar 2003 B2
6546136 Hull Apr 2003 B1
6551357 Madduri Apr 2003 B1
6560741 Gerety et al. May 2003 B1
6570104 Ericson et al. May 2003 B1
6570997 Noguchi May 2003 B2
6573887 O'Donnell, Jr. Jun 2003 B1
6577299 Schiller et al. Jun 2003 B1
6580424 Krumm Jun 2003 B1
6584052 Phillips et al. Jun 2003 B1
6585154 Ostrover et al. Jul 2003 B1
6592039 Smith et al. Jul 2003 B1
6603464 Rabin Aug 2003 B1
6625313 Morita et al. Sep 2003 B1
6628267 Karidis et al. Sep 2003 B2
6650320 Zimmerman Nov 2003 B1
6655597 Swartz et al. Dec 2003 B1
6661920 Skinner Dec 2003 B1
6663008 Pettersson et al. Dec 2003 B1
6671386 Shimizu et al. Dec 2003 B1
6674427 Pettersson et al. Jan 2004 B1
6681045 Lapstun et al. Jan 2004 B1
6686910 O'Donnell, Jr. Feb 2004 B2
6689966 Wiebe Feb 2004 B2
6693615 Hill et al. Feb 2004 B2
6697056 Bergelson et al. Feb 2004 B1
6728000 Lapstun et al. Apr 2004 B1
6729543 Arons et al. May 2004 B1
6731271 Tanaka et al. May 2004 B1
6732927 Olsson et al. May 2004 B2
6738053 Borgstrom et al. May 2004 B1
6744967 Kaminski et al. Jun 2004 B2
6752317 Dymetman et al. Jun 2004 B2
6760009 Omura et al. Jul 2004 B2
6783069 Hecht et al. Aug 2004 B1
6819776 Chang Nov 2004 B2
6831273 Jenkins et al. Dec 2004 B2
6832724 Yavid et al. Dec 2004 B2
6834081 Kim et al. Dec 2004 B2
6834195 Brandenberg et al. Dec 2004 B2
6834337 Mitchell et al. Dec 2004 B1
6847356 Hasegawa et al. Jan 2005 B1
6856712 Fauver et al. Feb 2005 B2
6862371 Mukherjee Mar 2005 B2
6864880 Hugosson et al. Mar 2005 B2
6865325 Ide et al. Mar 2005 B2
6870966 Silverbrook et al. Mar 2005 B1
6879731 Kang et al. Apr 2005 B2
6880124 Moore Apr 2005 B1
6897854 Cho et al. May 2005 B2
6898297 Katsura et al. May 2005 B2
6929183 Pettersson et al. Aug 2005 B2
6933933 Fleming Aug 2005 B2
6938222 Hullender et al. Aug 2005 B2
6956968 O'Dell et al. Oct 2005 B1
6960777 Soar Nov 2005 B2
6964483 Wang et al. Nov 2005 B2
6968083 Williams et al. Nov 2005 B2
6975334 Barrus Dec 2005 B1
6976220 Lapstun et al. Dec 2005 B1
6992655 Ericson et al. Jan 2006 B2
6999622 Komatsu Feb 2006 B2
7003150 Trajkovi Feb 2006 B2
7009594 Wang et al. Mar 2006 B2
7012621 Crosby et al. Mar 2006 B2
7024429 Ngo et al. Apr 2006 B2
7036938 Wang et al. May 2006 B2
7048198 Ladas et al. May 2006 B2
7092122 Iwaki Aug 2006 B2
7110604 Olsson et al. Sep 2006 B2
7111230 Euchner et al. Sep 2006 B2
7116840 Wang et al. Oct 2006 B2
7119816 Zhang et al. Oct 2006 B2
7123742 Chang Oct 2006 B2
7133031 Wang et al. Nov 2006 B2
7133563 Wang et al. Nov 2006 B2
7136054 Wang et al. Nov 2006 B2
7139740 Ayala Nov 2006 B2
7142197 Wang et al. Nov 2006 B2
7142257 Callison et al. Nov 2006 B2
7145556 Pettersson Dec 2006 B2
7167164 Ericson et al. Jan 2007 B2
7176906 Williams et al. Feb 2007 B2
7190843 Wei et al. Mar 2007 B2
7222799 Silverbrook May 2007 B2
7225979 Silverbrook et al. Jun 2007 B2
7262764 Wang et al. Aug 2007 B2
7263224 Wang et al. Aug 2007 B2
7289103 Lapstun et al. Oct 2007 B2
7292370 Iwaki Nov 2007 B2
7293240 Lapstun et al. Nov 2007 B2
7295193 Fahraeus Nov 2007 B2
7330605 Wang et al. Feb 2008 B2
7386191 Wang et al. Jun 2008 B2
7400777 Wang et al. Jul 2008 B2
7403658 Lin et al. Jul 2008 B2
7421439 Wang et al. Sep 2008 B2
7430497 Wang et al. Sep 2008 B2
7440134 Natori Oct 2008 B2
7463784 Kugo Dec 2008 B2
7477784 Wang et al. Jan 2009 B2
7486822 Wang et al. Feb 2009 B2
7486823 Wang et al. Feb 2009 B2
7502508 Wang et al. Mar 2009 B2
20010038383 Ericson et al. Nov 2001 A1
20010053238 Katsura et al. Dec 2001 A1
20020028018 Hawkins et al. Mar 2002 A1
20020031622 Ippel et al. Mar 2002 A1
20020048404 Fahraeus et al. Apr 2002 A1
20020050982 Ericson May 2002 A1
20020069220 Tran Jun 2002 A1
20020163511 Sekendur Nov 2002 A1
20020179717 Cummings et al. Dec 2002 A1
20030001020 Kardach Jan 2003 A1
20030009725 Reichenbach Jan 2003 A1
20030030638 Astrom et al. Feb 2003 A1
20030034961 Kao Feb 2003 A1
20030050803 Marchosky Mar 2003 A1
20030081000 Watanabe et al. May 2003 A1
20030088781 ShamRao May 2003 A1
20030090475 Paul et al. May 2003 A1
20030095098 Paul et al. May 2003 A1
20030117378 Carro Jun 2003 A1
20030128194 Pettersson Jul 2003 A1
20030146883 Zelitt Aug 2003 A1
20030159044 Doyle et al. Aug 2003 A1
20030179906 Baker et al. Sep 2003 A1
20030193515 Hill et al. Oct 2003 A1
20030214553 Dodge Nov 2003 A1
20030214669 Saitoh Nov 2003 A1
20040032393 Brandenberg et al. Feb 2004 A1
20040046744 Rafii et al. Mar 2004 A1
20040056191 Jenkins et al. Mar 2004 A1
20040085302 Wang et al. May 2004 A1
20040086181 Wang et al. May 2004 A1
20040090429 Geaghan et al. May 2004 A1
20040128264 Leung et al. Jul 2004 A1
20040153649 Rhoads et al. Aug 2004 A1
20040212553 Wang et al. Oct 2004 A1
20040233163 Lapstun et al. Nov 2004 A1
20050024324 Tomasi et al. Feb 2005 A1
20050044164 O'Farrell et al. Feb 2005 A1
20050052700 Mackenzie et al. Mar 2005 A1
20050104909 Okamura et al. May 2005 A1
20050106365 Palmer et al. May 2005 A1
20050146518 Wang et al. Jul 2005 A1
20050147281 Wang et al. Jul 2005 A1
20050193292 Lin et al. Sep 2005 A1
20060109263 Wang et al. May 2006 A1
20060123049 Wang et al. Jun 2006 A1
20060182309 Wang et al. Aug 2006 A1
20060182343 Lin et al. Aug 2006 A1
20060190818 Wang et al. Aug 2006 A1
20060204101 Wang et al. Sep 2006 A1
20060215913 Wang et al. Sep 2006 A1
20060242560 Wang et al. Oct 2006 A1
20060242562 Wang et al. Oct 2006 A1
20060242622 Wang et al. Oct 2006 A1
20060274948 Wang et al. Dec 2006 A1
20070003150 Xu et al. Jan 2007 A1
20070041654 Wang et al. Feb 2007 A1
20070042165 Wang et al. Feb 2007 A1
20080025612 Wang et al. Jan 2008 A1
20090027241 Lin Jan 2009 A1
20090067743 Wang et al. Mar 2009 A1
Foreign Referenced Citations (42)
Number Date Country
1303494 Jul 2001 CN
1352778 Jun 2002 CN
3143455 Sep 2003 CN
200610092487 Sep 2003 CN
0407734 Jan 1991 EP
0439682 Aug 1991 EP
0564708 Oct 1993 EP
0670555 Sep 1995 EP
0694870 Jan 1996 EP
0717368 Jun 1996 EP
0732666 Sep 1996 EP
0865166 Sep 1998 EP
1154377 Nov 2001 EP
1158456 Nov 2001 EP
1168231 Jan 2002 EP
1276073 Jan 2003 EP
1416435 May 2004 EP
2393149 Mar 2004 GB
63165584 Jul 1988 JP
04253087 Sep 1992 JP
06006316 Jan 1994 JP
06209482 Jul 1994 JP
06230886 Aug 1994 JP
07020812 Jan 1995 JP
07225564 Aug 1995 JP
10215450 Aug 1998 JP
11308112 Nov 1999 JP
2000131640 May 2000 JP
2002529796 Sep 2000 JP
2002082763 Mar 2002 JP
2002108551 Apr 2002 JP
WO-9630217 Oct 1996 WO
WO-9960469 Nov 1999 WO
WO-9965568 Dec 1999 WO
WO-0025293 May 2000 WO
WO-0072247 Nov 2000 WO
WO-0073983 Dec 2000 WO
WO-0126032 Apr 2001 WO
WO-0148685 Jul 2001 WO
WO-0171654 Sep 2001 WO
WO-02077870 Oct 2002 WO
WO-2005106638 Oct 2005 WO
Related Publications (1)
Number Date Country
20070001950 A1 Jan 2007 US