The entire disclosure of Japanese Patent Application No. 2016-018863, filed Feb. 3, 2016 is expressly incorporated by reference herein.
1. Technical Field
The present invention relates to a position detection device capable of detecting the pointing position of a pointing element on an operation surface.
2. Related Art
JP-A-2015-158887 and JP-A-2015-158890 disclose interactive projectors having a function as a position detection device. These interactive projectors project a projected screen onto a screen, and capture an image including a pointing element such as a luminous pen or a finger through a camera, thereby allowing the position of the pointing element to be detected using this captured image. That is, the interactive projector recognizes that predetermined pointing such drawing is input to a projected screen when the tip of the pointing element is in contact with a screen, and redraws the projected screen in accordance with the pointing. Therefore, a user can input various types of pointing, using the projected screen as a user interface.
In JP-A-2015-158887 and JP-A-2015-158890, a light irradiation device (“also called a light curtain unit”) is used which emits curtain-shaped (or layered) detection light onto the surface of a screen in order to detect the pointing element. In a case where the detection light is reflected by the pointing element when the pointing element is brought into contact with the screen, an image of the position of the reflected light is captured by a camera, and thus the position of the pointing element on the projected screen can be determined by analyzing the captured image.
The curtain-shaped detection light is present at a position slightly away from the screen surface. Therefore, in a case where a finger (non-emission pointing element) is used as the pointing element, a position to which the detection light is reflected by a finger is located at a position slightly away from the screen surface. Therefore, in a case where the captured image including this reflected light is analyzed by a camera and the pointing position of the pointing element is determined, a position including an error caused by a distance between the reflection position of the detection light by a finger and the screen surface is obtained. JP-A-2015-158890 discloses a technique for correcting the pointing position using a distance between the screen surface and the reflection position to which the detection light is reflected by a finger in order to eliminate such an error.
JP-A-2015-158890 discloses that the correction as described above is not required in a case where a luminous pen is used as the pointing element, and that the position of an image of light emitted by the luminous pen can be regarded as the pointing position of the luminous pen.
However, the inventor has found that, even in a case where a spontaneous emission pointing element such as a luminous pen is used, a nonzero distance (called the “tip offset”) is present between the emission position of the spontaneous emission pointing element and the screen surface (also called the “operation surface”), and a detection error may occur in the pointing position of the spontaneous emission pointing element due to this tip offset. In addition, it can be understood that, while the physical emission position of the spontaneous emission pointing element does not change, the tip offset which is obtained by the analysis of the captured image is not constant, and changes depending on the position of the screen surface. The reason for the tip offset obtained by the image analysis not being constant is because an error occurs in the emission position due to the influence of the reflected light from the screen or the influence of the size of light visible from a camera.
The aforementioned problem is a problem which is generally common to position detection devices that detect a pointing position pointed by the spontaneous emission pointing element on the operation surface, without being limited to an interactive projector that detects the pointing position of the spontaneous emission pointing element using a camera and a light curtain unit.
An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
(1) An aspect of the invention provides a position detection device that detects a pointing position pointed by a spontaneous emission pointing element on an operation surface. The position detection device includes: an imaging unit that captures an image of light emitted by the spontaneous emission pointing element on the operation surface and generates a captured image; a detection unit that detects the pointing position based on the spontaneous emission pointing element on the basis of the captured image; and a correction unit that corrects the pointing position, using a correction value determined in accordance with a tip offset which is a distance between a contact position at which the spontaneous emission pointing element comes into contact with the operation surface and an emission position of the spontaneous emission pointing element. The correction unit corrects the pointing position using a correction value varying according to a position on the operation surface.
According to the position detection device, the pointing position of the spontaneous emission pointing element is corrected using the correction value determined in accordance with the tip offset. In this case, since the correction value varying according to the position on the operation surface is used, the pointing position can be corrected using an appropriate correction value according to the position on the operation surface. As a result, it is possible to reduce the detection error of the pointing position occurring due to the tip offset.
(2) In the position detection device, the correction unit may correct the pointing position using a correction value varying according to the position on the operation surface and a distance from the imaging unit to the operation surface.
According to such a configuration, since the correction value has a value varying according to not only the position on the operation surface, but also the distance from the imaging unit to the operation surface, it is possible to correct the pointing position using a more appropriate correction value, and to further reduce the detection error of the pointing position occurring due to the tip offset.
(3) In the position detection device, the correction unit may determine the correction value using a function in which coordinates on the operation surface and the distance from the imaging unit to the operation surface are used as variables.
According to such a configuration, it is possible to easily determine the correction value using a function in which the coordinates on the operation surface and the distance from the imaging unit to the operation surface are used as variables.
(4) In the position detection device, the function may be a function to which the tip offset is given using the coordinates on the operation surface and the distance from the imaging unit to the operation surface as variables.
According to such a configuration, it is possible to obtain the tip offset using a function in which the coordinates on the operation surface and the distance from the imaging unit to the operation surface are used as variables, and to determine the correction value in accordance with this tip offset.
(5) The position detection device may further include a projection unit that projects an image onto the operation surface.
According to such a configuration, it is possible to project an appropriate image according to the pointing position of the spontaneous emission pointing element onto the operation surface.
The invention can be realize in various aspects, and can be realized in various aspects such as, for example, a position detection device, a position detection system including a spontaneous emission pointing element and the position detection device, a position detection method, a computer program for realizing functions of the method or the device, and a non-transitory storage medium having the computer program recorded thereon.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
The projector 100 projects a projected screen PS onto the projection screen surface SS. The projected screen PS normally includes an image drawn within the projector 100. In a case where an image drawn within the projector 100 is not present, the projected screen PS is irradiated with light from the projector 100, a white image is displayed. In the present specification, the “projection screen surface SS” means the surface of a member onto which an image is projected. In addition, the “projected screen PS” means a region of an image which is projected onto the screen surface SS by the projector 100. Normally, the projected screen PS is projected onto a portion of the projection screen surface SS. The projection screen surface SS is also used as an operation surface for performing position pointing based on a pointing element, and thus is also called an “operation surface SS”.
The spontaneous emission pointing element 70 is a pen-type pointing element including a tip portion 71 capable of emitting light, a shank 72 which is held by a user, and a button switch 73 provided on the shank 72. The tip portion 71 of the spontaneous emission pointing element 70 emits, for example, infrared light. The configuration or function of the spontaneous emission pointing element 70 will be described later. In this system 900, one or a plurality of non-emission pointing elements 80 (such as a non-emission pen or a finger) can be used together with one or a plurality of spontaneous emission pointing elements 70.
The projector 100 includes a projection lens 210 that projects the projected screen PS onto the operation surface SS, a camera 310 that captures an image of a region of the projected screen PS, and a layered detection light irradiation unit 440 for irradiating pointing elements (spontaneous emission pointing element 70 and non-emission pointing element 80) with layered detection light LL (
The camera 310 has at least a first imaging function of receiving and imaging the layered detection light LL (infrared light) and light of a wavelength region including the wavelength of infrared light which is emitted by the spontaneous emission pointing element 70. It is preferable that the camera 310 further has a second imaging function of receiving and imaging light including visible light, and is configured to be capable of switching these two imaging functions. For example, it preferable that the camera 310 includes a near-infrared filter switching mechanism (not shown) capable of disposing a near-infrared filter that blocks visible light to allow passage of only near-infrared light in front of a lens or retreating the filter from the front of the lens. As shown in
The example of
The position detection system 900 can operate in modes other than the whiteboard mode. For example, this system 900 can also operate in a PC interactive mode in which an image of data transmitted from a personal computer (not shown) through a communication line is displayed on the projected screen PS. In the PC interactive mode, an image of data such as, for example, spreadsheet software is displayed, and data can be input, created, corrected, and the like using various tools or icons displayed within the image.
The control unit 700 controls each unit located inside the projector 100. In addition, the control unit 700 determines the contents of pointing performed on the projected screen PS in accordance with the pointing position of a pointing element (spontaneous emission pointing element 70 or non-emission pointing element 80) detected by the position detection unit 600, and commands the projection image generation unit 500 to create or change a projection image in accordance with the contents of the pointing.
The projection image generation unit 500 includes a projection image memory 510 that has a projection image stored therein, and has a function of generating a projection image which is projected into the operation surface SS by the projection unit 200. It is preferable that the projection image generation unit 500 further has a function as a keystone correction unit that corrects trapezoidal distortion of the projected screen PS (
The projection unit 200 has a function of projecting the projection image generated by the projection image generation unit 500 into the operation surface SS. The projection unit 200 includes an optical modulation unit 220 and a light source 230 in addition to the projection lens 210 described in
The signal light transmitting unit 430 has a function of transmitting device signal light ASL which is received by the spontaneous emission pointing element 70. The device signal light ASL is a synchronizing near-infrared light signal, and is periodically emitted from the signal light transmitting unit 430 of the projector 100 to the spontaneous emission pointing element 70. A tip light-emitting unit 77 of the spontaneous emission pointing element 70 emits pointing element signal light PSL (described later) which is near-infrared light having a predetermined light-emitting pattern (light emission sequence) in synchronization with the device signal light ASL. In addition, the camera 310 of the imaging unit 300 executes image capture at a predetermined timing synchronized with the device signal light ASL when the positions of pointing elements (spontaneous emission pointing element 70 and non-emission pointing element 80) are detected.
The imaging unit 300 includes the camera 310 described in
The position detection unit 600 has a function of analyzing an image captured by the camera 310 and determining the pointing position of the pointing element (spontaneous emission pointing element 70 or non-emission pointing element 80). In this case, the position detection unit 600 also determines whether an individual pointing element within the image is the spontaneous emission pointing element 70 or the non-emission pointing element 80, using the light-emitting pattern of the spontaneous emission pointing element 70. In the present embodiment, the position detection unit 600 includes a detection unit 610, a correction unit 620, and a correction data memory 630. The detection unit 610 has a function of analyzing the captured image captured by the camera 310 and detecting the pointing position of the pointing element. The correction unit 620 has a function of correcting the pointing position detected by the detection unit 610. The correction data memory 630 is a non-volatile memory for storing correction data which is used for correction by the correction unit 620.
The detection unit 610 and the correction unit 620 have a function of the detecting and correcting the pointing positions with respect to both the spontaneous emission pointing element 70 and the non-emission pointing element 80, but hereinafter, a function of detecting and correcting the pointing position targeted at the spontaneous emission pointing element 70 will be mainly described. The correction unit 620 has a function of correcting the pointing position detected by the detection unit 610, using a correction value determined in accordance with a tip offset which is a distance between a contact position at which the spontaneous emission pointing element 70 comes into contact with the operation surface SS and the emission position of the spontaneous emission pointing element 70. This function will be further described later.
The spontaneous emission pointing element 70 is provided with a signal light receiving unit 74, a control unit 75, a tip switch 76, and the tip light-emitting unit 77, in addition to the button switch 73. The signal light receiving unit 74 has a function of receiving the device signal light ASL emitted from the signal light transmitting unit 430 of the projector 100. The tip switch 76 is a switch which is set to be in an on-state when the tip portion 71 of the spontaneous emission pointing element 70 is pressed, and is set to be in an off-state when the tip portion 71 is released. The tip switch 76 is normally set to be in an off-state, and is set to be in an on-state due to contact pressure when the tip portion 71 of the spontaneous emission pointing element 70 comes into contact with the operation surface SS. When the tip switch 76 is in an off-state, the control unit 75 causes the tip light-emitting unit 77 to emit light in a first specific light-emitting pattern indicating that the tip switch 76 is in an off-state, and thus emits the pointing element signal light PSL having the first light-emitting pattern. On the other hand, when the tip switch 76 is set to be in an on-state, the control unit 75 causes the tip light-emitting unit 77 to emit light in a second specific light-emitting pattern indicating that the tip switch 76 is in an on-state, and thus emits the pointing element signal light PSL having the second light-emitting pattern. Since the first light-emitting pattern and the second light-emitting pattern are different from each other, the position detection unit 600 can identify that the tip switch 76 is in an on-state or an off-state by analyzing the image captured by the camera 310.
The button switch 73 of the spontaneous emission pointing element 70 has the same function as that of the tip switch 76. Therefore, the control unit 75 causes the tip light-emitting unit 77 to emit light in the second light-emitting pattern in a state where the button switch 73 is pressed by a user, and causes the tip light-emitting unit 77 to emit light in the first light-emitting pattern in a state where the button switch 73 is not pressed. In other words, the control unit 75 causes the tip light-emitting unit 77 to emit light in the second light-emitting pattern in a state where at least one of the tip switch 76 and the button switch 73 is in an on-state, and causes the tip light-emitting unit 77 to emit light in the first light-emitting pattern in a state where both the tip switch 76 and the button switch 73 are in an off-state.
However, a function different from that of the tip switch 76 may be allocated to the button switch 73. For example, when a user presses the button switch 73 in a case where the same function as that of the right click button of a mouse is allocated to the button switch 73, pointing of a right click is transmitted to the control unit 700 of the projector 100, and a process according to the pointing is executed. In this manner, in a case where a function different from that of the tip switch 76 is allocated to the button switch 73, the tip light-emitting unit 77 emits light in four light-emitting patterns different from each other, in accordance with the on/off-state of the tip switch 76 and the on/off-state of the button switch 73. In this case, the spontaneous emission pointing element 70 can transmit four combinations of the on/off-states of the tip switch 76 and the button switch 73 to the projector 100 while discriminating between the combinations.
Specific examples of five types of signal light depicted in
(1) Projection image light IML: image light (visible light) which is projected onto the operation surface SS by the projection lens 210 in order to project the projected screen PS onto the operation surface SS.
(2) Layered detection light LL: curtain-shaped near-infrared light which is emitted over the entire projected screen PS in order to detect the pointing position of the non-emission pointing element 80.
(3) Reflection detection light RDL: near-infrared light which is reflected by the pointing elements (spontaneous emission pointing element 70 and non-emission pointing element 80) and received by the camera 310, in near-infrared light emitted as the layered detection light LL.
(4) Device signal light ASL: near-infrared light which is periodically emitted from the signal light transmitting unit 430 of the projector 100 in order to synchronize the projector 100 with the spontaneous emission pointing element 70.
(5) Pointing element signal light PSL: near-infrared light which is emitted from the tip light-emitting unit 77 of the spontaneous emission pointing element 70 at a timing synchronized with the device signal light ASL. The light-emitting pattern of the pointing element signal light PSL is changed depending on the on/off-states of the switches 73 and 76 of the spontaneous emission pointing element 70. In addition, the pattern has a specific light-emitting pattern for identifying a plurality of spontaneous emission pointing elements 70.
The reason for the tip offset D calculated from the detection error not being a constant value is because the detection error of a pointing position detected by analyzing a captured image fluctuates due to the influence of reflected light (reflected light of light emitted by the spontaneous emission pointing element 70) on the operation surface SS, or the influence of a decrease in the size of light visible from the camera 310 with increasing distance from the camera 310. Further, the tip offset D may fluctuate due to how to hold the spontaneous emission pointing element 70, or the influence of a material of the operation surface SS.
Further, the tip offset D has a tendency to change depending on the projection distance of the projector 100. The projection distance of the projector 100 can be arbitrarily set within a certain degree of allowable range. In
Considering the above points, the tip offset D indicating the detection error of the pointing position of the spontaneous emission pointing element 70 can be represented as the following function.
D=D(X,Y,L) (1)
Here, X and Y are the coordinates on the operation surface SS, and L is a distance between the camera 310 and the operation surface SS. That is, the tip offset D is represented using a function in which the coordinates (X, Y) on the operation surface SS and the distance L from the camera 310 to the operation surface SS are used as variables.
An example of a function D (X, Y, L) to which the tip offset D is given is as follows.
Here, Lmax is a maximum value of the distance L between the camera 310 and the operation surface SS, Lmin is a minimum value of the distance L between the camera 310 and the operation surface SS, Cimax is a value of a coefficient Ci (i=0 to 5) in the maximum distance Lmax, and Cimin is a value of the coefficient Ci in the minimum distance Lmin.
In Expression (2a), the tip offset D is represented by a second-order expression of the coordinates X and Y on the operation surface SS. In addition, according to Expression (2b), the coefficient Ci (i=0 to 5) of each term on the right side of Expression (2a) is a value obtained by linearly interpolating the coefficient value Cimax in the maximum distance Lmax and the coefficient value Cimin in the minimum distance Lmin in accordance with the actual distance L.
The distance L between the camera 310 and the operation surface SS can be actually measured by the projector 100 itself. For example, a reference pattern image prepared in advance is projected onto the operation surface SS and is captured by the camera 310, and triangulation using the captured image and the reference pattern image within the projection image memory 510 is executed, thereby allowing the distance L to be measured. It is preferable that the position detection unit 600 (
Instead of Expression (2a), the tip offset D can also be represented by a first-order expression or a third or higher-order expression of the coordinate values X and Y on the operation surface SS. However, in order to represent the curved surface as shown in
In addition, other interpolation formulae can also be used instead of Expression (2b). For example, in Expression (2b), each coefficient Ci is interpolated using two known coefficient values Cimax and Cimin corresponding to two distances Lmax and Lmin, but instead thereof, the interpolation can be performed using three or more known coefficient values corresponding to three or more distances. In a case where the interpolation is performed using three or more known coefficient values, linearly interpolation between two coefficient values adjacent to each other may be performed, or, curve interpolation between three or more known coefficient values may be performed.
Another example of the function D (X, Y, L) to which the tip offset D is given is as follows.
Here, Lmax is a maximum value of the distance L between the camera 310 and the operation surface SS, Lmin is a minimum value of the distance L between the camera 310 and the operation surface SS, Dmax is a value of the tip offset D in the maximum distance Lmax, Dmin is a value of the tip offset D in the minimum distance Lmin, Cimax is a value of the coefficient Ci (i=0 to 5) in the maximum distance Lmax, and Cimin is a value of the coefficient Ci in the minimum distance Lmin.
Expressions (3a) to (3c) are different from Expressions (2a) and (2b), in that the tip offset D is interpolated using two known values Dmax and Dmin corresponding to two distances Lmax and Lmin. Various modifications in which Expressions (2a) and (2b) has been described can be similarly applied to Expressions (3a) to (3c).
In this case, an error Xerr of the detection position Xm is represented by the following expression.
Here, D is a tip offset, L is a distance between the camera 310 and the operation surface SS, Xc is an X-coordinate value of the camera position C, and Xm is an X-coordinate value of a detection position obtained by analyzing the captured image. The distance L is known, and the tip offset D is obtained by substituting the coordinate value (Xm, Ym) of the detection position and the distance L into functions (for example, Expressions (2a) and (2b) or Expressions (3a) to (3c)) of the tip offset D. In addition, the X-coordinate value Xc of the camera position C is known.
Therefore, in a case where the detection position (Xm, Ym) is determined by the analysis of the captured image, the detection error Xerr can be calculated in accordance with Expression (4).
As shown in the following Expression (5a), the correction unit 620 (
Xmc=Xm+Xerr (5a)
Ymc=Ym+Yerr (5b)
The correction data memory 630 stores correction data (correction coefficients or correction values) used for the correction of the detection position described above. For example, in a case where Expressions (2a) and (2b) or Expressions (3a) to (3c) are used, it is preferable that the correction data memory 630 stores the coefficients Cimax and Cimin and the maximum value Lmax and minimum value Lmin of the distance L. Instead thereof, the detection errors Xerr and Yerr described above may be calculated in advance, and these detection errors may be stored within the correction data memory 630 as the correction data of the detection position. In this case, it is preferable that the detection errors Xerr and Yerr are represented as a function in which the coordinate values X and Y of the operation surface SS and the distance L between the camera 310 and the operation surface SS are used as variables.
In the aforementioned description, the tip offset D and the correction values Xrr and Yerr which are used for the correction of the pointing position of the spontaneous emission pointing element 70 have been represented as a function in which the coordinate values X and Y of the operation surface SS and the distance L between the camera 310 and the operation surface SS are used as variables, but may be represented as a function in which the coordinate values X and Y of the operation surface SS are used as variables, without the distance L not being used as a variable. However, in a case where the tip offset D and the correction values Xerr and Yerr are represented as a function in which the coordinate values X and Y of the operation surface SS and the distance L are used as variables, more accurate correction can be executed.
In addition, the correction coefficients and the correction values used for the correction of the pointing position of the spontaneous emission pointing element 70 may be represented in other forms of a table, a map or the like without being required to be represented as a function. In even such cases, it is preferable that values varying according to at least a position on the operation surface SS are used as the correction values Xrr and Yerr.
As stated above, in the present embodiment, when the pointing positions Xm and Ym are corrected using the correction values Xrr and Yerr determined in accordance with the tip offset D of the spontaneous emission pointing element 70, the pointing position of the spontaneous emission pointing element 70 is corrected using a correction value varying according to the position on the operation surface SS, and thus the pointing position can be corrected using an appropriate correction value according to the position on the operation surface SS. As a result, it is possible to reduce the detection error of the pointing position occurring due to the tip offset D between the emission position of the spontaneous emission pointing element 70 and the operation surface SS.
The invention is not limited to the example and the embodiment, and can be implemented in various aspects without departing from the scope of the invention. For example, the following modification can also be made.
In the embodiment, an interactive projector has been described as an example of a position detection device, but the invention can also be applied to position detection devices other than the interactive projector. For example, the invention can also be applied to a digitizer or a tablet that points a position on an operation surface using a spontaneous emission pointing element.
As stated above, the embodiment of the invention has been described on the basis of several examples, but the embodiment of the invention is for the purpose of making the invention easier to understand, and the invention is not limited thereto. The invention can be changed and modified without departing from the gist and the appended claims, and the equivalents thereof are naturally included in the invention.
Number | Date | Country | Kind |
---|---|---|---|
2016-018863 | Feb 2016 | JP | national |