Naked eye 3D parameter calibration method, device, electronic equipment and storage medium

通过建立坐标系和计算裸眼3D系统的实际栅距和光栅放置高度,解决了裸眼3D系统参数不准确的问题,确保了系统的稳定性和精确性。

CN115988192BActive Publication Date: 2025-04-25BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211651018.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-04-25
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

Due to errors such as grating production process and film pasting process, the gate pitch and grating placement height of the naked-eye 3D system deviate from the preset value, resulting in inaccurate parameters.

Method used

By establishing a coordinate system, obtain the coordinate expectation value of the specified observation point and the theoretical grating parameters, determine the pixel arrangement period and the coordinates of the optimal observation point, calculate the actual grid spacing and grating placement height, and use the optimal observation point for calibration.

Benefits of technology

Accurately calculate the actual grid pitch and grating placement height of the naked-eye 3D system to ensure the accuracy of parameter calibration and improve the stability and accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115988192B_ABST
    Figure CN115988192B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a parameter calibration method, device, electronic device and storage medium for naked eye 3D. The parameter calibration method for naked eye 3D establishes a coordinate system, adjusts and determines the expected value of the first coordinate in the naked eye 3D system, calculates the pixel arrangement period and the first coordinate of the central optimal observation point according to the expected value of the first coordinate, the specified grating pitch and the specified grating height, determines the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, and then determines the actual grating pitch according to the coordinate values ​​of each second coordinate on the second coordinate axis and the pixel arrangement period, thereby solving the problem of inaccurate parameter measurement of the naked eye 3D system. At the same time, through the method of this embodiment, the actual grating pitch in the naked eye 3D system can be accurately calculated using the optimal observation point.
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 naked-eye 3D parameter calibration method, device, electronic device and storage medium. Background Art

[0002] Naked-eye 3D is a general term for technologies that achieve stereoscopic visual effects without the help of external tools such as polarized glasses. In related technologies, the position of the display screen is moved to adapt to the viewer's angle, thereby achieving a better naked-eye 3D display effect. During the factory processing of the naked-eye 3D system, due to errors in the grating production process and the film-sticking process, the grating pitch inevitably deviates from the preset value, resulting in inaccurate naked-eye 3D parameters. Summary of the invention

[0003] The embodiments of the present application provide a naked-eye 3D parameter calibration method, device, electronic device and storage medium to solve or alleviate one or more technical problems in the prior art.

[0004] As one aspect of an embodiment of the present application, an embodiment of the present application provides a naked eye 3D parameter calibration method, the method comprising:

[0005] According to the parameters of the naked-eye 3D system, a coordinate system is established, wherein the direction of a first coordinate axis of the coordinate system is perpendicular to the screen surface of the naked-eye 3D system, and the direction of a second coordinate axis of the coordinate system is parallel to the width direction of the screen of the naked-eye 3D system;

[0006] Obtain the expected value of the first coordinate of the specified observation point on the first coordinate axis, the specified grating pitch and the theoretical grating placement height;

[0007] Determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height;

[0008] Determine the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal;

[0009] The actual grid pitch is determined according to the coordinate value of each second coordinate on the second coordinate axis, the first coordinate and the pixel arrangement period.

[0010] In one embodiment, determining the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height includes:

[0011] According to the pixel arrangement period, the expected value of the first coordinate and the theoretical grating placement height, the designated spacing between adjacent optimal observation points is determined, and the optimal observation points include a central optimal observation point and a local optimal observation point;

[0012] According to the first coordinates and the specified interval, coordinate values ​​of second coordinates of at least two local optimal observation points on the second coordinate axis are determined.

[0013] In one embodiment, when multiple observation points are specified, the method further includes:

[0014] Determine, according to the expected value of the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0015] The actual grid pitch is determined according to the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0016] In one embodiment, determining the actual grid pitch according to the first coordinates corresponding to each designated observation point, the coordinate values ​​of the second coordinates corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point includes:

[0017] Determine a first grid pitch corresponding to each designated observation point according to the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0018] The actual grid spacing is determined based on the first grid spacing corresponding to each specified observation point.

[0019] In one embodiment, the method further comprises:

[0020] The actual grating placement height is determined according to the coordinate value of the first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate on the second coordinate axis, and the pixel arrangement period.

[0021] In one embodiment, when multiple observation points are specified, the method further includes:

[0022] Determine the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0023] The actual grating placement height is determined according to the coordinate values ​​of each first coordinate on the first coordinate axis, the coordinate values ​​of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0024] In one embodiment, determining the actual grating placement height according to the coordinate values ​​of each first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point includes:

[0025] Determine the first grating placement height corresponding to each designated observation point according to the coordinate value of each first coordinate on the first coordinate axis, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0026] The actual grating placement height is determined according to the first grating placement height corresponding to each designated observation point.

[0027] In one embodiment, determining the actual grid pitch according to the coordinate value of the second coordinate on the second coordinate axis and the pixel arrangement period includes:

[0028] Determine the actual spacing between adjacent optimal observation points according to the coordinate values ​​of each second coordinate on the second coordinate axis;

[0029] The actual grid pitch is determined based on the actual spacing and pixel arrangement period.

[0030] In one embodiment, determining the first coordinate of the central optimal observation point according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height includes:

[0031] Obtain a left-eye view of the observation point to be measured and a right-eye view of the observation point to be measured;

[0032] Performing a linear transformation on the left-eye view and the right-eye view to determine a first feature mean of the left-eye single-channel image and a second feature mean of the right-eye single-channel image;

[0033] Obtaining a first theoretical feature mean value of a left-eye view and a second theoretical feature mean value of a right-eye view;

[0034] Determining an image error according to the first theoretical feature mean, the second theoretical feature mean, the first feature mean, and the second feature mean;

[0035] Traversing multiple observation points to be measured, and generating image errors of each observation point to be measured;

[0036] According to the image errors of each observation point to be measured, the observation point to be measured with the smallest image error is determined as the central optimal observation point.

[0037] In one implementation, obtaining a left-eye view of the observation point to be measured and a right-eye view of the observation point to be measured includes:

[0038] Acquiring a first image and a second image at an observation point to be measured;

[0039] Recognize the first image and determine that the left-eye image displayed on the screen is a left-eye view;

[0040] The second image is identified to determine that the right eye image displayed on the screen is a right eye view.

[0041] As another aspect of the embodiment of the present application, the device includes:

[0042] An establishing module is used to establish a coordinate system according to the parameters of the naked-eye 3D system, wherein the direction of a first coordinate axis of the coordinate system is perpendicular to the screen surface of the naked-eye 3D system, and the direction of a second coordinate axis of the coordinate system is parallel to the width direction of the screen of the naked-eye 3D system;

[0043] An acquisition module is used to acquire the expected value of the first coordinate of the specified observation point on the first coordinate axis, the specified grating pitch and the theoretical grating placement height;

[0044] A first determination module is used to determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height;

[0045] A second determination module is used to determine the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal;

[0046] The third determination module is used to determine the actual grid pitch according to the coordinate value of each second coordinate on the second coordinate axis, the first coordinate and the pixel arrangement period.

[0047] As another aspect of the embodiment of the present application, the electronic device includes: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.

[0048] As another aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.

[0049] The embodiment of the present application adopts the above technical solution to obtain the following beneficial effects:

[0050] In this embodiment, by establishing a coordinate system, adjusting and determining the expected value of the first coordinate in the naked eye 3D system, according to the expected value of the first coordinate, the specified grid pitch and the specified grating height, the pixel arrangement period and the first coordinate of the central optimal observation point are calculated, according to the pixel arrangement period, the expected value of the first coordinate, according to the first coordinate and the theoretical grating placement height, the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis are determined, and then according to the coordinate values ​​of each second coordinate on the second coordinate axis and the pixel arrangement period, the actual grid pitch is determined, thereby solving the problem of inaccurate parameter measurement of the naked eye 3D system. At the same time, through the method of this embodiment, the actual grid pitch in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is used in the future, it is calibrated by the actual grid pitch to ensure the accuracy of the calibration of the parameters of the naked eye 3D system, and ensure the stability and accuracy of the naked eye 3D system during use.

[0051] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0053] Figure 1 A flow chart of a naked-eye 3D parameter calibration method according to an embodiment of the present application is shown.

