Target position detecting device

Abstract: A target position aimed at by a gun (2) in a computer-controlled gun shooting game is detected. Data representative of the position of the gun aiming at the target are derived from X- and Y-volumes (3, 4). The data is subjected to analog-to-digital conversion to provide decimal values. The decimal values are translated to coordinate values which represent a position on a monitor screen (1a) on which the target is displayed. To perform the translation, the X- and Y-volume data are derived while sequentially moving the gun (2) to aim at two reference marks (22a and 22b, or 22b and 22c) displayed at corner and center positions of the monitor screen (1a). By multiplying a ratio of a distance between two reference marks on the screen (1a) to the gun moving distance to the decimal values, the target position is represented by coordinate values of the screen (1a). With such a procedure performed prior to starting the gun shooting game, the target detection accuracy is preserved despite the position of the gun placed or the distance between the gun (2) and the monitor screen (1a).

Description: The present invention relates to a target position detecting device for detecting a target position on a TV screen or a video projector screen. The device of the present invention is typically used in a computer-controlled gun shooting game machine or a video projector, wherein a target position aimed at by a gun or a position pointed out by a pointer is detected. Shown in Fig. 1 is a computer-controlled gun shooting game machine disclosed in Japanese Laid-Open Patent Publication No. 52(1977)-36900. In this game machine, a gun 2 is pivotally movable in both X-direction (leftward and rightward) and Y-direction (upward and downward) so that a target displayed on a screen 1a of a monitor 1 can be aimed at. The position of the gun 2 aiming at the target is detected by X- and Y-volumes 3, 4 having variable resistors in the interior thereof. Specifically, the X-directional pivotal motion of the gun 2 is transmitted via rods 9a, 9b to a sector gear 5 with which a pinion gear 7 is meshingly engaged. The rotation of the pinion gear 7 is transmitted via a rod 3a to the X-volume 3. The resistance of the X-volume 3 is varied in accordance with a rotational angle of the rod 3a. On the other hand, the Y-directional pivotal motion of the gun 2 is transmitted via the rod 9a to a sector gear 6 with which a pinion gear 8 is meshingly engaged. The rotation of the pinion gear 8 is transmitted via a rod 4a to the Y-volume 4. The resistance of the Y-volume 4 is varied in accordance with a rotational angle of the rod 4a. With the detection of resistances of or voltages developed across the variable resistors in the X-and Y-volumes, the position of the gun 2 can be identified. In the above-described game machine, there is a difficulty in performing a positional adjustment of the gun 2 relative to the monitor screen la. The positional setting of the sector gear 5 is performed in such a manner that when the gun 1 is in a position aiming at a target displayed at the center of the monitor screen la, the X-volume 3 is in the middle of the resistance of the variable resistor. The positional setting of the sector gear 6 is performed in a similar fashion. After such positional settings, the sector gear 6 is fixedly secured to the rod 9a with a nut 10, and the sector gear 5 to the rod 9b with a fastening screw (not shown). However, with only the above-described procedure, the resistance of the X-volume 3 is usually symmetrically imbalanced when the gun 2 is moved to the leftmost and rightmost positions from the center of the screen la. Specifically, the decreased value of the resistance of the X-volume 3 when the gun 2 is moved to aim at the leftmost position on the screen la is usually not equal to the increased value of the resistance of the X-volume when the gun is moved to aim at the rightmost position on the screen la. This is also true with respect to the resistance of the Y-volume 4. To correct such imbalances, the positional settings are carried out for several times while moving the gun 2 to aim at different positions on the monitor screen la. The attachment positions of the sector gears 5, 6 are finally determined when all the conditions are compromised. In addition to the above-described difficulty, there is another problem in that the target position cannot be detected with high accuracy due to variations in accuracy of the mechanism and in the resistances of the variable resistors used in X- and Y-volumes 3, 4. US-A-4099719 describes a system and method for automatic alignment of a gun with a video display. First and second variable devices provide varying electric outputs therefrom in response to horizontal and vertical deflection of the gun. Each end of the operative range of the electric output for each variable device is determined by comparing each output successively with each of a series of steps with the gun first pointed to one position of the display and then pointed to another position of the display. The present invention has been made to solve the above-mentioned problems accompanying the conventional device, and accordingly it is an object of the invention to provide a target position detecting device which has a high position detecting capability with a simple adjusting procedure without being affected by the variations in accuracy of the mechanism and of variable resistors used in X- and Y-volumes. According to the present invention, there is provided a target position detecting device comprising: image displaying means having a screen for displaying an image thereon, wherein the screen is substantially of rectangular shape defined by four corners, a point on the screen being defined by two coordinate values in two directions orthogonal to each other; target position specifying means for specifying a target position on the screen; and detecting means connected to said target position specifying means for detecting the target position specified by said target position specifying means, said detecting means producing detection data representative of the target position specified by said target position specifying means; characterized in that said device further comprises: reference displaying means for displaying a plurality of references on the screen, the plurality of references being generated by target position computing means and comprising a first reference at a center position of the screen, and second and third references at two point-symmetrical corner positions of the screen with respect to the center position; said target position computing means compute coordinate values of the target position specified by said target position specifying means based on the detection data and coordinate values of each of the plurality of references, whereby the target position specified by said target position specifying means is represented by the coordinate values. The invention will be better understood from the following description, given by way of example with reference to the accompanying drawings in which: Fig. 1 is a perspective view showing a conventional target position detecting device; Fig. 2 is a perspective view showing a target position detecting device according to one embodiment of the present invention; Fig. 3 is a block diagram showing the device according to the embodiment of the present invention; Fig. 4 is a flow chart for description of a control sequence of the device according to the embodiment of the present invention; and Fig. 5 is a flow chart for description of a control sequence of the device according to the embodiment of the present invention. As shown in Fig. 2, a gun shooting game uses a gun 2 and a monitoring device 1 having a screen 1a on which a target to be shot by the gun 2 is displayed. Depending upon how many and what kinds of targets appearing in the screen 1a are to be accurately shot by the gun 2, the player's score is determined. The gun 2 is disposed apart an appropriate distance from the monitoring device 1 and is pivotally movable in both X-direction (leftward and rightward) and Y-direction (upward and downward). The X-directional position of the gun 2 is detected by an X-volume 3, and the Y-directional position of the gun 2 by a Y-volume 4. The gun 2 has a grasping portion fixedly secured to the upper end of a rod 9a. A sector gear 5 is fixedly secured to the lower end of a rod 9b so as to be pivotally movable on a horizontal plane. A pinion gear 7 is disposed to meshingly engage the teeth of the sector gear 5. A rod 3a connects the X-volume 3 and the pinion gear 7. Another sector gear 6 is fixedly secured to the lower end of the rod 9a so as to be pivotally movable on a vertical plane. Another pinion gear 8 is disposed to meshingly engage the teeth of the sector gear 6. A rod 4a connects the Y-volume 4 and the pinion gear 8. Each of the X- and Y-volumes 3, 4 contains a variable resistor in the interior thereof whose resistance varies depending upon a rotational angle of the volume. The X-directional motion of the gun 2 is transmitted to the X-volume 3 through the meshing engagement of the sector gear 5 and the pinion gear 7. On the other hand, the vertical or Y-directional motion of the gun 2 is transmitted to the Y-volume 4 through the meshing engagement of the sector gear 6 and the pinion gear 8. The X- and Y-volumes 3 and 4 are connected to a control unit 11 which is supplied with voltages derived from the X- and Y-volumes 3, 4. Based on the voltages supplied, the control unit 11 determines a position of the gun 2 aiming at a target displayed on the screen 1a. It is to be noted that the position of the gun 2 aiming at the target is defined by the voltages supplied from the X- and Y-volumes 3, 4 which in turn correspond to X-Y coordinate values of the monitor screen 1a. The control unit 11 has an arrangement as shown in Fig. 3. The control unit 11 includes a central processing unit (CPU) 15 and various kinds of memories such as a character ROM (read-only memory) 13, a program ROM 14, a work RAM (random access memory) 16, and an EE-ROM (electrically erasable read-only memory) 17. The control unit 11 also includes an A/D (analog-to-digital) converter 19 having inputs connected to the X- and Y-volumes 3, 4, and an I/O (input/output) port 18 connected to input switches 21. The control unit 11 further includes a CRT controller 12 connected to the monitor 1. Those components are mutually connected via a bus 20. The voltages derived from the X- and Y-volumes 3, 4 are supplied to the A/D converter 19 where the input voltages are subjected to analog-to-digital conversion to produce decimal data. The decimal data representative of the aiming position of the gun 2 are fed to the CPU 15 via the bus 20. In accordance with the commands issued from the CPU 15, the CRT controller 12 displays background, target characters, and score on the monitor screen 1a. The character ROM 13 retains data regarding the characters. The program ROM 14 retains a game program and an initialization program to be described later. The work RAM 16 is used to temporarily store data necessary for the CPU 15 to execute various processings. The EE-ROM 17 stores reference position data and magnification values obtained through the processings of the initialization program. The I/O port 18 receives input data from the input switch 21 and carries out input/output control of various data including out-of-coin data. Next, the initialization program will be described with reference to the flow chart shown in Fig. 4. The program for the control unit 11 is commenced when the device is powered (step S1). After the control unit 11 has been initialized (step S2), decision is made as to whether a gun's sight setting DIP switch has been in ON position or not (step S3). If yes, the routine proceeds to step S4 whereas if no, the routine proceeds to a game process through step S15. Note that the DIP switch is a part of the input switches 21. At the commencement of the initialization program, the CPU 15 sequentially displays marks 22a, 22b, 22c at three reference positions on the monitor screen 1a (see Fig. 2). Firstly, the mark 22a is displayed at the leftmost-and-uppermost position of the monitor screen 1a (step S4). The position of the gun 2 is adjusted to aim at the mark 22a and is then triggered. In response to the triggering of the gun 2, the voltages are derived from the X- and Y-volumes 3, 4 and are subjected to analog-to-digital conversion. The resultant decimal data representative of the gun's position directed toward the leftmost-and-uppermost reference position is stored in the work RAM 16 (step S5). Next, the CPU 15 displays the mark 22b at a center position of the monitor screen 1a (step S6). The gun 2 is rightwardly and downwardly moved to aim at the mark 22b and is then triggered. In response to the triggering of the gun 2, the voltages are derived from the X- and Y-volumes 3 and 4 and are subjected to analog-to-digital conversion. The resultant decimal data representative of the gun's position directed toward the central reference position is stored in the work RAM 16 (step S7). Finally, the CPU 15 displays the mark 22c at a rightmost-and-lowermost position of the monitor screen 1a (step S8). The gun 2 is further rightwardly and downwardly moved to aim at the mark 22c and is then triggered. In response to the triggering of the gun 2, the voltages are derived from the X- and Y-volumes 3 and 4 are subjected to analog-to-digital conversion. The resultant decimal data representative of the gun's position directed toward the rightmost-and-lowermost reference position is stored in the work RAM 16 (step S9). Next, a ratio (magnification) of each of the distances between the marks 22a and 22b and between the marks 22b and 22c to the corresponding gun moving amount is computed (step S10). Representing the decimal data representative of the gun's positions aiming at the marks 22a, 22b, and 22c as (X1, Y1), (X2, Y2), and (X3, Y3), respectively, the amount of movement of the gun 2 between the marks 22a and 22b is (X2 - X1) in the X-direction and (Y2 - Y1) in the Y-direction. Similarly, the amount of movement of the gun 2 between the marks 22b and 22c is (X3 - X2) in the X-direction and (Y3 - Y2) in the Y-direction. Therefore, representing the leftmost-and-uppermost, center, and rightmost-and-lowermost reference positions on the screen 1a where the marks 22a, 22b, and 22c are displayed as (x1, y1), (x2, y2), and (x3, y3), respectively, the ratios are given by the following equations. x2 - x1 X2 - X1 = KXA y2 - y1 Y2 - Y1 = KYA x3 - x2 X3 - X2 = KXB y3 - y2 Y3 - Y2 = KYB Note that the x-y coordinate values on the screen 1a have been stored in the EE-ROM 17 as reference position data. For facilitating the description, let us divide the entire region of the monitor screen 1a into four segmental regions. Left upper region, right upper region, left lower region, and right lower region of the screen 1a will be referred to as regions A, B, C and D, respectively. The ratios (magnifications) of the mark-to-mark distance on the screen 1a to the corresponding moving amount of the gun 2 are (KXA, KYA) and (KXB, KYB) for the regions A and D, respectively. The ratios for the regions B and C are (KXB, KYA) and (KXA, KYB), respectively. The CPU 15 stores the four magnification values KXA, KXB, KYA and KYB obtained in step S10 into the work RAM 16 (step S11). The leftmost-and-uppermost reference position data, the central reference position data, the rightmost-and-lowermost reference position data, and four magnification values temporarily stored in the work RAM 16 are stored in the EE-ROM 17 (step S12), whereby these data remain unerased after power off of the power supply. Upon completion of the storage of the data in the EE-ROM 17, the initialization program is terminated (step 13) and the routine proceeds to step S15. In step S15, the leftmost-and-uppermost reference position data (x1, y1), the central reference position data (x2, x3), the rightmost-and-lowermost position data (x3, y3), and four magnification values KXA, KXB, KYA and KYB are read out of the EE-ROM 17 and written into the work RAM 16 (step S15), whereupon the game process is initiated (step 16). In the game process, the target position detecting device is operated as illustrated in the flow chart of Fig. 5. In step S17, it is checked whether or not the gun 2 is triggered. If no, the routine returns to the game process in step S16 whereas if yes, X- and Y-direction position data of the gun aiming at the target are derived from the A/D converter 19 (step S18). The decimal data (X, Y) obtained from the A/D converter 19 are compared with each of the gun's reference position data (X1, Y1), (X2, Y2), and (X3, Y3) to investigate the segmental screen region to which the current gun aiming position (X, Y) belongs. Simultaneously, X- and Y-directional distances between the current gun aiming position (X, Y) and the gun's center reference position (X2, Y2) are computed (step S19). When the investigation indicates that the current gun aiming position (X, Y) belongs to the region A on the monitor screen 1a, X- and Y-directional gun moving amounts between the current gun aiming position (X, Y) and the gun's central reference position (X2, Y2) are computed and the magnification values KXA and KYA in the region A are multiplied to the computed results (X - X2) and (Y - Y2) on directional basis. The resultant X- and Y-directional data are converted to negative values while remaining each of the absolute value unchanged (step S20). When the investigation indicates that the current gun aiming position (X, Y) belongs to the region B on the monitor screen 1a, X- and Y-directional gun moving amounts between the current gun aiming position (X, Y) and the gun's central reference position (X2, Y2) are computed and the magnification values KXB and KYA in the region B are multiplied to the computed results (X - X2) and (Y - Y2) on directional basis. The resultant X-directional data is converted to a positive value whereas the resultant Y-directional data is converted to negative values while remaining each of the absolute values unchanged (step S21). When the investigation indicates that the current gun aiming position (X, Y) belongs to the region C on the monitor screen 1a, X- and Y-directional gun moving amounts between the current gun aiming position (X, Y) and the gun's central reference position (X2, Y2) are computed and the magnification values KXA and KYB in the region C are multiplied to the computed results (X - X2) and (Y - Y2) on directional basis. The resultant X-directional data is converted to a negative value whereas the resultant Y-directional data is converted to a positive value while remaining each of the absolute values unchanged (step S22). When the investigation indicates that the current gun aiming position (X, Y) belongs to the region D on the monitor screen 1a, X- and Y-directional gun moving amounts between the current gun aiming position (X, Y) and the gun's central reference position (X2, Y2) are computed and the magnification values KXB and KYB in the region D are multiplied to the computed results (X - X2) and (Y - Y2) on directional basis. The resultant X- and Y-directional data are converted to positive values while remaining each of the absolute values unchanged (step S23). By adding the x- and y-directional screen coordinate values x2 and y2 to the values obtained in each of the steps 20 through 23, the target position (x, y) on the screen 1a can be identified (step S24). The data regarding the target position (x, y) are stored in the work RAM 16 (step 25), whereupon the routine returns to the game process (step S26). Although the foregoing description has been made with respect to the case where the present invention is applied to a computer-controlled gun shooting game machine, the present invention is also applicable to a video projector or the like to detect a position pointed out by a pointer. Further, in the foregoing description, the monitor screen la is divided into four segmental regions to obtain the ratio of the mark-to-mark distance to the corresponding gun moving amount in each of the divided segmental regions. However, the screen la may be divided into more than four segmental regions while selecting more than three reference positions on which the marks are displayed.

