Method and apparatus for determining viewpoint width

The method and apparatus for determining the viewing angle range in naked-eye 3D systems use two cameras to capture and analyze images, allowing for rapid and accurate adjustment of 3D content based on user position, enhancing the viewing experience despite unknown optical parameters.

JP7835955B2Active Publication Date: 2026-03-25FUTURE TECH XIANG YANG CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2026-03-25

AI Technical Summary

Technical Problem

Existing naked-eye 3D systems struggle to accurately determine the viewing angle range due to unknown screen optical parameters, such as glass thickness and assembly slit size, leading to suboptimal user experience.

Method used

A method and apparatus that uses two cameras positioned horizontally to capture images of a 3D device, divide them into regions, calculate pixel differences, and record position coordinates when preset values are reached, allowing for rapid determination of the viewing angle range and adjustment of 3D images or videos based on this range.

Benefits of technology

Enables quick and accurate determination of the viewing angle range, improving the user's 3D viewing experience by adjusting 3D images or videos to match the user's position, even when screen optical parameters are unknown.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007835955000007
    Figure 0007835955000007
  • Figure 0007835955000008
    Figure 0007835955000008
  • Figure 0007835955000009
    Figure 0007835955000009
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] This application belongs to the technical field of naked-eye 3D, and particularly relates to a method and apparatus for determining a viewing angle range.

Background Art

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

[0003] In a naked-eye 3D system with eye tracking, the device collects images via a front camera and tracks the position of the human eye, and calculates the viewing point corresponding to the current position of the human eye. In the process of collecting images and tracking the position of the human eye via the arranged front camera, it is necessary to determine the viewing angle range for each viewing point in the naked-eye 3D system.

[0004] Currently, the viewing angle range is mainly derived through optical design. However, in actual use, usually one raster is used by multiple third-party devices. Therefore, it is impossible 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. As a result, the viewing angle range cannot be accurately determined.

Summary of the Invention

Problems to be Solved by the Invention

[0005] The objective of this application is to provide a method and apparatus for determining a viewing angle range that can quickly determine the viewing angle range 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 viewing angle range, so as to improve the user's viewing experience.

Means for Solving the Problems

[0006] The method for determining a viewing angle range according to the first aspect of the embodiment of this application includes the following steps. The first device displays the target image in stereoscopic mode, the second device captures the target image in real time to acquire 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, acquires a first region, a second region, a third region and a fourth region, and calculates the first average pixel difference value between the first region and the second region and the second average pixel 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 the 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 the second position coordinates when the second device captures the second image group. The first device includes 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, The first and second image groups are obtained by the second device simultaneously capturing 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 distance between the centers of the two cameras of the second device is a preset distance, the first and second regions correspond to the two images in the first image group, and the third and fourth regions correspond to the two images in the second image group.

[0007] The method for determining the viewpoint width in the second aspect of the embodiment of the present application is: The second device takes a step of capturing the target image displayed by the first device in stereoscopic mode in real time and acquiring a first image set and a second image set. The second device performs the steps of 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. The second device performs the steps of calculating the first average pixel difference value between the first region and the second region, and the second average pixel 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 the first position coordinates. 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 the second position coordinates, and determines the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the raster stitching angle corresponding to the first device, The first and second image groups are obtained by the second device simultaneously capturing the target image with two cameras installed on the second device at different positions, wherein the two cameras of the second device are on the same horizontal line, and the distance between the centers of the two cameras of the second device is a predetermined distance. The first and second regions correspond to two images in the first image group, and the third and fourth regions correspond to two images in the second image group. The first coordinate position is the coordinate where the second device is located when the first image group is captured, and the second position coordinate is the coordinate where the second device is located when the second image group is captured.

