WO2015070373A1 - Method and apparatus for converting multimedia content direction and terminal device - Google Patents

Method and apparatus for converting multimedia content direction and terminal device Download PDF

Info

Publication number
WO2015070373A1
WO2015070373A1 PCT/CN2013/086944 CN2013086944W WO2015070373A1 WO 2015070373 A1 WO2015070373 A1 WO 2015070373A1 CN 2013086944 W CN2013086944 W CN 2013086944W WO 2015070373 A1 WO2015070373 A1 WO 2015070373A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia content
rotation
angle
reference direction
rotation angle
Prior art date
Application number
PCT/CN2013/086944
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/CN2013/086944 priority Critical patent/WO2015070373A1/en
Publication of WO2015070373A1 publication Critical patent/WO2015070373A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Definitions

  • the present invention relates to the field of image processing, and in particular, to a multimedia content direction conversion method, apparatus, and terminal device. Background technique
  • Embodiments of the present invention provide a multimedia content direction conversion method and apparatus, and a terminal device, which can automatically obtain multimedia content according to a specified reference direction at the time of shooting.
  • a first aspect of the present invention provides a multimedia content direction conversion method, including:
  • the offset angle includes: any angle between 0 degrees and 360 degrees;
  • the detecting an offset angle of the current shooting direction from the reference direction, and buffering the captured multimedia content including: detecting by the gravity sensing sensor The current shooting direction is offset from the reference direction; the captured multimedia content is cached.
  • the calculating a rotation angle according to the offset angle, and based on the - - Rotate the angle and the reference direction to rotate the captured multimedia content including:
  • the captured multimedia content is rotated by matrix conversion based on the rotation angle and the reference direction.
  • the calculating a rotation angle according to the offset angle, and based on the rotation The angle and the reference direction rotate the captured multimedia content including:
  • the built-in image processing application for performing graphics rotation is called to rotate the captured multimedia content.
  • the saving the multimedia content obtained after the rotation processing comprises:
  • the rotation identifier includes: a rotation angle and a reference direction;
  • the multimedia content carrying the rotation logo after the rotation processing is saved.
  • the method further includes: transmitting, by the rotating processing, the multimedia content carrying the rotation identifier to the peer device, so that the peer end The device performs display processing.
  • a second aspect of the present invention provides another multimedia content direction conversion method, including:
  • Detecting whether the received multimedia content includes a rotation identifier comprises: a rotation angle and a reference direction;
  • the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
  • the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content, including:
  • the multimedia content received after processing is displayed.
  • a third aspect of the invention provides a computer storage medium, the computer storage medium storing a program, the program comprising the steps of the first aspect and the second aspect as claimed in the claims.
  • a fourth aspect of the present invention provides a multimedia content direction conversion apparatus
  • a detection module configured to detect an offset angle of the current shooting direction from the reference direction, and buffer the captured multimedia content, where the offset angle includes: any angle between 0 degrees and 360 degrees; Calculating a rotation angle according to the offset angle, and rotating the cached multimedia content based on the rotation angle and the reference direction;
  • the storage module is configured to save the multimedia content obtained after the rotation processing.
  • the detecting module includes:
  • a detecting unit configured to detect, by the gravity sensing sensor, an offset angle of the current shooting direction from the reference direction
  • a cache unit configured to cache the captured multimedia content.
  • the processing module includes:
  • a first calculating unit configured to obtain a rotation angle by subtracting an offset angle by 360 degrees
  • a first execution unit configured to rotate the captured multimedia content by matrix transformation based on the rotation angle and the reference direction.
  • the processing module includes:
  • a second calculating unit configured to obtain a rotation angle by subtracting an offset angle by 360 degrees
  • a second execution unit configured to invoke the built-in image processing application for performing graphics rotation to rotate the captured multimedia content based on the rotation angle and the reference direction.
  • the storage module includes:
  • a first storage unit configured to carry a rotation identifier in the multimedia content obtained by the rotation processing, where the rotation identifier comprises: a rotation angle and a reference direction;
  • the second storage unit is configured to save the multimedia content carrying the rotation identifier after the rotation processing.
  • the method further includes: a sending module, configured to send, by the rotating processing, the multimedia content that carries the rotation identifier to the peer device, The peer device is caused to perform display processing.
  • a fifth aspect of the present invention provides another multimedia content direction conversion apparatus, including:
  • a receiving module configured to receive multimedia content
  • control module configured to detect whether the received multimedia content includes a rotation identifier, where the rotation identifier comprises: a rotation angle and a reference direction;
  • a display module configured to display, by the peer device, the received multimedia content according to the rotation identifier to display the received multimedia content, if the rotation identifier is included.
  • the display module includes:
  • a processing unit configured to perform rotation processing on the received multimedia content according to a rotation angle and a reference direction in the rotation identifier
  • a display unit configured to display the received multimedia content.
  • a sixth aspect of the present invention provides a terminal device, including a camera device, a processor, and a memory, where the processor is configured to:
  • the terminal device further - - including a gravity sensing sensor, the detected offset angle of the current shooting direction from the reference direction is saved, and the captured multimedia content is saved, specifically for:
  • the gravity sensing sensor detects an angle of the current shooting direction from the reference direction, and the control memory saves the captured multimedia content.
  • the calculating a rotation angle according to the offset angle, and based on the rotation The angle and the reference direction are rotated by the captured multimedia content, specifically for: 360 degrees minus the offset angle to obtain a rotation angle;
  • the captured multimedia content is rotated by matrix conversion based on the rotation angle and the reference direction.
  • the built-in image processing application for performing graphics rotation is called to rotate the captured multimedia content.
  • controlling the memory to save the multimedia content obtained after the rotation processing is specifically used to:
  • the rotation identifier includes: a rotation angle and a reference direction;
  • the multimedia content carrying the rotation logo after the rotation processing is saved.
  • the processor is further configured to: send the rotated processed multimedia content that carries the rotation identifier to the peer device, The peer device is caused to perform display processing.
  • a seventh aspect of the present invention provides another terminal device, including a display device and a processor, where - - The processor is used to:
  • the rotation identifier includes: a rotation angle and a reference direction
  • the peer device controls the display device to display the rotation correspondingly according to the rotation identifier Multimedia content and/or multimedia content of the shooting direction.
  • the display device includes:
  • the multimedia content obtained after the processing is displayed.
  • the multimedia content direction conversion method of the embodiment of the present invention can automatically recognize and adjust the direction of the captured multimedia content during shooting, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user. Convenience, convenient for users to shoot and process multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is simple, and it is not easy to cause misoperation, thereby saving the software and hardware resources of the terminal.
  • FIG. 1 is a schematic flowchart of a method for converting a multimedia content direction according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for converting a multimedia content direction according to a second embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for converting a multimedia content direction according to a third embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for converting a multimedia content direction according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a fifth embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a sixth embodiment of the present invention
  • 8 is a schematic structural diagram of a multimedia content direction conversion apparatus according to an eighth embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a terminal apparatus according to a ninth embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal device according to a tenth embodiment of the present invention. detailed description
  • the multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
  • the mobile terminal detects an offset angle of the current shooting direction from the reference direction, and caches the multimedia content obtained by the shooting.
  • the reference direction is a preset direction
  • the offset angle may be any angle between 0 degrees and 360 degrees.
  • the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
  • the mobile terminal calculates a rotation angle according to the offset angle, and performs rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
  • the direction of rotation in the reference direction is the direction of rotation.
  • the mobile terminal saves the multimedia content obtained by performing the rotation processing.
  • the mobile terminal carries a rotation identifier in the multimedia content obtained after the rotation processing, where the rotation identifier is used to restore the multimedia content obtained by the rotation processing to the multimedia content in the shooting direction, and the rotation identifier includes: a rotation angle and a reference direction.
  • the mobile terminal includes: a mobile electronic device with a camera such as a mobile phone, a PDA, a tablet computer, or the like.
  • the multimedia content direction conversion method of the embodiment of the present invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user. Conveniently, it provides convenience for users to shoot and process multimedia content.
  • the operation program is simple, and it is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • the multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
  • the mobile terminal detects an offset angle of the current shooting direction from the reference direction, and saves the captured multimedia content.
  • the reference direction is a preset direction
  • the offset angle may be any angle between 0 degrees and 360 degrees.
  • the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
  • the mobile terminal calculates a rotation angle according to the offset angle.
  • the direction of rotation in the reference direction is the direction of rotation.
  • the mobile terminal rotates the cached multimedia content by a matrix transformation manner or by calling a built-in image processing application for performing graphics rotation based on the rotation angle and the reference direction.
  • the rotation processing may be implemented by performing an operation on a matrix representing the graphics coordinates, where the operation includes a point multiplication operation, that is, the transformed vertex coordinate matrix is obtained by multiplying the transformation matrix by the graphic vertex coordinate matrix of the original multimedia content.
  • the cached multimedia content is rotated.
  • the rotation process can also be implemented by calling the built-in image processing application for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe Photoshop, etc. Perform a rotation process.
  • the mobile terminal saves the multimedia content obtained by performing the rotation process.
  • the mobile terminal carries the rotation identifier in the multimedia content obtained after the rotation processing, - the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the multimedia content in the shooting direction, and the rotation identifier comprises: a rotation angle and a reference direction.
  • the mobile terminal includes: a mobile electronic device with a camera such as a mobile phone, a PDA, or a tablet computer.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • FIG. 3 is a schematic flowchart of a method for converting a multimedia content direction according to a third embodiment of the present invention.
  • the multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
  • the mobile terminal detects an offset angle of the current shooting direction from the reference direction, and caches the multimedia content obtained by the shooting.
  • the reference direction is a preset direction
  • the offset angle may be any angle between 0 degrees and 360 degrees.
  • the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
  • the mobile terminal calculates a rotation angle according to the offset angle, and performs rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
  • the direction of rotation in the reference direction is the direction of rotation.
  • the rotation processing may be implemented by performing an operation on a matrix representing graphics coordinates, where the operation includes a dot multiplication operation of the matrix, that is, using the original vertex coordinate matrix of the multimedia content to multiply the transformation matrix to obtain the transformed graphics.
  • the vertex coordinate matrix is used to rotate the captured multimedia content.
  • Rotation processing can also be achieved by calling the built-in image processing application for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe Photoshop, and other applications to rotate the cached multimedia content. - -
  • the mobile terminal saves the multimedia content obtained by performing the rotation processing.
  • the mobile terminal carries a rotation identifier in the multimedia content obtained after the rotation processing, where the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the captured multimedia content, where the rotation identifier includes: a rotation angle and a reference direction.
  • the mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, so that the peer device performs display processing.
  • the mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, and the peer device can restore the rotated multimedia content to the multimedia content at the time of shooting according to the rotation identifier. It is also possible to directly display the multimedia content obtained after the rotation processing.
  • the mobile terminal includes: a mobile electronic device with a camera such as a mobile phone, a PDA, or a tablet computer.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • the multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
  • the peer device receives the multimedia content.
  • the peer device receives the multimedia content sent by the mobile terminal, and the peer device according to the embodiment of the present invention includes: an electronic device having a display device, such as a computer or a tablet computer.
  • the peer device detects whether the received multimedia content includes a rotation identifier.
  • the rotation identifier is used to restore the received multimedia content to the captured multimedia content, and the rotation identifier includes: a rotation angle and a reference direction.
  • the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
  • the peer device detects that the received multimedia content includes a rotation identifier, the received multimedia content may be restored to the multimedia content in the shooting direction according to the rotation identifier, or the received multimedia content may be directly displayed.
  • the peer device includes: an electronic device having a display device such as a computer or a tablet computer.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • the embodiment of the present invention provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the multimedia content direction conversion method described in the method embodiments of FIG. 1 to FIG. step.
  • FIGS. 5 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a fifth embodiment of the present invention.
  • the apparatus 1 can be used in a mobile terminal, where the apparatus 1 includes: a detection module 10, a processing module 11, and a storage module 12, where
  • the detecting module 10 is configured to detect an offset angle of the current shooting direction from the reference direction, and buffer the captured multimedia content.
  • the reference direction is a preset direction
  • the offset angle may be any angle between 0 degrees and 360 degrees.
  • the offset angle of the current photographing direction from the reference direction is detected by the gravity sensing sensor.
  • the processing module 11 is configured to calculate a rotation angle according to the offset angle, and perform rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
  • the storage module 12 is configured to save the multimedia content obtained after the rotation processing.
  • rotation logo includes: rotation angle and base - - Quasi-direction.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • FIG. 6 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a sixth embodiment of the present invention, and the apparatus shown in FIG. 6 is optimized by the apparatus 1 shown in FIG. 5, and the apparatus shown in FIG.
  • the processing module 11 includes: a first computing unit 111, a first executing unit 112, a second computing unit 113, and a second executing unit 114.
  • the storage module 12 includes: a first storage unit 121 The second storage unit 122, wherein
  • the first calculating unit 111 obtains the rotation angle by subtracting the offset angle by 360 degrees.
  • the first executing unit 112 is configured to perform, by using a matrix transformation manner, the cached multimedia content to be rotated according to the rotation angle and the reference direction.
  • the rotation processing can be realized by computing a matrix representing the coordinate of the graphic, that is, by multiplying the transformation matrix by the graphic vertex coordinate matrix of the original multimedia content to obtain the transformed graphic vertex coordinate matrix, thereby realizing the multimedia content obtained by the buffering. Perform a rotation process.
  • the second calculating unit 113 obtains a rotation angle by subtracting the offset angle by 360 degrees;
  • the second executing unit 114 is configured to invoke the built-in image processing application for performing graphics rotation to rotate the cached multimedia content based on the rotation angle and the reference direction.
  • the rotation process can also be implemented by calling the built-in image processing for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe.
  • the storage module 12 includes: a first storage unit 121 and a second storage unit 122, wherein the first storage unit 121 is configured to carry a rotation identifier in the multimedia content obtained by the rotation processing. Specifically, the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the captured multimedia content, where the rotation identifier comprises: a rotation angle and a reference direction.
  • the second storage unit 122 is configured to save the multimedia content carrying the rotation identifier after the rotation processing.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • FIG. 7 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a seventh embodiment of the present invention.
  • the apparatus shown in FIG. 7 is optimized by the apparatus 1 shown in FIG. 6, and the apparatus shown in FIG.
  • the transmission module 13 is further included, wherein
  • the sending module 13 is configured to send the rotated multimedia content that carries the rotation identifier to the peer device, so that the peer device performs display processing.
  • the mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, and the peer device can restore the rotated multimedia content to the multimedia content in the shooting direction according to the rotation identifier. It is also possible to directly display the multimedia inner valley obtained after the rotation processing.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • FIG. 8 is a schematic structural diagram of a multimedia content direction conversion apparatus according to an eighth embodiment of the present invention.
  • the device 2 can be used for an electronic device having a display device, such as a computer or a tablet computer, and the device 2 includes: a receiving module 21 and a control module 22 Display module 23, wherein
  • the receiving module 21 is configured to receive multimedia content.
  • the control module 22 is configured to detect whether the received multimedia content includes a rotation identifier.
  • the rotation identifier is used to restore the received multimedia content to a multimedia direction of a shooting direction.
  • rotation logo includes: rotation angle and reference direction.
  • the display module 23 is configured to: if the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
  • the display module 23 further includes:
  • the processing unit 231 is configured to perform rotation processing on the received multimedia content according to the rotation angle and the reference direction in the rotation identifier.
  • the display unit 232 is configured to display the received multimedia content.
  • the peer device detects that the received multimedia content includes a rotation identifier
  • the received multimedia content may be restored to a multimedia content in a shooting direction according to the rotation identifier, or the received multimedia content may be directly displayed.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • the terminal device 3 includes: an image capturing device 31, a processor 32, and a memory 33, wherein the processor 32 is configured to:
  • Controlling detecting an offset angle of a current shooting direction of the camera device 31 from a reference direction, and controlling the memory 33 to buffer the captured multimedia content, wherein the offset angle includes: any angle between 0 degrees and 360 degrees Calculating a rotation angle according to the offset angle, and rotating the cached multimedia content based on the rotation angle and the reference direction, and controlling the memory to save the multimedia content obtained after the rotation processing.
  • the terminal device 3 further includes a gravity sensing sensor for: detecting, by the gravity sensing sensor, an angle of the current shooting direction from the reference direction.
  • the cached multimedia content is rotated by matrix transformation based on the rotation angle and the reference direction. - the calculating the rotation angle according to the offset angle, and performing the rotation processing on the cached multimedia content based on the rotation angle and the reference direction, specifically including:
  • the built-in image processing application for performing graphics rotation is invoked to rotate the cached multimedia content.
  • the controlling the memory to save the multimedia content obtained after the rotation processing comprises: carrying the rotation identifier in the multimedia content obtained by the rotating processing, where the rotation identifier comprises: a rotation angle and a reference direction;
  • the multimedia content carrying the rotation logo after the rotation processing is saved.
  • the processor 32 is further configured to: send the rotated multimedia content carrying the rotation identifier to the peer device, so that the peer device performs display processing.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content.
  • the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • the terminal device 4 includes: a display device 41 and a processor 42.
  • the processor 42 is configured to:
  • the display device 41 is configured to: perform rotation processing on the received multimedia content according to a rotation angle and a reference direction in the rotation identifier;
  • the multimedia content obtained after the processing is displayed.
  • the multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
  • aspects of the present invention, or possible implementations of various aspects can be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
  • the processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step or combination of steps in the flowchart; A device that functions as specified in each block, or combination of blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's local computer and partly on the remote computer, or entirely on the remote computer or server. carried out. It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks shown in succession may be executed substantially concurrently, or the blocks may sometimes be performed in the reverse order, depending on the functionality involved. The spirit and scope of the Ming. Thus, it is intended that the present invention cover the modifications and variations of the inventions

