WO2018049631A1 - Playback device and playback method thereof - Google Patents

Playback device and playback method thereof Download PDF

Info

Publication number
WO2018049631A1
WO2018049631A1 PCT/CN2016/099126 CN2016099126W WO2018049631A1 WO 2018049631 A1 WO2018049631 A1 WO 2018049631A1 CN 2016099126 W CN2016099126 W CN 2016099126W WO 2018049631 A1 WO2018049631 A1 WO 2018049631A1
Authority
WO
WIPO (PCT)
Prior art keywords
video file
information
format
dimensional
frame
Prior art date
Application number
PCT/CN2016/099126
Other languages
French (fr)
Chinese (zh)
Inventor
徐培辰
Original Assignee
深圳市柔宇科技有限公司
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 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to PCT/CN2016/099126 priority Critical patent/WO2018049631A1/en
Priority to CN201680036068.2A priority patent/CN108064448A/en
Publication of WO2018049631A1 publication Critical patent/WO2018049631A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Definitions

  • the present invention relates to the field of play display, and in particular to a play device and a play method thereof.
  • three-dimensional digital technology is applied to devices such as theater screens, home TVs, and head-mounted displays to enable viewers to enjoy stereoscopic three-dimensional display effects.
  • the video file playback format is no longer limited to the plane, and the three-dimensional display effect makes the viewer feel more immersive when watching the movie.
  • the existing three-dimensional digital technology has a wide variety of basic principles. The left and right human eyes respectively receive different images, and then the image information is superimposed and regenerated by the brain to form an image with a stereoscopic effect.
  • the page of the video file list in the device system is usually a flat graphic.
  • the direct conversion between the 2D video file and the 3D video file is performed, both are involved in 2D. / 3D display switching problem.
  • the two-dimensional/three-dimensional display is switched by using a button, but an external button structure needs to be set, which increases the manufacturing process and production cost of the display device.
  • the key operation structure is removed to realize the automatic switching of the two-dimensional/three-dimensional playback mode, and a large number of screenshots are intercepted from the target video file to determine the format information, and the similarity between the left and right split screens or the upper and lower split screens of each screenshot is respectively compared.
  • Each of the similarities is low, and is determined to be a two-dimensional video file; each of the similarities is high, and is determined to be a three-dimensional video file.
  • the process of intercepting a large number of screenshots requires a lot of time, affects the recognition speed, and consumes a large amount of memory of the device, and has a large limitation when applied to mobile devices.
  • the method for judging the video format information of a plurality of screenshots for split-screen comparison cannot be applied to the online video file. Since the video data is not buffered before the online video file is played, a large number of samples cannot be obtained in advance, and thus it is impossible to perform three-dimensional Video file determination.
  • Embodiments of the present invention provide a playback device capable of quickly identifying video format information and automatically switching a play mode, and a playback method thereof.
  • a playback device configured to acquire at least one first frame in a video file, where the first frame is any one of the video files; a processing unit, configured to perform image comparison processing to obtain first comparison information according to the first frame acquired by the screenshot unit, and an acquiring unit, configured to analyze, according to the first comparison information acquired by the information processing unit Acquiring the first format information; the playing unit is configured to: when the video file is determined to be a three-dimensional video format according to the first format information acquired by the acquiring unit, the playing mode of the playing device is switched to a three-dimensional playing mode, and The three-dimensional playback mode plays the video file; when the video file is determined to be a two-dimensional video format according to the first format information acquired by the acquiring unit, the playback mode of the playback device is switched to a two-dimensional playback mode. And playing the video file through the two-dimensional play mode.
  • a playback method includes: a playback device acquiring at least one first frame in a video file, where the first frame is any one of the video files; The first frame performs image comparison processing to obtain first alignment information; and the first format information is obtained according to the first comparison information analysis; and when the video file is determined to be a three-dimensional video format according to the first format information, The playing mode of the playing device is switched to the three-dimensional playing mode, and the video file is played by the three-dimensional playing mode; and the playing mode of the playing device is determined when the video file is determined to be a two-dimensional video format according to the first format information. Switching to a two-dimensional playback mode and playing the video file through the two-dimensional playback mode.
  • the present invention provides a playback device and a playback method thereof, which can acquire at least one frame in a video file before and after playback, and perform image comparison processing on the captured frame image to obtain comparison information, when the comparison information is in advance Determine the video format information in the range of values as a 3D video file, broadcast
  • the playback mode of the playback device is switched to the three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; when the comparison information is outside the preset value range, the video format information is determined to be a two-dimensional video file, and the playback mode of the playback device is switched to two-dimensional playback. Mode and play video files in 2D playback mode.
  • the video format information is quickly recognized to automatically switch the play mode, and when the captured image is at least two frames and the determined format information is consistent, the corresponding determination result video file is stored in the corresponding cache unit, and the direct play is not determined again. It speeds up the speed and smoothness of the 2D/3D automatic switching of the playback mode during video file playback, and solves the problem of determining the online video file playback mode.
  • FIG. 1 is a structural diagram of a playback device according to a preferred embodiment of the present invention.
  • FIG. 2 is a structural diagram of a playback device according to another embodiment of the present invention.
  • FIG. 3 is a structural diagram of a playback device according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a playing method according to a preferred embodiment of the present invention.
  • FIG. 5 is a flowchart of a playing method according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of image comparison processing in the playback method of FIG. 5;
  • FIG. 7 is a flowchart of a playing method according to another embodiment of the present invention.
  • FIG. 1 is a structural diagram of a playback device according to a preferred embodiment of the present invention.
  • the playback device includes:
  • a screenshot unit configured to acquire at least one first frame in the video file, where the first frame is any one of the video files.
  • the time for the playback device to acquire at least one first frame may be before the video file is saved after the video file is stored, or may be started when the video file starts playing after the video file is stored, or when the video file starts to be played.
  • An information processing unit configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain the first comparison information.
  • the first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
  • the acquiring unit is configured to obtain the first format information according to the first comparison information acquired by the information processing unit.
  • the preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical.
  • the acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1.
  • the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format.
  • the first preset value may be set to 0.8; the second preset value is 0.9, and the first comparison information is greater than 0.8 and less than or equal to 0.9.
  • the first format information obtained at the time determines that the video file is in a three-dimensional video format.
  • a playing unit configured to switch a play mode according to a video format determined by the first format information acquired by the acquiring unit.
  • the playing unit determines that the video file is in the three-dimensional video format according to the first format information acquired by the obtaining unit, the playing mode of the playing device is switched to the three-dimensional playing mode, and the video file is played through the three-dimensional playing mode; the first format information acquired according to the acquiring unit
  • the playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode.
  • FIG. 2 is a structural diagram of a playback device according to another embodiment of the present invention.
  • the device includes:
  • a storage unit configured to store the first video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
  • a screenshot unit configured to acquire at least one first frame according to the first video file stored by the storage unit, where the first frame is any one of the first video files. Before the first video file is played, any frame is intercepted from the first video file by the screenshot unit as the first frame.
  • An information processing unit configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain the first comparison information.
  • the information processing unit performs image comparison processing by using the left and right split screen processing modes, and acquires the first left and right split screen similarity according to the comparison of the left and right split screen image information; and obtains the second left and right split screen similarity according to the corresponding partial image information of the left and right split screens. And obtaining the third left and right split screen similarity according to the image information of the different areas of the single side screen.
  • the first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the first frame is divided into a first area and a second area by using a first line, where the edge of the first area is located in the left split screen or coincides with the left split screen, and the edge of the second area is set in the right split screen or right Split screen Hehe. Comparing the images in the first area and the second area to obtain the first left and right split screen similarity, that is, the image similarity between the image in the first area and the second area.
  • a third area is selected in the first area, the edge of the third area is set in the first area, and the fourth area is selected in the second area, and the edge of the fourth area is set in the second area, and the third area is opposite
  • the position of the first area is the same as or similar to the position of the fourth area relative to the second area, and the third area is compared with the fourth area to obtain the second left and right split screen similarity.
  • a fifth area and a sixth area are selected in the first area, the fifth area edge is set in the first area, the sixth area edge is set in the first area, and the fifth area and the sixth area are not intersected, The five regions and the sixth region are compared to obtain the third left and right split screen similarity.
  • Methods of aligning the above-described area images include, but are not limited to, image gradation, feature point-based image similarity calculation methods, histogram matching methods, and the like.
  • the first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • a obtaining unit configured to obtain the first format information according to the first comparison information acquired by the information processing unit.
  • the preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical.
  • the acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1.
  • the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format.
  • the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
  • the first comparison information is obtained by the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the acquiring unit further includes a first similar condition and a second similar condition, where the first similar condition includes that the first left and right split screen similarity is not less than the first preset value and the second left and right split screen similarity is not less than the first preset value and The third left and right split screen similarity is less than the second preset value; the second similar condition includes that the first left and right split screen similarity is not less than the second preset value and the second left and right split screen similarity is not less than the second preset value and the first The similarity of the three left and right split screens is smaller than the second preset value.
  • the first format information obtained when the first comparison information satisfies the first similar condition determines that the first video file is a three-dimensional video format. More preferably, the first format information obtained when the first comparison information satisfies the second similar condition determines that the first video file is a three-dimensional video format, and the accuracy is higher.
  • the receiving unit is configured to receive the first video file playing instruction to play the first video file that has been stored in the storage unit.
  • a screenshot unit configured to acquire at least one second frame in the first video file that has been played, and the second frame is any frame other than the first frame.
  • the first video file starts playing, any frame other than the first frame is randomly intercepted from the first video file by the screenshot unit as the second frame.
  • An information processing unit configured to perform second image matching processing according to the second frame acquired by the screenshot unit to obtain second comparison information.
  • the information processing unit performs image comparison processing by using the left and right split screen processing modes, and acquires the first left and right split screen similarity according to the comparison of the left and right split screen image information; and obtains the second left and right split screen similarity according to the corresponding partial image information of the left and right split screens. And obtaining the third left and right split screen similarity according to the image information of the different areas of the single side screen.
  • the second comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • An acquisition unit configured to obtain second format information according to the second comparison information acquired by the information processing unit.
  • the obtaining unit determines the video format of the first video file by comparing the second comparison information with the preset value. And confirming the video format of the first video file according to the first format information acquired before the first video file is played and the second format information obtained when the first video file is played. If the first format information is the same as the second format information, determining a video format of the first video file, if the first format information is different from the second format information, and intercepting the first video file except the first frame and the second frame Any frame is determined by the information processing unit and the acquisition unit to obtain the format information.
  • the first comparison information satisfies the first format information acquired when the first similar condition is satisfied, and the second comparison information satisfies the second format information acquired when the first similar condition is satisfied, and determines that the first video file is a three-dimensional video format. More preferably, when both the first comparison information and the second comparison information satisfy the first similar condition, at least one of the first comparison information or the second comparison information satisfies a second similar condition, and the first video file is determined to be three-dimensional. Video format with higher accuracy.
  • the first comparison information satisfies the first format information acquired when the second similar condition is satisfied, and the second comparison information satisfies the second format information obtained when the second similar condition is satisfied, and determines that the first video file is a three-dimensional video format. And the accuracy is higher.
  • the playing unit is configured to switch the play mode according to the first format information acquired by the obtaining unit and the video format determined by the second format information.
  • the playing unit determines that the first video file is in the three-dimensional video format according to the first format information and the second format information acquired by the acquiring unit, the playing mode of the playing device is switched to the three-dimensional playing mode, and the first video file is played through the three-dimensional playing mode; And determining, according to the first format information and the second format information acquired by the acquiring unit, that the first video file is in the two-dimensional video format, the playing mode of the playing device is switched to the two-dimensional playing mode, and the first video file is played through the two-dimensional playing mode.
  • 3D video file buffer unit and 2D video file buffer unit configured to determine, according to the first format information and the second format information acquired by the obtaining unit When a video file is in a three-dimensional video format, the first video file is stored.
  • the two-dimensional video file buffering unit is configured to store the first video file when the first video file is determined to be a two-dimensional video format according to the first format information and the second format information acquired by the obtaining unit.
  • FIG. 3 is a structural diagram of a playback device according to another embodiment of the present invention.
  • the device includes:
  • a storage unit configured to store the second video file. After the second video file is input to the playback device, the video format recognition is started before it is played.
  • a screenshot unit configured to acquire at least one third frame and a fourth frame according to the second video file stored by the storage unit, where the third frame and the fourth frame are any two different frames in the second video file. Before the second video file is played, any two different frames are intercepted from the second video file by the screenshot unit as the third frame and the fourth frame.
  • An information processing unit configured to perform third image matching processing according to the third frame acquired by the screenshot unit to obtain third comparison information, and perform image comparison processing according to the fourth frame to obtain fourth comparison information.
  • the information processing unit performs image comparison processing by using the upper and lower split screen processing modes, and obtains the first upper and lower split screen similarity according to the upper and lower split screen image information; and obtains the second upper and lower split screen similarity according to the corresponding partial image information corresponding to the upper and lower split screens.
  • a obtaining unit configured to obtain the third format information according to the third comparison information acquired by the information processing unit, and obtain the fourth format information according to the fourth comparison information acquired by the information processing unit.
  • the acquiring unit before the video file is played determines the video format of the second video file through the third frame and the fourth frame. And confirming the video format of the second video file according to the third format information and the fourth format information acquired before the second video file is played. Determining a video format of the second video file if the third format information is the same as the fourth format information, if the third format information is different from the fourth format information, Any one of the frames other than the third frame and the fourth frame is intercepted for comparison determination.
  • the 3D video file buffering unit is configured to store the second video file when the second video file is determined to be a three-dimensional video format according to the third format information and the fourth format information acquired by the obtaining unit.
  • the two-dimensional video file buffering unit is configured to store the second video file when the second video file is determined to be a two-dimensional video format according to the third format information and the fourth format information acquired by the obtaining unit.
  • FIG. 4 is a flowchart of a playing method according to a preferred embodiment of the present invention.
  • the playback method is:
  • the playback device acquires at least one first frame in the video file, where the first frame is any one of the video files.
  • S101 Perform image comparison processing according to the first frame to obtain first comparison information.
  • the first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
  • S102 Acquire first format information according to the first comparison information analysis.
  • the preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical.
  • the acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1.
  • the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset.
  • the first format obtained when the value is obtained The information determines that the video file is in a three-dimensional video format.
  • the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
  • S103 Switch the play mode according to the video format determined by the first format information.
  • the video format of the video file is determined to be a three-dimensional video format according to the first format information
  • the playback mode of the playback device is switched to the three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; and the video format of the video file is determined according to the first format information.
  • the playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode.
  • FIG. 5 is a flowchart of a playing method according to another embodiment of the present invention
  • FIG. 6 is a schematic diagram of image matching processing in the playing method of FIG.
  • the playback method is:
  • the playback device stores the first video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
  • the playback device acquires at least one first frame in the first video file, where the first frame is any one of the first video files.
  • S202 Perform image comparison processing according to the first frame to obtain first comparison information.
  • the first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
  • the image comparison processing includes a left and right split screen processing mode, that is, the first area A1 and the second area A2 are divided into left and right screens.
  • the first area A1 and the second area A2 are compared to obtain the first left and right split screen similarity; the third area B1 is selected in the first area A1, and the edge of the third area B1 is set in the first area A1, and the second A fourth area B2 is selected in the area A2, and an edge of the fourth area B2 is set in the second area A2, and a position of the third area B1 is opposite to the first area A1.
  • the position of the second area B2 is the same as or similar to that of the fourth area B2, and the third area B1 and the fourth area B2 are compared to obtain the second left and right split screen similarity, so as to avoid the first frame intercepted in the two-dimensional video file.
  • the image of the first area A1 and the second area A2 are very similarly misidentified into a three-dimensional video format; a fifth area C1 and a sixth area C2 are selected in the first area A1, and the edge of the fifth area C1 is set in the first area.
  • the sixth region C2 edge is set in the first region A1, and the fifth region C1 and the sixth region C2 do not intersect, and the fifth region C1 and the sixth region C2 are compared to obtain the third left and right split screen similarity.
  • the video format determination error is caused.
  • the first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • S203 Acquire first format information according to the first comparison information analysis.
  • the preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical.
  • the acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1.
  • the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format.
  • the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
  • the first comparison information is obtained by the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the acquisition unit also includes the first similar condition and the first The second similar condition, the first similar condition includes that the first left and right split screen similarity is not less than the first preset value, and the second left and right split screen similarity is not less than the first preset value, and the third left and right split screen similarity is less than the second preset Setting a value; the second similar condition includes that the first left and right split screen similarity is not less than the second preset value, and the second left and right split screen similarity is not less than the second preset value and the third left and right split screen similarity is less than the second preset value.
  • the first format information obtained when the first comparison information satisfies the first similar condition determines that the first video file is a three-dimensional video format. More preferably, the first format information obtained when the first comparison information satisfies the second similar condition determines that the first video file is a three-dimensional video format, and the accuracy is higher.
  • the playing device receives the first video file playing instruction to play the first video file.
  • S205 Acquire at least one second frame in the first video file, where the second frame is any frame other than the first frame in the first video file.
  • the first video file starts playing, any frame other than the first frame is randomly intercepted from the first video file as the second frame.
  • the image comparison processing includes a left and right split screen processing mode; the first left and right split screen similarity is obtained according to the comparison left and right split screen image information; and the second left and right split screen similarity is obtained according to the comparison of the partial left and right split screen corresponding partial image information;
  • the image information of different areas of the single side screen acquires the similarity of the third left and right split screens.
  • the second comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • the comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
  • S207 Acquire second format information according to the second comparison information analysis.
  • the video format of the first video file is determined by comparing the second comparison information with the preset value. And confirming the video format of the first video file according to the first format information acquired before the first video file is played and the second format information obtained when the first video file is played. If the first format information is the same as the second format information, determining a video format of the first video file, if the first format information is different from the second format information, and intercepting the first frame and the second frame in the first video file Any frame other than the frame is further analyzed by the information processing unit and the acquisition unit to obtain the format information.
  • the first comparison information satisfies the first format information acquired when the first similar condition is satisfied, and the second comparison information satisfies the second format information acquired when the first similar condition is satisfied, and determines that the first video file is a three-dimensional video format. More preferably, when both the first comparison information and the second comparison information satisfy the first similar condition, at least one of the first comparison information or the second comparison information satisfies a second similar condition, and the first video file is determined to be three-dimensional. Video format with higher accuracy.
  • the first comparison information satisfies the first format information acquired when the second similar condition is satisfied, and the second comparison information satisfies the second format information obtained when the second similar condition is satisfied, and determines that the first video file is a three-dimensional video format. And the accuracy is higher.
  • S208 Switch the play mode according to the video format determined by the first format information and the second format information.
  • the playing mode of the playing device is switched to the three-dimensional playing mode, and the first video file is played through the three-dimensional playing mode; according to the first format information and the second
  • the playback mode of the playback device is switched to the two-dimensional playback mode, and the first video file is played through the two-dimensional playback mode.
  • the video format determined according to the first format information and the second format information is stored in the three-dimensional video file buffer unit or the two-dimensional video file buffer unit. And determining, according to the first format information and the second format information, that the first video file is in the three-dimensional video format, storing the first video file in the three-dimensional video file buffer unit; determining, according to the first format information and the second format information, that the first video file is In the two-dimensional video format, the first video file is stored in the two-dimensional video file cache unit.
  • FIG. 7 is a flowchart of a playing method according to another embodiment of the present invention.
  • the playback method is:
  • the playback device stores the second video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
  • the playback device acquires at least one third frame and a fourth frame in the second video file, where the third frame and the fourth frame are any two different frames in the second video file.
  • S302 Perform image comparison processing according to the third frame to obtain third alignment information, and perform image comparison processing according to the fourth frame to obtain fourth comparison information.
  • the image comparison processing includes an upper and lower split screen processing mode; the first upper and lower split screen similarities are obtained according to the comparison upper and lower split screen image information; and the second upper and lower split screen similarities are obtained according to the corresponding upper and lower split screen corresponding partial image information;
  • the image information of different areas of the single-sided screen acquires the similarity of the third upper and lower split screens; and the third comparison information and the fourth ratio are obtained according to the first upper and lower split screen similarity, the second upper and lower split screen similarity, and the third upper and lower split screen similarity For information.
  • S303 Acquire third format information according to the third comparison information analysis, and obtain fourth format information according to the fourth comparison information analysis.
  • the video format of the second video file is determined by the third frame and the fourth frame before the video file is played. And confirming the video format of the second video file according to the third format information and the fourth format information acquired before the second video file is played. Determining a video format of the second video file if the third format information is the same as the fourth format information, and if the third format information is different from the fourth format information, intercepting any frame other than the third frame and the fourth frame Comparison judgment.
  • the video format determined according to the third format information and the fourth format information is stored in the three-dimensional video file buffer unit or the two-dimensional video file buffer unit. And determining, according to the third format information and the fourth format information, that the second video file is in the three-dimensional video format, storing the second video file in the three-dimensional video file buffer unit; and determining the second video file according to the third format information and the fourth format information.
  • the second video file is stored in the two-dimensional video file cache unit.
  • the present invention provides a playback device and a playback method thereof, which can acquire at least one frame in a video file before and after playback, and perform image comparison processing on the captured image of the frame to obtain comparison information, when the comparison information is
  • the video format information is determined to be a three-dimensional video file in a preset range, and the playback mode of the playback device is switched to a three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; when the comparison information is in a preset value range, the video format information is determined to be two.
  • Dimensional video files The playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode.
  • the video format information is quickly recognized to automatically switch the play mode, and when the captured image is at least two frames and the determined format information is consistent, the corresponding determination result video file is stored in the corresponding cache unit, and the direct play is not determined again. It speeds up the speed and smoothness of the 2D/3D automatic switching of the playback mode during video file playback, and solves the problem of determining the online video file playback mode.

