CN112333438A - Method, device and equipment for processing stereo image and computer readable storage medium - Google Patents

Method, device and equipment for processing stereo image and computer readable storage medium Download PDF

Info

Publication number
CN112333438A
CN112333438A CN202010939111.4A CN202010939111A CN112333438A CN 112333438 A CN112333438 A CN 112333438A CN 202010939111 A CN202010939111 A CN 202010939111A CN 112333438 A CN112333438 A CN 112333438A
Authority
CN
China
Prior art keywords
pixel information
odd
frame picture
glasses
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010939111.4A
Other languages
Chinese (zh)
Other versions
CN112333438B (en
Inventor
王云华
王俊方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010939111.4A priority Critical patent/CN112333438B/en
Publication of CN112333438A publication Critical patent/CN112333438A/en
Application granted granted Critical
Publication of CN112333438B publication Critical patent/CN112333438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/332Displays for viewing with the aid of special glasses or head-mounted displays [HMD]

Abstract

The invention discloses a method, a device and equipment for processing a stereo image and a computer readable storage medium, wherein the method comprises the following steps: when an intercepting instruction aiming at the stereo image is detected, acquiring odd frame pictures and even frame pictures in the stereo image according to the intercepting instruction; extracting odd pixel information in an odd frame picture and even pixel information in an even frame picture to acquire first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to acquire second pixel information; determining left glasses and right glasses corresponding to the stereoscopic image, transmitting first pixel information to the left glasses, and transmitting second pixel information to the right glasses; and if an interception stop instruction for the three-dimensional image is received, generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses, and outputting the intercepted three-dimensional image. The invention improves the efficiency and the accuracy of intercepting the stereo image video.

Description

Method, device and equipment for processing stereo image and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a method, a device and equipment for processing a three-dimensional image and a computer readable storage medium.
Background
At present, more and more smart televisions are equipped with a stereoscopic image technology, and a user can watch stereoscopic image videos with a stereoscopic picture effect, such as a television and a movie, through the stereoscopic image technology in a smart television system, but when the user needs to intercept and store a certain part of the stereoscopic image videos, the user can only record the part of the stereoscopic image videos through another terminal device so as to store the part of the stereoscopic image videos, but the operation is easy to make mistakes, and the operation is complicated, so that how to improve the efficiency and accuracy of intercepting the stereoscopic image videos becomes a technical problem to be solved urgently at present.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for processing a three-dimensional image and a computer readable storage medium, and aims to solve the technical problem of how to improve the efficiency and accuracy of capturing a three-dimensional image video.
In order to achieve the above object, the present invention provides a stereoscopic image processing method, including:
when an intercepting instruction aiming at the stereo image is detected, acquiring odd frame pictures and even frame pictures in the stereo image according to the intercepting instruction;
extracting odd pixel information in an odd frame picture and even pixel information in an even frame picture to acquire first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to acquire second pixel information;
determining left glasses and right glasses corresponding to the stereoscopic image, transmitting first pixel information to the left glasses, and transmitting second pixel information to the right glasses;
and if an interception stop instruction for the three-dimensional image is received, generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses, and outputting the intercepted three-dimensional image.
Further, to achieve the above object, the present invention provides a stereoscopic image processing apparatus comprising:
the acquisition module is used for acquiring odd frame pictures and even frame pictures in the three-dimensional image according to an interception instruction when the interception instruction aiming at the intercepted three-dimensional image is detected;
the extraction module is used for extracting odd pixel information in an odd frame picture and even pixel information in an even frame picture to acquire first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to acquire second pixel information;
the determining module is used for determining left glasses and right glasses corresponding to the stereoscopic image, transmitting the first pixel information to the left glasses and transmitting the second pixel information to the right glasses;
and the output module is used for generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses and outputting the intercepted three-dimensional image if an interception stop instruction aiming at the three-dimensional image is received.
Further, to achieve the above object, the present invention provides a stereoscopic image processing apparatus including: the image processing system comprises a memory, a processor and a stereo image processing program stored on the memory and capable of running on the processor, wherein the stereo image processing program realizes the steps of the stereo image processing method when being executed by the processor.
Further, to achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a stereoscopic image processing program, which when executed by a processor, implements the steps of the stereoscopic image processing method as described above.
The embodiment of the invention provides a method, a device, equipment and a computer readable storage medium for processing a three-dimensional image, wherein odd frame images and even frame images of the three-dimensional image are obtained according to an intercepting instruction, odd pixel information in the odd frame images and even pixel information in the even frame images are transmitted to left glasses as first pixel information, and even pixel information in the odd frame images and odd pixel information in the even frame images are transmitted to right glasses as second pixel information, so that the intercepted three-dimensional image generates a phenomenon of video pixel interlacing, the three-dimensional effect of the intercepted three-dimensional image is ensured, and when the intercepting stopping instruction is received, the intercepted three-dimensional image is formed according to the first pixel information obtained by the left glasses and the second pixel information obtained by the right glasses, and the intercepted three-dimensional image is output, thereby avoiding the phenomenon that the three-dimensional image needs to be recorded by adopting another device in the prior art, the efficiency and the accuracy of intercepting the stereo image video are improved.
Drawings
Fig. 1 is a schematic structural diagram of a stereoscopic image processing device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a stereoscopic image processing method according to a first embodiment of the present invention;
FIG. 3 is a block diagram of a stereoscopic image processing apparatus according to the present invention;
FIG. 4 is a schematic view of a scene in which odd frame pictures and even frame pictures are stored in a first storage area according to the stereoscopic image processing method of the present invention;
FIG. 5 is a schematic view of a second storage area and a third storage area of the stereoscopic image processing method of the present invention;
fig. 6 is a scene schematic diagram of a storage area four of the stereo image processing method of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a stereoscopic image processing device in a hardware operating environment according to an embodiment of the present invention.
The stereo image processing equipment comprises video terminal equipment such as a mobile phone.
As shown in fig. 1, the stereoscopic image processing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the stereoscopic image processing device may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the stereoscopic image processing device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration of the stereoscopic image processing apparatus shown in fig. 1 does not constitute a limitation of the stereoscopic image processing apparatus, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a stereoscopic image processing program.
In the stereoscopic image processing device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the stereoscopic image processing program stored in the memory 1005, and perform the following operations:
when an intercepting instruction aiming at the stereo image is detected, acquiring odd frame pictures and even frame pictures in the stereo image according to the intercepting instruction;
extracting odd pixel information in an odd frame picture and even pixel information in an even frame picture to acquire first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to acquire second pixel information;
determining left glasses and right glasses corresponding to the stereoscopic image, transmitting first pixel information to the left glasses, and transmitting second pixel information to the right glasses;
and if an interception stop instruction for the three-dimensional image is received, generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses, and outputting the intercepted three-dimensional image.
Referring to fig. 2, in an embodiment of a stereoscopic image processing method, the stereoscopic image processing method includes:
step S10, when detecting the intercepting instruction aiming at the stereo image, the terminal obtains the odd frame picture and the even frame picture in the stereo image according to the intercepting instruction;
in this embodiment, the stereoscopic image is a three-dimensional stereoscopic image that can be seen by the user in one plane by using the principle of binocular vision difference and optical refraction of the user. In addition, the terminal (e.g., a smart television, a computer, etc.) in this embodiment needs to detect whether the terminal has a switch function of the stereoscopic glasses (a device for allowing a user to view a stereoscopic image), and determine whether the switch of the stereoscopic glasses is turned on, and the turn-on time is longer than 1 minute, and if so, the subsequent stereoscopic image capturing operation may be performed. Or whether the terminal system has the function of opening and closing the stereo image is detected, that is, whether the terminal supports the playing of the stereo image is detected, and only when the terminal supports the playing of the stereo image, the subsequent operation of intercepting the stereo image can be carried out. When the terminal plays the stereo video decoding, after receiving an instruction of intercepting a video program, namely an instruction of intercepting a stereo image in the terminal, the terminal can start to intercept the stereo image according to the interception instruction. When an intercepting instruction is received, user information (such as a name, a family identity and the like) corresponding to the intercepting instruction needs to be acquired first, so that whether the user has specific authority to perform intercepting operation or not is detected. The manner of acquiring the user information may be acquiring when the user inputs the user information through a remote controller or other terminals, or performing fingerprint identification when the user picks up a terminal such as a remote controller, and determining the user information based on the fingerprint identification result. It should be noted that the clipping instruction may include the length of the stereoscopic image to be clipped, for example, 60 seconds, and further include a source of the stereoscopic image, for example, determining whether the source is a shutter or a polarization.
After the capturing instruction is obtained, the terminal can capture the stereoscopic image according to the capturing instruction, and in the process of capturing the stereoscopic image video frame program, the stereoscopic image video stream which is being played in the terminal is read, and a first buffer area, namely a first buffer area, is arranged in the terminal so as to temporarily store two read frame images of the stereoscopic image, namely an odd frame image and an even frame image. It should be noted that, in this embodiment, the stereoscopic image is played in the terminal in a video stream manner, that is, each frame has a certain playing sequence. And continuously acquiring new odd frame images and even frame images in the first buffer area according to the playing sequence of the stereo images, namely continuously updating the odd frame images and the even frame images in the first buffer area. As shown in fig. 4, the video buffering acquisition module stores a first storage space, i.e., stores the acquired odd frame pictures and even frame pictures in the first storage space (storage area one). The odd frame picture may be a picture of an odd frame acquired when performing a capture operation, such as a first frame picture, a third frame picture, and the like. The even frame picture may be a picture of an even frame acquired when the clipping operation is performed, such as a second frame picture, a fourth frame picture, or the like.
Step 20, the terminal extracts odd pixel information in the odd frame picture and even pixel information in the even frame picture to obtain first pixel information, and extracts even pixel information in the odd frame picture and odd pixel information in the even frame picture to obtain second pixel information;
after the terminal acquires the odd frame picture and the even frame picture, a second buffer area (i.e., a second video left-eye data processing storage space) and a third buffer area (i.e., a third video right-eye data processing storage space) as shown in fig. 5 may be set again, that is, corresponding processing is performed on the odd frame picture and the even frame picture in the first buffer area, odd lines and even lines of the odd frame picture and even lines of the even frame are determined, odd pixel information of the odd lines and even pixel information of the even lines of the even frame are extracted from the odd frame picture, and the odd pixel information of the odd lines and the even pixel information of the even lines of the even frame are stored in the second buffer area as first pixel information. And extracting even pixel information of even lines of the odd frame picture and odd pixel information of odd lines of the even frame picture, and storing the even pixel information of the even lines of the odd frame picture and the odd pixel information of the odd lines of the even frame picture as second pixel information in a third buffer area. For example, when the odd frame picture is the first frame picture, the even frame picture is the second frame picture, and the pixel point in each row of each frame picture is 1280, then 1280/2 is calculated to be 640, at this time, the 0-630 pixel points in the first row of the first frame picture can be stored in the second buffer as the odd pixel information of the first frame picture, and the 640-1280 pixel points in the second row of the second frame picture can be stored in the second buffer as the even pixel information of the second frame picture. And storing the 0-630 pixel points in the second row of the first frame image as the even pixel information of the first frame image in the third buffer area, and storing the 640-1280 pixel points in the first row of the second frame image as the odd pixel information of the second frame image in the third buffer area. The odd-numbered pixel information may be half of the pixels in the odd-numbered lines of each frame. The even pixel information may be half of the pixels in the even rows of each frame. The first pixel information may be a pixel point stored in the storage area two. The second pixel information may be a pixel point stored in the storage area three.
Step S30, the terminal determines a left glasses and a right glasses corresponding to the stereo image, transmits the first pixel information to the left glasses, and transmits the second pixel information to the right glasses;
in this embodiment, a fourth storage area is also created for storing left glasses (i.e., left glasses part) and right glasses (i.e., right glasses part), that is, stereoscopic glasses corresponding to the terminal where the stereoscopic image is located need to be determined first, the stereoscopic glasses establish a communication connection with the terminal, and the left glasses and the right glasses in the stereoscopic glasses are determined. And then respectively starting the left glasses and the right glasses according to the second buffer area and the third buffer area, namely starting a left glasses switch when detecting that the odd pixel information in the odd frame picture is received in the second buffer area, transmitting the odd pixel information in the odd frame picture to the left glasses, closing the left glasses when the even pixel information in the odd frame picture is received in the third buffer area, starting a right glasses switch, and transmitting the even pixel information in the odd frame picture to the right glasses. And when the buffer area III receives the odd pixel information in the even frame picture, the left glasses are closed, the right glasses switch is started, and the odd pixel information in the even frame picture is transmitted to the right glasses. And when the even pixel information in the even frame picture is received in the second buffer area, starting a switch of the left glasses, closing the right glasses, and transmitting the even pixel information in the even frame picture to the left glasses. Namely, an interlaced pixel processing mode is adopted, and when the terminal system processes pixels and sends the pixels to the display panel for display, information for controlling glasses is sent to the stereo glasses, so that the left end and the right end in the stereo glasses are dynamically switched, and a user can visually see a stereo image. And as shown in fig. 6, the video left and right glasses switching data processing storage space is four, that is, the data of the left glasses and the data of the right glasses are stored in the storage space four, and different activation time and closing time of the left and right glasses are set according to different odd and even pixels, for example, the left glasses are activated for 50ms when detecting odd pixel information in an odd frame picture, are deactivated for 45ms when detecting even pixel information in an odd frame picture, are deactivated for 45ms when detecting odd pixel information in an even frame picture, and are activated for 50ms when detecting even pixel information in an even frame picture.
In step S40, if the clipping stop instruction for the stereoscopic image is received, the terminal generates a clipped stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and outputs the clipped stereoscopic image.
When an interception stop instruction corresponding to the interception instruction is received in the terminal, the terminal can stop the interception operation of the stereoscopic image according to the interception stop instruction. And forming an intercepted three-dimensional image according to the first pixel information acquired by the left glasses and the second pixel information acquired by the right glasses, namely determining the playing sequence of the first pixel information and the second pixel information according to the starting time of the left glasses and the starting time of the right glasses, arranging the first pixel information and the second quadrant information according to the playing sequence to obtain the intercepted three-dimensional image, and outputting the intercepted three-dimensional image, such as displaying on a display interface sent to a terminal and the like.
In addition, in order to assist understanding of the present embodiment, in order to assist understanding of the stereoscopic image capturing, an example is described below.
For example, if a stereoscopic image capture needs to be performed on a stereoscopic image video stream of 1280x720@60Hz, when a user presses a stereoscopic video capture key and the terminal receives a capture instruction, the user information obtained by the terminal according to the capture instruction is: mom, time 60s of capture, the current video (i.e., stereo image) film source is the shutter release. And performing stereo image interception according to an interception instruction, namely creating a second buffer area and a third buffer area, wherein because the pixel point of each frame picture is 1280, 1280/2 can be calculated as 640, 0-639 of the first row in the first frame picture is stored in the second buffer area as an odd pixel point (namely, odd pixel information of the odd frame picture), 640-1280 of the second row in the second frame picture is stored in the second buffer area as even pixel information of the second frame picture, 0-639 of the second row in the first frame picture is stored in the third buffer area as an even pixel point (namely, even pixel information of the odd frame picture), and 640-1280 of the first row in the second frame picture is stored in the third buffer area as odd pixel information of the second frame picture. And the odd frame picture (such as a first frame picture) and the even frame picture (such as a second frame picture) are subjected to different pixel point acquisition aiming at different lines in the same mode so as to achieve the phenomenon of video pixel interlacing. And a fourth buffer area is created to store the left glasses and the right glasses, namely, the left glasses are opened for 50ms when the pixels in the first row of the first frame picture are 0-640, and the left glasses are closed for 45ms when the pixels in the first row of the first frame picture are 640-1280. And when the pixels in the second frame are 0-640, closing the left glasses for 45ms, and when the pixels in the second frame are 640-1280, opening the left glasses for 50 ms. And when receiving the interception stop instruction, stopping intercepting the three-dimensional image and outputting the successfully intercepted three-dimensional image.
In the present embodiment, by acquiring the odd frame picture and the even frame picture of the stereoscopic image according to the clipping instruction, and transmits the odd pixel information in the odd frame picture and the even pixel information of the even frame picture as first pixel information to the left glasses, transmits the even pixel information in the odd frame picture and the odd pixel information of the even frame picture as second pixel information to the right glasses, thereby leading the intercepted three-dimensional image to generate the phenomenon of video pixel interlacing, ensuring the three-dimensional effect of the intercepted three-dimensional image, and when receiving the interception stop instruction, forming a cut stereoscopic image according to the first pixel information acquired by the left glasses and the second pixel information acquired by the right glasses, and outputting the cut stereoscopic image, therefore, the phenomenon that an additional device is needed to record the three-dimensional image in the prior art is avoided, and the efficiency and the accuracy of capturing the three-dimensional image video are improved.
Further, on the basis of the first embodiment of the present invention, there is further provided a second embodiment of the stereoscopic image processing method of the present invention, which is step S20 of the first embodiment of the present invention, and the refinement of the step of extracting odd-numbered pixel information in an odd-numbered frame picture and even-numbered pixel information in an even-numbered frame picture by the terminal to obtain the first pixel information includes:
step a, the terminal extracts odd pixel information of odd lines in an odd frame picture and even pixel information of even lines in an even frame picture, and the odd pixel information of the odd lines in the odd frame picture and the even pixel information of the even lines in the even frame picture are first pixel information.
In this embodiment, after the terminal determines the odd frame picture and the even frame picture, it needs to set the second buffer area, determine the odd rows in the odd frame picture, and extract the odd pixel information of the odd rows, for example, using the first row 0-630 pixels of the first frame picture as the odd pixel information of the odd rows in the odd frame picture. Similarly, the even-numbered lines in the even-numbered frame picture need to be determined, and the even-numbered pixel information of the even-numbered lines needs to be extracted, for example, the second line 640-1280 pixel points of the second frame picture are used as the even-numbered pixel information of the even-numbered lines in the even-numbered frame picture. And the odd pixel information of the odd lines in the odd frame picture and the even pixel information of the even lines in the even frame picture are stored as the first pixel information in the second buffer area.
In this embodiment, the terminal extracts odd pixel information of an odd line in an odd frame picture and even pixel information of an even line in an even frame picture as the first pixel information, thereby ensuring the accuracy of the acquired first pixel information.
Further, the step of the terminal extracting the even pixel information in the odd frame picture and the odd pixel information in the even frame picture to obtain the second pixel information includes:
and b, extracting the even pixel information of the even lines in the odd frame picture and the odd pixel information of the odd lines in the even frame picture by the terminal, wherein the even pixel information of the even lines in the odd frame picture and the odd pixel information of the odd lines in the even frame picture are second pixel information.
In this embodiment, after the terminal determines the odd frame picture and the even frame picture, it needs to set the third buffer area, determine the even rows in the odd frame picture, and extract the odd pixel information of the even rows, for example, using the second row 0-630 pixel points of the first frame picture as the odd pixel information of the even rows in the odd frame picture. Similarly, the odd-numbered lines in the even-numbered frame are determined, and the odd-numbered pixel information of the odd-numbered lines is extracted, for example, the first line 640-1280 pixel points of the second frame are used as the even-numbered pixel information of the even-numbered lines in the even-numbered frame. And the even pixel information of the even lines in the odd frame picture and the odd pixel information of the odd lines in the even frame picture are stored in the third buffer area as the second pixel information.
In this embodiment, the accuracy of the acquired second pixel information is ensured by extracting the even pixel information of the even line in the odd frame picture and the odd pixel information of the odd line in the even frame picture as the second pixel information.
Further, the step of the terminal transferring the first pixel information to the left glasses includes:
c, the terminal determines the starting time of the left glasses according to the first pixel information and determines the closing time of the left glasses according to the second pixel information;
and step x, transmitting the first pixel information to the left glasses according to the starting time and the closing time of the left glasses.
In this embodiment, when the second buffer has stored the first pixel information and the third buffer has stored the second pixel information, the terminal may determine a time node of a start time of the left glasses according to the first pixel information and determine a time node of a stop time of the left glasses according to the second pixel information, so that when the input first pixel information is detected in the second buffer, the terminal may start the left glasses (i.e., the left glasses) and continue to be started for 50ms, acquire the first pixel information through the left glasses and store the first pixel information in the preset fourth buffer, and when the input second pixel information is detected in the third buffer, the terminal may stop the left glasses for 45 ms. For example, when the pixels in the first row of the first frame are 0-640, the left glasses are turned on for 50ms, and when the pixels are 640-1280, the left glasses are turned off for 45 ms. And when the pixels in the second frame are 0-640, closing the left glasses for 45ms, and when the pixels in the second frame are 640-1280, opening the left glasses for 50 ms.
In the present embodiment, by determining the start-up time of the left glasses according to the first pixel information, determining the close time of the left glasses according to the second pixel information, and transferring the first pixel information to the left glasses based on the two times, stable transmission of the first pixel information is ensured.
Further, the step of the terminal transferring the second pixel information to the right glasses includes:
d, the terminal determines the starting time of the right glasses according to the second pixel information, determines the closing time of the right glasses according to the first pixel information,
and step y, transmitting the second pixel information to the right glasses according to the starting time and the closing time of the right glasses.
In this embodiment, when the second buffer has stored the first pixel information and the third buffer has stored the second pixel information, the terminal may determine a time node of a start time of the right glasses according to the second pixel information and determine a time node of a close time of the right glasses according to the first pixel information, so that when the input second pixel information is detected in the third buffer, the right glasses (i.e., the right glasses) may be started and continuously started for 50ms, the second pixel information is acquired through the right glasses and stored in the preset fourth buffer, and when the input first pixel information is detected in the second buffer, the left glasses may be closed for 45 ms.
In the present embodiment, by determining the activation time of the right glasses according to the second pixel information, determining the closing time of the right glasses according to the first pixel information, and transferring the second pixel information to the right glasses based on the two times, stable transmission of the second pixel information is ensured.
Further, the step that the terminal obtains the odd frame picture and the even frame picture in the stereo image according to the intercepting instruction comprises the following steps:
step f, the terminal acquires image information of the stereo image according to the intercepting instruction;
in this embodiment, after the capture instruction is obtained, it is necessary to determine image information, such as pixel points, frame numbers, and film sources, of a video stream corresponding to a stereoscopic image according to the capture instruction, determine whether the stereoscopic image supports the capture operation according to the image information, and support different operations based on different determination results.
And g, if the stereoscopic image supports the intercepting operation according to the image information, the terminal acquires the odd frame picture and the even frame picture in the stereoscopic image according to the image information.
When the stereoscopic image supports the intercepting operation after judgment, the terminal can determine the intercepting range of the video stream corresponding to the stereoscopic image according to the image information, and starts to carry out the intercepting operation according to the intercepting range to obtain the pictures of two continuous frames in the stereoscopic image, namely the odd frame picture and the even frame picture. And if the three-dimensional image does not support the interception operation, outputting corresponding prompt information to inform a user.
In this embodiment, the image information of the stereoscopic image is acquired according to the capturing instruction, and when it is determined that the stereoscopic image supports the capturing operation, the odd frame picture and the even frame picture in the stereoscopic image are acquired according to the image information, thereby ensuring effective capturing of the stereoscopic image.
Further, the step of acquiring odd frame pictures and even frame pictures in the stereoscopic image by the terminal according to the image information includes:
h, the terminal determines the interception time carried by the interception instruction;
step z, determining the range of the intercepted image in the stereo image according to the interception time and the image information;
and m, acquiring odd frame pictures and even frame pictures in the stereo image in the intercepted image range.
When the stereo image is captured, it is necessary to determine the capture time carried by the capture instruction, for example, 60s, and determine the capture image range of the video stream in the stereo image according to the capture time, and start capturing operation according to the capture range to obtain the pictures of two consecutive frames in the stereo image, that is, the odd frame picture and the even frame picture.
In the embodiment, the capture time carried by the capture instruction is determined, the capture image range is determined according to the capture time and the image information, and the odd frame picture and the even frame picture are acquired in the capture image range, so that a user can quickly operate based on own preference and efficiently capture video clips with any length.
Further, referring to fig. 3, an embodiment of the present invention further provides a stereoscopic image processing apparatus, including:
an obtaining module A10, configured to, when a clipping instruction for a stereoscopic image is detected, obtain odd frame pictures and even frame pictures in the stereoscopic image according to the clipping instruction;
an extracting module a20, configured to extract odd pixel information in an odd frame picture and even pixel information in an even frame picture to obtain first pixel information, and extract even pixel information in the odd frame picture and odd pixel information in the even frame picture to obtain second pixel information;
the determining module A30 is used for determining left glasses and right glasses corresponding to the stereoscopic image, transmitting the first pixel information to the left glasses, and transmitting the second pixel information to the right glasses;
and the output module a40 is configured to, if receiving a clipping stop instruction for the stereoscopic image, generate a clipped stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and output the clipped stereoscopic image.
Optionally, the extracting module a20 is configured to:
odd pixel information of odd lines in the odd frame picture and even pixel information of even lines in the even frame picture are extracted, and the odd pixel information of the odd lines in the odd frame picture and the even pixel information of the even lines in the even frame picture are first pixel information.
Optionally, the extracting module a20 is configured to:
and extracting even pixel information of even lines in the odd frame picture and odd pixel information of odd lines in the even frame picture, wherein the even pixel information of the even lines in the odd frame picture and the odd pixel information of the odd lines in the even frame picture are second pixel information.
Optionally, the determining module a30 is configured to:
determining the starting time of the left glasses according to the first pixel information, and determining the closing time of the left glasses according to the second pixel information;
and transmitting the first pixel information to the left glasses according to the starting time and the closing time of the left glasses.
Optionally, the determining module a30 is configured to:
determining the starting time of the right glasses according to the second pixel information, and determining the closing time of the right glasses according to the first pixel information;
and transmitting the second pixel information to the right glasses according to the starting time and the closing time of the right glasses.
Optionally, the obtaining module a10 is configured to:
acquiring image information of the stereo image according to the intercepting instruction;
and if the stereoscopic image supports the intercepting operation according to the image information, acquiring odd frame pictures and even frame pictures in the stereoscopic image according to the image information.
Optionally, the obtaining module a10 is further configured to:
determining interception time carried by an interception instruction;
determining the range of the intercepted image in the stereo image according to the interception time and the image information;
and acquiring odd frame pictures and even frame pictures in the stereo image in the intercepted image range.
The steps implemented by each functional module of the stereoscopic image processing apparatus may refer to each embodiment of the stereoscopic image processing method of the present invention, and are not described herein again.
The present invention also provides a stereoscopic image processing apparatus including: the system comprises a memory, a processor and a stereo image processing program stored on the memory and capable of running on the processor, wherein the stereo image processing program realizes the steps of the embodiments of the stereo image processing method when being executed by the processor.
The present invention also provides a computer-readable storage medium storing a stereoscopic image processing program that, when executed by a processor, implements the steps of the above-described embodiments of stereoscopic image processing.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the stereo image processing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method of the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A stereoscopic image processing method, comprising:
when an intercepting instruction aiming at a three-dimensional image is detected, acquiring odd frame pictures and even frame pictures in the three-dimensional image according to the intercepting instruction;
extracting odd pixel information in the odd frame picture and even pixel information in the even frame picture to acquire first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to acquire second pixel information;
determining left glasses and right glasses corresponding to the stereoscopic image, transmitting the first pixel information to the left glasses, and transmitting the second pixel information to the right glasses;
and if an interception stop instruction for the three-dimensional image is received, generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses, and outputting the intercepted three-dimensional image.
2. The method of claim 1, wherein said extracting odd pixel information in the odd frame picture and even pixel information in the even frame picture to obtain first pixel information comprises:
extracting odd pixel information of odd lines in the odd frame picture and even pixel information of even lines in the even frame picture, wherein the odd pixel information of the odd lines in the odd frame picture and the even pixel information of the even lines in the even frame picture are first pixel information.
3. The method of claim 2, wherein said extracting even pixel information in said odd frame picture and odd pixel information in said even frame picture to obtain second pixel information comprises:
and extracting even pixel information of even rows in the odd frame picture and odd pixel information of odd rows in the even frame picture, wherein the even pixel information of the even rows in the odd frame picture and the odd pixel information of the odd rows in the even frame picture are second pixel information.
4. The method of claim 3, wherein said communicating the first pixel information to the left eye glass comprises:
determining the starting time of the left glasses according to the first pixel information, and determining the closing time of the left glasses according to the second pixel information;
and transmitting the first pixel information to the left glasses according to the starting time and the closing time of the left glasses.
5. The method of claim 4, wherein said transferring the second pixel information to the right eye glass comprises:
determining the starting time of the right glasses according to the second pixel information, and determining the closing time of the right glasses according to the first pixel information;
and transmitting the second pixel information to the right glasses according to the starting time and the closing time of the right glasses.
6. The method according to any one of claims 1-5, wherein the obtaining odd frame pictures and even frame pictures in the stereoscopic image according to the clipping instruction comprises:
acquiring image information of the stereo image according to the interception instruction;
and if the stereoscopic image supports the intercepting operation according to the image information, acquiring odd frame pictures and even frame pictures in the stereoscopic image according to the image information.
7. The method of claim 6, wherein the obtaining odd and even frame pictures in the stereoscopic image according to the image information comprises:
determining interception time carried by the interception instruction;
determining the range of the intercepted image in the stereo image according to the interception time and the image information;
and acquiring odd frame pictures and even frame pictures in the stereo image in the intercepted image range.
8. A stereoscopic image processing apparatus, comprising:
the acquisition module is used for acquiring odd frame pictures and even frame pictures in the stereoscopic images according to an interception instruction when the interception instruction aiming at the stereoscopic images is detected;
the extraction module is used for extracting odd pixel information in the odd frame picture and even pixel information in the even frame picture to obtain first pixel information, and extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture to obtain second pixel information;
the determining module is used for determining left glasses and right glasses corresponding to the stereoscopic image, transmitting the first pixel information to the left glasses and transmitting the second pixel information to the right glasses;
and the output module is used for generating an intercepted three-dimensional image according to the first pixel information stored by the left glasses and the second pixel information stored by the right glasses and outputting the intercepted three-dimensional image if an interception stop instruction for the three-dimensional image is received.
9. A stereoscopic image processing apparatus characterized by comprising: a memory, a processor and a stereo image processing program stored on the memory and executable on the processor, the stereo image processing program when executed by the processor implementing the steps of the stereo image processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a stereoscopic image processing program is stored thereon, which when executed by a processor implements the steps of the stereoscopic image processing method according to any one of claims 1 to 7.
CN202010939111.4A 2020-09-08 2020-09-08 Stereoscopic image processing method, apparatus, device and computer readable storage medium Active CN112333438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010939111.4A CN112333438B (en) 2020-09-08 2020-09-08 Stereoscopic image processing method, apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010939111.4A CN112333438B (en) 2020-09-08 2020-09-08 Stereoscopic image processing method, apparatus, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112333438A true CN112333438A (en) 2021-02-05
CN112333438B CN112333438B (en) 2023-07-28

Family

ID=74303062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010939111.4A Active CN112333438B (en) 2020-09-08 2020-09-08 Stereoscopic image processing method, apparatus, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112333438B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470570A (en) * 2021-07-15 2021-10-01 中科芯集成电路有限公司 SRAM control method for LED display driving chip
CN113596453A (en) * 2021-07-27 2021-11-02 咪咕文化科技有限公司 Video compression and decompression method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002095017A (en) * 2000-09-11 2002-03-29 Canon Inc Stereoscopic video display system
US20130033583A1 (en) * 2011-06-28 2013-02-07 Lg Electronics Inc. Image display device and controlling method thereof
CN103002304A (en) * 2011-09-08 2013-03-27 三星电子株式会社 Three dimensional (3d) image display apparatus and method thereof
CN103686141A (en) * 2013-12-30 2014-03-26 京东方科技集团股份有限公司 3D (Three-dimensional) display method and 3D display device
WO2018000609A1 (en) * 2016-06-30 2018-01-04 乐视控股(北京)有限公司 Method for sharing 3d image in virtual reality system, and electronic device
US20180131921A1 (en) * 2016-11-10 2018-05-10 KANEKO Manufacturing Co., Ltd. Three-dimensional video image display processing device, video information recording medium, video information providing server, and recording medium storing a program
CN108900828A (en) * 2018-08-29 2018-11-27 深圳市时代华影科技股份有限公司 3D display device and image display method, 3D glasses and control method, system
US20190139483A1 (en) * 2017-11-08 2019-05-09 Shenzhen Tunkey Technology Co., Ltd. Rgb light strips display method and display device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002095017A (en) * 2000-09-11 2002-03-29 Canon Inc Stereoscopic video display system
US20130033583A1 (en) * 2011-06-28 2013-02-07 Lg Electronics Inc. Image display device and controlling method thereof
CN103002304A (en) * 2011-09-08 2013-03-27 三星电子株式会社 Three dimensional (3d) image display apparatus and method thereof
CN103686141A (en) * 2013-12-30 2014-03-26 京东方科技集团股份有限公司 3D (Three-dimensional) display method and 3D display device
WO2015101008A1 (en) * 2013-12-30 2015-07-09 京东方科技集团股份有限公司 3d display method and 3d display device
WO2018000609A1 (en) * 2016-06-30 2018-01-04 乐视控股(北京)有限公司 Method for sharing 3d image in virtual reality system, and electronic device
US20180131921A1 (en) * 2016-11-10 2018-05-10 KANEKO Manufacturing Co., Ltd. Three-dimensional video image display processing device, video information recording medium, video information providing server, and recording medium storing a program
US20190139483A1 (en) * 2017-11-08 2019-05-09 Shenzhen Tunkey Technology Co., Ltd. Rgb light strips display method and display device
CN108900828A (en) * 2018-08-29 2018-11-27 深圳市时代华影科技股份有限公司 3D display device and image display method, 3D glasses and control method, system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470570A (en) * 2021-07-15 2021-10-01 中科芯集成电路有限公司 SRAM control method for LED display driving chip
CN113596453A (en) * 2021-07-27 2021-11-02 咪咕文化科技有限公司 Video compression and decompression method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112333438B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
KR102348504B1 (en) Method for reducing parallax of a plurality of cameras and electronic device supporting the same
US9817235B2 (en) Method and apparatus for prompting based on smart glasses
CN111897507B (en) Screen projection method and device, second terminal and storage medium
CN112333438B (en) Stereoscopic image processing method, apparatus, device and computer readable storage medium
US20110069156A1 (en) Three-dimensional image pickup apparatus and method
US10303419B2 (en) Information processing system, display processing apparatus, display processing method, and recording medium
CN105611373A (en) Video picture processing method and device
KR20180054794A (en) Camera preview
JP5064424B2 (en) Stereoscopic image display apparatus and stereoscopic image display method
US8587677B2 (en) Remote instruction system, remote instruction method, and program product therefor
KR20210101009A (en) Method for Recording Video using a plurality of Cameras and Device thereof
KR20120054746A (en) Method and apparatus for generating three dimensional image in portable communication system
US20130076621A1 (en) Display apparatus and control method thereof
US11265529B2 (en) Method and apparatus for controlling image display
KR20110126831A (en) Method and apparatus for providing web camera service in portable terminal
KR101642000B1 (en) Mobile Terminal, Digital Television and Method Of Controlling DTV
JP6261191B2 (en) Display control apparatus, display control method, and program
CN113949884A (en) Multi-view video data processing method, device and storage medium
US11412173B2 (en) Image processing device and image processing method
JP2016036081A (en) Image processing device, method and program, and recording medium
US9762891B2 (en) Terminal device, image shooting system and image shooting method
US20230209102A1 (en) Electronic device and operating method therefor
JP4889821B2 (en) Stereoscopic image display apparatus and stereoscopic image display method
JP4889820B2 (en) Stereoscopic image display apparatus and stereoscopic image display method
JP5276741B2 (en) Stereoscopic image display apparatus and stereoscopic image display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant