A tracking data compensation method and device for a follow focus device in virtual reality shooting
By obtaining the inter-tooth retardation interval value of the focus device in virtual reality shooting and correcting the encoded sensor data, the problem of the virtual image and the actual picture viewing angle in virtual reality shooting is solved, and the shooting effect is improved.
Patent Information
- Application Number
- CN202411937438.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-04
AI Technical Summary
In virtual reality shooting, the difference in the retracement between the focus gear and the focus ring or zoom ring gear of the camera lens causes the coded sensor data to change, but the actual action of the lens remains unchanged, causing the virtual image rendered by the virtual engine to be out of synchronization with the actual picture viewing angle.
By obtaining the inter-tooth retraction interval value C of the focal length adjustment gear and the camera adjustment focal ring during the initialization of the follow-tooth retraction interval value C, and correcting it according to the encoded sensor feedback value Rn and the inter-tooth retraction interval value C during the follow-tooth retraction interval, the compensated output value Dn is generated and inputted to the virtual engine.
The problem of virtual engine rendering virtual images and actual picture viewing angles due to the inter-tooth retardation interval value C is solved, and the effect of virtual reality shooting is improved.
Smart Images

Figure CN119767144A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual shooting, and in particular to a tracking data compensation method and device for a follow focus device in virtual reality shooting. Background Art
[0002] When using a camera to shoot, the camera operator usually needs to control the focus and zoom of the camera lens in real time to achieve the desired picture effect. There are a large number of cameras on the market that can replace lenses by themselves, and there are many types of lenses. Some lenses have motors and sensors inside, which can be controlled through the control interface of the lens itself, and the position data of the lens focus ring and zoom ring can be obtained in real time. For lenses without motors inside, some manufacturers have launched follow focus products. The follow focus usually has a drive motor and an encoding sensor inside. The motor, encoding sensor and follow focus gear are connected, and the follow focus is installed on the external fixed bracket of the camera. At this time, the follow focus gear and the focus ring or zoom ring gear of the camera lens will bite together. By controlling the drive motor inside the follow focus, the camera focus ring and zoom ring can be driven to rotate through gear transmission, thereby realizing the control of the focus and zoom of the camera lens. At the same time, the position data of the lens focus follow focus and zoom follow focus can be obtained in real time through the encoding sensor.
[0003] In virtual reality shooting, the virtual engine renders the virtual image in real time based on the zoom ring position data and the focus ring position data. For example, when zooming, the perspective of the real scene changes. At this time, the virtual image also changes its perspective based on the acquired camera zoom ring position data, thereby achieving a linkage effect between virtual and real images.
[0004] However, when the follow focus is actually used, the encoding sensor is installed on the follow focus drive motor, and when the motor rotates, the encoding sensor data is changing. Since there is a hysteresis between the follow focus gear and the zoom ring or focus ring gear, that is, when the follow focus gear changes direction, there is a hysteresis gap between the meshing teeth of the follow focus gear and the meshing teeth of the zoom ring or focus ring gear, and the meshing teeth of the follow focus gear move in the hysteresis gap and do not mesh with the meshing teeth of the zoom ring or focus ring gear. At this time, although the encoding sensor data changes, the zoom ring or focus ring gear does not move. If the encoding sensor data is directly used for virtual image rendering of the virtual engine, the virtual image rendered by the virtual engine and the actual camera screen will change in a synchronized manner, affecting the shooting effect of virtual reality.
[0005] In view of this, the present invention patent is proposed. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a tracking data compensation method and device for a follow focus device in virtual reality shooting. Specifically, the following technical solutions are adopted:
[0007] A tracking data compensation method for a follow focus device in virtual reality shooting, wherein the focus adjustment gear of the follow focus device and the focus adjustment ring of a camera are meshed with an external gear, and the focal length of the camera lens is adjusted by the follow focus device. The tracking data compensation method for the follow focus device in virtual reality shooting comprises:
[0008] During the initialization of the follow focus device, the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera is obtained;
[0009] During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
[0010] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, during the operation of the follow focus device, a feedback value R of the encoder sensor of the follow focus device is obtained. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Inputs to the Unreal Engine to generate virtual reality scenes include:
[0011] During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The dead zone interval of the current position of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C;
[0012] According to the determined dead zone interval, the encoder sensor feedback value Rn of the follow focus device is corrected to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
[0013] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, during the operation of the follow focus device, a feedback value R of the encoder sensor of the follow focus device is obtained. n , according to the feedback value R of the encoder sensor nThe dead zone interval of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C, including:
[0014] During the operation of the follow focus device, the encoder sensor feedback value R of the current position of the follow focus device is obtained. n , and the output value D of the previous action position of the follow focus n-1 ;
[0015] Determine the feedback value R of the encoder sensor of the follow focus n With dead zone interval [P (n-1) , Q (n-1) ], the dead zone interval [P (n-1) , Q (n-1) ] is the dead zone interval of the previous action position of the follow focus, and |Q (n-1) -P (n-1) |=C;
[0016] If the encoder sensor feedback value Rn of the follow focus is in the dead zone [P (n-1) , Q (n-1 )], the dead zone interval of the current position of the follow focus device remains at [P (n-1) , Q (n-1) ];
[0017] If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n1) , Q (n1) ], where P (n1) =R n , Q (n1) =R n +C;
[0018] If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n2) , Q (n2) ], where P (n2) =R n -C,Q (n2) =R n .
[0019] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, the step of correcting the feedback value Rn of the encoder sensor of the follow focus device according to the determined dead zone interval to obtain the output value Dn includes:
[0020] If the encoder sensor of the follow focus feedback value R n Located in the dead zone [P (n-1) , Q(n-1) ], the output value of the follow focus device Dn=D (n-1) ;
[0021] If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the output value of the follow focus device Dn=R n +C;
[0022] If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the output value of the follow focus device Dn=R n .
[0023] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, during the operation of the follow focus device, the encoder sensor feedback value R n The range is [0, Rmax], where 0 is the minimum feedback value of the encoding sensor and Rmax is the maximum feedback value of the encoding sensor;
[0024] The encoder sensor feedback value R is executed before the follow focus device starts working. n Zeroing operation: control the follow focus to rotate toward the minimum feedback value end of the encoder sensor until the encoder sensor feedback value R n is 0;
[0025] The working process of the follow focus device is determined by the feedback value R of the encoder sensor. n Starting from the zero position, the entire working process is carried out continuously, according to the dead zone interval [P (n-1) , Q (n-1 )] and the output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
[0026] As an optional embodiment of the present invention, in a tracking data compensation method of a focus follower in virtual reality shooting of the present invention, the focus follower executes the encoder sensor feedback value R before starting to work. n Zeroing operation, the follow focus is at the encoder sensor feedback value R n =0 position, R0=0, the dead zone interval is [0, C], and the output value D0=0;
[0027] The follow focus device starts to work, and moves to the first position where the feedback value of the encoding sensor is R1, and determines the relationship between R1 and the dead zone interval [0, C];
[0028] If R1 is within the dead zone interval [0, C], the dead zone interval of the current position of the follow focus device remains at [0, C], and the output value D1 = 0;
[0029] If the encoder sensor feedback value R1>C, the dead zone interval of the current position of the follow focus is modified to [R1-C, R1], and the output value D1=R1;
[0030] Optionally, the follow focus device starts to work, and moves to a second position where the encoder sensor feedback value is R2, then the dead zone interval and output value D2 of the second position are determined according to the dead zone interval and output value of the first position where the encoder sensor feedback value is R1 and the encoder sensor feedback value R2 of the second position;
[0031] By analogy, the value from the follow focus action to the encoder sensor feedback value is R n The nth position of the follow focus is based on the dead zone interval of the previous action position of the follow focus [P (n-1) , Q (n-1) ] and output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
[0032] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, during the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera includes:
[0033] A maximum value Cmax of the inter-tooth hysteresis interval is preset, wherein the maximum value Cmax of the inter-tooth hysteresis interval is ≥ D0, wherein D0 is the distance between the tooth tip of the focus adjustment gear of the follow focus device and the tooth tip of the focus adjustment ring of the camera when the tooth tip of the focus adjustment gear of the follow focus device is aligned with the tooth tip of the focus adjustment ring of the camera;
[0034] Initialize the focus unit, set the initial value of the inter-tooth hysteresis range Cmax / 2, and control the focus unit to rotate toward the minimum feedback value end of the encoder sensor until it reaches a position where it cannot rotate anymore;
[0035] Control the follow focus device to rotate in the reverse direction toward the end of the maximum feedback value of the encoding sensor, obtain the feedback value Rn of the encoding sensor of the follow focus device, correct the feedback value Rn of the encoding sensor of the follow focus device according to the feedback value Rn of the encoding sensor and the initial value Cmax / 2 of the inter-tooth hysteresis interval to obtain an output value Dn, and input the output value Dn into the virtual engine to generate a virtual reality scene;
[0036] According to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset, and the follow focus device is initialized again until the action time of the virtual reality scene generated by the follow focus device is synchronized with the action time of the actual shooting scene, which is determined as the inter-tooth hysteresis interval value C.
[0037] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, resetting the inter-tooth hysteresis interval value according to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene includes:
[0038] If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be less than the initial value Cmax / 2 of the inter-tooth hysteresis interval;
[0039] If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be greater than the initial value Cmax / 2 of the inter-tooth hysteresis interval and less than the maximum value Cmax of the inter-tooth hysteresis interval.
[0040] As an optional embodiment of the present invention, in a tracking data compensation method of a follow focus device in virtual reality shooting of the present invention, during the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera includes:
[0041] During the initialization of the follow focus device, the adjusting focus ring of the camera is simultaneously externally meshed with the external encoder sensor gear;
[0042] The follow focus device is controlled to rotate toward the minimum feedback value end of the encoding sensor until it reaches a position where it cannot rotate, and the feedback value of the encoding sensor of the follow focus device is obtained as A;
[0043] Controlling the follow focus device to rotate in the opposite direction toward the end of the maximum feedback value of the encoding sensor, and observing whether the feedback value of the external encoding sensor changes;
[0044] If the feedback value of the external encoder sensor changes, the follow focus device is controlled to stop rotating in the opposite direction, and the encoder sensor feedback value of the follow focus device at this time is obtained as B, and the inter-tooth hysteresis interval value of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera is C = (BA) / 2;
[0045] If the feedback value of the external encoder sensor does not change, the follow focus device is controlled to continue to rotate in the reverse direction until the feedback value of the external encoder sensor changes.
[0046] The present invention also provides a tracking data compensation device for a follow focus device in virtual reality shooting, which realizes the tracking data compensation method for a follow focus device in virtual reality shooting.
[0047] Compared with the prior art, the present invention has the following beneficial effects:
[0048] A tracking data compensation method for a follow focus device in virtual reality shooting of the present invention obtains an inter-tooth hysteresis interval value C of a focal length adjustment gear of the follow focus device and an adjustment focus ring of a camera during the initialization process of the follow focus device, and is used to correct a feedback value Rn of an encoding sensor of the follow focus device during the operation of the follow focus device, and then inputs the feedback value Rn into a virtual engine to generate a virtual reality scene, thereby solving the problem of asynchronism between the viewing angle changes of a virtual image rendered by the virtual engine and an actual picture of the camera due to the existence of the inter-tooth hysteresis interval value C. By adopting the tracking data compensation method for a follow focus device in virtual reality shooting of the present invention, the shooting effect of virtual reality is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Process of a tracking data compensation method for a follow focus device in virtual reality shooting according to an embodiment of the present invention Figure 1 ;
[0050] Figure 2 Process of a tracking data compensation method for a follow focus device in virtual reality shooting according to an embodiment of the present invention Figure 2 ;
[0051] Figure 3 Process of a tracking data compensation method for a follow focus device in virtual reality shooting according to an embodiment of the present invention Figure 3 ;
[0052] Figure 4 A schematic diagram of the meshing of the focus adjustment ring of the camera according to the embodiment of the present invention with the focus adjustment gear and the external encoding sensor gear;
[0053] Figure 5 Process of a tracking data compensation method for a follow focus device in virtual reality shooting according to an embodiment of the present invention Figure 4 . DETAILED DESCRIPTION
[0054] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.
[0055] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the invention claimed for protection, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0056] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions in the embodiments may be combined with each other.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the invention product is usually placed when in use, or the orientation or positional relationship commonly understood by those skilled in the art. Such terms are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0059] See also Figure 1 As shown, in this embodiment, a tracking data compensation method of a follow focus device in virtual reality shooting is provided, wherein the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera are meshed with an external gear, and the focal length of the camera lens is adjusted by the follow focus device. The tracking data compensation method of the follow focus device in virtual reality shooting includes:
[0060] During the initialization of the follow focus device, the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera is obtained;
[0061] During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
[0062] In a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, a backlash interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera is obtained during the initialization process of the follow focus device, and is used for the feedback value R of the encoder sensor of the follow focus device during the operation of the follow focus device. n After the correction, it is input into the virtual engine to generate a virtual reality scene, which solves the problem of the asynchronous change of the perspective of the virtual image rendered by the virtual engine and the actual camera picture due to the existence of the inter-tooth hysteresis interval value C. By adopting a tracking data compensation method of a follow focus device in virtual reality shooting in this embodiment, the shooting effect of virtual reality is improved.
[0063] See also Figure 2 As shown, in a tracking data compensation method of a follow focus device in virtual reality shooting in this embodiment, during the operation of the follow focus device, a feedback value R of the encoder sensor of the follow focus device is obtained. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Inputs to the Unreal Engine to generate virtual reality scenes include:
[0064] During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The dead zone interval of the current position of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C;
[0065] According to the determined dead zone interval, the encoder sensor feedback value Rn of the follow focus device is corrected to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
[0066] In a tracking data compensation method for a follow focus device in virtual reality shooting of this embodiment, according to the feedback value R of the encoder sensor, n The dead zone interval of the current position of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C. The dead zone interval is the movement interval where the focus adjustment gear of the follow focus device does not contact the adjustment focus ring of the camera after changing the direction. The dead zone interval is determined by the encoder sensor feedback value R n It is determined together with the inter-tooth backlash interval value C.
[0067] In this embodiment, the feedback value Rn of the encoder sensor of the focus follower is corrected according to the dead zone interval to obtain the output value D n, is input into the virtual engine to generate a virtual reality scene. When the next action position of the follow focus device is within the dead zone of the previous action position, the follow focus device does not drive the camera's adjustment focus ring to rotate. Therefore, the camera's current viewing angle does not change, and the output value D n The output value of the previous action remains the same, so that the perspective of the virtual reality scene does not change and remains consistent with the current actual perspective of the camera; when the next action position of the follow focus exceeds the dead zone interval of the previous action position, the encoder sensor feedback value Rn is corrected according to the dead zone interval of the previous action position to obtain the output value D n , and then input it into the virtual engine to generate a virtual reality scene, keeping it consistent with the current actual viewing angle of the camera.
[0068] See also Figure 3 As shown, in a tracking data compensation method of a follow focus device in virtual reality shooting in this embodiment, during the operation of the follow focus device, a feedback value R of the encoder sensor of the follow focus device is obtained. n , according to the feedback value R of the encoder sensor n The dead zone interval of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C, including:
[0069] During the operation of the follow focus device, the encoder sensor feedback value R of the current position of the follow focus device is obtained. n , and the output value D of the previous action position of the follow focus n-1 ;
[0070] Determine the feedback value R of the encoder sensor of the follow focus n With dead zone interval [P (n-1) , Q (n-1) ], the dead zone interval [P (n-1) , Q (n-1) ] is the dead zone interval of the previous action position of the follow focus, and |Q (n-1) -P (n-1) |=C;
[0071] If the encoder sensor of the follow focus feedback value R n Located in the dead zone [P (n-1) , Q (n-1) ], the dead zone interval of the current position of the follow focus device remains at [P (n-1) , Q (n-1) ];
[0072] If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n1) , Q (n1) ], where P (n1) =Rn , Q (n1) =R n +C;
[0073] If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n2) , Q (n2) ], where P (n2) =R n -C,Q (n2) =R n .
[0074] In a tracking data compensation method for a follow focus device in virtual reality shooting of the present embodiment, the adjustment action of the follow focus device is performed continuously, and the encoding sensor synchronously obtains feedback values and output values of each action position, and the dead zone interval of each action position can be determined according to the feedback values and the inter-tooth hysteresis interval value. When the follow focus device enters the next action position, the encoding sensor can obtain the feedback value of the next action position in real time, and simultaneously obtain the dead zone interval and output value of the previous action position to determine the output value of the next action position, as well as the dead zone interval of the next position.
[0075] At the same time, in a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, the step of correcting the feedback value Rn of the encoder sensor of the follow focus device according to the determined dead zone interval to obtain the output value Dn includes:
[0076] If the encoder sensor of the follow focus feedback value R n Located in the dead zone [P (n-1) , Q (n-1) ], the output value of the follow focus device Dn=D (n-1) ;
[0077] If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the output value of the follow focus device Dn=R n +C;
[0078] If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the output value of the follow focus device Dn=R n .
[0079] In a tracking data compensation method for a follow focus device in virtual reality shooting of this embodiment, during the operation of the follow focus device, the encoder sensor feedback value R n The range is [0, Rmax], where 0 is the minimum feedback value of the encoding sensor and Rmax is the maximum feedback value of the encoding sensor;
[0080] The encoder sensor feedback value R is executed before the follow focus device starts working. n Zeroing operation: control the follow focus to rotate toward the minimum feedback value end of the encoder sensor until the encoder sensor feedback value R n is 0;
[0081] The working process of the follow focus device is determined by the feedback value R of the encoder sensor. n Starting from the zero position, the entire working process is carried out continuously, according to the dead zone interval [P (n-1) , Q (n-1) ] and output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
[0082] In a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, a coding sensor of the follow focus device feedbacks a value R n After zeroing is completed, the adjustment process of the follow focus is a continuous process starting from the encoder sensor feedback value of 0. n Zeroing or when the follow focus is powered on again after power failure, the encoder sensor feedback value R of the follow focus is executed n Reset to zero and restart the continuous adjustment process of the focus device.
[0083] Specifically, in a tracking data compensation method for a follow focus device in virtual reality shooting of this embodiment, the follow focus device executes a feedback value R of the encoding sensor before starting to work. n Zeroing operation, the follow focus is at the encoder sensor feedback value R n =0 position, R0=0, the dead zone interval is [0, C], and the output value D0=0;
[0084] The follow focus device starts to work, and moves to the first position where the feedback value of the encoding sensor is R1, and determines the relationship between R1 and the dead zone interval [0, C];
[0085] If R1 is within the dead zone interval [0, C], the dead zone interval of the current position of the follow focus device remains at [0, C], and the output value D1 = 0;
[0086] If the encoder sensor feedback value of the follow focus device is R1>C, the dead zone interval of the current position of the follow focus device is modified to [R1-C, R1], and the output value D1=R1.
[0087] Furthermore, in a tracking data compensation method for a follow focus device in virtual reality shooting of the present embodiment, the follow focus device starts to work, and moves to a second position where the encoder sensor feedback value is R2, then the dead zone interval and output value D2 of the second position are determined according to the dead zone interval and output value of the first position where the encoder sensor feedback value is R1 and the encoder sensor feedback value R2 of the second position;
[0088] By analogy, the value from the follow focus action to the encoder sensor feedback value is R n The nth position of the follow focus is based on the dead zone interval of the previous action position of the follow focus [P (n-1) , Q (n-1) ] and output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
[0089] As an optional implementation manner of this embodiment, in a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, during the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera includes:
[0090] A maximum value Cmax of the inter-tooth hysteresis interval is preset, wherein the maximum value Cmax of the inter-tooth hysteresis interval is ≥ D0, wherein D0 is the distance between the tooth tip of the focus adjustment gear of the follow focus device and the tooth tip of the focus adjustment ring of the camera when the tooth tip of the focus adjustment gear of the follow focus device is aligned with the tooth tip of the focus adjustment ring of the camera;
[0091] Initialize the focus unit, set the initial value of the inter-tooth hysteresis range Cmax / 2, and control the focus unit to rotate toward the minimum feedback value end of the encoder sensor until it reaches a position where it cannot rotate anymore;
[0092] Control the follow focus device to rotate in the reverse direction toward the end of the maximum feedback value of the encoding sensor, obtain the feedback value Rn of the encoding sensor of the follow focus device, correct the feedback value Rn of the encoding sensor of the follow focus device according to the feedback value Rn of the encoding sensor and the initial value Cmax / 2 of the inter-tooth hysteresis interval to obtain an output value Dn, and input the output value Dn into the virtual engine to generate a virtual reality scene;
[0093] According to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset, and the follow focus device is initialized again until the action time of the virtual reality scene generated by the follow focus device is synchronized with the action time of the actual shooting scene, which is determined as the inter-tooth hysteresis interval value C.
[0094] In a tracking data compensation method for a follow focus device in virtual reality shooting of this embodiment, during the initialization process of the follow focus device, the inter-tooth hysteresis interval value is manually set, and the inter-tooth hysteresis interval value C is finally determined by continuous verification through the virtual engine. This can be achieved without the aid of other equipment, which is simple and convenient.
[0095] Specifically, in a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, resetting the inter-tooth hysteresis interval value according to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene includes:
[0096] If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be less than the initial value Cmax / 2 of the inter-tooth hysteresis interval;
[0097] If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be greater than the initial value Cmax / 2 of the inter-tooth hysteresis interval and less than the maximum value Cmax of the inter-tooth hysteresis interval.
[0098] As an optional implementation manner of this embodiment, in a tracking data compensation method of a follow focus device in virtual reality shooting of this embodiment, during the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera includes:
[0099] See also Figure 4 As shown, during the initialization process of the follow focus device, the adjusting focus ring 100 of the camera is externally meshed with the focus adjustment gear 200 and the external encoding sensor gear 300 at the same time.
[0100] See also Figure 5 As shown, the follow focus device is controlled to rotate toward the minimum feedback value end of the encoding sensor until it reaches a position where it cannot rotate, and the feedback value of the encoding sensor of the follow focus device is obtained as A;
[0101] Controlling the follow focus device to rotate in the opposite direction toward the end of the maximum feedback value of the encoding sensor, and observing whether the feedback value of the external encoding sensor changes;
[0102] If the feedback value of the external encoder sensor changes, the follow focus device is controlled to stop rotating in the opposite direction, and the encoder sensor feedback value of the follow focus device at this time is obtained as B, and the inter-tooth hysteresis interval value of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera is C = (BA) / 2;
[0103] If the feedback value of the external encoder sensor does not change, the follow focus device is controlled to continue to rotate in the reverse direction until the feedback value of the external encoder sensor changes.
[0104] In a tracking data compensation method for a follow focus device in virtual reality shooting of this embodiment, during the initialization process of the follow focus device, the method of obtaining the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera is more efficient, accurate and reliable.
[0105] This embodiment also provides a tracking data compensation device for a follow focus device in virtual reality shooting, to implement the tracking data compensation method for a follow focus device in virtual reality shooting.
[0106] This embodiment also provides a computer-readable storage medium storing a computer-executable program. When the computer-executable program is executed, the tracking data compensation method of a follow focus device in virtual reality shooting is implemented.
[0107] The computer-readable storage medium described in this embodiment may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0108] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer executable program, and when the computer program is executed by the processor, the processor executes the tracking data compensation method of a follow focus device in virtual reality shooting.
[0109] The electronic device is presented in the form of a general-purpose computing device. The processor may be one or more than one and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0110] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least some steps in the method.
[0111] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0112] It should be understood that the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons and keyboards. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.
[0113] Through the above description of the implementation mode, it is easy for those skilled in the art to understand that the present invention can be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, and the electronic processing unit, server, client, mobile phone, control unit, processor, etc. contained in the system. The present invention can also be implemented by computer software that executes the method of the present invention, such as control software executed by a microprocessor, an electronic control unit, a client, a server, etc. However, it should be noted that the computer software that executes the method of the present invention is not limited to being executed by one or a specific hardware entity, and it can also be implemented in a distributed manner by unspecified specific hardware. For computer software, the software product can be stored in a computer-readable storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.), and can also be distributed and stored on the network, as long as it can enable the electronic device to execute the method according to the present invention.
[0114] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.
Claims
1. A tracking data compensation method for a follow focus device in virtual reality shooting, wherein the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera are meshed with an external gear, and the lens focal length of the camera is adjusted by the follow focus device, characterized in that: The tracking data compensation method of the follow focus device in virtual reality shooting includes: During the initialization of the follow focus device, the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera is obtained; During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
2. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 1, characterized in that: During the operation of the focus follower, the feedback value R of the encoder sensor of the focus follower is obtained. n , according to the feedback value R of the encoder sensor n The feedback value Rn of the encoder sensor of the follow focus device is corrected by the inter-tooth hysteresis interval value C to obtain the output value D n , the output value D n Inputs to the Unreal Engine to generate virtual reality scenes include: During the operation of the follow focus device, obtain the feedback value R of the encoder sensor of the follow focus device. n , according to the feedback value R of the encoder sensor n The dead zone interval of the current position of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C; According to the determined dead zone interval, the encoder sensor feedback value Rn of the follow focus device is corrected to obtain the output value D n , the output value D n Input into the virtual engine to generate a virtual reality scene.
3. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 2, characterized in that: During the operation of the focus follower, the feedback value R of the encoder sensor of the focus follower is obtained. n , according to the feedback value R of the encoder sensor n The dead zone interval of the encoder sensor of the follow focus device is determined by the inter-tooth hysteresis interval value C, including: During the operation of the follow focus device, the encoder sensor feedback value R of the current position of the follow focus device is obtained. n , and the output value D of the previous action position of the follow focus n-1 ; Determine the feedback value R of the encoder sensor of the follow focus n With dead zone interval [P (n-1) , Q (n-1) ], the dead zone interval [P (n-1) , Q (n-1) ] is the dead zone interval of the previous action position of the follow focus, and |Q (n-1) -P (n-1) |=C; If the encoder sensor of the follow focus feedback value R n Located in the dead zone [P (n-1) , Q (n-1) ], the dead zone interval of the current position of the follow focus device remains at [P (n-1) , Q (n-1) ]; If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n1) , Q (n1) ], where P (n1) =R n , Q (n1) =R n +C; If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the dead zone interval of the current position of the follow focus is modified to [P (n2) , Q (n2) ], where P (n2) =R n -C,Q (n2) =R n .
4. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 3, characterized in that: The step of correcting the feedback value Rn of the encoder sensor of the follow focus device according to the determined dead zone interval to obtain the output value Dn comprises: If the encoder sensor of the follow focus feedback value R n Located in the dead zone [P (n-1) , Q (n-1) ], the output value of the follow focus device Dn=D (n-1) ; If the encoder sensor of the follow focus feedback value R n <P (n-1) , then the output value of the follow focus device Dn=R n +C; If the encoder sensor of the follow focus feedback value R n >Q (n-1) , then the output value of the follow focus device Dn=R n .
5. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 3, characterized in that: During the operation of the focus follower, the encoder sensor feedback value R n The range is [0, Rmax], where 0 is the minimum feedback value of the encoding sensor and Rmax is the maximum feedback value of the encoding sensor; The encoder sensor feedback value R is executed before the follow focus device starts working. n Zeroing operation: control the follow focus to rotate toward the minimum feedback value end of the encoder sensor until the encoder sensor feedback value R n is 0; The working process of the follow focus device is determined by the feedback value R of the encoder sensor. n Starting from the zero position, the entire working process is carried out continuously, according to the dead zone interval [P (n-1) , Q (n-1) ] and output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
6. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 5, characterized in that: The encoder sensor feedback value R is executed before the follow focus device starts working. n Zeroing operation, the follow focus is at the encoder sensor feedback value R n =0 position, R0=0, the dead zone interval is [0, C], and the output value D0=0; The follow focus device starts to work, and moves to the first position where the feedback value of the encoding sensor is R1, and determines the relationship between R1 and the dead zone interval [0, C]; If R1 is within the dead zone interval [0, C], the dead zone interval of the current position of the follow focus device remains at [0, C], and the output value D1 = 0; If the encoder sensor feedback value R1>C, the dead zone interval of the current position of the follow focus is modified to [R1-C, R1], and the output value D1=R1; Optionally, the follow focus device starts to work, and moves to a second position where the encoder sensor feedback value is R2, then the dead zone interval and output value D2 of the second position are determined according to the dead zone interval and output value of the first position where the encoder sensor feedback value is R1 and the encoder sensor feedback value R2 of the second position; By analogy, the value from the follow focus action to the encoder sensor feedback value is R n The nth position of the follow focus is based on the dead zone interval of the previous action position of the follow focus [P (n-1) , Q (n-1) ] and output value D (n-1) Combined with the encoder sensor feedback value R of the current position n Determine the dead zone interval and output value D of the current position n .
7. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 1, characterized in that: During the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera includes: A maximum value Cmax of the inter-tooth hysteresis interval is preset, wherein the maximum value Cmax of the inter-tooth hysteresis interval is ≥ D0, wherein D0 is the distance between the tooth tip of the focus adjustment gear of the follow focus device and the tooth tip of the focus adjustment ring of the camera when the tooth tip of the focus adjustment gear of the follow focus device is aligned with the tooth tip of the focus adjustment ring of the camera; Initialize the focus unit, set the initial value of the inter-tooth hysteresis range Cmax / 2, and control the focus unit to rotate toward the minimum feedback value end of the encoder sensor until it reaches a position where it cannot rotate anymore; Control the follow focus device to rotate in the reverse direction toward the end of the maximum feedback value of the encoding sensor, obtain the feedback value Rn of the encoding sensor of the follow focus device, correct the feedback value Rn of the encoding sensor of the follow focus device according to the feedback value Rn of the encoding sensor and the initial value Cmax / 2 of the inter-tooth hysteresis interval to obtain an output value Dn, and input the output value Dn into the virtual engine to generate a virtual reality scene; According to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset, and the follow focus device is initialized again until the action time of the virtual reality scene generated by the follow focus device is synchronized with the action time of the actual shooting scene, which is determined as the inter-tooth hysteresis interval value C.
8. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 7, characterized in that: The resetting of the inter-tooth hysteresis interval value according to the sequence between the action time of the virtual reality scene generated by the follow focus device and the action time of the actual shooting scene includes: If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be less than the initial value Cmax / 2 of the inter-tooth hysteresis interval; If the action time of the virtual reality scene generated by the follow focus device is earlier than the action time of the actual shooting scene, the inter-tooth hysteresis interval value is reset to be greater than the initial value Cmax / 2 of the inter-tooth hysteresis interval and less than the maximum value Cmax of the inter-tooth hysteresis interval.
9. The tracking data compensation method of a follow focus device in virtual reality shooting according to claim 1, characterized in that: During the initialization process of the follow focus device, obtaining the inter-tooth hysteresis interval value C between the focus adjustment gear of the follow focus device and the focus adjustment ring of the camera includes: During the initialization of the follow focus device, the adjusting focus ring of the camera is simultaneously externally meshed with the external encoder sensor gear; The follow focus device is controlled to rotate toward the minimum feedback value end of the encoding sensor until it reaches a position where it cannot rotate, and the feedback value of the encoding sensor of the follow focus device is obtained as A; Controlling the follow focus device to rotate in the opposite direction toward the end of the maximum feedback value of the encoding sensor, and observing whether the feedback value of the external encoding sensor changes; If the feedback value of the external encoder sensor changes, the follow focus device is controlled to stop rotating in the opposite direction, and the encoder sensor feedback value of the follow focus device at this time is obtained as B, and the inter-tooth hysteresis interval value of the focus adjustment gear of the follow focus device and the adjustment focus ring of the camera is C = (BA) / 2; If the feedback value of the external encoder sensor does not change, the follow focus device is controlled to continue to rotate in the reverse direction until the feedback value of the external encoder sensor changes.
10. A tracking data compensation device for a follow focus device in virtual reality shooting, characterized in that: A tracking data compensation method for a follow focus device in virtual reality shooting is implemented as described in any one of claims 1-9.