Abstract

The invention relates to a playback device and a playback method thereof, and relates to the display playback field. The device comprises: a screenshot unit, configured to acquire at least one first frame in a video file; an information processing unit, configured to perform image comparison processing according to the first frame to acquire first comparison information; an acquisition unit, configured to acquire first format information according to the first comparison information; and a playback unit, configured to switch a playback mode to a three-dimensional playback mode for playback when a video format is determined to be a three-dimensional video format according to the first format information, and switch the playback mode to a two-dimensional playback mode for playback when the video format is determined to be a two-dimensional video format according to the first format information. The invention further provides a playback method applicable to the playback device. The invention can quickly recognize video format information and automatically switch a playback mode, resolving a problem of determining a playback mode of an online video file.

Description

一种播放设备及其播放方法Play device and play method thereof 技术领域Technical field
本发明涉及播放显示领域,尤其涉及一种播放设备及其播放方法。The present invention relates to the field of play display, and in particular to a play device and a play method thereof.
背景技术Background technique
目前,影院屏幕、家用电视以及头戴显示等设备应用三维数字化技术使观众欣赏到立体的三维显示效果。视频文件播放格式不再局限于平面,三维显示效果令观众在观影时更有身临其境的感觉。现有三维数字化技术种类繁多,基本原理相似,利用左右人眼分别接收不同画面,然后经过大脑对图像信息进行叠加重生,构成具有立体方向效果的影像。At present, three-dimensional digital technology is applied to devices such as theater screens, home TVs, and head-mounted displays to enable viewers to enjoy stereoscopic three-dimensional display effects. The video file playback format is no longer limited to the plane, and the three-dimensional display effect makes the viewer feel more immersive when watching the movie. The existing three-dimensional digital technology has a wide variety of basic principles. The left and right human eyes respectively receive different images, and then the image information is superimposed and regenerated by the brain to form an image with a stereoscopic effect.
播放设备播放视频文件时,设备系统中视频文件列表等页面通常为平面图形,选择播放已存储的三维视频文件时,以及二维视频文件与三维视频文件之间直接转换播放时,均涉及二维/三维显示切换问题。通常利用按键切换二维/三维显示,但需要设置外接按键结构,增加了显示设备的制程工序和生产成本。When the playback device plays a video file, the page of the video file list in the device system is usually a flat graphic. When the selected 3D video file is played and the direct conversion between the 2D video file and the 3D video file is performed, both are involved in 2D. / 3D display switching problem. Usually, the two-dimensional/three-dimensional display is switched by using a button, but an external button structure needs to be set, which increases the manufacturing process and production cost of the display device.
现有技术中,去除按键操作结构实现二维/三维播放模式自动切换,需要从对象视频文件中截取大量截图判断其格式信息,分别比对每张截图的左右分屏或上下分屏的相似度。其每张相似度较低,判定为二维视频文件;每张相似度较高,判定为三维视频文件。截取大量截图的过程需要大量时间,影响识别速度,并且消耗设备大量内存,应用于移动设备时具有较大局限性。而且,这种截取大量截图进行分屏比对的视频格式信息的判定方法不能应用于在线视频文件,由于在线视频文件播放前不进行视频数据缓存,不能提前获得大量样本,因而无法对其进行三维视频文件判定。 In the prior art, the key operation structure is removed to realize the automatic switching of the two-dimensional/three-dimensional playback mode, and a large number of screenshots are intercepted from the target video file to determine the format information, and the similarity between the left and right split screens or the upper and lower split screens of each screenshot is respectively compared. . Each of the similarities is low, and is determined to be a two-dimensional video file; each of the similarities is high, and is determined to be a three-dimensional video file. The process of intercepting a large number of screenshots requires a lot of time, affects the recognition speed, and consumes a large amount of memory of the device, and has a large limitation when applied to mobile devices. Moreover, the method for judging the video format information of a plurality of screenshots for split-screen comparison cannot be applied to the online video file. Since the video data is not buffered before the online video file is played, a large number of samples cannot be obtained in advance, and thus it is impossible to perform three-dimensional Video file determination.
发明内容Summary of the invention
本发明的实施方式提供了一种能够快速识别视频格式信息自动切换播放模式的播放设备及其播放方法。Embodiments of the present invention provide a playback device capable of quickly identifying video format information and automatically switching a play mode, and a playback method thereof.
依据本发明的一个方面,提供了一种播放设备,该播放设备包括:截图单元,用于获取视频文件中至少一第一帧,所述第一帧为所述视频文件中任意一帧;信息处理单元,用于根据所述截图单元获取的所述第一帧进行图像比对处理获取第一比对信息;获取单元,用于根据所述信息处理单元获取的所述第一比对信息分析获取第一格式信息;播放单元,用于根据所述获取单元获取的所述第一格式信息判定所述视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,并通过所述三维播放模式播放所述视频文件;根据所述获取单元获取的所述第一格式信息判定所述视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述视频文件。According to an aspect of the present invention, a playback device is provided, the playback device includes: a screenshot unit, configured to acquire at least one first frame in a video file, where the first frame is any one of the video files; a processing unit, configured to perform image comparison processing to obtain first comparison information according to the first frame acquired by the screenshot unit, and an acquiring unit, configured to analyze, according to the first comparison information acquired by the information processing unit Acquiring the first format information; the playing unit is configured to: when the video file is determined to be a three-dimensional video format according to the first format information acquired by the acquiring unit, the playing mode of the playing device is switched to a three-dimensional playing mode, and The three-dimensional playback mode plays the video file; when the video file is determined to be a two-dimensional video format according to the first format information acquired by the acquiring unit, the playback mode of the playback device is switched to a two-dimensional playback mode. And playing the video file through the two-dimensional play mode.
依据本发明的另一个方面,提供了一种播放方法,该播放方法包括:播放设备获取视频文件中至少一第一帧,所述第一帧为所述视频文件中任意一帧;根据所述第一帧进行图像比对处理获取第一比对信息;根据所述第一比对信息分析获取第一格式信息;根据所述第一格式信息判定所述视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,并通过所述三维播放模式播放所述视频文件;根据所述第一格式信息判定所述视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述视频文件。According to another aspect of the present invention, a playback method is provided, the playback method includes: a playback device acquiring at least one first frame in a video file, where the first frame is any one of the video files; The first frame performs image comparison processing to obtain first alignment information; and the first format information is obtained according to the first comparison information analysis; and when the video file is determined to be a three-dimensional video format according to the first format information, The playing mode of the playing device is switched to the three-dimensional playing mode, and the video file is played by the three-dimensional playing mode; and the playing mode of the playing device is determined when the video file is determined to be a two-dimensional video format according to the first format information. Switching to a two-dimensional playback mode and playing the video file through the two-dimensional playback mode.
本发明实施例提供的一种播放设备及其播放方法,可在播放前后获取视频文件中至少一帧,对所截取的该帧图像进行图像比对处理获取比对信息,当比对信息处于预设值范围内判定视频格式信息为三维视频文件,播 放设备的播放模式切换为三维播放模式,并通过三维播放模式播放视频文件;当比对信息处于预设值范围外判定视频格式信息为二维视频文件,播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放视频文件。从而快速识别视频格式信息自动切换播放模式,并且当截取的图像至少为两帧且判定的格式信息一致时,对应判定结果视频文件存储于相应缓存单元中,不用再次判定直接播放。加速了视频文件播放时播放模式二维/三维自动切换的速度和流畅度,解决了在线视频文件播放模式判定问题。The present invention provides a playback device and a playback method thereof, which can acquire at least one frame in a video file before and after playback, and perform image comparison processing on the captured frame image to obtain comparison information, when the comparison information is in advance Determine the video format information in the range of values as a 3D video file, broadcast The playback mode of the playback device is switched to the three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; when the comparison information is outside the preset value range, the video format information is determined to be a two-dimensional video file, and the playback mode of the playback device is switched to two-dimensional playback. Mode and play video files in 2D playback mode. Therefore, the video format information is quickly recognized to automatically switch the play mode, and when the captured image is at least two frames and the determined format information is consistent, the corresponding determination result video file is stored in the corresponding cache unit, and the direct play is not determined again. It speeds up the speed and smoothness of the 2D/3D automatic switching of the playback mode during video file playback, and solves the problem of determining the online video file playback mode.
附图说明DRAWINGS
下列附图用于结合具体实施方式详细说明本发明的各个实施方式。应当理解,附图中示意出的各元件并不代表实际的大小及比例关系,仅是为了清楚说明而示意出来的示意图,不应理解成对本发明的限制。The following figures are used to describe various embodiments of the invention in detail in conjunction with the specific embodiments. It should be understood that the various elements of the present invention are not to be construed as a
图1为本发明一较佳实施例提供的播放设备的结构图;1 is a structural diagram of a playback device according to a preferred embodiment of the present invention;
图2为本发明另一较佳实施例提供的播放设备的结构图;2 is a structural diagram of a playback device according to another embodiment of the present invention;
图3为本发明另一较佳实施例提供的播放设备的结构图;3 is a structural diagram of a playback device according to another embodiment of the present invention;
图4为本发明一较佳实施例提供的播放方法的流程图;4 is a flowchart of a playing method according to a preferred embodiment of the present invention;
图5为本发明另一较佳实施例提供的播放方法的流程图;FIG. 5 is a flowchart of a playing method according to another embodiment of the present invention; FIG.
图6为图5播放方法中图像比对处理示意图;6 is a schematic diagram of image comparison processing in the playback method of FIG. 5;
图7为本发明另一较佳实施例提供的播放方法的流程图。FIG. 7 is a flowchart of a playing method according to another embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合多个实施方式及附图,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不用于限定本发明。 The present invention will be further described in detail below with reference to a plurality of embodiments and the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供一种播放设备,参考图1,图1为本发明一较佳实施例提供的播放设备的结构图。该播放设备包括:An embodiment of the present invention provides a playback device. Referring to FIG. 1, FIG. 1 is a structural diagram of a playback device according to a preferred embodiment of the present invention. The playback device includes:
10:截图单元,用于获取视频文件中至少一第一帧,第一帧为视频文件中任意一帧。更佳的,播放设备获取至少一第一帧的时间可以在存储该视频文件之后播放该视频文件之前,也可以在存储该视频文件之后视频文件开始播放之时,也可以在存储及播放同时开始之时。10: A screenshot unit, configured to acquire at least one first frame in the video file, where the first frame is any one of the video files. Preferably, the time for the playback device to acquire at least one first frame may be before the video file is saved after the video file is stored, or may be started when the video file starts playing after the video file is stored, or when the video file starts to be played. When.
11:信息处理单元,用于根据截图单元获取的第一帧进行图像比对处理获取第一比对信息。第一帧经第一线划分为第一区域及第二区域,将第一区域与第二区域内的图像进行比对获取第一比对信息,即第一区域内图像与第二区域内图像相似度,比对第一区域与第二区域图像的方法包括但不限于图像灰度化、基于特征点的图像相似度计算方法、直方图匹配方法等。11: An information processing unit, configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain the first comparison information. The first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
12:获取单元,用于根据信息处理单元获取的第一比对信息分析获取第一格式信息。The acquiring unit is configured to obtain the first format information according to the first comparison information acquired by the information processing unit.
获取单元中设定一预设值范围为0-1,0表示第一区域与第二区域图像比对完全不相似,1表示第一区域与第二区域图像比对完全相同。获取单元包括第一预设值及第二预设值,第一预设值小于第二预设值,第一预设值大于0,第二预设值小于1。当第一比对信息大于0小于第一预设值时,获取的第一格式信息判定视频文件为二维视频格式;当第一比对信息大于等于第一预设值小于1时,第一区域内图像与第二区域内图像不完全相同,获取的第一格式信息判定视频文件为三维视频格式;更佳的,当第一比对信息大于等于第一预设值小于等于第二预设值时,获取的第一格式信息判定视频文件为三维视频格式。为取得较佳的技术效果,可以设定第一预设值为0.8;第二预设值为0.9,第一比对信息大于0.8小于等于0.9 时获取的第一格式信息判定视频文件为三维视频格式。The preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical. The acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1. When the first comparison information is greater than 0 and less than the first preset value, the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format. In order to obtain better technical effects, the first preset value may be set to 0.8; the second preset value is 0.9, and the first comparison information is greater than 0.8 and less than or equal to 0.9. The first format information obtained at the time determines that the video file is in a three-dimensional video format.
13:播放单元,用于根据获取单元获取的第一格式信息判定的视频格式切换播放模式。播放单元包括根据获取单元获取的第一格式信息判定视频文件为三维视频格式时,播放设备的播放模式切换为三维播放模式,并通过三维播放模式播放视频文件;根据获取单元获取的第一格式信息判定视频文件为二维视频格式时,播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放视频文件。13: A playing unit, configured to switch a play mode according to a video format determined by the first format information acquired by the acquiring unit. When the playing unit determines that the video file is in the three-dimensional video format according to the first format information acquired by the obtaining unit, the playing mode of the playing device is switched to the three-dimensional playing mode, and the video file is played through the three-dimensional playing mode; the first format information acquired according to the acquiring unit When the video file is determined to be in the two-dimensional video format, the playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode.
参考图2,图2为本发明另一较佳实施例提供的播放设备的结构图。该设备包括:Referring to FIG. 2, FIG. 2 is a structural diagram of a playback device according to another embodiment of the present invention. The device includes:
20:存储单元,用于存储第一视频文件。第一视频文件输入播放设备后,还未播放前,开始进行视频格式识别。20: A storage unit, configured to store the first video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
21:截图单元,用于根据存储单元所存储的第一视频文件获取至少一第一帧,第一帧为第一视频文件中任意一帧。在第一视频文件进行播放前,通过截图单元从第一视频文件中截取任意一帧作为第一帧。21: A screenshot unit, configured to acquire at least one first frame according to the first video file stored by the storage unit, where the first frame is any one of the first video files. Before the first video file is played, any frame is intercepted from the first video file by the screenshot unit as the first frame.
22:信息处理单元,用于根据截图单元获取的第一帧进行图像比对处理获取第一比对信息。22: An information processing unit, configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain the first comparison information.
信息处理单元通过左右分屏处理模式进行图像比对处理,根据比对左右分屏图像信息获取第一左右分屏相似度;根据比对左右分屏对应局部图像信息获取第二左右分屏相似度;根据比对单侧屏不同区域图像信息获取第三左右分屏相似度。根据第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取第一比对信息。任意一帧的比对信息均由第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度构成。The information processing unit performs image comparison processing by using the left and right split screen processing modes, and acquires the first left and right split screen similarity according to the comparison of the left and right split screen image information; and obtains the second left and right split screen similarity according to the corresponding partial image information of the left and right split screens. And obtaining the third left and right split screen similarity according to the image information of the different areas of the single side screen. The first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
具体的,第一帧经第一线划分为第一区域及第二区域,第一区域边缘设于左分屏内或与左分屏重合,第二区域边缘设于右分屏内或与右分屏重 合。将第一区域与第二区域内的图像进行比对获取第一左右分屏相似度,即第一区域内图像与第二区域内图像相似度。第一区域中选取一第三区域,第三区域的边缘设定于第一区域内,第二区域中选取一第四区域,第四区域的边缘设定于第二区域内,第三区域相对第一区域的位置,与第四区域相对第二区域的位置相同或相似,第三区域与第四区域进行比对获取第二左右分屏相似度。第一区域中选取一第五区域及第六区域,第五区域边缘设定于第一区域内,第六区域边缘设定于第一区域内,且第五区域与第六区域不相交,第五区域与第六区域进行比对获取第三左右分屏相似度。比对上述区域图像的方法包括但不限于图像灰度化、基于特征点的图像相似度计算方法、直方图匹配方法等。根据第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取第一比对信息。Specifically, the first frame is divided into a first area and a second area by using a first line, where the edge of the first area is located in the left split screen or coincides with the left split screen, and the edge of the second area is set in the right split screen or right Split screen Hehe. Comparing the images in the first area and the second area to obtain the first left and right split screen similarity, that is, the image similarity between the image in the first area and the second area. A third area is selected in the first area, the edge of the third area is set in the first area, and the fourth area is selected in the second area, and the edge of the fourth area is set in the second area, and the third area is opposite The position of the first area is the same as or similar to the position of the fourth area relative to the second area, and the third area is compared with the fourth area to obtain the second left and right split screen similarity. a fifth area and a sixth area are selected in the first area, the fifth area edge is set in the first area, the sixth area edge is set in the first area, and the fifth area and the sixth area are not intersected, The five regions and the sixth region are compared to obtain the third left and right split screen similarity. Methods of aligning the above-described area images include, but are not limited to, image gradation, feature point-based image similarity calculation methods, histogram matching methods, and the like. The first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
23:获取单元,用于根据信息处理单元获取的第一比对信息分析获取第一格式信息。And a obtaining unit, configured to obtain the first format information according to the first comparison information acquired by the information processing unit.
获取单元中设定一预设值范围为0-1,0表示第一区域与第二区域图像比对完全不相似,1表示第一区域与第二区域图像比对完全相同。获取单元包括第一预设值及第二预设值,第一预设值小于第二预设值,第一预设值大于0,第二预设值小于1。当第一比对信息大于0小于第一预设值时,获取的第一格式信息判定视频文件为二维视频格式;当第一比对信息大于等于第一预设值小于1时,第一区域内图像与第二区域内图像不完全相同,获取的第一格式信息判定视频文件为三维视频格式;更佳的,当第一比对信息大于等于第一预设值小于等于第二预设值时,获取的第一格式信息判定视频文件为三维视频格式。为取得较佳的技术效果,可以设定第一预设值为0.8;第二预设值为0.9,第一比对信息大于0.8小于等于0.9时获取的第一格式信息判定视频文件为三维视频格式。 The preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical. The acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1. When the first comparison information is greater than 0 and less than the first preset value, the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format. In order to obtain a better technical effect, the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
更佳的,因为第一比对信息通过第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取。获取单元中还包括第一相似条件及第二相似条件,第一相似条件包括第一左右分屏相似度不小于第一预设值且第二左右分屏相似度不小于第一预设值且第三左右分屏相似度小于第二预设值;第二相似条件包括第一左右分屏相似度不小于第二预设值且第二左右分屏相似度不小于第二预设值且第三左右分屏相似度小于第二预设值。第一比对信息满足第一相似条件时获取的第一格式信息判定第一视频文件为三维视频格式。更佳的,第一比对信息满足第二相似条件时获取的第一格式信息判定第一视频文件为三维视频格式,且准确率更高。More preferably, the first comparison information is obtained by the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The acquiring unit further includes a first similar condition and a second similar condition, where the first similar condition includes that the first left and right split screen similarity is not less than the first preset value and the second left and right split screen similarity is not less than the first preset value and The third left and right split screen similarity is less than the second preset value; the second similar condition includes that the first left and right split screen similarity is not less than the second preset value and the second left and right split screen similarity is not less than the second preset value and the first The similarity of the three left and right split screens is smaller than the second preset value. The first format information obtained when the first comparison information satisfies the first similar condition determines that the first video file is a three-dimensional video format. More preferably, the first format information obtained when the first comparison information satisfies the second similar condition determines that the first video file is a three-dimensional video format, and the accuracy is higher.
24:接收单元,用于接收第一视频文件播放指令播放已存储于存储单元的第一视频文件。24: The receiving unit is configured to receive the first video file playing instruction to play the first video file that has been stored in the storage unit.
25:截图单元,用于获取已播放的第一视频文件中至少一第二帧,第二帧为除第一帧以外任意一帧。在第一视频文件开始播放时,通过截图单元从第一视频文件中随机截取除第一帧以外的任意一帧为第二帧。25: A screenshot unit, configured to acquire at least one second frame in the first video file that has been played, and the second frame is any frame other than the first frame. When the first video file starts playing, any frame other than the first frame is randomly intercepted from the first video file by the screenshot unit as the second frame.
26:信息处理单元,用于根据截图单元获取的第二帧进行图像比对处理获取第二比对信息。26: An information processing unit, configured to perform second image matching processing according to the second frame acquired by the screenshot unit to obtain second comparison information.
信息处理单元通过左右分屏处理模式进行图像比对处理,根据比对左右分屏图像信息获取第一左右分屏相似度;根据比对左右分屏对应局部图像信息获取第二左右分屏相似度;根据比对单侧屏不同区域图像信息获取第三左右分屏相似度。根据第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取第二比对信息。任意一帧的比对信息均由第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度构成。The information processing unit performs image comparison processing by using the left and right split screen processing modes, and acquires the first left and right split screen similarity according to the comparison of the left and right split screen image information; and obtains the second left and right split screen similarity according to the corresponding partial image information of the left and right split screens. And obtaining the third left and right split screen similarity according to the image information of the different areas of the single side screen. The second comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
27:获取单元,用于根据信息处理单元获取的第二比对信息分析获取第二格式信息。 An acquisition unit, configured to obtain second format information according to the second comparison information acquired by the information processing unit.
视频文件播放时,获取单元通过第二比对信息与预设值对比分析判断第一视频文件的视频格式。根据第一视频文件播放前获取的第一格式信息及第一视频文件播放时获取的第二格式信息确认第一视频文件的视频格式。若第一格式信息与第二格式信息相同,判定第一视频文件的视频格式,若第一格式信息与第二格式信息不相同,另截取第一视频文件中除第一帧及第二帧以外的任意一帧再通过信息处理单元及获取单元分析获取格式信息判定。When the video file is played, the obtaining unit determines the video format of the first video file by comparing the second comparison information with the preset value. And confirming the video format of the first video file according to the first format information acquired before the first video file is played and the second format information obtained when the first video file is played. If the first format information is the same as the second format information, determining a video format of the first video file, if the first format information is different from the second format information, and intercepting the first video file except the first frame and the second frame Any frame is determined by the information processing unit and the acquisition unit to obtain the format information.
更佳的,第一比对信息满足第一相似条件时获取的第一格式信息,第二比对信息满足第一相似条件时获取的第二格式信息,判定第一视频文件为三维视频格式。更佳的,第一比对信息和第二比对信息均满足第一相似条件时,第一比对信息或第二比对信息中至少一个满足第二相似条件,判定第一视频文件为三维视频格式,且准确率更高。更佳的,第一比对信息满足第二相似条件时获取的第一格式信息,第二比对信息满足第二相似条件时获取的第二格式信息,判定第一视频文件为三维视频格式,且准确率更高。More preferably, the first comparison information satisfies the first format information acquired when the first similar condition is satisfied, and the second comparison information satisfies the second format information acquired when the first similar condition is satisfied, and determines that the first video file is a three-dimensional video format. More preferably, when both the first comparison information and the second comparison information satisfy the first similar condition, at least one of the first comparison information or the second comparison information satisfies a second similar condition, and the first video file is determined to be three-dimensional. Video format with higher accuracy. More preferably, the first comparison information satisfies the first format information acquired when the second similar condition is satisfied, and the second comparison information satisfies the second format information obtained when the second similar condition is satisfied, and determines that the first video file is a three-dimensional video format. And the accuracy is higher.
28:播放单元,用于根据获取单元获取的第一格式信息及第二格式信息判定的视频格式切换播放模式。播放单元包括根据获取单元获取的第一格式信息及第二格式信息判定第一视频文件为三维视频格式时,播放设备的播放模式切换为三维播放模式,并通过三维播放模式播放第一视频文件;根据获取单元获取的第一格式信息及第二格式信息判定第一视频文件为二维视频格式时,播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放第一视频文件。28: The playing unit is configured to switch the play mode according to the first format information acquired by the obtaining unit and the video format determined by the second format information. When the playing unit determines that the first video file is in the three-dimensional video format according to the first format information and the second format information acquired by the acquiring unit, the playing mode of the playing device is switched to the three-dimensional playing mode, and the first video file is played through the three-dimensional playing mode; And determining, according to the first format information and the second format information acquired by the acquiring unit, that the first video file is in the two-dimensional video format, the playing mode of the playing device is switched to the two-dimensional playing mode, and the first video file is played through the two-dimensional playing mode.
29:三维视频文件缓存单元及二维视频文件缓存单元。三维视频文件缓存单元,用于根据获取单元获取的第一格式信息及第二格式信息判定第 一视频文件为三维视频格式时,存储第一视频文件。二维视频文件缓存单元,用于根据获取单元获取的第一格式信息及第二格式信息判定第一视频文件为二维视频格式时,存储第一视频文件。29: 3D video file buffer unit and 2D video file buffer unit. a 3D video file buffering unit, configured to determine, according to the first format information and the second format information acquired by the obtaining unit When a video file is in a three-dimensional video format, the first video file is stored. The two-dimensional video file buffering unit is configured to store the first video file when the first video file is determined to be a two-dimensional video format according to the first format information and the second format information acquired by the obtaining unit.
参考图3,图3为本发明另一较佳实施例提供的播放设备的结构图。该设备包括:Referring to FIG. 3, FIG. 3 is a structural diagram of a playback device according to another embodiment of the present invention. The device includes:
30:存储单元,用于存储第二视频文件。第二视频文件输入播放设备后,还未播放前,开始进行视频格式识别。30: A storage unit, configured to store the second video file. After the second video file is input to the playback device, the video format recognition is started before it is played.
31:截图单元,用于根据存储单元所存储的第二视频文件获取至少一第三帧及一第四帧,第三帧及第四帧为第二视频文件中任意不相同两帧。在第二视频文件进行播放前,通过截图单元从第二视频文件中截取任意不相同两帧作为第三帧及第四帧。31: A screenshot unit, configured to acquire at least one third frame and a fourth frame according to the second video file stored by the storage unit, where the third frame and the fourth frame are any two different frames in the second video file. Before the second video file is played, any two different frames are intercepted from the second video file by the screenshot unit as the third frame and the fourth frame.
32:信息处理单元,用于根据截图单元获取的第三帧进行图像比对处理获取第三比对信息,根据第四帧进行图像比对处理获取第四比对信息。信息处理单元通过上下分屏处理模式进行图像比对处理,根据比对上下分屏图像信息获取第一上下分屏相似度;根据比对上下分屏对应局部图像信息获取第二上下分屏相似度;根据比对单侧屏不同区域图像信息获取第三上下分屏相似度;根据第一上下分屏相似度、第二上下分屏相似度及第三上下分屏相似度获取第三比对信息及第四比对信息。32: An information processing unit, configured to perform third image matching processing according to the third frame acquired by the screenshot unit to obtain third comparison information, and perform image comparison processing according to the fourth frame to obtain fourth comparison information. The information processing unit performs image comparison processing by using the upper and lower split screen processing modes, and obtains the first upper and lower split screen similarity according to the upper and lower split screen image information; and obtains the second upper and lower split screen similarity according to the corresponding partial image information corresponding to the upper and lower split screens. Obtaining the third upper and lower split screen similarity according to the image information of the different areas of the single side screen; obtaining the third comparison information according to the first upper and lower split screen similarity, the second upper and lower split screen similarity, and the third upper and lower split screen similarity And the fourth comparison information.
33:获取单元,用于根据信息处理单元获取的第三比对信息分析获取第三格式信息,根据信息处理单元获取的第四比对信息分析获取第四格式信息。视频文件播放前获取单元通过第三帧及第四帧判断第二视频文件的视频格式。根据第二视频文件播放前获取的第三格式信息及第四格式信息确认第二视频文件的视频格式。若第三格式信息与第四格式信息相同时判定第二视频文件的视频格式,若第三格式信息与第四格式信息不相同,另 截取除第三帧及第四帧以外的任意一帧进行比对判定。And a obtaining unit, configured to obtain the third format information according to the third comparison information acquired by the information processing unit, and obtain the fourth format information according to the fourth comparison information acquired by the information processing unit. The acquiring unit before the video file is played determines the video format of the second video file through the third frame and the fourth frame. And confirming the video format of the second video file according to the third format information and the fourth format information acquired before the second video file is played. Determining a video format of the second video file if the third format information is the same as the fourth format information, if the third format information is different from the fourth format information, Any one of the frames other than the third frame and the fourth frame is intercepted for comparison determination.
34:三维视频文件缓存单元及二维视频文件缓存单元。三维视频文件缓存单元,用于根据获取单元获取的第三格式信息及第四格式信息判定第二视频文件为三维视频格式时,存储第二视频文件。二维视频文件缓存单元,用于根据获取单元获取的第三格式信息及第四格式信息判定第二视频文件为二维视频格式时,存储第二视频文件。34: 3D video file buffer unit and 2D video file buffer unit. The 3D video file buffering unit is configured to store the second video file when the second video file is determined to be a three-dimensional video format according to the third format information and the fourth format information acquired by the obtaining unit. The two-dimensional video file buffering unit is configured to store the second video file when the second video file is determined to be a two-dimensional video format according to the third format information and the fourth format information acquired by the obtaining unit.
本发明实施例还提供一种播放方法,参考图4,图4为本发明一较佳实施例提供的播放方法的流程图。该播放方法为:The embodiment of the present invention further provides a playing method. Referring to FIG. 4, FIG. 4 is a flowchart of a playing method according to a preferred embodiment of the present invention. The playback method is:
S100:播放设备获取视频文件中至少一第一帧,第一帧为视频文件中任意一帧。S100: The playback device acquires at least one first frame in the video file, where the first frame is any one of the video files.
S101:根据第一帧进行图像比对处理获取第一比对信息。第一帧经第一线划分为第一区域及第二区域,将第一区域与第二区域内的图像进行比对获取第一比对信息,即第一区域内图像与第二区域内图像相似度,比对第一区域与第二区域图像的方法包括但不限于图像灰度化、基于特征点的图像相似度计算方法、直方图匹配方法等。S101: Perform image comparison processing according to the first frame to obtain first comparison information. The first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
S102:根据第一比对信息分析获取第一格式信息。S102: Acquire first format information according to the first comparison information analysis.
获取单元中设定一预设值范围为0-1,0表示第一区域与第二区域图像比对完全不相似,1表示第一区域与第二区域图像比对完全相同。获取单元包括第一预设值及第二预设值,第一预设值小于第二预设值,第一预设值大于0,第二预设值小于1。当第一比对信息大于0小于第一预设值时,获取的第一格式信息判定视频文件为二维视频格式;当第一比对信息大于等于第一预设值小于1时,第一区域内图像与第二区域内图像不完全相同,获取的第一格式信息判定视频文件为三维视频格式;更佳的,当第一比对信息大于等于第一预设值小于等于第二预设值时,获取的第一格式 信息判定视频文件为三维视频格式。为取得较佳的技术效果,可以设定第一预设值为0.8;第二预设值为0.9,第一比对信息大于0.8小于等于0.9时获取的第一格式信息判定视频文件为三维视频格式。The preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical. The acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1. When the first comparison information is greater than 0 and less than the first preset value, the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. The first format obtained when the value is obtained The information determines that the video file is in a three-dimensional video format. In order to obtain a better technical effect, the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
S103:根据第一格式信息判定的视频格式切换播放模式。根据第一格式信息判定视频文件的视频格式为三维视频格式时,播放设备的播放模式切换为三维播放模式,并通过三维播放模式播放视频文件;根据第一格式信息判定视频文件的视频格式为二维视频格式时,播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放视频文件。S103: Switch the play mode according to the video format determined by the first format information. When the video format of the video file is determined to be a three-dimensional video format according to the first format information, the playback mode of the playback device is switched to the three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; and the video format of the video file is determined according to the first format information. In the video format, the playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode.
参考图5及图6,图5为本发明另一较佳实施例提供的播放方法的流程图;图6为图5播放方法中图像比对处理示意图。该播放方法为:5 and FIG. 6, FIG. 5 is a flowchart of a playing method according to another embodiment of the present invention; and FIG. 6 is a schematic diagram of image matching processing in the playing method of FIG. The playback method is:
S200:播放设备存储第一视频文件。第一视频文件输入播放设备后,还未播放前,开始进行视频格式识别。S200: The playback device stores the first video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
S201:播放设备获取第一视频文件中至少一第一帧,第一帧为第一视频文件中任意一帧。S201: The playback device acquires at least one first frame in the first video file, where the first frame is any one of the first video files.
S202:根据第一帧进行图像比对处理获取第一比对信息。S202: Perform image comparison processing according to the first frame to obtain first comparison information.
第一帧经第一线划分为第一区域及第二区域,将第一区域与第二区域内的图像进行比对获取第一比对信息,即第一区域内图像与第二区域内图像相似度,比对第一区域与第二区域图像的方法包括但不限于图像灰度化、基于特征点的图像相似度计算方法、直方图匹配方法等。The first frame is divided into a first area and a second area by using a first line, and the first area is compared with the image in the second area to obtain first alignment information, that is, the image in the first area and the image in the second area Similarity, methods of comparing the first region and the second region image include, but are not limited to, image grayscale, feature point based image similarity calculation method, histogram matching method, and the like.
如图6所示,图像比对处理包括左右分屏处理模式,即第一区域A1与第二区域A2左右分屏。第一区域A1与第二区域A2进行比对获取第一左右分屏相似度;第一区域A1中选取一第三区域B1,第三区域B1的边缘设定于第一区域A1内,第二区域A2中选取一第四区域B2,第四区域B2的边缘设定于第二区域A2内,第三区域B1相对第一区域A1的位置, 与第四区域B2相对第二区域A2的位置相同或相似,第三区域B1与第四区域B2进行比对获取第二左右分屏相似度,用以避免二维视频文件中截取的第一帧中第一区域A1与第二区域A2图像非常相似误判为三维视频格式的情况;第一区域A1中选取一第五区域C1及第六区域C2,第五区域C1边缘设定于第一区域A1内,第六区域C2边缘设定于第一区域A1内,且第五区域C1与第六区域C2不相交,第五区域C1与第六区域C2进行比对获取第三左右分屏相似度,用以避免截取的第一帧为纯色画面造成视频格式判定错误。根据第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取第一比对信息。任意一帧的比对信息均由第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度构成。As shown in FIG. 6, the image comparison processing includes a left and right split screen processing mode, that is, the first area A1 and the second area A2 are divided into left and right screens. The first area A1 and the second area A2 are compared to obtain the first left and right split screen similarity; the third area B1 is selected in the first area A1, and the edge of the third area B1 is set in the first area A1, and the second A fourth area B2 is selected in the area A2, and an edge of the fourth area B2 is set in the second area A2, and a position of the third area B1 is opposite to the first area A1. The position of the second area B2 is the same as or similar to that of the fourth area B2, and the third area B1 and the fourth area B2 are compared to obtain the second left and right split screen similarity, so as to avoid the first frame intercepted in the two-dimensional video file. The image of the first area A1 and the second area A2 are very similarly misidentified into a three-dimensional video format; a fifth area C1 and a sixth area C2 are selected in the first area A1, and the edge of the fifth area C1 is set in the first area. In A1, the sixth region C2 edge is set in the first region A1, and the fifth region C1 and the sixth region C2 do not intersect, and the fifth region C1 and the sixth region C2 are compared to obtain the third left and right split screen similarity. In order to avoid the interception of the first frame as a solid color picture, the video format determination error is caused. The first comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
S203:根据第一比对信息分析获取第一格式信息。S203: Acquire first format information according to the first comparison information analysis.
获取单元中设定一预设值范围为0-1,0表示第一区域与第二区域图像比对完全不相似,1表示第一区域与第二区域图像比对完全相同。获取单元包括第一预设值及第二预设值,第一预设值小于第二预设值,第一预设值大于0,第二预设值小于1。当第一比对信息大于0小于第一预设值时,获取的第一格式信息判定视频文件为二维视频格式;当第一比对信息大于等于第一预设值小于1时,第一区域内图像与第二区域内图像不完全相同,获取的第一格式信息判定视频文件为三维视频格式;更佳的,当第一比对信息大于等于第一预设值小于等于第二预设值时,获取的第一格式信息判定视频文件为三维视频格式。为取得较佳的技术效果,可以设定第一预设值为0.8;第二预设值为0.9,第一比对信息大于0.8小于等于0.9时获取的第一格式信息判定视频文件为三维视频格式。The preset value range set in the obtaining unit is 0-1, 0 means that the first area and the second area image are completely dissimilar, and 1 means that the first area and the second area image are identical. The acquiring unit includes a first preset value and a second preset value, where the first preset value is smaller than the second preset value, the first preset value is greater than 0, and the second preset value is less than 1. When the first comparison information is greater than 0 and less than the first preset value, the obtained first format information determines that the video file is a two-dimensional video format; when the first comparison information is greater than or equal to the first preset value less than 1, the first The image in the area is not completely the same as the image in the second area, and the obtained first format information determines that the video file is in a three-dimensional video format. More preferably, when the first comparison information is greater than or equal to the first preset value, the second preset is less than or equal to the second preset. When the value is obtained, the obtained first format information determines that the video file is in a three-dimensional video format. In order to obtain a better technical effect, the first preset value may be set to 0.8; the second preset value is 0.9, and the first format information obtained when the first comparison information is greater than 0.8 or less than 0.9 is determined to be a three-dimensional video. format.
更佳的,因为第一比对信息通过第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取。获取单元中还包括第一相似条件及第 二相似条件,第一相似条件包括第一左右分屏相似度不小于第一预设值且第二左右分屏相似度不小于第一预设值且第三左右分屏相似度小于第二预设值;第二相似条件包括第一左右分屏相似度不小于第二预设值且第二左右分屏相似度不小于第二预设值且第三左右分屏相似度小于第二预设值。第一比对信息满足第一相似条件时获取的第一格式信息判定第一视频文件为三维视频格式。更佳的,第一比对信息满足第二相似条件时获取的第一格式信息判定第一视频文件为三维视频格式,且准确率更高。More preferably, the first comparison information is obtained by the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The acquisition unit also includes the first similar condition and the first The second similar condition, the first similar condition includes that the first left and right split screen similarity is not less than the first preset value, and the second left and right split screen similarity is not less than the first preset value, and the third left and right split screen similarity is less than the second preset Setting a value; the second similar condition includes that the first left and right split screen similarity is not less than the second preset value, and the second left and right split screen similarity is not less than the second preset value and the third left and right split screen similarity is less than the second preset value. The first format information obtained when the first comparison information satisfies the first similar condition determines that the first video file is a three-dimensional video format. More preferably, the first format information obtained when the first comparison information satisfies the second similar condition determines that the first video file is a three-dimensional video format, and the accuracy is higher.
S204:播放设备接收第一视频文件播放指令播放第一视频文件。S204: The playing device receives the first video file playing instruction to play the first video file.
S205:获取第一视频文件中至少一第二帧,第二帧为第一视频文件中除第一帧以外任意一帧。在第一视频文件开始播放时,从第一视频文件中随机截取除第一帧以外的任意一帧为第二帧。S205: Acquire at least one second frame in the first video file, where the second frame is any frame other than the first frame in the first video file. When the first video file starts playing, any frame other than the first frame is randomly intercepted from the first video file as the second frame.
S206:根据第二帧进行图像比对处理获取第二比对信息。图像比对处理包括左右分屏处理模式;根据比对左右分屏图像信息获取第一左右分屏相似度;根据比对左右分屏对应局部图像信息获取第二左右分屏相似度;根据比对单侧屏不同区域图像信息获取第三左右分屏相似度。根据第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度获取第二比对信息。任意一帧的比对信息均由第一左右分屏相似度、第二左右分屏相似度及第三左右分屏相似度构成。S206: Perform image comparison processing according to the second frame to obtain second alignment information. The image comparison processing includes a left and right split screen processing mode; the first left and right split screen similarity is obtained according to the comparison left and right split screen image information; and the second left and right split screen similarity is obtained according to the comparison of the partial left and right split screen corresponding partial image information; The image information of different areas of the single side screen acquires the similarity of the third left and right split screens. The second comparison information is obtained according to the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity. The comparison information of any one frame is composed of the first left and right split screen similarity, the second left and right split screen similarity, and the third left and right split screen similarity.
S207:根据第二比对信息分析获取第二格式信息。S207: Acquire second format information according to the second comparison information analysis.
视频文件播放时,通过第二比对信息与预设值对比分析判断第一视频文件的视频格式。根据第一视频文件播放前获取的第一格式信息及第一视频文件播放时获取的第二格式信息确认第一视频文件的视频格式。若第一格式信息与第二格式信息相同,判定第一视频文件的视频格式,若第一格式信息与第二格式信息不相同,另截取第一视频文件中除第一帧及第二帧 以外的任意一帧再通过信息处理单元及获取单元分析获取格式信息判定。When the video file is played, the video format of the first video file is determined by comparing the second comparison information with the preset value. And confirming the video format of the first video file according to the first format information acquired before the first video file is played and the second format information obtained when the first video file is played. If the first format information is the same as the second format information, determining a video format of the first video file, if the first format information is different from the second format information, and intercepting the first frame and the second frame in the first video file Any frame other than the frame is further analyzed by the information processing unit and the acquisition unit to obtain the format information.
更佳的,第一比对信息满足第一相似条件时获取的第一格式信息,第二比对信息满足第一相似条件时获取的第二格式信息,判定第一视频文件为三维视频格式。更佳的,第一比对信息和第二比对信息均满足第一相似条件时,第一比对信息或第二比对信息中至少一个满足第二相似条件,判定第一视频文件为三维视频格式,且准确率更高。更佳的,第一比对信息满足第二相似条件时获取的第一格式信息,第二比对信息满足第二相似条件时获取的第二格式信息,判定第一视频文件为三维视频格式,且准确率更高。More preferably, the first comparison information satisfies the first format information acquired when the first similar condition is satisfied, and the second comparison information satisfies the second format information acquired when the first similar condition is satisfied, and determines that the first video file is a three-dimensional video format. More preferably, when both the first comparison information and the second comparison information satisfy the first similar condition, at least one of the first comparison information or the second comparison information satisfies a second similar condition, and the first video file is determined to be three-dimensional. Video format with higher accuracy. More preferably, the first comparison information satisfies the first format information acquired when the second similar condition is satisfied, and the second comparison information satisfies the second format information obtained when the second similar condition is satisfied, and determines that the first video file is a three-dimensional video format. And the accuracy is higher.
S208:根据第一格式信息及第二格式信息判定的视频格式切换播放模式。根据第一格式信息及第二格式信息判定第一视频文件为三维视频格式时,播放设备的播放模式切换为三维播放模式,通过三维播放模式播放第一视频文件;根据第一格式信息及第二格式信息判定第一视频文件为二维视频格式时,播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放第一视频文件。S208: Switch the play mode according to the video format determined by the first format information and the second format information. When determining that the first video file is in the three-dimensional video format according to the first format information and the second format information, the playing mode of the playing device is switched to the three-dimensional playing mode, and the first video file is played through the three-dimensional playing mode; according to the first format information and the second When the format information determines that the first video file is in the two-dimensional video format, the playback mode of the playback device is switched to the two-dimensional playback mode, and the first video file is played through the two-dimensional playback mode.
S209:根据第一格式信息及第二格式信息判定的视频格式存储于三维视频文件缓存单元或二维视频文件缓存单元中。根据第一格式信息及第二格式信息判定第一视频文件为三维视频格式时,存储第一视频文件于三维视频文件缓存单元中;根据第一格式信息及第二格式信息判定第一视频文件为二维视频格式时,存储第一视频文件于二维视频文件缓存单元中。S209: The video format determined according to the first format information and the second format information is stored in the three-dimensional video file buffer unit or the two-dimensional video file buffer unit. And determining, according to the first format information and the second format information, that the first video file is in the three-dimensional video format, storing the first video file in the three-dimensional video file buffer unit; determining, according to the first format information and the second format information, that the first video file is In the two-dimensional video format, the first video file is stored in the two-dimensional video file cache unit.
参考图7,图7为本发明另一较佳实施例提供的播放方法的流程图。该播放方法为:Referring to FIG. 7, FIG. 7 is a flowchart of a playing method according to another embodiment of the present invention. The playback method is:
S300:播放设备存储第二视频文件。第一视频文件输入播放设备后,还未播放前,开始进行视频格式识别。 S300: The playback device stores the second video file. After the first video file is input to the playback device, the video format recognition is started before it is played.
S301:播放设备获取第二视频文件中至少一第三帧及一第四帧,第三帧及第四帧为第二视频文件中任意不相同两帧。S301: The playback device acquires at least one third frame and a fourth frame in the second video file, where the third frame and the fourth frame are any two different frames in the second video file.
S302:根据第三帧进行图像比对处理获取第三比对信息,根据第四帧进行图像比对处理获取第四比对信息。图像比对处理包括上下分屏处理模式;根据比对上下分屏图像信息获取第一上下分屏相似度;根据比对上下分屏对应局部图像信息获取第二上下分屏相似度;根据比对单侧屏不同区域图像信息获取第三上下分屏相似度;根据第一上下分屏相似度、第二上下分屏相似度及第三上下分屏相似度获取第三比对信息及第四比对信息。S302: Perform image comparison processing according to the third frame to obtain third alignment information, and perform image comparison processing according to the fourth frame to obtain fourth comparison information. The image comparison processing includes an upper and lower split screen processing mode; the first upper and lower split screen similarities are obtained according to the comparison upper and lower split screen image information; and the second upper and lower split screen similarities are obtained according to the corresponding upper and lower split screen corresponding partial image information; The image information of different areas of the single-sided screen acquires the similarity of the third upper and lower split screens; and the third comparison information and the fourth ratio are obtained according to the first upper and lower split screen similarity, the second upper and lower split screen similarity, and the third upper and lower split screen similarity For information.
S303:根据第三比对信息分析获取第三格式信息,根据第四比对信息分析获取第四格式信息。视频文件播放前通过第三帧及第四帧判断第二视频文件的视频格式。根据第二视频文件播放前获取的第三格式信息及第四格式信息确认第二视频文件的视频格式。若第三格式信息与第四格式信息相同时判定第二视频文件的视频格式,若第三格式信息与第四格式信息不相同,另截取除第三帧及第四帧以外的任意一帧进行比对判定。S303: Acquire third format information according to the third comparison information analysis, and obtain fourth format information according to the fourth comparison information analysis. The video format of the second video file is determined by the third frame and the fourth frame before the video file is played. And confirming the video format of the second video file according to the third format information and the fourth format information acquired before the second video file is played. Determining a video format of the second video file if the third format information is the same as the fourth format information, and if the third format information is different from the fourth format information, intercepting any frame other than the third frame and the fourth frame Comparison judgment.
S304:根据第三格式信息及第四格式信息判定的视频格式存储于三维视频文件缓存单元或二维视频文件缓存单元中。根据第三格式信息及第四格式信息判定第二视频文件为三维视频格式时,存储第二视频文件于三维视频文件缓存单元中;若根据第三格式信息及第四格式信息判定第二视频文件为二维视频格式时,存储第二视频文件于二维视频文件缓存单元中。S304: The video format determined according to the third format information and the fourth format information is stored in the three-dimensional video file buffer unit or the two-dimensional video file buffer unit. And determining, according to the third format information and the fourth format information, that the second video file is in the three-dimensional video format, storing the second video file in the three-dimensional video file buffer unit; and determining the second video file according to the third format information and the fourth format information. When in the two-dimensional video format, the second video file is stored in the two-dimensional video file cache unit.
本发明实施例提供的一种播放设备及其播放方法,可在播放前后获取视频文件中至少一帧,对所截取的该帧的图像进行图像比对处理获取比对信息,当比对信息处于预设值范围内判定视频格式信息为三维视频文件,播放设备的播放模式切换为三维播放模式,并通过三维播放模式播放视频文件;当比对信息处于预设值范围外判定视频格式信息为二维视频文件, 播放设备的播放模式切换为二维播放模式,并通过二维播放模式播放视频文件。从而快速识别视频格式信息自动切换播放模式,并且当截取的图像至少为两帧且判定的格式信息一致时,对应判定结果视频文件存储于相应缓存单元中,不用再次判定直接播放。加速了视频文件播放时播放模式二维/三维自动切换的速度和流畅度,解决了在线视频文件播放模式判定问题。The present invention provides a playback device and a playback method thereof, which can acquire at least one frame in a video file before and after playback, and perform image comparison processing on the captured image of the frame to obtain comparison information, when the comparison information is The video format information is determined to be a three-dimensional video file in a preset range, and the playback mode of the playback device is switched to a three-dimensional playback mode, and the video file is played through the three-dimensional playback mode; when the comparison information is in a preset value range, the video format information is determined to be two. Dimensional video files, The playback mode of the playback device is switched to the two-dimensional playback mode, and the video file is played through the two-dimensional playback mode. Therefore, the video format information is quickly recognized to automatically switch the play mode, and when the captured image is at least two frames and the determined format information is consistent, the corresponding determination result video file is stored in the corresponding cache unit, and the direct play is not determined again. It speeds up the speed and smoothness of the 2D/3D automatic switching of the playback mode during video file playback, and solves the problem of determining the online video file playback mode.
以上仅为本发明的较佳实施方式而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, and improvements made within the spirit and scope of the present invention should be included in the scope of the present invention. Inside.