Abstract

Disclosed are a method and apparatus for converting a multimedia content direction and a terminal device. The method comprises: detecting an offset angle of a current photographing direction deviating from a reference direction; saving the multimedia content obtained by photographing, wherein the offset angle comprises any angle of 0 degrees to 360 degrees; calculating to obtain a rotation angle according to the offset angle; and performing rotation processing on the multimedia content obtained by photographing on the basis of the rotation angle and the reference direction, and saving the multimedia content obtained after rotation processing. The method for converting a multimedia content direction in the embodiments of the present invention can automatically identify and adjust the direction of the multimedia content obtained by photographing so as to enable the direction of the processed multimedia content to be a front viewing angle always. The method is simple and convenient, and enables a user to photograph and process multimedia content, avoiding modifying the direction of the multimedia content manually through image processing software when the user exports the obtained multimedia content to a terminal for viewing.

Description

一 一 一种多媒体内容方向转换方法、 装置以及终端设备 技术领域  Method, device and terminal device for converting multimedia content direction
本发明涉及图像处理领域, 尤其涉及一种多媒体内容方向转换方法、装置 以及终端设备。 背景技术  The present invention relates to the field of image processing, and in particular, to a multimedia content direction conversion method, apparatus, and terminal device. Background technique
随着智能终端产业的飞速发展,智能终端已经成为人们生活中必不可少的 部分,在使用智能终端拍摄或者照相的过程中, 经常由于拍摄或者照相的方向 偏离基准方向,使得到的多媒体内容不是正常视角,在将多媒体内容导出到其 它的终端进行播放的时候,还需要进一步通过一些图像处理软件将其更改为正 常视角, 操作程序复杂, 容易产生误操作, 且浪费终端的软硬件资源。 发明内容  With the rapid development of the smart terminal industry, smart terminals have become an indispensable part of people's lives. In the process of shooting or taking pictures with smart terminals, often the multimedia content is not due to the direction of shooting or photography deviating from the reference direction. From the normal perspective, when the multimedia content is exported to other terminals for playback, it is further changed to a normal viewing angle by some image processing software, the operation procedure is complicated, the misoperation is easy, and the hardware and software resources of the terminal are wasted. Summary of the invention
本发明实施例提供一种多媒体内容方向转换方法、装置以及终端设备, 该 方法可在拍摄时自动地根据指定的基准方向得到的多媒体内容。  Embodiments of the present invention provide a multimedia content direction conversion method and apparatus, and a terminal device, which can automatically obtain multimedia content according to a specified reference direction at the time of shooting.
本发明第一方面提供了一种多媒体内容方向转换方法, 包括:  A first aspect of the present invention provides a multimedia content direction conversion method, including:
检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍摄得到的多媒体 内容, 所述偏移角度包括: 0度至 360度之间的任一角度;  Detecting an offset angle of the current shooting direction from the reference direction, and buffering the captured multimedia content, the offset angle includes: any angle between 0 degrees and 360 degrees;
根据所述偏移角度计算得到旋转角度,并基于所述旋转角度和基准方向将 所述緩存得到的多媒体内容进行旋转处理;  Calculating a rotation angle according to the offset angle, and performing rotation processing on the cached multimedia content based on the rotation angle and the reference direction;
保存进行旋转处理后得到的多媒体内容。  Save the multimedia content obtained after the rotation process.
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述检测到当前 的拍摄方向偏离基准方向的偏移角度, 緩存拍摄得到的多媒体内容, 包括; 通过重力感应传感器检测到当前的拍摄方向偏离基准方向的偏移角度; 緩存所述拍摄得到的多媒体内容。  With reference to the first aspect, in a first possible implementation manner of the first aspect, the detecting an offset angle of the current shooting direction from the reference direction, and buffering the captured multimedia content, including: detecting by the gravity sensing sensor The current shooting direction is offset from the reference direction; the captured multimedia content is cached.
结合第一方面,及第一方面的第一种可能的实现方式,在第一方面的第二 中可能的实施方式中, 所述根据所述偏移角度计算得到旋转角度, 并基于所述 - - 旋转角度和基准方向将所述拍摄得到的多媒体内容进行旋转处理, 包括: With reference to the first aspect, and the first possible implementation manner of the first aspect, in a second possible implementation of the first aspect, the calculating a rotation angle according to the offset angle, and based on the - - Rotate the angle and the reference direction to rotate the captured multimedia content, including:
360度减去偏移角度得到旋转角度;  360 degrees minus the offset angle to get the rotation angle;
基于所述旋转角度和基准方向,通过矩阵变换的方式将所述拍摄得到的多 媒体内容进行旋转处理。  The captured multimedia content is rotated by matrix conversion based on the rotation angle and the reference direction.
结合第一方面,及第一方面的第一种可能的实现方式,在第一方面的第三 中可能的实施方式中, 所述根据所述偏移角度计算得到旋转角度, 并基于所述 旋转角度和基准方向将所述拍摄得到的多媒体内容进行旋转处理, 包括:  With reference to the first aspect, and the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the calculating a rotation angle according to the offset angle, and based on the rotation The angle and the reference direction rotate the captured multimedia content, including:
360度减去偏移角度得到旋转角度;  360 degrees minus the offset angle to get the rotation angle;
基于所述旋转角度和基准方向,调用内置的用于进行图形旋转的图像处理 应用将所述拍摄得到的多媒体内容进行旋转处理。  Based on the rotation angle and the reference direction, the built-in image processing application for performing graphics rotation is called to rotate the captured multimedia content.
结合第一方面, 或者第一方面的第一种可能的实现方式, 或者第一方面的 第二中可能的实施方式, 或者第一方面的第三中可能的实施方式,在第一方面 的第四种可能的实施方式中, 所述保存进行旋转处理后得到的多媒体内容, 包 括:  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in the first aspect In the four possible implementation manners, the saving the multimedia content obtained after the rotation processing comprises:
在所述进行旋转处理得到的多媒体内容中携带旋转标识,所述旋转标识包 括: 旋转角度和基准方向;  Carrying a rotation identifier in the multimedia content obtained by the rotation processing, the rotation identifier includes: a rotation angle and a reference direction;
保存进行旋转处理后的携带有旋转标识的多媒体内容。  The multimedia content carrying the rotation logo after the rotation processing is saved.
结合第一方面, 或者第一方面的第一种可能的实现方式, 或者第一方面的 第二中可能的实施方式, 或者第一方面的第三中可能的实施方式, 或者第一方 面的第四种可能的实施方式,在第一方面的第五种可能的实施方式中,还包括: 将所述旋转处理后的携带有旋转标识的多媒体内容发送给对端设备,以使 所述对端设备进行显示处理。  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the first aspect In a fourth possible implementation manner of the first aspect, the method further includes: transmitting, by the rotating processing, the multimedia content carrying the rotation identifier to the peer device, so that the peer end The device performs display processing.
本发明第二方面提供了另一种多媒体内容方向转换方法, 包括:  A second aspect of the present invention provides another multimedia content direction conversion method, including:
接收多媒体内容;  Receiving multimedia content;
检测接收到的所述多媒体内容是否包括旋转标识, 所述旋转标识包括: 旋 转角度和基准方向;  Detecting whether the received multimedia content includes a rotation identifier, where the rotation identifier comprises: a rotation angle and a reference direction;
若包括所述旋转标识,对端设备根据所述旋转标识对接收到的所述多媒体 内容进行显示处理, 以显示接收到的所述多媒体内容。  If the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
结合第二方面,在第二方面的第一种可能的实现方式中, 所述若包括所述 - - 旋转标识,对端设备根据所述旋转标识对接收到的所述多媒体内容进行显示处 理, 以显示接收到的所述多媒体内容, 包括: With reference to the second aspect, in a first possible implementation manner of the second aspect, - rotating the identifier, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content, including:
根据旋转标识中的旋转角度和基准方向对接收到的所述多媒体内容进行 旋转处理;  Rotating the received multimedia content according to a rotation angle and a reference direction in the rotation identifier;
显示处理后接收到的所述多媒体内容。  The multimedia content received after processing is displayed.
本发明第三方面提供了一种计算机存储介质,所述计算机存储介质可存储 有程序, 该程序执行时包括如权利要求上述第一方面及第二方面的步骤。  A third aspect of the invention provides a computer storage medium, the computer storage medium storing a program, the program comprising the steps of the first aspect and the second aspect as claimed in the claims.
本发明第四方面提供了一种多媒体内容方向转换装置,  A fourth aspect of the present invention provides a multimedia content direction conversion apparatus,
检测模块, 用于检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍 摄得到的多媒体内容, 所述偏移角度包括: 0度至 360度之间的任一角度; 处理模块, 用于根据所述偏移角度计算得到旋转角度, 并基于所述旋转角 度和基准方向将所述緩存得到的多媒体内容进行旋转处理;  a detection module, configured to detect an offset angle of the current shooting direction from the reference direction, and buffer the captured multimedia content, where the offset angle includes: any angle between 0 degrees and 360 degrees; Calculating a rotation angle according to the offset angle, and rotating the cached multimedia content based on the rotation angle and the reference direction;
存储模块, 用于保存进行旋转处理后得到的多媒体内容。  The storage module is configured to save the multimedia content obtained after the rotation processing.
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述检测模块, 包括;  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the detecting module includes:
检测单元,用于通过重力感应传感器检测到当前的拍摄方向偏离基准方向 的偏移角度;  a detecting unit, configured to detect, by the gravity sensing sensor, an offset angle of the current shooting direction from the reference direction;
緩存单元, 用于緩存所述拍摄得到的多媒体内容。  a cache unit, configured to cache the captured multimedia content.
结合第四方面,及第四方面的第一种可能的实现方式,在第四方面的第二 中可能的实施方式中, 所述处理模块, 包括:  With reference to the fourth aspect, and the first possible implementation manner of the fourth aspect, in the second possible implementation manner of the fourth aspect, the processing module includes:
第一计算单元, 用于利用 360度减去偏移角度得到旋转角度;  a first calculating unit, configured to obtain a rotation angle by subtracting an offset angle by 360 degrees;
第一执行单元, 用于基于所述旋转角度和基准方向,通过矩阵变换的方式 将所述拍摄得到的多媒体内容进行旋转处理。  And a first execution unit, configured to rotate the captured multimedia content by matrix transformation based on the rotation angle and the reference direction.
结合第四方面,及第四方面的第一种可能的实现方式,在第四方面的第三 中可能的实施方式中, 所述处理模块, 包括:  With reference to the fourth aspect, and the first possible implementation manner of the fourth aspect, in the third possible implementation manner of the fourth aspect, the processing module includes:
第二计算单元, 用于利用 360度减去偏移角度得到旋转角度;  a second calculating unit, configured to obtain a rotation angle by subtracting an offset angle by 360 degrees;
第二执行单元, 用于基于所述旋转角度和基准方向,调用内置的用于进行 图形旋转的图像处理应用将所述拍摄得到的多媒体内容进行旋转处理。  And a second execution unit, configured to invoke the built-in image processing application for performing graphics rotation to rotate the captured multimedia content based on the rotation angle and the reference direction.
结合第四方面, 或者第四方面的第一种可能的实现方式, 或者第四方面的 - - 第二中可能的实施方式, 或者第四方面的第三中可能的实施方式,在第四方面 的第四种可能的实施方式中,, 所述存储模块, 包括: In combination with the fourth aspect, or the first possible implementation of the fourth aspect, or the fourth aspect The second possible implementation manner, or the third possible implementation manner of the fourth aspect, in the fourth possible implementation manner of the fourth aspect, the the storage module includes:
第一存储单元,用于在所述进行旋转处理得到的多媒体内容中携带旋转标 识, 所述旋转标识包括: 旋转角度和基准方向;  a first storage unit, configured to carry a rotation identifier in the multimedia content obtained by the rotation processing, where the rotation identifier comprises: a rotation angle and a reference direction;
第二存储单元,用于保存进行旋转处理后的携带有旋转标识的多媒体内容。 结合第四方面, 或者第四方面的第一种可能的实现方式, 或者第四方面的 第二中可能的实施方式, 或者第四方面的第三中可能的实施方式, 或者第四方 面的第四种可能的实施方式,在第四方面的第五种可能的实施方式中,还包括: 发送模块,用于将所述旋转处理后的携带有旋转标识的多媒体内容发送给 对端设备, 以使所述对端设备进行显示处理。  The second storage unit is configured to save the multimedia content carrying the rotation identifier after the rotation processing. With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, or the fourth aspect In a fourth possible implementation manner of the fourth aspect, the method further includes: a sending module, configured to send, by the rotating processing, the multimedia content that carries the rotation identifier to the peer device, The peer device is caused to perform display processing.
本发明第五方面提供了另一种多媒体内容方向转换装置, 包括:  A fifth aspect of the present invention provides another multimedia content direction conversion apparatus, including:
接收模块, 用于接收多媒体内容;  a receiving module, configured to receive multimedia content;
控制模块, 用于检测接收到的所述多媒体内容是否包括旋转标识, 所述旋 转标识包括: 旋转角度和基准方向;  a control module, configured to detect whether the received multimedia content includes a rotation identifier, where the rotation identifier comprises: a rotation angle and a reference direction;
显示模块, 用于若包括所述旋转标识,对端设备根据所述旋转标识对接收 到的所述多媒体内容进行显示处理, 以显示接收到的所述多媒体内容。  a display module, configured to display, by the peer device, the received multimedia content according to the rotation identifier to display the received multimedia content, if the rotation identifier is included.
结合第五方面, 在第五方面的第一种可能的实现方式中, 所述显示模块, 包括:  With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the display module includes:
处理单元,用于根据旋转标识中的旋转角度和基准方向对接收到的所述多 媒体内容进行旋转处理;  a processing unit, configured to perform rotation processing on the received multimedia content according to a rotation angle and a reference direction in the rotation identifier;
显示单元, 用于显示接收到的所述多媒体内容。  a display unit, configured to display the received multimedia content.
本发明第六方面提供了一种终端设备,包括摄像装置、处理器以及存储器, 其中, 所述处理器用于:  A sixth aspect of the present invention provides a terminal device, including a camera device, a processor, and a memory, where the processor is configured to:
控制检测所述摄像装置当前的拍摄方向偏离基准方向的偏移角度,并控制 所述存储器保存拍摄得到的多媒体内容, 所述偏移角度包括: 0度至 360度之 间的任一角度,根据所述偏移角度计算得到旋转角度, 并基于所述旋转角度和 基准方向将所述拍摄得到的多媒体内容进行旋转处理,控制所述存储器保存进 行旋转处理后得到的多媒体内容。  Controlling to detect an offset angle of the current shooting direction of the camera device from the reference direction, and controlling the memory to save the captured multimedia content, where the offset angle includes: any angle between 0 degrees and 360 degrees, according to The offset angle is calculated to obtain a rotation angle, and the captured multimedia content is rotated based on the rotation angle and the reference direction, and the memory is controlled to save the multimedia content obtained after the rotation processing.
结合第六方面,在第六方面的第一种可能的实现方式中, 所述终端设备还 - - 包括重力感应传感器, 所述检测到当前的拍摄方向偏离基准方向的偏移角度, 保存拍摄得到的多媒体内容, 具体用于: With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the terminal device further - - including a gravity sensing sensor, the detected offset angle of the current shooting direction from the reference direction is saved, and the captured multimedia content is saved, specifically for:
通过所述重力感应传感器检测到当前的拍摄方向偏离基准方向的角度,控 制存储器保存所述拍摄得到的多媒体内容。  The gravity sensing sensor detects an angle of the current shooting direction from the reference direction, and the control memory saves the captured multimedia content.
结合第六方面,及第六方面的第一种可能的实现方式,在第六方面的第二 中可能的实施方式中, 所述根据所述偏移角度计算得到旋转角度, 并基于所述 旋转角度和基准方向将所述拍摄得到的多媒体内容进行旋转处理, 具体用于: 360度减去偏移角度得到旋转角度;  With reference to the sixth aspect, and the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the calculating a rotation angle according to the offset angle, and based on the rotation The angle and the reference direction are rotated by the captured multimedia content, specifically for: 360 degrees minus the offset angle to obtain a rotation angle;
基于所述旋转角度和基准方向,通过矩阵变换的方式将所述拍摄得到的多 媒体内容进行旋转处理。  The captured multimedia content is rotated by matrix conversion based on the rotation angle and the reference direction.
结合第六方面,及第六方面的第一种可能的实现方式,在第六方面的第三 中可能的实施方式中, 所述根据所述偏移角度计算得到旋转角度, 并基于所述 旋转角度和基准方向将所述拍摄得到的多媒体内容进行旋转处理, 具体用于: With reference to the sixth aspect, and the first possible implementation manner of the sixth aspect, in a third possible implementation manner of the sixth aspect, the calculating a rotation angle according to the offset angle, and based on the rotation The angle and the reference direction rotate the captured multimedia content, specifically for:
360度减去偏移角度得到旋转角度; 360 degrees minus the offset angle to get the rotation angle;
基于所述旋转角度和基准方向,调用内置的用于进行图形旋转的图像处理 应用将所述拍摄得到的多媒体内容进行旋转处理。  Based on the rotation angle and the reference direction, the built-in image processing application for performing graphics rotation is called to rotate the captured multimedia content.
结合第六方面, 或者第六方面的第一种可能的实现方式, 或者第六方面的 第二中可能的实施方式,或者第六方面的第三中可能的实施方式,在第六方面 的第四种可能的实施方式中,所述控制所述存储器保存进行旋转处理后得到的 多媒体内容, 具体用于:  With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, In four possible implementation manners, the controlling the memory to save the multimedia content obtained after the rotation processing is specifically used to:
在所述进行旋转处理得到的多媒体内容中携带旋转标识,所述旋转标识包 括: 旋转角度和基准方向;  Carrying a rotation identifier in the multimedia content obtained by the rotation processing, the rotation identifier includes: a rotation angle and a reference direction;
保存进行旋转处理后的携带有旋转标识的多媒体内容。  The multimedia content carrying the rotation logo after the rotation processing is saved.
结合第六方面, 或者第六方面的第一种可能的实现方式, 或者第六方面的 第二中可能的实施方式, 或者第六方面的第三中可能的实施方式, 或者第六方 面的第四种可能的实施方式,在第六方面的第五种可能的实施方式中, 所述处 理器还用于: 将所述旋转处理后的携带有旋转标识的多媒体内容发送给对端 设备, 以使所述对端设备进行显示处理。  With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, or the sixth aspect In a fourth possible implementation manner of the sixth aspect, the processor is further configured to: send the rotated processed multimedia content that carries the rotation identifier to the peer device, The peer device is caused to perform display processing.
本发明第七方面提供了另一种终端设备, 包括显示装置及处理器, 其中, - - 所述处理器用于: A seventh aspect of the present invention provides another terminal device, including a display device and a processor, where - - The processor is used to:
控制接收多媒体内容,控制检测所述多媒体内容是否包括旋转标识, 所述 旋转标识包括: 旋转角度和基准方向, 对端设备根据所述旋转标识, 控制所述 显示装置对应地显示所述旋转后得到的多媒体内容和 /或所述拍摄方向的多媒 体内容。  Controlling the receiving of the multimedia content, and controlling whether the multimedia content includes a rotation identifier, the rotation identifier includes: a rotation angle and a reference direction, and the peer device controls the display device to display the rotation correspondingly according to the rotation identifier Multimedia content and/or multimedia content of the shooting direction.
结合第七方面, 在第七方面的第一种可能的实现方式中, 所述显示装置, 包括:  With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect, the display device includes:
根据旋转标识中的旋转角度和基准方向对接收到的所述多媒体内容进行 旋转处理;  Rotating the received multimedia content according to a rotation angle and a reference direction in the rotation identifier;
显示处理后得到的所述多媒体内容。  The multimedia content obtained after the processing is displayed.
本发明实施例的多媒体内容方向转换方法,可在拍摄时自动识别并调节拍 摄得到的多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内 容始终为用户希望的方向, 该方法筒单、 方便, 为用户拍摄及处理多媒体内容 提供便利, 用户在将得到的多媒体内容导出到终端上观赏时, 操作程序筒单, 不容易产生误操作, 节约终端的软硬件资源。 附图说明  The multimedia content direction conversion method of the embodiment of the present invention can automatically recognize and adjust the direction of the captured multimedia content during shooting, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user. Convenience, convenient for users to shoot and process multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is simple, and it is not easy to cause misoperation, thereby saving the software and hardware resources of the terminal. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only the present invention. In some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive work.
图 1为本发明第一实施例多媒体内容方向转换方法流程示意图;  1 is a schematic flowchart of a method for converting a multimedia content direction according to a first embodiment of the present invention;
图 2为本发明第二实施例多媒体内容方向转换方法流程示意图;  2 is a schematic flowchart of a method for converting a multimedia content direction according to a second embodiment of the present invention;
图 3为本发明第三实施例多媒体内容方向转换方法流程示意图;  3 is a schematic flowchart of a method for converting a multimedia content direction according to a third embodiment of the present invention;
图 4为本发明第四实施例多媒体内容方向转换方法流程示意图;  4 is a schematic flowchart of a method for converting a multimedia content direction according to a fourth embodiment of the present invention;
图 5为本发明第五实施例多媒体内容方向转换装置的结构示意图; 图 6为本发明第六实施例多媒体内容方向转换装置的结构示意图; 图 7为本发明第七实施例多媒体内容方向转换装置的结构示意图; 图 8为本发明第八实施例多媒体内容方向转换装置的结构示意图; 图 9为本发明第九实施例终端设备结构示意图; 5 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a fifth embodiment of the present invention; FIG. 6 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a sixth embodiment of the present invention; Schematic diagram of the structure; 8 is a schematic structural diagram of a multimedia content direction conversion apparatus according to an eighth embodiment of the present invention; FIG. 9 is a schematic structural diagram of a terminal apparatus according to a ninth embodiment of the present invention;
图 10为本发明第十实施例终端设备结构示意图。 具体实施方式  FIG. 10 is a schematic structural diagram of a terminal device according to a tenth embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部 的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参见图 1 , 为本发明第一实施例多媒体内容方向转换方法流程示意图, 本发明实施例的多媒体内容, 包括视频、 图像等, 所述方法包括:  1 is a schematic flowchart of a method for converting a multimedia content direction according to a first embodiment of the present invention. The multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
5101、移动终端检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍 摄得到的多媒体内容。  5101. The mobile terminal detects an offset angle of the current shooting direction from the reference direction, and caches the multimedia content obtained by the shooting.
具体地, 所述基准方向为预设的方向, 偏移角度可以为 0度至 360度之间 的任一角度。  Specifically, the reference direction is a preset direction, and the offset angle may be any angle between 0 degrees and 360 degrees.
应当理解,移动终端通过重力感应传感器检测到当前的拍摄方向偏离基准 方向的偏移角度。  It should be understood that the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
5102、移动终端根据偏移角度计算得到旋转角度,并基于旋转角度和基准 方向将所述緩存得到的多媒体内容进行旋转处理。  5102. The mobile terminal calculates a rotation angle according to the offset angle, and performs rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
具体地,所述计算旋转角度的方法为:旋转角度 =360度 -偏移角度,例如, 偏移角度为 90度, 则旋转角度就为 270度, 偏移角度为 180度, 则旋转角度 就为 180度。 朝基准方向旋转的方向为旋转方向。  Specifically, the method for calculating the rotation angle is: a rotation angle=360 degrees-offset angle. For example, if the offset angle is 90 degrees, the rotation angle is 270 degrees, and the offset angle is 180 degrees, then the rotation angle is It is 180 degrees. The direction of rotation in the reference direction is the direction of rotation.
5103、 移动终端保存进行旋转处理后得到的多媒体内容。  5103. The mobile terminal saves the multimedia content obtained by performing the rotation processing.
具体地, 移动终端在进行旋转处理后得到的多媒体内容中携带旋转标识, 所述旋转标识用于将进行旋转处理后得到的多媒体内容还原成拍摄方向的多 媒体内容, 旋转标识包括: 旋转角度和基准方向。  Specifically, the mobile terminal carries a rotation identifier in the multimedia content obtained after the rotation processing, where the rotation identifier is used to restore the multimedia content obtained by the rotation processing to the multimedia content in the shooting direction, and the rotation identifier includes: a rotation angle and a reference direction.
本发明实施例所述的移动终端, 包括: 手机、 PDA、 平板电脑等带有摄像 头的移动电子设备。 - - 本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。 The mobile terminal according to the embodiment of the present invention includes: a mobile electronic device with a camera such as a mobile phone, a PDA, a tablet computer, or the like. The multimedia content direction conversion method of the embodiment of the present invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user. Conveniently, it provides convenience for users to shoot and process multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is simple, and it is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 2, 为本发明第二实施例多媒体内容方向转换方法流程示意图, 本发明实施例的多媒体内容, 包括视频、 图像等, 所述方法包括:  2 is a schematic flowchart of a method for converting a multimedia content direction according to a second embodiment of the present invention. The multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
5201、移动终端检测到当前的拍摄方向偏离基准方向的偏移角度,保存拍 摄得到的多媒体内容。  5201. The mobile terminal detects an offset angle of the current shooting direction from the reference direction, and saves the captured multimedia content.
具体地, 所述基准方向为预设的方向,偏移角度可以为 0度至 360度之间 的任一角度。  Specifically, the reference direction is a preset direction, and the offset angle may be any angle between 0 degrees and 360 degrees.
应当理解,移动终端通过重力感应传感器检测到当前的拍摄方向偏离基准 方向的偏移角度。  It should be understood that the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
5202、 移动终端根据偏移角度计算得到旋转角度。  5202. The mobile terminal calculates a rotation angle according to the offset angle.
具体地, 所述计算方法为: 旋转角度 =360度 -偏移角度, 例如, 偏移角度 为 90度, 则旋转角度就为 270度, 偏移角度为 180度, 则旋转角度就为 180 度。 朝基准方向旋转的方向为旋转方向。  Specifically, the calculation method is: a rotation angle=360 degrees-offset angle. For example, if the offset angle is 90 degrees, the rotation angle is 270 degrees, and the offset angle is 180 degrees, the rotation angle is 180 degrees. . The direction of rotation in the reference direction is the direction of rotation.
5203、移动终端基于所述旋转角度和基准方向,通过矩阵变换的方式或者 通过调用内置的用于进行图形旋转的图像处理应用将緩存得到的多媒体内容 进行旋转处理。  5203. The mobile terminal rotates the cached multimedia content by a matrix transformation manner or by calling a built-in image processing application for performing graphics rotation based on the rotation angle and the reference direction.
具体地,旋转处理可以通过对表示图形坐标的矩阵进行运算来实现, 所述 运算包括点乘运算,即用原来的多媒体内容的图形顶点坐标矩阵点乘变换矩阵 得到变换后的图形顶点坐标矩阵,从而实现将緩存得到的多媒体内容进行旋转 处理。  Specifically, the rotation processing may be implemented by performing an operation on a matrix representing the graphics coordinates, where the operation includes a point multiplication operation, that is, the transformed vertex coordinate matrix is obtained by multiplying the transformation matrix by the graphic vertex coordinate matrix of the original multimedia content. Thereby, the cached multimedia content is rotated.
另夕卜,旋转处理还可以通过调用内置的用于进行图形旋转的图像处理应用 来实现, 例如, 通过调用内置的 Ulead Video Studio (会声会影)、 Adobe Photoshop等应用将緩存得到的多媒体内容进行旋转处理。  In addition, the rotation process can also be implemented by calling the built-in image processing application for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe Photoshop, etc. Perform a rotation process.
5204、 移动终端保存进行旋转处理后得到的多媒体内容。  5204. The mobile terminal saves the multimedia content obtained by performing the rotation process.
具体地, 移动终端在进行旋转处理后得到的多媒体内容中携带旋转标识, - - 所述旋转标识用于将进行旋转处理后得到的多媒体内容还原成拍摄方向的多 媒体内容, 所述旋转标识包括: 旋转角度和基准方向。 Specifically, the mobile terminal carries the rotation identifier in the multimedia content obtained after the rotation processing, - the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the multimedia content in the shooting direction, and the rotation identifier comprises: a rotation angle and a reference direction.
本发明实施例所述的移动终端, 包括: 手机、 PDA、 平板电脑等带有摄像 头的移动电子设备。  The mobile terminal according to the embodiment of the present invention includes: a mobile electronic device with a camera such as a mobile phone, a PDA, or a tablet computer.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 3 , 为本发明第三实施例多媒体内容方向转换方法流程示意图, 本发明实施例的多媒体内容, 包括视频、 图像等, 所述方法包括:  3 is a schematic flowchart of a method for converting a multimedia content direction according to a third embodiment of the present invention. The multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
5301、移动终端检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍 摄得到的多媒体内容。  5301. The mobile terminal detects an offset angle of the current shooting direction from the reference direction, and caches the multimedia content obtained by the shooting.
具体地, 所述基准方向为预设的方向,偏移角度可以为 0度至 360度之间 的任一角度。  Specifically, the reference direction is a preset direction, and the offset angle may be any angle between 0 degrees and 360 degrees.
应当理解,移动终端通过重力感应传感器检测到当前的拍摄方向偏离基准 方向的偏移角度。  It should be understood that the mobile terminal detects the offset angle of the current photographing direction from the reference direction by the gravity sensing sensor.
5302、移动终端根据偏移角度计算得到旋转角度,并基于旋转角度和基准 方向将所述緩存得到的多媒体内容进行旋转处理。  5302. The mobile terminal calculates a rotation angle according to the offset angle, and performs rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
具体地,所述计算旋转角度的方法为:旋转角度 =360度 -偏移角度,例如, 偏移角度为 90度, 则旋转角度就为 270度, 偏移角度为 180度, 则旋转角度 就为 180度。 朝基准方向旋转的方向为旋转方向。  Specifically, the method for calculating the rotation angle is: a rotation angle=360 degrees-offset angle. For example, if the offset angle is 90 degrees, the rotation angle is 270 degrees, and the offset angle is 180 degrees, then the rotation angle is It is 180 degrees. The direction of rotation in the reference direction is the direction of rotation.
具体地, 所述旋转处理可以通过对表示图形坐标的矩阵进行运算来实现, 所述运算包括矩阵的点乘运算,即用原来的多媒体内容的图形顶点坐标矩阵点 乘变换矩阵得到变换后的图形顶点坐标矩阵,从而实现将拍摄得到的多媒体内 容进行旋转处理。  Specifically, the rotation processing may be implemented by performing an operation on a matrix representing graphics coordinates, where the operation includes a dot multiplication operation of the matrix, that is, using the original vertex coordinate matrix of the multimedia content to multiply the transformation matrix to obtain the transformed graphics. The vertex coordinate matrix is used to rotate the captured multimedia content.
旋转处理还可以通过调用内置的用于进行图形旋转的图像处理应用来实 现, 例如, 通过调用内置的 Ulead Video Studio (会声会影)、 Adobe Photoshop 等应用将緩存得到的多媒体内容进行旋转处理。 - - Rotation processing can also be achieved by calling the built-in image processing application for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe Photoshop, and other applications to rotate the cached multimedia content. - -
S303、 移动终端保存进行旋转处理后得到的多媒体内容。 S303. The mobile terminal saves the multimedia content obtained by performing the rotation processing.
具体地, 移动终端在进行旋转处理后得到的多媒体内容中携带旋转标识, 所述旋转标识用于将进行旋转处理后得到的多媒体内容还原成拍摄得到的多 媒体内容, 旋转标识包括: 旋转角度和基准方向。  Specifically, the mobile terminal carries a rotation identifier in the multimedia content obtained after the rotation processing, where the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the captured multimedia content, where the rotation identifier includes: a rotation angle and a reference direction.
S304、移动终端将旋转处理后的携带有旋转标识的多媒体内容发送给对端 设备, 以使所述对端设备进行显示处理。  S304. The mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, so that the peer device performs display processing.
具体地,移动终端将旋转处理后的携带有旋转标识的多媒体内容发送给对 端设备,对端设备可以根据所述旋转标识,将旋转处理后的多媒体内容还原成 拍摄时的多媒体内容进行显示,也可以直接显示旋转处理后得到的多媒体内容。  Specifically, the mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, and the peer device can restore the rotated multimedia content to the multimedia content at the time of shooting according to the rotation identifier. It is also possible to directly display the multimedia content obtained after the rotation processing.
本发明实施例所述的移动终端, 包括: 手机、 PDA、 平板电脑等带有摄像 头的移动电子设备。  The mobile terminal according to the embodiment of the present invention includes: a mobile electronic device with a camera such as a mobile phone, a PDA, or a tablet computer.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 4, 为本发明第四实施例多媒体内容方向转换方法流程示意图, 本发明实施例的多媒体内容, 包括视频、 图像等, 所述方法包括:  4 is a schematic flowchart of a method for converting a multimedia content direction according to a fourth embodiment of the present invention. The multimedia content of the embodiment of the present invention includes a video, an image, and the like, and the method includes:
5401、 对端设备接收多媒体内容。  5401. The peer device receives the multimedia content.
具体地,对端设备接收移动终端发送的多媒体内容, 本发明实施例所述的 对端设备, 包括: 计算机、 平板电脑等具有显示装置的电子设备。  Specifically, the peer device receives the multimedia content sent by the mobile terminal, and the peer device according to the embodiment of the present invention includes: an electronic device having a display device, such as a computer or a tablet computer.
5402、 对端设备检测接收到的多媒体内容是否包括旋转标识。  S402: The peer device detects whether the received multimedia content includes a rotation identifier.
具体地,所述旋转标识用于将接收到的多媒体内容还原成拍摄得到的多媒 体内容, 旋转标识包括: 旋转角度和基准方向。  Specifically, the rotation identifier is used to restore the received multimedia content to the captured multimedia content, and the rotation identifier includes: a rotation angle and a reference direction.
S403、若包括所述旋转标识,对端设备根据所述旋转标识对接收到的所述 多媒体内容进行显示处理, 以显示接收到的所述多媒体内容。  S403. If the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
具体地, 若对端设备检测接收到的多媒体内容包括旋转标识, 则可以根据 旋转标识将接收到的多媒体内容还原成拍摄方向的多媒体内容进行显示,或者 直接将接收到的多媒体内容进行显示。 - - 应当理解, 本发明实施例所述的对端设备包括: 计算机、 平板电脑等具有 显示装置的电子设备。 Specifically, if the peer device detects that the received multimedia content includes a rotation identifier, the received multimedia content may be restored to the multimedia content in the shooting direction according to the rotation identifier, or the received multimedia content may be directly displayed. - It should be understood that the peer device according to the embodiment of the present invention includes: an electronic device having a display device such as a computer or a tablet computer.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
本发明实施例提供一种计算机存储介质, 其中, 所述计算机存储介质可存 储有程序,该程序执行时包括上述图 1至图 4的方法实施例中记载的多媒体内 容方向转换方法的部分或全部步骤。  The embodiment of the present invention provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the multimedia content direction conversion method described in the method embodiments of FIG. 1 to FIG. step.
下面结合附图 5- 10对多媒体内容方向转换装置和终端设备进行详细说明。 请参见图 5, 为本发明第五实施例多媒体内容方向转换装置的结构示意图, 装置 1可用于移动终端中, 所述装置 1包括: 检测模块 10、 处理模块 11及存 储模块 12, 其中,  The multimedia content direction conversion device and the terminal device will be described in detail below with reference to FIGS. 5 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a fifth embodiment of the present invention. The apparatus 1 can be used in a mobile terminal, where the apparatus 1 includes: a detection module 10, a processing module 11, and a storage module 12, where
检测模块 10, 用于检测到当前的拍摄方向偏离基准方向的偏移角度, 緩 存拍摄得到的多媒体内容。  The detecting module 10 is configured to detect an offset angle of the current shooting direction from the reference direction, and buffer the captured multimedia content.
具体地, 所述基准方向为预设的方向,偏移角度可以为 0度至 360度之间 的任一角度。  Specifically, the reference direction is a preset direction, and the offset angle may be any angle between 0 degrees and 360 degrees.
应当理解,通过重力感应传感器检测到当前的拍摄方向偏离基准方向的偏 移角度。  It should be understood that the offset angle of the current photographing direction from the reference direction is detected by the gravity sensing sensor.
处理模块 11 , 用于根据所述偏移角度计算得到旋转角度, 并基于所述旋 转角度和基准方向将所述緩存得到的多媒体内容进行旋转处理。  The processing module 11 is configured to calculate a rotation angle according to the offset angle, and perform rotation processing on the cached multimedia content based on the rotation angle and the reference direction.
具体地,所述计算旋转角度的方法为:旋转角度 =360度 -偏移角度,例如, 偏移角度为 90度, 则旋转角度就为 270度, 偏移角度为 180度, 则旋转角度 就为 180度。 朝基准方向旋转为旋转方向。  Specifically, the method for calculating the rotation angle is: a rotation angle=360 degrees-offset angle. For example, if the offset angle is 90 degrees, the rotation angle is 270 degrees, and the offset angle is 180 degrees, then the rotation angle is It is 180 degrees. Rotate in the reference direction to the direction of rotation.
存储模块 12, 用于保存进行旋转处理后得到的多媒体内容。  The storage module 12 is configured to save the multimedia content obtained after the rotation processing.
具体地,保存进行旋转处理后得到的多媒体内容之前,应在进行旋转处理 后得到的多媒体内容中携带旋转标识,所述旋转标识用于将进行旋转处理后得 到的多媒体内容还原成拍摄方向的多媒体内容,旋转标识包括: 旋转角度和基 - - 准方向。 Specifically, before the multimedia content obtained after the rotation processing is saved, the multimedia content obtained after the rotation processing is carried, and the rotation identifier is used to restore the multimedia content obtained by the rotation processing to the multimedia direction of the shooting direction. Content, rotation logo includes: rotation angle and base - - Quasi-direction.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 6, 为本发明第六实施例多媒体内容方向转换装置的结构示意图, 图 6所示的装置是由图 5所示装置 1进行优化得到的,图 6所示的装置中除了 包括图 5所示的装置包括的模块之外,处理模块 11包括: 第一计算单元 111、 第一执行单元 112、第二计算单元 113、第二执行单元 114,存储模块 12包括: 第一存储单元 121、 第二存储单元 122, 其中,  6 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a sixth embodiment of the present invention, and the apparatus shown in FIG. 6 is optimized by the apparatus 1 shown in FIG. 5, and the apparatus shown in FIG. The processing module 11 includes: a first computing unit 111, a first executing unit 112, a second computing unit 113, and a second executing unit 114. The storage module 12 includes: a first storage unit 121 The second storage unit 122, wherein
第一计算单元 111 , 用 360度减去偏移角度得到旋转角度。  The first calculating unit 111 obtains the rotation angle by subtracting the offset angle by 360 degrees.
第一执行单元 112, 用于基于所述旋转角度和基准方向, 通过矩阵变换的 方式将緩存得到的多媒体内容进行旋转处理。  The first executing unit 112 is configured to perform, by using a matrix transformation manner, the cached multimedia content to be rotated according to the rotation angle and the reference direction.
具体地,旋转处理可以通过对表示图形坐标的矩阵进行运算来实现, 即用 原来的多媒体内容的图形顶点坐标矩阵点乘变换矩阵得到变换后的图形顶点 坐标矩阵, 从而实现将緩存得到的多媒体内容进行旋转处理。  Specifically, the rotation processing can be realized by computing a matrix representing the coordinate of the graphic, that is, by multiplying the transformation matrix by the graphic vertex coordinate matrix of the original multimedia content to obtain the transformed graphic vertex coordinate matrix, thereby realizing the multimedia content obtained by the buffering. Perform a rotation process.
第二计算单元 113 , 用 360度减去偏移角度得到旋转角度;  The second calculating unit 113 obtains a rotation angle by subtracting the offset angle by 360 degrees;
第二执行单元 114, 用于基于所述旋转角度和基准方向, 调用内置的用于 进行图形旋转的图像处理应用将所述緩存得到的多媒体内容进行旋转处理。  The second executing unit 114 is configured to invoke the built-in image processing application for performing graphics rotation to rotate the cached multimedia content based on the rotation angle and the reference direction.
具体地,旋转处理还可以通过调用内置的用于进行图形旋转的图像处理应 用来实现, 例如, 通过调用内置的 Ulead Video Studio (会声会影)、 Adobe Specifically, the rotation process can also be implemented by calling the built-in image processing for graphics rotation, for example, by calling the built-in Ulead Video Studio, Adobe.
Photoshop等应用将緩存得到的多媒体内容进行旋转处理。 Applications such as Photoshop rotate the cached multimedia content.
第一计算单元 111和第二计算单元 114计算旋转角度的方法均为:旋转角 度 =360度 -偏移角度, 例如, 偏移角度为 90度, 则旋转角度就为 270度, 偏 移角度为 180度, 则旋转角度就为 180度。 朝基准方向旋转为旋转方向。  The first calculation unit 111 and the second calculation unit 114 calculate the rotation angle by rotating angle=360 degrees-offset angle. For example, if the offset angle is 90 degrees, the rotation angle is 270 degrees, and the offset angle is At 180 degrees, the angle of rotation is 180 degrees. Rotate in the reference direction to the direction of rotation.
存储模块 12包括: 第一存储单元 121 和第二存储单元 122, 其中, 第一存储单元 121 , 用于在所述进行旋转处理得到的多媒体内容中携带旋 转标识。 - - 具体地,所述旋转标识用于将进行旋转处理后得到的多媒体内容还原成拍 摄得到的多媒体内容, 所述旋转标识包括: 旋转角度和基准方向。 The storage module 12 includes: a first storage unit 121 and a second storage unit 122, wherein the first storage unit 121 is configured to carry a rotation identifier in the multimedia content obtained by the rotation processing. Specifically, the rotation identifier is used to restore the multimedia content obtained after the rotation processing to the captured multimedia content, where the rotation identifier comprises: a rotation angle and a reference direction.
第二存储单元 122, 用于保存进行旋转处理后的携带有旋转标识的多媒体 内容。  The second storage unit 122 is configured to save the multimedia content carrying the rotation identifier after the rotation processing.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 7, 为本发明第七实施例多媒体内容方向转换装置的结构示意图, 图 7所示的装置是由图 6所示装置 1进行优化得到的,图 7所示的装置中除了 包括图 6所示的装置包括的模块之外, 还包括发送模块 13 , 其中,  FIG. 7 is a schematic structural diagram of a multimedia content direction conversion apparatus according to a seventh embodiment of the present invention. The apparatus shown in FIG. 7 is optimized by the apparatus 1 shown in FIG. 6, and the apparatus shown in FIG. In addition to the module included in the device shown in FIG. 6, the transmission module 13 is further included, wherein
发送模块 13 , 用于将所述旋转处理后的携带有旋转标识的多媒体内容发 送给对端设备, 以使所述对端设备进行显示处理。  The sending module 13 is configured to send the rotated multimedia content that carries the rotation identifier to the peer device, so that the peer device performs display processing.
具体地,移动终端将旋转处理后的携带有旋转标识的多媒体内容发送给对 端设备,对端设备可以根据所述旋转标识,将旋转处理后的多媒体内容还原成 拍摄方向的多媒体内容进行显示,也可以直接显示旋转处理后得到的多媒体内 谷。  Specifically, the mobile terminal sends the rotated multimedia content that carries the rotation identifier to the peer device, and the peer device can restore the rotated multimedia content to the multimedia content in the shooting direction according to the rotation identifier. It is also possible to directly display the multimedia inner valley obtained after the rotation processing.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 8, 为本发明第八实施例多媒体内容方向转换装置的结构示意图, 装置 2可用于计算机、平板电脑等具有显示装置的电子设备,所述装置 2包括: 接收模块 21、 控制模块 22、 显示模块 23 , 其中,  FIG. 8 is a schematic structural diagram of a multimedia content direction conversion apparatus according to an eighth embodiment of the present invention. The device 2 can be used for an electronic device having a display device, such as a computer or a tablet computer, and the device 2 includes: a receiving module 21 and a control module 22 Display module 23, wherein
接收模块 21 , 用于接收多媒体内容。  The receiving module 21 is configured to receive multimedia content.
控制模块 22 , 用于检测接收到的所述多媒体内容是否包括旋转标识。  The control module 22 is configured to detect whether the received multimedia content includes a rotation identifier.
具体地,所述旋转标识用于将接收到的多媒体内容还原成拍摄方向的多媒 - - 体内容, 旋转标识包括: 旋转角度和基准方向。 Specifically, the rotation identifier is used to restore the received multimedia content to a multimedia direction of a shooting direction. - - Body content, rotation logo includes: rotation angle and reference direction.
显示模块 23 , 用于若包括旋转标识, 对端设备根据旋转标识对接收到的 所述多媒体内容进行显示处理, 以显示接收到的多媒体内容。  The display module 23 is configured to: if the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
所述显示模块 23还包括:  The display module 23 further includes:
处理单元 231 , 用于根据旋转标识中的旋转角度和基准方向对接收到的所 述多媒体内容进行旋转处理。  The processing unit 231 is configured to perform rotation processing on the received multimedia content according to the rotation angle and the reference direction in the rotation identifier.
显示单元 232, 用于显示接收到的所述多媒体内容。  The display unit 232 is configured to display the received multimedia content.
具体地, 若对端设备检测接收到的多媒体内容包括旋转标识, 则可以根据 旋转标识将接收到的多媒体内容还原成拍摄方向的多媒体内容进行显示,或者 直接将接收到的多媒体内容进行显示。  Specifically, if the peer device detects that the received multimedia content includes a rotation identifier, the received multimedia content may be restored to a multimedia content in a shooting direction according to the rotation identifier, or the received multimedia content may be directly displayed.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 9, 本发明第九实施例终端设备结构示意图, 终端设备 3 包括: 摄像装置 31、 处理器 32以及存储器 33 , 其中, 所述处理器 32用于:  Referring to FIG. 9, a schematic diagram of a structure of a terminal device according to a ninth embodiment of the present invention, the terminal device 3 includes: an image capturing device 31, a processor 32, and a memory 33, wherein the processor 32 is configured to:
控制检测所述摄像装置 31 当前的拍摄方向偏离基准方向的偏移角度, 并 控制所述存储器 33緩存拍摄得到的多媒体内容, 所述偏移角度包括: 0度至 360度之间的任一角度, 根据所述偏移角度计算得到旋转角度, 并基于所述旋 转角度和基准方向将所述緩存得到的多媒体内容进行旋转处理,控制所述存储 器保存进行旋转处理后得到的多媒体内容。  Controlling, detecting an offset angle of a current shooting direction of the camera device 31 from a reference direction, and controlling the memory 33 to buffer the captured multimedia content, wherein the offset angle includes: any angle between 0 degrees and 360 degrees Calculating a rotation angle according to the offset angle, and rotating the cached multimedia content based on the rotation angle and the reference direction, and controlling the memory to save the multimedia content obtained after the rotation processing.
所述终端设备 3还包括重力感应传感器, 用于: 通过所述重力感应传感器 检测到当前的拍摄方向偏离基准方向的角度。  The terminal device 3 further includes a gravity sensing sensor for: detecting, by the gravity sensing sensor, an angle of the current shooting direction from the reference direction.
所述根据所述偏移角度计算得到旋转角度,并基于所述旋转角度和基准方 向将所述緩存得到的多媒体内容进行旋转处理, 具体包括:  Calculating the rotation angle according to the offset angle, and performing the rotation processing on the cached multimedia content based on the rotation angle and the reference direction, specifically including:
360度减去偏移角度得到旋转角度;  360 degrees minus the offset angle to get the rotation angle;
基于所述旋转角度和基准方向,通过矩阵变换的方式将所述緩存得到的多 媒体内容进行旋转处理。 - - 所述根据所述偏移角度计算得到旋转角度,并基于所述旋转角度和基准方 向将所述緩存得到的多媒体内容进行旋转处理, 具体包括: The cached multimedia content is rotated by matrix transformation based on the rotation angle and the reference direction. - the calculating the rotation angle according to the offset angle, and performing the rotation processing on the cached multimedia content based on the rotation angle and the reference direction, specifically including:
360度减去偏移角度得到旋转角度;  360 degrees minus the offset angle to get the rotation angle;
基于所述旋转角度和基准方向,调用内置的用于进行图形旋转的图像处理 应用将所述緩存得到的多媒体内容进行旋转处理。  Based on the rotation angle and the reference direction, the built-in image processing application for performing graphics rotation is invoked to rotate the cached multimedia content.
所述控制所述存储器保存进行旋转处理后得到的多媒体内容, 具体包括: 在所述进行旋转处理得到的多媒体内容中携带旋转标识,所述旋转标识包 括: 旋转角度和基准方向;  The controlling the memory to save the multimedia content obtained after the rotation processing comprises: carrying the rotation identifier in the multimedia content obtained by the rotating processing, where the rotation identifier comprises: a rotation angle and a reference direction;
保存进行旋转处理后的携带有旋转标识的多媒体内容。  The multimedia content carrying the rotation logo after the rotation processing is saved.
所述处理器 32还用于: 将所述旋转处理后的携带有旋转标识的多媒体内 容发送给对端设备, 以使所述对端设备进行显示处理。  The processor 32 is further configured to: send the rotated multimedia content carrying the rotation identifier to the peer device, so that the peer device performs display processing.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。  The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved.
请参见图 10, 本发明第十实施例终端设备结构示意图, 所述终端设备 4 包括: 显示装置 41及处理器 42, 其中, 所述处理器 42用于:  10 is a schematic structural diagram of a terminal device according to a tenth embodiment of the present invention. The terminal device 4 includes: a display device 41 and a processor 42. The processor 42 is configured to:
控制接收多媒体内容,控制检测所述多媒体内容是否包括旋转标识, 所述 旋转标识包括: 旋转角度和基准方向, 根据所述旋转标识, 控制所述显示装置 41对应地显示旋转后得到的多媒体内容和 /或所述拍摄得到的多媒体内容。  Controlling the receiving of the multimedia content, and controlling whether the multimedia content includes a rotation identifier, the rotation identifier includes: a rotation angle and a reference direction, and controlling, according to the rotation identifier, the display device 41 to display the multimedia content obtained after the rotation and / or the multimedia content obtained by the shooting.
所述显示装置 41 , 用于: 根据旋转标识中的旋转角度和基准方向对接收 到的所述多媒体内容进行旋转处理;  The display device 41 is configured to: perform rotation processing on the received multimedia content according to a rotation angle and a reference direction in the rotation identifier;
显示处理后得到的所述多媒体内容。  The multimedia content obtained after the processing is displayed.
本发明实施例的多媒体内容方向转换方法,可自动识别并调节拍摄得到的 多媒体内容的方向,根据用户指定的基准方向使拍摄得到的多媒体内容始终为 用户希望的方向,该方法筒单、方便,为用户拍摄及处理多媒体内容提供便利, 用户在将得到的多媒体内容导出到终端上观赏时,操作程序筒单, 不容易产生 误操作, 节约终端的软硬件资源。 - - 本领域普通技术人员将会理解, 本发明的各个方面、或各个方面的可能实 现方式可以被具体实施为系统、 方法或者计算机程序产品。 此外, 本发明的各 方面、或各个方面的可能实现方式可以采用计算机程序产品的形式,计算机程 序产品是指存储在计算机可读介质中的计算机可读程序代码。 The multimedia content direction conversion method of the embodiment of the invention can automatically identify and adjust the direction of the captured multimedia content, and the captured multimedia content is always in the direction desired by the user according to the reference direction specified by the user, and the method is simple and convenient. It is convenient for the user to shoot and process the multimedia content. When the user exports the obtained multimedia content to the terminal for viewing, the operation program is not easy to cause misoperation, and the software and hardware resources of the terminal are saved. One of ordinary skill in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, can be embodied as a system, method, or computer program product. Furthermore, aspects of the invention, or possible implementations of various aspects, may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计 算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、 设备或者装置, 或者前述的任意适当组合, 如随机存取存储器 (RAM)、 只读 存储器 (ROM)、 可擦除可编程只读存储器 (EPROM 或者快闪存储器)、 光纤、 便携式只读存储器 (CD-ROM)。  The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代码, 使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作; 生成实施在框图的每一块、 或各块的组合中规定的功能动作的装置。  The processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step or combination of steps in the flowchart; A device that functions as specified in each block, or combination of blocks.
计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算 机上执行、作为单独的软件包、部分在用户的本地计算机上并且部分在远程计 算机上, 或者完全在远程计算机或者服务器上执行。 也应该注意, 在某些替代 实施方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注 明的顺序发生。 例如, 依赖于所涉及的功能, 接连示出的两个步骤、 或两个块 实际上可能被大致同时执行, 或者这些块有时候可能被以相反顺序执行。 明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  The computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's local computer and partly on the remote computer, or entirely on the remote computer or server. carried out. It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks shown in succession may be executed substantially concurrently, or the blocks may sometimes be performed in the reverse order, depending on the functionality involved. The spirit and scope of the Ming. Thus, it is intended that the present invention cover the modifications and variations of the inventions