[0054] Figure 2 A structural schematic diagram of a naked-eye 3D parameter calibration method according to an embodiment of the present application is shown.

[0055] Figure 3 A flow chart of a naked-eye 3D parameter calibration method according to another embodiment of the present application is shown.

[0056] Figure 4 A flow chart of a naked-eye 3D parameter calibration method according to another embodiment of the present application is shown.

[0057] Figure 5 A flow chart of a naked-eye 3D parameter calibration method according to another embodiment of the present application is shown.

[0058] Figure 6 for Figure 5A structural schematic diagram of the naked-eye 3D parameter calibration method in the embodiment.

[0059] Figure 7 A schematic structural diagram of a naked-eye 3D parameter calibration device according to another embodiment of the present application is shown.

[0060] Figure 8 A schematic structural diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0061] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0062] Figure 1 A flow chart of a method for calibrating parameters of naked eye 3D according to an embodiment of the present application is shown as follows: Figure 1 and Figure 2 As shown, the naked eye 3D parameter calibration method includes:

[0063] S110: establishing a coordinate system according to parameters of the naked-eye 3D system, wherein a first coordinate axis of the coordinate system is perpendicular to a screen surface of the naked-eye 3D system, and a second coordinate axis of the coordinate system is parallel to a width direction of the screen of the naked-eye 3D system;

[0064] S120: Obtaining the expected value of the first coordinate of the specified observation point on the first coordinate axis, the specified grating pitch, and the theoretical grating placement height;

[0065] S130: Determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height;

[0066] S140: determining coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate, and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal;

[0067] S150: determining the actual grid pitch according to the coordinate value of each second coordinate on the second coordinate axis, the first coordinate value and the pixel arrangement period.

[0068] The parameter calibration method of naked-eye 3D of this embodiment can be applied to a display system, and specifically can be directly executed on a naked-eye 3D system of naked-eye 3D, for example, the parameter calibration method of naked-eye 3D is executed by a processor, a processing chip, etc. in the naked-eye 3D system, and displayed in the naked-eye 3D system. The parameter calibration method of naked-eye 3D can also be executed on another controller or processor. The naked-eye 3D system can be a display screen, a display, etc., which is a device for naked-eye 3D display. The following embodiments are illustrated by taking the display system as the execution subject.

[0069] In this embodiment, by establishing a coordinate system, adjusting and determining the expected value of the first coordinate in the naked eye 3D system, according to the expected value of the first coordinate, the specified grid pitch and the specified grating height, the pixel arrangement period and the first coordinate of the central optimal observation point are calculated, according to the pixel arrangement period, the expected value of the first coordinate, according to the first coordinate and the theoretical grating placement height, the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis are determined, and then according to the coordinate values ​​of each second coordinate on the second coordinate axis and the pixel arrangement period, the actual grid pitch is determined, thereby solving the problem of inaccurate parameter measurement of the naked eye 3D system. At the same time, through the method of this embodiment, the actual grid pitch in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is used in the future, it is calibrated by the actual grid pitch to ensure the accuracy of the calibration of the parameters of the naked eye 3D system, and ensure the stability and accuracy of the naked eye 3D system during use.

[0070] In step S110, a coordinate system is established according to the parameters of the naked-eye 3D system, wherein the direction of the first coordinate axis of the coordinate system is perpendicular to the screen surface of the naked-eye 3D system, and the direction of the second coordinate axis of the coordinate system is parallel to the width direction of the screen of the naked-eye 3D system.

[0071] According to the parameters of the naked-eye 3D system, as can be known from the above description of the naked-eye 3D system, the parameters of the naked-eye 3D system can be the center of the screen surface of the naked-eye 3D system, the vertical direction of the screen surface of the naked-eye 3D system and the width direction of the naked-eye 3D system. Of course, it can also be others, such as the length direction of the naked-eye 3D system, the center of the screen surface in the naked-eye 3D system, etc., among which the direction of the first coordinate axis can be vertical to the naked-eye 3D system.

[0072] In this embodiment, a two-dimensional coordinate system can be established with the center of the screen surface of the naked-eye 3D system as the origin, the vertical direction of the screen surface of the naked-eye 3D system as the Z coordinate axis direction, and the width direction of the screen surface of the naked-eye 3D system as the X coordinate axis direction, wherein the Z coordinate axis is the first coordinate axis and the X coordinate axis is the second coordinate axis. A three-dimensional coordinate system can also be established with the center of the screen surface of the naked-eye 3D system as the origin, the vertical direction of the screen surface of the naked-eye 3D system as the Z coordinate axis direction, the width direction of the screen of the naked-eye 3D system as the X coordinate axis direction, and the length direction of the screen of the naked-eye 3D system as the Y coordinate axis direction, wherein the Z coordinate axis is the first coordinate axis and the X coordinate axis is the second coordinate axis. Of course, a two-dimensional or three-dimensional coordinate system can also be established with the center of the screen surface of the naked-eye 3D system as the origin. In this regard, the coordinate system should at least determine the origin, the width direction of the screen of the naked-eye 3D system, and the vertical direction of the screen of the naked-eye 3D system, so that the optimal observation point can be positioned in the two-dimensional or three-dimensional coordinate system. The origin of the coordinate system can be determined according to actual needs and can be set on the surface of the screen of the naked-eye 3D system without specific limitations. The purpose is to better determine the position of the coordinate system and facilitate the subsequent coordinate calculation of the optimal observation point position. The establishment of the coordinate system can be adjusted according to actual needs and is not limited here.

[0073] In step S120, the expected value of the first coordinate of the specified observation point on the first coordinate axis, the specified grating pitch and the theoretical grating placement height are obtained.

[0074] The naked-eye 3D system is adjusted by obtaining the expected value of the first coordinate on the first coordinate axis of the specified observation point, so that the optimal observation point of the naked-eye 3D system falls near the expected value of the first coordinate. Ideally, after adjusting the naked-eye 3D system by the expected value of the first coordinate on the first coordinate axis of the specified observation point, the coordinate value of the first coordinate axis of the optimal observation point should be equal to the expected value of the first coordinate. However, in reality, due to errors in the grating production process and the film pasting process during the factory processing of the naked-eye 3D system, the grating pitch and / or the grating placement height inevitably deviates from the preset value, resulting in the coordinate value of the first coordinate axis of the optimal observation point of the naked-eye 3D system adjusted according to the first coordinate value not being equal to the first coordinate value, and falling near the first coordinate value.

[0075] The 3D naked eye system is adjusted by selecting a specified observation point, wherein the specified observation point can be one or more. Assume that the visible distance range of the naked eye 3D system is [D min , D max ], select a parameter Set the expected value of the optimal observation point Z coordinate to That is, the expected value of the first coordinate is

[0076] The specified grating pitch and theoretical grating placement height are the preset grating pitch value and the preset theoretical grating placement height value, which can be specifically the preset grating pitch value and the preset theoretical grating placement height value that should be produced and processed and calibrated during production and manufacturing, that is, the preset grating pitch value and the preset theoretical grating placement height value are both ideal values, but due to errors in the processing process, there is a difference between the ideal values ​​of the preset grating pitch value and the preset theoretical grating placement height value and the actual values ​​of the preset grating pitch value and the preset theoretical grating placement height value. The specified grating pitch and the theoretical grating placement height are known in advance, and the relevant specified grating pitch and the theoretical grating placement height can be obtained directly by manual input or by directly reading the memory in the naked-eye 3D system.

[0077] In step S130, the pixel arrangement period and the first coordinate of the central optimal observation point are determined according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height.

[0078] According to the expected value of the first coordinate, specify the pitch 0 and theoretical grating placement height H 0 , determine the pixel arrangement period C. Specifically, the pixel arrangement period C is calculated by formula (1), as follows:

[0079]

[0080] in, is the expected value of the first coordinate, Pitch 0 is the specified grid pitch, H 0 is the theoretical grating placement height, and C is the pixel arrangement period.

[0081] The pixel arrangement period C can be directly obtained by the above formula (1).

