ENCODED PAPER FOR OPTICAL READING

Abstract: A product provided with a coding pattern which comprises a plurality of marks, each of which represents one of at least two different values, and which further comprises a plurality of nominal positions, each of said plurality of marks being associated with a nominal position and the value of each mark being determined by its location relative to its nominal position. The invention also comprises use of the product.

Description: ENCODED PAPER FOR OPTICAL READING. Field of the Invention This invention concerns a product which is provided with a coding pattern, whicn comprises a number of marks, each of which represents one of at least two different values. The invention also concerns use of such a coding pattern. Background of the Invention Storing coded information on a surface by means of different types of marks is already known. US 5,852,434 describes, for example, a position- coding pattern which codes X-Y-coordmates for a number of positions on a writing surface. The position-coding pattern makes it possible for a user to record electronically graphic information which is created on a writing surface by continuously reading the position-coding pattern. Three examples of the construction of the position- coding pattern are given m US 5,852,434. In the first example the pattern consists of symbols, each of which is constructed of three concentric circles. The outer circle represents the X-cocrdmate and the middle circle the Y-coordmate. Both the outer circles are additionally divided into 16 parts whicn, depending upon whether they are filled m or not, indicate different numioers . This means that each pair of coordinates X, Y is coded by a complex symbol with a particular appearance. In the second example, the coordinates of each point on the writing surface are given by means of bar-codes, a bar-code for the X-coordmate being shown acove a barcode for the Y-coordmate. A chequered pattern wnich can be used to code the X- and Y-coordmates is given as a third example. However, there is no explanation as to how the cnequered pattern is constructed or how it can be converted into coordinates . A problem with the known pattern is that it is constructed of complex symbols and the smaller these sym- bols are made, the more difficult it is to produce the patterned writing surface and the greater the risk of incorrect position determinations, while the larger the symbols are made, the poorer the position resolution becomes . A further problem is that the processing of the detected position-coding pattern becomes rather complicated, due to the fact that a processor has to interpret complex symbols. An additional proolem s that the detector or sensor which is to record the position-coding pattern must be constructed m such a way that it can record four symbols at the same time so that it is certain to cover at least one symbol m its entirety, which is necessary m order for the position determination to be able to be carried out. The ratio between the required sensor surface and the surface of the position-coding pattern which defines a position is thus large. In EP 0 578 692 a position-coding pattern is described which is constructed of cells m the form of squares. The value of the cells is determined by their appearance, for example their colour. The cells can be separated by separation zones so that two adjacent cells with the same colour can be distinguished. The position- coding pattern differs from that according to US 5,852,434 m that a particular number of cells, that is symbols, together code a position. The coding is m addition floating, which means that an arbitrary partial surface of the pattern fiich contains the above-mentioned number of cells codes a position. Each cell thus contπ- butes to the coding of several positions. In this way the ratio between the required sensor surface and the part of the position-coding pattern which defines a position is less than m the above-mentioned US patent. In addition each cell is less complex and therefore the processor which is to decode the position-coding pattern needs to be able to recognise fewer different elements. However, the processor needs to be able to locate and distinguish at least two different cells. EP 0 171 284 BI shows another floating position- codmg pattern which is constructed of horizontal and vertical lines, the vertical lines coding the position m the horizontal direction and the horizontal lines coding the position m the vertical direction. The lines can be found positions which are a multiple of 1 mm. The presence of a line m such a position codes a one (1) , the absence of a line m such a position codes a zero (0) . It is, however, difficult to record and decode a pattern of lines, as the intersections between the lines can be difficult to record. In addition, it is often the case that the sensor is not held parallel to the base, which results m a perspective where the lines are no longer parallel. It can then be difficult to determine whether a line is actually missing. In addition, there must not be too many missing consecutive lines, as difficulties can then arise m the decoding. Furthermore, the information content is small . Applicant's Swedish Patent Application SE 9901954-9, which was filed on 28 May 1999 and which was not publicly available at the time of filing the present application and thereby does not constitute prior art, describes an additional position-coding pattern of the floating type in which the position information is coded graphically by means of dots of a first and a second size, a dot of the first size corresponding to a zero (0) and a dot of the second size corresponding to a one (1) . A plurality of dots together code the coordinates for a position. It is a general desire that coding patterns which are used to store information on a surface must be able to code a lot of information uer unit area and must be simple to detect and decode even when subjected to interference of difference kinds. Summary of the Invention An object of the present invention is therefore to provide a product with a coding pattern which fulfils this requirement to at least as great an extent as the known coding patterns. This object is achieved by means of a product according to claim 1. The invention concerns more specifically a product which is provided with a coding pattern, which comprises a plurality of marks, each of which represents one of at least two different values. The coding pattern comprises a plurality of nominal positions, each of said marks being associated with one of said plurality of nominal positions and the value of each mark being determined by its location relative to its nominal position. In prior art the coding is usually carried out by means of the appearance of one or more symbols or marks, the value of each symbol or mark being determined by its appearance. The device which decodes the coding pattern must consequently be able to recognise different symbols or marks, which increases the sensitivity to interference and makes tne decoding more difficult. According to the present invention, the value of each mark is determined instead by how it is located relative to its nominal position. As the value is based on the location of the mark, all the marks can have an identical appearance. The coding pattern is consequently simple to apply on the product. Furthermore, the detection of the marks is simple to carry out and unaffected by the presence of other marks on the product which are not part of the coding pattern. In addition, the coding pattern can be realised more simply using other technology than optical technology, for example as a chemical, electrical or mechanical pattern. The design of the marK also means that a product which is provided with a coding pattern will be more esthetically pleasing when the mark is optically readable. Finally, it is possible to have a large distance between the marks m relation to the density of the information, which means that the coding pattern is less sensitive to motion blur which can arise during the reading. By nominal position is meant this connection a position which is detectable and relative to which the mark can be located m different ways. The nominal posi- tions can be marked on the product, but they can also be virtual and detectable indirectly. It should also be pointed out that the value which a mark represents is preferably a numerical value, but can also be a character value, such a letter or some kind of symbol . The location of the mark can preferably be determined by its centre of gravity, which makes possible the use of marks of irregular shape and reduces the demands when applying the pattern on the product . In a preferred embodiment, each nominal position is allocated a mark. The advantage is hereoy obtained that all values are coded by a mark. The absence of a mark thus always constitutes an error. The marks can be placed both the nominal position and outside the same. A possible representation of a binary pattern could, for example, be that a mark the nominal position represents a zero and a mark outside the nominal position represents a one, or vice versa. In a preferred embodiment, however, essentially all the marks are displaced relative to their nominal position. In this way the pattern is random, while at the same time it is so uniform that it appears even to the eye . A few marks should, nowever, be aole to be m their nominal position m order to indicate some specific parameters, for example the position of the virtual raster. In addition, m a preferred embodiment, essentially all the marks are displaced the same distance relative to their nominal position. If it is Known where the nominal position is located, it is sufficient to look for a mark at a certain distance from the nominal position, which facilitates the locating of the marks and reduces the risk of errors. In addition, it is sufficient to detect that there is a mark at the relevant distance from the nominal position. The appearance of this mark is of sub- ordmate significance, which reduces the need for precision m applying the pattern on the product. In a particularly preferred embodiment, each mark s displaced m one of four orthogonal directions relative to its nominal position. By knowing the nominal position the mark accordingly only needs to be looked for m four different directions. This facilitates and speeds up the locating of the marks. In addition, it reduces the risk of errors, as marks which are not part of the pattern and which are situated m other positions than along the four orthogonal directions are not detected and thereby do not run the risk of affecting the decoding of the pattern. In order for it to be possible to determine the locations of the marKs relative to the nominal positions, the nominal positions must oe known. For this purpose the coding pattern preferably comprises a raster with raster lines, where the intersections of the raster lines define the nominal positions of the marks. The nominal positions are thus regularly arranged on the product. This facilitates the detection and reduces the risk of error. In addition, it makes possible the use of a virtual raster. In a preferred embodiment, the distance between the raster lines is approximately 250 μm to 300 μm, preferably 300 μm. This maKes possible a high density of infor ¬ mation, but still with reliable detection. In a preferred embodiment, the raster lines also form a rectangular, preferably square, grid. In the latter case, the distance between the raster lines is thus the same m both directions. In a preferred embodiment, each mark is additionally displaced along one of the raster lines. When the raster is known, the marks can thus be located an efficient way by searching along the well-defined directions which the raster lines represent. In a preferred embodiment, each mark is displaced from its nominal position by a distance which is 1/4 to 1/8, preferably 1/6, of the distance between the raster lines. If the displacement is approximately 1/6 of the raster line interval, it is relatively easy to determine to which nominal position the mark belongs. If the displacement is less than approximately 1/8, t can be dif- ficult to detect, that is the resolution requirement is too great. If the displacement is more than approximately 1/4, it can be difficult to determine to which nominal position the mark belongs. This applies m particular if the representation of the coding pattern recorded by the sensor or detector is distorted, which for example can occur if an optical sensor is held at an angle relative to the surface on which the coding pattern is arranged. With the above-mentioned preferred raster line interval of 300 μm, the preferred displacement is thus 50 μm. The raster with the raster lines can be indicated on the surface such a way that it can be read directly by the device which detects the marks. In this case, however, the raster must also be able to be detected by the device and distinguished from the marks. In a prefer- red embodiment, the raster is instead virtual, which means that it is not marked on the product m any way, but can be located from the locations of the marks. Instead of being read from the product, it is thus determined indirectly by means of the marks. As already mentioned, essentially all the marks m a preferred embodiment have an essentially identical appearance. This makes it simpler to arrange them on the product . The marks have preferably some simple geometric shape. They are thus advantageously approximately cir- cular, triangular or rectangular. They can be filled- or not, but the former is preferable as detection is then simpler . The mark should not cover its nominal position and should therefore not have a larger diameter than twice the displacement, that is 200%. This is, however, not critical, as a certain amount of overlapping is permissible, for example 240%. The smallest size is determined m the first place by the resolution of the sensor and the requirements of the printing process used to produce the pattern. However, m practice the marks should not have a smaller diameter than approximately 50% of the displacement, m order to avoid problems with particles and noise m the sensor. The coding pattern can be realised with any para- meters which can be used to produce marks of the above- mentioned type which can be detected by a detector. The parameters can be electrical or chemical or of some other type. The coding pattern is, however, preferably optically readable m order for it to be simpler to arrange on the product. It can, for example, ce printed on the product . In a preferred embodiment , the coding pattern is readable by infrared light. In this way information which is not readable by infrared light can be overlaid on the coding pattern without interfering with the reading of In a preferred embodiment, the marks constitute 0.25% to 20%, preferably approximately 9%, of the surface which is taken up by the coding pattern. If the pattern is printed, for example, on a sheet of white paper, it will m this case only result m a pale grey shading of the paper, which means that it will appear as essentially normal paper. The coding pattern is preferably a position-coding pattern which codes a plurality of positions on the pro- duct, each position being coded by means of a plurality of marks. The coding pattern can, however, also be used to code other information. The product can be any product which can be provided with a coding pattern. It does not need to be a physical product, but can also be electronic, for example an image or a surface on a computer screen on which the coding pattern is overlaid m electronic form. According to another aspect of the invention, this concerns use of a coding pattern which comprises a plu- rality of marks, each of which represents one of at least two different values, and a plurality of nominal positions, each of said plurality of marks being associated with one of said plurality of nominal positions and the value of each mark oemg determined by its location rela- tive to its nominal position. The advantages of the use of such a pattern are apparent from the discussion of the coding pattern on the product. The features which are mentioned for the coding pattern on the product also apply, of course, to the use of the coding pattern. The use can, for example, consist of printing out the coding pattern on a product, storing the coding pattern electronic form or decoding the coding pattern. Brief Description of the Drawings In the following the invention will be described m greater detail by way of an embodiment and with reference to the accompanying drawings, m which Fig. 1 shows schematically an embodiment of a product which is provided with a position-coding pattern; Fig. 2 shows schematically how the marks can Pe designed and positioned m an embodiment of the invenion; Fig. 3 shows schematically an example of 4*4 symbols which are used to code a position; Fig. 4 shows schematically a device which can be used for position determination; Fig. 5 shows schematically a position-coding pattern with triangular raster; and Fig. 6 shows schematically a position-coding pattern with hexagonal raster. Description of a Preferred Embodiment Fig. 1 shows a part of a product m the form of a sheet of paper 1, which on at least part of its surface 2 is provided with an optically readable position-coding pattern 3 which makes possible position determination. The position-coding pattern comprises marks 4, which are systematically arranged across the surface 2, so that it has a "patterned" appearance. The sheet of paper has an X-coordinate axis and a Y-coordmate axis. The position determination can be carried out on the whole surface of the product . In other cases the surface which enables position determination can constitute a small part of the product. The pattern can, for example, be used to provide an electronic representation of information which is written or drawn on the surface. The electronic representation can be provided, while writing on the surface with a pen, by continuously determining the position of the pen on the sheet of paper by reading the position-coding pattern. The position-coding pattern comprises a virtual raster, which is thus neither visible to the eye nor can be detected directly by a device which is to determine positions on the surface, and a plurality of marks 4, each of which, depending upon its location, represents one of four values "1" to "4" as described below. In this connection it should be pointed out that for the sake of clarity the position-coding pattern m Fig. 1 is greatly enlarged. In addition, it is shown arranged only on part of the sheet of paper. The position-coding pattern is so arranged that the position of a partial surface on the total writing sur- face is determined unambiguously by the marks on this partial surface. A first and a second partial surface 5a, 5b are shown by broken lines m Fig. 1. The second partial surface partly overlaps the first partial surface. The part of the position-coding pattern (here 4*4 marks) on the first partial surface 5a codes a first position and the part of the position-coding pattern on the second partial surface 5b codes a second position. The position- coding pattern is thus partly the same for the adjoining first and second positions. Such a position-coding pat- tern is called "floating" m this application. Each partial surface codes a specific position. Figs 2a-d show how a mark can be designed and how it can be located relative to its nominal position 6. The nominal position 6, which also can be called a raster point, is represented by the intersection of the raster lines 8. The mark 7 has the shape of a circular dot. A mark 7 and a raster point 6 can together be said to constitute a symbol . In one embodiment, the distance between the raster lines is 300 μm and the angle between the raster lines is 90 degrees. Other raster intervals are possible, for example 254 μm to suit printers and scanners which often have a resolution which is a multiple of 100 dpi, which corresponds to a distance between points of 25.4 mm/100, The value of the mark thus depends upon where the mark is located relative to the nominal position. In the example m Fig. 2 there are four possible locations, one on each of the raster lines extending from the nominal position. The displacement from the nominal position is the same size for all values. Each mark 7 is displaced relative to its nominal position 6, that is no mark is located at the nominal position. In addition, there is only one mark per nominal position and this mark is displaced relative to its nomi- nal position. This applies to the marks which make up the pattern. There can be other mar s on the surface which are not part of the pattern and thus do not contribute to the coding. Such marKs can be specks of dust, unintentional points or marks and intentional marks, from for example a picture or figure on the surface. Because the position of the pattern marks on the surface is so well- defined, the pattern is unaffected by such interference. In one emoodiment , the marks are displaced by 50 μm relative to the nominal positions 6 along the raster lines 8. The displacement is preferadly 1/6 of the raster interval, as it is then relatively easy to determine to which nominal position a particular mark belongs. The displacement should be at least approximately 1/8 of the raster interval, otherwise it becomes difficult to deter- mine a di placement, that is the requirement for resolution becomes great. On the other hand, the displacement should be less than approximately 1/4 of the raster interval m order for t to be possible to determine to which nominal position a mark belongs. The displacement does not need to be along the raster line, but the marks can be positioned m separate quadrants. However, if the marks are displaced along the raster lines, the advantage is obtained that the distance between the marks has a minimum which can be used to recreate the raster lines, as described m greater detail below. Each mark consists of a more or less circular dot with a radius which is approximately the same size as the displacement or somewnat less. The radius can be 25% to 120% of the displacement. If the radius is much larger than the displacement, it can be difficult to determine the raster lines. If the radius is too small, a greater resolution is required to record the marks. The marks do not need to be circular or round, but any suitaole shape can he used, such as square or tπan- gular, etc. Normally, each mark covers a plurality of pixels on a sensor chip and, m one embodiment, the centre of gravity of these pixels is recorded or calculated and used m the suPsequent processing. Therefore the precise shape of the mark is of minor significance. Thus relatively simple printing processes can be used, provided it can pe ensured that the centre of gravity of the mark has the required displacement. In the following, the mark m Fig. 2a represents the value 1, m Fig. 2b the value 2, m Fig. 2c the value 3 and m Fig. 2d the value 4. Each mark can thus represent one of four values "1 to 4". This means that the position-coding pattern can oe divided into a first position code for the x-coordmate and a second position code for the y-coordmate. The division is carried out as follows: The value of each mark is thus converted into a first value, here bit, for the x-code and a second value, here bit, for the y-code. In this way two completely independent bit patterns are cptamed Py means of the pattern. Conversely, two or more bit patterns can be compined into a common pattern which s coded graphi- cally py means of a plurality of marks m accordance with Fig. 2. Each position is coded by means of a plurality of marks. In this example, 4*4 marks are used to code a position m two dimensions, that is an x-coordmate and a y-coordmate. The position code is constructed by means of a number series of ones and zeros, a bit series, which has the characteristic that no four bit long bit sequence occurs more than once m the bit series . The bit series is cyclic, which means that the characteristic also applies when the end of the series is connected to its beginning. A four-bit sequence has thus always an unampiguously determined position number m the bit series. The bit series can pe a maximum of 16 pits long if it is to have the characteristic described above for bit sequences of four bits. In this example, however, only a seven bit long bit series is used, as follows: "0 0 0 1 0 1 0". This bit series contains seven unique bit sequences of four bits which code a position number m the series as follows: To code the x-coordmate, the Pit series is written sequentially m columns over all the surface which is to be coded, where the left column K 0 corresponds to the x-coordmate zero .0) . In one column the bit series can thus be repeated several times succession. The coding is based on differences or position displacements Between adjacent P t series adjacent columns. The size of the difference is determined by the position number (that is the bit sequence) m the bit series with which the adjacent columns commence. More precisely, if one takes the difference Δ n modulo seven between, on the one hand, a position number which is coded by a four-bit sequence in a first column K n and which can thus have the value 0 to 6, and, on the other hand, a position number which is coded by an adjacent four-bit sequence at a corresponding "height" in an adjacent column K n+1 , the difference will be the same regardless of where, that is at what "height", along the two columns the difference is created. Using the difference between the position numbers for two bit sequences in two adjacent columns, it is thus possible to code an x-coordinate which is independent of and constant for all y-coordinates . As each position on the surface is coded by a partial surface consisting of 4*4 marks in this example, there are four vertical bit sequences available and thus three differences, each with the value 0 to 6, for coding the x-coordinate. The pattern is divided into code windows F with the characteristic that each code window consists of 4*4 marks. There are thus four horizontal bit sequences and four vertical bit sequences available, so that three differences can be created in the x-direction and four positions can be obtained in the y-direction. These three differences and four positions code the position of the partial surface m the x-direction and the y-direc- tion. Adjacent windows m the x-direction have a common column, see Fig. 1. Thus the first code window F 0 ,o contains bit sequences from the columns K 0 , K 1; K 2 , K 3 , and bit sequences from the rows R 0 , Ri, R 2 , R 3 . As differences are used m the x-direction, the next window diagonally in the x-direction and y-direction, the window F lrl , contains bit sequences from the columns K 3 , K 4 , K 5 , K 6 , and the rows R 4 , R s , R 6 , R 7 . Considering the coding just the x-direction, the code window can be considered to have an unlimited extent m the y-direction. Correspondingly, considering the coding m just the y- direction, the code window can be considered to have an unlimited extent m the x-direction. Such a first and second code window with unlimited extent the y- direction and x-direction respectively together form a code window of the type shown m Fig. 1, for example F 0 _• Each window has window coordinates F x , which give the position of the window m the x-direction, and F y , which give the position of the window m the y-direction. Thus the correspondence between the windows and columns s as follows . K_. = 3 F x R = 4 F y The coding is carried out m such a way that for tne three differences, one of the differences Δ 0 always has the value 1 or 2 , which indicates the least significant digit So for the number which represents the position of the code window m the x-direction, and both the other differences Δi , Δ 2 , have values m the range 3 to 6, which indicates the two most significant digits Si, S 2 , for the coordinate of the code window. Thus no difference can be zero for the x-coordmates , as that would result toe symmetrical a code pattern. In other words, the columns are coded so that the differences are as follows: (3 to 6); (3 to 6); (1 to 2); (3 to 6); (3 to 6); (1 to 2); (3 to 6) ; (3 to 6) ; (1 to 2); (3 to 6); (3 to 6); ... Each x-coordmate is thus coded by two differences Δi, Δ 2 of between 3 and 6 and a subsequent difference Δη which is 1 or 2. By subtracting one (1) from the least difference Δ 0 and three (3) from the other differences, three digits are obtained, S 2 , Si, S 0 , which m a mixed base directly give the position number of the code window the x-direction, from which the x-coordmate can then be determined directly, as shown m the example below. The position number of the code window is: S; * ( 4 * 2 ) + Si * 2 + So * 1 Using the principle described above, it is thus possible to code code windows 0, 1, 2, ..., 31, using a position number for the code window consisting of three digits which are represented by three differences. These differences are coded by a bit pattern which is based on the number series above. The bit pattern can finally be coded graphically by means of the marks m Fig. 2. In many cases, when a partial surface is recorded consisting of 4*4 marks, a complete position number which codes the x-coordmate will not be obtained, but parts of two position numbers will, as the partial surface m many cases does not coincide with one code window out covers parts of two adjacent code windows m the x-direction. However, as the difference for the least significant digit So of each number is always 1 or 2 , a complete position number can easily be reconstructed, as it is known what digit is the least significant. The y-coordmates are coded m accordance with approximately the same principle as that used for the x-coordmates by means of code windows. The cyclic number series, that is the same number series as is used for the x-codmg, is written repeatedly m horizontal rows across the surface which is to Pe position coded. Pre- cisely as for the x-coordmates, the rows are made to start m different positions, that is with different bit sequences, m the number series. For the y-coordmates, however, differences are not used, but the coordinates are coded by values which are based on the start position of the number series m each row. When the x-coordmate has been determined for a partial surface with 4*4 marks, the start positions m the number series can m fact be determined for the rows wmch are included in the y-code for the 4*4 marks. In the y-code, the least significant digit S 0 is determined by letting this be the only digit which has a value m a particular range. In this example, a row of four starts m position 0 to 1 m the number series, m order to indicate that this row concerns the least significant digit S 0 m a code window, and the three other rows start m any of the positions 2 to 6 m order to indicate the other digits S x S 2 S 3 m the code window. In the y-direction there is thus a series of values as follows : (2 to 6) ; (2 to 6) ; (2 to 6) ; (0 to 1) ; (2 to 6) ; (2 to 6); (2 to 6) ; (0 to 1); (2 to 6); ... Each code window is thus coded by three values between 2 and 6 and a subsequent value between 0 and 1. If zero (0) is subtracted from the low value and two (2) from the other values, a position m the y-direction S 3 S 2 Si So m mixed base is obtained, m a way similarly to the x-direction, from which the position number of the code window can be determined directly, which is: S 3 * (5*5*2) + S 2 * (5*2) + Si * 2 + So * 1 Using the method above, it is possible to code 4 * 4 * 2 = 32 position numbers m the x-direction for the code windows. Each code window comprises bit sequences from three columns, which gives 3 * 32 = 96 columns or x-coordmates. In addition, it is possible to code 5 * 5 * 5 * 2 = 250 position numbers the y-direction for the code windows. Each such position number comprises horizontal bit sequences from 4 rows, which gives 4 * 250 = 1000 rows or y-coordmates. In total it is thus possible to code 96000 coordinate positions . As the x-codmg is based on differences, it is, however, possible to select the position m which the first number series m the first code window starts. If it is taken into account that this first numPer series can start m seven different positions, it is possible to code 7 * 96000 = 672000 positions. The start position of the first number series m the first column K 0 can be calculated when the x- and y-coordmates have been determined. The above-mentioned seven different start posi- tions for the first series can code different pages or writing surfaces of a product. Theoretically, a partial surface with 4*4 symbols, which each have four values, can code 4 4*4 positions, that is 4,294,967,296 positions. In order to make possible floating determination of the position of a partial surface, there is thus a redundancy factor m excess of 6000 (4294967296/672000) . The redundancy consists partly m the restrictions on the size of the differences, and partly only 7 bits out of 16 being used the position code. This latter fact can, however, be used to determine the rotational position of the partial surface. If the next bit the bit series is added to the four-bit sequence, a five-bit sequence is obtained. The fifth bit is obtained by reading the adjacent bit immediately outside the partial surface which is being used. Such an additional bit is often easily available. The partial surface which is read by the sensor can have four different rotational positions, rotated through 0, 90, 180 or 270 degrees relative to the code window. In those cases where the partial surface is rotated, the reading of the code will, however, be such that the code read will be inverted and reversed m either the x-direc- tion or the y-direction or both, m comparison to the case where if it had been read at 0 degrees. This assumes, however, that a slightly different decoding of the value of the marks is used according to the table below. The above-mentioned five-bit sequence has the characteristic that it only occurs the right way round and not m inverted and reversed form m the seven-bit series. This is apparent from the fact that the bit series (0 0 0 1 0 1 0) contains only two "ones". Therefore all five-bit sequences must contain at least three zeros, which after inversion (and reversing, if any) results m three ones, which cannot occur. Thus if a five-bit sequence is found which does not have a position number m the bit series, it can be concluded that the partial surface should probably be rotated and the new position tested. In order to provide further illustrations of the invention according to this embodiment, here follows a specific example which is based on the described embodiment of the position code. Fig. 3 shows an example of an image with 4*4 marks which are read by a device for position determination. These 4*4 marks have the following values: 4 4 4 2 3 2 3 4 4 4 2 4 1 3 2 4 These values represent the following binary x- and y-codes: x-code : y-code : 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 1 0 1 0 The vertical bit sequences m the x-code code the following positions m the bit series: 2 0 4 6. The differences between the columns are -2 4 2, which modulo 7 gives: 5 4 2, which m mixed base codes the position num- ber of the code window: (5-3) * 8 + (4-3) * 2 + (2-1) = 16 + 2 - 1 = 19. The first coded code window has the position numoer 0. Thus the difference which lies the range 1 to 2 and which appears m the 4*4 marks of the partial surface is the twentieth such difference. As additionally there are m total three columns for each such difference and there is a starting column, the vertical sequence furthest to the right the 4*4 x-code pelongs to the 61st column (column 60) m the x-code (3 * 20 + 1 = 61) and the vertical sequence furthest to the left belongs to the 58th column (column 57) . The horizontal bit sequences m the y-code code the positions 0 4 1 3 m the number series. As these horizontal bit sequences start m the 58th column, the start position of the rows is the value of these minus 57 modulo 7, which gives the start positions 6 3 0 2. Converted to digits m the mixed base, this becomes 6-2, 3-2, 0-0, 2-2 = 4 1 0 0, where the third digit is the least significant digit the number concerned. The fourth digit is then the most significant digit m the next number. It must m this case be the same as m the number concerned. (The exception is when the number con- cerned consists of highest possible digits all positions. Then it is known that the beginning of the next number is one greater than the beginning of tne number concerned. ) The position numoer is m mixed base 0*50 + 4*10 + 1*2 +0*1 = 42. The third horizontal bit sequence m the y-code thus belongs to the 43rd code window which has a start position 0 or 1 , and as there are four rows m total for each such code window, the third row is number 43*4=172. In this example, the position of the top left corner of the partial surface with 4*4 marks is (58,170). As the vertical bit sequences m the x-code m the 4*4 group start at row 170, the whole pattern's x-columns start m the positions of the number series ((2 0 4 6) -169) modulo 7 = 1 6 3 5. Between the last start position (5) and the first start position the numbers 0-19 are coded m the mixed base, and by adding the representations of the numbers 0-19 m the mixed base the total difference between these columns is obtained. A naive algorithm for doing this is to generate these twenty numbers and directly add their digits. Call the sum obtained s. The page or writing surface is then given by (5-s) modulo7. An alternative method for determining which bit is the least significant m a partial surface m order to be able to identify a code window m this way is as follows. The least significant bit (LSB) is defined as the digit which is the lowest m a partial surface's differences or row position number. In this way the reduction (redundancy) of the maximum useable number of coordinates is relatively small. For example, the first code windows m the x-direction m the example above can all have LSB=1 and other digits between 2 and 6, which gives 25 code windows, the next can have LSB=2 and other digits between 3 and 6, which gives 16 code windows, the next can have LSB=3 and other digits between 4 and 6, which gives 9 code windows, the next can have LSB=4 and other digits between 5 and 6, which gives 4 code windows, the next can have LSB=5 and other digits 6, which gives 1 code window, that is a total of 55 code windows, compared to 32 m the example above. In the example above, an embodiment has been described where each code window is coded by 4*4 marks and a number series with 7 bits is used. This is of course only one example. Positions can be coded by more or fewer marks . There does not need to be the same number m both directions. The number series can be of different length and does not need to be binary, but can be based on a different base, for example hex code. Different number series can Pe used for coding in the x-direction and coding m the y-direction. The marks can represent different numbers of values. In a practical example, a partial surface is used consisting of 6*6 marks and where the bit series as a maximum can consist of 2 6 bits, that is 64 bits. However, a bit series consisting of 51 bits is used, and consequently 51 positions, m order to have the ability to determine the rotational position of the partial surface. An example of such a bit series is: 0 0 0 0 0 1 1 0 0 0 1 1 1 1 1 0 1 0 1 0 1 1 0 1 1 0 0 1 1 0 1 0 0 0 1 0 1 0 0 1 1 1 0 1 1 1 1 0 0 1 0 Such a partial surface consisting of six by six marks can theoretically code 4 6*6 positions, which with the above-mentioned raster dimensions of 0.3 mm is an extremely large surface. In a similar way as described above for the seven- bit series, according to the present invention the characteristic is utilised that the partial surface is enlarged to include one bit on each side of the partial surface, at least at its centre, so that for the third and fourth rows m the partial surface of 6*6 symbols, 8 symbols are read, one on each side of the partial surface, and similarly m the y-direction. The above-men- tioned bit series which contains 51 bits has the characteristic that a bit sequence of 6 bits occurs only once and that a bit sequence of 8 bits which contains the above-mentioned bit sequence of 6 bits occurs only once and never m an inverted position or reversed and inverted. In this way, the rotational position of the partial surface can be determined by reading 8 bits m row 3, row 4, column 3 and/or column 4. When the rotational position is known, the partial surface can be rotated to the correct position before the processing is continued. It is desirable to obtain a pattern which is as random as possible, that is where areas with excessive symmetry do not occur. It is desira le to obtain a pattern where a partial surface with 6*6 marks contains marks with all the different positions accordance with Figs 2a to 2d. In order to increase the randomness further or avoid repetitive characteristics, a method can be used wnich is called "shuffle". Each horizontal bit sequence starts m a predetermined start position. However, it is possible to displace the start position m the horizontal direction for each row, if the displace- ment is known. This can be carried out by each least significant bit (LSB) being allocated a separate displacement vector for the adjacent rows. The displacement vector states by how much each row is displaced m the horizontal direction. Visually it can be regarded as if the y-axis m Fig. 1 is "spiky". In the example above, with a 4*4 code window, the displacement vector can be 1 , 2, 4, 0 for LSB=0 and 2, 2, 3, 0 for LSB=1. This means that after subtracting the number 2 and 0 respectively, the above displacement is to be subtracted (modulo five) from the bit sequence's position number, before the processing continues. In the example above, for the y-coordmate the digits 4 1 0 0 (S 2 , Si, S 0 , S 4 ) are obtained m the mixed base, where the second digit from the right is the least significant digit, LSB. As the displacement vector 1, 2, 4, 0 is to be used (LSB=0) for the digits 4 and 1, 2 is subtracted from 4 to give S 2 =2 and 4 is subtracted from 1 (modulo five) to give S x =2. The digit S 0 =0 remains unchanged (the displacement vector's component for the least significant digit is always zero) . Finally, the digit S 4 belongs to the next code window, which must have LSB=1, that is the second displacement vector is to be used. Thus 2 is subtracted from 0 (modulo five) which gives S 4 =3. A similar method can be used to change the codes for the x-coordmates. However, there is less need to change the x-coordmates, as they are already relatively randomly distributed, as the difference zero is not used, the example above. In the example above, the mark is a dot. Naturally it can have a different appearance. It can, for example, consist of a line or an ellipse, which starts at the virtual raster point and extends from this to a particular position. Other symbols than a dot can be used, such as a square, rectangle, triangle, circle or ellipse, filled- or not . In the example above, the marks are used within a square partial surface for coding a position. The partial surface can be another shape, for example hexagonal. The marks do not need to be arranged along the raster lines m an orthogonal raster but can also be arranged m other manners, such as along the raster lines m a raster with 60 degree angles, etc. A polar coordinate system can also be used. Rasters m the form of triangles or hexagons can also be used, as shown m Figs 5 and 6. For example, a raster with triangles, see Fig. 5, enables each mark to be displaced m six different directions, whicn provides even greater possibilities, corresponding to 6 6*6 partial surface positions. For a hexagonal raster, Fig. 6, a honeycomb pattern, each mark can be displaced m three different directions along the raster lines. As mentioned above, the marks do not need to be displaced along the raster lines but can be displaced m other directions, for example m order to be located each m a separate quadrant when using a square raster pattern. In the hexagonal raster pattern the marKs can be displaced four or more different directions, for example m six different directions along the raster lines and along lines which are at 60 degrees to the raster lines . In order for the position code to be able to be detected, it is necessary for the virtual raster to be determined. This can be carried out, m a square raster pattern, by examining the distance between different marks. The shortest distance between two marks must originate from two adjacent marks with the values 1 and 3 m the horizontal direction or 2 and 4 m the vertical direction, so that the marks lie on the same raster line between two raster points . When such a pair of marks has been detected, the associated raster points (the nominal positions) can be determined using knowledge of the distance between the raster points and the displacement of the marks from the raster points . Once two raster points have been located, additional raster points can be determined using the measured distance to other marks and from knowledge of the distance between the raster points. If the marks are displaced 50 μm along the raster lines, which are a distance of 300 μm apart, the least distance between two marks will be 200 μm, for example between marks with the values 1 and 3. The next smallest distance arises between, for example, marks with the values 1 and 2, and is 255 μm. There is therefore a relatively distinct difference between the least and the next smallest distance. The difference to any diagonals is also great. However, if the displacement is larger than 50 μm, for example more than 75 μm (1/4) , diagonals can cause problems and it can be difficult to determine to which nominal position a mark belongs. If the displace- ment is less than 50 μm, for example less than approximately 35 μm (1/8), the least distance will be 230 μm, which does not give a very large difference to the next distance, which is then 267 μm. In addition, the demands on the optical reading increase. The marks should not cover their own raster point and should therefore not have a larger diameter than twice the displacement, that is 200%. This is, however, not critical, and a certain overlapping can be permitted, for example 240%. The least size is determined the first place by the resolution of the sensor and the demands of the printing process used to produce the pattern. However, the marks should not have a smaller diameter than approximately 50% of the displacement m practice, m order to avoid problems with particles and noise m the sensor. An embodiment of a device for position determination is shown schematically m Fig. 4. It comprises a casing 11 which has approximately the same shape as a pen. In the short side of the casing there is an opening 12. The short side is intended to abut against or to be held a short distance from the surface on which the position determination is to be carried out. The casing contains essentially an optics part, an electronic circuitry part and a power supply. The optics part comprises at least one light-emit- tmg diode 13 for illuminating the surface which is to be imaged and a light-sensitive area sensor 14, for example a CCD or CMOS sensor, for recording a two-dimensional image. If required, the device can also contain an optical system, such as a mirror and/or lens system. The light-emitting diode can be an infrared light-emittmg diode and the sensor can be sensitive to infrared light. The power supply for the device is obtained from a battery 15, which is mounted m a separate compartment m the casing. The electronic circuitry part contains lmage- processing means 16 for determining a position on the basis of the image recorded by the sensor 14 and m particular a processor unit with a processor which is programmed to read images from the sensor and carry out position determination on the basis of these images. In this embodiment, the device also comprises a pen point 17, with the aid of which ordinary pigment-based writing can be written on the surface on which the position determination is to be carried out. The pen point 17 is extendable and retractable so that the user can con- trol whether or not it is to be used. In certain applications the device does not need to have a pen point at all. The pigment-based writing is suitably of a type that is transparent to infrared light and the marks suitably absorb infrared light. By using a light-emittmg diode which emits infrared light and a sensor which is sensitive to infrared light, the detection of the pattern can be carried out without the above-mentioned writing interfering with the pattern. The device also comprises buttons 18, by means of which the device can be activated and controlled. It has also a transceiver 19 for wireless transmission, for example using infrared light, radio waves or ultrasound, of information to and from the device. The device can also comprise a display 20 for displaying positions or recorded information. A device for recording text is described m Applicant's Swedish Patent No. 9604008-4. This device can be used for position determination if it is programmed m a suitable way. If it is to be used for pigment-based writing, then it must also be given a pen point. The device can be divided between different physical casings, a first casing containing components which are required for recording images of the position-coding pattern and for transmitting these to components which are contained m a second casing and which carry out the position determination on the basis of the recorded image (s) . As mentioned, the position determination is carried out by a processor which thus must have software for locating marks m an image and decoding them and for determining positions from the codes thus obtained. A person skilled m the art will be able, based on the example above, to design software which carries out position determination on the basis of an image of a part of a position-coding pattern. In addition, on the basis of the description above, a person skilled m the art will be able to design software for printing out the position-coding pattern. In the embodiment above, the pattern is optically readable and the sensor is therefore optical . As mention- ed, the pattern can be based on a parameter other than an optical parameter. In such a case the sensor must of course oe of a type which can read the parameter con- cerned. Examples of such parameters are chemical, acoustic or electromagnetic marks. Capacitive or inductive marks can also be used. In the embodiment above, the raster is an orthogonal grid. It can also have other forms, such as a rhombic grid, for example with 60 degree angles, a triangular or hexagonal grid, etc. Displacement m more or less than four directions can be used, for example displacement m three directions along a hexagonal virtual raster. In an orthogonal raster only two displacements can be used, m order to facilitate the recreation of the raster. However, a displacement m four directions is preferred, but six or eight directions are also possible within the scope of the invention. In the embodiment above, the longest possible cyclic number series is not used. As a result, a degree of redundancy is obtained which can be used m various ways, for example to carry out error correcting, replace miss- ing or hidden marks, etc.

Claims: CLAIMS 1. A product which is provided with a coding pat- tern, which comprises a plurality of marks, each of which represents one of at least two different values, c h a r a c t e r i s e d m that the coding pattern also comprises a plurality of nominal positions, each of said plurality of marks being associated with one of said plurality of nominal positions and the value of each mark being indicated by its location relative to its nominal position. 2. A product according to claim 1, m which each nominal position is allocated a mark. 3. A product according to claim 1 or 2 , which essentially all the marks are displaced relative to their nominal positions. 4. A product according to claim 3, m which essentially all the marks are displaced the same distance relative to their nominal positions. 5. A product according to any one of the preceding claims, m which each mark is displaced m one of four orthogonal directions relative to its nominal position. 6. A product according to any one of the preceding claims, m which the coding pattern comprises a raster with raster lines, where the intersections of the raster lines define the nominal positions of the marks. 7. A product according to claim 6, which the distance between the raster lines is approximately 250 μm to 300 μm. 8. A product according to claim 6 or 7 , which the raster lines form a rectangular, preferably square, grid. 9. A product according to claim 6, 7 or 8 , m which each mark is displaced along one of the raster lines. 10. A product according to any one of claims 6-9, m which each mark is displaced from its nominal position by a distance which is 1/4 to 1/8, preferably 1/6, of the distance between the raster lines. 11. A product according to any one of claims 6-10, m which the raster is virtual . 12. A product according to any one of the preceding claims, m which all the marks have an essentially identical appearance. 13. A product according to any one of the preceding claims, m which the marks are approximately circular, triangular or rectangular. 14. A product according to any one of claims 4-13, m which the effective diameter of the marks is approximately 50% to 240% of the displacement of the mark relative to its nominal position. 15. A product according to any one of the preceding claims, which the coding pattern is optically readable . 16. A product according to claim 15, which the coding pattern is readable by infrared light. 17. A product according to any one of the preceding claims, which the product has a surface which is provided with the coding pattern. 18. A product according to any one of the preceding claims, m which the marks constitute 0.25% to 20%, pre- ferably approximately 9%, of the surface which is provided with the coding pattern. 19. A product according to any one of the preceding claims, m which the coding pattern is a position-coding pattern which codes a plurality of positions on the pro- duct, each position being coded by means of a plurality of marks . 20. A product according to any one of the preceding claims, m which the product is a sheet of paper. 21. Use of a coding pattern which comprises a plura- lity of marks, each of which represents one of at least two different values, and which further comprises a plurality of nominal positions, each of said plurality of marks being associated with a nominal position and the value of each mark being determined by its location relative to its nominal position.

Inventors: EDSOE TOMAS, PETTERSSON MATS PETTER, EDSOE, TOMAS, PETTERSSON, MATS, PETTER
Applicants: ANOTO AB, EDSOE TOMAS, PETTERSSON MATS PETTER, EDSOE, TOMAS, PETTERSSON, MATS, PETTER
Application year: 2000
Main classification: G06K1
IPC codes: G06F3, G06K1, G06K7, G06K19