[0008] A third aspect of the present embodiment provides a viewpoint width determination device. The viewpoint width determination device comprises a first device including a display unit, a recording unit, and a determination unit. The display unit is used to display the target image in stereoscopic mode, such that the second device captures the target image in real time to acquire 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, acquires a first region, a second region, a third region and a fourth region, and 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. Here, the first image group and the second image group are obtained by the second device simultaneously capturing 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 distance between the centers of the two cameras of the second device is a predetermined 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, upon receiving a first coordinate recording command transmitted from the second device when the first pixel average difference value reaches a first preset value, records the first position coordinates when the second device captures the first image group; and upon receiving a second coordinate recording command transmitted from the second device when the second pixel average difference value reaches a second preset value, records the second position coordinates when the second device captures the second image group. The determination unit determines the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the raster stitching angle corresponding to the first device. [Effects of the Invention]

[0009] Compared to the prior art, in the embodiment provided by this application, when determining the viewing width of the first device, the second device takes a picture of the first device at different positions to acquire multiple images, divides the multiple images to acquire 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, the first device records the position coordinates of the second device at the time the preset value was reached. Subsequently, the first device calculates the viewing width corresponding to the first device based on the stitching angle between the position coordinates of the second device at different positions and the raster. This allows for the rapid determination of the viewing width corresponding to the first device when the screen optical parameters of the first device are unknown, and further improves the user's viewing experience by adjusting the stereoscopic image or stereoscopic video displayed by the first device based on the viewing width. [Brief explanation of the drawing]

[0010] [Figure 1] This is a block diagram illustrating the principle of the configuration of a position indicator, a related technology. [Figure 2] This is a block diagram of the configuration of the position detection system according to the present invention. [Figure 3] Figure 2 is a block diagram of the key detection circuit configuration. [Figure 4] Figure 2 is a block diagram of the pressure detection circuit configuration. [Figure 5] This is a schematic diagram of the data transmission standard for digital styluses. [Figure 6] This is a schematic diagram illustrating data communication between a digital stylus and a tablet. [Figure 7] This is a schematic diagram of the virtual structure of the second device. [Figure 8] This is a schematic diagram showing the parts of the terminal device of the present invention. [Modes for carrying out the invention]

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

[0012] Referring to FIG. 1, FIG. 1 is a schematic diagram of an embodiment of a method for determining a viewing angle width provided by an embodiment of the present application. The method includes the following steps.

[0013] In step S101, the first device displays a target image in a stereoscopic mode, and the second device captures in real time the target image displayed by the first device in the stereoscopic mode, to obtain a first image group and a second image group, and divides two images in the first image group and two images in the second image group respectively, to obtain a first region, a second region, a third region and a fourth region. Then, 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 image group and the second image group are obtained by the second device simultaneously capturing 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 distance between the centers of 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, the third region and the fourth region correspond to two images in the second image group, the second device is any terminal device having image acquisition and communication functions, the target image is a semi-black semi-color image, and the colors in the semi-color refer to visible colors such as white, red, green, and yellow. Furthermore, when the second device captures the target image to obtain the first image group and the second image group, each image in the first image group and the second image group may not only contain the target image but also other content, so what needs to be determined here is not the pixel average difference value of each image, but the pixel average 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 target image and, at the same time, display 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 transmitted 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 image group.

[0016] In this embodiment, the second device divides the first image group to obtain the first area and the second area, and calculates the average difference value of the first pixels in the first area and the second area. After that, it determines whether the average difference value of the first pixels reaches the first preset value. When the average difference value of the first pixels reaches the first preset value, the second device sends the first coordinate recording command, and the first device records the first position coordinates when the second device captures the first image group based on the first coordinate recording command.

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

[0018] In this embodiment, the second device divides the second group of images to obtain the third area and the fourth area, and calculates the average difference value of the second pixels in the third area and the fourth area. After that, it determines whether the average difference value of the second pixels reaches the second preset value. When the average difference value of the second pixels reaches the second preset value, the second device sends the second coordinate recording command. Then, the first device records the second position when the second device captures the second group of images based on the second coordinate recording command.

[0019] In step 104, the first device determines the viewing angle width corresponding to the first device based on the first position coordinates, the second position coordinates, and the bonding angle of the raster corresponding to the first device.

