Controller and computer
By setting marks on the pen-type controller along the side of the housing, and using the camera to decode the rotation angle code in the marks, the problem of difficulty in detecting the posture of the controller in the existing technology is solved, and accurate posture detection in the XR space is achieved. , improving operation accuracy and user experience.
Patent Information
- Application Number
- CN202280092655.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-25
- Filing Date
- 2022-12-26
- Publication Date
- 2024-09-24
AI Technical Summary
It is difficult to detect the posture of a pen-type controller using marker-based postures with the existing technology, especially in XR spaces such as virtual reality and augmented reality.
A pen-type controller is designed. The surface of the casing is marked with markings along the circumferential direction, including a code for detecting the rotation angle around the casing axis. By photographing and decoding the marks with a camera, the computer can detect the roll angle, lateral direction, etc. of the controller. Pan angle and pitch angle.
Marker-based posture detection is implemented, which can accurately detect the posture of the controller, improving operation accuracy and user experience in the XR space.
Smart Images

Figure CN118696293A
Abstract
Description
Technical Field
[0001] The present invention relates to a controller and a computer, and in particular to a pen-shaped controller used in a space constituted by XR technologies such as VR (Virtual Reality), AR (Augmented Reality), MR (Mixed Reality), and SR (Substitutional Reality) (hereinafter referred to as "XR space"), and a computer capable of communicating with such a controller. Background Art
[0002] Sometimes, a pen-shaped controller is used to allow the user to indicate a position in the XR space. Patent Document 1 discloses an example of such a controller.
[0003] Prior art literature
[0004] Patent Literature
[0005] Patent Document 1: International Publication No. 2019 / 220803 Summary of the invention
[0006] Problems to be solved by the invention
[0007] As a method for detecting the posture of a controller in an XR space, the following method is considered: placing a marker on the surface of the controller, photographing the marker with an optical device such as a camera, and recognizing the above-mentioned features, thereby detecting the posture of the controller. However, in the conventional pen-type controller, it is difficult to use such marker-based posture detection.
[0008] Therefore, one of the objects of the present invention is to provide a pen-type controller capable of detecting gestures based on markers and a computer that detects the gestures of the pen-type controller using markers.
[0009] Means for solving problems
[0010] The pen-type controller of the present invention has a shell and a position indicating portion which is arranged at the front end of the shell and indicates the position in space, wherein the shell has a mark which is arranged on the side of the shell along the circumferential direction and includes a code for detecting the rotation angle around the shell axis of the shell.
[0011] The computer of the present invention is used to detect the posture of a controller, wherein the controller has a shell and a position indicating portion which is arranged at the front end of the shell and indicates the position in space, wherein the controller has a mark which is arranged on the side of the shell along the circumferential direction and includes a code for detecting the rotation angle around the shell axis of the shell, i.e., the roll angle. The computer obtains an image of the controller via a shooting unit, decodes the mark contained in the image, and detects the roll angle based on the decoding result.
[0012] Effects of the Invention
[0013] According to the present invention, it is possible to provide a pen-type controller capable of detecting a gesture using a marker and a computer that detects the gesture of the pen-type controller using a marker. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a diagram showing a pen-shaped controller P and an XR system 1 for generating an XR space according to an embodiment of the present invention.
[0015] Figure 2 It is a diagram showing an example of the hardware configuration of the image processing device 2 .
[0016] Figure 3 It is an enlarged stereogram of the controller P.
[0017] Figure 4 This is a diagram for explaining the reference numeral 13 .
[0018] Figure 5 It is a diagram showing another example of the first graph F1.
[0019] Figure 6 1 is a processing flowchart showing processing executed by the image processing device 2 to obtain the roll angle θ of the controller P.
[0020] Figure 7 1 is a processing flowchart showing processing executed by the image processing device 2 to obtain the yaw angle φ and the pitch angle ψ of the controller P. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0022] Figure 11 is a diagram showing a pen-shaped controller P and an XR system 1 for generating an XR space according to the present embodiment. As shown in the figure, the XR system 1 is configured to include an image processing device 2, a camera 3, and a head-mounted display 4. The head-mounted display 4 is a display device of a type that is worn on the user's head. The user wears the head-mounted display 4 and operates the controller P while observing the XR space displayed on the display surface of the head-mounted display 4.
[0023] The camera 3 is an imaging unit that is disposed at a position where an image of the controller P can be captured, and is disposed so that the optical axis OX becomes horizontal. Figure 1 The x direction shown is the direction of the optical axis OX, the y direction is a direction orthogonal to the x direction in the horizontal plane, and the z direction is a vertical direction corresponding to the up-down direction of the image captured by the camera 3 .
[0024] The image processing device 2 is a computer configured to execute an XR application that generates an XR space, and is connected to a camera 3 and a head-mounted display 4. The XR application is installed with a function of detecting the position and posture of the controller P based on the image of the controller P captured by the camera 3. The image processing device 2 that executes the XR application detects the position and posture of the controller P based on the image of the camera 3, and generates a 3D object representing the controller P based on the detection result. Then, after configuring the 3D object in the generated XR space, the XR space is rendered, and the rendering result is output to the head-mounted display 4. As a result, the user can operate the controller P in the XR space while observing the 3D object of the controller P.
[0025] Figure 2 1 is a diagram showing an example of the hardware structure of the image processing device 2. As shown in the figure, the image processing device 2 is configured to include a CPU (Central Processing Unit) 101, a storage device 102, an input device 103, an output device 104, and a communication device 105. It should be noted that the specific type of the image processing device 2 is not particularly limited, and the image processing device 2 can be configured using various types of computers such as a notebook personal computer, a desktop personal computer, a tablet personal computer, a smart phone, and a server computer.
[0026] The CPU 101 is a processor that controls each unit of the image processing device 2 and reads and executes various programs stored in the storage device 102. The processing performed by the image processing device 2 described below is realized by the CPU 101 executing the program stored in the storage device 102.
[0027] The storage device 102 is a device including a main storage device such as a DRAM (Dynamic Random Access Memory) and an auxiliary storage device such as a hard disk, and plays the role of storing various programs for executing the operating system of the image processing device 2, various application programs, and data used by these programs. The application programs stored in the storage device 102 include the above-mentioned XR application program.
[0028] The input device 103 is a device that receives input operations from the user and supplies them to the CPU 101, and is configured to include, for example, a keyboard, a mouse, and a touch panel. The camera 3 and the controller P are each one of the input devices 103. The camera 3 serves to input the image obtained by shooting to the image processing device 2. The controller P serves to input its position (position in the XR space) and posture to the image processing device 2 by causing the image processing device 2 to detect them. In addition to generating the above-mentioned 3D object of the controller P based on the detected position and posture of the controller P, the image processing device 2 also performs processing such as movement of the cursor and generation of stroke data. It should be noted that the controller P can also be a position indicator relative to the touch panel of the input device 103 of the image processing device 2. The touch panel in this case serves to detect the position of the controller P on the touch surface and supply the detected position to the image processing device 2.
[0029] The output device 104 is a device that outputs the processing results of the CPU 101 to the user, and is configured to include, for example, a display and a speaker. The head-mounted display 4 is one of the output devices 104. The communication device 105 is a device for communicating with external devices including the camera 3, the controller P, and the head-mounted display 4, and transmits and receives data with these devices according to the control of the CPU 101.
[0030] Figure 3 : is an enlarged perspective view of the controller P. As shown in the figure, the controller P is configured to include a housing 10 formed in a cylindrical shape, for example, and a position indicating portion 11 provided at the front end of the housing 10 and indicating a position in space. The user operates the controller P by holding the housing 10 with one hand, thereby moving the position indicating portion 11, thereby indicating a position in space. A plurality of light emitting diodes 12 that emit light using power supplied from a battery of the controller P and a mark 13 composed of a predetermined pattern are arranged on the surface of the controller P.
[0031] The plurality of light emitting diodes 12 are provided so that the image processing device 2 can detect the position of the controller P, and are arranged on the surface of the controller P in a predetermined arrangement pattern. The image processing device 2 is configured to detect a light pattern that matches the arrangement pattern of the light emitting diodes 12 in the image supplied from the camera 3, calculate the distance between the camera 3 and the controller P based on its apparent size, and thereby detect the position of the controller P in the XR space. The number of light emitting diodes 12 attached to the surface of the controller P and the specific attachment position of each light emitting diode 12 are determined so that the image processing device 2 can detect the position of the controller P even if only a part of the plurality of light emitting diodes 12 appears in the image due to occlusion by the user's hand or the like.
[0032] The mark 13 is provided for the image processing device 2 to detect the posture of the controller P, and is arranged on the side surface near the rear end of the shell 10 in a manner of surrounding the entire circumference. The mark 13 is arranged near the rear end of the shell 10 to prevent the mark 13 from being blocked by the hand of the user holding the controller P. The detection of the posture of the controller P using the mark 13 is specifically performed by detecting the roll angle θ, yaw angle φ, and pitch angle ψ shown in the figure. The roll angle θ is the rotation angle around the shell axis CX (cylindrical axis) of the shell 10. The yaw angle φ is the rotation angle around the optical axis OX of the camera 3. The pitch angle ψ is the rotation angle around the rotation axis RX that is orthogonal to the optical axis OX and the shell axis CX. Details on the method of detecting them will be described later.
[0033] Figure 4 This is a diagram for explaining the reference numeral 13 . Figure 4 (a) is a cross-sectional view of the housing 10 when cut along a plane orthogonal to the housing axis CX. Figure 4 (b) is a schematic expansion diagram of the side of the controller P, Figure 4 (c) is a schematic diagram of the side of the controller P. Figure 4 Also refer to the following Figure 5 and Figure 6 , while explaining in detail the structure of the mark 13 and the detection method of the roll angle θ.
[0034] First refer to Figure 4(a)(b), the mark 13 is constructed to include a plurality of areas A1 to A8 arranged at equal intervals along the circumferential direction (circumferential direction) on the side of the shell 10. Hereinafter, when there is no need to distinguish between the areas A1 to A8, they are sometimes collectively referred to as areas A. In addition, the following description is continued on the premise that the mark 13 includes 8 areas A, but the number of areas A included in the mark 13 may not be 8. That is, the number of areas A is a parameter that determines the detection resolution of the roll angle θ. When the mark 13 includes n areas A, the detection resolution of the roll angle θ becomes 360° / n. Therefore, the number of areas A can be determined based on the required detection resolution of the roll angle θ.
[0035] Each area A is a rectangular area of the same size. If the radius of the housing 10 is r, the arrangement pitch of the areas A is πr / 4. The width of the area A in the circumferential direction may also be πr / 4, in which case the two adjacent areas A are arranged closely to each other. However, the width of the area A in the circumferential direction may also be set to a value less than πr / 4, and the two adjacent areas A may be arranged separately.
[0036] Either the first graphic F1 or the second graphic F2 is arranged in each area A. Figure 4 (b) shows an example in which the regions A1 and A3 to A5 include the first graphic F1 and the regions A2 and A6 to A8 include the second graphic F2.
[0037] like Figure 4 As shown in (b), the first figure F1 is a non-point-symmetrical figure having protrusions or depressions. The first figure F1 is configured in this way so that when the controller P is observed in the image of the camera 3, the first figure F1 can be used to distinguish the front end and the rear end of the controller P. Figure 4 In (b), as an example, an example is shown in which the first figure F1 is formed by a first portion, which is a quadrilateral formed with the same width πr / 4 as the area A, and a second portion (protrusion) which is a quadrilateral with a width πr / 12 protruding from the center of the upper side (the side on the rear end side of the controller P). The length L0 shown in the figure is the width of the first figure F1 in the direction of the housing axis CX, and is pre-stored in Figure 2 The reference length L0 is stored in the storage device 102 as shown. As will be described in detail later, the reference length L0 stored in the storage device 102 is used by the controller P to calculate the pitch angle ψ.
[0038] Figure 5 It is a diagram showing another example of the first graph F1. Figure 5(a) shows an example of forming a first figure F1 by taking a rectangle having long sides parallel to the shell axis CX and short sides whose lengths are smaller than the amplitude of the circumferential direction of region A as a basis, and adding various figures (circles, triangles, rectangles, squares, etc.) whose amplitudes of the circumferential direction of region A are larger than the rectangle to this basis in a manner that makes it asymmetric as a whole. Figure 5 (b) shows an example of forming the first figure F1 by taking an ellipse having a major axis parallel to the shell axis CX and a minor axis smaller than the amplitude in the circumferential direction of region A as a basis, and adding a figure (circle, triangle, rectangle, etc.) having a larger amplitude in the circumferential direction of region A than the ellipse to the basis in a manner that makes it point-asymmetric as a whole. Figure 5 (c) shows an example of forming the first figure F1 by adding a rectangular or elliptical cutout from the center or corner of the side of the rear end side of the controller P to various figures such as a circle, a triangle, a rectangle, and a square. In this way, various shapes can be considered as the specific shape of the first figure F1, but Figure 5 The shapes shown are not exhaustive, and the first figure F1 may be any figure that is asymmetric in point and has protrusions or depressions.
[0039] return Figure 4 . The second figure F2 is composed of a figure having a prescribed color (more specifically, a figure formed by filling the corresponding area A with the background color). Since area A is a rectangle, the second figure F2 is also a rectangle. It should be noted that the background color of the mark 13 can be the same color as the side of the shell 10, or a different color. In the case where the background color of the mark 13 is the same color as the side of the shell 10, it looks like nothing is configured in the part of the second figure F2 from the user's perspective. In addition, the second figure F2 can also be formed by a non-point-symmetrical figure having protrusions or depressions similar to the first figure F1, but in this case, it is necessary to use figures of different shapes to respectively form the first figure F1 and the second figure F2.
[0040] The first graph F1 and the second graph F2 are respectively as follows Figure 4 As shown in (b) of FIG. 1 , different bits are represented, and thus, the mark 13 includes a code for the image processing device 2 to detect the roll angle θ of the controller P. Figure 4 In (b) of FIG. 1 , an example is shown in which the bit "1" is associated with the first graph F1 and the bit "0" is associated with the second graph F2 , but the opposite is of course possible.
[0041] In the image of the controller P contained in the image obtained by the image processing device 2 from the camera 3, as shown in FIG. Figure 4As shown in (c), at least three areas A are included. With regard to the type of graphics (first graphics F1 or second graphics F2) arranged in each area A, the graphics represented by the three areas A included in the image are a combination of the areas A, and are selected in a manner that the graphics are different depending on the combination of the areas A (in other words, in a manner that is not repeated with respect to the rotation around the shell axis CX). Figure 4 The configuration of the graph shown in (b) is an example of such a selection.
[0042] Table 1 shows the Figure 4 The 3-digit code represented by the three regions A appearing in the image is a 3-digit code when the first graphic F1 and the second graphic F2 are arranged in each region A as shown in (b) of FIG. 1. As can be understood from Table 1, if the combination of the three regions A is different, the code is different. Therefore, the three regions A appearing in the image can be distinguished based on the code represented by the graphic appearing in the image. In addition, it can be understood that if the state where the region A1 appears to be facing each other is set to the roll angle θ=0°, the roll angle θ can be obtained based on the code as shown in Table 1.
[0043]
[0044] The image processing device 2 detects the mark 13 that appears in the image supplied from the camera 3, and obtains a combination of graphics that appear therein. Then, a 3-bit code is obtained by decoding the obtained combination of graphics, and the roll angle θ of the controller P is obtained based on the obtained code. In this way, according to the controller P of this embodiment, since the mark 13 is arranged on the surface, the image processing device 2 can obtain the roll angle θ of the controller P based on the image of the controller P.
[0045] Figure 6 is a processing flow chart showing the processing performed by the image processing device 2 to obtain the roll angle θ of the controller P. As shown in the figure, the image processing device 2 first obtains an image from the camera 3 (step S1), and then detects the marker 13 included in the image (step S2). The marker 13 detected in this way is usually distorted, so the image processing device 2 then performs processing to correct the distortion of the marker 13 (step S3).
[0046] Specifically, the processing of step S3 may be performed using machine learning or inverse transformation of affine transformation. When machine learning is used, the storage device 102 (see Figure 2 ) establishes correspondence between the images of the marker 13 captured from various angles under various conditions and the images of the marker 13 observed from the front and learns them. The image processing device 2 searches the storage device 102 for the image most similar to the image of the marker 13 detected in step S2, and obtains the image corresponding to the found image (the image of the marker 13 observed from the front) as the corrected image.
[0047] On the other hand, when the inverse matrix of the affine transformation is used, images of the marker 13 viewed from the front at various angles around the housing axis CX are stored in advance in the storage device 102 of the image processing device 2. The image processing device 2 applies various affine transformations to these images, and determines an affine transformation whose result is most similar to the image of the marker 13 detected in step S2. Then, the inverse transformation of the determined affine transformation is applied to the image of the marker 13 detected in step S2, thereby obtaining a corrected image.
[0048] Next, the image processing device 2 determines the orientation of the controller P in the corrected image (step S4). Specifically, the first figure F1 is detected from the image, and the orientation of the controller P is determined based on its shape. Figure 4 Taking the first figure F1 shown in (b) as an example, the image processing device 2 detects the first part and the second part from the detected first figure F1, and determines the side where the first part is located as the front end side of the controller P, and determines the side where the second part is located as the rear end side of the controller P.
[0049] Next, the image processing device 2 decodes the mark 13 based on the orientation of the controller P determined in step S4 (step S5). Specifically, three regions A that are most clearly visible in the corrected image are determined, and the graphics included in each region A are converted into bit values. Then, the obtained three bit values are arranged from the left side when the front end side of the controller P is downward, thereby obtaining a 3-bit code.
[0050] Finally, the image processing device 2 calculates the roll angle θ of the controller P based on the decoding result (3-bit code) in step S5 (step S6). Specifically, the roll angle θ of the controller P can be obtained by converting the 3-bit code into the roll angle θ based on the above-mentioned Table 1. The detection of the roll angle θ by the image processing device 2 is completed through the processing so far.
[0051] Next, a method of detecting the yaw angle φ and the pitch angle ψ will be described. Figure 7 1 is a processing flow chart showing the processing performed by the image processing device 2 to obtain the yaw angle φ and pitch angle ψ of the controller P. As shown in the figure, the image processing device 2 first obtains an image from the camera 3 (step S10), and then detects the marker 13 included in the image (step S11). The processing up to this point is the same as steps S1 and S2 in the case of obtaining the roll angle θ.
[0052] Next, the image processing device 2 converts the above-mentioned reference length L0 (refer to Figure 4 ) from the storage device 102 (refer to Figure 2 ) is read out (step S12). In addition, the image processing device 2 is based on Figure 3 The position of the controller P detected by the arrangement of the light of the light emitting diode 12 shown in FIG. 1 is obtained to obtain the distance d between the camera 3 and the controller P (step S13), and the apparent length δ in the direction of the housing axis CX of the first figure F1 observed from the camera 3 is obtained (step S14). The unit of δ is an angle. Then, the image processing device 2 calculates the pitch angle ψ of the controller P based on these obtained values (step S15). Specifically, the pitch angle ψ can be calculated using the following formula (1).
[0053]
[0054] It should be noted that the image processing device 2 can also pre-acquire the length L1 of the first figure F1 observed from the camera 3 in the direction of the shell axis CX when the pitch angle ψ is zero through calibration before the use of the controller P, and use the length L1 and the apparent length L (the unit of L is length) of the first figure F1 observed from the camera 3 in the direction of the shell axis CX to calculate the pitch angle ψ using the following formula (2).
[0055]
[0056] The pitch angle ψ can also be calculated using methods other than these methods. For example, the image processing device 2 can also calculate the pitch angle ψ using a change in the ratio of the top side (the side located on the rear end side of the controller P) and the bottom side (the side located on the front end side of the controller P) of the first figure F1, or a change in the aspect ratio of the first figure F1.
[0057] Next, the image processing device 2 determines whether the pitch angle ψ calculated in step S15 is 0 (step S16). As a result of the determination, if the image processing device 2 determines that it is 0, the process proceeds to step S18. On the other hand, if the image processing device 2 determines that it is not 0, it performs a process to correct the distortion of the mark 13 (step S17), and then proceeds to step S18. The process to correct the distortion may be the same as that in step S17. Figure 6 The same processing as that described in step S3 is performed.
[0058] In step S18, the image processing device 2 determines the direction of the housing axis CX based on the extending direction of the first figure F1. Figure 6The same process as step S4 is used to determine the orientation of the controller P, thereby determining the upper side (the side located on the rear end side of the controller P) and the bottom side (the side located on the front end side of the controller P) of the first figure F1. Then, the positions of the midpoints of the upper side and the bottom side are determined, and the direction connecting the obtained midpoints is determined as the direction of the shell axis CX. It should be noted that, in the case where sufficient accuracy cannot be obtained by only using the midpoints of the upper side and the bottom side, the midpoint of the upper side of the first part of the first figure F1 (or the bottom side of the second part) can also be determined, and the line segment connecting the three midpoints can be obtained by the least squares method, and the extension direction of the obtained line segment is determined as the direction of the shell axis CX.
[0059] In step S18, the direction of the shell axis CX can also be determined by machine learning. In this case, the images of the marker 13 captured from various angles and the direction of the shell axis CX are stored in the storage device 102 of the image processing device 2 in correspondence with each other (see Figure 2 The image processing device 2 searches the storage device 102 for an image that is most similar to the image of the marker 13 detected in step S11, and acquires the direction stored in association with the found image as the direction of the housing axis CX.
[0060] The image processing device 2 that has determined the direction of the housing axis CX calculates the angle between the determined direction of the housing axis CX and the vertical direction (the vertical direction of the image) to calculate the yaw angle φ of the controller P (step S19). The image processing device 2 completes the detection of the yaw angle φ and the pitch angle ψ through the processing up to this point.
[0061] As described above, according to the controller P of this embodiment, although it is a pen-shaped controller with a small surface area, it is possible to use the mark 13 arranged on the surface to enable the image processing device 2 to detect the posture of the controller P (specifically, the roll angle θ, the yaw angle φ and the pitch angle ψ).
[0062] As mentioned above, although the preferred embodiment of the present invention has been described, the present invention is not limited to such embodiment at all, and the present invention can be implemented in various forms within the scope not departing from the gist of the present invention.
[0063] For example, in the above embodiment, the description is made assuming that there is one camera 3, but a plurality of cameras 3 may be used in consideration of the possibility that the controller P is blocked by an obstacle. In this case, the image processing device 2 may determine the position of the controller P based on the image of the light emitting diode 12 that is most visible among the images captured by each camera 3, and detect the posture of the controller P based on the image of the mark 13 that is most clearly visible. In addition, the angle from each camera 3 to the controller P may be detected, and the position of the controller P may be detected by triangulation based on the detected angles.
[0064] Furthermore, for example, in the above embodiment, the case 10 is described as being cylindrical. However, the case 10 may be formed in a shape other than a cylindrical shape, such as a shape having a rounded triangle cross section, in consideration of ergonomics or the like.
[0065] Description of Reference Numerals
[0066] 1 XR System
[0067] 2 Image processing device
[0068] 3. Camera
[0069] 4 Head-mounted display
[0070] 10 Housing
[0071] 11 Position indicator
[0072] 12 LEDs
[0073] 13 Mark
[0074] 101 CPU
[0075] 102 Storage Device
[0076] 103 Input Device
[0077] 104 Output device
[0078] 105 Communication devices
[0079] A. A1~A8 area
[0080] CX housing shaft
[0081] F1 First Graphics
[0082] F2 Second Graphic
[0083] OX optical axis
[0084] P Controller
[0085] RX Rotation axis
[0086] θ Roll angle
[0087] φ Yaw angle
[0088] ψ Pitch angle.
Claims
1. A controller comprising a housing and a position indicating portion disposed at a front end of the housing and indicating a position in space, wherein: The housing has a mark which is provided on a side surface of the housing along a circumferential direction and includes a code for detecting a rotation angle around a housing axis of the housing.
2. The controller according to claim 1, The marking includes a plurality of areas arranged along a circumferential direction on the side of the housing, Each of the plurality of regions includes either a first graphic or a second graphic different from the first graphic.
3. The controller according to claim 2, The first figure is a point-asymmetric figure having protrusions or depressions.
4. The controller according to claim 2, The second graphic is a graphic having a predetermined color.
5. The controller according to any one of claims 2 to 4, The mark included in the image obtained by the camera and having the first graphic and the second graphic is a mark that is different depending on the combination of the first graphic and the second graphic.
6. The controller according to claim 1, The mark is arranged at a position so as not to be hidden by a hand of a user when the user grasps the housing.
7. The controller according to claim 1, The marking is disposed proximate to a rear end of the housing.
8. The controller according to claim 1, The shell is in a cylindrical shape.
9. A computer for detecting a posture of a controller, the controller comprising a housing and a position indicating portion provided at a front end of the housing and indicating a position in space, wherein: The controller has a mark which is arranged on the side of the housing along the circumferential direction and includes a code for detecting a rotation angle around a housing axis of the housing, that is, a roll angle. The computer obtains an image of the controller via a photographing unit. The computer decodes the marker included in the image, and detects the roll angle based on the result of the decoding.
10. The computer according to claim 9, The marking comprises a pattern extending along the housing axis, The computer obtains the reference length of the graphic, The computer obtains the distance from the imaging unit to the controller, The computer detects the apparent length of the graphic contained in the image, The computer detects a pitch angle, which is a rotation angle about a rotation axis orthogonal to an optical axis of the imaging unit and the housing axis, based on the acquired reference length, the distance, and the apparent length.
11. The computer according to claim 10, The computer determines the direction of the shell axis based on the extending direction of the graphic, The computer detects a yaw angle, which is a rotation angle around an optical axis of the imaging unit, based on a vertical direction and a direction of the housing axis.
