Method and device for determining viewpoint width

The method of using dual-camera image capture and coordinate recording in naked-eye 3D systems addresses the challenge of unknown optical parameters, enabling accurate viewpoint width determination and improved 3D display.

JP2025528568AActive Publication Date: 2025-08-28FUTURE TECH XIANG YANG CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2025514479
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-08
Filing Date
2022-09-08
Publication Date
2025-08-28
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

Existing naked-eye 3D systems face challenges in accurately determining viewpoint width due to unknown screen optical parameters, such as glass thickness and assembly slit size, leading to suboptimal 3D image display.

Method used

A method involving a first device displaying a target image in stereoscopic mode and a second device capturing images with two cameras at different positions to calculate pixel average differences, recording position coordinates when preset values are reached, and determining viewpoint width based on these coordinates and stitching angles.

Benefits of technology

Enables quick determination of viewpoint width even when optical parameters are unknown, allowing for adjustment of 3D images or videos to enhance user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025528568000001_ABST
    Figure 2025528568000001_ABST
Patent Text Reader

Abstract

The method for determining a viewpoint width according to the present application includes the steps of: displaying a target image; photographing the target image in real time using a second device to obtain a first image group and a second image group; dividing two images from the first image group and two images from the second image group, respectively, to obtain a first region, a second region, a third region, and a fourth region; calculating a first pixel average difference value between the first region and the second region, and a second pixel average difference value between the third region and the fourth region; recording a first position coordinate when the second device photographed the first image group when the first pixel average difference value reaches a first preset value; recording a second position coordinate when the second device photographed the second image group when the second pixel average difference value reaches a second preset value; and determining a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates to the technical field of naked-eye 3D, and in particular to a method and apparatus for determining viewpoint width. [Background technology]

[0002] Naked-eye 3D is an abbreviation for Autostereoscopy, a general term for technology that achieves a stereoscopic effect without the use of external tools such as polarized glasses.

[0003] In the naked-eye 3D system with eye tracking, the device collects images through a front-mounted camera and tracks the position of the human eye, and calculates the viewpoint corresponding to the current position of the human eye. In the process of collecting images through the arranged front-mounted camera and tracking the position of the human eye, it is necessary to determine the width of each viewpoint in the naked-eye 3D system.

[0004] Currently, the viewpoint width is mainly derived through optical design. However, in actual use, one raster is usually used for multiple third-party devices, so it is not possible to accurately obtain the screen optical parameters of the device, such as the thickness of the glass, the thickness of the optical rubber, and the size of the assembly slit, which ultimately makes it impossible to accurately determine the viewpoint width. Summary of the Invention [Problem to be solved by the invention]

[0005] The objective of the present application is to provide a method and apparatus for determining a viewpoint width, which can quickly determine a viewpoint width corresponding to a device when the screen optical parameters of the device are unknown, and further adjust the 3D image or 3D video displayed by the device according to the viewpoint width, thereby improving the user's viewing experience. [Means for solving the problem]

[0006] A method for determining a viewpoint width according to a first aspect of the present embodiment includes the following steps. a first device displays a target image in a stereoscopic mode, a second device photographs the target image in real time to obtain a first image group and a second image group, divides two images from the first image group and two images from the second image group into a first region, a second region, a third region, and a fourth region, and calculates a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; When the first device receives a first coordinate recording command transmitted from the second device when the first pixel average difference value reaches a first preset value, the first device records first position coordinates when the second device captures the first image group; When the first device receives a second coordinate recording command transmitted from the second device when the second pixel average difference value reaches a second preset value, the first device records second position coordinates when the second device captures the second image group; The first device includes a step of determining a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of rasters corresponding to the first device; The first image group and the second image group are obtained by the second device simultaneously photographing the target image with two cameras installed on the second device at different positions, the two cameras of the second device are on the same horizontal line, the center distance between the two cameras of the second device is a predetermined distance, the first area and the second area correspond to two images in the first image group, and the third area and the fourth area correspond to two images in the second image group.

[0007] A method for determining a viewpoint width according to a second aspect of the present embodiment includes: a step in which the second device captures a target image to be displayed by the first device in a stereoscopic mode in real time to obtain a first image group and a second image group; the second device divides two images from the first image group and two images from the second image group into a first region, a second region, a third region, and a fourth region; the second device calculates a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; When the first pixel average difference value reaches a first preset value, the second device sends a first coordinate recording command to the first device, so that the first device records a first position coordinate; When the second pixel average difference value reaches a second preset value, the second device sends a second coordinate recording command to the first device, so that the first device records a second position coordinate; and determines a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and a stitching angle of a raster corresponding to the first device; the first image group and the second image group are obtained by the second device simultaneously photographing the target image by two cameras installed on the second device at different positions, the two cameras of the second device are on the same horizontal line, and the center distance between the two cameras of the second device is a preset distance; the first region and the second region correspond to two images in the first image group, and the third region and the fourth region correspond to two images in the second image group; The first coordinate position is the coordinate where the second device is located when capturing the first group of images, and the second position coordinate is the coordinate where the second device is located when capturing the second group of images.