Claims (12)

  1. 一种播放设备,其特征在于,A playback device, characterized in that
    截图单元,用于获取视频文件中至少一第一帧,所述第一帧为所述视频文件中任意一帧;a screenshot unit, configured to acquire at least one first frame in the video file, where the first frame is any one of the video files;
    信息处理单元,用于根据所述截图单元获取的所述第一帧进行图像比对处理获取第一比对信息;An information processing unit, configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain first comparison information;
    获取单元,用于根据所述信息处理单元获取的所述第一比对信息分析获取第一格式信息;An obtaining unit, configured to obtain first format information according to the first comparison information acquired by the information processing unit;
    播放单元,用于根据所述获取单元获取的所述第一格式信息判定所述视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,并通过所述三维播放模式播放所述视频文件;根据所述获取单元获取的所述第一格式信息判定所述视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述视频文件。a playing unit, configured to: when the video file is determined to be a three-dimensional video format according to the first format information acquired by the acquiring unit, the playing mode of the playing device is switched to a three-dimensional playing mode, and played by the three-dimensional playing mode The video file; when the video file is determined to be a two-dimensional video format according to the first format information acquired by the acquiring unit, the playing mode of the playing device is switched to a two-dimensional playing mode, and the two-dimensional playing mode is adopted. The video file is played in the play mode.
  2. 如权利要求1所述的播放设备,其特征在于,A playback device according to claim 1 wherein:
    存储单元,用于存储第一视频文件;a storage unit, configured to store the first video file;
    所述截图单元,用于根据所述存储单元所存储的所述第一视频文件获取至少一第一帧,所述第一帧为所述第一视频文件中任意一帧;The screenshot unit is configured to acquire at least one first frame according to the first video file stored by the storage unit, where the first frame is any one of the first video files;
    所述信息处理单元,用于根据所述所述截图单元获取的所述第一帧进行图像比对处理获取第一比对信息; The information processing unit is configured to perform image comparison processing according to the first frame acquired by the screenshot unit to obtain first comparison information;
    所述获取单元,用于根据所述所述信息处理单元获取的所述第一比对信息分析获取第一格式信息;The acquiring unit is configured to obtain first format information according to the first comparison information acquired by the information processing unit;
    接收单元,用于接收第一视频文件播放指令播放已存储于所述存储单元的所述第一视频文件;a receiving unit, configured to receive a first video file play instruction to play the first video file that has been stored in the storage unit;
    所述截图单元,用于获取所述第一视频文件中至少一第二帧,所述第二帧为除所述第一帧以外任意一帧;The screenshot unit is configured to acquire at least one second frame in the first video file, where the second frame is any frame other than the first frame;
    所述信息处理单元,用于根据所述所述截图单元获取的所述第二帧进行图像比对处理获取第二比对信息;The information processing unit is configured to perform second image matching processing according to the second frame acquired by the screenshot unit to obtain second comparison information;
    所述获取单元,用于根据所述所述信息处理单元获取的所述第二比对信息分析获取第二格式信息;The acquiring unit is configured to obtain second format information according to the second comparison information acquired by the information processing unit;
    所述播放单元,用于根据所述获取单元获取的所述第一格式信息及所述第二格式信息判定所述第一视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,并通过所述三维播放模式播放所述第一视频文件;根据所述获取单元获取的所述第一格式信息及所述第二格式信息判定所述第一视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述第一视频文件。The playing unit is configured to: when the first video file is determined to be a three-dimensional video format according to the first format information and the second format information acquired by the acquiring unit, the playing mode of the playing device is switched to three-dimensional Playing the mode, and playing the first video file by using the three-dimensional playing mode; determining that the first video file is a two-dimensional video format according to the first format information and the second format information acquired by the acquiring unit The playback mode of the playback device is switched to a two-dimensional playback mode, and the first video file is played by the two-dimensional playback mode.
  3. 如权利要求2所述的播放设备,其特征在于,A playback device according to claim 2, wherein
    三维视频文件缓存单元,用于根据所述获取单元获取的所述第一格式信息及所述第二格式信息判定所述第一视频文件为三维视频格式时,存储所述第一视频文件;a three-dimensional video file buffering unit, configured to store the first video file when the first video file is determined to be a three-dimensional video format according to the first format information and the second format information acquired by the acquiring unit;
    二维视频文件缓存单元,用于根据所述获取单元获取的所述第一格式信息 及所述第二格式信息判定所述第一视频文件为二维视频格式时,存储所述第一视频文件。a two-dimensional video file buffer unit, configured to acquire the first format information according to the acquiring unit And when the second format information determines that the first video file is a two-dimensional video format, storing the first video file.
  4. 如权利要求1所述的播放设备,其特征在于,A playback device according to claim 1 wherein:
    存储单元,用于存储第二视频文件;a storage unit, configured to store a second video file;
    所述截图单元,用于根据所述存储单元所存储的所述第二视频文件获取至少一第三帧及一第四帧,所述第三帧及第四帧为所述第二视频文件中任意不相同两帧;The screenshot unit is configured to acquire at least one third frame and a fourth frame according to the second video file stored by the storage unit, where the third frame and the fourth frame are in the second video file. Any two frames that are different;
    所述信息处理单元,用于根据所述截图单元获取的所述第三帧进行图像比对处理获取第三比对信息,根据所述第四帧进行图像比对处理获取第四比对信息;The information processing unit is configured to perform third image matching processing according to the third frame acquired by the screenshot unit to obtain third comparison information, and perform image comparison processing according to the fourth frame to obtain fourth comparison information;
    所述获取单元,用于根据所述信息处理单元获取的所述第三比对信息分析获取第三格式信息,根据所述第四比对信息分析获取第四格式信息;The acquiring unit is configured to obtain third format information according to the third comparison information acquired by the information processing unit, and obtain fourth format information according to the fourth comparison information analysis;
    三维视频文件缓存单元,用于根据所述获取单元获取的所述第三格式信息及所述第四格式信息判定所述第二视频文件为三维视频格式时,存储所述第二视频文件;a three-dimensional video file buffering unit, configured to store the second video file when the second video file is determined to be a three-dimensional video format according to the third format information and the fourth format information acquired by the acquiring unit;
    二维视频文件缓存单元,用于根据所述获取单元获取的所述第三格式信息及所述第四格式信息判定所述第二视频文件为二维视频格式时,存储所述第二视频文件。a two-dimensional video file buffering unit, configured to store the second video file when the second video file is determined to be a two-dimensional video format according to the third format information and the fourth format information acquired by the acquiring unit .
  5. 如权利要求1至4任一项所述的播放设备,其特征在于,A playback device according to any one of claims 1 to 4, characterized in that
    所述信息处理单元通过左右分屏处理模式进行图像比对处理; The information processing unit performs image comparison processing by using a left and right split screen processing mode;
    根据比对左右分屏图像信息获取第一左右分屏相似度;Obtaining the first left and right split screen similarity according to comparing the left and right split screen image information;
    根据比对左右分屏对应局部图像信息获取第二左右分屏相似度;Obtaining a second left and right split screen similarity according to the partial image information corresponding to the left and right split screens;
    根据比对单侧屏不同区域图像信息获取第三左右分屏相似度。The third left and right split screen similarities are obtained according to the image information of different regions of the single side screen.
  6. 如权利要求1至4任一项所述的播放设备,其特征在于,A playback device according to any one of claims 1 to 4, characterized in that
    所述信息处理单元通过上下分屏处理模式进行图像比对处理;The information processing unit performs image comparison processing by using an upper and lower split screen processing mode;
    根据比对上下分屏图像信息获取第一上下分屏相似度;Obtaining the first upper and lower split screen similarity according to the upper and lower split screen image information;
    根据比对上下分屏对应局部图像信息获取第二上下分屏相似度;Obtaining a second upper and lower split screen similarity according to the partial image information corresponding to the upper and lower split screens;
    根据比对单侧屏不同区域图像信息获取第三上下分屏相似度。The third upper and lower split screen similarities are obtained according to the image information of the different areas of the single side screen.
  7. 一种播放方法,其特征在于,A playing method, characterized in that
    播放设备获取视频文件中至少一第一帧,所述第一帧为所述视频文件中任意一帧;The playback device acquires at least one first frame in the video file, where the first frame is any one of the video files;
    根据所述第一帧进行图像比对处理获取第一比对信息;Performing image comparison processing according to the first frame to obtain first comparison information;
    根据所述第一比对信息分析获取第一格式信息;Obtaining first format information according to the first comparison information analysis;
    根据所述第一格式信息判定所述视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,并通过所述三维播放模式播放所述视频文件;Determining, according to the first format information, that the video file is in a three-dimensional video format, the playing mode of the playing device is switched to a three-dimensional playing mode, and playing the video file by using the three-dimensional playing mode;
    根据所述第一格式信息判定所述视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述视频文件。 And determining, according to the first format information, that the video file is in a two-dimensional video format, the playing mode of the playing device is switched to a two-dimensional playing mode, and the video file is played by the two-dimensional playing mode.
  8. 如权利要求7所述的播放方法,其特征在于,The playing method according to claim 7, wherein
    所述播放设备存储第一视频文件;The playback device stores a first video file;
    获取所述第一视频文件中至少一第一帧,所述第一帧为所述第一视频文件中任意一帧;Obtaining at least one first frame in the first video file, where the first frame is any one of the first video files;
    根据所述第一帧进行图像比对处理获取第一比对信息;Performing image comparison processing according to the first frame to obtain first comparison information;
    根据所述第一比对信息分析获取第一格式信息;Obtaining first format information according to the first comparison information analysis;
    所述播放设备接收第一视频文件播放指令播放所述第一视频文件;The playing device receives the first video file playing instruction to play the first video file;
    获取所述第一视频文件中至少一第二帧,所述第二帧为所述第一视频文件中除所述第一帧以外任意一帧;Obtaining at least one second frame in the first video file, where the second frame is any frame in the first video file except the first frame;
    根据所述第二帧进行图像比对处理获取第二比对信息;Performing image comparison processing according to the second frame to obtain second comparison information;
    根据所述第二比对信息分析获取第二格式信息;Obtaining second format information according to the second comparison information analysis;
    根据所述第一格式信息及所述第二格式信息判定所述第一视频文件为三维视频格式时,所述播放设备的播放模式切换为三维播放模式,通过所述三维播放模式播放所述第一视频文件;And determining, according to the first format information and the second format information, that the first video file is in a three-dimensional video format, the playing mode of the playing device is switched to a three-dimensional playing mode, and the third playing mode is played by the three-dimensional playing mode. a video file;
    根据所述第一格式信息及所述第二格式信息判定所述第一视频文件为二维视频格式时,所述播放设备的播放模式切换为二维播放模式,并通过所述二维播放模式播放所述第一视频文件。Determining, according to the first format information and the second format information, that the first video file is in a two-dimensional video format, the playing mode of the playing device is switched to a two-dimensional playing mode, and the two-dimensional playing mode is adopted. Playing the first video file.
  9. 如权利要求8所述的播放方法,其特征在于,A playback method according to claim 8, wherein
    根据所述第一格式信息及所述第二格式信息判定所述第一视频文件为三维视频格式时,存储所述第一视频文件于三维视频文件缓存单元中; And determining, according to the first format information and the second format information, that the first video file is in a three-dimensional video format, storing the first video file in a three-dimensional video file cache unit;
    根据所述第一格式信息及所述第二格式信息判定所述第一视频文件为二维视频格式时,存储所述第一视频文件于二维视频文件缓存单元中。And determining, according to the first format information and the second format information, that the first video file is in a two-dimensional video format, and storing the first video file in a two-dimensional video file cache unit.
  10. 如权利要求7所述的播放方法,其特征在于,The playing method according to claim 7, wherein
    所述播放设备存储第二视频文件;The playback device stores a second video file;
    获取所述第二视频文件中至少一第三帧及一第四帧,所述第三帧及第四帧为所述第二视频文件中任意不相同两帧;Obtaining at least one third frame and a fourth frame in the second video file, where the third frame and the fourth frame are any two different frames in the second video file;
    根据所述第三帧进行图像比对处理获取第三比对信息,根据所述第四帧进行图像比对处理获取第四比对信息;And performing image comparison processing according to the third frame to obtain third comparison information, and performing image comparison processing according to the fourth frame to obtain fourth comparison information;
    根据所述第三比对信息分析获取第三格式信息,根据所述第四比对信息分析获取第四格式信息;Obtaining third format information according to the third comparison information analysis, and acquiring fourth format information according to the fourth comparison information analysis;
    根据所述第三格式信息及所述第四格式信息判定所述第二视频文件为三维视频格式时,存储所述第二视频文件于三维视频文件缓存单元中;And determining, according to the third format information and the fourth format information, that the second video file is in a three-dimensional video format, storing the second video file in a three-dimensional video file cache unit;
    根据所述第三格式信息及所述第四格式信息判定所述第二视频文件为二维视频格式时,存储所述第二视频文件于二维视频文件缓存单元中。And determining, according to the third format information and the fourth format information, that the second video file is in a two-dimensional video format, and storing the second video file in a two-dimensional video file buffer unit.
  11. 如权利要求7至10任一项所述的播放方法,其特征在于,A playing method according to any one of claims 7 to 10, characterized in that
    所述图像比对处理包括左右分屏处理模式;The image comparison processing includes a left and right split screen processing mode;
    根据比对左右分屏图像信息获取第一左右分屏相似度;Obtaining the first left and right split screen similarity according to comparing the left and right split screen image information;
    根据比对左右分屏对应局部图像信息获取第二左右分屏相似度;Obtaining a second left and right split screen similarity according to the partial image information corresponding to the left and right split screens;
    根据比对单侧屏不同区域图像信息获取第三左右分屏相似度。 The third left and right split screen similarities are obtained according to the image information of different regions of the single side screen.
  12. 如权利要求7至10任一项所述的播放方法,其特征在于,A playing method according to any one of claims 7 to 10, characterized in that
    所述图像比对处理包括上下分屏处理模式;The image comparison processing includes a top and bottom split screen processing mode;
    根据比对上下分屏图像信息获取第一上下分屏相似度;Obtaining the first upper and lower split screen similarity according to the upper and lower split screen image information;
    根据比对上下分屏对应局部图像信息获取第二上下分屏相似度;Obtaining a second upper and lower split screen similarity according to the partial image information corresponding to the upper and lower split screens;
    根据比对单侧屏不同区域图像信息获取第三上下分屏相似度。 The third upper and lower split screen similarities are obtained according to the image information of the different areas of the single side screen.
