A stereoscopic image display method and a display device
By segmenting the image source with depth information and calculating the frame deformation and then fusing it, a stereoscopic image is generated, which solves the problems of inconvenience, high cost and dizziness in the existing technology, and realizes a comfortable and economical stereoscopic image display.
Patent Information
- Application Number
- CN202210769093.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-01
AI Technical Summary
Existing stereoscopic image display technology has problems such as inconvenience, processing complexity, cost increase and human body's dizziness and discomfort, and cannot be widely promoted.
A stereoscopic image display method is used to obtain an image source with depth information, perform image segmentation to obtain foreground, background and background images, and calculate the frame deformation of the background image and then fuse it to generate a stereoscopic image, and finally display it.
It achieves a three-dimensional image display that does not cause dizziness, reduces costs, maintains flat image quality, and improves production ease and compatibility.
Smart Images

Figure CN115334296B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a stereoscopic image display method, and more particularly to a stereoscopic image display method and a display device. Background Art
[0002] When human eyes see objects in the real world, a stereoscopic vision effect is produced. This is due to the depth space created by light, shadow effects and parallax. Based on this depth space, we perceive the front and back, speed, and depth of field arrangement of objects, which are organized by the brain into a three-dimensional colorful world with depth and color.
[0003] Based on the human eye sensor, we use some different methods and means to create a three-dimensional effect that can simulate eye viewing on a flat display screen. These methods may include traditional color domain method, cylindrical grating method, or polarized glasses, shutter glasses method, etc.
[0004] Although cylindrical mirror gratings and slit gratings do not require wearing special glasses and can directly view stereoscopic images or videos with the human eye, these two physical methods require special processing of optical films on the display devices, and the processed display devices will produce a certain degree of image interference, such as reducing the resolution filter, generating Moire fringes, etc., and increase the cost of the entire display device.
[0005] Polarized glasses and shutter glasses require special processing for the display screen, such as laminating 3D polarized film, or synchronization controller between shutter glasses and display device. No matter which method is used, special glasses need to be worn additionally. These methods are also very inconvenient to use and cannot achieve the purpose of real-time viewing.
[0006] These conventional stereoscopic vision technologies and stereoscopic display methods are inconvenient to use, complex to process, increase in cost, and cause dizziness and discomfort to the human body, which prevents them from being widely promoted. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a stereoscopic image display method and a display device in view of the defects of the prior art.
[0008] The technical solution adopted by the present invention to solve the technical problem is: constructing a stereoscopic image display method, comprising the following steps:
[0009] Get image source with depth information;
[0010] Performing image segmentation on the image source with depth information to obtain a foreground image, a background image and a background image;
[0011] Performing frame deformation calculation on the background image to obtain the background to be fused;
[0012] Fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image;
[0013] The stereoscopic image is displayed.
[0014] In the stereoscopic image display method of the present invention, displaying the stereoscopic image includes:
[0015] Performing optimization processing on the stereoscopic image to obtain an optimized image;
[0016] Perform display adaptation according to the display ratio of the display device;
[0017] After display adaptation is completed, the optimized image is displayed.
[0018] In the stereoscopic image display method of the present invention, the image source with depth information is segmented to obtain a foreground image, a background image and a background image, including:
[0019] Calculating the image source with depth information to obtain the relationship between depth and distance in the image;
[0020] Marking the position of the center of the image according to the relationship between the depth and the distance in the image;
[0021] The area corresponding to the position mark at the center of the image is segmented to obtain the foreground image, the background image and the background image.
[0022] In the stereoscopic image display method of the present invention, the method further includes:
[0023] After the foreground image and the background image are obtained, the foreground image and the background image are cached.
[0024] In the stereoscopic image display method described in the present invention, the background image includes: an image that can be adapted to the folding edge, an image that cannot be adapted to the folding edge but can be optimized for the border, and an image that cannot be adapted to the folding edge and cannot be optimized for the border.
[0025] In the stereoscopic image display method of the present invention, if the background image is an adaptable folded edge image, the step of performing frame deformation calculation on the background image to obtain the background to be fused includes:
[0026] Calculating the border of the adaptable folded edge image to obtain a size to be cropped;
[0027] Cropping the adaptable folded edge image according to the size to be cropped to obtain a cropping frame;
[0028] Performing perspective transformation on the cropping frame to obtain a transformed image;
[0029] Perform HSV conversion on the transformed image to obtain an HSV image; the HSV image is the fusion background.
[0030] In the stereoscopic image display method of the present invention, if the background image is an image that cannot be adaptively folded but can be frame-optimized, then performing frame deformation calculation on the background image to obtain the background to be fused includes:
[0031] Perform HSV conversion on the background image to obtain an HSV image; the HSV image is the background to be fused.
[0032] In the stereoscopic image display method of the present invention, if the background image is an image that is not suitable for folding and cannot be frame-optimized, then performing frame deformation calculation on the background image to obtain the background to be fused includes:
[0033] The background image is used as the background to be fused.
[0034] In the stereoscopic image display method of the present invention, fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image comprises:
[0035] Paste the background to be fused back to the source image;
[0036] The background image and the foreground image are sequentially pasted back to the source image to obtain the stereoscopic image.
[0037] The present invention also provides a display device, comprising:
[0038] An acquisition unit, used for acquiring an image source with depth information;
[0039] An image segmentation unit, used to segment the image source with depth information to obtain a foreground image, a background image and a background image;
[0040] A frame calculation unit, used for performing frame deformation calculation on the background image to obtain a background to be fused;
[0041] A fusion unit, used for fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image;
[0042] The display unit is used to display the stereoscopic image.
[0043] The implementation of the stereoscopic image display method and display device of the present invention has the following beneficial effects: the stereoscopic image display method includes the following steps: obtaining an image source with depth information; performing image segmentation on the image source with depth information to obtain a foreground image, a background image, and a background image; performing frame deformation calculation on the background image to obtain a background to be fused; fusion of the foreground image, the background image, and the background to be fused to obtain a stereoscopic image; and displaying the stereoscopic image. The present invention adopts a physical solution to perform image segmentation and frame deformation calculation on the image source with depth information, and then performs fusion processing to obtain a stereoscopic image, which will not cause dizziness, and this method does not require changing the existing architecture of the display device, is easy to produce, and has high compatibility. Therefore, in terms of use and product application promotion, it can achieve the advantages of reduced cost and easy application, and will not reduce or affect the original plane display quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0045] Figure 1 is a flow chart of a stereoscopic image display method provided by an embodiment of the present invention;
[0046] Figure 2 Schematic diagram of the left and right image ranging principle provided by an embodiment of the present invention;
[0047] Figure 3 is a schematic diagram of folding provided by an embodiment of the present invention;
[0048] Figure 4 is a schematic diagram of a display device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0050] refer to Figure 1 , which is a flow chart of an optional embodiment of the stereoscopic image display method provided by the present invention.
[0051] like Figure 1 As shown, the stereoscopic image display method comprises the following steps:
[0052] Step S101: Acquire an image source with depth information.
[0053] In some embodiments, the image source with depth information can be obtained by an image sensor module in conjunction with a depth calculation module. The depth information can be calculated by, but not limited to, a triangulation method of stereo binocular images, a time and distance calculation method of 3D time of flight technology (ToF), or a triangulation method of 3D structured light.
[0054] The image sensor module may be, but is not limited to, a single camera acquisition device, a dual camera acquisition device, a triple camera acquisition device or an image acquisition device with more cameras. Optionally, in the embodiment of the present invention, the image source with depth information may be a picture or a video.
[0055] Step S102: performing image segmentation on the image source with depth information to obtain a foreground image, a background image and a background image.
[0056] In some embodiments, performing image segmentation on an image source with depth information to obtain a foreground image, a background image, and a background image includes: calculating the image source with depth information to obtain the relationship between depth and distance in the image; marking the position of the image center according to the relationship between depth and distance in the image; and segmenting the area corresponding to the position mark of the image center to obtain the foreground image, background image, and background image.
[0057] Specifically, after obtaining an image source with depth information (such as a left-right image arrangement (SBS)), artificial intelligence calculations can be performed based on the left-right image ranging principle (such as Figure 2 As shown), the depth and distance relationship in the image is calculated, and the source image is marked according to the depth and distance relationship in the image. The specific calculation formula is as follows:
[0058]
[0059] Therefore, through formula (1), we can get:
[0060]
[0061] Among them, Z represents the depth, T is the distance between the left and right lenses, and x l is the center point of the left lens ( Figure 2 The coordinates are expressed as (c xl , c yl ), x r is the center point of the right lens ( Figure 2 The coordinates are expressed as (c xr , c yr ), f represents the focal length of the lens. land x r All are known, so Z can be calculated based on formula (2).
[0062] Among them, the artificial intelligence operation can be calculated using the artificial intelligence deep learning CNN algorithm library, and the accuracy of the mark can be improved by calculating multiple images multiple times. Further, after completing the position mark of the center of the image, the image area where the mark is located can be segmented, so that the foreground image, the background image and the background image can be obtained. Optionally, the division of the foreground image, the background image and the background image can be divided according to the calculated depth value and the relative distance of the lens. Among them, the depth value and the lens relative distance is small (close distance) for the foreground image (with the position mark as a reference), the depth value and the lens relative distance is medium for the background image, and the depth value and the lens relative distance is the largest for the background image. Among them, the large, medium and small relative distances between the depth value and the lens are determined by distinguishing the front, back and background images, and the present invention does not make specific limitations.
[0063] Optionally, in an embodiment of the present invention, after obtaining the foreground image and the background image, the foreground image and the background image are cached. That is, after completing the image segmentation and segmenting the foreground image and the background image, the foreground image and the background image do not need to be processed, but the foreground image and the background image are stored in a cache for subsequent image fusion.
[0064] Step S103: Calculate the border deformation of the background image to obtain the background to be fused.
[0065] Specifically, after the background image is segmented in step S102, in the embodiment of the present invention, it is necessary to perform frame deformation calculation on the background image to obtain a background image that can be fused (ie, the background to be fused).
[0066] Optionally, in an embodiment of the present invention, the background image includes: an image that can be adapted to the folding edge, an image that cannot be adapted to the folding edge but can be optimized for the border, and an image that cannot be adapted to the folding edge and cannot be optimized for the border.
[0067] Among them, for images that are not suitable for folding and cannot be optimized for borders, the present invention does not perform any processing on the background image, but directly uses the image that is not suitable for folding and cannot be optimized for borders as the background to be fused. For images that are not suitable for folding but can be optimized for borders, the present invention performs HSV conversion on the image that is not suitable for folding but can be optimized for borders to obtain an HSV image. Specifically, HSV (Hue Saturation Value), H represents color hue, S represents saturation, and V represents brightness. Among them, the HSV image is the background to be fused. For images that can adapt to folding, the present invention needs to perform folding first and then perform border optimization processing.
[0068] In some embodiments, the present invention may process the adaptable folded edge image by the following method: that is, the border of the adaptable folded edge image is calculated to obtain the size to be cropped; the adaptable folded edge image is cropped according to the size to be cropped to obtain the cropped border; the cropped border is perspective transformed to obtain the transformed image; the transformed image is HSV converted to obtain the HSV image; the HSV image is the fusion background.
[0069] Among them, for images with adaptable folding edges, in an embodiment of the present invention, the border size is first calculated, and then the border of the image is cropped according to the calculated border width and height, and then the coordinates of the border of the cropped image are perspective transformed, and finally the RGB of the border after perspective transformation is converted to HSV to obtain an HSV image.
[0070] Specifically, Figure 3 As shown, the initial value is 1 / 8 of the smaller side of the image as the width w of the border, the initial value of the angle α is 45° by default, and the height of the border is calculated according to the trigonometric formula h = w*tan(Radians(α))+0.5. The border of the image is cut out according to the calculated width and height of the border (such as HGFE in the schematic diagram), and the perspective transformation is performed using the general formula of perspective transformation (as shown below):
[0071]
[0072] The border HGFE coordinates are transformed into the border ABFE coordinates, and the same method is used for the other three borders. After completing the perspective change, the RGB of the border image is converted to HSV to obtain the HSV image. Furthermore, after completing the HSV conversion, V can also be processed with histogram equalization to optimize the brightness of the image.
[0073] Step S104: Fuse the foreground image, the background image and the background to be fused to obtain a stereoscopic image.
[0074] In some embodiments, fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image includes: pasting the background to be fused back to the source image; pasting the background image and the foreground image back to the source image in sequence to obtain a stereoscopic image. The source image here is the image before segmentation.
[0075] Step S105: display the stereoscopic image.
[0076] In some embodiments, displaying a stereoscopic image includes: optimizing the stereoscopic image to obtain an optimized image; performing display adaptation according to a display ratio of a display device; and displaying the optimized image after completing the display adaptation.
[0077] Specifically, after completing the image fusion, the present invention can further perform perspective optimization on the fused image so that the stereoscopic sense of the obtained stereoscopic image and the background area are relatively balanced, thereby improving the stereoscopic display effect. Optionally, the perspective optimization includes but is not limited to the brightness value of the boundary, the gradient of the fold (non-45 degrees), the size of the fold, the shape of the boundary, etc.
[0078] Furthermore, the present invention can also be adapted according to the display ratio of the display device to achieve the best stereoscopic display effect. In some embodiments, a manual adjustment mode based on user preferences / habits can be provided on the user operation interface or operation interface of the display device, so that the background area and the frame folding edge can be manually adjusted to improve the user experience.
[0079] refer to Figure 4 The present invention further provides a display device, which may be a stereoscopic display device or a flat (2D) display device. The display device may display stereoscopic images using the stereoscopic image display method disclosed in the embodiment of the present invention.
[0080] Specifically, Figure 4 As shown, the display device includes:
[0081] The acquisition unit 401 is used to acquire an image source with depth information.
[0082] The image segmentation unit 402 is used to perform image segmentation on the image source with depth information to obtain a foreground image, a background image and a background image.
[0083] The border calculation unit 403 is used to perform border deformation calculation on the background image to obtain the background to be fused.
[0084] The fusion unit 404 is used to fuse the foreground image, the background image and the background to be fused to obtain a stereoscopic image.
[0085] The display unit 405 is used to display the stereoscopic image.
[0086] The present invention does not require complicated processing for the stereoscopic display device, which can reduce the cost of use; based on the physical perspective principle of the human eye, it makes viewing comfortable without causing discomfort or the problem of viewing angle difference and ghosting that stereoscopic images often produce; and it will not reduce or affect the original plane (2D) image quality.
[0087] In addition, the display device of the present invention is easy to produce and has a high yield rate; it has high compatibility with different images; based on the above description, it can initiate an easy promotion effect for the entire stereoscopic display and camera industry, and enhance the human experience of stereoscopic images.
[0088] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0089] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0090] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM (Compact Disc Read-Only Memory), or any other form of storage medium known in the art.
[0091] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot limit the scope of protection of the present invention. All equivalent changes and modifications made to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A stereoscopic image display method, characterized in that: The following steps are involved: Get image source with depth information; Performing image segmentation on the image source with depth information to obtain a foreground image, a background image and a background image; Performing frame deformation calculation on the background image to obtain the background to be fused; The background image includes: an image that can be adapted to the folded edge, an image that cannot be adapted to the folded edge but can be optimized for the border, and an image that cannot be adapted to the folded edge and cannot be optimized for the border; the width and height of the border of the image that can be adapted to the folded edge satisfy: h=w*tan(Radians(α))+0.5; w is the width of the border, h is the height of the border, and α=45°; If the background image is an adaptable folded edge image, the frame deformation calculation of the background image to obtain the background to be fused includes: performing frame calculation on the adaptable folded edge image to obtain the size to be cropped; cropping the adaptable folded edge image according to the size to be cropped to obtain a cropped frame; performing perspective transformation on the cropped frame to obtain a transformed image; performing HSV conversion on the transformed image to obtain an HSV image; the HSV image is the background to be fused; If the background image is an image that cannot be adapted to the folded edge but can be optimized for the border, then performing border deformation calculation on the background image to obtain the background to be fused includes: performing HSV conversion on the background image to obtain an HSV image; the HSV image is the background to be fused; If the background image is an image that is not suitable for folding and cannot be optimized for the border, performing border deformation calculation on the background image to obtain the background to be fused includes: using the background image as the background to be fused; Fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image; The stereoscopic image is displayed.
2. The stereoscopic image display method according to claim 1, characterized in that: The displaying of the stereoscopic image comprises: Performing optimization processing on the stereoscopic image to obtain an optimized image; Perform display adaptation according to the display ratio of the display device; After display adaptation is completed, the optimized image is displayed.
3. The stereoscopic image display method according to claim 1 or 2, characterized in that: The method further comprises: After the foreground image and the background image are obtained, the foreground image and the background image are cached.
4. The stereoscopic image display method according to claim 1, characterized in that: The fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image comprises: Paste the background to be fused back to the image source; The background image and the foreground image are sequentially pasted back to the image source to obtain the stereoscopic image.
5. A display device, characterized in that: include: An acquisition unit, used for acquiring an image source with depth information; An image segmentation unit, used to segment the image source with depth information to obtain a foreground image, a background image and a background image; A frame calculation unit, used for performing frame deformation calculation on the background image to obtain a background to be fused; The background image includes: an image that can be adapted to the folded edge, an image that cannot be adapted to the folded edge but can be optimized for the border, and an image that cannot be adapted to the folded edge and cannot be optimized for the border; the width and height of the border of the image that can be adapted to the folded edge satisfy: h=w*tan(Radians(α))+0.5; w is the width of the border, h is the height of the border, and α=45°; If the background image is an adaptable folded edge image, the frame deformation calculation of the background image to obtain the background to be fused includes: performing frame calculation on the adaptable folded edge image to obtain the size to be cropped; cropping the adaptable folded edge image according to the size to be cropped to obtain a cropped frame; performing perspective transformation on the cropped frame to obtain a transformed image; performing HSV conversion on the transformed image to obtain an HSV image; the HSV image is the background to be fused; If the background image is an image that cannot be adapted to the folded edge but can be optimized for the border, then performing border deformation calculation on the background image to obtain the background to be fused includes: performing HSV conversion on the background image to obtain an HSV image; the HSV image is the background to be fused; If the background image is an image that is not suitable for folding and cannot be optimized for the border, performing border deformation calculation on the background image to obtain the background to be fused includes: using the background image as the background to be fused; A fusion unit, used for fusing the foreground image, the background image and the background to be fused to obtain a stereoscopic image; The display unit is used to display the stereoscopic image.
Citation Information
Patent Citations
Video processing apparatus, video processing method, and program for executing the same on computer
JP2010206362A
