# Patent

## Title
Device, method, and computer readable medium for area identification using motion from a projected pattern

## Abstract

An area identifying device includes a projecting unit, an image capturing unit, a calculating unit, and an identifying unit. The projecting unit is configured to project a pattern so that the pattern performs a predetermined movement. The image capturing unit is configured to capture, in sequential order, multiple images of a projection area on which the pattern is projected, each image including a plurality of image areas. The calculating unit is configured to calculate an amount of change of pattern appearances for each image area in the multiple images. The identifying unit is configured to identify, as a reflective area, at least one image area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the calculated amounts of change of the pattern appearances.

## Background
CROSS-REFERENCE TO RELATED APPLICATION
This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2012-194414, filed on Sep. 4, 2012; the entire contents of which are incorporated herein by reference.
FIELD
Embodiments described herein relate generally to an area identifying device, an area identifying method, and a computer program product.
BACKGROUND
In the case of performing three dimensional shape measurement with respect to a reflective area such as a mirror, a metal, or a water surface; it is necessary to implement a measurement method that is suitable for reflective areas. For that reason, it is first necessary to identify a reflective area. As a method of identifying a reflective area, a method is known in which a specular area is identified by comparing the luminance distribution of normal reflection light in a captured image with the brightness value representing the degree of specularity in the imaging environment.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a diagram illustrating an example of an area identifying device according to an embodiment;
FIG. 2 is a diagram illustrating an exemplary pattern according to the embodiment;
FIG. 3 is a diagram illustrating an exemplary projection environment and an exemplary imaging environment according to the embodiment;
FIG. 4A is a diagram illustrating the shift direction of a pattern projected in a non-reflective area;
FIG. 4B is a diagram illustrating shift directions of a pattern projected in a reflective area;
FIG. 5 is a flowchart for explaining an area identifying operation performed in the area identifying device according to the embodiment;
FIG. 6 is a diagram illustrating a pattern according to a first modification;
FIG. 7 is a diagram illustrating a pattern according to a second modification;
FIG. 8 is a diagram illustrating a pattern according to a third modification; and
FIG. 9 is a block diagram illustrating a hardware configuration of the area identifying device according to the embodiment and the modifications.