[0020] In this embodiment, the first device can record the first position coordinates and the second position coordinates, then obtain the corresponding raster splicing angle (this splicing angle is the splicing angle of the raster of the 3D film attached to the first device; however, the method for obtaining the raster splicing angle is not limited here and may, for example, be input by the user), and determine the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the splicing angle.

[0021] In one embodiment, the first device determines the 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. The first device determines a first position, which is the position where the second device is located when the first average pixel difference value of the second device reaches the first preset value, based on the bonding angle and the first position coordinates. The first device determines a second position, which is the 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 includes determining the viewpoint width based on the first position and the second position.

[0022] In this embodiment, the first device can calculate the aforementioned first position based on the bonding 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 average difference value of the first pixels reaches the first preset value.

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

[0024] The first device can calculate the second position based on the bonding angle and the second position coordinates using the following formula. This 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] JPEG0007835955000002.jpg12170 where X1' is the second position, and the coordinates of the second position are (x1, y1).

[0026] After calculating the first position and the second position of the first device using a formula, the viewpoint width corresponding to the first device can be calculated based on the first position and the second position using the following formula.

[0027] JPEG0007835955000003.jpg12170 However, VW is the viewpoint width corresponding to the first device, and abs is the absolute value function.

[0028] Next, the calculation of the viewpoint width will be explained using Figure 2. Figure 2 is a diagram showing the calculation of the viewpoint width according to an embodiment of the present invention. Here, 201 is the first position coordinate (x0, y0), 202 is the second position coordinate (x1, y1), and 203 is the coordinate in the coordinate system of 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 the actual situation, and is not particularly limited. To explain using the calculation of the first position X0' as an example, when calculating the first position X0', the raster bonding angle α is known, and after obtaining the first position coordinate (x0, y0), the preset constant 203 is converted in 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. Subsequently, the absolute difference between the first position and the second position, i.e., the viewpoint width corresponding to the first device, is calculated using the formula VW=abs(X0'-X1').

[0029] Furthermore, after obtaining a viewpoint width corresponding to the first device, the first device may adjust the 3D image displayed or the 3D video played when the first device is operating in stereoscopic mode, based on the viewpoint width. Specifically, when the first device adjusts the 3D image displayed or the 3D video played when the first device is operating in stereoscopic mode based on the viewpoint width, it can determine the width of the raster corresponding to the first device. Then, based on the width of the raster and the viewpoint width, it determines the array layout of the viewpoint corresponding to the first device, and adjusts the stereo image displayed when the first device is operating in stereoscopic mode according to the array layout of the viewpoint and changes in the position of the user's eyes. That is, since the width of the raster of the first device is known after the viewpoint width is obtained, it is possible to estimate the array layout of the raster of the 3D film attached to the screen of the first device. Subsequently, the 3D image displayed or the 3D video played when the first device is operating in stereoscopic mode can be adjusted according to changes in the position of the human eye to provide the user with a better 3D display effect.

[0030] In the above description, the position of the first device remained unchanged, the second device transformed its own position, and the first device tracked the position coordinates of the second device's camera to record the position coordinates after the second device transformed its position. Of course, other methods are also possible. For example, the position of the second device may remain unchanged, and the first device may transform its position to record the position coordinates of the second device's camera. Specifically, it is not limited to recording the position coordinates when the second device takes an image for the first device at a different position. Furthermore, if the position of the detector remains unchanged, and the target device transforms its position to record the coordinates of the detector's eyes, the 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 (of course, the position coordinates of the camera of the second device may also be displayed, and are not specifically limited). The first device adjusts its position until it receives a coordinate recording command from 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 the image obtained by photographing the first device, obtains the corresponding pixel average difference value, and the pixel average difference value reaches the first or second preset value. Thereafter, the first device continues to adjust its position until it receives another coordinate recording command transmitted 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 the image obtained by photographing the first device, obtains the corresponding pixel average difference value, and the pixel average difference value reaches the first or second preset value. This makes it possible to obtain position coordinates at two different locations. The viewpoint width is calculated based on the position coordinates at the two different locations and the stitching angle.

