Method of display pseudo-stereoscopic image and electronic device
The method of generating pseudo-stereoscopic images by superimposing background, foreground, and reference mask images addresses the expense and discomfort of existing stereoscopic displays, offering a cost-effective and comfortable viewing experience.
Patent Information
- Application Number
- TW114123882
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2026-07-11
- Estimated Expiration
- 2045-06-24
AI Technical Summary
Stereoscopic display technologies require expensive optical components like parallax barriers and lenticular lenses, and existing glasses-free displays necessitate uncomfortable special glasses.
A method for generating pseudo-stereoscopic images by creating a background, foreground, and reference mask images, which are sequentially superimposed to create a depth effect without the need for expensive optical components or special glasses.
Provides a cost-effective and comfortable stereoscopic viewing experience by simulating depth through image superimposition, enhancing user comfort and reducing hardware costs.
Smart Images

Figure IMG-2_DRAW_114123882-A0305-14-0001-1 
Figure IMG-2_DRAW_114123882-A0305-14-0001-2 
Figure IMG-2_DRAW_114123882-A0305-14-0002-3
Abstract
Description
Technical Field
[0001] This invention relates to a method and electronic device for displaying pseudo-stereoscopic images. Prior Technology
[0002] Stereoscopic display technology utilizes parallax to allow each eye to receive different images, creating a sense of depth. Stereoscopic display technology can be broadly categorized into non-glasses-free and glasses-free types. When using non-glasses-free 3D displays, users need to wear special glasses, such as polarized glasses or shutter glasses, which can be uncomfortable. Glasses-free displays are more comfortable than those with special glasses and offer a more natural viewing angle; therefore, recent years have seen greater focus on the development of glasses-free 3D display technology. However, glasses-free displays require special optical components, such as parallax barriers and lenticular lenses, making them expensive. Summary of the Invention
[0003] This invention provides a method for displaying pseudo-stereoscopic images without the need for expensive glasses-free stereoscopic displays.
[0004] The method for displaying a pseudo-stereoscopic image according to the present invention includes the following steps: generating a background image and a foreground image according to an input image; generating a reference mask image according to a display range, wherein the reference mask image includes an outer frame and at least one stripe, the outer frame corresponds to the display range, and the at least one stripe is located within the outer frame and is optionally connected to the outer frame; and sequentially superimposing the background image, the reference mask image, and the foreground image to form a pseudo-stereoscopic image.
[0005] The electronic device of the present invention includes a display element and a processing element electrically connected to the display element. The display element has a display area. The processing element is used to generate a background image and a foreground image based on an input image, and to generate a reference mask image based on the display area of the display element, wherein the reference mask image includes an outer frame and at least one stripe, the outer frame conforming to the display area, and the at least one stripe located within the outer frame and optionally connected to the outer frame. The display element is used to display the background image, the reference mask image, and the foreground image superimposed in sequence to generate a pseudo-stereoscopic image. Simple Explanation of the Diagram
[0006] Figure 1 is a flowchart illustrating a method for displaying pseudo-stereoscopic images according to an embodiment of the present invention. Figures 2 to 6 illustrate the process of displaying a pseudo-stereoscopic image according to an embodiment of the present invention. Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 8 shows a pseudo-stereoscopic image of another embodiment of the present invention. Figures 9 to 13 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 14 is a schematic diagram of an electronic device according to another embodiment of the present invention. Figures 15 to 19 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 20 is a schematic diagram of an electronic device according to another embodiment of the present invention. Figures 21 to 25 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 26 is a schematic diagram of an electronic device according to another embodiment of the present invention. Implementation
[0007] Reference will now be made in detail to exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same element symbols are used in the drawings and description to denote the same or similar parts.
[0008] Figure 1 is a flowchart illustrating a method for displaying a pseudo-stereoscopic image according to an embodiment of the present invention. Referring to Figure 1, the method for displaying a pseudo-stereoscopic image includes the following steps S1, S2, and S3. Step S1: Generate a reference mask image based on the display range, wherein the reference mask image includes an outer frame and at least one stripe, the outer frame corresponds to the display range, and the at least one stripe is located within the outer frame and optionally connected to the outer frame. Step S2: Generate a background image and a foreground image based on the input image. Step S3: Sequentially superimpose the background image, the reference mask image, and the foreground image to form a pseudo-stereoscopic image. In some embodiments, steps S1, S2, and S3 may be performed sequentially. However, the present invention is not limited thereto, and in other embodiments, steps S2, S1, and S3 may also be performed sequentially.
[0009] Figures 2 to 6 illustrate the process of displaying a pseudo-stereoscopic image according to an embodiment of the present invention. Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present invention. The following describes a method for displaying a pseudo-stereoscopic image according to an embodiment of the present invention with reference to Figures 1 to 7.
[0010] Referring to Figures 1, 2, and 7, firstly, step S1 is performed: A reference mask image 100 is generated based on the display area 1a. The reference mask image 100 includes an outer frame 110 and at least one stripe 120. The outer frame 110 corresponds to the display area 1a, and the at least one stripe 120 is located within the outer frame 110 and optionally connected to it. In some embodiments, preferably, the at least one stripe 120 is located within the outer frame 110 and connected to it. However, the invention is not limited to this; in other embodiments, the at least one stripe 120 may also be located within the outer frame 110 but not connected to it. The at least one stripe 120 is used to provide a simulated depth effect. The outer frame 110 corresponding to the display area 1a is used to enhance the simulated depth effect. Specifically, step S1 can be performed using an electronic device 10. The electronic device 10 includes a display element 1 and a processing element 2 electrically connected to the display element 1. In some embodiments, the processing element 2 may receive a trigger instruction and access the size of the display area 1a of the display element 1 according to the trigger instruction; then, the processing element 2 generates a reference mask screen 100 according to the size of the display area 1a.
[0011] Referring to Figures 2 and 7, in some embodiments, the display area 1a may selectively be the display area of the display element 1, and the outer edge 110a of the outer frame 110 of the reference mask screen 100 may selectively coincide with the edge of the display area of the display element 1. In some embodiments, the color of the outer frame 110 of the reference mask screen 100 may be a solid color (i.e., a single color). In some embodiments, the color of the outer frame 110 of the reference mask screen 100 may be the same as the color of the border 1b of the display element 1, and the stripes 120 of the reference mask screen 100 may be the same as the color of the outer frame 110. For example, in some embodiments, the color of the border 1b of the display element 1 is black, and the colors of the outer frame 110 and the stripes 120 of the reference mask screen 100 are also black, but the present invention is not limited thereto.
[0012] Referring to Figures 2 and 7, in some embodiments, the reference mask image 100 may include a plurality of stripes 120, wherein the plurality of stripes 120 extend in the same direction, that is, the plurality of stripes 120 are parallel to each other. In some embodiments, the stripes 120 of the reference mask image 100 may be vertical stripes. However, the present invention is not limited thereto, and in other embodiments, the stripes 120 of the reference mask image 100 may also be horizontal or diagonal stripes.
[0013] In some embodiments, the electronic device 10 is, for example, a notebook computer. However, the invention is not limited thereto, and in other embodiments, the electronic device 10 may also be other forms of computers, such as desktop computers, tablet computers, etc. In some embodiments, the display element 1 may include one or more screens of the electronic device 10. In some embodiments, the processing element 2 may include a computing chip.
[0014] Please refer to Figures 1 and 3 to 5. Next, proceed to step S2: Based on the input screen 200 (as shown in Figure 3), generate a background screen 210 (as shown in Figure 4) and a foreground screen 220 (as shown in Figure 5). Please refer to Figures 2, 3, 4, and 7. Specifically, in some embodiments, the processing element 2 can receive the input screen 200 (as shown in Figure 3) and adjust the input screen 200 according to a trigger command to generate the background screen 210 (as shown in Figure 4). The background screen 210 may correspond to the interior of the outer frame 110 of the reference mask screen 100, and the outer edge 210a of the background screen 210 (labeled in Figure 4) may coincide with the inner edge 110b (labeled in Figure 7) of the outer frame 110 of the reference mask screen 100. In some embodiments, the size of the background screen 210 may be less than, equal to, or greater than the size of the input screen 200.
[0015] Referring to Figures 4 and 5, in some embodiments, a foreground object 212 in the background image 210 can be identified and located using an object detection algorithm. If the foreground object 212 in the background image 210 is identified and located, the boundary 212a of the foreground object 212 can be defined using an object segmentation algorithm, and the foreground object 212 can be extracted from the background image 210 to generate a foreground image 220 including the foreground object 212.
[0016] For example, in some embodiments, the object detection algorithm may include Region Based Convolutional Neural Networks (R-CNN), Single Shot MultiBox Detectors (SSDs), or RetinaNet. R-CNN can use a region proposal network to generate candidate object regions, and then use a classification network to classify each region as an object. SSDs can perform object detection in a single pass through the network without region proposal. RetinaNet combines the advantages of R-CNN and SSDs, using a feature pyramid network to detect objects at multiple scales.
[0017] For example, in some embodiments, the object segmentation algorithm may include Mask Region Based Convolutional Neural Networks (Mask R-CNN), DeepLabv3+, or U-Net. Mask R-CNN can perform object detection and instance segmentation simultaneously, providing a primitive-level mask for each detected object, and can be applied to autonomous driving, video surveillance, etc. DeepLabv3+ can use a fully convolutional network with dilated spatial pyramid pooling to achieve accurate semantic segmentation, that is, assigning a category label to each primitive, and is widely used in various image segmentation tasks. U-Net, through a symmetric encoder-decoder structure, can extract features while preserving image details, making it particularly suitable for medical image segmentation tasks.
[0018] Please refer to Figures 1, 2, and 4 to 6. Next, in step S3: the background image 210 (as shown in Figure 4), the reference mask image 100 (as shown in Figure 2), and the foreground image 220 (as shown in Figure 5) are sequentially superimposed to form a pseudo-stereoscopic image 300 (as shown in Figure 6). The pseudo-stereoscopic image 300 creates a sense of depth or three-dimensionality for the viewer by superimposing the reference mask image 100, the foreground image 220, and the background image 210. Please refer to Figures 2, 4 to 6, and 7. Specifically, the processing element 2 of the electronic device 10 can set the background image 210 as the first layer, set the reference mask image 100 as the second layer and superimpose a second pattern onto the first layer, and set the foreground image 220 as the third layer and superimpose a third pattern onto the second layer; the display element 1 of the electronic device 10 can sequentially display the background image 210, the reference mask image 100, and the foreground image 220 according to the settings of the first layer, the second layer, and the third layer to form the pseudo-stereoscopic image 300. By inserting a reference mask 100 between the background image 210 and the foreground image 220, users can experience a stereoscopic effect when viewing the display element 1 through parallax and psychological effects.
[0019] In the above embodiments, the background image 210, the reference mask image 100, and the foreground image 220 are sequentially superimposed to form a two-layer display effect that approximates a three-dimensional effect. However, the present invention is not limited thereto. N is a positive integer greater than or equal to 3. In other embodiments not shown, N layers can also be formed to achieve a display effect that is even closer to a three-dimensional effect. For example, in another embodiment, the foreground image can be divided into a first foreground image and a second foreground image, and the reference mask image can be divided into a first reference mask image and a second reference mask image. To synthesize a pseudo-stereoscopic image, the background image (e.g., a ring), the first reference mask image, the first foreground image (e.g., a boxer), the second reference mask image, and the second foreground image (e.g., a fist) can be sequentially stacked. In this way, a three-layer display effect that is even closer to a three-dimensional effect can be formed.
[0020] It must be noted that the following embodiments use the component reference numerals and some content from the foregoing embodiments, with the same reference numerals used to represent the same or similar components, and descriptions of the same technical content omitted. For explanations of the omitted parts, please refer to the foregoing embodiments; these will not be repeated in the following embodiments.
[0021] Figure 8 shows a pseudo-stereoscopic image according to another embodiment of the present invention. In the embodiment of Figure 8, the foreground object 212 can be enlarged proportionally, making the pseudo-stereoscopic image 300' more visually impactful.
[0022] Figures 9 to 13 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 14 is a schematic diagram of an electronic device according to another embodiment of the present invention. The process of displaying the pseudo-stereoscopic image 300A shown in Figures 9 to 13 is similar to the process of displaying the pseudo-stereoscopic image 300 shown in Figures 2 to 6. The difference between the two is that the electronic devices 10 and 10A are different, which makes the processes of displaying the pseudo-stereoscopic images 300 and 300A slightly different.
[0023] Referring to Figure 14, specifically, in this embodiment, the display element 1A includes a first display portion 1A-1 and a second display portion 1A-2. The display range 1a of the display element 1A includes a first sub-display range 1a-1 and a second sub-display range 1a-2 outside the first sub-display range 1a-1. The first display portion 1A-1 has the first sub-display range 1a-1, and the second display portion 1A-2 has the second sub-display range 1a-2. The included angle between the first display portion 1A-1 and the second display portion 1A-2 of the display element 1A... Adjustable. In this embodiment, the first display portion 1A-1 and the second display portion 1A-2 of the display element 1A are, for example, a first screen and a second screen, respectively. However, the present invention is not limited thereto; in other embodiments, the first display portion 1A-1 and the second display portion 1A-2 may also be multiple parts of the same foldable screen.
[0024] In this embodiment, the electronic device 10A further includes a microprocessor 4 electrically connected to the processing element 2 and an angle detection element 3 electrically connected to the microprocessor 4. The angle detection element 3 is used to detect the included angle between the first display unit 1A-1 and the second display unit 1A-2. It is electrically connected to the microprocessor 4. In some embodiments, the angle detection element 3 is, for example, a gyroscope and / or an accelerometer, but the invention is not limited thereto.
[0025] Referring to Figure 14, in this embodiment, the microprocessor 4 can receive the angle corresponding to the included angle from the angle detection element 3. The information is used to determine the angle between the first display unit 1A-1 and the second display unit 1A-2. Is it actually 180°? If the microprocessor 4 determines the angle between the first display unit 1A-1 and the second display unit 1A-2... In essence, it is 180 degrees (or, the included angle). If the angle falls within the range of 175° to 185°, then the first sub-display area 1a-1 of the first display unit 1A-1 and the second sub-display area 1a-2 of the second display unit 1A-2 are considered as a common planar display area 1a, and the microprocessor 4 generates a trigger command. Please refer to Figures 9 and 14. Next, the processing element 2 receives the trigger command and the input screen 200, and stores the size information of the display area 1a of the first display unit 1A-1 and the second display unit 1A-2 according to the trigger command. []
[0026] Referring to Figures 10 and 14, the processing element 2 generates a reference masking screen 100A based on the size of the display area 1a of the first display unit 1A-1 and the second display unit 1A-2. Specifically, the processing element 2 can first determine whether the input screen 200 includes a horizontal line and a horizon line 200a. If the processing element 2 determines that the input screen 200 includes a horizontal line and a horizon line 200a, then the processing element 2 can generate the reference masking screen 100A, wherein the reference masking screen 100A has stripes 120A corresponding to the horizontal line and the horizon line 200a. In other embodiments, if the processing element 2 determines that the input screen 200 does not include a horizontal line or a horizon line, then at least one stripe 120A can be made parallel, perpendicular, or inclined to the horizontal line or the horizon line to generate the reference masking screen 100A. []
[0027] Referring to Figures 9, 11, and 14, the processing element 2 then rotates and adjusts the input screen 200 by 90° according to the trigger command to generate a background screen 210. Referring to Figures 11, 12, and 14, the processing element 2 then uses an object detection algorithm to identify whether a foreground object 212 exists in the background screen 210. If a foreground object 212 exists in the background screen 210, the processing element 2 uses an object segmentation algorithm to refine the boundary 212a of the foreground object 212 and extracts the foreground object 212 from the background screen 210 to form a foreground screen 220. []
[0028] Referring to Figures 10, 11, 12, and 14, the processing element 2 can then set the background image 210 as the first layer, set the reference mask image 100A as the second layer and overlay the second layer onto the first layer, and set the foreground image 220 as the third layer and overlay the third layer onto the second layer. The first display unit 1A-1 and the second display unit 1A-2 of the display element 1A can sequentially display the background image 210, the reference mask image 100A, and the foreground image 220 according to the settings of the first layer, the second layer, and the third layer, to form a pseudo-stereoscopic image 300A. By inserting the reference mask image 100A between the background image 210 and the foreground image 220, the user can experience a stereoscopic effect when viewing the display element 1A through parallax and psychological effects. []
[0029] Figures 15 to 19 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 20 is a schematic diagram of an electronic device according to another embodiment of the present invention. The process of displaying a pseudo-stereoscopic image shown in Figures 15 to 19 is similar to the process of displaying a pseudo-stereoscopic image shown in Figures 2 to 6. The difference between the two is that the electronic devices 10 and 10B are different, which makes the process of displaying pseudo-stereoscopic images 300 and 300B slightly different.
[0030] Referring to Figure 20, specifically, in this embodiment, the display element 1B includes a first display portion 1B-1 and a second display portion 1B-2. The display range 1a of the display element 1B includes a first sub-display range 1a-1 and a second sub-display range 1a-2 outside the first sub-display range 1a-1. The first display portion 1B-1 has the first sub-display range 1a-1, and the second display portion 1B-2 has the second sub-display range 1a-2. The included angle between the first display portion 1B-1 and the second display portion 1B-2... Adjustable. In this embodiment, the first display portion 1B-1 and the second display portion 1B-2 of the display element 1B can be a first screen and a second screen, respectively, and the display element 1B also includes a hinge module 1B-3 connecting the first screen and the second screen. In this embodiment, since the display element 1B also includes the hinge module 1B-3, the first sub-display area 1a-1 of the first display portion 1B-1 and the second sub-display area 1a-2 of the second display portion 1B-2 have a spacing g in a spacing direction x, and the spacing g has a width d in the spacing direction x.
[0031] Referring to Figures 15 and 20, processing element 2 receives a trigger command and an input screen 200. Next, processing element 2 stores the dimensions of the first sub-display area 1a-1 of the first display unit 1B-1 and the dimensions of the second sub-display area 1a-2 of the second display unit 1B-2 according to the trigger command. Referring to Figures 16 and 20, processing element 2 then generates a reference mask screen 100B based on the dimensions of the first sub-display area 1a-1 of the first display unit 1B-1 and the second sub-display area 1a-2 of the second display unit 1B-2. In some embodiments, storing the dimension information of the first sub-display area 1a-1 and the second sub-display area 1a-2 includes width, height, and relative position coordinates.
[0032] In this embodiment, the step of the processing element 2 generating a reference mask image 100B based on the display area 1a includes: determining the relationship between the width d of the spacing g between the first sub-display area 1a-1 and the second sub-display area 1a-2 and a preset width do. In some embodiments, the spacing information (such as the width d of the spacing g) between the first sub-display area 1a-1 and the second sub-display area 1a-2 can be calculated based on the size information of the first sub-display area 1a-1 and the second sub-display area 1a-2. Next, the width d of the spacing g is compared with the preset reference width do. If it is determined that the width d of the spacing g is greater than the preset width do, the stripes 120 of the reference mask image 100B are made perpendicular to the spacing direction x. If it is determined that the width d of the spacing g is less than or equal to the preset width do, the stripes 120 of the reference mask image 100B are made parallel to the spacing direction x. Next, based on the above determination result and the border information, the mask element parameters such as the number, width, spacing, and color of the stripes in the reference mask image 100B are determined. The method for setting the stripe parameters of the reference masking image 100B includes: determining the size of the masking area to be covered by the stripe arrangement 120 based on the overall width and height range of the first sub-display area 1a-1 and the second sub-display area 1a-2. In some embodiments, the number of stripes 120 can be set according to the required occlusion rate or display effect of the reference masking image 100B, and the width of the stripes 120 and the spacing between the stripes 120 can be set accordingly, so that the stripes 120 can be evenly distributed in the masking area in the set arrangement direction. When the occlusion rate is high, the number of stripes 120 or the width of a single stripe can be increased; when the occlusion rate is low, the number of stripes 120 can be reduced or the width of a single stripe can be narrowed, and the spacing of the stripes 120 can be adjusted to maintain the overall balance of the arrangement. The stripe arrangement 120 needs to cover the display area spacing and can extend to part of the boundary area of the first sub-display area 1a-1 or the second sub-display area 1a-2 as needed to ensure the integrity and consistency of the reference masking image. The method for determining the starting position of the stripes includes: obtaining the upper left and lower right coordinates of the first sub-display area 1a-1 and the second sub-display area 1a-2, and determining the boundary range of the masking area; taking the center point of the gap between the first sub-display area 1a-1 and the second sub-display area 1a-2, or the boundary near the first sub-display area 1a-1, as the starting coordinate position of the stripe arrangement 120, ensuring that the stripe arrangement 120 extends from the boundary of either the gap or the display area, wherein the stripe arrangement direction is consistent with the aforementioned set arrangement direction (vertical or parallel), and the starting point of the stripe distribution 120 must ensure that all stripes 120 at least cover the entire area of the display area gap.In some embodiments, if necessary, the starting point of the stripe arrangement 120 can be slightly offset or extended so that the stripes 120 also cover the edge areas of the first sub-display area 1a-1 and the second sub-display area 1a-2, thereby improving the visual continuity and masking effect of the reference mask image. The method for generating the reference mask image includes: based on the set stripe arrangement and parameters, generating a reference mask image corresponding to the size and position of the first sub-display area 1a-1 and the second sub-display area 1a-2, and ensuring that the reference mask image completely covers or corresponds to the area between the two sub-display areas.
[0033] Referring to Figures 15, 17, and 20, the processing element 2 then rotates the input screen 90° and adjusts the input screen 200 according to the trigger command to generate a background screen 210. Next, the processing element 2 uses an object detection algorithm to identify whether a foreground object 212 exists in the background screen 210. If a foreground object 212 exists in the background screen 210, the processing element 2 uses an object segmentation algorithm to refine the boundary 212a of the foreground object 212 and extract the foreground object 212 from the background screen 210.
[0034] Referring to Figures 16, 17, 18, 19, and 20, the processing element 2 can set the background image 210 as the first layer, set the reference mask image 100B as the second layer and overlay the second layer onto the first layer, and set the foreground image 220 as the third layer and overlay the third layer onto the second layer. The first display unit 1B-1 and the second display unit 1B-2 of the display element 1B can sequentially display the background image 210, the reference mask image 100B, and the foreground image 220 according to the settings of the first layer, the second layer, and the third layer. By inserting the reference mask image 100B between the background image 210 and the foreground image 220, the user can experience a stereoscopic effect when viewing the display element 1B through parallax and psychological effects.
[0035] Figures 21 to 25 illustrate the process of displaying a pseudo-stereoscopic image according to another embodiment of the present invention. Figure 26 is a schematic diagram of an electronic device 10C according to another embodiment of the present invention. The process of displaying the pseudo-stereoscopic image 300C shown in Figures 21 to 25 is similar to the method of displaying the pseudo-stereoscopic image 300B shown in Figures 15 to 19. The difference between the two is that the relationship between the width d of the distance g between them and the preset width do is different, and the reference mask images 100B and 100C generated by them are also different. Referring to Figures 21 to 25 and Figure 26, in this embodiment, the step of the processing element 2 generating the reference mask image 100C according to the display range 1a includes: determining the relationship between the width d of the distance g between the first sub-display range 1a-1 and the second sub-display range 1a-2 and the preset width do. In this embodiment, it is determined that the width d of the distance g is less than or equal to the preset width do, and the processing element 2 performs a screen type determination procedure to determine whether the input screen 200 includes a horizontal line and a horizon line 200a. In this embodiment, it is determined that the input screen 200 includes a horizontal line and a horizon 200a, and the reference mask screen 100C is made to have stripes 120C corresponding to the horizontal line and the horizon 200a.
[0036] For example, in this embodiment, the input screen 200 includes a horizontal line, and it is determined that the width d of the distance g between the first sub-display area 1a-1 and the second sub-display area 1a-2 is less than or equal to a preset width do, and the generated reference mask screen 100C has horizontal stripes 120C corresponding to the horizontal line.
[0037] 1, 1A, 1B: Display elements 1A-1, 1B-1: First display unit 1A-2, 1B-2: Second display unit 1B-3: Shaft Module 1a: Display area 1a-1: First sub-display range 1a-2: Second sub-display range 1b: Border 2: Processing Components 3: Angle detection element 4: Microprocessor 10, 10A, 10B, 10C: Electronic devices 100, 100A, 100B, 100C: Reference masking images 110: Outer frame 110a: Outer edge 110b: Inner edge 120, 120A, 120C: Stripes 200: Input screen 200a: One of the horizontal line and the horizon. 210: Background Image 210a: Outer edge 212: Foreground Objects 212a: Boundary 220: Foreground Image 300, 300', 300A, 300B, 300C: Quasi-stereoscopic images d: width g: Spacing S1, S2, S3: Steps x: Spacing direction Angle
Claims
1. A method for displaying a pseudo-stereoscopic image, comprising: Based on an input screen, a background screen and a foreground screen are generated, wherein the background screen and the foreground screen originate from the same input screen; based on a display area, a reference mask screen is generated, wherein the reference mask screen includes an outer frame and at least one stripe, the outer frame corresponds to the display area, the at least one stripe is located within the outer frame and can be selectively connected to the outer frame; and the background screen, the reference mask screen and the foreground screen are sequentially superimposed to form a pseudo-stereoscopic image.
2. The method for displaying a pseudo-stereoscopic image as described in claim 1, wherein the step of generating the foreground image based on the input image includes: An object detection algorithm is used to identify and locate a foreground object in the background image. And through an object segmentation algorithm, a boundary of the foreground object is defined, and the foreground object is extracted from the background image.
3. The method for displaying a pseudo-stereoscopic image as described in claim 1, wherein a display element has the display range, the display range including a first sub-display range and a second sub-display range outside the first sub-display range, the display element including a first display portion and a second display portion, the first display portion having the first sub-display range, the second display portion having the second sub-display range, and the method for displaying the pseudo-stereoscopic image further comprising: Detect an included angle between the first display portion and the second display portion of the display element; If the angle is detected to be substantially equal to 180°, a trigger command is issued, and the display range is accessed according to the trigger command.
4. The method for displaying a pseudo-stereoscopic image as described in claim 3, wherein the first sub-display area and the second sub-display area have a spacing in a spacing direction, the spacing having a width in the spacing direction, and the step of generating the reference mask image based on the display area includes: Determine the relationship between the width of the spacing and a preset width; If it is determined that the width of the spacing is greater than the preset width, then at least one stripe of the reference mask image is made perpendicular to the spacing direction.
5. The method for displaying a pseudo-stereoscopic image as described in claim 3, wherein the first sub-display area and the second sub-display area have a spacing in a spacing direction, the spacing having a width in the spacing direction, and the step of generating the reference mask image based on the display area includes: Determine the relationship between the width of the spacing and a preset width; if the width of the spacing is less than or equal to the preset width, perform a screen type determination procedure to determine whether the input screen includes a horizontal line and a horizon; if the input screen includes the horizontal line and the horizon, then make the reference mask screen have at least one stripe corresponding to the horizontal line and the horizon.
6. The method for displaying a pseudo-stereoscopic image as described in claim 1, wherein the step of generating the reference mask image based on the display range includes: Determine whether the input screen includes either a horizontal line or a horizon; if the input screen includes either the horizontal line or the horizon, generate the reference mask screen, wherein the reference mask screen has at least one stripe corresponding to either the horizontal line or the horizon.
7. The method for displaying a pseudo-stereoscopic image as described in claim 3, wherein the step of generating the reference mask image based on the display range includes: The masking image is generated based on the size information of the first sub-display area and the second sub-display area.
8. An electronic device comprising: A display element having a display area; The display element includes a processing element electrically connected to the display element, wherein the processing element is used to generate a background image and a foreground image based on an input image, and to generate a reference mask image based on the display range of the display element, wherein the background image and the foreground image originate from the same input image, and the reference mask image includes an outer frame and at least one stripe, the outer frame being consistent with the display range, and the at least one stripe being located within the outer frame and optionally connected to the outer frame; the display element is used to display the background image, the reference mask image, and the foreground image superimposed in sequence to generate a pseudo-stereoscopic image.
9. The electronic device of claim 8, wherein the display area includes a first sub-display area and a second sub-display area outside the first sub-display area, the display element includes a first display portion and a second display portion, the first display portion having the first sub-display area, the second display portion having the second sub-display area, and the electronic device further includes: A microprocessor, electrically connected to the processing element; An angle detection element is electrically connected to the microprocessor, wherein the angle detection element is used to detect an included angle between the first display portion and the second display portion of the display element.
10. A method for displaying a pseudo-stereoscopic image, comprising: Based on an input screen, a background screen and a foreground screen are generated; based on a display area, a reference mask screen is generated, wherein the reference mask screen includes an outer frame and at least one stripe, the outer frame corresponds to the display area, the at least one stripe is located within the outer frame and is selectively connected to the outer frame; and the background screen, the reference mask screen, and the foreground screen are sequentially superimposed to form a pseudo-stereoscopic image; wherein a display element has the display area, the display area includes a first sub-display area and a second sub-display area outside the first sub-display area, the display element includes a first display section and a second display section, the first display section has the first sub-display area, the second display section has the second sub-display area, and the method for displaying the pseudo-stereoscopic image further includes: detecting an angle between the first display section and the second display section of the display element; if the detected angle is substantially equal to 180°, issuing a trigger command, and accessing the display area according to the trigger command.
11. A method for displaying a pseudo-stereoscopic image, comprising: Based on an input screen, a background screen and a foreground screen are generated; based on a display area, a reference mask screen is generated, wherein the reference mask screen includes an outer frame and at least one stripe, the outer frame corresponds to the display area, the at least one stripe is located within the outer frame and is optionally connected to the outer frame; and the background screen, the reference mask screen, and the foreground screen are sequentially superimposed to form a pseudo-stereoscopic image; wherein the step of generating the reference mask screen based on the display area includes: determining whether the input screen includes a horizontal line and a horizon; if it is determined that the input screen includes the horizontal line and the horizon, the reference mask screen is generated, wherein the reference mask screen has the at least one stripe corresponding to the horizontal line and the horizon.