[0008] A third aspect of the present embodiment provides an apparatus for determining a viewpoint width, comprising: a first device including a display unit, a recording unit, and a determining unit; the display unit is used to display the target image in a stereoscopic mode, such that the second device photographs a target image in real time to obtain a first image group and a second image group, divides two images of the first image group and two images of the second image group to obtain a first region, a second region, a third region, and a fourth region, respectively, and calculates a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; wherein the first image group and the second image group are obtained by the second device simultaneously photographing the target image by two cameras installed on the second device at different positions, the two cameras of the second device are on the same horizontal line, the center distance between the two cameras of the second device is a preset distance, the first region and the second region correspond to two images in the first image group, and the third region and the fourth region correspond to two images in the second image group; the recording unit, when the first device receives a first coordinate recording command transmitted from the second device when the first pixel average difference value reaches a first preset value, causes the first device to record first position coordinates at which the second device photographs the first group of images; and, when the first device receives a second coordinate recording command transmitted from the second device when the second pixel average difference value reaches a second preset value, causes the first device to record second position coordinates at which the second device photographs the second group of images; The determination unit determines a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of the raster corresponding to the first device. [Effects of the Invention]

[0009] Compared with the prior art, in the embodiment provided by the present application, when determining the viewpoint width of the first device, the second device photographs the first device at different positions to obtain multiple images, divides the multiple images to obtain two image regions, calculates the pixel average difference value of the two image regions, and when the pixel average difference value reaches a preset value, records the position coordinate of the second device when the preset value is reached by the first device. Then, the first device calculates the viewpoint width corresponding to the first device based on the position coordinate of the second device at a different position and the stitching angle between the raster. In this way, when the screen optical parameters of the first device are unknown, the viewpoint width corresponding to the first device can be quickly determined, and the stereoscopic image or video displayed by the first device can be adjusted according to the viewpoint width, thereby improving the user's viewing experience. [Brief explanation of the drawings]

[0010] [Figure 1] FIG. 1 is a block diagram illustrating the principle of the configuration of a position indicator according to a related art technique. [Figure 2] 1 is a configuration block diagram of a position detection system according to the present application. [Figure 3] FIG. 3 is a block diagram illustrating the configuration of a key detection circuit shown in FIG. [Figure 4] FIG. 3 is a configuration block diagram of the pressure detection circuit shown in FIG. 2. [Figure 5] FIG. 1 is a schematic diagram of the transmission standard for data communication of a digital stylus. [Figure 6] FIG. 2 is a schematic diagram showing data communication between a digital stylus and a tablet. [Figure 7] FIG. 10 is a schematic diagram of a virtual structure of a second device. [Figure 8] FIG. 2 is a schematic diagram showing the parts of the terminal device of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0011] The following clearly and completely describes the technical aspects of the embodiments of the present application in conjunction with the drawings of the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all embodiments.

[0012] Please refer to Fig. 1. Fig. 1 is a schematic diagram of an embodiment of a method for determining a viewpoint width provided by an embodiment of the present application, which includes the following steps:

[0013] In step S101, a first device displays a target image in a stereoscopic mode, a second device captures the target image displayed by the first device in the stereoscopic mode in real time to obtain a first image group and a second image group, and two images in the first image group and two images in the second image group are divided into a first region, a second region, a third region, and a fourth region, respectively, and a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region are calculated.

[0014] In this embodiment, the first and second image sets are obtained by the second device simultaneously capturing the target image using two cameras installed on the second device at different positions, the two cameras of the second device are aligned horizontally, the centers of the two cameras of the second device are spaced a predetermined distance apart, the first and second regions correspond to two images in the first image set, and the third and fourth regions correspond to two images in the second image set, the second device is any terminal device having image collection and communication capabilities, the target image is a half-black, half-color image, and the colors in the half-color image refer to visible colors such as white, red, green, and yellow. Furthermore, when the second device captures the target image to obtain the first and second image sets, each image in the first and second image sets may not only contain the target image but may also contain other content. Therefore, what needs to be determined here is not the average pixel difference value of each image, but the average pixel difference value of a screen area. The screen area is the display area of ​​the target image on the screen of the first device. In addition, the first device can display the target image while simultaneously displaying the position coordinates of the second device in real time on a screen corresponding to the first device, or directly display the position coordinates of the camera of the second device.

[0015] In step 102, when the first device receives a first coordinate recording command sent by the second device when the first pixel average difference value reaches a first preset value, the first device records the first position coordinates when the second device captured the first group of images.