[0082] For the first coordinate of the central optimal observation point, after using the first coordinate value to adjust the naked-eye 3D system, the position with the best observation effect can be determined as the central optimal observation point by observing with the human eye. A binocular camera can also be used to capture images of multiple observation points within the visible range of the naked-eye 3D system, and the effect of the image can be judged to determine whether the position of the binocular camera is the optimal observation point. In some embodiments, the image captured by the binocular camera can also be input into a trained neural network for recognition to determine the central optimal observation point. The central optimal observation point generally refers to the image effect where the effects of the left eye image and the right eye image captured are closest to the real image effect. The effect can be judged by machine recognition or by the human eye. By determining the central optimal observation point, the position of the optimal observation point in the coordinate system is the first coordinate.

[0083] In one example, the binocular camera is placed in the coordinate system of the naked eye 3D system (assuming that the coordinate system is a three-dimensional coordinate system, in another example, a two-dimensional coordinate system can also be implemented). At this time, the specified coordinates of the binocular camera are At coordinates Fine-tune the X and Z coordinates of the stereo camera near the X coordinate fine-tuning range can be The Z coordinate fine-tuning range can be Find the central optimal observation point and record the actual coordinates of the optimal observation point [x, 0, z].

[0084] In step S140, the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis are determined according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, wherein at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal.

[0085] In addition to the central optimal observation point, which is the observation point with the best effect, there are other local observation points. The local optimal observation points are generally distributed on both sides of the central optimal observation point. In this embodiment, 2N+1 optimal observation points are selected, specifically the central optimal observation point and the same number of local observation points on both sides of the central optimal observation point. Figure 2 , for the convenience of representation, 2N+1 is numbered 1, 2, ..., 2N+1 from left to right. The measured Z coordinates (the coordinate values ​​of the first coordinate axis) of the optimal observation point are all z, and the measured X coordinates (the coordinate values ​​of the second coordinate axis) are x(1), x(2), ..., x(2N+1). For example, when N=1, three optimal observation points are selected, including the central optimal observation point, an observation point on the left side of the central optimal observation point, and an observation point on the right side of the central optimal observation point. When N=2, five optimal observation points are selected, including the central optimal observation point, two observation points on the left side of the central optimal observation point, and two observation points on the right side of the central optimal observation point. That is, find N local optimal observation points on the left side of the central optimal observation point, and find another N local optimal observation points on the right side of the central optimal observation point.

[0086] Among them, the local optimal observation point can be obtained by calculating the specified distance between adjacent optimal observation points. Determine, where the specified spacing It can be obtained by formula (2):

[0087]

[0088] in, is the expected value of the first coordinate, H 0is the theoretical grating placement height, and C is the pixel arrangement period.

[0089] Based on the first coordinate of the central optimal observation point, reduce the X coordinate of the central optimal observation point by the specified interval That is, the coordinate value of the second coordinate axis is reduced by the specified spacing Among them, the measured Z coordinate z (the coordinate value of the first coordinate axis) of the optimal observation point determines the preset coordinates of the expected first local optimal observation point, and the coordinate value of the second coordinate axis of the binocular camera is fine-tuned near this point to find the best viewing point within this range, which is determined as the first local optimal observation point on the left. Based on the position coordinates of this point, the X coordinate is further reduced Fine-tune the X coordinate of the binocular camera near this point to find the second local optimal observation point on the left. Similarly, find N local optimal observation points on the left. Use the same method to find N local optimal observation points on the right side of the central optimal observation point, and find 2N+1 optimal observation points in total.

[0090] Of course, in some embodiments, all observation points can be collected by human eyes or binocular cameras to determine the best central optimal observation point and other local optimal observation points. The determination method can be that the central optimal observation point has the best display effect, and the observation point with a small observation effect other than the central optimal observation point within a certain area and better than the local surrounding area is the local optimal observation point. It is also possible to draw the effects of all observation points into corresponding curves, take the observation point with the best effect as the central optimal observation point, and determine the optimal observation points on the peak segment of the wave, although the effect is lower than the central optimal observation point, as the local optimal observation point.

[0091] The local optimal observation point can be determined by the above method, and the coordinates of the local optimal observation point can be determined by the coordinate system. Since the coordinate values ​​of the optimal observation point on the first coordinate axis are all equal, and are equal to the coordinate z of the central optimal observation point, the coordinates of the local optimal observation point can be determined. Specifically, the coordinate value x(j)=x(1), x(2), ..., x(2N+1) of the second coordinate axis of the optimal observation point is obtained, which includes the coordinate value of the first coordinate of the central optimal observation point on the second coordinate axis and the coordinate value of the second coordinate of the local optimal observation point on the second coordinate axis.

[0092] In step S150, the actual grid pitch is determined according to the coordinate value of each second coordinate on the second coordinate axis, the first coordinate and the pixel arrangement period.

[0093] For the coordinate values ​​of the second coordinate axis of the optimal observation point obtained in the above embodiment, including the coordinate values ​​of each second coordinate on the second coordinate axis and the coordinate value of the first coordinate on the second coordinate axis (i.e., the X-axis coordinate value), x(j)=x(1), x(2), ..., x(2N+1), the actual spacing Δx between adjacent optimal observation points can be obtained by formula (3);

[0094]

[0095] Among them, Δx is the actual distance between adjacent optimal observation points, N is the number of optimal observation points, and x(j) is the coordinate value of the second coordinate axis of the optimal observation point.

[0096] The actual grid pitch Pitch can be calculated based on the actual spacing Δx between adjacent optimal observation points and the pixel arrangement period C according to formula (4) to determine the actual grid pitch Pitch.

[0097]

[0098] Among them, Pitch is the actual grid pitch, Δx is the actual spacing between adjacent optimal observation points, and C is the pixel arrangement period.

[0099] By using the method of this embodiment, the actual grid pitch in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is subsequently used, calibration is performed using the actual grid pitch to ensure the accuracy of the calibration of the naked eye 3D system parameters, thereby ensuring the stability and accuracy of the naked eye 3D system during use.

[0100] like Figure 3 As shown, in one embodiment, according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, determining the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis includes:

[0101] S310: determining a designated spacing between adjacent optimal observation points according to a pixel arrangement period, an expected value of the first coordinate, and a theoretical grating placement height, wherein the optimal observation points include a central optimal observation point and a local optimal observation point;

[0102] S320: Determine coordinate values ​​of second coordinates of at least two local optimal observation points on a second coordinate axis according to the first coordinates and the specified spacing.

[0103] The optimal observation point includes a central optimal observation point and a local optimal observation point. The local optimal observation points are generally distributed on both sides of the central optimal observation point. In this embodiment, 2N+1 optimal observation points are selected, specifically the central optimal observation point, and an equal number of local observation points located on both sides of the central optimal observation point. For the convenience of representation, 2N+1 are numbered 1, 2, ..., 2N+1 from left to right, and the measured Z coordinates (coordinate values ​​of the first coordinate axis) of the optimal observation points are all z, and the measured X coordinates (coordinate values ​​of the second coordinate axis) are x(1), x(2), ..., x(2N+1). For example, when N=1, three optimal observation points are selected, including the central optimal observation point, an observation point located on the left side of the central optimal observation point, and an observation point located on the right side of the central optimal observation point. When N=2, five optimal observation points are selected, including the central optimal observation point, two observation points located on the left side of the central optimal observation point, and two observation points located on the right side of the central optimal observation point. That is, find N local optimal observation points on the left side of the central optimal observation point, and find another N local optimal observation points on the right side of the central optimal observation point.

[0104] Among them, the local optimal observation point can be obtained by calculating the specified distance between adjacent optimal observation points. Determine, where the specified spacing It can be obtained by formula (2):

[0105]

[0106] in, is the expected value of the first coordinate, H 0 is the theoretical grating placement height, and C is the pixel arrangement period.

[0107] Based on the first coordinate of the central optimal observation point, reduce the X coordinate of the central optimal observation point by the specified interval That is, the coordinate value of the second coordinate axis is reduced by the specified spacing Among them, the measured Z coordinate z (the coordinate value of the first coordinate axis) of the optimal observation point determines the preset coordinates of the expected first local optimal observation point, and the coordinate value of the second coordinate axis of the binocular camera is fine-tuned near this point to find the best viewing point within this range, which is determined as the first local optimal observation point on the left. Based on the position coordinates of this point, the X coordinate is further reduced Fine-tune the X coordinate of the binocular camera near this point to find the second local optimal observation point on the left. Similarly, find N local optimal observation points on the left. Using the same method, find N local optimal observation points on the right side of the central optimal observation point, and find 2N+1 optimal observation points in total. Through the coordinate system and the coordinates of the central optimal observation point, the coordinates of the local optimal observation point can be determined, including the coordinate value of the second coordinate of the local optimal observation point on the second coordinate axis.