PCT/CN2016/099126 2016-09-14 2016-09-14 Playback device and playback method thereof WO2018049631A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/099126 WO2018049631A1 (en) 2016-09-14 2016-09-14 Playback device and playback method thereof
CN201680036068.2A CN108064448A (en) 2016-09-14 2016-09-14 A kind of playback equipment and its playback method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/099126 WO2018049631A1 (en) 2016-09-14 2016-09-14 Playback device and playback method thereof

Publications (1)

Publication Number Publication Date
WO2018049631A1 true WO2018049631A1 (en) 2018-03-22

Family

ID=61618628

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099126 WO2018049631A1 (en) 2016-09-14 2016-09-14 Playback device and playback method thereof

Country Status (2)

Country Link
CN (1) CN108064448A (en)
WO (1) WO2018049631A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980545A (en) * 2010-11-29 2011-02-23 深圳市九洲电器有限公司 Method for automatically detecting 3DTV video program format
CN102395037A (en) * 2011-06-30 2012-03-28 深圳超多维光电子有限公司 Format recognition method and device
CN102710953A (en) * 2012-05-08 2012-10-03 深圳Tcl新技术有限公司 Method and device for automatically identifying 3D (three-dimentional) video playing mode
CN102742283A (en) * 2010-02-09 2012-10-17 皇家飞利浦电子股份有限公司 3d video format detection
CN104767985A (en) * 2014-01-07 2015-07-08 冠捷投资有限公司 Method of using region distribution analysis to automatically detect 3D image format

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9414048B2 (en) * 2011-12-09 2016-08-09 Microsoft Technology Licensing, Llc Automatic 2D-to-stereoscopic video conversion
CN105306961B (en) * 2015-10-23 2018-11-20 无锡天脉聚源传媒科技有限公司 A kind of method and device for taking out frame
CN105657398A (en) * 2015-12-31 2016-06-08 北京小鸟看看科技有限公司 Multimedia resource play method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102742283A (en) * 2010-02-09 2012-10-17 皇家飞利浦电子股份有限公司 3d video format detection
CN101980545A (en) * 2010-11-29 2011-02-23 深圳市九洲电器有限公司 Method for automatically detecting 3DTV video program format
CN102395037A (en) * 2011-06-30 2012-03-28 深圳超多维光电子有限公司 Format recognition method and device
CN102710953A (en) * 2012-05-08 2012-10-03 深圳Tcl新技术有限公司 Method and device for automatically identifying 3D (three-dimentional) video playing mode
CN104767985A (en) * 2014-01-07 2015-07-08 冠捷投资有限公司 Method of using region distribution analysis to automatically detect 3D image format

