VR device perspective method, device, VR device and medium
By obtaining the relationship between the value of the P-Sensor and the image, and fitting the curve to enlarge the image in equal proportions, the problem of the gray area of the binocular camera in virtual reality is solved, the perception of the external environment is realized, and the user experience and safety are improved.
Patent Information
- Application Number
- CN202210582321.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-05-26
AI Technical Summary
In virtual reality technology, the binocular See Through function has a gray area in the middle of the binocular camera due to the limitation of the camera's field of view. Users cannot perceive the existence of fingers or objects, which affects safety and external perception, and reduces user experience.
By obtaining the relationship between the P-Sensor value and the image, selecting feature points, fitting the curve, and enlarging the image at equal proportions, the image in the middle area of the binocular camera is simulated, allowing the user to perceive the external environment.
It solves the problem of being unable to understand the external environment through VR equipment due to Camera FOV, optimizes the perspective effect of VR equipment, and improves users' sense of security and experience.
Smart Images

Figure CN115049805B
Abstract
Description
Technical Field
[0001] The present application relates to the field of virtual reality technology, and in particular to a method, device, VR device and medium for perspective viewing of a VR device. Background Art
[0002] Virtual Reality (VR) provides users with an interactive virtual three-dimensional space, which simulates vision, hearing, touch and other senses through the perception unit, allowing people to enter a fully immersive virtual world. Therefore, VR requires users to use a specific head display to form a completely enclosed virtual space. See Through breaks this limitation and allows users to walk out of the VR world. It collects real-time views of the surrounding environment through the camera and displays them on the screen, giving people a feeling that the human eye can directly see the real world around through the head display, so it is also called the perspective function. In VR, the original purpose of the See Through function was to solve safety problems. When the user approaches the boundary of the virtual space, the See Through function will automatically start to display real-time images collected from the camera to increase the user's perception of the surrounding environment. When wearing a VR all-in-one head display, use the device's front camera to view the external environment of the head display.
[0003] When using the binocular See Through function, due to the camera field of view (Camera FOV), there will be a gray area in the middle of the binocular camera that neither camera can capture, that is, a place that neither camera can reach, just like the bridge of the nose between the two eyes. When a finger or object is in this position, the finger or object cannot be sensed. The impact of these gray areas, to a certain extent, affects safety and people's perception of the outside world, especially in closed equipment, losing control of external objects, amplifying people's tension, and reducing the user's experience of wearing VR equipment.
[0004] It can be seen that how to solve the problem of being unable to understand the external environment through VR devices due to Camera FOV is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0005] The purpose of this application is to provide a VR device perspective method, apparatus, VR device and medium, which are used to solve the problem that the external environment cannot be understood through the VR device due to the Camera FOV.
[0006] In order to solve the above technical problems, the present application provides a VR device perspective method, comprising:
[0007] Get the value of P-Sensor when the object to be collected is at the current position;
[0008] Determine the image corresponding to the value of the P-Sensor when the object to be captured is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image;
[0009] Wherein, obtaining the pre-established relationship between the value of the P-Sensor and the corresponding image includes:
[0010] Acquire the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected captured by the binocular camera;
[0011] Selecting feature points in each of the images that belong to the same point on the object to be collected;
[0012] A relationship between the value of the P-Sensor and the corresponding image is established according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point.
[0013] Preferably, establishing a relationship between the value of the P-Sensor and the corresponding image according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point includes:
[0014] Obtaining a first distance value between the center point of each of the images and the feature point;
[0015] Fitting a curve according to the first distance value between the center point of each image and the feature point; the curve is used to represent the relationship between the value of the P-Sensor and the corresponding image;
[0016] Correspondingly, determining the image corresponding to the value of the P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image includes:
[0017] Acquire, according to the curve, a second distance value between the feature point and the center point in the image corresponding to the value of the P-Sensor when the object to be collected is at the current position;
[0018] enlarging the image corresponding to the first distance in proportion to the relationship between the second distance value and the first distance value;
[0019] The enlarged image is used as the image corresponding to the value of the P-Sensor when the object to be collected is at the current position.
[0020] Preferably, the step of obtaining the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected by the binocular camera comprises:
[0021] Obtaining the number N of the preset positions where the objects to be collected are located;
[0022] Moving the object to be collected and obtaining the current position of the object to be collected;
[0023] Determine whether the current position is the position of the head display of the VR device;
[0024] If not, determine whether the current position is the i-th preset position; where i starts from 1 and i is less than or equal to N;
[0025] In the case where the current position is not the i-th preset position, returning to the step of moving the object to be collected and obtaining the current position of the object to be collected;
[0026] When the current position is the i-th preset position, obtain the value of the P-Sensor, and use the binocular camera to capture an image of the object to be captured; let i+1, determine whether i+1 is less than N, if so, return to the step of moving the object to be captured and obtaining the current position of the object to be captured; if not, end;
[0027] If yes, then end.
[0028] Preferably, the selecting of feature points belonging to the same point on the object to be collected in each of the images comprises:
[0029] Performing grid processing on each of the images;
[0030] Feature points belonging to the same points on the object to be collected are selected on the edges of each of the images.
[0031] Preferably, when the value of the P-Sensor is greater than a first threshold value, after proportionally amplifying the image corresponding to the first distance according to the relationship between the second distance value and the first distance value, the method further includes:
[0032] The image is marked on the screen.
[0033] Preferably, each of the preset positions is a position selected according to the sensing capability of the P-Sensor.
[0034] Preferably, after obtaining the value of P-Sensor when the object to be collected is at each preset position, the method further includes:
[0035] When the value of the P-Sensor is greater than the first threshold value, reporting that the object to be collected is close to the head display of the VR device;
[0036] When the value of the P-Sensor is less than a second threshold value, it is reported that the object to be collected is away from the head display of the VR device; wherein the first threshold value is greater than the second threshold value.
[0037] In order to solve the above technical problems, the present application also provides a VR device perspective device, including:
[0038] The acquisition module is used to obtain the value of the P-Sensor when the object to be collected is at the current position;
[0039] A determination module, configured to determine the image corresponding to the value of the P-Sensor when the object to be captured is at the current position according to a pre-established relationship between the value of the P-Sensor and the corresponding image;
[0040] The pre-established relationship between the value of the P-Sensor and the corresponding image includes:
[0041] Acquire the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected captured by the binocular camera;
[0042] Selecting feature points in each of the images that belong to the same point on the object to be collected;
[0043] A relationship between the value of the P-Sensor and the corresponding image is established according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point.
[0044] In order to solve the above technical problems, the present application also provides a VR device, including:
[0045] Memory for storing computer programs;
[0046] A processor is used to implement the steps of the above-mentioned VR device perspective method when executing the computer program.
[0047] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned VR device perspective method are implemented.
[0048] The VR device perspective method provided in the present application includes: obtaining the value of P-Sensor when the object to be collected is at the current position; determining the image corresponding to the value of P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of P-Sensor and the corresponding image. It can be seen that in this method, the image corresponding to the value of P-Sensor when the object to be collected is at the current position is obtained according to the pre-established relationship between the value of P-Sensor and the corresponding image, so that even if the object is located in the gray area in the middle of the binocular camera, the image can be simulated, which solves the problem that the external environment cannot be understood through the VR device due to the Camera FOV, and achieves the purpose of optimizing the perspective of the VR device.
[0049] In addition, the present application also provides a VR device perspective device, a VR device, and a computer-readable storage medium, which have the same or corresponding technical features as the above-mentioned VR device perspective method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 A flowchart of a VR device perspective method provided in this application;
[0052] Figure 2 A schematic diagram of feature point fitting provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of establishing a relationship between a P-Sensor value and a corresponding image provided in an embodiment of the present application;
[0054] Figure 4 A flowchart of a method for obtaining a value of a P-Sensor when an object to be collected is at each preset position and an image captured by a binocular camera of the object to be collected provided in an embodiment of the present application;
[0055] Figure 5 A structural diagram of a VR device perspective device provided in one embodiment of the present application;
[0056] Figure 6 A structural diagram of a VR device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] For ease of understanding, the hardware structure used in the technical solution of the present application is introduced below. The hardware architecture of the present application is a VR all-in-one head display, which includes two cameras, a left eye and a right eye, on the head display. The left eye camera and the right eye camera are used to collect images of the object to be collected. Generally, the object to be collected refers to the fingers of the person wearing the head display, that is, the binocular camera collects the image of the person's fingers. In implementation, other parts of the user can also be selected as the object to be collected. A P-Sensor is set in the middle position of the binocular camera. The P-Sensor is a sensor used to sense the distance and proximity of an object. When the object is at different positions from the P-Sensor, the perception ability of the P-Sensor, that is, the value of the P-Sensor, is different. Due to the camera FOV, there is a gray area in the middle of the binocular camera that neither camera can capture, that is, a place that neither camera can involve. When the finger or object is in this position, the existence of the finger or object cannot be sensed. Therefore, the method provided by the present application solves the problem that the external environment cannot be understood through the VR device due to the Camera FOV.
[0059] The core of this application is to provide a VR device perspective method, apparatus, VR device and medium, which are used to solve the problem that the external environment cannot be understood through the VR device due to the Camera FOV.
[0060] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a VR device perspective method provided in this application, such as Figure 1 As shown, the method includes:
[0061] S10: Obtain the value of the P-Sensor when the object to be collected is at the current position.
[0062] There is no limitation on the object to be collected. In this embodiment, the object to be collected is a human finger. When the object to be collected is at the current position, the P-Sensor senses the position of the object to be collected and obtains the sensing capability of the object to be collected at the current position, that is, the value of the P-Sensor.
[0063] S11: Determine the image corresponding to the value of the P-Sensor when the object to be captured is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image.
[0064] In order to solve the problem that the external environment cannot be understood through the VR device due to the Camera FOV, the relationship between the P-Sensor value and the corresponding image is pre-established in this embodiment. For the P-Sensor value when the object to be collected is at the current position obtained in the above step S10, the image corresponding to the P-Sensor value when the object to be collected is at the current position can be obtained based on the established relationship.
[0065] Obtaining the relationship between the pre-established P-Sensor value and the corresponding image includes:
[0066] Obtain the value of P-Sensor when the object to be collected is at each preset position and the image captured by the binocular camera of the object to be collected;
[0067] Select the feature points in each image that belong to the same point on the object to be collected;
[0068] The relationship between the value of the P-Sensor and the corresponding image is established according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point.
[0069] The relationship between the value of the P-Sensor and the corresponding image can be established based on the relationship between the value of the P-Sensor and the corresponding image when the object to be collected is at each position. However, in order to quickly establish the relationship between the value of the P-Sensor and the corresponding image, in implementation, the value of the P-Sensor at the preset position and the corresponding image are obtained. There is no limitation on the preset position, and it can be determined based on the perception capability of the P-Sensor, so that the value of the P-Sensor at the selected preset position can cover all levels of the P-Sensor perception capability as much as possible. Assume that the perception capability of the P-Sensor is 4096 levels. The values of P-Sensor and the images captured by the binocular camera for the captured objects can be obtained respectively in the following cases: there is no obstruction in front of the P-sensor, ensuring that the P-sensor data is always 0; the Camera image when the P-sensor value is 10, and the picture taken by the Camera is named P10; the Camera image when the P-sensor value is 1000, and the picture taken by the Camera is named P1000; the Camera image when the P-sensor value is 2000, and the picture taken by the Camera is named P2000; the Camera image when the P-sensor value is 3000, and the picture taken by the Camera is named P3000; the value of the P-sensor when the P-sensor is directly touched, and the P-sensor data is recorded as Dtouch.
[0070] After obtaining the value of P-sensor and the corresponding image, select the feature points of the same point on the object to be collected in each image, that is, select the points existing in each image as feature points. When determining the feature points of the same point on the object to be collected in each image, a special mark can be made on the object to be collected. When the mark exists on each image, it means that the feature point exists on each image. For example, when the object to be collected is a finger, a point can be marked on the finger with a marker. When the point exists on each image, the point is selected as a feature point. It should be noted that the number of the same feature points selected on each image is not limited. In order to be able to more accurately establish the relationship between the value of P-sensor and the corresponding image, it is preferred that the number of the same feature points selected on each image is multiple. The relationship between the value of P-Sensor and the corresponding image is established according to the value of P-Sensor and the corresponding feature points when the object to be collected is at each preset position.
[0071] The VR device perspective method provided in this embodiment includes: obtaining the value of P-Sensor when the object to be collected is at the current position; determining the image corresponding to the value of P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of P-Sensor and the corresponding image. It can be seen that in this method, the image corresponding to the value of P-Sensor when the object to be collected is at the current position is obtained according to the pre-established relationship between the value of P-Sensor and the corresponding image, so that even if the object is located in the gray area in the middle of the binocular camera, the image can be simulated, which solves the problem that the external environment cannot be understood through the VR device due to the Camera FOV, and achieves the purpose of optimizing the perspective of the VR device.
[0072] In implementation, in order to obtain the image corresponding to the value of P-Sensor, the preferred implementation method is to establish the relationship between the value of P-Sensor and the corresponding image according to the value of P-Sensor and the feature points when the object to be collected is at each preset position, including:
[0073] Obtaining a first distance value between the center point and the feature point of each image;
[0074] A curve is fitted according to the first distance value between the center point and the feature point of each image; the curve is used to represent the relationship between the value of the P-Sensor and the corresponding image;
[0075] Correspondingly, the image corresponding to the value of the P-Sensor when the object to be collected is at the current position is determined according to the pre-established relationship between the value of the P-Sensor and the corresponding image, including:
[0076] According to the curve, a second distance value between a feature point and a center point in the image corresponding to the value of the P-Sensor when the object to be collected is at the current position is obtained;
[0077] Enlarging the image corresponding to the first distance in proportion to the relationship between the second distance value and the first distance value;
[0078] The enlarged image is used as the image corresponding to the value of P-Sensor when the object to be collected is at the current position.
[0079] Figure 2 A schematic diagram of a feature point fitting provided in an embodiment of the present application. Figure 2As shown, the feature points belonging to the same points on the object to be collected in each image are selected as feature points existing on the edge of each image. The value of P-Sensor at each preset position of the object to be collected is 10, 1000, 2000, and 3000, and the same feature points are found on the edges of P-Sensor10 picture, P-Sensor1000 picture, P-Sensor2000 picture, and P-Sensor3000 picture collected by the camera respectively. A ray is extended outward from the center of the P-sensor, and the edge feature points of the image when the P-sensor corresponding values are 10, 1000, 2000, and 3000 on the ray are fitted to obtain an approximate right-angled trapezoid. The ray extending outward from the center of the P-sensor passes through the center point of each image, and the distance between the center point of each image and the feature point is the first distance value. The hypotenuse of the trapezoid in the figure is the fitted curve, through which the image corresponding to any P-Sensor value can be found. Figure 3 A flowchart of establishing a relationship between a P-Sensor value and a corresponding image provided in an embodiment of the present application. Figure 3 As shown, the process includes:
[0080] S12: gridding the saved Camera image;
[0081] S13: extracting feature points;
[0082] S14: Confirm whether the feature points exist on other images; if yes, proceed to step S15; if no, return to step S13;
[0083] S15: Determine whether the extraction of feature point S is completed; if so, proceed to step S16, if not, return to step S13;
[0084] Wherein, S=1, 2...M, M is the total number of feature points to be used;
[0085] S16: Obtain the distance value from the center point of the image to the feature point;
[0086] S17: fitting distance values for the same feature points of different images;
[0087] S18: Save the fitted curve.
[0088] Specifically, if the image corresponding to P10 is gridded, 10 corresponding edge position feature points are selected and marked as L1_P10 to L10_P10. The distance value from the center point of the image to the corresponding feature point is measured. Among them, L1 is the first feature point selected, and the suffix _P10 indicates that P10 is the original image of the data. L10_P10 represents the 10th feature point of the P10 image. When selecting feature points, all images need to be gridded first. Points that exist in each image are selected as feature points, otherwise they are reselected. Because the objects to be collected, such as fingers or objects, do not move forward in a fixed posture and may rotate, feature points are selected for the following images P1000, P2000, and P3000 to obtain the distance between the feature points and the origin. According to the distances of the corresponding feature points of P10, P1000, P2000, and P3000, a smooth curve is fitted. At this time, the distance value between the feature point and the center point corresponding to different P-sensor values can be obtained according to this curve. After obtaining the second distance value between the feature point and the center point in the image corresponding to the value of P-Sensor when the object to be collected is at the current position according to the curve, the image corresponding to the first distance is proportionally enlarged according to the relationship between the second distance value and the first distance value; the enlarged image is used as the image corresponding to the value of P-Sensor when the object to be collected is at the current position.
[0089] The method provided in this embodiment for determining the image corresponding to the value of the P-Sensor when the object to be captured is at the current position based on the pre-established relationship between the value of the P-Sensor and the corresponding image can more accurately obtain the image corresponding to the value of the P-Sensor.
[0090] In implementation, Figure 4 A flowchart of a method for obtaining a value of a P-Sensor when an object to be collected is at each preset position and an image captured by a binocular camera to the object to be collected provided in an embodiment of the present application, such as Figure 4 As shown, the method includes:
[0091] S19: Obtain the number N of preset positions where the objects to be collected are located;
[0092] S20: moving the object to be collected and obtaining the current position of the object to be collected;
[0093] S21: Determine whether the current position is the position of the head display of the VR device; if so, end; if not, proceed to step S22;
[0094] S22: Determine whether the current position is the i-th preset position; if not, return to step S20; if yes, proceed to step S23;
[0095] Where i starts from 1 and i is less than or equal to N;
[0096] S23: Obtain the value of P-Sensor, and use the binocular camera to collect images of the object to be collected;
[0097] S24: Let i+1, determine whether i+1 is less than N, if so, return to step S20; if not, end.
[0098] It should be noted that the steps described in this implementation can be regarded as the process of calibrating the P-sensor. The position of the head display of the VR device can be regarded as the maximum touchable position. After the device is flashed or restored to factory settings, guidance for the P-sensor is added to the user guidance interface to guide the user to select the object to be collected in front of the P-sensor, such as a finger, and move the finger back and forth to calibrate the P-sensor.
[0099] The method provided in this embodiment for obtaining the P-Sensor value when the object to be collected is at each preset position and the image captured by the binocular camera of the object to be collected is obtained by taking pictures with the camera and calibrating the PP-Sensor together to obtain the P-Sensor value of the object to be collected at each preset position and its corresponding image.
[0100] In order to facilitate the simulation of the image corresponding to the P-Sensor value, the preferred implementation method is to select the feature points belonging to the same point on the object to be collected in each image, including:
[0101] Gridding each image;
[0102] Feature points belonging to the same points on the object to be collected are selected on the edges of each image.
[0103] In implementation, feature points belonging to the same point on the object to be collected can be selected at any position of each image. In this embodiment, feature points belonging to the same point on the object to be collected are selected on the edge of each image. On the one hand, since the final simulation is a two-dimensional image of an object, selecting special points on the edge of the object is relatively simple, and it is easier to judge the size of the object and easy to simulate; on the other hand, it is convenient to calculate the distance from the edge of the image to the center point.
[0104] In order to enable the user to intuitively understand the surrounding environment through the VR device, a preferred implementation method is that, when the value of the P-Sensor is greater than the first threshold value, after the image corresponding to the first distance is proportionally enlarged according to the relationship between the second distance value and the first distance value, the method further includes:
[0105] Mark up the image on the screen.
[0106] It should be noted that the first threshold value is the maximum touchable position of the object to be collected. The value of the P-sensor when the P-sensor is directly touched is recorded as Dtouch. When the value of the P-sensor exceeds Dtouch, the image size no longer changes. Assuming that the value of Dtouch is 4023, the image size of 4023-4096 no longer changes. Displaying specified special effects on the screen, such as water ripples, indicates that the device has been touched, prompting the user not to move forward.
[0107] When the P-Sensor value provided in this embodiment is greater than the first threshold value, after the image corresponding to the first distance is proportionally enlarged according to the relationship between the second distance value and the first distance value, the image is marked on the screen, and the user can be prompted not to move forward based on the mark, thereby improving the user's sense of security and enhancing protection for the user.
[0108] In implementation, in order to quickly obtain the relationship between the value of the P-Sensor and the corresponding image and make the obtained relationship more accurate, a preferred implementation method is that each preset position is a position selected according to the perception ability of the P-Sensor.
[0109] As described above, the perception capability of the P-Sensor is 4096 levels. The selected P-Sensor values are 0, 10, 1000, 2000, 3000, and the value of the P-sensor when the P-sensor is directly touched. When the value of the P-Sensor is the above value, the corresponding position of the object to be collected is the preset position selected in this embodiment.
[0110] The preset positions provided in this embodiment are positions selected based on the perception capability of the P-Sensor. Firstly, the number of preset positions will not be too large and will not affect the performance of the system. Secondly, the preset positions selected based on the perception capability enable the value of the P-Sensor at the selected preset positions to cover all levels of the P-Sensor perception capability as much as possible.
[0111] In practice, in order to facilitate the object to be collected to understand the external situation, the preferred implementation method is that after obtaining the value of the P-Sensor when the object to be collected is at each preset position, it also includes:
[0112] When the value of the P-Sensor is greater than the first threshold value, it is reported that the object to be collected is close to the head display of the VR device;
[0113] When the value of P-Sensor is less than the second threshold value, it is reported that the object to be collected is far away from the head display of the VR device; wherein the first threshold value is greater than the second threshold value.
[0114] The first threshold value is the same as the first threshold value in the above embodiment. The first threshold value is the maximum touchable position of the object to be collected, that is, the threshold value close to the head display of the VR device; the second threshold value is the threshold value far away from the head display of the VR device. As the object to be collected moves away from the P-Sensor, the value of the P-Sensor gradually decreases. Therefore, the first threshold value is greater than the second threshold value. There is no limitation on the specific values of the first threshold value and the second threshold value, and appropriate values are selected according to actual conditions.
[0115] This embodiment provides that after obtaining the P-Sensor value when the object to be collected is at each preset position, the approach or distance event is reported according to the relationship between the P-Sensor value and the threshold value, so as to facilitate the user to understand the external situation, improve the user's sense of security, and enhance the protection of the user.
[0116] In the above embodiments, the method for VR device perspective is described in detail, and the present application also provides a VR device perspective device and a corresponding embodiment of the VR device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0117] Figure 5 A structural diagram of a VR device perspective device provided in an embodiment of the present application. This embodiment is based on the perspective of functional modules and includes:
[0118] An acquisition module 10 is used to acquire the value of the P-Sensor when the object to be collected is at the current position;
[0119] A determination module 11 is used to determine the image corresponding to the value of the P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image;
[0120] The relationship between the pre-established P-Sensor value and the corresponding image includes:
[0121] Obtain the value of P-Sensor when the object to be collected is at each preset position and the image captured by the binocular camera of the object to be collected;
[0122] Select the feature points in each image that belong to the same point on the object to be collected;
[0123] The relationship between the value of the P-Sensor and the corresponding image is established according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point.
[0124] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0125] The VR device perspective device provided in this embodiment obtains the value of P-Sensor when the object to be collected is at the current position through the acquisition module; and determines the image corresponding to the value of P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of P-Sensor and the corresponding image through the determination module. It can be seen that the image corresponding to the value of P-Sensor when the object to be collected is at the current position is obtained according to the pre-established relationship between the value of P-Sensor and the corresponding image in the device, so that even if the object is located in the gray area in the middle of the binocular camera, the image can be simulated, which solves the problem that the external environment cannot be understood through the VR device due to the Camera FOV, and achieves the purpose of optimizing the perspective of the VR device.
[0126] Figure 6 This is a structural diagram of a VR device provided in another embodiment of the present application. This embodiment is based on the hardware perspective, such as Figure 6 As shown, VR equipment includes:
[0127] A memory 20, used for storing computer programs;
[0128] The processor 21 is used to implement the steps of the VR device perspective method mentioned in the above embodiment when executing the computer program.
[0129] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0130] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the method of VR device perspective disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include, but is not limited to, the data involved in the method of VR device perspective mentioned above.
[0131] In some embodiments, the VR device may also include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0132] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation of the VR device and may include more or fewer components than shown in the figure.
[0133] The VR device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the VR device perspective method, the effect is the same as above.
[0134] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0135] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0136] The computer-readable storage medium provided in this application includes the above-mentioned VR device perspective method, and the effect is the same as above.
[0137] The above is a detailed introduction to a VR device perspective method, device, VR device and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0138] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A VR device perspective method, characterized in that: include: Get the value of P-Sensor when the object to be collected is at the current position; Determine the image corresponding to the value of the P-Sensor when the object to be captured is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image; Wherein, obtaining the pre-established relationship between the value of the P-Sensor and the corresponding image includes: Acquire the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected captured by the binocular camera; Selecting feature points in each of the images that belong to the same point on the object to be collected; Establishing a relationship between the value of the P-Sensor and the corresponding image according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point; The establishing of the relationship between the value of the P-Sensor and the corresponding image according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point comprises: Obtaining a first distance value between the center point of each of the images and the feature point; Fitting a curve according to the first distance value between the center point of each image and the feature point; the curve is used to represent the relationship between the value of the P-Sensor and the corresponding image; Correspondingly, determining the image corresponding to the value of the P-Sensor when the object to be collected is at the current position according to the pre-established relationship between the value of the P-Sensor and the corresponding image includes: Acquire, according to the curve, a second distance value between the feature point and the center point in the image corresponding to the value of the P-Sensor when the object to be collected is at the current position; enlarging the image corresponding to the first distance in proportion to the relationship between the second distance value and the first distance value; The enlarged image is used as the image corresponding to the value of the P-Sensor when the object to be collected is at the current position.
2. The VR device perspective method according to claim 1, characterized in that: The step of obtaining the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected by the binocular camera comprises: Obtaining the number N of the preset positions where the objects to be collected are located; Moving the object to be collected and obtaining the current position of the object to be collected; Determine whether the current position is the position of the head display of the VR device; If not, determine whether the current position is the i-th preset position; where i starts from 1 and i is less than or equal to N; In the case where the current position is not the i-th preset position, returning to the step of moving the object to be collected and obtaining the current position of the object to be collected; When the current position is the i-th preset position, obtain the value of the P-Sensor, and use the binocular camera to capture an image of the object to be captured; let i+1, determine whether i+1 is less than N, if so, return to the step of moving the object to be captured and obtaining the current position of the object to be captured; if not, end; If yes, then end.
3. The VR device perspective method according to claim 1, characterized in that: The selecting of feature points belonging to the same point on the object to be collected in each of the images comprises: Performing grid processing on each of the images; Feature points belonging to the same points on the object to be collected are selected on the edges of each of the images.
4. The VR device perspective method according to claim 1, characterized in that: In a case where the value of the P-Sensor is greater than a first threshold value, after proportionally enlarging the image corresponding to the first distance according to the relationship between the second distance value and the first distance value, the method further includes: The image is marked on the screen.
5. The VR device perspective method according to claim 2, characterized in that: Each of the preset positions is a position selected according to the sensing capability of the P-Sensor.
6. The VR device perspective method according to claim 1, characterized in that: After obtaining the value of the P-Sensor when the object to be collected is at each preset position, the method further includes: When the value of the P-Sensor is greater than the first threshold value, reporting that the object to be collected is close to the head display of the VR device; When the value of the P-Sensor is less than a second threshold value, it is reported that the object to be collected is away from the head display of the VR device; wherein the first threshold value is greater than the second threshold value.
7. A VR device perspective device, characterized in that: include: The acquisition module is used to obtain the value of the P-Sensor when the object to be collected is at the current position; A determination module, configured to determine the image corresponding to the value of the P-Sensor when the object to be captured is at the current position according to a pre-established relationship between the value of the P-Sensor and the corresponding image; The pre-established relationship between the value of the P-Sensor and the corresponding image includes: Acquire the value of the P-Sensor when the object to be collected is at each preset position and the image of the object to be collected captured by the binocular camera; Selecting feature points in each of the images that belong to the same point on the object to be collected; Establishing a relationship between the value of the P-Sensor and the corresponding image according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point; The establishing of the relationship between the value of the P-Sensor and the corresponding image according to the value of the P-Sensor when the object to be collected is at each preset position and the feature point comprises: Obtaining a first distance value between the center point of each of the images and the feature point; Fitting a curve according to the first distance value between the center point of each image and the feature point; the curve is used to represent the relationship between the value of the P-Sensor and the corresponding image; Correspondingly, the determination module is specifically used for: Acquire, according to the curve, a second distance value between the feature point and the center point in the image corresponding to the value of the P-Sensor when the object to be collected is at the current position; enlarging the image corresponding to the first distance in proportion to the relationship between the second distance value and the first distance value; The enlarged image is used as the image corresponding to the value of the P-Sensor when the object to be collected is at the current position.
8. A VR device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the VR device perspective method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the VR device perspective method according to any one of claims 1 to 6 are implemented.