[0108] By using the method of this embodiment, when determining the central optimal observation point, the theoretical value minus the specified spacing of adjacent optimal observation points can be calculated according to formula (2), and the coordinates of the local optimal observation point adjacent to the central optimal observation point can be determined by using the theoretical value minus the specified spacing of adjacent optimal observation points. Since the specified spacing of adjacent optimal observation points is a theoretical value, there may be deviations on the side, that is, the local optimal observation point can be determined within a specified range, which can be relatively small. This is convenient, fast, and highly accurate, and can improve the efficiency of determining the local optimal observation point.

[0109] Moreover, the method of this embodiment, on the one hand, has higher accuracy than the local optimal observation point identified by human eyes; on the other hand, it can also avoid the problem that when judging the effect of the binocular camera, the observation point near the central optimal observation point is easily used as the local optimal observation point, resulting in inaccurate optimal observation points. At the same time, the influence of noise in the process of judging the optimal observation point can be reduced, so that the selected local optimal observation point is more accurate.

[0110] like Figure 4 As shown, in one embodiment, when multiple observation points are specified, the method further includes:

[0111] S410: Determine the first expected value coordinates corresponding to each designated observation point, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0112] S420: Determine the actual grid pitch according to the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0113] In order to improve the actual grid pitch, multiple designated observation points can be selected and the pixel arrangement period corresponding to each designated observation point can be calculated according to formula (1). The corresponding naked-eye 3D system is adjusted according to each designated observation point, and the first coordinate of the central optimal observation point corresponding to each designated observation point is determined by the adjusted naked-eye 3D system (that is, the first coordinate corresponding to each designated observation point). According to formula (2), the designated spacing of adjacent optimal observation points corresponding to each optimal observation point By specifying the distance between each optimal observation point and the adjacent optimal observation points Determine the coordinates of at least two local observation points corresponding to each optimal observation point, specifically determine the coordinate values ​​of the second coordinates of at least two local observation points corresponding to each optimal observation point on the second coordinate axis (the coordinate values ​​of each second coordinate corresponding to each specified observation point on the second coordinate axis).

[0114] According to the coordinate values ​​of the second coordinates of at least two local observation points corresponding to each optimal observation point on the second coordinate axis and the first coordinate of the central optimal observation point corresponding to each specified observation point, the actual distance between adjacent optimal observation points corresponding to each optimal observation point is calculated using formula (3).

[0115] According to the actual spacing between the adjacent optimal observation points corresponding to each designated observation point, the first grid spacing corresponding to each designated observation point is obtained by using formula (4), and the actual grid spacing is obtained by processing the first grid spacing corresponding to the designated observation point.

[0116] The processing of the first grid distance corresponding to the specified observation point can be to directly calculate the first grid distance corresponding to the specified observation point to obtain the average value, and determine the average value as the actual grid distance; it can also be to remove the maximum and minimum values ​​in the first grid distance corresponding to the specified observation point, and then calculate the average value, and determine the actual grid distance; it can also be to use the median of the first grid distance corresponding to the specified observation point as the actual grid distance.

[0117] The method of this embodiment can obtain as much data as possible from the actual use of the naked-eye 3D system by specifying the number of observation points, and can obtain a more accurate actual grid pitch by calculating with these data. The naked-eye 3D system calibrated with the actual grid pitch can more accurately reflect the real situation.

[0118] In one embodiment, determining the actual grid pitch according to the first coordinates corresponding to each designated observation point, the coordinate values ​​of the second coordinates corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point includes:

[0119] Determine a first grid pitch corresponding to each designated observation point according to the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0120] The actual grid spacing is determined based on the first grid spacing corresponding to each specified observation point.

[0121] According to the actual spacing between the adjacent optimal observation points corresponding to each designated observation point, the first grid spacing corresponding to each designated observation point is obtained by using formula (4), and the actual grid spacing is obtained by processing the first grid spacing corresponding to the designated observation point.

[0122] The processing of the first grid distance corresponding to the specified observation point can be to directly calculate the first grid distance corresponding to the specified observation point to obtain the average value, and determine the average value as the actual grid distance; it can also be to remove the maximum and minimum values ​​in the first grid distance corresponding to the specified observation point, and then calculate the average value, and determine the actual grid distance; it can also be to use the median of the first grid distance corresponding to the specified observation point as the actual grid distance.

[0123] In one example, M groups of designated observation points are selected, that is, the first grid pitch corresponding to each designated observation point is Pitch(i), and the first grid pitch corresponding to each designated observation point is calculated according to formula (5) to obtain the actual grid pitch Pitch;

[0124]

[0125] Wherein, M is the number of specified observation groups, Pitch(i) is the first grid pitch corresponding to each specified observation point, and Pitch is the actual grid pitch.

[0126] In one embodiment, the method further comprises:

[0127] The actual grating placement height is determined according to the coordinate value of the first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate on the second coordinate axis, and the pixel arrangement period.

[0128] Similar to the grating pitch, due to errors in the grating production process and the film-mounting process, there is a deviation between the actual grating placement height and the calibrated theoretical design value (i.e., the theoretical grating placement height mentioned above), which will lead to inaccurate parameters of the naked-eye 3D system during the subsequent calibration of the naked-eye 3D system parameters. The coordinate value of the second coordinate axis of the optimal observation point obtained in the above embodiment includes the coordinate value of each second coordinate on the second coordinate axis and the coordinate value of the first coordinate on the second coordinate axis (i.e., the X-axis coordinate value). x(j) = x(1), x(2), ..., x(2N+1), the actual spacing Δx between adjacent optimal observation points can be obtained by formula (3);

[0129]

[0130] Wherein, Δx is the actual distance between adjacent optimal observation points, N is the number of optimal observation points, and x(j) is the coordinate value of the second coordinate axis of the optimal observation point.

[0131] The actual grating placement height is determined by calculating the actual spacing Δx between adjacent optimal observation points, the coordinate value z of the first coordinate system in the first coordinate, and the pixel arrangement period C using formula (6).

[0132]

[0133] Among them, Δx is the actual spacing between adjacent optimal observation points, z is the coordinate value of the first coordinate system in the first coordinate, H is the actual grating placement height, and C is the pixel arrangement period.

[0134] By using the method of this embodiment, the actual grating placement height in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is subsequently used, calibration is performed using the actual grating placement height to ensure the accuracy of the calibration of the naked eye 3D system parameters, thereby ensuring the stability and accuracy of the naked eye 3D system during use.

[0135] In one embodiment, when multiple observation points are specified, the method further includes:

[0136] Determine the first coordinate corresponding to each designated observation point, the coordinate value of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0137] The actual grating placement height is determined according to the coordinate values ​​of each first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0138] According to the actual spacing between adjacent optimal observation points corresponding to each designated observation point and the pixel arrangement period corresponding to each designated observation point, the first grating placement height corresponding to each designated observation point is obtained using formula (6), and the actual grating placement height is obtained by processing the first grating placement height corresponding to the designated observation point.

[0139] The processing of the first grating placement height corresponding to the specified observation point can be to directly calculate the first grating placement height corresponding to the specified observation point to obtain an average value, and determine the average value as the actual grating placement height; it can also be to remove the maximum and minimum values ​​of the first grating placement height corresponding to the specified observation point, and then find the average value, and determine the actual grating placement height; it can also be to use the median of the first grating placement height corresponding to the specified observation point as the actual grating placement height.

[0140] The method of this embodiment can obtain as much data as possible from the actual use of the naked-eye 3D system by specifying the number of observation points, and can obtain a more accurate actual grating placement height by calculating with these data. The naked-eye 3D system calibrated with the actual grating can more accurately reflect the real situation.

[0141] In one embodiment, determining the actual grating placement height according to the coordinate values ​​of each first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point includes:

[0142] Determine the first grating placement height corresponding to each designated observation point according to the coordinate value of each first coordinate on the first coordinate axis, the coordinate value of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0143] The actual grating placement height is determined according to the first grating placement height corresponding to each designated observation point.

