CN112333438B - Stereoscopic image processing method, apparatus, device and computer readable storage medium - Google Patents

Stereoscopic image processing method, apparatus, device and computer readable storage medium Download PDF

Info

Publication number
CN112333438B
CN112333438B CN202010939111.4A CN202010939111A CN112333438B CN 112333438 B CN112333438 B CN 112333438B CN 202010939111 A CN202010939111 A CN 202010939111A CN 112333438 B CN112333438 B CN 112333438B
Authority
CN
China
Prior art keywords
pixel information
stereoscopic image
odd
frame picture
glasses
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.)
Active
Application number
CN202010939111.4A
Other languages
Chinese (zh)
Other versions
CN112333438A (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

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a stereoscopic image processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when a interception instruction for the stereoscopic image is detected, an odd frame picture and an even frame picture in the stereoscopic image are obtained according to the interception 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 a interception stopping instruction for the stereoscopic image is received, generating an interception stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and outputting the interception stereoscopic image. The invention improves the efficiency and accuracy of capturing the stereoscopic image video.

Description

Stereoscopic image processing method, apparatus, device and computer readable storage medium
Technical Field
The present invention relates to the field of intelligent terminals, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for processing stereoscopic images.
Background
At present, more and more intelligent televisions are all provided with a stereoscopic image technology, a user can watch stereoscopic image videos such as televisions and movies with stereoscopic picture effects through the stereoscopic image technology in an intelligent 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 the efficiency and the accuracy of intercepting the stereoscopic image videos are the technical problems to be solved urgently at present.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a stereoscopic image processing method, a stereoscopic image processing device, stereoscopic image processing equipment and a computer readable storage medium, and aims to solve the technical problem of how to improve the efficiency and accuracy of capturing stereoscopic image videos.
In order to achieve the above object, the present invention provides a stereoscopic image processing method, comprising:
when a interception instruction for the stereoscopic image is detected, an odd frame picture and an even frame picture in the stereoscopic image are obtained according to the interception 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 a interception stop instruction for the stereoscopic image is received, generating an interception stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and outputting the interception stereoscopic image.
Further, in order to achieve the above object, the present invention provides a stereoscopic image processing device comprising:
the acquisition module is used for acquiring odd frame pictures and even frame pictures in the stereoscopic image according to the interception instruction when the interception instruction for intercepting the stereoscopic image 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 a cut-out stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses and outputting the cut-out stereoscopic image if a cut-out stop instruction for the stereoscopic image is received.
Further, to achieve the above object, the present invention provides a stereoscopic image processing device including: the stereoscopic image processing device comprises a memory, a processor and a stereoscopic image processing program stored in the memory and capable of running on the processor, wherein the stereoscopic image processing program realizes the steps of the stereoscopic image processing method when being executed by the processor.
Further, in order 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 stereoscopic image processing method, a device, equipment and a computer readable storage medium, which are used for acquiring an odd frame picture and an even frame picture of a stereoscopic image according to a interception instruction, transmitting odd pixel information in the odd frame picture and even pixel information in the even frame picture to a left eyeglass as first pixel information and transmitting even pixel information in the odd frame picture and odd pixel information in the even frame picture to a right eyeglass as second pixel information, so that the intercepted stereoscopic image generates a phenomenon that video pixels are staggered, the stereoscopic effect of the intercepted stereoscopic image is ensured, and when the interception stop instruction is received, the intercepted stereoscopic image is formed according to the first pixel information acquired by the left eyeglass and the second pixel information acquired by the right eyeglass, and the intercepted stereoscopic image is output, thereby avoiding the phenomenon that the stereoscopic image is required to be recorded by adopting another device in the prior art, and improving the efficiency and the accuracy of intercepting stereoscopic image video.
Drawings
Fig. 1 is a schematic diagram of a stereoscopic image processing device in a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a stereoscopic image processing method according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a device module of the stereoscopic image processing device according to the present invention;
FIG. 4 is a schematic view of a stereoscopic image processing method according to the present invention, in which an odd frame and an even frame are stored in a first storage area;
FIG. 5 is a schematic view of a stereoscopic image processing method according to the present invention;
fig. 6 is a schematic view of a scene of a storage area four of the stereoscopic image processing method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a stereoscopic image processing device of a hardware running environment according to an embodiment of the present invention.
The stereoscopic image processing device comprises video terminal equipment such as a mobile phone and the like.
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 the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the stereoscopic image processing device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may comprise an ambient light sensor, which may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor, which may turn 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, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the stereoscopic image processing device structure shown in fig. 1 does not constitute a limitation of the stereoscopic image processing device, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a stereoscopic image processing program may be included in a memory 1005 as one type of computer storage medium.
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 a stereoscopic image processing program stored in the memory 1005 and perform the following operations:
when a interception instruction for the stereoscopic image is detected, an odd frame picture and an even frame picture in the stereoscopic image are obtained according to the interception 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 a interception stop instruction for the stereoscopic image is received, generating an interception stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and outputting the interception stereoscopic image.
Referring to fig. 2, the present invention provides a stereoscopic image processing method, in an embodiment of the stereoscopic image processing method, the stereoscopic image processing method includes:
step S10, when a interception instruction for a stereoscopic image is detected, the terminal acquires an odd frame picture and an even frame picture in the stereoscopic image according to the interception instruction;
in this embodiment, the stereoscopic image is a three-dimensional stereoscopic image that allows the user to see in one plane using the binocular vision difference and the optical refraction principle of the user. In addition, the terminal (such as a smart tv, a computer, etc.) in this embodiment needs to detect whether the terminal has a stereoscopic glasses (a device for enabling a user to watch stereoscopic images) switching function, determine whether the stereoscopic glasses switch is turned on, and if the on time is longer than 1 minute, then the subsequent stereoscopic image capturing operation can be performed. Or detecting whether the terminal system has a stereoscopic image switching function, namely detecting whether the terminal supports the playing of stereoscopic images, and performing subsequent stereoscopic image interception operation only when the terminal supports the playing of stereoscopic images. When the terminal plays the stereoscopic video for decoding, after receiving the command of intercepting the video program, namely, the intercepting command of intercepting the stereoscopic image in the terminal, the intercepting operation of the stereoscopic image can be started according to the intercepting command. When receiving the intercepting instruction, user information (such as name, family identity, etc.) corresponding to the intercepting instruction is required to be acquired first, so as to detect whether the user has specific authority to perform intercepting operation, etc. The method for acquiring the user information may be to acquire the user information when the user inputs the user information through a remote controller or other terminals, or may be to perform fingerprint identification when the user picks up the remote controller or other terminals, and determine the user information based on the fingerprint identification result. And, the length of the stereoscopic image to be intercepted, for example, 60 seconds, may be included in the intercepting instruction, and the intercepting instruction further includes a film source of the stereoscopic image, for example, determining whether the film source is a shutter or a polarized light, etc.
After the interception instruction is acquired, the terminal can intercept the stereoscopic image according to the interception instruction, and in the process of intercepting the stereoscopic image video frame program, the stereoscopic image video stream being played in the terminal is read, and a buffer area, namely a buffer area I, is arranged in the terminal so as to temporarily store two frame pictures, namely an odd frame picture and an even frame picture, of the read stereoscopic 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 new odd frame images and even frame images are continuously acquired in the first buffer area according to the playing sequence of the stereoscopic images, namely the odd frame images and the even frame images in the first buffer area are continuously updated. As shown in fig. 4, the video temporary storage acquiring module stores the first storage space (the first storage area) in which the odd frame picture and the even frame picture to be acquired are stored. The odd frame picture may be a picture of an odd frame obtained when the clipping operation is performed, 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 at the time of the clipping operation, such as a second frame picture, a fourth frame picture, and 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 obtains 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 further set, that is, corresponding processing is performed on the odd frame picture and the even frame picture in the first buffer area, an odd line and an even line of the odd frame picture, and an odd line and an even line of the even frame are determined, odd pixel information of the odd line and even pixel information of the even line in the odd frame picture are extracted, and the odd pixel information of the odd line and the even pixel information of the even line in the odd frame picture are stored as first pixel information in the second buffer area. Even pixel information of even lines of the odd frame picture and odd pixel information of odd lines of the even frame picture are extracted, and 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 are stored as second pixel information in the buffer area three. For example, when the odd frame is the first frame and the even frame is the second frame, and the pixel point of each line of each frame is 1280, calculating 1280/2=640, where the 0-630 pixel point of the first line of the first frame may be stored as the odd pixel information of the first frame in the second buffer, and the 640-1280 pixel point of the second line of the second frame may be stored as the even pixel information of the second frame in the second buffer. The 0-630 pixel points of the second row of the first frame picture are used as even pixel information of the first frame picture to be stored in a buffer area III, and the 640-1280 pixel points of the first row of the second frame picture are used as odd pixel information of the second frame picture to be stored in the buffer area III. The odd pixel information may be half of the pixel points of the odd lines of each frame. The even pixel information may be half the pixel points of the even line of each frame. The first pixel information may be a pixel point stored in the second storage area. The second pixel information may be a pixel point stored in the storage area three.
Step S30, the terminal determines left glasses and right glasses corresponding to the stereoscopic image, transmits first pixel information to the left glasses, and transmits second pixel information to the right glasses;
in this embodiment, a storage area four is also created for storing the left glasses (i.e., the left glasses portion) and the right glasses (i.e., the right glasses portion), that is, it is necessary to first determine the stereoscopic glasses corresponding to the terminal where the stereoscopic image is located, the stereoscopic glasses are connected to the terminal in a communication manner, and determine the left glasses and the right glasses in the stereoscopic glasses. 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 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. When the even pixel information in the even frame picture is received in the second buffer area, a left glasses switch is started, a right glasses is closed, and the even pixel information in the even frame picture is transmitted to the left glasses. When the terminal system processes pixels and sends the pixels to the display panel for display, information for controlling glasses is sent to the stereoscopic glasses so as to dynamically switch the left end and the right end of the stereoscopic glasses, and a user can intuitively see stereoscopic images. And as shown in fig. 6, the video left and right glasses switch data processing storage space is four, namely, the left glasses data and the right glasses data are stored in the storage area is four, and different starting time and closing time of the left and right glasses are set according to different odd-even pixels, for example, the left glasses are started for 50ms when odd pixel information in an odd frame picture is detected, the left and right glasses are closed for 45ms when even pixel information in the odd frame picture is detected, the left and right glasses are closed for 45ms when odd pixel information in the even frame picture is detected, and the left and right glasses are started for 50ms when even pixel information in the even frame picture is detected.
Step S40, if a interception stop instruction for the stereoscopic image is received, the terminal generates an intercepted 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 intercepted 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 a truncated stereoscopic image is formed according to the first pixel information acquired by the left glasses and the second pixel information acquired by the right glasses, that is, the playing sequence of the first pixel information and the second pixel information is determined according to the starting time of the left glasses and the starting time of the right glasses, the first pixel information and the second quadrant information are arranged according to the playing sequence to obtain the truncated stereoscopic image, and the truncated stereoscopic image is output, for example, the truncated stereoscopic image is sent to a display interface of a terminal for displaying.
In addition, in order to assist understanding of the present embodiment, to assist understanding of stereoscopic image capturing, the following is exemplified.
For example, if it is required to intercept a stereoscopic image of a stereoscopic image video stream of 1280x720@60hz, when a user presses a stereoscopic video intercept key, and when the terminal receives an intercept instruction, the terminal acquires user information according to the intercept instruction: the mother, time 60s, the current video (i.e. stereoscopic image) film source is the shutter switch. And stereoscopic image interception is performed according to the interception instruction, namely, a second buffer area and a third buffer area can be created, wherein as the pixel point of each frame picture is 1280, 1280/2=640 can be calculated first, 0-639 of the first row in the first frame picture is stored as odd pixel points (namely, odd pixel information of the odd frame picture) in the second buffer area, 640-1280 of the second row in the second frame picture is stored as even pixel information of the second frame picture in the second buffer area, 0-639 of the second row in the first frame picture is stored as even pixel points (namely, even pixel information of the odd frame picture) in the third buffer area, and 640-1280 of the first row in the second frame picture is stored as odd pixel information of the second frame picture in the third buffer area. And the method is to collect different pixel points for different line numbers in the same way for both the odd frame picture (such as the first frame picture) and the even frame picture (such as the second frame picture) so as to achieve the phenomenon of video pixel interleaving. And a buffer area four is created to store the left and right glasses, i.e. when the pixels of the first row of the first frame picture are 0-640, the left glasses are opened for 50ms, and when the pixels are 640-1280, the left glasses are closed for 45ms. The left eye is closed for 45ms at pixels 0-640 of the second frame and opened for 50ms at pixels 640-1280 of the second frame. And stopping intercepting the stereoscopic image when receiving the intercepting stopping instruction, and outputting the intercepted stereoscopic image.
In this embodiment, the odd-numbered frame picture and the even-numbered frame picture of the stereoscopic image are obtained according to the interception instruction, the odd-numbered pixel information in the odd-numbered frame picture and the even-numbered pixel information in the even-numbered frame picture are transmitted to the left glasses as the first pixel information, the even-numbered pixel information in the odd-numbered frame picture and the odd-numbered pixel information in the even-numbered frame picture are transmitted to the right glasses as the second pixel information, so that the intercepted stereoscopic image generates the phenomenon of video pixel interleaving, the stereoscopic effect of the intercepted stereoscopic image is ensured, and when the interception stopping instruction is received, the intercepted stereoscopic 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 is output, thereby avoiding the phenomenon that in the prior art, additional devices are required to record the stereoscopic image, and improving the efficiency and the accuracy of intercepting stereoscopic image video.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the stereoscopic image processing method of the present invention is further provided, where the step S20 of the first embodiment of the present invention is a refinement of the step of extracting, by the terminal, odd pixel information in the odd frame picture and even pixel information in the even frame picture to obtain the first pixel information, including:
and a step a, 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, wherein the odd pixel information of the odd line in the odd frame picture and the even pixel information of the even line 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, the buffer area two needs to be set, and the odd line in the odd frame picture is determined, and the odd pixel information of the odd line is extracted, for example, the first line 0-630 pixel point of the first frame picture is used as the odd pixel information of the odd line in the odd frame picture. Similarly, the even lines in the even frame need to be determined, and even pixel information of the even lines is extracted, for example, the second lines 640-1280 pixel points of the second frame are used as the even pixel information of the even lines in the even frame. 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 the odd pixel information of the odd line in the odd frame picture and the even pixel information of the even line in the even frame picture, and uses the odd pixel information and the even pixel information as the first pixel information, so that the accuracy of the acquired first pixel information is ensured.
Further, the step of extracting even pixel information in the odd frame picture and odd pixel information in the even frame picture by the terminal to obtain second pixel information includes:
and b, the terminal extracts 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.
In this embodiment, after the terminal determines the odd frame picture and the even frame picture, it is necessary to set a buffer area three, determine the even line in the odd frame picture, and extract the odd pixel information of the even line, for example, the second line 0-630 pixel point of the first frame picture is used as the odd pixel information of the even line in the odd frame picture. Similarly, the odd lines in the even frame need to be determined, and the odd pixel information of the odd lines is extracted, for example, the first lines 640-1280 pixel points of the second frame are used as the even pixel information of the even lines in the even 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 as second pixel information in the third buffer area.
In this embodiment, the accuracy of the obtained 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 and using the even pixel information as the second pixel information.
Further, the step of the terminal transmitting the first pixel information to the left glasses includes:
step 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 area has stored the first pixel information and the third buffer area has stored the second pixel information, the terminal may determine a time node of the start time of the left glasses according to the first pixel information and determine a time node of the close time of the left glasses according to the second pixel information, so when the input first pixel information is detected in the second buffer area, the terminal may start the left glasses (i.e. the left glasses) and continuously start for 50ms, acquire the first pixel information through the left glasses and store the first pixel information in the preset fourth buffer area, and when the input second pixel information is detected in the third buffer area, the terminal may close the left glasses and continuously start for 45ms. For example, when pixels of the first row of the first frame are 0-640, the left glasses are opened for 50ms, and when pixels are 640-1280, the left glasses are closed for 45ms. The left eye is closed for 45ms at pixels 0-640 of the second frame and opened for 50ms at pixels 640-1280 of the second frame.
In this embodiment, the start time of the left glasses is determined according to the first pixel information, the close time of the left glasses is determined according to the second pixel information, and the first pixel information is transferred to the left glasses based on the two times, so that 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:
step 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 area has stored the first pixel information and the third buffer area has stored the second pixel information, the terminal may determine a time node of the start time of the right glasses according to the second pixel information and determine a time node of the close time of the right glasses according to the first pixel information, so when the input second pixel information is detected in the third buffer area, 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 fourth preset buffer area, and when the input first pixel information is detected in the second buffer area, the left glasses may be closed and continuously started for 45ms.
In this embodiment, the starting time of the right glasses is determined according to the second pixel information, the closing time of the right glasses is determined according to the first pixel information, and the second pixel information is transmitted to the right glasses based on the two times, so that stable transmission of the second pixel information is ensured.
Further, the step of obtaining the odd frame picture and the even frame picture in the stereoscopic image by the terminal according to the intercepting instruction comprises the following steps:
f, the terminal acquires image information of the stereoscopic image according to the intercepting instruction;
in this embodiment, after the capturing instruction is obtained, it is required to determine, according to the capturing instruction, image information, such as a pixel point, a frame number, a film source, and the like, of a video stream corresponding to the stereoscopic image, determine, according to the image information, whether the stereoscopic image supports capturing operation, and support different operations based on different determination results.
And g, if the stereoscopic image is determined to support the intercepting operation according to the image information, the terminal acquires an odd frame picture and an even frame picture in the stereoscopic image according to the image information.
When judging that the stereoscopic image supports the intercepting operation, the terminal can determine the intercepting range of the video stream corresponding to the stereoscopic image according to the image information, and start intercepting operation according to the intercepting range to acquire pictures of two continuous frames in the stereoscopic image, namely an odd frame picture and an even frame picture. If the stereoscopic image does not support the intercepting operation, outputting corresponding prompt information to inform the user.
In this embodiment, by acquiring image information of a stereoscopic image according to a capturing instruction, and acquiring odd frame images and even frame images in the stereoscopic image according to the image information when it is determined that the stereoscopic image supports capturing operation, effective capturing of the stereoscopic image is ensured.
Further, the step of obtaining the odd frame picture and the even frame picture in the stereoscopic image by the terminal according to the image information comprises the following steps:
step h, the terminal determines the intercepting time carried by the intercepting instruction;
step z, determining a truncated image range in the stereoscopic image according to the truncated time and the image information;
and m, obtaining an odd frame picture and an even frame picture in the stereoscopic image in the intercepted image range.
When the stereoscopic image is intercepted, the intercepting time carried by the intercepting instruction needs to be determined, for example, 60s, the intercepting image range of the video stream in the stereoscopic image is determined according to the intercepting time, the intercepting operation is started according to the intercepting range, and the pictures of two continuous frames in the stereoscopic image, namely, an odd frame picture and an even frame picture are obtained.
In this embodiment, by determining the interception time carried by the interception instruction, determining the interception image range according to the interception time and the image information, and acquiring the odd frame picture and the even frame picture in the interception image range, the user can quickly operate based on own preference, and intercept video clips of any length with high efficiency.
In addition, referring to fig. 3, an embodiment of the present invention further provides a stereoscopic image processing device, including:
an acquisition module a10, configured to acquire an odd frame picture and an even frame picture in a stereoscopic image according to a truncation instruction when the truncation instruction for the stereoscopic image is detected;
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 an odd frame picture and odd pixel information in an 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 used for generating a cut-out stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses and outputting the cut-out stereoscopic image when receiving a cut-out stop instruction for the stereoscopic image.
Optionally, the extracting module a20 is configured to:
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 are extracted, and the odd pixel information of the odd line in the odd frame picture and the even pixel information of the even line in the even frame picture are first pixel information.
Optionally, the extracting module a20 is configured to:
even pixel information of even lines in the odd frame picture and odd pixel information of odd lines in the even frame picture are extracted, 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 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 acquiring module a10 is configured to:
acquiring image information of a stereoscopic image according to the intercepting instruction;
if the stereoscopic image is determined to support the intercepting operation according to the image information, an odd frame picture and an even frame picture in the stereoscopic image are acquired according to the image information.
Optionally, the acquiring module a10 is further configured to:
determining the intercepting time carried by the intercepting instruction;
determining a truncated image range in the stereoscopic image according to the truncated time and the image information;
and acquiring an odd frame picture and an even frame picture in the stereoscopic image in the truncated image range.
The steps of implementing each functional module of the stereoscopic image processing device may refer to each embodiment of the stereoscopic image processing method of the present invention, and will not be described herein.
The present invention also provides a stereoscopic image processing device including: the stereoscopic image processing device comprises a memory, a processor and a stereoscopic image processing program stored in the memory and capable of running on the processor, wherein the stereoscopic image processing program realizes the steps of the stereoscopic image processing method embodiments when being executed by the processor.
The present invention also provides a computer-readable storage medium storing a stereoscopic image processing program which, 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 above embodiments of the stereoscopic image processing method, and will not be described herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A stereoscopic image processing method, characterized by comprising:
when a interception instruction for a stereoscopic image is detected, acquiring an odd frame picture and an even frame picture in the stereoscopic image according to the interception instruction;
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;
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;
if a interception stopping instruction for the stereoscopic image is received, generating an interception stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses, and outputting the interception stereoscopic image;
wherein said transferring said first pixel information to said left eye glasses 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; transmitting the first pixel information to the left glasses according to the starting time and the closing time of the left glasses;
the transferring the second pixel information to the right glasses includes:
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.
2. The method of claim 1, wherein the extracting the odd pixel information in the odd frame and the even pixel information in the even frame to obtain the first pixel information comprises:
and extracting odd pixel information of an odd line in the odd frame picture and even pixel information of an even line in the even frame picture, wherein the odd pixel information of the odd line in the odd frame picture and the even pixel information of the even line in the even frame picture are first pixel information.
3. The method of claim 2, wherein the 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 comprises:
extracting even pixel information of an even line in the odd frame picture and odd pixel information of an odd line in the even frame picture, wherein 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 are second pixel information.
4. A method according to any one of claims 1 to 3, wherein said obtaining odd and even frames in said stereoscopic image according to said intercept instruction comprises:
acquiring image information of the stereoscopic image according to the intercepting instruction;
and if the stereoscopic image is determined to support the intercepting operation according to the image information, acquiring an odd frame picture and an even frame picture in the stereoscopic image according to the image information.
5. The method of claim 4, wherein the acquiring odd and even frames of the stereoscopic image based on the image information comprises:
determining the intercepting time carried by the intercepting instruction;
determining a truncated image range in the stereoscopic image according to the truncated time and the image information;
and acquiring an odd frame picture and an even frame picture in the stereoscopic image in the truncated image range.
6. A stereoscopic image processing device, characterized by comprising:
the acquisition module is used for acquiring odd frame pictures and even frame pictures in the stereoscopic image according to the intercepting instruction when the intercepting instruction for the stereoscopic image 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 configured to determine a left glasses and a right glasses corresponding to the stereoscopic image, transfer the first pixel information to the left glasses, and transfer the second pixel information to the right glasses, where the transferring the first pixel information to the left glasses includes: 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; transmitting the first pixel information to the left glasses according to the starting time and the closing time of the left glasses; the transferring the second pixel information to the right glasses includes: 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; transmitting the second pixel information to the right glasses according to the starting time and the closing time of the right glasses;
and the output module is used for generating a cut-out stereoscopic image according to the first pixel information stored in the left glasses and the second pixel information stored in the right glasses and outputting the cut-out stereoscopic image if a cut-out stop instruction for the stereoscopic image is received.
7. A stereoscopic image processing device, characterized by comprising: a memory, a processor, and a stereoscopic image processing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the stereoscopic image processing method according to any one of claims 1 to 5.
8. A computer-readable storage medium, on which a stereoscopic image processing program is stored, which when executed by a processor, implements the steps of the stereoscopic image processing method according to any one of claims 1 to 5.
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 CN112333438A (en) 2021-02-05
CN112333438B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470570B (en) * 2021-07-15 2022-11-22 中科芯集成电路有限公司 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 (5)

* 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
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
CN108900828A (en) * 2018-08-29 2018-11-27 深圳市时代华影科技股份有限公司 3D display device and image display method, 3D glasses and control method, system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101772458B1 (en) * 2011-06-28 2017-08-30 엘지전자 주식회사 Display device and method for controlling thereof
JP6853928B2 (en) * 2016-11-10 2021-04-07 株式会社金子製作所 3D moving image display processing device and program
CN108074519B (en) * 2017-11-08 2021-01-12 深圳市屯奇尔科技有限公司 Method and device for displaying cross dislocation sampling rotating RGB lamp band and computer readable storage medium

Patent Citations (6)

* 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
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
CN108900828A (en) * 2018-08-29 2018-11-27 深圳市时代华影科技股份有限公司 3D display device and image display method, 3D glasses and control method, system

Also Published As

Publication number Publication date
CN112333438A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
KR101899877B1 (en) Apparatus and method for improving quality of enlarged image
US9449414B1 (en) Collaborative presentation system
US11240403B2 (en) Compensation for delay in PTZ camera system
WO2017211250A1 (en) Image overlay display method and system
CN109743626B (en) Image display method, image processing method and related equipment
CN112333438B (en) Stereoscopic image processing method, apparatus, device and computer readable storage medium
CN104052931A (en) Image shooting device, method and terminal
CN111193937B (en) Live video data processing method, device, equipment and medium
WO2015142971A1 (en) Receiver-controlled panoramic view video share
WO2014030405A1 (en) Display device, display method, television receiver, and display control device
CN108924538A (en) The screen expanding method of AR equipment
CN105611373A (en) Video picture processing method and device
EP3461136A1 (en) Video playing method and device
US20240121349A1 (en) Video shooting method and apparatus, electronic device and storage medium
US20120127280A1 (en) Apparatus and method for generating three dimensional image in portable terminal
EP2918072B1 (en) Method and apparatus for capturing and displaying an image
EP2575358B1 (en) Display apparatus and control method thereof
KR20110126831A (en) Method and apparatus for providing web camera service in portable terminal
JP2009271697A (en) Display control device, display control system, and display control method
US9542720B2 (en) Terminal device, image display method, and storage medium
JP2012181328A (en) Advertisement distribution system, advertisement distribution device, advertisement distribution method, and program
KR20210081104A (en) Edge server and method for providing hologram video and multiple display apparatus for displaying hologram video
CN112738399A (en) Image processing method and device and electronic equipment
US9762891B2 (en) Terminal device, image shooting system and image shooting method
US20180205928A1 (en) Multi-camera stereoscopic dynamic imaging systems and methods of capturing stereoscopic dynamic images

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