DETAILED DESCRIPTION
According to an embodiment, an area identifying device includes a projecting unit, an image capturing unit, a calculating unit, and an identifying unit. The projecting unit is configured to project a pattern so that the pattern performs a predetermined movement. The image capturing unit is configured to capture, in sequential order, multiple images of an area on which the pattern is projected, the image having a plurality of areas. The calculating unit is configured to calculate an amount of change of pattern appearances for each region in the multiple images. The identifying unit is configured to identify, as a reflective area, at least one area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the amounts of change of the pattern appearances that are calculated by the calculating unit.
Exemplary embodiments will be described below in detail with reference to the accompanying drawings.
FIG. 1 is a configuration diagram illustrating an example of an area identifying device 10 according to an embodiment. As illustrated in FIG. 1, the area identifying device 10 includes a memory unit 11, a projecting unit 13, an image capturing unit 15, a calculating unit 17, and an identifying unit 19.
The memory unit 11 is used to store various computer programs executed in the area identifying device 10 and to store data used in various operations performed in the area identifying device 10. The memory unit 11 can be implemented using a memory device such as a hard disk drive (HDD), a solid state drive (SSD), a memory card, an optical disk, a read only memory (ROM), or a random access memory (RAM) in which information can be stored in a magnetic, optical, or electrical manner.
The projecting unit 13 projects a pattern so as to perform a predetermined movement. The projecting unit 13 can be implemented using a projecting device that is capable of projecting pattern light of arbitrary patterns from a light source such as a projector, a laser, or a lamp.
More particularly, from the area identifying device 10 or from an external device; the projecting unit 13 obtains, in sequential order, projection data for a case when the pattern is shifted in a predetermined direction, and then projects the projection data in a target area for image capturing of the image capturing unit 15 (described later) in sequential order. Thus, the projecting unit 13 performs projection by shifting the pattern in a predetermined direction and projects the pattern so as to perform a predetermined movement.
Meanwhile, the predetermined direction can be an oblique direction with respect to the coordinate system of the projecting unit 13. In the embodiment, it is assumed that the predetermined direction can be any one of the upper rightward direction, the lower rightward direction, the upper leftward direction, and the lower leftward direction with respect to the coordinate system of the projecting unit 13. However, that is not the only possible case. That is, alternatively, an oblique direction with respect to the coordinate system of the projecting unit 13 can point to any direction other than the vertical direction and the horizontal direction with respect to the coordinate system of the projecting unit 13.
Meanwhile, in the embodiment, although the pattern is assumed to be a geometrical pattern, that is not the only possible case. FIG. 2 is a diagram illustrating an exemplary pattern according to the embodiment. The pattern illustrated in FIG. 2 is a geometrical pattern formed from a lattice in which a plurality of transverse lines having random thicknesses is crossed at random positions. Herein, the transverse lines can be any lines other than vertical lines and horizontal lines.
The image capturing unit 15 captures, in sequential order, multiple images of the area on which the projecting unit 13 has projected the pattern. Herein, the image capturing unit 15 can be implemented using, for example, an image capturing device such as a digital camera.
In the embodiment, it is assumed that calibration is performed in advance so as to achieve a consistent correspondence relationship between the coordinate system of the projecting unit 13 and the coordinate system of the image capturing unit 15. That is, in the embodiment, the movement of the pattern that is projected by the projecting unit 13 matches with the movement of the pattern captured in the images by the image capturing unit 15.
FIG. 3 is a diagram illustrating an exemplary projection environment and an exemplary imaging environment according to the embodiment. FIG. 4A is a diagram illustrating an example of the shift direction of a pattern projected in a non-reflective area; while FIG. 4B is a diagram illustrating an example of shift directions of a pattern projected in a reflective area.
In the example illustrated in FIG. 3, the projecting unit 13 projects a view area 23 thereof. As a result, a pattern gets projected in an area 31A of an object 27 present within the view area 23 as well as in areas 31B and 32 of an object 29 present within the view area. The image capturing unit 15 captures images of a view area 25 thereof. Herein, the areas 31A and 31B are non-reflective areas, while the area 32 is a reflective area. For that reason, as compared to the pattern that gets projected in the areas 31A and 31B, the pattern projected in the area 32 gets reversed in some direction. Hence, as illustrated in FIGS. 4A and 4B, the pattern that gets projected in the area 32 has different shift directions (for examples, shift directions 42 to 44) than a shift direction 41 of the pattern that gets projected in the areas 31A and 31B.
The calculating unit 17 and the identifying unit 19 can be implemented by executing computer programs in a processing unit such as a central processing unit (CPU). That is, the calculating unit 17 and the identifying unit 19 can be implemented using software.
The calculating unit 17 refers to the images captured by the image capturing unit 15 and calculates a pattern for each image area. In the embodiment, for each image area in the images captured by the image capturing unit 15, the calculating unit 17 calculates the motion vector of a pattern.
For example, in the case of calculating a motion vector of the image of a t-th frame captured by the image capturing unit 15; the calculating unit 17 divides the image of the t-th frame into predetermined areas (blocks having size of N×N). Then, regarding each of the divided areas, the calculating unit 17 considers (i0, j0) to be the position of the top left pixel and considers It(i0, j0) to be the brightness value of the top left pixel; and evaluates the pixel difference with respect to an area containing the position which is shifted by (p, q) from the position corresponding to (i0, j0) in the previous frame (i.e., the (t−1)-th frame). In that evaluation, for example, it is possible to make use of the sum of absolute difference (SAD) of the pixel values as given below in Equations (1) and (2).




  
    
      
        
          SAD
          ⁡
          
            (
            
              p
              ,
              q
            
            )
          
        
        =
        
          
            ∑
            
              j
              =
              0
            
            
              N
              -
              1
            
          
          ⁢
          
            
              ∑
              
                i
                =
                0
              
              
                N
                -
                1
              
            
            ⁢
            
              
              
                
                  
                    I
                    t
                  
                  ⁡
                  
                    (
                    
                      
                        
                          i
                          0
                        
                        +
                        i
                      
                      ,
                      
                        
                          j
                          0
                        
                        +
                        j
                      
                    
                    )
                  
                
                -
                
                  
                    I
                    
                      t
                      -
                      1
                    
                  
                  ⁡
                  
                    (
                    
                      
                        
                          i
                          0
                        
                        +
                        i
                        +
                        p
                      
                      ,
                      
                        
                          j
                          0
                        
                        +
                        j
                        +
                        q
                      
                    
                    )
                  
                
              
              
            
          
        
      
    
    
      
        (
        1
        )
      
    
  
  
    
      
        
          (
          
            
              p
              m
            
            ,
            
              q
              m
            
          
          )
        
        =
        
          arg
          ⁢
          
            
          
          ⁢
          
            
              min
              
                (
                
                  p
                  ,
                  q
                
                )
              
            
            ⁢
            
              SAD
              ⁡
              
                (
                
                  p
                  ,
                  q
                
                )
              
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