[0144] In this embodiment, the first grating placement height corresponding to each designated observation point is obtained using formula (6) according to the actual spacing between adjacent optimal observation points corresponding to each designated observation point, and the actual grating placement height is obtained by processing the first grating placement height corresponding to the designated observation point.

[0145] The processing of the first grating placement height corresponding to the specified observation point can be to directly calculate the first grating placement height corresponding to the specified observation point to obtain an average value, and determine the average value as the actual grating placement height; it can also be to remove the maximum and minimum values ​​of the first grating placement height corresponding to the specified observation point, and then find the average value, and determine the actual grating placement height; it can also be to use the median of the first grating placement height corresponding to the specified observation point as the actual grating placement height.

[0146] Select M groups of designated observation points, that is, the first grating placement height corresponding to each designated observation point is H(i), and calculate the first grating placement height H(i) corresponding to each designated observation point according to formula (7) to obtain the actual grating placement height H;

[0147]

[0148] Among them, H is the actual grating placement height, H(i) is the first grating placement height corresponding to each specified observation point, and M is the number of specified observation points.

[0149] In one embodiment, determining the actual grid pitch according to the coordinate value of the second coordinate on the second coordinate axis and the pixel arrangement period includes:

[0150] Determine the actual spacing between adjacent optimal observation points according to the coordinate values ​​of each second coordinate on the second coordinate axis;

[0151] The actual grid pitch is determined based on the actual spacing and pixel arrangement period.

[0152] For the coordinate values ​​of the second coordinate axis of the optimal observation point obtained in the above embodiment, including the coordinate values ​​of each second coordinate on the second coordinate axis and the coordinate value of the first coordinate on the second coordinate axis (i.e., the X-axis coordinate value), x(j)=x(1), x(2), ..., x(2N+1), the actual spacing Δx between adjacent optimal observation points can be obtained by formula (3);

[0153]

[0154] Among them, Δx is the actual distance between adjacent optimal observation points, N is the number of optimal observation points, and x(j) is the coordinate value of the second coordinate axis of the optimal observation point.

[0155] The actual grid pitch Pitch can be calculated based on the actual spacing Δx between adjacent optimal observation points and the pixel arrangement period C according to formula (4) to determine the actual grid pitch Pitch.

[0156]

[0157] Among them, Pitch is the actual grid pitch, Δx is the actual spacing between adjacent optimal observation points, and C is the pixel arrangement period.

[0158] By using the method of this embodiment, the actual grid pitch in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is subsequently used, calibration is performed using the actual grid pitch to ensure the accuracy of the calibration of the naked eye 3D system parameters, thereby ensuring the stability and accuracy of the naked eye 3D system during use.

[0159] like Figure 5 As shown, in one embodiment, according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height, determining the first coordinate of the central optimal observation point includes:

[0160] S510: Acquire a left-eye view of the observation point to be measured and a right-eye view of the observation point to be measured;

[0161] S520: performing linear transformation on the left-eye view and the right-eye view to determine a first feature mean of the left-eye single-channel image and a second feature mean of the right-eye single-channel image;

[0162] S530: Obtain a first theoretical feature mean value of a left-eye view and a second theoretical feature mean value of a right-eye view;

[0163] S540: determining an image error according to the first theoretical feature mean, the second theoretical feature mean, the first feature mean, and the second feature mean;

[0164] S550: traversing a plurality of observation points to be measured, and generating an image error of each observation point to be measured;

[0165] S560: According to the image errors of the observation points to be measured, determine the observation point to be measured with the smallest image error as the central optimal observation point.

[0166] The 3D naked eye system is adjusted by selecting a specified observation point, wherein the specified observation point can be one or more. Assume that the visible distance range of the naked eye 3D system is [D min , D max ], select a parameter Set the expected value of the optimal observation point Z coordinate to That is, the expected value of the first coordinate is

[0167] Specifically, the expected value of the first coordinate Adjust the naked eye 3D system so that the Z-axis coordinate of the optimal observation point (i.e. the coordinate on the first coordinate axis) is close to the expected value of the first coordinate

[0168] like Figure 6 As shown, the coordinate value on the first coordinate axis is the expected value of the first coordinate A binocular camera is placed near the left and right cameras of the binocular camera. The distance between the left and right cameras of the binocular camera can be set to 65mm (interpupillary distance per person). The distance can also be adjusted according to the actual situation. The screen of the naked-eye 3D system is photographed by the binocular camera, and the left and right views of the naked-eye 3D film source are set to pure color images with obvious visual differences. For example, the left and right views are set to pure white and pure black images respectively; the left and right views are set to pure red and pure blue images respectively. When the binocular camera is at the optimal observation point, the left-eye view captured by the left camera shows a screen close to the expected left view, and the right-eye view captured by the right camera shows a screen close to the expected right view.

[0169] In this embodiment, the left-eye view and the right-eye view of multiple observation points to be measured can be obtained by the binocular camera. Usually, the left-eye view and the right-eye view are views including three RGB channels. Through the linear transformation F=K R *R+K G *G+K B *B transforms the left eye view and calculates the first feature of the left eye single channel image, and calculates the first feature mean based on the first feature. Similarly, through the linear transformation F = K R *R+K G *G+K B *B transforms the right eye view and calculates the second feature of the right eye single channel image, and calculates the second feature mean based on the second feature.

[0170] The first theoretical feature mean of the left eye view and the second theoretical feature mean of the right eye view are both theoretical values. The first theoretical feature mean and the second theoretical feature mean as theoretical values ​​are input manually or obtained through actual detection. The first theoretical feature mean specifically refers to the feature mean of the image output from the left view of the naked eye 3D film source, and the second theoretical feature mean refers to the feature mean of the image output from the right view of the naked eye 3D film source. These two theoretical feature means are known in the naked eye 3D film source being tested.

[0171] According to the first theoretical characteristic mean G left0 , the second theoretical characteristic mean G right0 , the first eigenvalue G left And the second characteristic mean G right Specifically, the image error can be determined by formula (8).

[0172] E=|G left -G left0 |+|G right -G right0 | (8)

[0173] Where E is the image error, G left is the first theoretical characteristic mean, G right0 is the second theoretical characteristic mean, G left is the first eigenmean, G right is the second eigenvalue mean, and |·| indicates the absolute value calculation.

[0174] Traversing multiple observation points to be measured, the image error of each observation point to be measured can be specifically:

[0175] By placing the binocular camera at multiple different observation points to be tested, the image error of each observation point to be tested is determined by the above method, and by comparing the image errors of each observation point to be tested, the observation point to be tested with the smallest image error is determined as the central optimal observation point. The smallest image error means that the visual effect difference between it and the image output by the naked eye 3D system is small, and the best viewing effect can be achieved.

[0176] The method of this embodiment can realize the judgment and identification of the optimal central observation point of the naked eye 3D system through objective image error comparison, has high objectivity and accuracy, avoids the subjectivity brought by viewing with the human eye, and can determine a more accurate central optimal observation point. At the same time, compared with the solution of using a neural network to identify and determine the central optimal observation point, it does not need to spend more time and more training samples to train the neural network, and has a wider applicability, can be applied to more naked eye 3D systems at different levels, and has high accuracy.

[0177] In one implementation, obtaining a left-eye view of the observation point to be measured and a right-eye view of the observation point to be measured includes:

[0178] Acquiring a first image and a second image at an observation point to be measured;

[0179] Recognize the first image and determine that the left-eye image displayed on the screen is a left-eye view;

[0180] The second image is identified to determine that the right eye image displayed on the screen is a right eye view.

[0181] The images of the observation point collected by the binocular camera do not all contain the left eye image and the right eye image output by the screen of the naked eye 3D system. For this, it is necessary to identify the first image and the second image collected by the binocular camera, and determine that the left eye image displayed on the screen is the left eye view and the right eye image displayed on the screen is the right eye view, because only the left eye view representing the left eye image and the right eye view representing the right eye image are meaningful for determining the central optimal observation point, and other parts of the first image that do not represent the left eye image are noise or interference and need to be removed.