Also Published As

Publication number Publication date
CN108064448A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
US10506213B2 (en) Method and apparatus for calibrating image
WO2019109643A1 (en) Video recommendation method and apparatus, and computer device and storage medium
CN101552890B (en) Information processing apparatus, information processing method
US9525821B2 (en) Video stabilization
WO2017211250A1 (en) Image overlay display method and system
WO2017181599A1 (en) Method and device for displaying videos
US20130169760A1 (en) Image Enhancement Methods And Systems
EP2960905A1 (en) Method and device of displaying a neutral facial expression in a paused video
US10244163B2 (en) Image processing apparatus that generates a virtual viewpoint image, image generation method, and non-transitory computer-readable storage medium
NO340415B1 (en) Device and program for generating stereographic image display
US20120013604A1 (en) Display apparatus and method for setting sense of depth thereof
US20120105601A1 (en) Apparatus and method for creating three-dimensional panoramic image by using single camera
WO2017197882A1 (en) Video playing method and device
US8934664B2 (en) System and method of estimating page position
US9392190B2 (en) Method and device for acquiring image
US20190266802A1 (en) Display of Visual Data with a Virtual Reality Headset
US20200349355A1 (en) Method for determining representative image of video, and electronic apparatus for processing the method
US8866970B1 (en) Method for real-time processing of a video sequence on mobile terminals
TW201724864A (en) Method, apparatus and arrangement for summarizing and browsing video content
US11095695B2 (en) Teleconference transmission
WO2018049631A1 (en) Playback device and playback method thereof
CN107491934B (en) 3D interview system based on virtual reality
CN113191210B (en) Image processing method, device and equipment
US10474743B2 (en) Method for presenting notifications when annotations are received from a remote device
US9025930B2 (en) Chapter information creation apparatus and control method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16916016

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 16/08/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16916016

Country of ref document: EP

Kind code of ref document: A1