Electronic device and stereoscopic image display method thereof
By combining edge detection and line detection with watermark detection, the stereoscopic image region is identified and the stereoscopic display is controlled to display stereoscopic format images, solving the problem that 3D displays cannot recognize 3D image formats and achieving accurate stereoscopic visual effects.
Patent Information
- Application Number
- CN202510108660.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2026-07-24
AI Technical Summary
Existing 3D displays cannot correctly recognize the 3D image format of the image content, resulting in an inability to provide effective 3D visual effects.
The rectangular image region in the display frame is obtained by edge detection and line detection, and watermark detection is performed to determine whether it is a stereoscopic image with an embedded watermark. The stereoscopic display is then controlled to display the stereoscopic image in stereoscopic display mode.
It accurately detects image content that conforms to the stereoscopic image format, ensuring that the stereoscopic display can automatically provide stereoscopic display function, thus improving the accuracy and efficiency of watermark detection.
Smart Images

Figure CN122457749A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to an image processing technology, and more particularly to a stereoscopic image display system and its stereoscopic image display method, as well as an electronic device and its stereoscopic image display method. Background Technology
[0002] With advancements in display technology, stereoscopic displays supporting stereoscopic vision technology have become increasingly common. Stereoscopic vision technology allows viewers to experience the three-dimensionality of images, such as the three-dimensional features of a person and depth of field, effects that traditional 2D images cannot achieve. The principle of stereoscopic vision technology is to allow the viewer's left eye to see the left-eye image and their right eye to see the right-eye image, thus creating a 3D visual effect. 3D displays can provide separate left-eye and right-eye images to the viewer's left and right eyes respectively, providing a visually immersive experience. It is known that for image content of a specific 3D image format, a 3D display must employ corresponding 3D display technology to achieve the desired 3D visual effect. In other words, if a 3D display cannot correctly identify the 3D image format of the content, it will be unable to successfully provide a 3D visual effect. Summary of the Invention
[0003] This disclosure provides a stereoscopic image display system and method that can effectively solve the above-mentioned problems.
[0004] This disclosed exemplary embodiment provides a stereoscopic image display method applicable to electronic devices including a stereoscopic display and comprising the following steps: Acquiring a display frame including a streaming image; acquiring at least one rectangular image region in the display frame by performing edge detection and line detection; performing watermark detection on the at least one rectangular image region; generating a stereoscopic format image based on the display frame and the at least one rectangular image region in response to the appearance of a watermark in one of the at least one rectangular image region; controlling the stereoscopic display to operate in a stereoscopic display mode to display the stereoscopic format image, so that the image content of the streaming image is presented with a stereoscopic visual effect.
[0005] Another exemplary embodiment of this disclosure provides an electronic device including a transceiver, a stereoscopic display, and at least one processor. The transceiver receives a streaming image. The processor is coupled to the transceiver and the stereoscopic display and configured to perform the following operations: Acquire a display frame including the streaming image; Acquire at least one rectangular image region in the display frame by performing edge detection and line detection; Perform watermark detection on the at least one rectangular image region; In response to a watermark appearing in one of the at least one rectangular image region, Generate a stereoscopic format image based on the display frame and one of the at least one rectangular image region; Control the stereoscopic display to operate in a stereoscopic display mode to display the stereoscopic format image, so that the image content of the streaming image is presented with a stereoscopic visual effect.
[0006] Based on the above, in this disclosed embodiment, after acquiring a display frame including a streaming image, at least one rectangular image region in the display frame can be identified through edge detection and line detection. By performing watermark detection on at least one rectangular image region, it can be determined whether each rectangular image region is stereoscopic image content with an embedded watermark. When a certain rectangular image region is stereoscopic image content with an embedded watermark, a stereoscopic format image including a left-eye image and a right-eye image can be generated based on the display frame and the rectangular image region. Therefore, by embedding a watermark in the stereoscopic format image, it is possible to accurately detect that the display frame includes a streaming image conforming to the stereoscopic image format, thereby controlling the stereoscopic display to automatically provide stereoscopic display functionality. Attached Figure Description
[0007] Figure 1 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure;
[0008] Figure 2 This is a schematic diagram of a stereoscopic display according to an embodiment of the present disclosure;
[0009] Figure 3 This is a flowchart of a stereoscopic image display method according to an embodiment of the present disclosure;
[0010] Figure 4 This is a schematic diagram of an embedded watermark according to an embodiment of this disclosure;
[0011] Figure 5 This is a flowchart of obtaining at least one rectangular image region according to an embodiment of the present disclosure;
[0012] Figure 6 This is a schematic diagram illustrating the acquisition of at least one rectangular image region according to an embodiment of this disclosure;
[0013] Figure 7 This is a flowchart illustrating the generation of a stereoscopic format image according to an embodiment of the present disclosure;
[0014] Figure 8This is a schematic diagram illustrating the generation of a stereoscopic format image and a woven pattern frame according to an embodiment of this disclosure;
[0015] Figure 9 This is a schematic diagram illustrating a scenario in which the image content of a streaming image is presented with a stereoscopic visual effect according to an embodiment of the present disclosure. Detailed Implementation
[0016] 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 component reference numerals are used in the drawings and description to denote the same or similar parts.
[0017] Figure 1 This is a schematic diagram of an electronic device according to an embodiment of this disclosure. Please refer to... Figure 1 The electronic device 100 can be implemented as, for example, an electronic device with image processing and computing capabilities, such as a laptop computer, tablet computer, personal computer, game console, portable electronic device, desktop computer, or other electronic device. The electronic device 100 includes a transceiver 110, a stereoscopic display 120, a storage device 130, and at least one processor 140.
[0018] Transceiver 110 can transmit and receive signals wirelessly or via a wired connection. The transceiver can also perform operations such as low-noise amplification, impedance matching, mixing, up- or down-frequency conversion, filtering, amplification, and similar functions. Electronic device 100 can receive and transmit data via transceiver 110, such as receiving streaming images from video streams. In some embodiments, electronic device 100 may also include an antenna (not shown) for receiving radio frequency signals.
[0019] The stereoscopic display 120 allows users to experience a stereoscopic visual effect. To enable users to experience 3D visual effects through the stereoscopic display 120, the stereoscopic display 120 can, depending on its hardware specifications and the applied 3D display technology, allow the user's left and right eyes to view image content corresponding to different viewing angles (i.e., left-eye image and right-eye image). In some embodiments, the stereoscopic display 120 can be a naked-eye 3D display, such as a laptop monitor, television, desktop screen, or electronic billboard, etc. In some embodiments, the left-eye image and right-eye image can be displayed simultaneously based on stereoscopic image display technology, such as parallax barrier technology, lens technology, or directional backlight technology.
[0020] On the other hand, the stereoscopic display 120 may include a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, or other types of displays, and this disclosure is not limited thereto.
[0021] Storage device 130 is used to temporarily or permanently store data, such as images, instructions, program code, software modules, etc. Specifically, storage device 130 may include volatile storage circuitry. The volatile storage circuitry is used to store data in a volatile manner. For example, the volatile storage circuitry may include random access memory (RAM) or similar volatile storage media. Alternatively, storage device 130 may include non-volatile storage circuitry. The non-volatile storage circuitry is used to store data in a non-volatile manner. For example, the non-volatile storage circuitry may include read-only memory (ROM), a solid-state drive (SSD), and / or a traditional hard disk drive (HDD) or similar non-volatile storage media. The number of storage devices 130 may be one or more, and this disclosure is not limited thereto.
[0022] Processor 140 connects to transceiver 110, stereoscopic display 120, and storage device 130, and is responsible for all or part of the operation of electronic device 100. For example, processor 140 may include a central processing unit (CPU), graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessor, digital signal processor (DSP), programmable controller, application-specific integrated circuit (ASIC), programmable logic device (PLD), or other similar device or combination thereof. The number of processors 140 may be one or more, and this disclosure does not limit this.
[0023] Figure 2 This is a schematic diagram of a stereoscopic display according to an embodiment of this disclosure. Please refer to... Figure 2In some embodiments, the stereoscopic display 120 can be a naked-eye stereoscopic display, which provides different images to the left and right eyes through the principle of lens refraction, allowing the viewer to experience a stereoscopic display effect. The stereoscopic display 120 may include a display panel 121 and a lens layer 122. The lens layer 122 is disposed above the display panel 121, and the viewer can see the image content provided by the display panel 121 through the lens layer 122. The stereoscopic display 120 can place the pixels of the left-eye image and the pixels of the right-eye image at corresponding pixel positions on the display panel 121. The lens layer 122 refracts different display content (i.e., the left-eye image and the right-eye image) to different positions in space through light refraction, allowing the left and right eyes to receive two different images with parallax. It is understood that in order to place the pixels of the left-eye image and the right-eye image at corresponding pixel positions on the display panel 121, the left-eye image and the right-eye image need to undergo image weaving processing to produce a woven frame in which the pixels of the left-eye image and the right-eye image are arranged alternately.
[0024] Figure 3 This is a flowchart of a stereoscopic image display method according to an embodiment of this disclosure. Please refer to... Figure 3 The operation process of this embodiment is applicable to the electronic device 100 in the above embodiment. The detailed steps of this embodiment are described below with reference to the various components in the electronic device 100.
[0025] In step S310, processor 140 acquires a display frame including a streaming image. Specifically, processor 140 can receive a video stream including the streaming image via transceiver 110. That is, processor 140 can receive the streaming image via transceiver 110 and generate a display frame including the streaming image. In some embodiments, processor 140 can utilize a screenshot function to acquire the display frame including the streaming image. In some embodiments, the streaming image may originate from a video conferencing program, multimedia playback program, or browser program's video stream. In some embodiments, when processor 140 executes video conferencing software, processor 140 can receive streaming images provided by conference participants via transceiver 110 and generate a display frame including the video conferencing software's window operation interface and the streaming image.
[0026] In some embodiments, the processor 140 may acquire display frames through an application programming interface (API) provided by the operating system. For example, the processor 140 may use screen capture technologies such as the Windows operating system's "Desktop Duplication API" or "DirectX Graphics Infrastructure (DXGI)" to acquire display frames, but is not limited to these.
[0027] In this embodiment, an image conforming to a stereoscopic image format can be embedded with a watermark to generate a streaming image. The watermark can be an invisible watermark. Therefore, the processor 140 can determine whether the currently displayed streaming image conforms to a stereoscopic image format based on the watermark detection result. The stereoscopic image format is, for example, a side-by-side (SBS) image format, which is not limited in this disclosure. The operation of embedding a watermark into a stereoscopic format image can be achieved by post-processing the image conforming to the stereoscopic image format. Alternatively, a specially designed stereoscopic image capturing device can be used to directly output a stereoscopic format image with an embedded watermark.
[0028] For example, Figure 4 This is a schematic diagram of an embedded watermark according to an embodiment of this disclosure. Please refer to... Figure 4 The original image Imgr_1, conforming to a side-by-side image format, has a left-eye image ImgL1 and a right-eye image ImgR1. After watermark embedding processing, an invisible watermark can be embedded in the original image Imgr_1 to generate a streaming image Imgs_1. The streaming image Imgs_1 includes a left-eye image ImgL2 and a right-eye image ImgR2. In some embodiments, the invisible watermark can be embedded through spatial domain embedding processing or frequency domain embedding processing. In some embodiments, the invisible watermark can be embedded through a deep learning network model. The aforementioned deep learning network model can be a generative adversarial network (GAN) model, such as the Robust Invisible Video Watermarking with Attention-Guided Generative Adversarial Network (RivaGAN) model. Therefore, when the processor 140 receives the streaming image Imgs_1 through the transceiver 110 and generates a display frame including the streaming image Imgs_1, the processor 140 can identify the watermark in the display frame by performing watermark detection on a specific rectangular image area in the display frame.
[0029] Back Figure 3In step S320, by performing edge detection and line detection, processor 140 obtains at least one rectangular image region in the display frame. Furthermore, the streaming image will be displayed within a certain rectangular image region in the display frame, therefore processor 140 can first identify multiple rectangular image regions in the display frame. That is, processor 140 can find the streaming image in the display frame through edge detection and line detection. In step S330, processor 140 performs watermark detection on at least one rectangular image region. That is, processor 140 can sequentially perform watermark detection on each rectangular image region. In step S340, processor 140 determines whether a watermark appears in one of the at least one rectangular image region.
[0030] In detail, the display frame acquired based on screen acquisition technology may include streaming images and other image content (such as window operation interfaces), and image content unrelated to the presence of a watermark can affect the accuracy and efficiency of watermark detection. Therefore, in this disclosed embodiment, the processor 140 can first identify one or more rectangular image regions in the display frame through edge detection and line detection, and the streaming image is displayed in one of these rectangular image regions. Then, the processor 140 can perform watermark detection on these rectangular image regions, thereby determining whether the display frame includes a watermarked streaming image and obtaining the location of the watermarked streaming image.
[0031] In some embodiments, the processor 140 can detect invisible watermarks in at least one rectangular image region using a deep learning model. That is, the processor 140 can input each rectangular image region into a deep learning model, which can attempt to extract the watermark from each rectangular image region. When the deep learning model cannot find the watermark in a certain rectangular image region, it can output a preset indicator or value representing the absence of the watermark. When the deep learning model can find the watermark in a certain rectangular image region, it can output the binary code of the watermark. The deep learning model is, for example, a RivaGAN model, but is not limited to this.
[0032] It is worth noting that if the entire display frame is directly input into the deep learning model, even if the streaming image in the display frame contains a watermark, the processor 140 may not be able to correctly detect the presence of the watermark using the deep learning model. This is because the display frame may also include other image content unrelated to the streaming image, and this other image content is also irrelevant to the deep learning model's watermark embedding process. Therefore, the deep learning model may not be able to correctly detect the presence of the watermark from the display frame. Therefore, this disclosure improves the accuracy of watermark detection by identifying multiple rectangular image regions.
[0033] If step S340 determines that the image conforms to a stereoscopic image format, then in step S350, in response to a watermark appearing in at least one of the rectangular image regions, the processor 140 generates a stereoscopic image based on the displayed frame and one of the at least one rectangular image region. This stereoscopic image is a side-by-side image comprising a first-view image and a second-view image. The first-view image may be a left-eye image, and the second-view image may be a right-eye image. Alternatively, the first-view image may be a right-eye image, and the second-view image may be a left-eye image.
[0034] In detail, since users may zoom or move the application window, the size and position of the streaming image within the application window in the display frame are variable. In this disclosed embodiment, in response to the movement or zooming of the application window, the rectangular image area with watermark can also move and zoom accordingly. Therefore, based on the range defined by the rectangular image area with watermark, the processor 140 can obtain the image occupancy range of the streaming image conforming to the stereoscopic image format in the display frame.
[0035] Therefore, the processor 140 can generate left-eye and right-eye images of a stereoscopic image based on the two-dimensional background block in the display frame and the rectangular image area with a watermark. Specifically, the left-eye image of the stereoscopic image may include the two-dimensional background block in the display frame and the left-eye image of the streaming image. The right-eye image of the stereoscopic image may include the two-dimensional background block in the display frame and the right-eye image of the streaming image. In other words, the stereoscopic image simultaneously includes 3D image content with parallax and a two-dimensional background without parallax.
[0036] In step S360, the processor 140 controls the stereoscopic display 120 to operate in stereoscopic display mode to display a stereoscopic image, so that the image content of the streaming image is presented with a stereoscopic visual effect. Specifically, when the stereoscopic display 120 is a naked-eye stereoscopic display, the processor 140 can perform image weaving processing on the stereoscopic image (e.g., an SBS image) to obtain a woven image. This image weaving processing arranges the pixels of the left-eye image and the right-eye image of the stereoscopic image alternately within the woven frame. Then, when the stereoscopic display 120 operates in stereoscopic display mode, the display panel 121 of the stereoscopic display 120 displays the woven image, and the refraction function of the lens layer 122 of the stereoscopic display 120 is enabled, allowing the viewer to experience a stereoscopic visual effect.
[0037] For example, in the scenario where the processor 140 is running video conferencing software, in response to the appearance of a watermark in a rectangular image area of the displayed frame, the stereoscopic display 120 can enable stereoscopic display functionality and display stereoscopic streaming content provided by the meeting participants and the window operation interface of the video conferencing software. Therefore, the user can experience a stereoscopic visual effect.
[0038] On the other hand, if step S340 determines otherwise, it means the streaming image does not conform to the stereoscopic image format. In step S370, in response to a watermark not appearing in at least one rectangular image area, the processor 140 controls the stereoscopic display 120 to operate in two-dimensional display mode and display the display frame. In some embodiments, when the stereoscopic display 120, which is a naked-eye stereoscopic display, operates in two-dimensional display mode and does not provide stereoscopic display functionality, the display panel 121 of the stereoscopic display 120 will output the display frame, and the refraction function of the lens layer 122 of the stereoscopic display 120 is disabled.
[0039] For example, in the case where the processor 140 is running video conferencing software, if the watermark does not appear in any rectangular image area of the display frame, the stereoscopic display 120 may disable the stereoscopic display function and display the display frame including the streaming image and the window operation interface of the video conferencing software.
[0040] Figure 5 This is a flowchart illustrating the acquisition of at least one rectangular image region according to an embodiment of this disclosure. Please refer to... Figure 5 The operation flow of this embodiment applies to the electronic device 100 in the above embodiments. The detailed steps of this embodiment will be described below with reference to the various components in the electronic device 100. To clearly explain the principle of this embodiment, the following supplementary explanations... Figure 6 Please provide an explanation. Figure 6 This is a schematic diagram of obtaining at least one rectangular image region according to an embodiment of the present disclosure.
[0041] In step S510, the processor 140 performs a contrast adjustment process on the display frame Img61. The processor 140 can improve the contrast of the display frame Img61, making the brightness differences between different areas in the display frame Img61 more obvious, thereby making the edges in the display frame Img61 more prominent.
[0042] In step S520, the processor 140 performs a Gaussian blur on the contrast-adjusted display frame Img61 to reduce noise and smooth the edges.
[0043] In step S530, the processor 140 performs edge detection on the display frame Img61, which has undergone contrast adjustment and Gaussian blur processing, to obtain an edge image Img62. The edge image Img62 may be a binary image composed of edge pixels. Edge detection may be, for example, Canny edge detection, but is not limited to this.
[0044] In step S540, the processor 140 performs line detection on the edge image Img62, and obtains at least one rectangular image region in the display frame Img61 based on multiple lines L61 to L65. In this embodiment, step S540 can be implemented as steps S541 to S543.
[0045] In step S541, processor 140 performs line detection on the edge image Img62 to obtain multiple lines L61 to L65 from the edge image. In some embodiments, the multiple lines L61 to L65 include multiple vertical lines and multiple horizontal lines. In some embodiments, processor 140 may perform line detection based on the Hough transform procedure. Processor 140 may perform edge detection to obtain multiple edges in the edge image Img62, and filter out multiple vertical lines and multiple horizontal lines with lengths greater than a length threshold from these edges. However, regarding line detection, the Hough transform procedure or other line detection algorithms well known to those skilled in the art can be applied, and there are no specific limitations.
[0046] In step S542, the processor 140 filters at least one target rectangular contour RCT6 from at least one candidate rectangular contour formed by multiple straight lines based on a rectangle size constraint and a rectangle proportion constraint. The processor 140 can determine whether multiple straight lines L61 to L65 can form a candidate rectangular contour. Further, the processor 140 can identify at least one candidate rectangular contour formed by some straight lines based on the slope, intersection point, length, and other straight line information of straight lines L61 to L65. For example, the processor 140 can identify a candidate rectangular contour formed by straight lines L64, L65, L61, and L62. The processor 140 can also identify another candidate rectangular contour formed by straight lines L64, L65, L63, and L62.
[0047] Next, the processor 140 can determine whether these candidate rectangular outlines meet the rectangle size constraints. For example, the processor 140 can determine whether the area of these candidate rectangular outlines is greater than the lower limit of the rectangle area. The processor 140 can determine whether the area of these candidate rectangular outlines is less than the upper limit of the rectangle area. Alternatively, the processor 140 can determine whether these candidate rectangular outlines meet the rectangle ratio constraints. For example, the processor 140 can determine whether the aspect ratio of these candidate rectangular outlines is within a preset range. Based on this, through filtering by the rectangle size constraint and the rectangle ratio constraint, the processor 140 can filter at least one target rectangular outline RCT6 from at least one candidate rectangular outline.
[0048] In step S543, the processor 140 obtains at least one rectangular image region Re_z1 from the display frame Img61 based on at least one target rectangular outline RCT6. However, Figure 6 This is only used to demonstrate the detection principle of rectangular image regions. The number and position of straight lines and rectangular image regions need to be determined according to the actual content of the displayed image frame.
[0049] Figure 7 This is a flowchart illustrating the generation of a stereoscopic image according to an embodiment of this disclosure. Please refer to... Figure 7 The operation flow of this embodiment applies to the electronic device 100 in the above embodiments. The detailed steps of this embodiment will be described below with reference to the various components in the electronic device 100. To clearly explain the principle of this embodiment, the following supplementary explanations... Figure 8 Please provide an explanation. Figure 8 This is a schematic diagram illustrating the generation of a stereoscopic format image and a woven pattern frame according to an embodiment of this disclosure. Please refer to it as well. Figure 7 and Figure 8 .
[0050] In step S710, the processor 140 divides the display frame F81 into at least one rectangular image region (i.e., rectangular image region Z1) and a two-dimensional background image block Z2. That is, after the processor 140 detects the presence of a watermark in the rectangular image region Z1, the processor 140 divides the display frame F81 into the watermarked rectangular image region Z1 and the two-dimensional background image block Z2. The rectangular image region Z1 includes a streaming image conforming to a stereoscopic image format and comprising a first-view image L_1 (i.e., the left-eye image) and a second-view image R_1 (i.e., the right-eye image).
[0051] In step S720, the processor 140 combines a first-view image L_1 of the streaming image in at least one of the rectangular image regions (i.e., rectangular image region Z1) with a two-dimensional background image block Z2 to form a first-view image L_2 of a stereoscopic image Imgf1. The at least one of the rectangular image regions (i.e., rectangular image region Z1) includes a streaming image conforming to a stereoscopic image format. Specifically, the processor 140 can perform image scaling on the first-view image L_1 of the streaming image according to the display block size of the rectangular image region Z1. The processor 140 can synthesize the scaled first-view image L_1 and the two-dimensional background image block Z2 according to the display position of the rectangular image region Z1 to generate the first-view image L_2.
[0052] In step S730, the processor 140 combines the second-view image R_1 of the streaming image in at least one of the rectangular image regions (i.e., the rectangular image region Z1) with the two-dimensional background image block Z2 to form a second-view image R_2 of the stereo format image Imgf1. The method of generating the second-view image R_2 is the same as the method of generating the first-view image L_2, and will not be described again here.
[0053] In some embodiments, when the stereoscopic display 120 is a naked-view stereoscopic display, the processor 140 may perform image weaving processing on the stereoscopic format image Imgf1 to generate a woven image frame WF1. In this case, when the stereoscopic display 120 displays the woven image frame WF1, the viewer can see stereoscopic streaming content with a stereoscopic visual effect.
[0054] Figure 9 This is a schematic diagram illustrating a scenario where the image content of a streaming image is presented with a stereoscopic visual effect according to an embodiment of this disclosure. Please refer to... Figure 9 The electronic device 100 can execute a conference software program to display a display frame F91. The display frame F91 includes a streaming image Img91 and a window operation interface, and the streaming image Img91, conforming to the SBS format, has a watermark embedded. Therefore, after detecting that the streaming image Img91 has a watermark, the electronic device 100 can switch to a stereoscopic display mode to display the display frame F92, so that the image content of the streaming image Img91 is presented with a stereoscopic visual effect.
[0055] In summary, in this disclosed embodiment, if a watermark appears within a rectangular image area of a displayed image frame, it can be determined that the displayed image frame includes a stereoscopic streaming image conforming to a stereoscopic image format. Furthermore, the image range of the streaming image conforming to the stereoscopic image format can be determined based on the rectangular image area where the watermark is detected, thus distinguishing between the 3D content image area and the 2D background area in the displayed image frame. Subsequently, the displayed image frame can be converted into a stereoscopic format image including left-eye and right-eye images, and the stereoscopic display can be controlled to operate in stereoscopic display mode to display the stereoscopic format image. Therefore, by embedding a watermark in the stereoscopic format image, it is possible to accurately detect that the displayed image frame includes a streaming image conforming to a stereoscopic image format, thereby controlling the stereoscopic display to automatically provide stereoscopic display functionality. In addition, since watermark detection is performed on each rectangular image area, the accuracy and efficiency of watermark detection can be improved.
[0056] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for displaying stereoscopic images, applicable to electronic devices including stereoscopic displays, characterized in that, include: Acquire display frames including streaming images; At least one rectangular image region in the displayed frame is obtained by performing edge detection and line detection; Watermark detection is performed on the at least one rectangular image region; The reaction occurs when the watermark appears in one of the at least one rectangular image regions, and a stereoscopic format image is generated based on the display frame and one of the at least one rectangular image regions; as well as The stereo display is controlled to operate in stereo display mode to display the stereo format image, so that the image content of the streaming image is presented with a stereo visual effect.
2. The stereoscopic image display method according to claim 1, characterized in that, Also includes: If the watermark does not appear in the at least one rectangular image area, the stereoscopic display is controlled to operate in two-dimensional display mode to display the display frame.
3. The stereoscopic image display method according to claim 1, characterized in that, The step of obtaining the at least one rectangular image region in the display frame by performing the edge detection and the line detection includes: The edge detection is performed on the displayed image frame to obtain an edge image; and The line detection is performed on the edge image, and the at least one rectangular image region in the display frame is obtained based on multiple lines.
4. The stereoscopic image display method according to claim 3, characterized in that, The step of performing the line detection on the edge image and obtaining the at least one rectangular image region in the display frame based on the plurality of lines includes: Perform the line detection on the edge image to obtain multiple straight lines from the edge image; Based on the rectangle size and ratio constraints, at least one target rectangle contour is selected from at least one candidate rectangle contour formed by the plurality of straight lines; and The at least one rectangular image region is obtained from the display frame based on the at least one target rectangular outline.
5. The stereoscopic image display method according to claim 4, characterized in that, The multiple straight lines include multiple vertical straight lines and multiple horizontal straight lines.
6. The stereoscopic image display method according to claim 3, characterized in that, Before the step of performing edge detection on the displayed image frame to obtain the edge image, the method further includes: Perform contrast adjustment processing on the displayed image frame; and The displayed image frame is subjected to Gaussian blur processing.
7. The stereoscopic image display method according to claim 1, characterized in that, The step of generating the stereoscopic format image based on the display frame and one of the at least one rectangular image regions, in response to the watermark appearing in one of the watermarked areas, includes: The display frame is divided into one of the at least one rectangular image region and a two-dimensional background image block, wherein one of the at least one rectangular image region includes the streaming image conforming to a stereoscopic image format; The first-view image of the streaming image in one of the at least one rectangular image regions is combined with the two-dimensional background image block to form the first-view image of the stereoscopic format image; and The second-view image of the streaming image in one of the at least one rectangular image regions is combined with the two-dimensional background image block to form the second-view image of the stereoscopic format image.
8. The stereoscopic image display method according to claim 7, characterized in that, The stereoscopic image format includes a side-by-side format.
9. The stereoscopic image display method according to claim 1, characterized in that, Acquiring the display frame including the streaming image includes: Use the screenshot function to obtain the display frame including the streaming image.
10. The stereoscopic image display method according to claim 1, characterized in that, The step of performing the watermark detection on the at least one rectangular image region includes: The invisible watermark in the at least one rectangular image region is detected using a deep learning model.
11. An electronic device, characterized in that, include: 3D display; as well as At least one processor is coupled to the stereoscopic display and configured to: Acquire display frames including streaming images; At least one rectangular image region in the displayed frame is obtained by performing edge detection and line detection; Watermark detection is performed on the at least one rectangular image region; The reaction occurs when a watermark appears in one of the at least one rectangular image regions, and a stereoscopic image is generated based on the display frame and one of the at least one rectangular image regions; as well as The stereo display is controlled to operate in stereo display mode to display the stereo format image, so that the image content of the streaming image is presented with a stereo visual effect.