[0182] In this embodiment, taking the first image captured by the left camera as an example, the left eye image of the naked eye 3D screen captured in the first image is detected and located. The specific implementation method can train a FasterRCNN, SSD or Yolo target detection model to detect and locate the left eye image, or use a template matching algorithm to search and locate the left eye image target. When the left eye image in the first image is detected, the left eye view is cut out and recorded as Il eft Similarly, the right eye image of the naked eye 3D screen captured in the second image is detected and located. Specifically, a FasterRCNN, SSD or Yolo target detection model can be trained to detect and locate the right eye image, or a template matching algorithm can be used to search and locate the right eye image target. When the right eye image in the second image is detected, the right eye view is cut out and recorded as I right .

[0183] By processing the first image and the second image, a left-eye view and a right-eye view are obtained, thereby preventing the environment outside the screen of the naked-eye 3D system from affecting the calculation of the central optimal observation point, thereby ensuring the accuracy of the calculation of the central optimal observation point.

[0184] like Figure 7 As shown, as another aspect of the embodiment of the present application, the device includes:

[0185] An establishing module 710 is used to establish a coordinate system according to the parameters of the naked-eye 3D system, wherein the direction of a first coordinate axis of the coordinate system is perpendicular to the screen surface of the naked-eye 3D system, and the direction of a second coordinate axis of the coordinate system is parallel to the width direction of the screen of the naked-eye 3D system;

[0186] An acquisition module 720 is used to acquire a first coordinate expected value of a specified observation point on a first coordinate axis, a specified grating pitch, and a theoretical grating placement height;

[0187] A first determination module 730 is used to determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the first coordinate expected value, the specified grating pitch and the theoretical grating placement height;

[0188] A second determination module 740 is used to determine the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the expected value of the first coordinate, the first coordinate and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal;

[0189] The third determination module 750 is used to determine the actual grid pitch according to the coordinate value of each second coordinate on the second coordinate axis, the first coordinate and the pixel arrangement period.

[0190] In this embodiment, by establishing a coordinate system, adjusting and determining the expected value of the first coordinate in the naked eye 3D system, according to the expected value of the first coordinate, the specified grid pitch and the specified grating height, the pixel arrangement period and the first coordinate of the central optimal observation point are calculated, according to the pixel arrangement period, the expected value of the first coordinate, according to the first coordinate and the theoretical grating placement height, the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis are determined, and then according to the coordinate values ​​of each second coordinate on the second coordinate axis and the pixel arrangement period, the actual grid pitch is determined, thereby solving the problem of inaccurate parameter measurement of the naked eye 3D system. At the same time, through the device of this embodiment, the actual grid pitch in the naked eye 3D system can be accurately calculated using the optimal observation point. When the naked eye 3D system is used in the future, it is calibrated by the actual grid pitch to ensure the accuracy of the calibration of the parameters of the naked eye 3D system, and ensure the stability and accuracy of the naked eye 3D system during use.

[0191] According to the parameters of the naked-eye 3D system, as can be known from the above description of the naked-eye 3D system, the parameters of the naked-eye 3D system can be the center of the screen surface of the naked-eye 3D system, the vertical direction of the screen surface of the naked-eye 3D system and the width direction of the naked-eye 3D system. Of course, it can also be others, such as the length direction of the naked-eye 3D system, the center of the screen surface in the naked-eye 3D system, etc., among which the direction of the first coordinate axis can be vertical to the naked-eye 3D system.

[0192] In this embodiment, a two-dimensional coordinate system can be established with the center of the screen surface of the naked-eye 3D system as the origin, the vertical direction of the screen surface of the naked-eye 3D system as the Z coordinate axis direction, and the width direction of the screen surface of the naked-eye 3D system as the X coordinate axis direction, wherein the Z coordinate axis is the first coordinate axis and the X coordinate axis is the second coordinate axis. A three-dimensional coordinate system can also be established with the center of the screen surface of the naked-eye 3D system as the origin, the vertical direction of the screen surface of the naked-eye 3D system as the Z coordinate axis direction, the width direction of the screen of the naked-eye 3D system as the X coordinate axis direction, and the length direction of the screen of the naked-eye 3D system as the Y coordinate axis direction, wherein the Z coordinate axis is the first coordinate axis and the X coordinate axis is the second coordinate axis. Of course, a two-dimensional or three-dimensional coordinate system can also be established with the center of the screen surface of the naked-eye 3D system as the origin. In this regard, the coordinate system should at least determine the origin, the width direction of the screen of the naked-eye 3D system, and the vertical direction of the screen of the naked-eye 3D system, so that the optimal observation point can be positioned in the two-dimensional or three-dimensional coordinate system. The origin of the coordinate system can be determined according to actual needs and can be set on the surface of the screen of the naked-eye 3D system without specific limitations. The purpose is to better determine the position of the coordinate system and facilitate the subsequent coordinate calculation of the optimal observation point position. The establishment of the coordinate system can be adjusted according to actual needs and is not limited here.

[0193] The naked-eye 3D system is adjusted by obtaining the expected value of the first coordinate on the first coordinate axis of the specified observation point, so that the optimal observation point of the naked-eye 3D system falls near the expected value of the first coordinate. Ideally, after adjusting the naked-eye 3D system by the expected value of the first coordinate on the first coordinate axis of the specified observation point, the coordinate value of the first coordinate axis of the optimal observation point should be equal to the expected value of the first coordinate. However, in reality, due to errors in the grating production process and the film pasting process during the factory processing of the naked-eye 3D system, the grating pitch and / or the grating placement height inevitably deviates from the preset value, resulting in the coordinate value of the first coordinate axis of the optimal observation point of the naked-eye 3D system adjusted according to the first coordinate value not being equal to the first coordinate value, and falling near the first coordinate value.

[0194] The 3D naked eye system is adjusted by selecting a specified observation point, wherein the specified observation point can be one or more. Assume that the visible distance range of the naked eye 3D system is [D min , Dmax ], select a parameter Set the expected value of the optimal observation point Z coordinate to That is, the expected value of the first coordinate is

[0195] The specified grating pitch and theoretical grating placement height are the preset grating pitch value and the preset theoretical grating placement height value, which can be specifically the preset grating pitch value and the preset theoretical grating placement height value that should be produced and processed and calibrated during production and manufacturing, that is, the preset grating pitch value and the preset theoretical grating placement height value are both ideal values, but due to errors in the processing process, there is a difference between the ideal values ​​of the preset grating pitch value and the preset theoretical grating placement height value and the actual values ​​of the preset grating pitch value and the preset theoretical grating placement height value. The specified grating pitch and the theoretical grating placement height are known in advance, and the relevant specified grating pitch and the theoretical grating placement height can be obtained directly by manual input or by directly reading the memory in the naked-eye 3D system.

[0196] In step S130, the pixel arrangement period and the first coordinate of the central optimal observation point are determined according to the expected value of the first coordinate, the specified grating pitch and the theoretical grating placement height.

[0197] According to the expected value of the first coordinate, specify the pitch 0 and theoretical grating placement height H 0 , determine the pixel arrangement period C. Specifically, the pixel arrangement period C is calculated by formula (1), as follows:

[0198]

[0199] in, is the expected value of the first coordinate, Pitch 0 is the specified grid pitch, H 0 is the specified Guanshan placement height, and C is the pixel arrangement period.

[0200] The pixel arrangement period C can be directly obtained by the above formula (1).

[0201] For the first coordinate of the central optimal observation point, after using the first coordinate value to adjust the naked-eye 3D system, the position with the best observation effect can be determined as the central optimal observation point by observing with the human eye. A binocular camera can also be used to capture images of multiple observation points within the visible range of the naked-eye 3D system, and the effect of the image can be judged to determine whether the position of the binocular camera is the optimal observation point. In some embodiments, the image captured by the binocular camera can also be input into a trained neural network for recognition to determine the central optimal observation point. The central optimal observation point generally refers to the image effect where the effects of the left eye image and the right eye image captured are closest to the real image effect. The effect can be judged by machine recognition or by the human eye. By determining the central optimal observation point, the position of the optimal observation point in the coordinate system is the first coordinate.