More particularly, regarding each of the divided areas, the calculating unit 17 makes use of Equation (1) to calculate SAD(p, q); and makes use of Equation (2) to obtain such (p, q) which results in the smallest SAD (p, q) and sets that (p, q) as a motion vector (pm, qm).
Of a plurality of amounts of change of the pattern appearances calculated by the calculating unit 17; the identifying unit 19 identifies, as reflective areas, image areas that have different amounts of change of the pattern appearances than a reference amount of change of the pattern appearances which accompanies the predetermined movement. More particularly, the identifying unit 19 calculates the difference between the reference amount of change of the pattern appearances and each of a plurality of amounts of change of the pattern appearances calculated by the calculating unit 17; and identifies, as reflective areas, the image areas having such amounts of change for which the calculated differences are equal to or greater than a first threshold values.
In the embodiment, as given below in Equation (3), the identifying unit 19 calculates the angle between a reference motion vector Vm and each of a plurality of motion vectors Vn calculated by the calculating unit 17. Then, as reflective areas, the identifying unit 19 identifies the image areas in each of which the calculated angle of the motion vector Vn is equal to or greater than a threshold value s.




  
    
      
        
          
          
            arccos
            ⁡
            
              (
              
                
                  
                    V
                    n
                  
                  ·
                  
                    V
                    m
                  
                
                
                  
                    
                    
                      V
                      n
                    
                    
                  
                  ⁢
                  
                    
                    
                      V
                      m
                    
                    
                  
                
              
              )
            
          
          
        
        ≥
        s
      
    
    
      
        (
        3
        )
      
    
  




Herein, the threshold values s represents an angle value, and it is desirable to have the threshold value s close to the real number zero.
The reference motion vector Vm represents the motion vector value in the case when the projecting unit 13 shifts the pattern in the predetermined direction. The reference motion vector Vm is assumed to be stored in advance in the memory unit 11.
Meanwhile, as unidentifiable areas, the identifying unit 19 sets such image areas for which a plurality of amounts of change of the pattern appearances calculated by the calculating unit 17 is equal to or smaller in magnitude than a second threshold value. Herein, an unidentifiable area points to an area that neither can be identified as a reflective area nor can be identified as a non-reflective area.
For example, as given below in Equation (4), the identifying unit 19 sets, as unidentifiable areas, such image areas for which the motion vectors Vn calculated by the calculating unit 17 have the magnitude equal to or smaller than a threshold value t.

|Vn|≦t  (4)

