3D Display Method, Device and Storage Medium for 2D Images
By periodically adjusting the target offset between the first image and the second image in the 2D image to be in the reference offset interval, the problem that only one eye can receive the view when the user observes the 3D image, and the effect of the user clearly receiving the 3D image is achieved.
Patent Information
- Application Number
- CN202111305761.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-05
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-11-05
AI Technical Summary
When converting a 2D image to a 3D image, due to the existence of observation angles, users often only have one eye to receive the view, and the other eye cannot receive the view, resulting in the inability to view clear 3D images, affecting the viewing effect.
By periodically adjusting the target offset between the first image and the second image, it is always in the reference offset interval, ensuring that both eyes of the user can receive the view, thereby observing a clear 3D image.
It realizes that when the 2D image is converted into 3D image, the user can receive the view with both eyes, which improves the viewing effect and ensures that the user can observe clear 3D images.
Smart Images

Figure CN114092318B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of visual training, and particularly to a 3D display method, device and storage medium for 2D images. Background Art
[0002] Visual training is a training method for the eyes and the brain, which retrains the relationship between the brain and the eyes. Just like doing eye movements, this is a continuous stimulation and training of the brain's visual nerve cognitive system, increasing eye movement, focusing, fixation ability, and the cooperation ability of both eyes, visual processing ability, and treating visual functions such as amblyopia.
[0003] Binocular fusion phenomenon is a visual phenomenon. When both eyes observe the same object, the object forms an image on the respective retinas, and then is transmitted to the same area of the cortical visual center through the optic nerves on both sides, and is fused into a complete and single image perception experience. Generally speaking, when there are similar or related graphics, brightness, or color images in the two visual fields, binocular image matching and fusion are likely to occur. Otherwise, binocular diplopia, alternation of the two, or unilateral suppression often occur throughout the process.
[0004] Binocular vision refers to the vision of observing an object with both eyes at the same time. Although the two eyes form retinal images separately, normal binocular vision can fuse the two images into a single perceptual object. If the object observed by both eyes is a flat object, the two retinal images both fall on the corresponding points of the two retinas, and the positions of the corresponding points are the same; if the object observed by both eyes is a three-dimensional object, the retinal images of the two eyes are not exactly the same, forming binocular disparity and generating stereoscopic perception.
[0005] However, when converting a 2D image into a 3D image, due to the existence of the viewing angle, users can often only receive the view with one eye, and the other eye has no way to receive the view, resulting in an inability to view a clear 3D image and affecting the viewing effect. Summary of the Invention
[0006] The present application provides a 3D display method, device and storage medium for 2D images, which can periodically adjust the target offset between the first image and the second image within the reference offset interval to ensure that both eyes of the user can receive the view, and thus a clear 3D image can be observed.
[0007] The first aspect of the present application provides a 3D display method for 2D images, including:
[0008] Determine a first image and a second image corresponding to the target image, where the target image is a 2D image to be 3D displayed;
[0009] Determine the reference offset interval corresponding to the target user who views the 2D image after 3D display at a preset distance;
[0010] Periodically adjust the target offset between the first image and the second image within the reference offset range;
[0011] Interleave the first image and the second image after adjusting the target offset to perform 3D display of the 2D image.
[0012] In a possible design, the determining the reference offset range corresponding to the target user who views the 3D display image at a preset distance includes:
[0013] Determine the initial visual parameters corresponding to the target user;
[0014] Adjust the offset between the third image and the fourth image corresponding to the first test 3D image;
[0015] Record the actual visual parameters corresponding to the target user when the offset third image and fourth image are presented after blanking;
[0016] Determine the first maximum offset and the first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameters match the initial visual parameters;
[0017] Determine the reference offset range according to the first maximum offset and the first minimum offset.
[0018] In a possible design, the determining the reference offset range corresponding to the target user who views the 2D image after 3D display at a preset distance includes:
[0019] Offset at least one of the fifth image and the sixth image according to the operation instruction of the target user, where the fifth image and the sixth image are images corresponding to the second test 3D image;
[0020] If a recording instruction from the target user is received, record the second maximum offset and the second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction;
[0021] Determine the reference offset range according to the second maximum offset and the second minimum offset.
[0022] In a possible design, the periodically adjusting the target offset between the first image and the second image within the reference offset range includes:
[0023] Periodically adjust the target offset within the reference offset range by the following formula:
[0024] Δd = f(t);
[0025] Wherein, Δd is the target offset, f(t) is a periodic continuous function, and t is a time variable.
[0026] In a possible design, the method further includes:
[0027] Determine a first offset between the position of the first image after adjustment and the position of the first image before adjustment;
[0028] Determine a second offset between the position of the second image after adjustment and the position of the second image before adjustment;
[0029] Determine the sum value of the first offset and the second offset as the target offset.
[0030] A second aspect of the present application provides a terminal device, including:
[0031] A first determination unit, configured to determine a first image and a second image corresponding to a target image, wherein the target image is a 2D image to be displayed in 3D;
[0032] A second determination unit, configured to determine a reference offset interval corresponding to a target user who views the 2D image after 3D display at a preset distance;
[0033] An adjustment unit, configured to periodically adjust a target offset between the first image and the second image within the reference offset interval;
[0034] A generation unit, configured to interleave the first image and the second image after adjusting the target offset, so as to display the 2D image in 3D.
[0035] In a possible design, the second determination unit is specifically configured to:
[0036] Determine an initial visual parameter corresponding to the target user;
[0037] Adjust an offset between a third image and a fourth image corresponding to a first test 3D image;
[0038] Record the actual visual parameter corresponding to the target user when the offset third image and the fourth image are presented after blanking;
[0039] Determine a first maximum offset and a first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameter matches the initial visual parameter;
[0040] Determine the first maximum offset and the first minimum offset as the reference offset interval.
[0041] In a possible design, the second determining unit is further specifically configured to:
[0042] Offset at least one of the fifth image and the sixth image according to the operation instruction of the target user, where the fifth image and the sixth image are images corresponding to the second test 3D image;
[0043] If a recording instruction from the target user is received, record the second maximum offset and the second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction;
[0044] Determine the reference offset interval according to the second maximum offset and the second minimum offset.
[0045] In a possible design, the adjusting unit is specifically configured to:
[0046] Periodically adjust the target offset within the reference offset interval through the following formula:
[0047] Δd = f(t);
[0048] Where Δd is the target offset, f(t) is a periodic continuous function, and t is a time variable.
[0049] In a possible design, the first determining unit is further configured to:
[0050] Determine the first offset between the position of the first image after adjustment and the position of the first image before adjustment;
[0051] Determine the second offset between the position of the second image after adjustment and the position of the second image before adjustment;
[0052] Determine the sum value of the first offset and the second offset as the target offset.
[0053] The third aspect of this application provides a computer device, which includes at least one connected processor, a memory, and a transceiver, where the memory is used to store program codes, and the processor is used to call the program codes in the memory to execute the steps of the 3D display method for 2D images described in the first aspect above.
[0054] The fourth aspect of this application provides a computer storage medium, which includes instructions that, when running on a computer, cause the computer to execute the steps of the 3D display method for 2D images described in any of the above aspects.
[0055] In summary, it can be seen that in the embodiments provided in the present application, compared with the related art, the target offset between the first image and the second image can be adjusted periodically, so that the adjusted target offset is always within the reference offset interval, ensuring that both eyes of the user can receive the view when viewing the 2D image converted into a 3D image, and thus a clear 3D image can be observed. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a schematic flowchart of a 3D display method for a 2D image provided by an embodiment of the present application;
[0057] Figure 2 It is a schematic diagram of a standard test 3D image provided by an embodiment of the present application;
[0058] Figure 3 It is a schematic virtual structure diagram of a terminal device provided by an embodiment of the present application;
[0059] Figure 4 It is a schematic hardware structure diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0060] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0061] In the description and claims of this application and the above-mentioned drawings, terms such as "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules does not necessarily have to be limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products, or devices. The division of modules in this application is only a logical division, and there may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system, or some feature vectors can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections between modules can be electrical or other similar forms, which are not limited in this application. And the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed to multiple circuit modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application.
[0062] The 3D display method, device, and storage medium for 2D images provided by the embodiments of this application can be applied to visual training, conventional 3D video processing, and personalized 3D display solutions.
[0063] The following will describe the 3D display method for 2D images provided by the embodiments of this application from the perspective of a terminal device. Please refer to Figure 1 , Figure 1 which is a schematic flowchart of the 3D display method for 2D images provided by the embodiments of this application, including:
[0064] 101. Determine a first image and a second image corresponding to the target image.
[0065] In this embodiment, the terminal device can first obtain the target image, which is a 2D image to be 3D displayed. The target image can be an independent 2D image or each frame of 2D image in a video stream, and is not specifically limited. After obtaining the target image, the first image and the second image corresponding to the target image can be determined, that is, the 2D image is copied to obtain the first image and the second image.
[0066] 102. Determine the reference offset interval corresponding to the target user who views the 2D image for 3D display at a preset distance.
[0067] In this embodiment, the terminal device can determine the reference offset range corresponding to the target user who views the 3D image after 3D display at a preset distance (for example, the distance between the human eye of the target user and the display screen of the terminal device is 40 cm. Of course, it can also be other distances, which are not specifically limited). That is, different users have different reference offset ranges. The following is a detailed description: The method for determining the reference offset range corresponding to the target user
[0068] 1. The terminal device determines the reference offset range corresponding to the target user who views the 2D image after 3D display at a preset distance, including:
[0069] Determine the initial visual parameters corresponding to the target user;
[0070] Adjust the offset between the third image and the fourth image corresponding to the first test 3D image;
[0071] Record the actual visual parameters corresponding to the target user when the offset third image and fourth image are presented after blanking;
[0072] Determine the first maximum offset and the first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameters match the initial visual parameters;
[0073] Determine the reference offset range according to the first maximum offset and the first minimum offset.
[0074] In this embodiment, the terminal device can first determine the initial visual parameters corresponding to the target user. The initial visual parameters are the initial visual parameters of the left eye and the right eye of the target user in a relaxed state (for example, they can be obtained by an eye tracker. Of course, they can also be obtained by other methods, which are not specifically limited). The initial visual parameters of the left eye are (x L0 , y L0 , r L0 ), and the initial visual parameters of the right eye are (x R0 , y R0 , r R0 ), and the binocular horizontal center difference visual parameter distance_x_eyes, where distance_x_eyes = |x L0 - x R0 |, x is the horizontal coordinate of the pupil, y is the vertical coordinate of the pupil, and r is the pupil radius. Here, the third image is taken as the image corresponding to the left eye, and the fourth image is taken as the image corresponding to the right eye for illustration.
[0075] After adjusting the offset between the third image and the fourth image, the first offset is obtained. It can be understood that adjusting the offset between the third image and the fourth image here can be to fix the third image and offset the fourth image in a direction away from the third image. Of course, it can also be to fix the fourth image and offset the third image in a direction away from the fourth image. Of course, it can also be to offset the third image and the fourth image in directions away from each other at the same time. The specific method is not limited. For the convenience of description, the following takes fixing the third image and offsetting the fourth image in a direction away from the third image to calculate the reference offset interval:
[0076] Offset the fourth image in a direction away from the third image, and record the offset change amount distance_x of the fourth image in a direction away from the third image. First, blank out the fourth image and the third image, and then present them, and record the actual visual parameters (x L1 , y L1 , r L1 ) corresponding to the target user after presentation and (x R1 , y R1 , r R1 ). Then, determine whether the initial visual parameters match the actual visual parameters (the method for determining whether the initial visual parameters match the actual visual parameters can be to determine whether the offset change amount distance_x is proportional to distance_x_eyes. If so, it is determined that they match. Of course, other methods can also be used, such as determining whether the difference between the actual visual parameters and the initial visual parameters is less than a preset value. If so, it is determined that they match. The specific method is not limited). If so, determine the offset between the center of the offset third image and the center of the fourth image as the extreme value of the reference offset interval (that is, a maximum or minimum value in the reference offset interval). If not, continue to offset the fourth image in a direction away from the third image on the basis of the offset change amount (the distance of each offset can be a preset distance), and repeat the above steps until the actual visual parameters corresponding to the target user match the initial visual parameters when the fourth image and the third image are blanked out and presented again. At this time, the offset between the center of the fourth image and the center of the third image is the extreme value of the reference offset interval. Repeat the above steps, fix the third image, offset the fourth image in a direction closer to the third image, and determine the other extreme value of the reference offset interval.
[0077] The following combines Figure 2 to illustrate the method for determining the reference offset interval. Figure 2Schematic diagram of an embodiment of the 3D display method for 2D images provided by the embodiments of the present application. Taking the third image fixed and the fourth image moving away from the third image to adjust the offset between the third image and the fourth image as an example, where 201 is the third image and 202 is the fourth image. The fourth image 202 is offset in a direction away from the third image 201 (such as Figure 2 the direction indicated by the arrow 203 in), and the offset distance is a preset distance. Then, the offset between the center 202A of the fourth image 202 and the center 201A of the third image 201 is recorded. At the same time, the fourth image 202 and the third image 201 are blanked out, and then presented again. The actual visual parameters corresponding to the target user when presented again are recorded. At the same time, it is determined whether the actual visual parameters match the initial visual parameters of the target user in the relaxed state. If so, the offset between the center 202A of the offset fourth image 202 and the center 201A of the third image 201 is determined as the extreme value of the reference offset interval. If not, on the basis of the offset, the fourth image 202 is offset again in a direction away from the third image 201, and the offset distance is also a preset distance (that is, each offset is based on a preset distance, which can be the same or different), and the above steps are repeated until the actual visual parameters corresponding to the target user match the initial visual parameters when the fourth image 202 and the third image 201 are blanked out and presented again. At this time, the offset between the center 202A of the fourth image 202 and the center 201A of the third image 201 is the extreme value in the reference offset interval.
[0078] Second, the terminal device determines the reference offset interval corresponding to the target user who views the 2D image after 3D display at a preset distance, including:
[0079] Offset at least one of the fifth image and the sixth image according to the operation instruction of the target user. The fifth image and the sixth image are the images corresponding to the second test 3D image;
[0080] If the recording instruction of the target user is received, record the second maximum offset and the second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction;
[0081] Determine the reference offset interval according to the second maximum offset and the second minimum offset.
[0082] In this embodiment, the terminal device can display the second test 3D image and issue a prompt message for prompting the target user to offset at least one of the fifth image and the sixth image. After that, the target user can operate on the second standard test 3D image. The terminal device can receive the operation instruction of the target user and offset at least one of the fifth image and the sixth image according to the operation instruction of the user (the offset here can be that the sixth image remains fixed and the fifth image offsets away from the sixth image. Of course, it can also be that the fifth image remains fixed and the sixth image offsets away from the fifth image. Of course, it can also be that the fifth image and the sixth image offset away from each other at the same time, and the specific is not limited). Until the target user cannot perceive the 3D image formed by the fifth image and the sixth image in the brain, a recording instruction is issued. The terminal device records the offset amount between the center of the fifth image and the center of the sixth image according to the recording instruction of the target user. The offset amount between the center of the fifth image and the center of the sixth image is the extreme value in the reference offset interval. Repeat the above steps, fix the fifth image, offset the sixth image towards the fifth image, and determine the other extreme value of the reference offset interval.
[0083] It should be noted that through step 101, the first image and the second image corresponding to the target image can be determined. Through step 102, the reference offset interval corresponding to the target user of the 2D image after 3D display when viewed at a preset distance can be determined. However, there is no limit on the order of execution between these two steps. Step 101 can be executed first, step 102 can be executed first, or they can be executed simultaneously, and the specific is not limited.
[0084] 103. Periodically adjust the target offset amount between the first image and the second image within the reference offset interval.
[0085] In this embodiment, after the terminal device determines the reference offset interval and the first image and the second image corresponding to the target image, it can first determine the target offset amount between the first image and the second image, and periodically adjust the target offset amount between the first image and the second image within the reference offset interval.
[0086] It can be understood that the terminal device can periodically adjust the target offset amount within the reference offset interval through the following formula:
[0087] Δd = f(t);
[0088] Where Δd is the target offset amount, f(t) is a periodic continuous function, and this f(t) can be a cosine function, and t is a time variable. That is to say, the value of Δd, the direction and frequency of the change of the first image and the second image change with the change of this periodic continuous function.
[0089] It should be noted that the terminal device can determine the target offset in the following manner:
[0090] Determine a first offset between the position of the first image after adjustment and the position of the first image before adjustment;
[0091] Determine a second offset between the position of the second image after adjustment and the position of the second image before adjustment;
[0092] Determine the sum value of the first offset and the second offset as the target offset.
[0093] In this embodiment, when the terminal device detects the target offset between the first image and the second image after forming the 3D display image in real time, it can determine the first offset between the position of the first image after adjustment and the position of the first image before adjustment, determine the second offset between the position of the second image after adjustment and the position of the second image before adjustment, and determine the sum value of the first offset and the second offset as the target offset. Herein, "before adjustment" refers to the initial positions of the first image and the second image, and "after adjustment" refers to the actual positions of the first image and the second image when forming the 3D image after processing.
[0094] 104. Interleave the first image and the second image after adjusting the target offset to perform 3D display of the 2D image.
[0095] In this embodiment, after the terminal device adjusts the target offset each time, it can interleave the first image and the second image after adjusting the target offset to generate and display a 3D image.
[0096] In summary, it can be seen that in the embodiments provided by the present application, the terminal device can periodically adjust the target offset between the first image and the second image, so that the adjusted target offset is always within the reference offset interval, ensuring that both eyes of the user can receive views when watching the conversion of the 2D image into the 3D image, and thus a clear 3D image can be observed.
[0097] The above describes the embodiments of the present application from the perspective of the 3D display method of the 2D image. The following describes the embodiments of the present application from the perspective of the terminal device.
[0098] Please refer to Figure 3 , Figure 3 which is a schematic virtual structure diagram of the terminal device provided by the embodiments of the present application. The terminal device 300 includes:
[0099] A first determination unit 301, configured to determine a first image and a second image corresponding to a target image, where the target image is a 2D image to be subjected to 3D display;
[0100] A second determination unit 302, configured to determine a reference offset range corresponding to a target user who views the 2D image after 3D display at a preset distance;
[0101] An adjustment unit 303, configured to periodically adjust a target offset between the first image and the second image within the reference offset range;
[0102] A generation unit 304, configured to interleave the first image and the second image after adjusting the target offset, so as to perform 3D display on the 2D image.
[0103] In a possible design, the second determination unit 302 is specifically configured to:
[0104] Determine initial visual parameters corresponding to the target user;
[0105] Adjust an offset between a third image and a fourth image corresponding to a first test 3D image;
[0106] Record actual visual parameters corresponding to the target user when the offset third image and fourth image are presented after blanking;
[0107] Determine a first maximum offset and a first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameters match the initial visual parameters;
[0108] Determine the reference offset range according to the first maximum offset and the first minimum offset.
[0109] In a possible design, the second determination unit 302 is further specifically configured to:
[0110] Offset at least one of a fifth image and a sixth image according to an operation instruction of the target user, where the fifth image and the sixth image are images corresponding to a second test 3D image;
[0111] If a recording instruction of the target user is received, record a second maximum offset and a second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction;
[0112] Determine the reference offset range according to the second maximum offset and the second minimum offset.
[0113] In a possible design, the adjustment unit 303 is specifically configured to:
[0114] Periodically adjust the target offset within the reference offset range through the following formula:
[0115] Δd = f(t);
[0116] Wherein, Δd is the target offset, f(t) is a periodic continuous function, and t is a time variable.
[0117] In a possible design, the first determination unit 301 is further configured to:
[0118] Determine a first offset between the position of the first image after adjustment and the position of the first image before adjustment;
[0119] Determine a second offset between the position of the second image after adjustment and the position of the second image before adjustment;
[0120] Determine the sum of the first offset and the second offset as the target offset.
[0121] Next, another terminal device provided by the embodiments of the present application will be introduced. Please refer to Figure 4 as shown in Figure 4 which is a schematic hardware structure diagram of the terminal device provided by the embodiments of the present application. The terminal device 400 includes:
[0122] a receiver 401, a transmitter 402, a processor 403, and a memory 404 (where the number of processors 403 in the terminal device 400 can be one or more, Figure 4 and one processor is taken as an example here). In some embodiments of the present application, the receiver 401, the transmitter 402, the processor 403, and the memory 404 can be connected by a bus or other means. Here, Figure 4 taking the connection by a bus as an example.
[0123] The memory 404 may include a read-only memory and a random access memory, and provide instructions and data to the processor 403. A part of the memory 404 may also include NVRAM. The memory 404 stores an operating system and operation instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof. Among them, the operation instructions may include various operation instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.
[0124] The processor 403 controls the operation of the terminal device. The processor 403 may also be referred to as a CPU. In a specific application, the various components of the terminal device are coupled together through a bus system. Among them, the bus system may include a power bus, a control bus, a status signal bus, etc. in addition to a data bus. However, for the sake of clear illustration, various buses are referred to as a bus system in the figure.
[0125] The 3D display method of the 2D image disclosed in the embodiments of the present application can be applied to or implemented by the processor 403. The processor 403 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the method shown above can be completed by the integrated logic circuit of the hardware in the processor 403 or by instructions in the form of software. The above-mentioned processor 403 can be a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute each method, step, and logic block diagram disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or can be executed and completed by a combination of the hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 404, and the processor 403 reads the information in the memory 404 and combines its hardware to complete the steps of the above method. Figure 1 Each step of the method shown above can be completed by the integrated logic circuit of the hardware in the processor 403 or by instructions in the form of software. The above-mentioned processor 403 can be a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute each method, step, and logic block diagram disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or can be executed and completed by a combination of the hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 404, and the processor 403 reads the information in the memory 404 and combines its hardware to complete the steps of the above method.
[0126] The embodiments of the present application also provide a computer-readable medium containing computer-executable instructions that can enable the server to execute the 3D display method of the 2D image described in the above embodiments. The implementation principle and technical effects are similar and will not be elaborated here.
[0127] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationships between the modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
[0128] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions accomplished by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits, etc. However, for the present application, software programs are more often the preferred implementation. Based on such understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0129] 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.
[0130] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a dedicated 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. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive (SSD)).
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not depart from the essence of the corresponding technical solutions.
Claims
1. A 3D display method for 2D images, characterized in that, including: determining a first image and a second image corresponding to a target image, where the target image is a 2D image to be 3D displayed; determining a reference offset range corresponding to a target user who views the 2D image after 3D display at a preset distance; periodically adjusting a target offset between the first image and the second image within the reference offset range; interleaving the first image and the second image after adjusting the target offset to 3D display the 2D image, wherein, the determining the reference offset range corresponding to the target user who views the 2D image after 3D display at a preset distance includes: determining initial visual parameters corresponding to the target user; adjusting an offset between a third image and a fourth image corresponding to a first test 3D image; recording actual visual parameters corresponding to the target user when the offset third image and fourth image are presented after blanking; determining a first maximum offset and a first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameters match the initial visual parameters; determining the reference offset range according to the first maximum offset and the first minimum offset, or, the determining the reference offset range corresponding to the target user who views the 2D image after 3D display at a preset distance includes: offsetting at least one of a fifth image and a sixth image according to an operation instruction of the target user, where the fifth image and the sixth image are images corresponding to a second test 3D image; if a recording instruction of the target user is received, recording a second maximum offset and a second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction; determining the reference offset range according to the second maximum offset and the second minimum offset.
2. The method according to claim 1, wherein The periodically adjusting the target offset between the first image and the second image within the reference offset range includes: periodically adjusting the target offset within the reference offset range by the following formula: ; wherein, is the target offset, is a periodic continuous function, is the time variable.
3. The method according to claim 1, characterized in that, The method further includes: determining a first offset between the position of the first image after adjustment and the position of the first image before adjustment; determining a second offset between the position of the second image after adjustment and the position of the second image before adjustment; determining the sum value of the first offset and the second offset as the target offset.
4. A terminal device, characterized in that, including: a first determining unit, configured to determine a first image and a second image corresponding to a target image, where the target image is a 2D image to be 3D displayed; a second determining unit, configured to determine a reference offset range corresponding to a target user who views the 2D image after 3D display at a preset distance; an adjusting unit, configured to periodically adjust a target offset between the first image and the second image within the reference offset range; a generating unit, configured to interleave the first image and the second image after adjusting the target offset to 3D display the 2D image, Wherein, the second determination unit is specifically configured to: Determine the initial visual parameters corresponding to the target user; Adjust the offset between the third image and the fourth image corresponding to the first test 3D image; Record the actual visual parameters corresponding to the target user when the offset third image and the fourth image are presented after blanking; Determine the first maximum offset and the first minimum offset between the center of the third image and the center of the fourth image when the actual visual parameters match the initial visual parameters; Determine the reference offset range according to the first maximum offset and the first minimum offset; Alternatively, the second determination unit is further specifically configured to: Offset at least one of the fifth image and the sixth image according to the operation instruction of the target user, where the fifth image and the sixth image are images corresponding to the second test 3D image; If a recording instruction from the target user is received, record the second maximum offset and the second minimum offset between the center of the fifth image and the center of the sixth image according to the recording instruction; Determine the reference offset range according to the second maximum offset and the second minimum offset.
5. The terminal device according to claim 4, wherein The adjustment unit is specifically configured to: Periodically adjust the target offset within the reference offset range through the following formula: ; wherein, is the target offset, is a periodic continuous function, is the time variable.
6. A computer storage medium, characterized in that, Including: An instruction that, when run on a computer, causes the computer to execute the 3D display method of the 2D image according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method and device for measuring human eye tracking parameters, medium and system
CN113411564A