[0202] In one example, the binocular camera is placed in the coordinate system of the naked eye 3D system (assuming that the coordinate system is a three-dimensional coordinate system, in another example, a two-dimensional coordinate system can also be implemented). At this time, the specified coordinates of the binocular camera are At coordinates Fine-tune the X and Z coordinates of the stereo camera near the X coordinate fine-tuning range can be The Z coordinate fine-tuning range can be Find the central optimal observation point and record the actual coordinates of the optimal observation point [x, 0, z].

[0203] In addition to the central optimal observation point, that is, the observation point with the best effect, the optimal observation point also has other local observation points. The local optimal observation points are generally distributed on both sides of the central optimal observation point. In this embodiment, 2N+1 optimal observation points are selected, specifically the central optimal observation point, and an equal number of local observation points located on both sides of the central optimal observation point. For the convenience of representation, 2N+1 are numbered 1, 2, ..., 2N+1 from left to right, and the measured Z coordinates (coordinate values ​​of the first coordinate axis) of the optimal observation points are all z, and the measured X coordinates (coordinate values ​​of the second coordinate axis) are x(1), x(2), ..., x(2N+1). For example, when N=1, three optimal observation points are selected, including the central optimal observation point, an observation point located on the left side of the central optimal observation point, and an observation point located on the right side of the central optimal observation point. When N=2, five optimal observation points are selected, including the central optimal observation point, two observation points located on the left side of the central optimal observation point, and two observation points located on the right side of the central optimal observation point. That is, find N local optimal observation points on the left side of the central optimal observation point, and find another N local optimal observation points on the right side of the central optimal observation point.

[0204] Among them, the local optimal observation point can be obtained by calculating the specified distance between adjacent optimal observation points. Determine, where the specified spacing It can be obtained by formula (2):

[0205]

[0206] in, is the expected value of the first coordinate, H 0 is the specified Guanshan placement height, and C is the pixel arrangement period.

[0207] Based on the first coordinate of the central optimal observation point, reduce the X coordinate of the central optimal observation point by the specified interval That is, the coordinate value of the second coordinate axis is reduced by the specified spacing Among them, the measured Z coordinate z (the coordinate value of the first coordinate axis) of the optimal observation point determines the preset coordinates of the expected first local optimal observation point, and the coordinate value of the second coordinate axis of the binocular camera is fine-tuned near this point to find the best viewing point within this range, which is determined as the first local optimal observation point on the left. Based on the position coordinates of this point, the X coordinate is further reduced Fine-tune the X coordinate of the binocular camera near this point to find the second local optimal observation point on the left. Similarly, find N local optimal observation points on the left. In the same way, find N local optimal observation points on the right side of the central optimal observation point, and find 2N+1 optimal observation points in total.

[0208] Of course, in some embodiments, all observation points can be collected by human eyes or binocular cameras to determine the best central optimal observation point and other local optimal observation points. The determination method can be that the central optimal observation point has the best display effect, and the observation point with a small observation effect other than the central optimal observation point within a certain area and better than the local surrounding area is the local optimal observation point. It is also possible to draw the effects of all observation points into corresponding curves, take the observation point with the best effect as the central optimal observation point, and determine the optimal observation points on the peak segment of the wave, although the effect is lower than the central optimal observation point, as the local optimal observation point.

[0209] The local optimal observation point can be determined by the above method, and the coordinates of the local optimal observation point can be determined by the coordinate system. Since the coordinate values ​​of the optimal observation point on the first coordinate axis are all equal, and are equal to the coordinate z of the central optimal observation point, the coordinates of the local optimal observation point can be determined. Specifically, the coordinate value x(j)=x(1), x(2), ..., x(2N+1) of the second coordinate axis of the optimal observation point is obtained, including the coordinate value of the second coordinate axis of the central optimal observation point and the coordinate value of the second coordinate of the second coordinate axis of the local optimal observation point on the second coordinate axis.

[0210] For the coordinate values ​​of the second coordinate axis of the optimal observation point obtained in the above embodiment, including the coordinate values ​​of each second coordinate on the second coordinate axis and the coordinate value of the first coordinate on the second coordinate axis (i.e., the X-axis coordinate value), x(j)=x(1), x(2), ..., x(2N+1), the actual spacing Δx between adjacent optimal observation points can be obtained by formula (3);

[0211]

[0212] Among them, Δx is the actual distance between adjacent optimal observation points, N is the number of optimal observation points, and x(j) is the coordinate value of the second coordinate axis of the optimal observation point.

[0213] The actual grid pitch Pitch can be calculated based on the actual spacing Δx between adjacent optimal observation points and the pixel arrangement period C according to formula (4) to determine the actual grid pitch Pitch.

[0214]

[0215] Among them, Pitch is the actual grid pitch, Δx is the actual spacing between adjacent optimal observation points, and C is the pixel arrangement period.

[0216] By using the device of this embodiment and the optimal observation point, the actual grid pitch in the naked eye 3D system can be accurately calculated. When the naked eye 3D system is subsequently used, the actual grid pitch is used for calibration to ensure the accuracy of the calibration of the naked eye 3D system parameters, thereby ensuring the stability and accuracy of the naked eye 3D system during use.

[0217] In one implementation, the first determining module includes:

[0218] A first determining unit is used to determine a specified spacing between adjacent optimal observation points according to a pixel arrangement period, an expected value of a first coordinate, and a theoretical grating placement height, wherein the optimal observation points include a central optimal observation point and a local optimal observation point;

[0219] The second determining unit is used to determine the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the first coordinates and the specified interval.

[0220] In one embodiment, when multiple observation points are specified, the device further includes:

[0221] A fourth determination module is used to determine the first coordinate corresponding to each designated observation point, the coordinate value of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point according to the expected value of the first coordinate corresponding to each designated observation point;

[0222] The fifth determination module is used to determine the actual grid pitch according to the first coordinates corresponding to each designated observation point, the coordinate values ​​of the second coordinates corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0223] In one implementation, the third determination module includes:

[0224] A third determining unit is used to determine a first grid pitch corresponding to each designated observation point according to the first coordinate corresponding to each designated observation point, the coordinate value of the second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0225] The fourth determining unit is used to determine the actual grid pitch according to the first grid pitch corresponding to each designated observation point.

[0226] In one embodiment, the device further comprises:

[0227] The sixth determination module is used to determine the actual grating placement height according to the coordinate value of the first coordinate on the first coordinate axis, the coordinate value of each second coordinate on the second coordinate axis, and the pixel arrangement period.

[0228] In one embodiment, when multiple observation points are specified, the device further includes:

[0229] A seventh determination module, used to determine the first coordinates corresponding to each designated observation point, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0230] The eighth determination module is used to determine the actual grating placement height according to the coordinate values ​​of each first coordinate on the first coordinate axis, the coordinate values ​​of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point.

[0231] In one implementation, the eighth determination module includes:

[0232] A fifth determining unit, configured to determine a first grating placement height corresponding to each designated observation point according to the coordinate value of each first coordinate on the first coordinate axis, the coordinate value of each second coordinate corresponding to each designated observation point on the second coordinate axis, and the pixel arrangement period corresponding to each designated observation point;

[0233] The sixth determining unit is used to determine the actual grating placement height according to the first grating placement height corresponding to each designated observation point.

[0234] In one implementation, the first determining module includes:

[0235] A first acquisition unit, used to acquire a left-eye view of an observation point and a right-eye view of the observation point;

[0236] a seventh determining unit, configured to perform linear transformation on the left-eye view and the right-eye view, and determine a first feature mean of the left-eye single-channel image and a second feature mean of the right-eye single-channel image;

[0237] A second acquisition unit, used to acquire a first theoretical feature mean value of a left-eye view and a second theoretical feature mean value of a right-eye view;

[0238] an eighth determining unit, configured to determine an image error according to the first theoretical feature mean, the second theoretical feature mean, the first feature mean, and the second feature mean;

[0239] A first generating unit, used for traversing a plurality of observation points and generating an image error of each observation point;

[0240] The ninth determining unit is used to determine, according to the image errors of each observation point, the observation point with the smallest image error as the central optimal observation point.

[0241] In one implementation, the first acquisition unit includes:

[0242] A first acquisition subunit, used for acquiring a first image and a second image at an observation point;

[0243] A first determining subunit is used to identify the first image and determine that the left-eye image displayed on the screen is a left-eye view;

[0244] The second determining subunit is used to identify the second image and determine that the right eye image displayed on the screen is a right eye view.