[0032] As can be seen from the above description, in the embodiment provided by the present application, when determining the viewing width of the first device, the second device can capture multiple images by photographing the first device at different positions, divide the multiple images to obtain two image regions, calculate the pixel average difference value of the two image regions, and further calculate the position coordinates of the second device at the time the preset value was reached by the first device when the pixel average difference value reaches a preset value. Subsequently, the first device calculates the viewing width corresponding to the first device based on the position coordinates of the second device at different positions and the raster stitching angle. This makes it possible to quickly determine the viewing width corresponding to the first device when the screen optical parameters of the first device are unknown. Furthermore, based on the viewing width, the stereoscopic image or stereoscopic video displayed by the first device can be adjusted to improve the user's viewing experience.

[0033] Refer to Figure 3. Figure 3 is a schematic diagram of an application scene according to an embodiment of the present invention. As shown in Figure 3, the position of the first device is fixed and does not change, the position of the second device changes, and the position coordinates of the second device are recorded when the pixel average difference value of the image captured by the second device by the first device reaches the preset value. As shown in Figure 3, when it is necessary to determine the viewing width of the 3D film provided on the first device 301, the first device 301 displays the target image in stereoscopic mode. The second device uses two cameras provided on itself to capture the target image displayed by the first device in stereoscopic mode at different positions, acquires a corresponding image, divides the image to acquire two image regions, and further calculates the pixel average difference value of these two image regions. After that, it is determined whether the pixel average difference value has reached the first preset value or the second preset value. When the pixel average difference value has reached the first preset value or the second preset value, the coordinate recording command is sent to the first device 301. After receiving the coordinate recording command, the first device 301 records the coordinates of the position. As shown in Figure 3, when the second device is at position 302, the first average pixel difference value of the image of the first device 301 that can be captured reaches the aforementioned first preset value. At this time, when the first device 301 receives the aforementioned first coordinate recording command, it can record the aforementioned first position coordinates where the second device is at position 302. Subsequently, the second device changes its position again, re-captures the first device 301 to obtain the corresponding image, divides the image to obtain two image regions, calculates the average pixel difference value of the two image regions, and then determines whether the average pixel difference value has reached the aforementioned second preset value. If the second average pixel difference value has reached the aforementioned 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 aforementioned second position coordinates in accordance with the second coordinate recording command. As shown in Figure 3, when the second device is at position 303, the second average pixel difference value of the image of the first device 301 that can be captured reaches the aforementioned second preset value.At this time, the second device transmits a coordinate command to the first device 301 to record the second position. Based on the second coordinate recording command, the first device 301 records the second position coordinates when the second device is at position 303. Subsequently, the first device 301 calculates the viewpoint width corresponding to the first device 301 based on the first position coordinates when the second device is at position 302, the second position coordinates when the second device is at position 303, and the stitching angle of the raster corresponding to the first device 301. Furthermore, based on this viewpoint width, the first device 301 adjusts the 3D image or 3D video displayed in stereoscopic mode. This makes it possible to quickly determine the viewpoint width corresponding to the first device 301 when the screen optical parameters of the first device are unknown, and further adjust the 3D image or 3D video displayed by the first device 301 based on this viewpoint width, thereby improving the user's viewing experience.

[0034] The second device, using two cameras provided on itself, photographs the first device at one location, obtains a set of images of the first device taken at that location, then directly divides the images to obtain image regions, calculates the pixel average difference value corresponding to the image region, and determines whether the pixel average difference value has reached the first preset value or the second preset value. If neither has been achieved, the second device changes its position and repeats the above step until the pixel average difference value of the image of the first device taken at a certain location reaches the first preset value. When the first preset value is reached, a coordinate recording command is sent to the first device so that the first device returns the corresponding position coordinates. Subsequently, the position is adjusted and the above step is continued until the pixel average difference value of the image of the first device taken at a different location reaches the second preset value. After that, the position coordinates of the two locations mentioned above are obtained from the first device and used as the first position coordinates and the second position coordinates.

