Display method, display system and electronic equipment
By reasonably distributing viewpoints and generating images in the display area, the problem of not being able to recognize multiple viewings in the prior art is solved, and a wider 3D viewing area and multiple angles are achieved, improving the user experience.
Patent Information
- Application Number
- CN202410939138.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-01
AI Technical Summary
The existing three-dimensional display technology cannot identify multiple people at the same time in large-size scenarios, and the human eye tracking of constant devices and locations cannot meet the needs of multiple people to watch, resulting in limited user experience.
By reasonably distributing viewpoints in the display area, determining the sub-display area based on factors, and generating images based on observation positions and depth of field, providing the best viewing position of multiple viewpoints and multiple angles, improving the user's stereoscopic visual experience.
A wider 3D viewing area is created, providing the best viewing locations for multiple viewing points and multiple angles, improving the viewing experience of multiple users and improving the freedom of the stereoscopic visual experience.
Smart Images

Figure CN118890462A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional technology, and more specifically, to a display method, a display system and an electronic device. Background Art
[0002] Stereoscopic display technology can show the depth information and depth of field of images, giving the audience an immersive viewing experience, and therefore has broad market prospects.
[0003] However, most of the current display technologies are based on AI human eye recognition to track the real-time experience of a single user, that is, based on two viewpoints and applied in small-sized display terminals. For some large-scale scenes such as commercial displays, it is necessary to consider the real-time experience of more users. In this case, it is unreasonable to use human eye tracking to cooperate with a constant device and a constant position, and it is impossible to identify business scenarios of multiple people at the same time. Therefore, how to improve the user experience when multiple people watch 3D display images is a technical problem that urgently needs to be solved in the field of three-dimensional technology. Summary of the invention
[0004] In view of the above problems, the present application provides a display method, a display system and an electronic device, which can create a wider 3D viewing area, provide optimal viewing positions with multiple viewpoints and angles, and thus enhance the viewing experience of multiple users.
[0005] In a first aspect, the present application provides a display method, which is applied to a display system, wherein the display system includes a display area, and the display area has N viewpoints. The display method includes: determining a first distribution number of the N viewpoints in a first direction and a second distribution number in a second direction according to a factor of N, the product of the first distribution number and the second distribution number being N, and the first direction being perpendicular to the second direction; determining N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number; determining a standard depth of field of a target according to a system depth of field and a corrected depth of field at a current observation position; and generating an image of the target in the N sub-display areas according to the standard depth of field to obtain a three-dimensional image of the target observed at the current observation position.
[0006] In a possible implementation, when the first resolution is greater than the second resolution, the first distribution number is greater than the second distribution number; when the first resolution is less than the second resolution, the first distribution number is less than the second distribution number; the first resolution is the resolution of the display area in the first direction, and the second resolution is the resolution of the display area in the second direction.
[0007] In a possible implementation manner, the first distribution number and / or the second distribution number is the largest prime factor among the factors.
[0008] In a possible implementation, the factor is determined based on an elliptic curve factorization method.
[0009] In a possible implementation, the standard depth of field is a larger value between the system depth of field and the corrected depth of field.
[0010] In a possible implementation, the display system further includes a virtual camera component, and the corrected depth of field is:
[0011] DOF = (2 × c × CoC) / f,
[0012] Among them, c is the diameter of the blur circle generated when the virtual camera component photographs the target, CoC is the depth of field of the blur circle, and f is the focal length of the virtual camera component.
[0013] In a possible implementation, a third resolution of the target image in the first direction is the first resolution / the first distribution number, and a fourth resolution of the target image in the second direction is the second resolution / the second distribution number.
[0014] In a possible implementation, when the scale of the display system is less than 1 pixel / 1 kilometer, the three-dimensional model of the target is mapped to a two-dimensional space to obtain an image of the target based on the near-section position information of the current observation position and the standard depth of field, pupil distance information, and field of view angle information; and the image of the target is displayed in the corresponding N sub-display areas to obtain a three-dimensional image of the target.
[0015] In a possible implementation, when the scale of the display system is greater than or equal to 1 pixel / 1 kilometer, the three-dimensional model of the target is mapped to a two-dimensional space to obtain an image of the target based on the far-section position information of the current observation position and the standard depth of field, pupil distance information, and field of view angle information; and the image of the target is displayed in the corresponding N sub-display areas to obtain a three-dimensional image of the target.
[0016] In a possible implementation, a first pixel matrix corresponding to the three-dimensional model of the target is subjected to a model change to map the first pixel matrix to a world coordinate system to obtain a second pixel matrix; the second pixel matrix is subjected to equalization processing to obtain a third pixel matrix; and based on the near section information or the far section position information of the current observation position and the standard depth of field, the field of view angle information, and the pupil distance information, the third pixel matrix is mapped to the two-dimensional space to obtain an image of the target.
[0017] In a possible implementation, the third pixel matrix is mapped to a clipping space according to the near-section position information or the far-section position information of the current observation position and the standard depth of field and the field of view angle information to obtain a fourth pixel matrix; a monocular viewing angle deviation value is determined according to the pupil distance information; a projection matrix of the fourth pixel matrix corresponding to the N sub-display areas is determined according to the field of view angle information and the monocular viewing angle deviation value; N sub-images of the target are obtained according to the product of the fourth pixel matrix and the projection matrix of the N sub-display areas; and the N sub-images of the target are correspondingly displayed in the N sub-display areas to obtain the three-dimensional image.
[0018] In a second aspect, the present application provides a display system. The display system includes a display module having a display area and a processing module, wherein the display area has N viewpoints; the processing module is used to determine a first distribution number of the N viewpoints in a first direction and a second distribution number in a second direction according to a factor of N, wherein the product of the first distribution number and the second distribution number is N, and the first direction is perpendicular to the second direction; the processing module is also used to determine N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number; the processing module is also used to determine a standard depth of field of a target according to a system depth of field and a corrected depth of field at a current observation position; the processing module is also used to generate an image of the target in the N sub-display areas according to the standard module; the display module is used to display a three-dimensional image of the target observed at the current observation position according to the image of the target in the N sub-display areas.
[0019] In a third aspect, the present application provides an electronic device, comprising a memory for storing a computer program; and a processor for executing the computer program stored in the memory so that a display system executes a display method as described in any embodiment of the first aspect of the present application.
[0020] In a fourth aspect, the present application provides an electronic device, comprising a module or unit for executing the display method as described in any embodiment of the first aspect of the present application.
[0021] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a computer, the display method described in any embodiment of the first aspect of the present application is implemented.
[0022] In a sixth aspect, the present application provides a computer program product, which includes a computer program code. When the computer program code is run on a computer, it implements the display method as described in any embodiment of the first aspect of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the drawings without paying creative work.
[0024] Figure 1 A schematic diagram of a flow chart of a display method according to an embodiment of the present application;
[0025] Figure 2 A schematic diagram of an application scenario of an embodiment of the present application;
[0026] Figure 3 A schematic diagram of the structure of a display system according to an embodiment of the present application;
[0027] Figure 4 It is a schematic structural diagram of an electronic device according to one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0029] The "range" disclosed in the present application is defined in the form of a lower limit and an upper limit, and a given range is defined by selecting a lower limit and an upper limit, and the selected lower limit and upper limit define the boundary of a specific range. The range defined in this way includes the endpoint values, and can be arbitrarily combined, that is, any lower limit can be combined with any upper limit to form a range. For example, if the range of 60-120 and 80-110 is listed for a specific parameter, it is understood that the range of 60-110 and 80-120 is also expected. In addition, if the minimum range values 1 and 2 are listed, and if the maximum range values 3, 4 and 5 are listed, the following ranges can all be expected: 1-3, 1-4, 1-5, 2-3, 2-4 and 2-5. In the present application, unless otherwise specified, the numerical range "ab" represents the abbreviation of any real number combination between a and b, wherein a and b are real numbers. For example, the numerical range "0-5" represents that all real numbers between "0-5" have been fully listed herein, and "0-5" is just the abbreviation of these numerical combinations. In addition, when a parameter is expressed as an integer ≥ 2, it is equivalent to disclosing that the parameter is, for example, an integer of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, etc.
[0030] If not otherwise specified, all embodiments and optional embodiments of the present application can be combined with each other to form a new technical solution.
[0031] Unless otherwise specified, all technical features and optional technical features of this application can be combined with each other to form a new technical solution.
[0032] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0033] References to "one embodiment", "some embodiments", "an example" or "some examples" described in this specification mean that a particular feature, structure or characteristic described in conjunction with the example is included in one or more examples of the present application. Thus, the phrases "in one embodiment", "in some other examples", "in some other examples", etc. appearing at different places in this specification do not necessarily all refer to the same example, but mean "one or more but not all examples", unless otherwise specifically emphasized. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0034] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different description objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0035] The present application embodiments will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale. In addition, some well-known parts may not be shown in the drawings.
[0036] Naked-eye three-dimensional (3D) display technology allows viewers to watch 3D images without wearing glasses. It has a high-freedom stereoscopic visual viewing experience, which is more in line with the human eye's viewing experience of the real world outside. Therefore, it has become a hot topic of research in academia and industry in recent years.
[0037] Naked-eye 3D display technology includes free stereoscopic display technology, integrated imaging technology, desktop light field display technology, etc. Free stereoscopic display technology is currently the only commercial naked-eye 3D display technology on the market due to its simple device structure and low cost. However, traditional free stereoscopic display technology has the problems of insufficient number of viewpoints and narrow viewing angle, which restrict its further development and application. Insufficient number of viewpoints will make the motion perspective of the presented 3D image discontinuous, the expression of depth information unnatural, and the number of viewing users limited; narrow viewing angle will lead to limited viewing freedom, greatly affecting the stereoscopic visual experience.
[0038] In view of the above problems, the present application provides a display method, a display system and an electronic device, which can create a wider 3D viewing area, provide optimal 3D viewing positions with multiple viewpoints and multiple angles, and improve the user's viewing freedom, thereby enhancing the user's stereoscopic visual experience, by reasonably distributing the viewpoints in the display area and improving the depth of field during three-dimensional mapping.
[0039] The display method, display system and electronic device described in the present application will be described in detail below with reference to the accompanying drawings.
[0040] A first aspect of the present application provides a display method, which is applied to a display system, wherein the display system includes a display area, and the display area has N viewpoints.
[0041] In 3D display technology, the viewpoint refers to the angle of the user's position relative to the screen when viewing the display area. More specifically, the viewpoint is the virtual position where the observer's eyes each receive an image.
[0042] In naked-eye 3D technology, the display area, or the display screen, emits or displays images based on multiple preset viewpoints, each of which corresponds to slightly different visual information, imitating the parallax scenes seen by the left and right eyes in reality. When these images with parallax are received by the user's eyes and transmitted to the brain, the brain will fuse this information to construct an image with depth and stereoscopicity, that is, a three-dimensional image.
[0043] It should be understood that the display area described in the embodiments of the present application can be understood as a virtual window for displaying 3D images, and can also be understood as a display / display panel.
[0044] Figure 1 FIG. 1 is a flow chart of a display method according to an embodiment of the present application. Figure 1 The display method shown includes:
[0045] S110: Determine, according to a factor of N, a first distribution number of N viewpoints in a first direction and a second distribution number in a second direction, wherein the product of the first distribution number and the second distribution number is N, and the first direction is perpendicular to the second direction.
[0046] It should be understood that N must be a positive integer greater than 1.
[0047] It should be understood that, unless otherwise specified, the first direction described in the embodiments of the present application is a horizontal direction, and the second direction described is a vertical direction.
[0048] Determining the first distribution number and the second distribution number according to factors of N means that the first distribution number and the second distribution number are both factors of N, and the product of the first distribution number and the second distribution number is N.
[0049] Specifically, when N is 9, the factors of N are 1, 3 and 9, and the first distribution number can be 1, 3 and 9. When the first distribution number is 1, the second distribution number is 9, when the first distribution number is 3, the second distribution number is 3, and when the first distribution number is 9, the second distribution number is 1.
[0050] More specifically, when the first distribution number and the second distribution number are 1 and 9 respectively, it indicates that the arrangement of the viewpoints in the horizontal and vertical directions is 1×9; if the first distribution number and the second distribution number are both 3, it indicates that the arrangement of the viewpoints in the horizontal and vertical directions is 3×3.
[0051] S120: Determine N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number.
[0052] As mentioned above, the viewpoint is the position where the user views the image in the display system. In naked-eye 3D technology, each viewpoint has a separate image, so we can also say that each viewpoint has a corresponding sub-display area for displaying the image of each viewpoint.
[0053] Specifically, when the first distribution number and the second distribution number of the 9 viewpoints are both 3, that is, the arrangement of the viewpoints in the horizontal direction and the vertical direction is 3×3. At this time, the display area is divided into 9 sub-display areas, and the arrangement of the 9 sub-display areas in the first direction and the second direction is also 3×3.
[0054] S130: Determine the standard depth of field of the target according to the system depth of field and the corrected depth of field at the current observation position.
[0055] It should be understood that the system depth of field exists in the twin scene itself. Generally speaking, we can directly obtain it from the post-process volume and other post-production boxes in the display system. However, the system depth of field obtained directly usually contains beautification or complex visual effects, which may affect the later 3D imaging. Therefore, it is necessary to correct the depth of field value to obtain the standard depth of field to reduce the impact of the depth of field value on the later 3D imaging.
[0056] S140: Generate images of the target in the N sub-display areas according to the standard depth of field to obtain a three-dimensional image of the target observed at the current observation position.
[0057] Specifically, when observing different targets at different observation positions, the system depth of field should be different. The standard depth of field is obtained by comparing the system depth of field and the corrected depth of field, and then the standard depth of field is brought into the later 3D imaging of the target.
[0058] In the above scheme, the display area has N viewpoints. By determining the first distribution number and the second distribution number of the N viewpoints in the first direction and the second direction respectively according to the factor of N, and then determining the arrangement of the N sub-display areas of the display area corresponding to the N viewpoints, while creating a wider 3D viewing area, the most reasonable and optimal 3D visual experience angle can be provided to the user; by determining the standard depth of field of the target according to the system depth of field and the corrected depth of field of the target at the current observation position, the display effect of the 3D image can be improved, and then the user's viewing experience can be enhanced.
[0059] In some embodiments, when the first resolution is greater than the second resolution, the first distribution number is greater than the second distribution number; when the first resolution is less than the second resolution, the first distribution number is less than the second distribution number; the first resolution is the resolution of the display area in the first direction, and the second resolution is the resolution of the display area in the second direction.
[0060] It should be understood that when the sub-display areas of the display area are divided, the resolution of the display area is also divided. The viewpoint distribution determines the distribution of the sub-display areas. By dividing the N viewpoints into zones, the division of the N sub-display areas is determined, and the display resolution of each sub-display area is also determined.
[0061] For example, the first distribution number and the second distribution number of 48 viewpoints may be 6 and 8, that is, the arrangement of the 48 viewpoints is 6 × 8. When the first resolution is larger than the second resolution, the first distribution number is 8 and the second distribution number is 6; when the first resolution is smaller than the second resolution, the first distribution number is 6 and the second distribution number is 8.
[0062] In the above solution, the side with higher resolution can be divided into more areas, thus reducing the impact on the image clarity of the sub-display area to the greatest extent.
[0063] In some embodiments, the first distribution number and / or the second distribution number is the largest prime factor among the factors.
[0064] It should be understood that prime factors, also known as prime factors or prime factors, refer to prime numbers that can divide a given positive integer.
[0065] Specifically, the factors of 12 are 1, 2, 3, 4, 6 and 12, so the 12 viewpoints can be arranged in 1×12, 2×6, 3×4 (the first distribution number and the second distribution number are not distinguished here). The largest prime factor of 12 is 3, so when there are 12 viewpoints, the first distribution number or the second distribution number that determines the viewpoint distribution is 3.
[0066] Specifically, the factors of 25 are 1, 5, and 25. Therefore, the 25 viewpoints can be arranged in 1×25 and 5×5. The largest prime factor of 25 is 5. Therefore, when there are 25 viewpoints, the first distribution number and the second distribution number that determine the viewpoint distribution are both 5.
[0067] In the above scheme, by extracting the maximum prime factor of N, the viewpoints can be distributed most reasonably, thereby further improving the user's visual experience.
[0068] It should be noted here that the first distribution number and the second distribution number must be factors of N. However, the specific values need to be specifically considered in combination with the first resolution, the second resolution, and the maximum prime factor.
[0069] In some implementations, the factors are determined based on elliptic curve numerator factorization.
[0070] The advantage of elliptic curve factorization is that it can be faster in some cases than other traditional methods, such as Pollard's rho algorithm or the Quadratic Sieve algorithm, especially when dealing with large integers with special structure.
[0071] The following is a brief introduction to the steps of the elliptic curve molecular decomposition method:
[0072] S210: Select an elliptic curve: First, select an elliptic curve E and a base point P defined on a finite field. The finite field is usually a remainder class ring Z / ZN modulo N, where N is the integer to be decomposed.
[0073] S220: Construct sequence: Generate a sequence S = {P, Q, R, ...} by randomly selecting points and performing addition and multiplication operations on the elliptic curve, where each point is a multiple of the previous point.
[0074] S230: Search loop: For each pair of adjacent points Si and Si+1 in the sequence, calculate the difference Δi=Si-Si+1 between them. Then, for each difference Δi, calculate its order λi, that is, the smallest positive integer such that [λi]Δi=O (O represents the point at infinity).
[0075] S240: Check order: If an order λi is found to satisfy and Where π(n) is the number of prime numbers less than or equal to n, then λi is a non-trivial factor of n (because according to the Chinese remainder theorem, if and Then there must be a number k less than n and not coprime with n, such that kλi≡0(modn), so k or n / k is a non-trivial factor of n).
[0076] S250: Check error: If the factor 0 is not found or a smaller factor is desired, the initial point, sequence construction method or elliptic curve parameters may be changed, and then steps S210-S240 are repeated.
[0077] In some embodiments, the standard depth of field is the larger value of the system depth of field and the corrected depth of field.
[0078] It should be understood that "relatively" refers to a comparison between the system depth of field and the corrected depth of field. If the system depth of field is greater than the corrected depth of field, the standard depth of field is the system depth of field; if the system depth of field is less than the corrected depth of field, the standard depth of field is the corrected depth of field.
[0079] In some embodiments, the display system also includes a virtual camera component, and the corrected depth of field DOF is: DOF = (2×c×CoC) / f, where c is the diameter of the blur circle generated when the virtual camera component shoots the target, CoC is the depth of field of the blur circle, and f is the focal length of the virtual camera component.
[0080] In 3D display or in the wider field of graphics and imaging, the blur circle usually refers to the phenomenon that a point appears as a blurred circular spot in the final image due to factors such as optical limitations, depth of focus, or blur algorithms in image processing. The calculation and control of the blur circle are very important for simulating real-world imaging effects, depth perception, or post-processing of images. Usually, adjusting the size of the blur circle can simulate the depth of field effect under different focal lengths and aperture settings, or increase the realism of the scene in 3D rendering.
[0081] It should be noted that the values of c, f and CoC can all be directly obtained from the display system.
[0082] In the above solution, by taking a larger depth of field value as the standard depth of field, the effect of the final three-dimensional image is more obvious.
[0083] The following is a brief introduction to the method of obtaining system depth of field from the display system.
[0084] S310: Get the Post Process Volume configuration: Open the detailed settings of the Post Process Volume and find the "Post Process Settings" section. In the "Post Process Settings", find the "Depth of Field" category.
[0085] S320: Set depth of field parameters: Under the "Depth of Field" category, you can adjust the following parameters to control the depth of field effect:
[0086] Method: Select the depth of field calculation method, usually there are Circle Bokeh, Hexagonal Bokeh, Disk Bokeh and other options; Focus Distance: Set the focus distance, that is, the distance of the plane in sharp focus in the scene from the camera; Focal Length: Set the focal length of the lens, which affects the range of depth of field; Aperture Size: Set the aperture size, the larger the aperture size, the shallower the depth of field and the more obvious the blur effect; Blur Tolerance: Control the threshold of the blur degree; Foreground Blur and Background Blur: Control the blur intensity of the foreground and background respectively.
[0087] The following briefly introduces the specific steps for obtaining the corrected depth of field.
[0088] S410: In a display system, such as UE4, create two virtual cameras, such as using UCameraComponent to simulate a dual-camera system. The two virtual cameras should have the same focal length, aperture, and other related settings, but the positions and directions should be different to simulate the spacing and angle between the two actual cameras.
[0089] S420: Render to texture: Use each virtual camera to render separately and save the rendering results as textures (Render Targets). This can be achieved by using BeginRenderingView and EndRenderingView functions or creating a custom rendering path.
[0090] S430: For the two rendered textures obtained, stereo matching is performed to estimate the depth information between pixels. This step usually involves feature detection, matching, and disparity calculation. In UE4, it may be necessary to use a third-party computer vision library (such as OpenCV) or write a custom Shader to implement these algorithms.
[0091] S440: Calculate the corrected depth of field according to a calculation formula.
[0092] In some embodiments, a third resolution of the target image in the first direction is the first resolution / first distribution number, and a fourth resolution of the target image in the second direction is the second resolution / second distribution number.
[0093] It should be understood that the manner in which the N sub-display areas of the present application display the target image is content that can be set according to actual conditions.
[0094] Specifically, assuming that the number of viewpoints of the present application is 4, the first distribution number and the second distribution number are both 2, and the resolution of the display area is 7680×7320, the resolution of each sub-display area in the N display areas is set to 3840×3660.
[0095] In some embodiments, when the scale of the display system is less than 1 pixel / 1 kilometer, the three-dimensional model of the target is mapped to a two-dimensional space to obtain an image of the target based on the near-section position information of the current observation position and the standard depth of field, pupil distance information, and field of view angle information; the image of the target is displayed in corresponding N sub-display areas to obtain a three-dimensional image of the target.
[0096] In some embodiments, when the scale of the display system is greater than or equal to 1 pixel / 1 kilometer, the three-dimensional model of the target is mapped to a two-dimensional space to obtain an image of the target based on the far-section position information of the current observation position and the standard depth of field, pupil distance information, and field of view angle information; the image of the target is displayed in corresponding N sub-display areas to obtain a three-dimensional image of the target.
[0097] Specifically, "1 pixel / 1 km" means that in the display system, each pixel represents a distance of 1 km in the real world. In other words, one pixel in the display system corresponds to a real distance of 1000 meters in the actual scene.
[0098] The embodiment of the present application provides a parameter customization interface so that the user can adjust the display system according to the user's observation position (i.e., near-far interface position information) or his own physiological characteristics (i.e., field of view angle and pupil distance), so that the display system can control the display of the target image based on the user-defined parameters. Specifically, after the display system receives the user-defined field of view angle (FOV) information, pupil distance (OD), near section position information, far section position information and standard depth of field, it will control the display of the target image according to the above information.
[0099] Specifically, the field of view angle information indicates the field of view of the human eye. When a specific device (such as a robot with a rotating camera) simulates the human eye, the field of view angle indicates the field of view of the specific device.
[0100] Specifically, the pupil distance refers to the distance between a person's left and right eyes.
[0101] Specifically, the near section position and the far section position respectively represent the farthest section of the observed target that is closest to the human eye / specific device, with the human eye / specific device as the center.
[0102] Specifically, when the scale of the display system is less than 1 pixel / 1 km, the display system adjusts the mapping effect of the target and controls the display of the final target image according to the near-section position information and standard depth of field of the user's current observation position, combined with the user's own field of view and pupil distance information; when the scale of the display system is greater than or equal to 1 pixel / 1 km, the display system adjusts the mapping effect of the target and controls the display of the final target image according to the far-section position information and standard depth of field of the user's current observation position, combined with the user's own field of view and pupil distance information.
[0103] Figure 2 Schematic diagram of an application scenario of an embodiment of the present application. Figure 2 In the figure, eye represents the current observation position, np represents the near section position, fp represents the far section position, L1 represents the distance from the near section position np to the current observation position eye, L2 represents the standard depth of field value, p represents the target to be observed, and p' represents the section from the target to be observed p (perspective) to the near section np.
[0104] Specifically, if the scale of the display system is less than 1 pixel / 1 km, after p(x,y,z) is projected to p' of the near section position np, its coordinates change from (x,y,z) to (-L1*x / z,-L1*y / z,-L1). Combined with the standard depth of field, the coordinates of the target at the far section position fp are calculated to be (-(L1+L2)*x / z,-(L1+L2)*y / z,-(L1+L2)); if the scale of the display system is greater than or equal to 1 pixel / 1 km, the information of the near section position can be calculated by combining the far section position information and the standard depth of field, which will not be repeated here.
[0105] In the above scheme, by adjusting another position information based on the different distances between the user and the observation target and taking different cross-sectional positions as a reference, the generation effect of the target image can be improved, thereby enhancing the user's stereoscopic visual experience.
[0106] In one possible implementation, a first pixel matrix corresponding to a three-dimensional model of the target is subjected to a model change to map the first pixel matrix to a world coordinate system to obtain a second pixel matrix; the second pixel matrix is subjected to equalization processing to obtain a third pixel matrix; and the third pixel matrix is mapped to a two-dimensional space based on near-section position information or far-section position information of a current observation position and standard depth of field, field of view angle information, and pupil distance information to obtain an image of the target.
[0107] It should be understood that the image of the target in the implementation mode of the present application is an image obtained after a three-dimensional model is mapped to a two-dimensional space. Therefore, the implementation mode of the present application will perform model transformation (Model Transform), observation transformation (View Transform) and projection transformation (Projection Transform) on the three-dimensional model of the target, so as to map the first pixel matrix corresponding to the three-dimensional model of the target in the local three-dimensional space to the second pixel matrix in the world space, and then map the second pixel matrix world space to the observation space and the clipping space in sequence. The following about the model transformation, observation transformation and projection transformation that are repeated with the prior art, this application will not repeat them here.
[0108] It should be understood that before mapping the second pixel matrix into the image of the target, the implementation mode of the present application will also perform equalization processing on the second pixel matrix to avoid the field of view angle distortion problem that may occur when the elements in the second pixel matrix are projected into the two-dimensional space, thereby ensuring that the shape of the three-dimensional model of the target after projection is correct.
[0109] It should be understood that according to the near-section position information or far-section position information and the standard depth of field of the current observation position, it means that under different scales, the image of the target is obtained according to the near-section position information and the standard depth of field of the current observation position, or according to the far-section position information and the standard depth of field of the current observation position. If similar descriptions appear below, they will not be repeated.
[0110] In some embodiments, based on the near-section position information or the far-section position information of the current observation position and the standard depth of field and field angle information, the third pixel matrix is mapped to the clipping space to obtain a fourth pixel matrix; based on the pupil distance information, the monocular parallax deviation value is determined; based on the field angle information and the monocular perspective deviation value, the projection matrix of the fourth pixel matrix corresponding to the N sub-display areas is determined; based on the product of the fourth pixel matrix and the projection matrix of the N sub-display areas, N sub-images of the target are obtained; and the N sub-images of the target are correspondingly displayed in the N sub-display areas to obtain a three-dimensional image.
[0111] Specifically, after mapping the three-dimensional model of the target to the clipping space to obtain the corresponding fourth pixel matrix, in order to reasonably display the fourth pixel matrix in the N sub-display areas of the display area, the implementation mode of the present application also determines the difference between the user's left and right eyes observing the sub-display areas respectively through the pupil distance and the field of view, that is, the monocular viewing angle deviation value.
[0112] After determining the monocular parallax deviation value, the implementation mode of the present application will determine the display form of the fourth pixel matrix in the N sub-display areas based on the monocular parallax deviation value and the visible range of the human eye (field of view angle) to ensure that the fourth pixel matrix can be displayed completely and reasonably when displayed in the N sub-display areas.
[0113] The fourth pixel matrix is multiplied by the projection matrix of the N sub-display regions to obtain N sub-images of the target, which are then displayed in the corresponding N sub-display regions to obtain a three-dimensional image.
[0114] Figure 3 FIG. 1 is a schematic diagram of the structure of a display system according to an embodiment of the present application. Figure 3 As shown, the display system 300 includes a display module 320 having a display area and a processing module 310, and the display area has N viewpoints.
[0115] The processing module 310 is used to determine the first distribution number of N viewpoints in the first direction and the second distribution number in the second direction according to the factor of N, the product of the first distribution number and the second distribution number is N, and the first direction is perpendicular to the second direction; the processing module 310 is also used to determine N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number; the processing module 310 is also used to determine the standard depth of field of the target according to the system depth of field and the corrected depth of field of the current observation position; the processing module 310 is also used to generate images of the targets in the N sub-display areas according to the standard depth of field.
[0116] The display module 320 is used to display a three-dimensional image of the currently observed target according to the images of the target in the N sub-display areas.
[0117] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device 400 includes a processor 410 and a memory 420, wherein the memory 420 is used to store computer programs, and the processor 410 is used to call the computer programs so that the display system 300 implements the methods of the various embodiments of the present application.
[0118] The processor 410 may include one or more processing units, wherein different processing units may be independent components or may be integrated into one or more processors.
[0119] The memory 420 may include an external memory interface and an internal memory. The external memory interface may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the display system 300. The external memory card communicates with the processor 410 via the external memory interface to implement a data storage function. For example, files such as music and videos are stored in the external memory card.
[0120] The embodiment of the present application further provides a computer program product, which includes: a computer program code, and when the computer program code is executed on a computer, the computer executes the method in the above embodiment.
[0121] The embodiment of the present application further provides a computer-readable medium, wherein the computer-readable medium stores a program code. When the computer program code runs on a computer, the computer executes the method in the above embodiment.
[0122] Although the present application has been described with reference to preferred embodiments, various modifications may be made thereto and parts or steps therein may be replaced with equivalents without departing from the scope of the present application. In particular, the various technical features mentioned in the various embodiments may be combined in any manner as long as there is no conflict in structure or method steps. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A display method, It is characterized in that Applied to a display system, the display system includes a display area, the display area has N viewpoints, and the display method includes: Determine, according to a factor of N, a first distribution number of the N viewpoints in a first direction and a second distribution number in a second direction, wherein a product of the first distribution number and the second distribution number is N, and the first direction is perpendicular to the second direction; Determining N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number; Determine the standard depth of field of the target based on the system depth of field and the corrected depth of field at the current observation position; According to the standard depth of field, images of the target in the N sub-display areas are generated to obtain a three-dimensional image of the target observed at the current observation position.
2. The display method according to claim 1, It is characterized in that When the first resolution is greater than the second resolution, the first distribution number is greater than the second distribution number; When the first resolution is smaller than the second resolution, the first distribution number is smaller than the second distribution number; The first resolution is a resolution of the display area in the first direction, and the second resolution is a resolution of the display area in the second direction.
3. The display method according to claim 2, It is characterized in that The first distribution number and / or the second distribution number is the largest prime factor among the factors.
4. The display method according to claim 1, It is characterized in that The display method further includes: The factors are determined based on elliptic curve factorization.
5. The display method according to claim 1, It is characterized in that Determining the standard depth of field of the target according to the system depth of field and the corrected depth of field at the current observation position includes: The standard depth of field is a larger value between the system depth of field and the corrected depth of field.
6. The display method according to claim 5, It is characterized in that The display system further includes a virtual camera assembly, and the corrected depth of field DOF is: DOF = (2 × c × CoC) / f, Wherein c is the diameter of the blur circle generated when the virtual camera assembly photographs the target, CoC is the depth of field of the blur circle, and f is the focal length of the virtual camera assembly.
7. The display method according to any one of claims 3 to 6, It is characterized in that A third resolution of the image of the target in the first direction is the first resolution / the first distribution number, and a fourth resolution of the image of the target in the second direction is the second resolution / the second distribution number.
8. The display method according to claim 7, It is characterized in that The step of generating images of the target in the N sub-display areas according to the standard depth of field to obtain a three-dimensional image of the target observed at the current observation position includes: When the scale of the display system is less than 1 pixel / 1 km, mapping the three-dimensional model of the target to a two-dimensional space to obtain an image of the target according to the near-section position information of the current observation position and the standard depth of field, pupil distance information and field angle information; The image of the target is displayed in the corresponding N sub-display areas to obtain a three-dimensional image of the target.
9. The display method according to claim 7, It is characterized in that The step of generating images of the target in the N sub-display areas according to the standard depth of field to obtain a three-dimensional image of the target observed at the current observation position includes: When the scale of the display system is greater than or equal to 1 pixel / 1 km, mapping the three-dimensional model of the target into a two-dimensional space to obtain an image of the target according to the telescopic cross-section position information of the current observation position and the standard depth of field, pupil distance information and field angle information; The image of the target is displayed in the corresponding N sub-display areas to obtain a three-dimensional image of the target.
10. The display method according to claim 8 or 9, It is characterized in that Mapping the three-dimensional model of the target to a two-dimensional space to obtain an image of the target includes: Performing a model transformation on a first pixel matrix corresponding to the three-dimensional model of the target to map the first pixel matrix to a world coordinate system to obtain a second pixel matrix; Performing equalization processing on the second pixel matrix to obtain a third pixel matrix; According to the near section position information or the far section position information of the current observation position and the standard depth of field, the field of view angle information and the pupil distance information, the third pixel matrix is mapped to the two-dimensional space to obtain an image of the target.
11. The display method according to claim 10, It is characterized in that The mapping the third pixel matrix to a two-dimensional space to obtain an image of the target according to the near-section position information or the far-section position information of the current observation position and the standard depth of field, the field of view angle information, and the pupil distance information includes: According to the near section position information or the far section position information of the current observation position and the standard depth of field and the field angle information, the third pixel matrix is mapped to a clipping space to obtain a fourth pixel matrix; Determining a monocular visual angle deviation value according to the pupil distance information; Determining, according to the field of view angle information and the monocular viewing angle deviation value, a projection matrix of the fourth pixel matrix corresponding to the N sub-display areas; Obtaining N sub-images of the target according to the product of the fourth pixel matrix and the projection matrix of the N sub-display areas; The N sub-images of the target are displayed correspondingly in the N sub-display areas to obtain the three-dimensional image.
12. A display system, It is characterized in that The display system includes a display module having a display area and a processing module, wherein the display area has N viewpoints; The processing module is used to determine, according to a factor of N, a first distribution number of the N viewpoints in a first direction and a second distribution number in a second direction, wherein a product of the first distribution number and the second distribution number is N, and the first direction is perpendicular to the second direction; The processing module is further used to determine N sub-display areas of the display area corresponding to the N viewpoints according to the first distribution number and the second distribution number; The processing module is also used to determine the standard depth of field of the target according to the system depth of field and the corrected depth of field at the current observation position; The processing module is further used to generate images of the targets in the N sub-display areas according to the standard depth of field; The display module is used to display a three-dimensional image of the target observed at the current observation position according to the images of the target in the N sub-display areas.
13. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to execute the computer program stored in the memory so that the display system executes the display method according to any one of claims 1 to 11.
14. An electronic device, It is characterized in that The method comprises a module or a unit for executing the display method according to any one of claims 1 to 11.
15. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a computer, the display method according to any one of claims 1 to 11 is implemented.
16. A computer program product, It is characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the display method according to any one of claims 1 to 11 is implemented.