[0016] In this embodiment, the second device divides the first image group to obtain the first region and the second region, calculates the first pixel average difference value between the first region and the second region, and then determines whether the first pixel average difference value reaches the first preset value. If the first pixel average difference value reaches the first preset value, the second device transmits the first coordinate recording command, and the first device records the first position coordinates when the second device captured the first image group based on the first coordinate recording command.

[0017] In step 103, when the first device receives a second coordinate recording command sent by the second device when the second pixel average difference value reaches a second preset value, the first device records the second position coordinates when the second device captured the second group of images.

[0018] In this embodiment, the second device divides the second group of images to obtain the third and fourth regions, calculates the second pixel average difference value between the third and fourth regions, and then determines whether the second pixel average difference value reaches the second preset value. If the second pixel average difference value reaches the second preset value, the second device sends a second coordinate recording command. Then, the first device records the second position when the second device captured the second group of images based on the second coordinate recording command.

[0019] In step 104, the first device determines a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device.

[0020] In this embodiment, the first device records the first position coordinates and the second position coordinates, and then acquires the corresponding raster stitching angle (this stitching angle is the raster stitching angle of the 3D film attached to the first device. Note that the method for acquiring the raster stitching angle is not limited here, and it may be input by the user, for example), and can determine the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the stitching angle.

[0021] In one embodiment, the step of determining a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the stitching angle of the raster corresponding to the first device includes: the first device determines a first position, which is a position where the second device is located when the first pixel average difference value of the second device reaches the first preset value, based on the bonding angle and the first position coordinate; The first device determines a second position, which is a position where the second device is located when the second pixel average difference value of the second device reaches the second preset value, based on the bonding angle and the second position coordinates; and The first device determines the viewpoint width based on the first position and the second position.

[0022] In this embodiment, the first device can calculate the first position based on the stitching angle and the first position coordinates using the following formula: The first position is the position at which the second device captures the first image group when the first pixel average difference value reaches the first preset value.

[0023] JPEG2025528568000002.jpg12170 where x0' is the first position, the first position coordinates are (x0, y0), y is a preset constant, and a is the joining angle.

[0024] The first device can calculate the second position based on the stitching angle and the second position coordinates using the following formula: The second position is the position at which the second device captures the second image group when the second pixel average difference value reaches the second preset value.

[0025] JPEG2025528568000003.jpg12170, where X1' is the second position, and the second position coordinates are (x1, y1).

[0026] After the first device calculates the first position and the second position using a formula, it can calculate the viewpoint width corresponding to the first device based on the first position and the second position using the following formula:

[0027] JPEG2025528568000004.jpg12170 where VW is the viewpoint width corresponding to the first device and abs is the absolute value function.

[0028] Next, calculation of the viewpoint width will be described using FIG. 2. FIG. 2 is a diagram illustrating calculation of the viewpoint width according to an embodiment of the present application. Here, 201 is the first position coordinate (x0, y0), 202 is the second position coordinate (x1, y1), and 203 is a coordinate in a coordinate system with a preset constant y. The preset constant y may be set to half the width of the screen area or may be set according to actual conditions, and is not particularly limited. Taking the calculation of the first position X0' as an example, when calculating the first position X0', the raster stitching angle α is known. After obtaining the first position coordinate (x0, y0), the preset constant 203 is converted to the same direction as the Y-axis direction of the first position coordinate. Then, the first position can be calculated using the formula X0' = X0 + (y0 - y) * tan(a). Similarly, the second position can also be calculated. Then, the absolute difference between the first position and the second position, that is, the viewpoint width corresponding to the first device, is calculated using the formula VW=abs(X0'-X1').

[0029] After obtaining the viewpoint width corresponding to the first device, the first device may adjust the 3D image or 3D video displayed when the first device operates in stereoscopic mode based on the viewpoint width. Specifically, the first device may calculate a raster width corresponding to the first device when adjusting the 3D image or 3D video displayed when the first device operates in stereoscopic mode based on the viewpoint width. Then, the first device determines a viewpoint arrangement layout corresponding to the first device based on the raster width and the viewpoint width, and adjusts the stereo image displayed when the first device operates in stereoscopic mode according to the viewpoint arrangement layout and changes in the user's eye position. That is, after the viewpoint width is obtained, the raster width of the first device is known, so the raster arrangement layout of the 3D film attached to the screen of the first device can be estimated. Then, the 3D image or 3D video displayed when the first device operates in stereoscopic mode can be adjusted according to changes in the human eye position, providing the user with a better 3D display experience.

[0030] In the above description, the position of the first device does not change, the second device converts its own position, and the first device tracks the position coordinates of the camera of the second device, and records the position coordinates after the second device converts its position. Of course, other methods are also possible. For example, the position of the second device may not change, and the first device may convert its position and record the position coordinates of the camera of the second device. Specific methods are not limited, and it is sufficient that the second device records the position coordinates when it captures an image of the first device from a different position. In addition, when the position of the detected person does not change, and the target device converts its position to record the eye coordinates of the detected person, a specific execution process is as follows.