[0035] The method for determining the viewpoint width according to the embodiment of the present application has been explained from the angle of the first device, in accordance with Figure 1. The method for determining the viewpoint width according to the embodiment of the present application will now be explained from the angle of the second device, in accordance with Figure 4.

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

[0037] In step 401, the second device captures the target image displayed by the first device in stereoscopic mode in real time, obtaining the first and second image sets.

[0038] In this embodiment, the first and second image groups are obtained by the second device simultaneously capturing the target image with two cameras mounted on it at different positions. The two cameras of the second device are on the same horizontal line. The distance between the centers of the two cameras of the second device is a preset distance, for example, 65 mm. The second device is any terminal device having image acquisition and communication functions. The target image is a semi-black, semi-color image. The colors in semi-color refer 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 covered on the screen of the target device), the first device displays the semi-black, semi-color image in 3D mode. Subsequently, 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, respectively, to obtain the first region, the second region, the third region, and the fourth region.

[0040] In this embodiment, after obtaining the first and second image groups, the second device can divide two images in the first image group to obtain the first and second regions, and divide two images in the second image group to obtain the third and fourth regions. That is, when the two cameras provided in the second device capture the target image, the image captured by a single camera contains content other than the target image. The purpose of this division is to ensure that the first, second, third, and fourth regions contain only the target image and no other content.

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

[0042] In this embodiment, the second device can divide 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 calculate the first average pixel difference value between the first region and the second region, and the second average pixel difference value between the third region and the fourth region. Specifically, the second device can calculate the aforementioned first average pixel difference value and second average pixel difference value using the following formula.

[0043] JPEG0007835955000004.jpg19170 Here, aver_piexl is the average difference value of the first pixel or the average difference value of the second pixel, 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 and obtains the first and second image groups, the first and second image groups may not contain only the target image but also other content. Therefore, what needs to be determined here is not the pixel-average difference value of the first image group, but the pixel-average difference value of the screen area. The aforementioned screen area is the display area of ​​the target image on the screen of the first device. In addition, while displaying the target image, the first device can simultaneously 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.

[0045] In step 404, if the average difference value of the first pixel reaches the first preset value, the second device sends a first coordinate recording command to the first device so that the first device records the first position coordinates.

[0046] In this embodiment, the second device can analyze the first image group to obtain the first average pixel difference value, and then determine whether the first average pixel difference value has reached the first preset value. When the first average pixel difference value reaches the first preset value, the second device sends a first coordinate recording command to the first device, causing the first device to record the first position coordinates based on the first coordinate recording command. Here, the first position coordinates are the coordinates at which the second device is located when it takes the first image group. That is, the first device displays the position coordinates of the second device in real time. The second device sends the first coordinate recording command to the first device when it determines that the first average pixel difference value has reached the first preset value. When the first device receives the first coordinate recording command, it can record the position coordinates at which the second device is located when it takes the first image group.

[0047] If the first average pixel difference value does not reach the first preset value, the second device changes its position and photographs the first device again to acquire an image taken after the position change and analyzes the image. The first coordinate recording command is sent to the first device to cause the first device to record the position coordinates of the position until the average pixel difference value of the image taken after the position change reaches the first preset value.

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

[0049] In this embodiment, after the second device analyzes the second image group and obtains the second pixel average difference value, it can determine whether the second pixel average difference value has reached the second preset value. When the second pixel average difference value reaches the second preset value, the second device sends a second coordinate recording command to the first device so that the first device records the second position coordinates, and determines the 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. The second position coordinates are the coordinates where the second device is located when it captures the second 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 second pixel average difference value has reached 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 can record the position coordinates of that position and 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 acquire an image taken after the position change, analyzes the image until the pixel average difference value of the image taken after the position change reaches the second preset value, and sends the second coordinate recording command to the first device so that the first device records the position coordinates of the changed position.