Herein, the threshold value t represents the magnitude of a vector, and it is desirable to have the threshold value t close to the real number zero.
FIG. 5 is a flowchart for explaining an exemplary sequence of operations in an area identifying operation performed in the area identifying device 10 according to the embodiment.
Firstly, the projecting unit 13 performs projection by shifting a pattern in a predetermined direction (Step S101).
Then, the image capturing unit 15 captures images of the areas in which the projecting unit 13 has projected the pattern (Step S103).
The image capturing unit 15 captures a predetermined number of images and, until the image capturing is completed (No at Step S105), repeats the operations from Step S101 to Step S103.
Once the image capturing is completed (Yes at Step S105), the calculating unit 17 refers to the images captured by the image capturing unit 15 and calculates the motion vector of the pattern in an unprocessed image area (Step S107).
Then, the identifying unit 19 determines whether or not the magnitude of the calculated motion vector of the pattern is equal to or smaller than a second threshold value (Step S109).
If the magnitude of the calculated motion vector of the pattern is equal to or smaller than the second threshold value (Yes at Step S109), then the identifying unit 19 sets the image area for which the motion vector of the pattern is calculated as an unidentifiable area (Step S111).
On the other hand, if the magnitude of the calculated motion vector of the pattern is not equal to or smaller than the second threshold value (No at Step S109), then the identifying unit 19 determines whether or not the difference between a reference motion vector and the calculated motion vector of the pattern is equal to or greater than a first threshold value (Step S113).
If the difference between the reference motion vector and the calculated motion vector of the pattern is equal to or greater than the first threshold value (Yes at Step S113), then the identifying unit 19 identifies the image area for which the motion vector of the pattern is calculated as a reflective area (Step S115).
On the other hand, if the difference between the reference motion vector and the calculated motion vector of the pattern is not equal to or greater than the first threshold value (No at Step S113), then the identifying unit 19 identifies the image area for which the motion vector of the pattern is calculated as a non-reflective area (Step S117).
Then, if all image areas of each image are processed (Yes at Step S119), the operations are completed. On the other hand, if any unprocessed image area is present in the images (No at Step S119), the system control returns to Step S107.
According to the embodiment described above, the area in which the pattern is shifted in a different direction than a predetermined direction is identified as a reflective area. Thus, identification of reflective areas can be performed without having to incur any cost.
Particularly, according to the embodiment, imaging-environment-dependent data such as brightness values is not required. Hence, in an unknown imaging environment too, it becomes possible to identify reflective areas.
As a result, three dimensional shape measurement can be performed using images that have reflective areas identified therein; or, in the real environment, three dimensional shape measurement can be performed using a measuring device such as a visible camera, a laser scanner, or a laser range sensor based on images that have reflective areas identified therein.
Moreover, according to the embodiment, since the pattern that is used has transverse lines crossing each other, not only does it become possible to shift the pattern in an oblique direction but it also becomes possible to reduce the number of times for which the pattern is shifted. Besides, it also becomes possible to deal with a case when there is a slight inconsistency in the correspondence relationship between the coordinate system of the projecting unit 13 and the coordinate system of the image capturing unit 15.
First Modification
In the embodiment described above, the projecting unit 13 projects a geometrical pattern that is formed from a lattice in which a plurality of transverse lines having random thicknesses is crossed at random positions. However, alternatively, it is also possible to use a random dot pattern or to use a chessboard pattern that is illustrated in FIG. 6.
Second Modification
In the embodiment described above, it is assumed that the projecting unit 13 projects a geometrical pattern. However, alternatively, it is also possible to use a gradation pattern (in which the brightness values change in a continuous fashion) as illustrated in FIG. 7.
In this case, for every image area in the images captured by the image capturing unit 15, the calculating unit 17 can calculate the difference in brightness values of the pattern. For example, using Equation (5) given below, the calculating unit 17 can calculate the difference between the brightness value in the image of the t-th frame captured by the image capturing unit 15 and the brightness value in the image of the previous frame (i.e., the (t−1)-th frame) captured by the image capturing unit 15.

(Δu, Δv)=It(i, j)−It−1(i, j)  (5)

Herein, (Δu, Δv) represents the brightness value difference; It(i, j) represents the brightness value at the position (i, j) of the image of the t-th frame; It−1(i, j) represents the brightness value at the position (i, j) of the image of the (t−1)-th frame.
Moreover, as given below in Equation (6), the identifying unit 19 calculates the difference between a reference brightness value difference Vm and each of a plurality of brightness value differences Vn calculated by the calculating unit 17. Then, as reflective areas, the identifying unit 19 identifies the image areas in each of which the calculated difference of the brightness value difference Vn is equal to or greater than a threshold value s.

|Vn−Vm|≧s  (6)