[0031] When the first device displays the target image in stereoscopic mode, the second device photographs the first device and displays the position coordinates of the second device on the screen of the first device (obviously, the position coordinates of the camera of the second device may be displayed, and there is no specific limitation). The first device adjusts its position until it receives a coordinate recording command for the second device and records the position coordinates of the second device at its current position. The coordinate recording command is issued when the second device analyzes an image obtained by photographing the first device, obtains a corresponding pixel average difference value, and the pixel average difference value reaches the first preset value or the second preset value. Thereafter, the second device continues to adjust its position until it receives another coordinate recording command sent by the second device and records the position coordinates of the second device at its current position. The coordinate recording command is issued when the second device analyzes an image obtained by photographing the first device, obtains a corresponding pixel average difference value, and the pixel average difference value reaches the first preset value or the second preset value. This allows the position coordinates of two different positions to be obtained. The viewpoint width is calculated based on the position coordinates of the two different positions and the stitching angle.

[0032] As can be seen from the above description, in the embodiment provided herein, when determining the viewpoint width of the first device, the second device may photograph the first device at different positions to obtain multiple images, divide the multiple images to obtain two image regions, calculate average pixel difference values ​​between the two image regions, and, when the average pixel difference values ​​reach a preset value, calculate the position coordinates of the second device at which the first device reached the preset value. The first device then calculates the viewpoint width corresponding to the first device based on the position coordinates of the second device at different positions and the raster stitching angle. This allows the viewpoint width corresponding to the first device to be quickly determined even when the screen optical parameters of the first device are unknown. Furthermore, the stereoscopic image or video displayed by the first device may be adjusted based on the viewpoint width to improve the user's viewing experience.

[0033] Please refer to FIG. 3. FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the present application. As shown in FIG. 3, when the position of the first device remains fixed and the position of the second device changes, the first device records the position coordinates of the second device when the average pixel difference value of the image captured by the second device reaches the preset value. As shown in FIG. 3, when the viewpoint width of the 3D film installed in the first device 301 needs to be determined, the first device 301 displays the target image in stereoscopic mode. The second device uses two cameras installed on itself to capture the target image to be displayed by the first device in stereoscopic mode at different positions to obtain corresponding images, and divides the images to obtain two image regions, and then calculates the average pixel difference values ​​of the two image regions. Then, it determines whether the average pixel difference value reaches the first preset value or the second preset value. If the average pixel difference value reaches the first preset value or the second preset value, it sends the coordinate recording command to the first device 301. After receiving the coordinate recording command, the first device 301 records the coordinates of the position. As shown in FIG. 3 , when the second device is located at position 302, the first pixel average difference value of the image captured by the first device 301 reaches the first preset value. At this time, upon receiving the first coordinate recording command, the first device 301 can record the first position coordinates of the second device at position 302. The second device then converts its position again, re-captures the first device 301 to obtain a corresponding image, divides the image into two image regions, calculates the pixel average difference values ​​of the two image regions, and determines whether the pixel average difference values ​​reach the second preset value. When the second pixel average difference value reaches the second preset value, the second device sends the second coordinate recording command to the first device 301. At this time, the first device 301 records the second position coordinates in accordance with the second coordinate recording command. As shown in FIG. 3 , when the second device is located at position 303, the second pixel average difference value of the image captured by the first device 301 reaches the second preset value.At this time, the second device transmits a coordinate command to record the second position to the first device 301. The first device 301 records the second position coordinate when the second device is at position 303 based on the second coordinate recording command. The first device 301 then calculates a viewpoint width corresponding to the first device 301 based on the first position coordinate when the second device is at position 302, the second position coordinate when the second device is at position 303, and the stitching angle of the raster corresponding to the first device 301, and further adjusts the 3D image or 3D video displayed by the first device 301 in stereoscopic mode based on the viewpoint width. In this way, when the screen optical parameters of the first device are unknown, the viewpoint width corresponding to the first device 301 can be quickly determined and the 3D image or 3D video displayed by the first device 301 can be adjusted according to the viewpoint width, thereby improving the user's viewing experience.

[0034] The second device photographs the first device at a single position using two cameras installed on the second device, obtains a set of images of the first device photographed at that position, directly divides the images to obtain image regions, calculates the pixel average difference values ​​corresponding to the image regions, and determines whether the pixel average difference values ​​reach the first preset value or the second preset value. If neither is met, the second device converts the position of the second device and repeats the above steps until the pixel average difference values ​​of the images of the first device photographed at a certain position reach the first preset value. When the first preset value is reached, the second device sends a coordinate recording command to the first device so that the first device returns the corresponding position coordinates. The second device then continues to adjust the position and repeats the above steps until the pixel average difference values ​​of the images of the first device photographed at a different position reach the second preset value. The second device then obtains the position coordinates of the two positions from the first device and sets them as the first position coordinates and the second position coordinates.