[0051] The second device then photographs the first device at a certain location to obtain an image of the first device, analyzes the image directly to obtain the corresponding pixel average difference value, and determines whether the pixel average difference value has reached the first preset value or the second preset value. If neither has been achieved, the second device changes its position and repeats the above steps until the pixel average difference value of the image of the first device taken at a certain location reaches the first preset value. When the first preset value is reached, the second device sends the first coordinate recording command to the first device so that the first device records the corresponding position coordinates. Subsequently, the second device continues to adjust its position and perform the above steps until the pixel average difference value of the image of the first device taken at a different location reaches the second preset value. After that, the second coordinate recording command is sent to the first device so that the first device records the coordinates of that location and calculates the aforementioned viewpoint width based on the coordinates of the two locations and the stitching angle.

[0052] The method for determining the viewpoint width according to the embodiment of this application has been described from the angles of the second device and the first device, respectively. Next, the method for determining the viewpoint width according to the embodiment of this application will be described from the angle at which interaction between the first device and the second device takes place, in accordance with Figure 5.

[0053] Refer to Figure 5. Figure 5 is a schematic diagram of another embodiment of the method for determining the viewpoint width according to the present invention. This method for determining the viewpoint width includes the following steps.

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

[0055] In step 502, the second device captures the target image in real time to obtain the first image group and the second image group.

[0056] In step 503, the second device divides 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.

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

[0058] Steps 501 to 504 are similar to steps 401 to 403 in Figure 4, and have been explained in detail in accordance with Figure 4 above, so a detailed explanation will be omitted here.

[0059] In step 505, 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.

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

[0061] In step 507, when the second pixel average difference value reaches the second preset value, the second device transmits a second coordinate recording 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 Figures 1 and 4, and have been explained in detail in Figures 1 and 4 above, so a detailed explanation will be omitted here.

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

[0065] Step 510 is the same as step 104 in Figure 1, and has been explained in detail in Figure 1 above, so a detailed explanation will be omitted here.

[0066] In the above embodiments, the first device was described as calculating the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the stitching angle of the raster. However, the first device may, after acquiring the first and second position coordinates, transmit the first and second position coordinates to the second device, and the second device may calculate the viewpoint width corresponding to the first device based on the first and second position coordinates and the stitching angle of the raster corresponding to the first device, and then transmit the viewpoint width corresponding to the first device to the first device. Furthermore, the analysis of the first and second image groups to obtain the pixel-average difference value may be performed by the first device, and is not specifically limited here.

[0067] Figures 1 to 5 above provide detailed explanations of the calculation of the average pixel difference, position, and viewpoint width. The calculation of the average pixel difference, position, and viewpoint width here is the same as the calculation method described in Figures 1 to 5 above, only the implementing body differs, so it will not be explained in detail here.

[0068] The embodiments of the present invention have been described above from the perspective of the method for determining the viewpoint width. Next, the embodiments of the present invention will be described from the perspective of the viewpoint width determination device. The aforementioned viewpoint width determination device includes a first device 600 and a second device 700.

[0069] Refer to Figure 6. Figure 6 is a schematic diagram of the virtual structure of a first device according to one embodiment of the present invention. The first device 600 includes the following modules.

[0070] The display unit 601 is used to display the target image in stereoscopic mode, such that the second device captures the target image in real time to acquire 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, respectively to acquire a first region, a second region, a third region, and a fourth region, and calculates the first average pixel difference value between the first region and the second region and the second average pixel difference value between the third region and the fourth region. Here, the first image group and the second image group are obtained by the second device simultaneously capturing the target image with two cameras installed on the second device at different positions. Moreover, the two cameras of the second device are on the same horizontal line, the distance between the centers of 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.

[0071] The recording unit 602 is used to implement the following functions. When the first device receives a first coordinate recording command transmitted by the second device when the first pixel average difference value reaches a first preset value, it records the first position coordinates when the second device captures the first image group. On the other hand, 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, it records the second position coordinates when the second device captures the second image group.

