WO2019042369A1 - 一种自拍图片的处理方法、存储介质及移动终端 - Google Patents

一种自拍图片的处理方法、存储介质及移动终端 Download PDF

Info

Publication number
WO2019042369A1
WO2019042369A1 PCT/CN2018/103297 CN2018103297W WO2019042369A1 WO 2019042369 A1 WO2019042369 A1 WO 2019042369A1 CN 2018103297 W CN2018103297 W CN 2018103297W WO 2019042369 A1 WO2019042369 A1 WO 2019042369A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
self
timer
pixel
processing
Prior art date
Application number
PCT/CN2018/103297
Other languages
English (en)
French (fr)
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 捷开通讯(深圳)有限公司
Publication of WO2019042369A1 publication Critical patent/WO2019042369A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of picture processing, and in particular, to a method for processing a self-portrait picture, a storage medium, and a mobile terminal.
  • self-timer by camera is a kind of camera method that people often use.
  • a user takes a self-photograph through a smart phone or the like, it is usually performed by a front camera, because it can view his own posture and expression through the screen, so that it can be faster and more convenient.
  • Satisfied photos are taken, but the self-portrait photo content taken by the front camera is mirror image relationship with the actual scene, which will undoubtedly cause inconvenience to the user to observe the self-portrait picture, especially when there is a font in the self-timer picture, it will seriously interfere with the user. Read the text in the self-portrait picture.
  • an object of the present invention is to provide a method for processing a self-portrait picture, a storage medium, and a mobile terminal, which are intended to solve the problem that the content of the self-timer picture in the prior art is mirrored with the actual scene, which is disadvantageous for the user to read the self-timer.
  • the problem with the content of the picture is to provide a method for processing a self-portrait picture, a storage medium, and a mobile terminal, which are intended to solve the problem that the content of the self-timer picture in the prior art is mirrored with the actual scene, which is disadvantageous for the user to read the self-timer.
  • a method for processing a self-portrait picture comprising the steps of:
  • the method for processing a self-portrait picture wherein the method specifically includes the following steps:
  • the mobile terminal displays the picture pixel points according to the transformed three-dimensional coordinates, and obtains the processed self-timer picture.
  • the method for processing a self-portrait picture wherein the three-dimensional coordinates (x, y, z) of a picture pixel point of the self-portrait picture are obtained, and the three-dimensional coordinates of the picture pixel point are transformed into (-x, y, z)
  • the steps include:
  • the method for processing a self-portrait picture wherein the step of acquiring the three-dimensional coordinates (x, y, z) of the pixel of the picture of the self-timer picture further comprises the steps of:
  • a storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded by a processor and perform the following steps:
  • the original picture before processing is also cleared.
  • the step specifically includes:
  • the mobile terminal displays the picture pixel points according to the transformed three-dimensional coordinates, and obtains the processed self-timer picture.
  • the original picture before processing is also cleared.
  • the step of obtaining the three-dimensional coordinates (x, y, z) of the pixel of the picture of the self-timer picture, and converting the three-dimensional coordinates of the picture pixel to (-x, y, z), specifically includes:
  • the original picture before processing is also cleared.
  • the step of obtaining the three-dimensional coordinates (x, y, z) of the pixel of the picture of the self-timer picture further includes the steps of:
  • the original picture before processing is also cleared.
  • the self-timer picture is not displayed until the self-timer picture processing is completed.
  • the original picture before processing is also cleared.
  • the invention also provides a mobile terminal, comprising:
  • the storage medium is adapted to store a plurality of instructions, the instructions being suitable for a processing method of loading and executing a self-portrait picture by the processor, the processing method of the self-timer picture comprising the steps of:
  • the method for processing the self-timer picture specifically includes the following steps:
  • the mobile terminal displays the picture pixel points according to the transformed three-dimensional coordinates, and obtains the processed self-timer picture.
  • the step of obtaining the three-dimensional coordinates (x, y, z) of the pixel of the picture of the self-timer picture, and converting the three-dimensional coordinates of the picture pixel to (-x, y, z), specifically includes:
  • the step of obtaining the three-dimensional coordinates (x, y, z) of the pixel of the picture of the self-timer picture further includes the steps of:
  • control self-timer picture is not displayed before the self-timer picture processing is completed.
  • the present invention automatically performs mirror image processing on a picture taken by a user using a front camera, and then flips the self-timer picture content opposite to the actual scene horizontally, so that the picture content is consistent with the actual scene, that is, the self-timer picture can be directly normal.
  • the user can directly read the text and the like in the self-timer picture, which solves the problem that the self-timer picture content in the prior art is mirrored with the actual scene, which is not conducive to the user's problem of reading the self-timer picture content.
  • FIG. 1 is a flow chart of a preferred embodiment of a method for processing a self-portrait picture according to the present invention.
  • FIG. 2 is a structural block diagram of a preferred embodiment of the mobile terminal according to the present invention.
  • the present invention provides a method for processing a self-portrait picture, a storage medium, and a mobile terminal.
  • the present invention will be further described in detail below in order to make the objects, technical solutions and effects of the present invention more clear and clear. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • a method for processing a self-portrait picture comprising the steps of:
  • the picture taken by the user through the front camera is automatically mirrored, and the self-time picture content opposite to the actual scene is flipped horizontally, so that the displayed object becomes normal, and the user can directly read the self-timer picture.
  • Content such as text inside.
  • the processing method of the self-timer picture specifically includes the steps:
  • S1 define the center position of the screen as the origin, define the X axis along the horizontal direction of the screen, define the Y axis along the vertical direction of the screen, and define the direction of the vertical screen as the Z axis;
  • step S1 the center position of the screen is defined as the origin, so that the coordinates of the pixel points of the picture obtained by the self-timer are also taken as the origin of the center position of the screen, or the coordinate attribute of each pixel of the picture is based on the origin at the center of the screen and the X-axis along the screen.
  • the horizontal direction, the Y-axis is generated along the vertical direction of the screen, and the Z-axis is created along the vertical screen direction. This makes it easy to quickly mirror each pixel of the self-portrait picture and reduce the computational flow.
  • the mobile terminal displays the picture pixel points according to the transformed three-dimensional coordinates, and obtains the processed self-timer picture.
  • the x values in the three-dimensional coordinates of the respective pixel points in the captured self-timer image are all converted into -x, and the corresponding Y-axis coordinate y value and Z-axis coordinate z value (in fact, the z value is zero) All remain unchanged, that is, the self-timer picture is horizontally flipped or mirrored.
  • the step S2 specifically includes:
  • Each row in the matrix A corresponds to a picture pixel, that is, the three-dimensional coordinates (x, y, z) composed of x, y, and z in each row respectively correspond to one picture pixel, and the three-dimensional coordinates corresponding to each pixel point are composed.
  • Matrix in order to directly perform arithmetic processing on the matrix, realize mirror processing, and speed up image processing.
  • the specific M is directly multiplied by the matrix 1 to obtain the matrix N.
  • the difference between the matrix N and the matrix M is only that the values of the first column and the X column are opposite to each other, and then the matrix is
  • the picture pixel corresponding to each row in M is transformed to correspond to the corresponding row in the matrix N, and the three-dimensional coordinates of the pixel of the picture are defined according to the x, y, and z values of the corresponding row in the matrix N, for example, a certain pixel in the self-timer picture is assumed
  • the point a coordinate is (x 0 , y 0 , z 0 ), which is located in the mth row in the matrix M.
  • the pixel point The three-dimensional coordinates of a are transformed into (-x 0 , y 0 , z 0 ), and the three-dimensional coordinates of other pixels are processed in the same way, and then each pixel is presented on the screen of the mobile terminal according to the three-dimensional coordinates obtained after the processing, that is, A self-portrait picture that can display the actual image content in the forward direction.
  • step S20 is further included:
  • step S21 It is monitored whether the camera is photographed using the front camera, and when it is, the process proceeds to step S21 after the photographing is completed. Because the picture taken by the front camera will appear in a mirror image relationship with the actual scene, step S21 is needed to perform self-timer picture processing; if the user does not use the front camera to take a picture, but uses the rear view The camera takes a picture, and the content of the picture taken is consistent with the actual scene, so there is no need to perform image processing.
  • the self-timer picture is not displayed, that is, when the user performs a self-timer through the front camera, the mobile terminal displays on the screen before the gesture and the expression are performed.
  • the content is the same as the mirror image, which is the same as the prior art, but in the short time interval when the shutter is pressed until the image mirroring process is completed and presented again on the screen, the screen is vacant and no picture is displayed, so The user will not be seen the process of image mirror switching, creating a smooth self-timer experience for the user.
  • the original image is cleared to save system memory.
  • the mobile terminal can be a smart phone or a tablet or the like.
  • the present invention also provides a storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded by a processor and perform the following steps:
  • D Define the center position of the screen as the origin, define the X axis along the horizontal direction of the screen, define the Y axis along the vertical direction of the screen, and define the direction of the vertical screen as the Y axis;
  • the mobile terminal displays the picture pixel points according to the transformed three-dimensional coordinates, and obtains the processed self-timer picture.
  • step E specifically includes:
  • step E1 further includes the step E0:
  • the present invention further provides a mobile terminal, as shown in FIG. 2, including:
  • the processor 100 is adapted to implement each instruction
  • the storage medium 200 is adapted to store a plurality of instructions adapted to be processed by the processor and to perform a processing method of the self-portrait picture as described above.
  • the present invention automatically mirrors the picture taken by the user using the front camera, and then flips the self-timer picture content opposite to the actual scene horizontally, so that the picture content is consistent with the actual scene, that is, the self-timer picture can Directly and normally displaying the photographed object or scene, the user can directly read the text and the like in the self-timer picture, which solves the problem that the self-timer picture content in the prior art is mirrored with the actual scene, which is not conducive to the user's problem of reading the self-timer picture content.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本申请公开一种自拍图片的处理方法、存储介质及移动终端,其中,方法包括步骤:获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片。本申请解决了现有技术中自拍图片内容与实际景象呈镜像关系,不利于用户阅读自拍图片内容的问题。