[0245] Other components of the naked-eye 3D parameter calibration method in the above embodiment may be adopted from various technical solutions known to ordinary technicians in the field now and in the future, and will not be described in detail here.

[0246] Figure 8 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 8 As shown, the electronic device includes: a memory 810 and a processor 820, wherein the memory 810 stores a computer program that can be run on the processor 820. When the processor 820 executes the computer program, the parameter calibration method of the naked eye 3D in the above embodiment is implemented. The number of the memory 810 and the processor 820 can be one or more.

[0247] The electronic device also includes:

[0248] The communication interface 830 is used to communicate with external devices and perform data exchange transmission.

[0249] If the memory 810, the processor 820 and the communication interface 830 are implemented independently, the memory 810, the processor 820 and the communication interface 830 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0250] Optionally, in a specific implementation, if the memory 810, the processor 820 and the communication interface 830 are integrated on a chip, the memory 810, the processor 820 and the communication interface 830 can communicate with each other through an internal interface.

[0251] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.

[0252] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.

[0253] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0254] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.

[0255] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0256] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0257] In the description of this specification, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0258] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0259] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0260] In the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0261] The disclosure above provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described above. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. Any process or method description described in the flow chart or otherwise herein can be understood to represent a module, a fragment or part of a code of executable instructions including one or more steps for realizing a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, wherein it can not be in the order shown or discussed, including performing functions according to the functions involved in a substantially simultaneous manner or in reverse order.

[0262] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.

[0263] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0264] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0265] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for calibrating parameters of naked eye 3D, characterized in that: The method comprises: According to the parameters of the naked-eye 3D system, a coordinate system is established, wherein a direction of a first coordinate axis of the coordinate system is perpendicular to a screen surface of the naked-eye 3D system, and a direction of a second coordinate axis of the coordinate system is parallel to a width direction of the screen of the naked-eye 3D system; Obtaining an expected first coordinate value of a specified observation point on the first coordinate axis, a specified grating pitch, and a theoretical grating placement height; Determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the first coordinate expected value, the specified grating pitch and the theoretical grating placement height; Determine coordinate values ​​of second coordinates of at least two local optimal observation points on a second coordinate axis according to the pixel arrangement period, the first coordinate expected value, the first coordinate, and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal; The actual grid pitch is determined according to the coordinate value of each of the second coordinates on the second coordinate axis, the first coordinates and the pixel arrangement period.

2. The method for calibrating parameters of naked eye 3D according to claim 1, characterized in that: Determining the coordinate values ​​of the second coordinates of at least two local optimal observation points on the second coordinate axis according to the pixel arrangement period, the first coordinate expected value, the first coordinate and the theoretical grating placement height comprises: Determine a designated spacing between adjacent optimal observation points according to the pixel arrangement period, the first coordinate expected value, and the theoretical grating placement height, wherein the optimal observation points include a central optimal observation point and a local optimal observation point; According to the first coordinates and the specified interval, coordinate values ​​of second coordinates of at least two local optimal observation points on a second coordinate axis are determined.

3. The method for calibrating parameters of naked eye 3D according to claim 1, characterized in that: In the case where there are multiple designated observation points, the method further includes: Determine, according to the expected value of the first coordinate corresponding to each of the designated observation points, the coordinate value of the second coordinate corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points; The actual grid pitch is determined according to the first coordinate corresponding to each of the designated observation points, the coordinate value of the second coordinate corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points.

4. The method for calibrating parameters of naked eye 3D according to claim 3, characterized in that: Determining the actual grid pitch according to the first coordinates corresponding to each of the designated observation points, the coordinate values ​​of the second coordinates corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points comprises: Determine a first grid pitch corresponding to each of the designated observation points according to the first coordinates corresponding to each of the designated observation points, the coordinate values ​​of the second coordinates corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points; The actual grid pitch is determined according to the first grid pitch corresponding to each of the designated observation points.

5. The method for calibrating parameters of naked eye 3D according to claim 1, characterized in that: The method further comprises: The actual grating placement height is determined according to the coordinate value of the first coordinate on the first coordinate axis, the coordinate value of each of the second coordinates on the second coordinate axis, and the pixel arrangement period.

6. The method for calibrating parameters of naked eye 3D according to claim 5, characterized in that: In the case where there are multiple designated observation points, the method further includes: Determine the first coordinate corresponding to each of the designated observation points, the coordinate value of the second coordinate corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points; The actual grating placement height is determined according to the coordinate values ​​of each of the first coordinates on the first coordinate axis, the coordinate values ​​of the second coordinates corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points.

7. The method for calibrating parameters of naked eye 3D according to claim 6, characterized in that: Determining the actual grating placement height according to the coordinate values ​​of each of the first coordinates on the first coordinate axis, the coordinate values ​​of each of the second coordinates corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points comprises: Determine the first grating placement height corresponding to each of the designated observation points according to the coordinate value of each of the first coordinates on the first coordinate axis, the coordinate value of the second coordinate corresponding to each of the designated observation points on the second coordinate axis, and the pixel arrangement period corresponding to each of the designated observation points; The actual grating placement height is determined according to the first grating placement height corresponding to each of the designated observation points.

8. The naked eye 3D parameter calibration method according to claim 1, characterized in that: Determining the actual grid pitch according to the coordinate value of the second coordinate on the second coordinate axis and the pixel arrangement period includes: Determining actual spacings between adjacent optimal observation points according to coordinate values ​​of each of the second coordinates on the second coordinate axis; The actual grid pitch is determined according to the actual spacing and the pixel arrangement period.

9. The method for calibrating parameters of naked eye 3D according to claim 1, characterized in that: Determining the first coordinate of the central optimal observation point according to the first coordinate expected value, the specified grating pitch and the theoretical grating placement height includes: Obtain a left-eye view of the observation point to be measured and a right-eye view of the observation point to be measured; Performing a linear transformation on the left-eye view and the right-eye view to determine a first feature mean of the left-eye single-channel image and a second feature mean of the right-eye single-channel image; Obtaining a first theoretical feature mean value of a left-eye view and a second theoretical feature mean value of a right-eye view; Determining an image error according to the first theoretical feature mean, the second theoretical feature mean, the first feature mean, and the second feature mean; Traversing a plurality of observation points to be measured, and generating an image error of each of the observation points to be measured; According to the image errors of the observation points to be measured, the observation point to be measured with the smallest image error is determined as the central optimal observation point.

10. The naked eye 3D parameter calibration method according to claim 9, characterized in that: The obtaining of the left eye view and the right eye view of the observation point to be measured comprises: Acquiring a first image and a second image at an observation point to be measured; Identify the first image and determine that the left-eye image displayed on the screen is a left-eye view; The second image is identified to determine that the right eye image displayed on the screen is a right eye view.

11. A naked eye 3D parameter calibration device, the device comprising: An establishing module, which establishes a coordinate system according to the parameters of the naked-eye 3D system, wherein a direction of a first coordinate axis of the coordinate system is perpendicular to a screen surface of the naked-eye 3D system, and a direction of a second coordinate axis of the coordinate system is parallel to a width direction of the screen of the naked-eye 3D system; An acquisition module, used for acquiring a first coordinate expected value of a specified observation point on the first coordinate axis, a specified grating pitch and a theoretical grating placement height; A first determination module is used to determine the pixel arrangement period and the first coordinate of the central optimal observation point according to the first coordinate expected value, the specified grating pitch and the theoretical grating placement height; A second determination module is used to determine the coordinate values ​​of the second coordinates of at least two local optimal observation points on a second coordinate axis according to the pixel arrangement period, the first coordinate expected value, the first coordinate and the theoretical grating placement height, wherein the at least two local optimal observation points are equally distributed on both sides of the central optimal observation point, and the coordinate values ​​of the local optimal observation points and the central optimal observation point on the first coordinate axis are equal; The third determination module is used to determine the actual grid pitch according to the coordinate value of each of the second coordinates on the second coordinate axis, the first coordinates and the pixel arrangement period.

12. An electronic device, characterized in that: The electronic device comprises: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Method and device for determining grating parameters of naked-eye 3D display equipment, and electronic equipment

    CN107346040A

  • Method and device for determining grating parameters of naked-eye 3D display equipment, and electronic equipment

    CN107346041A