[0072] The determination unit 603 determines the viewpoint width corresponding to the first device based on the first position coordinates, the second position coordinates, and the raster stitching angle corresponding to the first device.

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

[0074] The imaging unit 701 captures a target image displayed by the first device in 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 simultaneously capturing the target image with two cameras provided on the second device at different positions. The two cameras of the second device are on the same horizontal line. The distance between the centers of the two cameras of the second device is a preset distance.

[0075] The division unit 702 divides 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. Here, the first region and the second region correspond to two images from the first image group. The third region and the fourth region correspond to two images from the second group of images.

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

[0077] The transmitting / receiving unit 704 transmits a first coordinate recording command to the first device so that the first device records a first coordinate position when the first pixel average difference value reaches a first preset value, and transmits a second coordinate recording command to the first device so that the first device records a second position coordinate when the second pixel average difference value reaches a second preset value. The first position coordinate is the coordinate of the position where the second device is located when it takes the first image group. The viewpoint width corresponding to the first device is determined 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 of the position where the second device is located when it takes the second image group.

[0078] Finally, the embodiments described above are used solely to illustrate 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 embodiments described above, those skilled in the art should understand that the technical proposal described in the embodiments described above can be modified or some or all of its 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 the embodiments of the present application.

Claims

1. A method for determining the viewpoint width, The first device displays the target image in stereoscopic mode, and the second device captures the target image displayed by the first device in stereoscopic mode in real time to acquire a first image group and a second image group, and divides two images included in the first image group and two images included in the second image group to acquire a first region, a second region, a third region and a fourth region, and calculates the first average pixel difference value between the first region and the second region, and the second average pixel difference value between the third region and the fourth region. When the first pixel average difference value reaches a first preset value, and the first device receives a first coordinate recording command transmitted from the second device, the first device records the first position coordinates when the second device captures the first image group. When the second pixel average difference value reaches the second preset value, the first device receives a second coordinate recording command transmitted from the second device, and the first device records the second position coordinates when the second device captures the second image group. The first device includes 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, The first image group and the second image group were obtained by the second device simultaneously capturing the target image with two cameras provided on the second device at different locations. The two cameras of the second device are positioned on the same horizontal line. The distance between the centers of the two cameras of the second device is a predetermined distance. The first and second regions correspond to two images in the first image group, respectively, and the third and fourth regions correspond to two images in the second image group, respectively. The first device determining the first position of the second device based on the bonding angle and the first position coordinates includes the first device calculating the first position using the following formula: x 0 '=x 0 +(y 0 -y)*tan(a) Here, x 0 ' is the first position, and the coordinates of the first position are (x 0 , y 0 ) where y is a preset constant, a is the raster bonding angle, and the raster bonding angle represents the angle between the raster plane of the first device and the light-emitting surface of the display panel of the first device. 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 using the following formula: x 1 '=x 1 +(y 1 -y)*tan(a) Here, x 1 ' is the second position, and the coordinates of the second position are (x 1 , y 1 ) and The first device determining the viewpoint width based on the first position and the second position includes the first device calculating the viewpoint width using the following formula: VW=abs(X 0 ’-X 1 ’) A method for determining the viewpoint width, characterized in that VW is the viewpoint width and abs is an absolute value function.

2. The first device determines the 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, The first device determines the first position of the second device based on the bonding angle and the first position coordinates. The first device determines the second position of the second device based on the bonding angle and the second position coordinates, and The first device includes determining 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. The method for determining the viewpoint width according to claim 1, characterized in that the second position is the position of the second device when the second pixel average difference value reaches the second preset value.

3. The method for determining the viewpoint width further includes, The steps include obtaining the width of the raster, The steps include determining the arrangement layout of the viewpoint corresponding to the first device based on the width of the raster and the viewpoint width, A method for determining the viewpoint width according to claim 1 or 2, comprising the step of adjusting the stereoscopic image displayed while the first device is operating in stereoscopic mode in accordance with the arrangement layout of the viewpoint and the change in the user's eye position.