Herein, the threshold value s represents the boundary value of having a positive amount of change of the pattern appearances in the brightness value or having a negative amount of change of the pattern appearances in the brightness value, and it is desirable to have the threshold value s close to the real number zero.
The reference brightness value difference Vm represents the brightness value difference when the projecting unit 13 shifts the pattern in the predetermined direction. The reference brightness value difference Vm is assumed to be stored in advance in the memory unit 11.
Moreover, in the case when the identifying unit 19 sets unidentifiable areas using Equation (4), the threshold value t represents the magnitude of the brightness value difference; and it is desirable to have the threshold value t close to the real number zero.
Third modification
In the embodiment described above, it is assumed that the projecting unit 13 projects a geometrical pattern. However, alternatively, it is also possible to use a sinusoidal pattern as illustrated in FIG. 8.
In this case, for every image area in the images captured by the image capturing unit 15, the calculating unit 17 can calculate the phase of the pattern. Herein, the phase points to the phase of the sinusoidal wave in a pixel and represents the position, that is, the distance of the stripe pattern on a projection element. For example, using Equation (7) given below, the calculating unit 17 can calculate the phase of the pattern for each pixel in the image of the t-th frame captured by the image capturing unit 15.




  
    
      
        
          Φ
          ⁡
          
            (
            
              i
              ,
              j
            
            )
          
        
        =
        
          
            tan
            
              -
              1
            
          
          ⁡
          
            (
            
              
                
                  
                    I
                    t
                  
                  ⁡
                  
                    (
                    
                      i
                      ,
                      j
                    
                    )
                  
                
                -
                
                  
                    I
                    
                      t
                      -
                      2
                    
                  
                  ⁡
                  
                    (
                    
                      i
                      ,
                      j
                    
                    )
                  
                
              
              
                
                  
                    I
                    
                      t
                      -
                      3
                    
                  
                  ⁡
                  
                    (
                    
                      i
                      ,
                      j
                    
                    )
                  
                
                -
                
                  
                    I
                    
                      t
                      -
                      1
                    
                  
                  ⁡
                  
                    (
                    
                      i
                      ,
                      j
                    
                    )
                  
                
              
            
            )
          
        
      
    
    
      
        (
        7
        )
      
    
  




Herein, φ(i, j) represents the phase at the position (i, j) in the image of the t-th frame; It(i, j) represents the brightness value at the position (i, j) of the image of the t-th frame; It−1(i, j) represents the brightness value at the position (i, j) of the image of the (t−1)-th frame; It−2(i, j) represents the brightness value at the position (i, j) of the image of the (t−2)-th frame; and It−3(i, j) represents the brightness value at the position (i, j) of the image of the (t−3)-th frame.
Moreover, as given in Equation (6), the identifying unit 19 calculates the difference between a reference phase Vm and each of a plurality of phases Vn calculated by the calculating unit 17. Then, as reflective areas, the identifying unit 19 identifies the image areas in each of which the calculated difference of the phase Vn is equal to or greater than a threshold value s.
Herein, the threshold value s represents the difference among phase values, and it is desirable to have the threshold value s close to the real number zero.
The reference phase Vm represents the phase value when the projecting unit 13 shifts the pattern in the predetermined direction. The reference phase Vm is assumed to be stored in advance in the memory unit 11.
Moreover, in the case when the identifying unit 19 sets unidentifiable areas using Expression (4), the threshold value t represents the magnitude of the phase value; and it is desirable to have the threshold value t close to the real number zero.
Hardware Configuration
FIG. 9 is a block diagram illustrating an exemplary hardware configuration of the area identifying device 10 according to the embodiment and the modifications described above. As illustrated in FIG. 9, the area identifying device 10 according to the embodiment and the modifications described above has a hardware configuration of a commonplace computer that includes a control device 91 such as a CPU; a memory device 92 such as a ROM or a RAM; an external memory device 93 such as an HDD or an SSD; a display device 94 such as a display; an input device 95 such as a mouse or a keyboard; a communication I/F 96; a projecting device 97 such as a projector; and an image capturing device 98 such as a digital camera.
Meanwhile, the computer programs that are executed in the area identifying device 10 according to the embodiment and the modifications described above is stored in advance in a ROM or the like.
Alternatively, the computer programs that are executed in the area identifying device 10 according to the embodiment and the modifications described above can be recorded in the form of installable or executable files in a computer-readable storage medium such as a compact disk read only memory (CD-ROM), a compact disk readable (CD-R), a memory card, a digital versatile disk (DVD), or a flexible disk (FD), as a computer program product.
Still alternatively, the computer programs that are executed in the area identifying device 10 according to the embodiment and the modifications described above can be saved as downloadable files on a computer connected to the Internet or can be made available for distribution through a network such as the Internet. Still alternatively, the computer programs that are executed in the area identifying device 10 according to the embodiment and the modifications described above can be distributed over a network such as the Internet.
Meanwhile, the computer programs that are executed in the area identifying device 10 according to the embodiment and the modifications described above contains a module for each of the abovementioned constituent elements to be implemented in a computer. In practice, for example, the control device 91 reads a program from the external memory device 93 and runs it such that the program is loaded in the memory device 92. As a result, the module for each of the abovementioned constituent elements is generated in the computer.
As described above, according to the embodiment and the modifications thereof, identification of reflective areas can be performed without having to incur any cost.
The steps of the flowchart in the embodiment and modifications may be performed in a different order on the embodiment or some of the steps may be performed in parallel.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.