[0035] Above, the method for determining the viewpoint width according to the embodiment of the present application has been described from the angle of the first device with reference to Fig. 1. Below, the method for determining the viewpoint width according to the embodiment of the present application will be described from the angle of the second device with reference to Fig. 4.

[0036] Please also refer to Figure 4. Figure 4 is a schematic diagram of another embodiment of a method for determining a viewpoint width provided by an embodiment of the present application. This method includes the following steps:

[0037] In step 401, the second device captures a target image to be displayed in a stereoscopic mode on the first device in real time to obtain a first image group and a second image group.

[0038] In this embodiment, the first and second image groups are obtained by the second device simultaneously capturing the target image using two cameras mounted on the second device at different positions. The two cameras of the second device are on the same horizontal line. The center distance between the two cameras of the second device is a predetermined distance, for example, 65 mm. The second device is any terminal device with image collection and communication functions. The target image is a half-black, half-color image. The color in half-color refers to visible colors such as white, red, green, and yellow. That is, when it is necessary to determine the viewpoint width corresponding to the first device (i.e., the viewpoint width corresponding to the 3D film coated on the screen of the target device), the first device displays a half-black, half-color image in 3D mode. Then, the second device captures the first device at different positions to obtain the first and second image groups.

[0039] In step S402, the second device divides two images from the first image group and two images from the second image group into a first region, a second region, a third region, and a fourth region.

[0040] In this embodiment, after obtaining the first image group and the second image group, the second device divides two images in the first image group to obtain the first region and the second region, and divides two images in the second image group to obtain the third region and the fourth region. That is, when two cameras provided on the second device capture the target image, an image captured by a single camera contains content other than the target image, so the purpose of dividing here is to ensure that the first region, the second region, the third region, and the fourth region do not contain other content and only contain the target image.

[0041] In step 403, the second device calculates a first pixel average difference value between the first region and the second region, and a second pixel average difference value between the third region and the fourth region.

[0042] In this embodiment, the second device divides the first image group and the second image group to obtain the first region, the second region, the third region, and the fourth region, and then calculates the first pixel average difference value between the first region and the second region, and the second pixel average difference value between the third region and the fourth region. Specifically, the second device can calculate the first pixel average difference value and the second pixel average difference value using the following equations:

[0043] JPEG2025528568000005.jpg19170, where aver_piexl is the first pixel average difference value or the second pixel average difference value, A is the screen area, A1 is the first area or the third area, Ar is the second area or the fourth area, w is the width of the first area or the width of the third area, and h is the height of the second area or the height of the fourth area. The first area and the second area have the same width and height. The third area and the fourth area have the same width and height.

[0044] When the second device captures the target image to obtain the first and second image groups, the first and second image groups may not only contain the target image but may also contain other content. Therefore, what needs to be determined here is not the average pixel difference value of the first image group, but the average pixel difference value of the screen area. The screen area is the display area of ​​the target image on the screen of the first device. Furthermore, the first device can display the position coordinates of the second device in real time on the screen corresponding to the first device, or directly display the position coordinates of the camera of the second device, while displaying the target image.

[0045] In step 404, if the first pixel average difference value reaches a first preset value, the second device sends a first coordinate record command to the first device to cause the first device to record the first position coordinate.

[0046] In this embodiment, the second device analyzes the first image group to obtain the first pixel average difference value, and then determines whether the first pixel average difference value reaches the first preset value. When the first pixel average difference value reaches the first preset value, the second device transmits a first coordinate recording command to the first device, causing the first device to record first position coordinates based on the first coordinate recording command. Here, the first position coordinates are coordinates where the second device was located when capturing the first image group. That is, the first device displays the position coordinates of the second device in real time. When the second device determines that the first pixel average difference value has reached the first preset value, it transmits the first coordinate recording command to the first device. Upon receiving the first coordinate recording command, the first device can record the position coordinates of the second device when capturing the first image group.

[0047] If the first pixel average difference value does not reach the first preset value, the second device converts the position and photographs the first device again, obtains an image photographed after the position conversion, and analyzes the image, and sends the first coordinate recording command to the first device to cause the first device to record the position coordinates of the position until the pixel average difference value of the image photographed after the position conversion reaches the first preset value.

[0048] In step 405, when the second pixel average difference value reaches a second preset value, the second device sends a second coordinate recording command to the first device to cause the first device to record the second position coordinate, and determines a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device.

[0049] In this embodiment, after the second device analyzes the second image group to obtain the second pixel average difference value, it can determine whether the second pixel average difference value reaches the second preset value. When the second pixel average difference value reaches the second preset value, the second device sends the second coordinate recording command to the first device to cause the first device to record the second position coordinate, and determines the viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device. The second position coordinate is the coordinate where the second device is located when capturing the second image group. That is, the first device displays the position coordinate of the second device in real time. When the second device determines that the second pixel average difference value reaches the second preset value, it sends the second coordinate recording command to the first device. After receiving the second coordinate recording command, the first device records the position coordinate of the position and can calculate the viewpoint width based on the two position coordinates and the stitching angle.