Claims

权 利 要 求 Rights request
1、 一种多媒体内容方向转换方法, 其特征在于, 包括: 1. A multimedia content direction conversion method, characterized by including:
检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍摄得到的多媒体 内容, 所述偏移角度包括: 0度至 360度之间的任一角度; Detect the offset angle of the current shooting direction from the reference direction, and cache the multimedia content obtained by the shooting. The offset angle includes: any angle between 0 degrees and 360 degrees;
根据所述偏移角度计算得到旋转角度,并基于所述旋转角度和基准方向将 所述緩存得到的多媒体内容进行旋转处理; Calculate the rotation angle according to the offset angle, and perform rotation processing on the cached multimedia content based on the rotation angle and the reference direction;
保存进行旋转处理后得到的多媒体内容。 Save the multimedia content obtained after rotation.
2、 如权利要求 1所述的方法, 其特征在于, 所述检测到当前的拍摄方向 偏离基准方向的偏移角度, 緩存拍摄得到的多媒体内容, 包括; 2. The method according to claim 1, characterized in that, upon detecting the offset angle of the current shooting direction from the reference direction, caching the multimedia content obtained by shooting, including;
通过重力感应传感器检测到当前的拍摄方向偏离基准方向的偏移角度; 緩存所述拍摄得到的多媒体内容。 The offset angle of the current shooting direction from the reference direction is detected by the gravity sensor; and the multimedia content obtained by the shooting is cached.
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据所述偏移角度 计算得到旋转角度,并基于所述旋转角度和基准方向将所述拍摄得到的多媒体 内容进行旋转处理, 包括: 3. The method according to claim 1 or 2, characterized in that: the rotation angle is calculated based on the offset angle, and the captured multimedia content is rotated based on the rotation angle and the reference direction. , include:
360度减去偏移角度得到旋转角度; Subtract the offset angle from 360 degrees to get the rotation angle;
基于所述旋转角度和基准方向,通过矩阵变换的方式将所述拍摄得到的多 媒体内容进行旋转处理。 Based on the rotation angle and the reference direction, the captured multimedia content is rotated through matrix transformation.
4、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据所述偏移角度 计算得到旋转角度,并基于所述旋转角度和基准方向将所述拍摄得到的多媒体 内容进行旋转处理, 包括: 4. The method according to claim 1 or 2, characterized in that: the rotation angle is calculated based on the offset angle, and the captured multimedia content is rotated based on the rotation angle and the reference direction. , include:
360度减去偏移角度得到旋转角度; Subtract the offset angle from 360 degrees to get the rotation angle;
基于所述旋转角度和基准方向,调用内置的用于进行图形旋转的图像处理 应用将所述拍摄得到的多媒体内容进行旋转处理。 Based on the rotation angle and the reference direction, a built-in image processing application for graphics rotation is called to rotate the captured multimedia content.
5、 如权利要求 1-4所述的方法, 其特征在于, 所述保存进行旋转处理后 得到的多媒体内容, 包括: 5. The method according to claims 1-4, characterized in that the saving of the multimedia content obtained after rotation processing includes:
在所述进行旋转处理得到的多媒体内容中携带旋转标识,所述旋转标识包 括: 旋转角度和基准方向; The multimedia content obtained by the rotation process carries a rotation identifier, and the rotation identifier includes: rotation angle and reference direction;
保存进行旋转处理后的携带有旋转标识的多媒体内容。 Save the rotated multimedia content carrying the rotation mark.
6、 如权利要求 1-5所述的方法, 其特征在于, 还包括: 6. The method according to claims 1-5, further comprising:
将所述旋转处理后的携带有旋转标识的多媒体内容发送给对端设备,以使 所述对端设备进行显示处理。 The rotated multimedia content carrying the rotation identifier is sent to the opposite end device, so that the opposite end device performs display processing.
7、 一种多媒体内容方向转换方法, 其特征在于, 包括: 7. A multimedia content direction conversion method, characterized by including:
接收多媒体内容; receive multimedia content;
检测接收到的所述多媒体内容是否包括旋转标识, 所述旋转标识包括: 旋 转角度和基准方向; Detect whether the received multimedia content includes a rotation identifier, where the rotation identifier includes: a rotation angle and a reference direction;
若包括所述旋转标识,对端设备根据所述旋转标识对接收到的所述多媒体 内容进行显示处理, 以显示接收到的所述多媒体内容。 If the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display the received multimedia content.
8、 如权利要求 7所述的方法, 其特征在于, 所述若包括所述旋转标识, 对端设备根据所述旋转标识对接收到的所述多媒体内容进行显示处理,以显示 接收到的所述多媒体内容, 包括: 8. The method of claim 7, wherein if the rotation identifier is included, the peer device performs display processing on the received multimedia content according to the rotation identifier to display all the received multimedia content. Described multimedia content, including:
根据旋转标识中的旋转角度和基准方向对接收到的所述多媒体内容进行 旋转处理; Perform rotation processing on the received multimedia content according to the rotation angle and reference direction in the rotation mark;
显示处理后接收到的所述多媒体内容。 Display the multimedia content received after processing.
9、 一种计算机存储介质, 其特征在于, 9. A computer storage medium, characterized by:
所述计算机存储介质可存储有程序,该程序执行时包括如权利要求 1-6或 者如权利要求 7-8所述的步骤。 The computer storage medium may store a program, which when executed includes the steps described in claims 1-6 or 7-8.
10、 一种多媒体内容方向转换装置, 其特征在于, 检测模块, 用于检测到当前的拍摄方向偏离基准方向的偏移角度,緩存拍 摄得到的多媒体内容, 所述偏移角度包括: 0度至 360度之间的任一角度; 处理模块, 用于根据所述偏移角度计算得到旋转角度, 并基于所述旋转角 度和基准方向将所述緩存得到的多媒体内容进行旋转处理; 10. A multimedia content direction conversion device, characterized by: The detection module is used to detect the offset angle of the current shooting direction from the reference direction, and cache the multimedia content obtained by the shooting. The offset angle includes: any angle between 0 degrees and 360 degrees; the processing module is used to Calculate a rotation angle based on the offset angle, and perform rotation processing on the cached multimedia content based on the rotation angle and the reference direction;
存储模块, 用于保存进行旋转处理后得到的多媒体内容。 The storage module is used to save the multimedia content obtained after rotation processing.
11、 如权利要求 10所述的装置, 其特征在于, 所述检测模块, 包括; 检测单元,用于通过重力感应传感器检测到当前的拍摄方向偏离基准方向 的偏移角度; 11. The device according to claim 10, wherein the detection module includes: a detection unit configured to detect the offset angle of the current shooting direction from the reference direction through a gravity sensing sensor;
緩存单元, 用于緩存所述拍摄得到的多媒体内容。 A cache unit is used to cache the captured multimedia content.
12、如权利要求 10或 11所述的装置,其特征在于,所述处理模块,包括: 第一计算单元, 用于利用 360度减去偏移角度得到旋转角度; 12. The device according to claim 10 or 11, characterized in that the processing module includes: a first calculation unit, used to obtain the rotation angle by subtracting the offset angle from 360 degrees;
第一执行单元, 用于基于所述旋转角度和基准方向,通过矩阵变换的方式 将所述拍摄得到的多媒体内容进行旋转处理。 The first execution unit is configured to rotate the captured multimedia content through matrix transformation based on the rotation angle and the reference direction.
13、如权利要求 10或 11所述的装置,其特征在于,所述处理模块,包括: 第二计算单元, 用于利用 360度减去偏移角度得到旋转角度; 13. The device according to claim 10 or 11, characterized in that the processing module includes: a second calculation unit, used to obtain the rotation angle by subtracting the offset angle from 360 degrees;
第二执行单元, 用于基于所述旋转角度和基准方向,调用内置的用于进行 图形旋转的图像处理应用将所述拍摄得到的多媒体内容进行旋转处理。 The second execution unit is configured to call a built-in image processing application for graphics rotation to rotate the captured multimedia content based on the rotation angle and the reference direction.
14、 如权利要求 10-13所述的装置, 其特征在于, 所述存储模块, 包括: 第一存储单元,用于在所述进行旋转处理得到的多媒体内容中携带旋转标 识, 所述旋转标识包括: 旋转角度和基准方向; 14. The device according to claims 10-13, characterized in that the storage module includes: a first storage unit configured to carry a rotation identifier in the multimedia content obtained by the rotation process, the rotation identifier Includes: rotation angle and reference direction;
第二存储单元,用于保存进行旋转处理后的携带有旋转标识的多媒体内容。 The second storage unit is used to store the rotated multimedia content carrying the rotation mark.
15、 如权利要求 10-14所述的装置, 其特征在于, 还包括: 15. The device according to claims 10-14, further comprising:
发送模块,用于将所述旋转处理后的携带有旋转标识的多媒体内容发送给 对端设备, 以使所述对端设备进行显示处理。 A sending module, configured to send the rotated multimedia content carrying a rotation identifier to a peer device, so that the peer device performs display processing.
16、 一种多媒体内容方向转换装置, 其特征在于, 包括: 16. A multimedia content direction conversion device, characterized in that it includes:
接收模块, 用于接收多媒体内容; Receiving module, used to receive multimedia content;
控制模块, 用于检测接收到的所述多媒体内容是否包括旋转标识, 所述旋 转标识包括: 旋转角度和基准方向; A control module configured to detect whether the received multimedia content includes a rotation identifier, where the rotation identifier includes: a rotation angle and a reference direction;
显示模块, 用于若包括所述旋转标识,对端设备根据所述旋转标识对接收 到的所述多媒体内容进行显示处理, 以显示接收到的所述多媒体内容。 A display module configured to, if the rotation identification is included, the peer device perform display processing on the received multimedia content according to the rotation identification, so as to display the received multimedia content.
17、 如权利要求 16所述的装置, 其特征在于, 所述显示模块, 包括: 处理单元,用于根据旋转标识中的旋转角度和基准方向对接收到的所述多 媒体内容进行旋转处理; 17. The device according to claim 16, wherein the display module includes: a processing unit configured to rotate the received multimedia content according to the rotation angle and reference direction in the rotation mark;
显示单元, 用于显示接收到的所述多媒体内容。 A display unit configured to display the received multimedia content.
18、 一种终端设备, 其特征在于, 包括摄像装置、 处理器以及存储器, 其 中, 所述处理器用于: 18. A terminal device, characterized in that it includes a camera, a processor and a memory, wherein the processor is used for:
控制检测所述摄像装置当前的拍摄方向偏离基准方向的偏移角度,并控制 所述存储器緩存拍摄得到的多媒体内容, 所述偏移角度包括: 0度至 360度之 间的任一角度,根据所述偏移角度计算得到旋转角度, 并基于所述旋转角度和 基准方向将所述緩存得到的多媒体内容进行旋转处理,控制所述存储器保存进 行旋转处理后得到的多媒体内容。 Control and detect the offset angle of the current shooting direction of the camera device from the reference direction, and control the memory to cache the captured multimedia content. The offset angle includes: any angle between 0 degrees and 360 degrees, according to The offset angle is calculated to obtain a rotation angle, the cached multimedia content is rotated based on the rotation angle and the reference direction, and the memory is controlled to save the multimedia content obtained after the rotation processing.
19、 如权利要求 18所述的终端设备, 其特征在于, 所述终端设备还包括 重力感应传感器, 具体用于: 19. The terminal device according to claim 18, characterized in that the terminal device further includes a gravity sensing sensor, specifically used for:
通过所述重力感应传感器检测到当前的拍摄方向偏离基准方向的角度。 The angle at which the current shooting direction deviates from the reference direction is detected by the gravity sensing sensor.
20、 如权利要求 18或 19所述的终端设备, 其特征在于, 所述根据所述偏 移角度计算得到旋转角度,并基于所述旋转角度和基准方向将所述拍摄得到的 多媒体内容进行旋转处理, 具体用于: 20. The terminal device according to claim 18 or 19, wherein the rotation angle is calculated based on the offset angle, and the captured multimedia content is rotated based on the rotation angle and the reference direction. Processing, specifically used for:
360度减去偏移角度得到旋转角度; 基于所述旋转角度和基准方向,通过矩阵变换的方式将所述拍摄得到的多 媒体内容进行旋转处理。 Subtract the offset angle from 360 degrees to get the rotation angle; Based on the rotation angle and the reference direction, the captured multimedia content is rotated through matrix transformation.
21、 如权利要求 18或 19所述的终端设备, 其特征在于, 所述根据所述偏 移角度计算得到旋转角度,并基于所述旋转角度和基准方向将所述緩存得到的 多媒体内容进行旋转处理, 具体用于: 21. The terminal device according to claim 18 or 19, wherein the rotation angle is calculated based on the offset angle, and the cached multimedia content is rotated based on the rotation angle and the reference direction. Processing, specifically used for:
360度减去偏移角度得到旋转角度; Subtract the offset angle from 360 degrees to get the rotation angle;
基于所述旋转角度和基准方向,调用内置的用于进行图形旋转的图像处理 应用将所述緩存得到的多媒体内容进行旋转处理。 Based on the rotation angle and the reference direction, a built-in image processing application for graphics rotation is called to rotate the cached multimedia content.
22、 如权利要求 18-21所述的终端设备, 其特征在于, 所述控制所述存储 器保存进行旋转处理后得到的多媒体内容, 具体用于: 22. The terminal device according to claims 18-21, wherein the controlling the memory to save the multimedia content obtained after the rotation processing is specifically used for:
在所述进行旋转处理得到的多媒体内容中携带旋转标识,所述旋转标识包 括: 旋转角度和基准方向; The multimedia content obtained by the rotation process carries a rotation identifier, and the rotation identifier includes: rotation angle and reference direction;
保存进行旋转处理后的携带有旋转标识的多媒体内容。 Save the rotated multimedia content carrying the rotation mark.
23、如权利要求 18-22所述的终端设备,其特征在于,所述处理器还用于: 将所述旋转处理后的携带有旋转标识的多媒体内容发送给对端设备,以使所述 对端设备进行显示处理。 23. The terminal device according to claims 18-22, characterized in that the processor is further configured to: send the rotated multimedia content carrying the rotation identifier to the peer device, so that the The peer device performs display processing.
24、 一种终端设备, 其特征在于, 包括显示装置及处理器, 其中, 所述处 理器用于: 24. A terminal device, characterized in that it includes a display device and a processor, wherein the processor is used for:
控制接收多媒体内容,控制检测所述多媒体内容是否包括旋转标识, 所述 旋转标识包括: 旋转角度和基准方向, 根据所述旋转标识, 控制所述显示装置 对应地显示所述旋转后得到的多媒体内容和 /或所述拍摄方向的多媒体内容。 Control the reception of multimedia content, control the detection of whether the multimedia content includes a rotation mark, the rotation mark includes: a rotation angle and a reference direction, and control the display device to correspondingly display the multimedia content obtained after the rotation according to the rotation mark. and/or multimedia content in said shooting direction.
25、如权利要求 24所述的终端设备,其特征在于,所述显示装置, 包括: 根据旋转标识中的旋转角度和基准方向对接收到的所述多媒体内容进行 旋转处理; 显示处理后得到的所述多媒体内容。 25. The terminal device according to claim 24, wherein the display device includes: rotating the received multimedia content according to the rotation angle and the reference direction in the rotation mark; Display the multimedia content obtained after processing.
PCT/CN2013/086944 2013-11-12 2013-11-12 Method and apparatus for converting multimedia content direction and terminal device WO2015070373A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/086944 WO2015070373A1 (en) 2013-11-12 2013-11-12 Method and apparatus for converting multimedia content direction and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/086944 WO2015070373A1 (en) 2013-11-12 2013-11-12 Method and apparatus for converting multimedia content direction and terminal device