Claims: A target position detecting device comprising: image displaying means (1) having a screen (1a) for displaying an image thereon, wherein the screen is substantially of rectangular shape defined by four corners, a point on the screen being defined by two coordinate values in two directions orthogonal to each other; target position specifying means (2) for specifying a target position on the screen; and detecting means (3,4) connected to said target position specifying means for detecting the target position specified by said target position specifying means (2), said detecting means producing detection data representative of the target position specified by said target position specifying means; characterized in that said device further comprises: reference displaying means (15) for displaying a plurality of references (22a-c) on the screen, the plurality of references being generated by target position computing means and comprising a first reference (22b) at a center position of the screen, and second (22a) and third (22c) references at two point-symmetrical corner positions of the screen with respect to the center position; said target position computing means (15,16,17) compute coordinate values of the target position specified by said target position specifying means based on the detection data and coordinate values of each of the plurality of references, whereby the target position specified by said target position specifying means is represented by the coordinate values. The device according to claim 1, wherein said target position specifying means is movable in two directions orthogonal to each other and the target position is specified by a position of said target position specifying means (2). The device according to claim 2, wherein the screen (la) is divided into four segmental regions, and further comprising identification means (15-17) for identifying a segmental region to which the target position specified by said target position specifying means belongs. The device according to claim 3, wherein said target position specifying means (2) specifies two references displayed in the center and one corner positions of the screen, and said detecting means (3,4) detects positions of the two references and produces first reference detection data representative of the positions of the two references specified by said target position specifying means, and wherein said target position computing means (15-17) computes the coordinate values of the target position specified by said target position specifying means based on a first ratio of a first distance to a second distance where the first distance is defined by a distance between the positions of the two references displayed on the screen, the first distance being represented by the coordinate values, and the second distance is defined by a distance between the positions of the two references specified by said target position specifying means. The device according to claim 4, wherein when said identification means (15-17) identifies a segmental region including the center and one corner positions, said target position computing means (15-17) computes the coordinate values of the target position specified by said target position specifying means by multiplying the first ratio to the detection data. The device according to claim 4, wherein said target position specifying means (2) further specifies two references displayed in the center and another corner positions of the screen, and said detecting means (3,4) detects positions of the two references in the center and another corner positions of the screen and produces second reference detection data representative of the positions of the two references in the center and another corner positions of the screen, and wherein said target position computing means (15-17) computes the coordinate values of the target position specified by said target position specifying means based on a second ratio of a third distance to a fourth distance where the third distance is defined by a distance between the positions of the two references displayed at the center and another corner positions of the screen, the third distance being represented by the coordinate values, and the fourth distance is defined by a distance between the positions of the two references in the center and another corner positions of the screen specified by said target position specifying means (2). The device according to claim 6, wherein when said identification means (15-17) identifies a segmental region including the center and another corner positions, said target position computing means (15-17) computes the coordinate values of the target position specified by said target position specifying means by multiplying the second ratio to the detection data. The device according to any of the preceding claims, wherein said detection data is in the form of decimal value.

Inventors: KOMA YOZO, KOMA, YOZO, Koma, Yozo, c/o Kabushikigaisha Taito
Applicants: TAITO KK, KABUSHIKIGAISHA TAITO
Application year: 1991
Main classification: G06K11
IPC codes: F41J5, G06F3, G01B7, A63F13, A63F9