[0050] If the second pixel average difference value does not reach the second preset value, the second device changes its position and photographs the first device again to obtain an image photographed after the position change, analyzes the image until the pixel average difference value of the image photographed after the position change reaches the second preset value, and sends the second coordinate recording command to the first device, causing the first device to record the position coordinates of the changed position.

[0051] After the second device photographs the first device at a certain position to obtain an image of the first device, it directly analyzes the image to obtain the corresponding pixel average difference value and determines whether the pixel average difference value reaches the first preset value or the second preset value. If neither is true, it changes the position of the second device and repeats the above steps until the pixel average difference value of the image of the first device photographed at a certain position reaches the first preset value. When the first preset value is reached, it sends the first coordinate recording command to the first device to record the corresponding position coordinates. Then, it continues to adjust the position of the second device and repeat the above steps until the pixel average difference value of the image of the first device photographed at a different position reaches the second preset value. Then, it sends a second coordinate recording command to the first device, so that the first device records the position coordinates. The viewpoint width is calculated based on the coordinates of the two positions and the stitching angle.

[0052] The method for determining the viewpoint width according to the embodiment of the present application has been described above from the angles of the second device and the first device. Next, the method for determining the viewpoint width according to the embodiment of the present application will be described from the angle at which the first device and the second device interact with each other, in conjunction with FIG. 5.

[0053] Please refer to Fig. 5. Fig. 5 is a schematic diagram of another example of a method for determining a viewpoint width according to an embodiment of the present application. The method for determining a viewpoint width includes the following steps:

[0054] In step 501, a first device displays a target image in a stereoscopic mode.

[0055] In step 502, the second device captures the target images in real time to obtain a first set of images and a second set of images.

[0056] In step 503, the second device divides two images from the first set of images and two images from the second set of images into a first region, a second region, a third region, and a fourth region, respectively.

[0057] In step 504, the second device calculates a first pixel average difference value between the first region and the second region, and a second pixel average difference value between the third region and the fourth region, respectively.

[0058] Steps 501 to 504 are similar to steps 401 to 403 in FIG. 4, and have been described in detail in conjunction with FIG. 4 above, so a detailed description thereof will be omitted here.

[0059] In step 505, when the first pixel average difference value reaches a first preset value, the second device sends a first coordinate recording command to the first device.

[0060] In step 506, the first device records the first position coordinate based on the first coordinate record command.

[0061] In step 507, when the second pixel average difference value reaches a second preset value, the second device sends a second coordinate record command to the first device.

[0062] In step 508, the first device records the second position coordinates based on the second coordinate recording command.

[0063] Steps 505 to 508 are the same as the steps for recording position coordinates in FIGS. 1 and 4, and have been described in detail in the above-mentioned FIGS. 1 and 4, so a detailed description thereof will be omitted here.

[0064] In step 509, the first device determines a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device.

[0065] Step 510 is similar to step 104 in FIG. 1, and has been described in detail in FIG. 1 above, so a detailed description will be omitted here.

[0066] In the above embodiments, the first device calculates a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the stitching angle of the rasters. However, after the first device acquires the first position coordinates and the second position coordinates, the first device may transmit the first position coordinates and the second position coordinates to the second device. The second device may then calculate a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the stitching angle of the rasters corresponding to the first device, and then transmit the viewpoint width corresponding to the first device to the first device. Furthermore, analyzing the first image group and the second image group to obtain an average pixel difference value may be performed by the first device; this is not specifically limited.

[0067] Note that the calculation of the pixel average difference value, the calculation of the position, and the calculation of the viewpoint width have been described in detail in the above Figures 1 to 5. The calculation of the pixel average difference value, the calculation of the position, and the calculation of the viewpoint width here are the same as the calculation methods described in the above Figures 1 to 5, and only the execution entity is different, so they will not be described in detail here.

[0068] The above describes an embodiment of the present application from the perspective of a method for determining a viewpoint width. Next, the following describes an embodiment of the present application from the perspective of a device for determining a viewpoint width. The device for determining a viewpoint width includes a first device 600 and a second device 700.

[0069] Please refer to Fig. 6. Fig. 6 is a schematic diagram of a virtual structure of a first device according to an embodiment of the present invention. The first device 600 includes the following modules:

[0070] The display unit 601 is used to display the target images in a stereoscopic mode, such that the second device captures target images in real time to obtain a first image group and a second image group, divides two images in the first image group and two images in the second image group into a first region, a second region, a third region, and a fourth region, respectively, and calculates a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region. The first image group and the second image group are obtained by the second device simultaneously capturing the target images using two cameras installed on the second device at different positions. The two cameras of the second device are located on the same horizontal line, the centers of the two cameras of the second device are spaced a predetermined distance apart, and the first region and the second region correspond to two images in the first image group, and the third region and the fourth region correspond to two images in the second image group.