Publications (1)

Publication Number Publication Date
WO2015070373A1 true WO2015070373A1 (en) 2015-05-21

Family

ID=53056599

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086944 WO2015070373A1 (en) 2013-11-12 2013-11-12 Method and apparatus for converting multimedia content direction and terminal device

Country Status (1)

Country Link
WO (1) WO2015070373A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949829A (en) * 2005-10-14 2007-04-18 三星电子株式会社 Apparatus and method for photographing straight image in portable communication terminal
JP2010050897A (en) * 2008-08-25 2010-03-04 Olympus Imaging Corp Image playback apparatus
CN101998047A (en) * 2009-08-25 2011-03-30 鸿富锦精密工业(深圳)有限公司 Method and system for regulating horizontal position in camera
CN102169424A (en) * 2010-02-03 2011-08-31 三星电子株式会社 Method for transmitting image data and display apparatus and display method using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949829A (en) * 2005-10-14 2007-04-18 三星电子株式会社 Apparatus and method for photographing straight image in portable communication terminal
JP2010050897A (en) * 2008-08-25 2010-03-04 Olympus Imaging Corp Image playback apparatus
CN101998047A (en) * 2009-08-25 2011-03-30 鸿富锦精密工业(深圳)有限公司 Method and system for regulating horizontal position in camera
CN102169424A (en) * 2010-02-03 2011-08-31 三星电子株式会社 Method for transmitting image data and display apparatus and display method using the same