Description

一种自拍图片的处理方法、存储介质及移动终端 技术领域
本发明涉及图片处理领域,尤其涉及一种自拍图片的处理方法、存储介质及移动终端。
背景技术
目前,通过相机自拍是人们经常采用的一种照相方式,用户通过智能手机等进行自拍时,通常是利用前置摄像头进行的,因为可以通过屏幕查看自己的姿势表情等,因而能够更快速、便捷地拍出满意的照片,但是通过前置摄像头拍摄的自拍照片内容与实际景象是呈镜像关系的,无疑会给用户观察自拍图片产生不便,尤其是在自拍图片中有字体时,会严重干扰用户对自拍图片中文字的阅读。
因此,现有技术还有待于改进和发展。
发明内容
鉴于上述现有技术的不足,本发明的目的在于提供一种自拍图片的处理方法、存储介质及移动终端,旨在解决现有技术中自拍图片内容与实际景象呈镜像关系,不利于用户阅读自拍图片内容的问题。
本发明的技术方案如下:
一种自拍图片的处理方法,其中,包括步骤:
获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理 后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片;在自拍图片处理完成后,将处理前的原有图片清除。
所述的自拍图片的处理方法,其中,具体包括步骤:
定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Z轴;
获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
所述的自拍图片的处理方法,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
将所述矩阵M乘以矩阵
Figure PCTCN2018103297-appb-000001
得到矩阵N=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z)。
所述的自拍图片的处理方法,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
所述的自拍图片的处理方法,其中,在自拍图片处理完成前,控制自拍图片不显示。
一种存储介质,其上存储有多条指令,其中,所述指令适合由处理器加载 并执行如下步骤:
获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片。
其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
其中,所述步骤具体包括:
定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Y轴;
获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
将所述矩阵M乘以矩阵
Figure PCTCN2018103297-appb-000002
得到矩阵N=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z)。
其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
其中,处理器加载并执行的步骤中,在自拍图片处理完成前,控制自拍图片不显示。
其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
本发明还提供了一种移动终端,其中,包括:
处理器,适于实现各指令;以及
存储介质,适于存储多条指令,所述指令适合由处理器加载并执行自拍图片的处理方法,所述自拍图片的处理方法包括步骤:
获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片;在自拍图片处理完成后,将处理前的原有图片清除。
其中,所述的自拍图片的处理方法具体包括步骤:
定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Z轴;
获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
将所述矩阵M乘以矩阵
Figure PCTCN2018103297-appb-000003
得到矩阵N=[-X Y Z],实现将所述 图片像素点的三维坐标变换为(-x,y,z)。
其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
其中,在自拍图片处理完成前,控制自拍图片不显示。
有益效果:本发明通过将用户利用前置摄像头拍摄的图片自动进行镜像处理,也即将与实际景象相反的自拍图片内容再进行水平翻转,使得图片内容与实际景象一致,也即自拍图片能够直接正常地显示所拍摄的物体或景象,用户可以直接阅读自拍图片内的文字等内容了,解决了现有技术中自拍图片内容与实际景象呈镜像关系,不利于用户阅读自拍图片内容的问题。
附图说明
图1为本发明所述自拍图片的处理方法的较佳实施例的流程图。
图2为本发明所述移动终端的较佳实施例结构框图。
具体实施方式
本发明提供一种自拍图片的处理方法、存储介质及移动终端,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
一种自拍图片的处理方法,其中,包括步骤:
获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片。
本发明中,将用户通过前置摄像头拍摄的图片自动进行镜像处理,也即将与实际景象相反的自拍图片内容再进行水平翻转,使得显示的物体变成正常的情况,用户即可以直接阅读自拍图片内的文字等内容。
所述的自拍图片的处理方法,如图1所示,具体包括步骤:
S1、定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Z轴;
步骤S1中,定义屏幕中心位置为原点,使得自拍得到的图片像素点坐标也是以屏幕中心位置为原点,或者说是图片的各个像素点的坐标属性是基于原点在屏幕中心位置、X轴沿屏幕水平方向、Y轴沿屏幕竖直方向、Z轴沿垂直屏幕方向所建立的三维坐标系产生的,这样能够方便快速对自拍图片的各个像素点进行镜像处理,减少运算流程。
S2、获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
S3、移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
所述步骤S2中,将拍摄得到的自拍图片中各个像素点的三维坐标中的x值均变换为-x,而相应的Y轴坐标y值及Z轴坐标z值(其实z值为零)均保持不变,也即实现将自拍图片进行水平翻转或者说是镜像处理。
较佳地,所述步骤S2具体包括:
S21、获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
矩阵A中每一行与一个图片像素点对应,即每一行中的x、y与z组成的三维坐标(x,y,z)分别与一个图片像素点对应,将各个像素点对应的三维坐标 构成矩阵,以便于后续直接对矩阵进行运算处理,实现镜像处理,加快镜像处理速度。
S22、将所述矩阵M乘以矩阵
Figure PCTCN2018103297-appb-000004
得到矩阵N=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z);
所述步骤S22中,将具体M直接与矩阵1相乘运算,得到矩阵N,可以看出,矩阵N与矩阵M的区别仅是第一列X列的值互为相反数,然后将与矩阵M中各行对应的图片像素点变换为与矩阵N中的相应行对应,并按矩阵N中相应行的x、y、z值定义图片像素点的三维坐标,例如,假设自拍图片中某一像素点a坐标为(x 0,y 0,z 0),其位于矩阵M中的第m行,经过矩阵变换后,矩阵N中的第m行为(-x 0 y 0 z 0),则像素点a的三维坐标变换为(-x 0,y 0,z 0),其他像素点的三维坐标作相同处理,然后按处理后得到的三维坐标将各像素点呈现在移动终端屏幕上,即得到了能够正向显示实际影像内容的自拍图片。
较佳地,所述步骤S21前还包括步骤S20:
监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入步骤S21。因为使用前置摄像头所拍摄的图片才会出现图片内容与实际景象呈镜像关系的情况,因而需要进行步骤S21,以进行自拍图片处理;若用户不是利用前置摄像头进行拍照,而是利用后置摄像头进行拍照,所拍摄的图片内容本就与实际景象一致,也就没必要进行镜像处理。
所述的自拍图片的处理方法,较佳地,在自拍图片处理完成前,控制自拍图片不显示,也即用户通过前置摄像头进行自拍时,在摆姿势、做表情前,移动终端屏幕上显示的内容跟镜子成像一样,也即跟现有技术一样,但是在按下快门的瞬间至图片镜像处理完成并再次呈现在屏幕上这短暂时间间隙内,屏幕 上空置、不显示任何图片,这样就不会给用户看到图片镜像切换的过程,给用户营造一种流畅的自拍体验。
当然也可以设置在这一时间间隙内,屏幕上显示“图片处理中,请稍等片刻”等字样。
在自拍图片处理完成后,将原有图片清除,以节省系统内存。
显然,所述移动终端可以为智能手机或平板等。
基于上述方法,本发明还提供了一种存储介质,其上存储有多条指令,其中,所述指令适合由处理器加载并执行如下步骤:
获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片。
所述的存储介质,其中,所述步骤具体包括:
D、定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Y轴;
E、获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
F、移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
所述的存储介质,其中,所述步骤E具体包括:
E1、获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵A=[X Y Z];
E2、将所述矩阵A乘以矩阵
Figure PCTCN2018103297-appb-000005
得到矩阵C=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z)。
所述的存储介质,其中,所述步骤E1前还包括步骤E0:
监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入步骤E1。
基于上述方法,本发明还提供了一种移动终端,如图2所示,包括:
处理器100,适于实现各指令;以及
存储介质200,适于存储多条指令,所述指令适合由处理器加载并执行如上所述的自拍图片的处理方法。
关于上述移动终端和存储介质的技术细节和好处已在上述方法中进行了详细阐述,此处不再赘述。
综上所述,本发明通过将用户利用前置摄像头拍摄的图片自动进行镜像处理,也即将与实际景象相反的自拍图片内容再进行水平翻转,使得图片内容与实际景象一致,也即自拍图片能够直接正常地显示所拍摄的物体或景象,用户可以直接阅读自拍图片内的文字等内容了,解决了现有技术中自拍图片内容与实际景象呈镜像关系,不利于用户阅读自拍图片内容的问题。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (20)

  1. 一种自拍图片的处理方法,其中,包括步骤:
    获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片;在自拍图片处理完成后,将处理前的原有图片清除。
  2. 根据权利要求1所述的自拍图片的处理方法,其中,具体包括步骤:
    定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Z轴;
    获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
    移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
  3. 根据权利要求2所述的自拍图片的处理方法,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
    获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
    将所述矩阵M乘以矩阵
    Figure PCTCN2018103297-appb-100001
    得到矩阵N=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z)。
  4. 根据权利要求3所述的自拍图片的处理方法,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
    监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
  5. 根据权利要求4所述的自拍图片的处理方法,其中,在自拍图片处理完成前,控制自拍图片不显示。
  6. 一种存储介质,其上存储有多条指令,其中,所述指令适合由处理器加载并执行如下步骤:
    获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片。
  7. 根据权利要求6所述的存储介质,其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
  8. 根据权利要求6所述的存储介质,其中,所述步骤具体包括:
    定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直方向为Y轴,定义垂直屏幕的方向为Z轴;
    获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
    移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
  9. 根据权利要求8所述的存储介质,其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
  10. 根据权利要求8所述的存储介质,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
    获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
    将所述矩阵M乘以矩阵
    Figure PCTCN2018103297-appb-100002
    得到矩阵N=[-X Y Z],实现将所述 图片像素点的三维坐标变换为(-x,y,z)。
  11. 根据权利要求10所述的存储介质,其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
  12. 根据权利要求8所述的存储介质,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
    监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
  13. 根据权利要求12所述的存储介质,其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
  14. 根据权利要求8所述的存储介质,其中,处理器加载并执行的步骤中,在自拍图片处理完成前,控制自拍图片不显示。
  15. 根据权利要求14所述的存储介质,其中,所述步骤中,在自拍图片处理完成后,还将处理前的原有图片清除。
  16. 一种移动终端,其中,包括:
    处理器,适于实现各指令;以及
    存储介质,适于存储多条指令,所述指令适合由处理器加载并执行自拍图片的处理方法,所述自拍图片的处理方法包括步骤:
    获取自拍图片的图片数据,将所述图片数据进行水平镜像处理,得到处理后的图片数据,处理后的图片数据供移动终端显示,即得到处理后的自拍图片;在自拍图片处理完成后,将处理前的原有图片清除。
  17. 根据权利要求16所述的移动终端,其中,所述的自拍图片的处理方法具体包括步骤:
    定义屏幕中心位置为原点,定义沿屏幕水平方向为X轴,定义沿屏幕竖直 方向为Y轴,定义垂直屏幕的方向为Z轴;
    获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z);
    移动终端根据变换后的三维坐标显示图片像素点,得到处理后的自拍图片。
  18. 根据权利要求17所述的移动终端,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z),并将所述图片像素点的三维坐标变换为(-x,y,z)的步骤,具体包括:
    获取自拍图片的图片像素点的三维坐标(x,y,z),根据所述三维坐标(x,y,z)构成矩阵M=[X Y Z];
    将所述矩阵M乘以矩阵
    Figure PCTCN2018103297-appb-100003
    得到矩阵N=[-X Y Z],实现将所述图片像素点的三维坐标变换为(-x,y,z)。
  19. 根据权利要求18所述的移动终端,其中,所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤前还包括步骤:
    监测是否使用前置摄像头进行拍照,当是时则在拍照完成后进入所述获取自拍图片的图片像素点的三维坐标(x,y,z)的步骤。
  20. 根据权利要求19所述的移动终端,其中,在自拍图片处理完成前,控制自拍图片不显示。