[0071] The recording unit 602 is used to realize the following functions: when a first device receives a first coordinate recording command transmitted by a second device when a first pixel average difference value reaches a first preset value, the first device records first position coordinates at which the second device captured a first group of images; and when the first device receives a second coordinate recording command transmitted by the second device when the second pixel average difference value reaches a second preset value, the first device records second position coordinates at which the second device captured a second group of images.

[0072] The determining unit 603 determines a viewpoint width corresponding to the first device according to the first position coordinate, the second position coordinate, and the stitching angle of the raster corresponding to the first device.

[0073] Please refer to Fig. 7. Fig. 7 is a schematic diagram of a virtual structure of a second device provided by an embodiment of the present application. The second device 700 includes the following units:

[0074] The photographing unit 701 photographs a target image displayed by the first device in a stereoscopic mode in real time to obtain a first image group and a second image group. The first image group and the second image group are obtained by the second device photographing the target image simultaneously at different positions using two cameras provided on the second device. The two cameras of the second device are on the same horizontal line. The center distance between the two cameras of the second device is a preset distance.

[0075] a dividing unit 702, which divides two images of the first group of images and two images of the second group of images, respectively, to obtain a first region, a second region, a third region, and a fourth region, where the first region and the second region correspond to two images of the first group of images, and the third region and the fourth region correspond to two images of the second group of images;

[0076] A calculation unit 703 calculates a first pixel average difference value between the first region and the second region, and a second pixel average difference value between the third region and the fourth region, respectively.

[0077] The transceiver unit 704 transmits a first coordinate recording command to the first device when the first pixel average difference value reaches a first preset value, causing the first device to record a first coordinate position, and transmits a second coordinate recording command to the first device when the second pixel average difference value reaches a second preset value, causing the first device to record a second position coordinate. The first position coordinate is the coordinate of a position where the second device is located when capturing the first image group. A viewpoint width corresponding to the first device is determined based on the first position coordinate, the second position coordinate, and a stitching angle of the raster corresponding to the first device. The second position coordinate is the coordinate of a position where the second device is located when capturing the second image group.

[0078] Finally, the above-mentioned embodiments are used only to explain the technical proposal of the present application, and are not intended to limit it. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that the technical proposals described in the above-mentioned embodiments can be modified or some or all of the technical features can be replaced with equivalents. These modifications or replacements do not cause the essence of the corresponding technical proposal to deviate from the scope of the technical proposal of each embodiment of the present application.

Claims

1. A method for determining a viewpoint width, comprising: a first device displays a target image in a stereoscopic mode; a second device photographs the target image in real time to obtain a first image group and a second image group; two images of the first image group and two images of the second image group are divided into a first region, a second region, a third region, and a fourth region; and a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; When the first device receives a first coordinate recording command transmitted from the second device when the first pixel average difference value reaches a first preset value, the first device records first position coordinates when the second device captures the first image group; When the first device receives a second coordinate recording command transmitted from the second device when the second pixel average difference value reaches a second preset value, the first device records second position coordinates when the second device captures the second image group; determining, in the first device, a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of rasters corresponding to the first device; A method for determining a viewpoint width, characterized in that the first image group and the second image group are obtained by the second device simultaneously photographing the target image using two cameras installed on the second device at different positions, the two cameras of the second device are on the same horizontal line, the center distance between the two cameras of the second device is a predetermined distance, the first area and the second area correspond to two images in the first image group, and the third area and the fourth area correspond to two images in the second image group.

2. The step of determining a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of the raster corresponding to the first device includes: the first device determines a first position of the second device based on the bonding angle and the first position coordinates; The first device determines a second position of the second device based on the pixel average difference value, the bonding angle, and the second position coordinates; and the first device determines the viewpoint width based on the first position and the second position; the first position is the position of the second device when the first pixel average difference value reaches the first preset value; 2. The method of claim 1, wherein the second position is the position of the second device when the second pixel average difference value reaches the second preset value.