## Claims

1. An area identifying device comprising:
a projecting unit configured to project a pattern so that the pattern performs a predetermined movement;
an image capturing unit configured to capture, in time-sequential order, images of projection areas on which the pattern is projected; and
a processor configured to execute a program to implement a calculating unit and an identifying unit,
the calculating unit being configured to calculate, based on pixel values of the images, an amount of change of pattern appearances for each of multiple image areas in the images, and
the identifying unit being configured to identify, as a spatial location of a reflective area of a physical item that has a constant reflectance ratio, at least one image area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the calculated amounts of change of the pattern appearances.

2. The device according to claim 1, wherein the identifying unit calculates differences between the reference amount of change of the pattern appearances and the respective calculated amounts of change of the pattern appearances, and identifies, as the spatial location of the reflective area, an image area having an amount of change of the pattern appearances for which the calculated difference is equal to or greater than a threshold value.

3. The device according to claim 1, wherein the projecting unit projects the pattern while shifting the pattern in an oblique direction with respect to a coordinate system of the projecting unit.

4. The device according to claim 1, wherein
the pattern is a gradation pattern, and
the amount of change of the pattern appearances is a brightness value difference.

5. The device according to claim 1, wherein
the pattern is a sinusoidal pattern, and
the amount of change of the pattern appearances is a phase.

6. The device according to claim 1, wherein the identifying unit sets, as an unidentifiable area, an image area having the calculated amount of change of the pattern appearances that is equal to or smaller than a threshold value.

7. An area identifying device, comprising:
a projecting unit configured to project a pattern so that the pattern performs a predetermined movement;
an image capturing unit configured to capture, in time-sequential order, images of projection areas on which the pattern is projected; and
a processor configured to execute a program to implement a calculating unit and an identifying unit,
the calculating unit being configured to calculate, based on pixel values of the images, an amount of change of pattern appearances for each of multiple image areas in the images, and
the identifying unit being configured to identify, as a spatial location of a reflective area of a physical item that has a constant reflectance ratio, at least one image area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the calculated amounts of change of the pattern appearances, wherein

the pattern is a geometrical pattern, and
the amount of change of the pattern appearances is a motion vector.

8. The device according to claim 7, wherein the geometrical pattern comprises a lattice in which a plurality of transverse lines having random thicknesses are crossed at random positions.

9. An area identifying method comprising:
projecting a pattern so that the pattern performs a predetermined movement;
capturing, in time-sequential order, images of projection areas on which the pattern is projected;
calculating, based on pixel values of the images, an amount of change of pattern appearances for each of multiple image areas in the images; and
identifying, as a spatial location of a reflective area of a physical item that has a constant reflectance ratio, at least one image area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the calculated amounts of change of the pattern appearances.

10. A computer program product comprising a non-transitory computer-readable medium containing a program which, when executed by a computer, causes the computer to execute at least:
projecting a pattern so that the pattern performs a predetermined movement;
capturing, in time-sequential order, images of projection areas on which the pattern is projected;
calculating, based on pixel values of the images, an amount of change of pattern appearances for each of multiple image areas in the images; and
identifying, as a spatial location of a reflective area of a physical item that has a constant reflectance ratio, at least one image area having a different amount of change of the pattern appearances from a reference amount of change of the pattern appearances based on the predetermined movement, among the calculated amounts of change of the pattern appearances.