PCT/CN2018/103297 2017-08-30 2018-08-30 一种自拍图片的处理方法、存储介质及移动终端 WO2019042369A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710764046.4A CN107563960A (zh) 2017-08-30 2017-08-30 一种自拍图片的处理方法、存储介质及移动终端
CN201710764046.4 2017-08-30

Publications (1)

Publication Number Publication Date
WO2019042369A1 true WO2019042369A1 (zh) 2019-03-07

Family

ID=60978231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103297 WO2019042369A1 (zh) 2017-08-30 2018-08-30 一种自拍图片的处理方法、存储介质及移动终端

Country Status (2)

Country Link
CN (1) CN107563960A (zh)
WO (1) WO2019042369A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563960A (zh) * 2017-08-30 2018-01-09 惠州Tcl移动通信有限公司 一种自拍图片的处理方法、存储介质及移动终端
CN108600644B (zh) * 2018-07-17 2021-01-29 广东小天才科技有限公司 一种拍照方法、装置及可穿戴设备
WO2022040951A1 (zh) * 2020-08-26 2022-03-03 深圳市大疆创新科技有限公司 图像矫正方法和装置、图像采集设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5411786B2 (ja) * 2010-04-08 2014-02-12 日本放送協会 撮影装置および画像統合プログラム
CN105163017A (zh) * 2013-03-25 2015-12-16 锤子科技(北京)有限公司 一种自拍图像的展现方法及装置
CN106506938A (zh) * 2016-10-11 2017-03-15 乐视控股(北京)有限公司 图像处理方法及装置以及电子终端
CN106961558A (zh) * 2016-01-08 2017-07-18 中兴通讯股份有限公司 一种拍照处理方法和装置
CN107563960A (zh) * 2017-08-30 2018-01-09 惠州Tcl移动通信有限公司 一种自拍图片的处理方法、存储介质及移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5411786B2 (ja) * 2010-04-08 2014-02-12 日本放送協会 撮影装置および画像統合プログラム
CN105163017A (zh) * 2013-03-25 2015-12-16 锤子科技(北京)有限公司 一种自拍图像的展现方法及装置
CN106961558A (zh) * 2016-01-08 2017-07-18 中兴通讯股份有限公司 一种拍照处理方法和装置
CN106506938A (zh) * 2016-10-11 2017-03-15 乐视控股(北京)有限公司 图像处理方法及装置以及电子终端
CN107563960A (zh) * 2017-08-30 2018-01-09 惠州Tcl移动通信有限公司 一种自拍图片的处理方法、存储介质及移动终端