4. A method for determining the viewpoint width, The second device takes the step of capturing the target image displayed by the first device in stereoscopic mode in real time to obtain a first image set and a second image set. The second device performs the steps of dividing the two images included in the first image group and the two images included in the second image group to obtain a first region, a second region, a third region, and a fourth region, The second device performs the steps of calculating the first average pixel difference value between the first region and the second region, and the second average pixel 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 transmits a first coordinate recording command to the first device, and the first device records the first position coordinates of the second device. When the second pixel average difference value reaches a second preset value, the second device transmits a second coordinate recording command to the first device, the first device records the second position coordinates of the second device and determines the 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, The first and second image groups are obtained by the second device simultaneously capturing the target image with two cameras provided on the second device at different positions, the two cameras of the second device are on the same horizontal line, and the distance between the centers of the two cameras of the second device is a predetermined distance. The first and second regions correspond to two images in the first image group, respectively, and the third and fourth regions correspond to two images in the second image group, The first position coordinates are the coordinates of the position where the second device is located when capturing the first image group, the second position coordinates are the coordinates of the position where the second device is located when capturing the second image group, and the raster stitching angle represents the angle between the raster plane of the first device and the light-emitting surface of the display panel of the first device. The second device calculates the first average pixel difference value between the first region and the second region, and the second average pixel difference value between the third region and the fourth region, respectively, and the second device calculates the first average pixel difference value by the following formula: Here, aver_pixel1 is the average difference value of the first pixel, 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 and second regions have the same width and height. The second device calculates the second pixel average difference value using the following formula: However, aver_pixel1 is the average difference value of the second pixel, 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, the third and fourth regions have the same width and height, i represents the horizontal coordinate (column index) of the image region and its possible values ​​range from 1 to w (where w is the width of the region), j represents the vertical coordinate (row index) of the image region and its possible values ​​range from 1 to h (where h is the height of the region), and abs is the absolute value function. A method for determining the viewpoint width characterized by the following:

5. A device for determining the viewpoint width that employs the method for determining the viewpoint width described in Claim 4, wherein the device for determining the viewpoint width is a first device, The first device includes a display unit, a recording unit, and a determination unit. The display unit displays the target image in stereoscopic mode, and the second device acquires the first image group and the second image group by capturing the target image displayed by the first device in stereoscopic mode in real time, and divides the two images in the first image group and the two images in the second image group, respectively, to acquire the first region, second region, third region and fourth region, and 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. Here, the first image group and the second image group are obtained by the second device simultaneously capturing the target image with two cameras provided on the second device at different positions, the two cameras of the second device are on the same horizontal line, the distance between the centers of the two cameras of the second device is a predetermined distance, the first region and the second region correspond to the two images in the first image group, respectively, and the third region and the fourth region correspond to the two images in the second image group, respectively. The recording unit is configured such that 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 the first position coordinates when the second device captures the first image group, 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, the first device records the second position coordinates when the second device captures the second image group. A device for determining a viewpoint width, characterized in that the determination unit determines the 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.

6. A device for determining the viewpoint width that employs the viewpoint width determination method described in Claim 4, wherein the viewpoint width determination device is a second device, and the second device is An imaging unit for capturing the target image displayed by the first device in stereoscopic mode in real time to obtain the first image group and the second image group, A division unit for dividing two images included in the first image group and two images included in the second image group to obtain a first region, a second region, a third region, and a fourth region, A calculation unit for calculating the first average pixel difference value between the first region and the second region, and the second average pixel difference value between the third region and the fourth region, The system includes a transmitting and receiving unit that, when the first average pixel difference value reaches the first preset value, transmits the first coordinate recording command to the first device to record the first position coordinates at the first device, and when the second average pixel difference value reaches the second preset value, transmits the second coordinate recording command to the first device to record the second position coordinates at the first device, and causes the first device to determine the 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, The first position coordinates are the coordinates of the position where the second device is located when it captures the first image group. A device for determining the viewpoint width, characterized in that the second position coordinates are the coordinates of the position where the second device is located when it captures 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