3. The operation of the first device determining a first position of the second device based on the bonding angle and the first position coordinates includes: the first device calculating the first position according to the following formula: x 0 '=x 0 +(y 0 -y)*tan(a) Here, X 0 ' is the first position, and the first position coordinates are (x 0 , y 0 3. The method for determining a viewpoint width according to claim 2, wherein y is a preset constant and a is the joining angle.

4. The operation of the first device determining the second position of the second device based on the bonding angle and the second position coordinates includes: the first device calculating the second position according to the following formula: x 1 '=x 1 +(y 1 -y)*tan(a) Here, X 1 ' is the second position, and the second position coordinates are (x 1 , y 1 4. The method for determining the viewpoint width according to claim 3, wherein the viewpoint width is 1 / 2.

5. The operation of the first device determining the viewpoint width based on the first position and the second position includes: The first device calculates the viewpoint width using the following formula: VW=abs(X 0 ’-X 1 ’) 5. The method of claim 4, wherein VW is the viewpoint width and abs is an absolute value function.

6. The method for determining the viewpoint width further includes: obtaining the width of the raster; determining a layout of viewpoints corresponding to the first device based on the raster width and the viewpoint width; and adjusting the stereoscopic image displayed while the first device is operating in a stereoscopic mode in response to changes in the layout of the viewpoints and the user's eye position.

7. A method for determining a viewpoint width, comprising: a second device capturing in real time a target image to be displayed by the first device in a stereoscopic mode to obtain a first image group and a second image group; the second device divides two images from the first set of images and two images from the second set of images into a first region, a second region, a third region, and a fourth region; the second device calculating a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; When the first pixel average difference value reaches a first preset value, the second device sends a first coordinate record command to the first device to cause the first device to record a first position coordinate; When the second pixel average difference value reaches a second preset value, the second device sends a second coordinate recording command to the first device, so that the first device records a second position coordinate; and determines a viewpoint width corresponding to the first device based on the first position coordinate, the second position coordinate, and a stitching angle of a raster corresponding to the first device; the first image group and the second image group are obtained by capturing the target images simultaneously with two cameras provided on the second device at different positions of the second device, the two cameras of the second device being on the same horizontal line, and a center distance between the two cameras of the second device being a preset distance; the first region and the second region correspond to two images in the first image group, and the third region and the fourth region correspond to two images in the second image group; a first position coordinate that is a coordinate of a position where the second device is located when capturing the first group of images, and a second position coordinate that is a coordinate of a position where the second device is located when capturing the second group of images.

8. The step of calculating a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region by the second device includes: The second device calculates the first pixel average difference value according to the following formula: where aver_piex1 is the first pixel average difference value, w is the width of the first region, h is the height of the first region, A1 is the first region, Ar is the second region, and the first region and the second region have the same width and height, The second device calculates the second pixel average difference value according to the following formula: wherein aver_piex1 is the second pixel average difference value, w is the width of the third region, h is the height of the third region, A1 is the third region, Ar is the fourth region, and the third region and the fourth region have the same width and height.

9. 1. An apparatus for determining a viewpoint width, comprising: a first device; the first device includes a display unit, a recording unit and a determining unit; the display unit is used to display the target image in a stereoscopic mode, such that the second device photographs a target image in real time to obtain a first image group and a second image group, divides two images of the first image group and two images of the second image group to obtain a first region, a second region, a third region, and a fourth region, respectively, and calculates a first pixel average difference value between the first region and the second region and a second pixel average difference value between the third region and the fourth region; wherein the first image group and the second image group are obtained by the second device simultaneously photographing the target image by two cameras installed on the second device at different positions, the two cameras of the second device are on the same horizontal line, a center distance between the two cameras of the second device is a preset distance, the first region and the second region correspond to two images in the first image group, and the third region and the fourth region correspond to two images in the second image group; the recording unit, when the first device receives a first coordinate recording command transmitted from the second device when the first pixel average difference value reaches a first preset value, records, by the first device, first position coordinates at which the second device photographs the first group of images; and, when the first device receives a second coordinate recording command transmitted from the second device when the second pixel average difference value reaches a second preset value, records, by the first device, second position coordinates at which the second device photographs the second group of images; The determination unit determines a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of the raster corresponding to the first device.

10. The apparatus for determining a viewpoint width further includes a second device, an imaging unit for capturing the target image to be displayed by the first device in a stereoscopic mode in real time to obtain the first image group and the second image group; a division unit for dividing two images of the first image group and two images of the second image group into the first region, the second region, the third region, and the fourth region, respectively; a calculation unit for calculating a first pixel average difference value between the first region and the second region, and a second pixel average difference value between the third region and the fourth region, respectively; a transceiver unit for transmitting the first coordinate recording command to the first device so that the first device records a first position coordinate when the first pixel average difference value reaches the first preset value, and transmitting the second coordinate recording command to the first device so that the first device records the second position coordinate when the second pixel average difference value reaches the second preset value; determining a viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and a stitching angle of the raster corresponding to the first device; the first position coordinates are coordinates of a position where the second device is located when capturing the first image group, 10. The apparatus for determining a viewpoint width according to claim 9, wherein the second position coordinates are coordinates of a position where the second device is located when capturing the second group of images.

Citation Information

Patent Citations

  • Test method and system of stereoscopic display effect

    CN108259888A

  • Method, device, equipment for testing naked eye 3D display parameters and medium

    CN108683906A

  • Naked eye 3D display module detection method and system and readable storage medium

    CN110139095A

  • AR model training method and device, electronic device and storage medium

    CN110599602A

  • Target measuring method and device for measuring camera

    CN112731343A