Also Published As

Publication number Publication date
CN107563960A (zh) 2018-01-09

Similar Documents

Publication Publication Date Title
WO2019095979A1 (zh) 视频图像处理方法、装置及终端
WO2018214365A1 (zh) 图像校正方法、装置、设备、系统及摄像设备和显示设备
WO2017107700A1 (zh) 一种实现图像配准的方法及终端
JP7101269B2 (ja) ポーズ補正
WO2022021965A1 (zh) 虚拟对象的调整方法、装置、电子设备、计算机存储介质及程序
WO2022022141A1 (zh) 图像显示方法、装置、计算机设备及存储介质
WO2019042369A1 (zh) 一种自拍图片的处理方法、存储介质及移动终端
US9137461B2 (en) Real-time camera view through drawn region for image capture
WO2020087729A1 (zh) 一种图像处理方法及装置、电子设备、存储介质
JP2021506019A (ja) 静的な映像認識
CN113556464A (zh) 拍摄方法、装置及电子设备
WO2021139764A1 (zh) 图像处理方法、装置、电子装置及存储介质
WO2024093763A1 (zh) 全景图像处理方法、装置、计算机设备、介质和程序产品
WO2018219274A1 (zh) 降噪处理方法、装置、存储介质及终端
WO2018219304A1 (zh) 照片处理方法、装置、计算机可读存储介质及电子设备
US20210289147A1 (en) Images with virtual reality backgrounds
CN114785957A (zh) 拍摄方法及其装置
CN114241127A (zh) 全景图像生成方法、装置、电子设备和介质
WO2018006669A1 (zh) 视差融合方法和装置
CN115134532A (zh) 图像处理方法、装置、存储介质及电子设备
CN111464740B (zh) 图像拍摄方法、装置、存储介质及电子设备
CN111314627B (zh) 用于处理视频帧的方法和装置
CN112383708A (zh) 拍摄方法、装置、电子设备及可读存储介质
CN107087114B (zh) 一种拍摄的方法及装置
WO2023061173A1 (zh) 图像处理方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1