Similar Documents

Publication Publication Date Title
US11336820B2 (en) Method and terminal for acquire panoramic image
US20200302670A1 (en) Image processing method, electronic device, and storage medium
WO2021008456A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN111372126B (en) Video playing method, device and storage medium
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN111225042A (en) Data transmission method and device, computer equipment and storage medium
CN108038825B (en) Image processing method and mobile terminal
WO2015149457A1 (en) Picture display method and device
CN108449541B (en) Panoramic image shooting method and mobile terminal
KR20140104753A (en) Image preview using detection of body parts
CN109068055B (en) Composition method, terminal and storage medium
JP7389236B2 (en) Facial image transmission method, value transfer method, device, electronic device
CN110996117B (en) Video transcoding method and device, electronic equipment and storage medium
CN109726064B (en) Method, device and system for simulating abnormal operation of client and storage medium
EP4167566A1 (en) Screen recording method and screen recording system
CN110163833B (en) Method and device for determining opening and closing state of disconnecting link
CN108307105B (en) Shooting method, terminal and computer readable storage medium
CN110363729B (en) Image processing method, terminal equipment and computer readable storage medium
CN111106902B (en) Data message transmission method, device, equipment and computer readable storage medium
US20220141390A1 (en) Photographing method, device, and system, and computer-readable storage medium
CN108965769B (en) Video display method and device
CN111031246A (en) Shooting method and electronic equipment
CN107888975B (en) Video playing method, device and storage medium
CN110912830A (en) Method and device for transmitting data
WO2015070373A1 (en) Method and apparatus for converting multimedia content direction and terminal device

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: 13897564

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13897564

Country of ref document: EP

Kind code of ref document: A1