CN108027646B - A terminal display anti-shake method and device - Google Patents

A terminal display anti-shake method and device Download PDF

Info

Publication number
CN108027646B
CN108027646B CN201680009578.0A CN201680009578A CN108027646B CN 108027646 B CN108027646 B CN 108027646B CN 201680009578 A CN201680009578 A CN 201680009578A CN 108027646 B CN108027646 B CN 108027646B
Authority
CN
China
Prior art keywords
image
terminal
relative
eyes
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680009578.0A
Other languages
Chinese (zh)
Other versions
CN108027646A (en
Inventor
李远友
罗巍
李娟�
唐玮
徐荣跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108027646A publication Critical patent/CN108027646A/en
Application granted granted Critical
Publication of CN108027646B publication Critical patent/CN108027646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A terminal display anti-shake method and device relate to the technical field of image stabilization and are used for solving the problem that a screen generated in the process of realizing display anti-shake has black edges. The RAM of the terminal (80, 90) includes a display memory buffer for storing a buffer image having a greater number of pixels in a horizontal direction and a greater number of pixels in a vertical direction than the number of pixels in the horizontal direction and the greater number of pixels in the vertical direction, respectively, of a display of the terminal (80, 90) in which a currently displayed image is a portion of the buffer image, the method comprising: the terminal (80, 90) acquires the amount of relative movement (201) of the terminal (80, 90) and the eyes of the user using the terminal (80, 90); and the terminal (80, 90) acquires an image to be displayed in the cache image according to the position relation and the relative motion amount between the current display image and the cache image, the image to be displayed is an image to be displayed in the display after the relative motion amount is compensated, and the number of pixels in the horizontal direction and the vertical direction of the image to be displayed is respectively the same as that of the pixels in the horizontal direction and the vertical direction of the display (202).

Description

一种终端显示防抖方法及装置A terminal display anti-shake method and device

技术领域technical field

本发明涉及图像稳定技术领域,尤其涉及一种终端显示防抖方法及装置。The present invention relates to the technical field of image stabilization, and in particular, to a terminal display anti-shake method and device.

背景技术Background technique

在终端播放视频的情况下,若终端存在抖动(例如,使用该终端的用户乘坐交通工具时),则会影响使用该终端的用户观看视频的稳定性。目前,为了提高终端存在抖动的情况下用户观看视频的稳定性,终端利用内置的运动传感器获取该终端的运动量,根据获取到的终端的运动量确定终端的位移补偿量,并根据该位移补偿量对该终端的屏幕中显示的图像进行补偿(例如,若获取到终端向左移动一毫米,则将终端的屏幕中显示的图像向右移动一毫米),从而尽量减少终端的屏幕中显示的图像的运动量,提高用户观看视频的稳定性。When the terminal plays a video, if the terminal shakes (for example, when a user using the terminal rides a vehicle), it will affect the stability of the user using the terminal watching the video. At present, in order to improve the stability of the user watching videos when the terminal shakes, the terminal uses the built-in motion sensor to obtain the motion amount of the terminal, determines the displacement compensation amount of the terminal according to the acquired motion amount of the terminal, and adjusts the displacement compensation amount according to the displacement compensation amount. The image displayed on the screen of the terminal is compensated (for example, if it is obtained that the terminal moves to the left by one millimeter, the image displayed on the screen of the terminal is moved to the right by one millimeter), so as to minimize the impact of the image displayed on the screen of the terminal. The amount of exercise improves the stability of users watching videos.

这种方法的缺点是,终端的屏幕显示的图像根据终端的运动量进行补偿时,会使得屏幕显示的图像出现黑边,即屏幕的某一边的一部分区域中无显示图像,另一边显示的图像超出屏幕边界的情况(例如,将终端的屏幕显示的图像向右移动5个像素,屏幕左边将出现5个像素的空白)。The disadvantage of this method is that when the image displayed on the screen of the terminal is compensated according to the amount of motion of the terminal, the image displayed on the screen will appear black borders, that is, there is no displayed image in a part of one side of the screen, and the image displayed on the other side exceeds The case of the screen boundary (for example, if the image displayed on the screen of the terminal is moved to the right by 5 pixels, a blank space of 5 pixels will appear on the left side of the screen).

发明内容SUMMARY OF THE INVENTION

本发明的实施例提供一种终端显示防抖方法及装置,用以解决在实现显示防抖过程中所产生的屏幕出现黑边的问题。Embodiments of the present invention provide a terminal display anti-shake method and device, which are used to solve the problem of black borders on the screen generated during the process of implementing display anti-shake.

为达到上述目的,本发明的实施例采用如下技术方案:To achieve the above object, the embodiments of the present invention adopt the following technical solutions:

第一方面,提供一种终端显示防抖方法,终端包括RAM和显示器,RAM包括显示内存缓冲区,显示内存缓冲区用于存储缓存图像,缓存图像的水平方向的像素数大于显示器的水平方向的像素数,缓存图像的垂直方向的像素数大于显示器的垂直方向的像素数,显示器中的当前显示图像为缓存图像中的一部分,方法包括:终端获取终端与使用终端的用户的眼睛的相对运动量;终端根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取待显示图像,待显示图像为对相对运动量进行补偿后,显示器中即将显示的图像,待显示图像的水平方向的像素数与显示器的水平方向的像素数相同,待显示图像的垂直方向的像素数与显示器的垂直方向的像素数相同。A first aspect provides a terminal display anti-shake method, the terminal includes a RAM and a display, the RAM includes a display memory buffer, the display memory buffer is used to store a cached image, and the number of pixels in the horizontal direction of the cached image is larger than that of the display in the horizontal direction. The number of pixels, the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, and the current displayed image in the display is a part of the cached image, and the method includes: the terminal acquires the terminal and the relative movement of the eyes of a user using the terminal; The terminal obtains the image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion. The image to be displayed is the image to be displayed on the display after the relative motion is compensated. The number of pixels in the horizontal direction of the image to be displayed The same as the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display.

本发明实施例提供的方法,终端获取到终端与使用终端的用户的眼睛的相对运动量之后,可以根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取对该相对运动量进行补偿后的待显示图像,由于缓存图像的水平方向的像素数大于显示器的水平方向的像素数,缓存图像的垂直方向的像素数大于显示器的垂直方向的像素数,从而使得待显示图像的水平方向的像素数可以与显示器的水平方向的像素数相同,待显示图像的垂直方向的像素数可以与显示器的垂直方向的像素数相同,因此,显示器在显示待显示图像时,显示器中不会出现黑边。In the method provided by the embodiment of the present invention, after the terminal obtains the relative movement amount of the eyes of the terminal and the user using the terminal, it can obtain the relative movement amount in the cache image according to the positional relationship between the currently displayed image and the cached image and the relative movement amount and compensate the relative movement amount. Since the number of pixels in the horizontal direction of the cached image is greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, so that the number of pixels in the horizontal direction of the to-be-displayed image is The number of pixels in the horizontal direction of the display can be the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed can be the same as the number of pixels in the vertical direction of the display.

结合第一方面,在第一种可能的实现方式中,相对运动量包括相对位移运动量和/或相对角度运动量。With reference to the first aspect, in a first possible implementation manner, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

该情况下,既可以对显示器中显示的图像进行位移补偿,也可以对显示器中显示的图像进行角度补偿。In this case, displacement compensation may be performed on the image displayed on the display, and angle compensation may be performed on the image displayed on the display.

结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,终端根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取待显示图像,包括:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,终端将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为待显示图像,其中,待显示图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,N为正整数;或者,当相对运动量为用户的眼睛相对于终端的角度运动量时,终端将当前显示图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,终端将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,终端将中间图像旋转目标角度后得到的图像确定为待显示图像,其中,中间图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,目标角度为用户的眼睛相对于终端的角度运动量的值,N为正整数。In combination with the first possible implementation manner of the first aspect, in the second possible implementation manner, the terminal acquires the image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion, including: When the movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the terminal will cache the data in the image with the current value. The image composed of N pixels in the display image corresponding to one-to-one is determined as the image to be displayed, wherein the coordinate value of any pixel in the image to be displayed in the cached image is higher than that in the currently displayed image. The coordinate value of the pixel corresponding to the pixel in the cached image is larger than the target value, the target value is the value of the displacement movement of the user's eyes relative to the terminal, and N is a positive integer; or, when the relative movement is the relative movement of the user's eyes relative to the terminal When the angular motion amount is , the terminal determines the image obtained by rotating the currently displayed image by the target angle as the image to be displayed, and the target angle is the value of the angular motion amount of the user's eyes relative to the terminal; or, when the relative motion amount is the user's eyes relative to the terminal When the displacement movement amount and the angular movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the terminal will cache the The image composed of N pixels corresponding to the N pixels in the currently displayed image is determined as the intermediate image, and the terminal determines the image obtained by rotating the intermediate image by the target angle as the image to be displayed, wherein any arbitrary value in the intermediate image is determined as the image to be displayed. The coordinate value of a pixel in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by the target value, and the target value is the value of the displacement movement of the user's eyes relative to the terminal, The target angle is the value of the angular movement of the user's eyes relative to the terminal, and N is a positive integer.

结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,终端根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取待显示图像,包括:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,终端根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,终端对第一图像进行处理得到第二图像并确定第二图像为待显示图像;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,终端根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,终端对第一图像进行处理得到第二图像,终端将第二图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;其中,当相对运动量的值表示用户的眼睛远离终端时,第一图像为当前显示图像中心部分的图像,终端对第一图像进行处理为终端放大第一图像;或者,当相对运动量的值表示用户的眼睛靠近终端时,当前显示图像为第一图像中心部分的图像,终端对第一图像进行处理为终端缩小第一图像。In combination with the first possible implementation manner of the first aspect, in a third possible implementation manner, the terminal acquires the image to be displayed in the cached image according to the positional relationship and relative motion between the currently displayed image and the cached image, including: When the movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the z-axis direction, the terminal determines the first position according to the positional relationship between the currently displayed image and the cached image and the relative movement amount. image, the terminal processes the first image to obtain a second image and determines that the second image is an image to be displayed; or, when the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal and the angular movement amount of the user's eyes relative to the terminal, and When the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the z-axis direction, the terminal determines the first image according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, and the terminal processes the first image to obtain the second image. , the terminal determines the image obtained by rotating the second image by the target angle as the image to be displayed, and the target angle is the value of the angular motion of the user's eyes relative to the terminal; wherein, when the value of the relative motion indicates that the user's eyes are far away from the terminal, the first An image is the image of the center part of the currently displayed image, and the terminal processes the first image so that the terminal enlarges the first image; or, when the value of the relative motion indicates that the user's eyes are close to the terminal, the currently displayed image is the center part of the first image. image, the terminal processes the first image so that the terminal reduces the first image.

结合第一方面的第一种可能的实现方式至第三种可能的实现方式中的任一种,在第四种可能的实现方式中,相对角度运动量包括用户的眼睛相对于终端在三维方向上的角度运动量。With reference to any one of the first possible implementation manner to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the relative angular movement amount includes the user's eyes relative to the terminal in a three-dimensional direction angular movement.

结合第一方面、第一方面的第一种可能的实现方式至第四种可能的实现方式中的任一种,在第五种可能的实现方式中,终端获取终端与使用终端的用户的眼睛的相对运动量,包括:终端采用虹膜技术或巩膜技术检测用户的眼睛相对于终端的运动,并获取用户的眼睛相对于终端的相对运动量。With reference to the first aspect and any one of the first possible implementation manner to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the terminal obtains the eyes of the terminal and the user who uses the terminal The relative movement amount includes: the terminal adopts the iris technology or the sclera technology to detect the movement of the user's eyes relative to the terminal, and obtains the relative movement amount of the user's eyes relative to the terminal.

由于虹膜技术或巩膜技术相比人脸识别技术而言,识别精度较高,因此,可以提高确定的相对运动量的精度。Since the iris technology or the sclera technology has higher recognition accuracy than the face recognition technology, the accuracy of the determined relative movement amount can be improved.

第二方面,提供一种终端,终端包括RAM和显示器,RAM包括显示内存缓冲区,显示内存缓冲区用于存储缓存图像,缓存图像的水平方向的像素数大于显示器的水平方向的像素数,缓存图像的垂直方向的像素数大于显示器的垂直方向的像素数,显示器中的当前显示图像为缓存图像中的一部分,终端包括:第一获取单元,用于获取终端与使用终端的用户的眼睛的相对运动量;第二获取单元,用于根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取待显示图像,待显示图像为对相对运动量进行补偿后,显示器中即将显示的图像,待显示图像的水平方向的像素数与显示器的水平方向的像素数相同,待显示图像的垂直方向的像素数与显示器的垂直方向的像素数相同。A second aspect provides a terminal, the terminal includes a RAM and a display, the RAM includes a display memory buffer, the display memory buffer is used to store a cached image, the number of pixels in the horizontal direction of the cached image is greater than the number of pixels in the horizontal direction of the display, and the cache The number of pixels in the vertical direction of the image is greater than the number of pixels in the vertical direction of the display, and the currently displayed image in the display is a part of the cached image. motion amount; a second acquisition unit, configured to acquire the image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion amount, the to-be-displayed image is the image to be displayed in the display after the relative motion amount is compensated, and the to-be-displayed image is to be displayed The number of pixels in the horizontal direction of the displayed image is the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display.

由于终端中的各个单元用于执行上述方法,终端的有益效果可参见方法部分所述的有益效果。Since each unit in the terminal is used to execute the above method, the beneficial effects of the terminal can be referred to the beneficial effects described in the method section.

结合第二方面,在第一种可能的实现方式中,相对运动量包括相对位移运动量和/或相对角度运动量。With reference to the second aspect, in a first possible implementation manner, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

该情况下,既可以对显示器中显示的图像进行位移补偿,也可以对显示器中显示的图像进行角度补偿。In this case, displacement compensation may be performed on the image displayed on the display, and angle compensation may be performed on the image displayed on the display.

结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,第二获取单元,具体用于:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为待显示图像,其中,待显示图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,N为正整数;或者,当相对运动量为用户的眼睛相对于终端的角度运动量时,将当前显示图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,将中间图像旋转目标角度后得到的图像确定为待显示图像,其中,中间图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,目标角度为用户的眼睛相对于终端的角度运动量的值,N为正整数。In combination with the first possible implementation manner of the second aspect, in the second possible implementation manner, the second acquisition unit is specifically configured to: when the relative motion amount is the displacement motion amount of the user's eyes relative to the terminal, and the user's eyes When the displacement movement amount relative to the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the N pixels in the cached image corresponding to the N pixels in the currently displayed image are composed of The image is determined to be the image to be displayed, wherein the coordinate value of any pixel in the image to be displayed in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by the target value , the target value is the value of the displacement movement amount of the user's eyes relative to the terminal, and N is a positive integer; or, when the relative movement amount is the angular movement amount of the user's eyes relative to the terminal, determine the image obtained by rotating the currently displayed image by the target angle For the image to be displayed, the target angle is the value of the angular movement of the user's eyes relative to the terminal; or, when the relative movement is the displacement movement of the user's eyes relative to the terminal and the angular movement of the user's eyes relative to the terminal, and the user's eyes When the displacement movement amount relative to the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the N pixels in the cached image corresponding to the N pixels in the currently displayed image are composed of The image is determined as the intermediate image, and the image obtained after the intermediate image is rotated by the target angle is determined as the image to be displayed, wherein the coordinate value of any pixel in the intermediate image in the cached image is higher than that in the currently displayed image. The coordinate value of the corresponding pixel in the cached image is larger than the target value, the target value is the value of the displacement movement of the user's eyes relative to the terminal, the target angle is the value of the angular movement of the user's eyes relative to the terminal, and N is a positive integer.

结合第二方面的第一种可能的实现方式,在第三种可能的实现方式中,第二获取单元,具体用于:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,对第一图像进行处理得到第二图像并确定第二图像为待显示图像;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,对第一图像进行处理得到第二图像,将第二图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;其中,当相对运动量的值表示用户的眼睛远离终端时,第一图像为当前显示图像中心部分的图像,对第一图像进行处理为放大第一图像;或者,当相对运动量的值表示用户的眼睛靠近终端时,当前显示图像为第一图像中心部分的图像,对第一图像进行处理为缩小第一图像。In combination with the first possible implementation manner of the second aspect, in a third possible implementation manner, the second acquisition unit is specifically used for: when the relative motion amount is the displacement motion amount of the user's eyes relative to the terminal, and the user's eyes When the displacement movement amount relative to the terminal is the displacement movement amount along the z-axis direction, the first image is determined according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, the first image is processed to obtain the second image, and the second image is determined. is the image to be displayed; or, when the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal and the angular movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the z-axis direction , determine the first image according to the positional relationship and relative motion between the currently displayed image and the cached image, process the first image to obtain the second image, and determine the image obtained by rotating the second image by the target angle as the image to be displayed. is the value of the angular motion of the user's eyes relative to the terminal; wherein, when the value of the relative motion indicates that the user's eyes are far away from the terminal, the first image is the image of the center part of the currently displayed image, and the first image is processed to enlarge the first image. or, when the value of the relative movement amount indicates that the user's eyes are close to the terminal, the currently displayed image is the image in the center part of the first image, and the first image is processed to reduce the first image.

结合第二方面的第一种可能的实现方式至第三种可能的实现方式中的任一种,在第四种可能的实现方式中,相对角度运动量包括用户的眼睛相对于终端在三维方向上的角度运动量。With reference to any one of the first possible implementation manner to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the relative angular movement amount includes the user's eyes relative to the terminal in a three-dimensional direction angular movement.

结合第二方面、第二方面的第一种可能的实现方式至第四种可能的实现方式中的任一种,在第五种可能的实现方式中,第一获取单元,具体用于:采用虹膜技术或巩膜技术检测用户的眼睛相对于终端的运动,并获取用户的眼睛相对于终端的相对运动量。With reference to the second aspect and any one of the first possible implementation manner to the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner, the first obtaining unit is specifically configured to: adopt The iris technology or the sclera technology detects the movement of the user's eyes relative to the terminal, and obtains the relative movement amount of the user's eyes relative to the terminal.

由于虹膜技术或巩膜技术相比人脸识别技术而言,识别精度较高,因此,可以提高确定的相对运动量的精度。Since the iris technology or the sclera technology has higher recognition accuracy than the face recognition technology, the accuracy of the determined relative movement amount can be improved.

第三方面,提供一种终端,终端包括RAM和显示器,RAM包括显示内存缓冲区,显示内存缓冲区用于存储缓存图像,缓存图像的水平方向的像素数大于显示器的水平方向的像素数,缓存图像的垂直方向的像素数大于显示器的垂直方向的像素数,显示器中的当前显示图像为缓存图像中的一部分,终端包括:存储器和处理器;存储器用于存储代码,处理器根据该代码执行以下动作:获取终端与使用终端的用户的眼睛的相对运动量;根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取待显示图像,待显示图像为对相对运动量进行补偿后,显示器中即将显示的图像,待显示图像的水平方向的像素数与显示器的水平方向的像素数相同,待显示图像的垂直方向的像素数与显示器的垂直方向的像素数相同。A third aspect provides a terminal, the terminal includes a RAM and a display, the RAM includes a display memory buffer, the display memory buffer is used to store a cached image, the number of pixels in the horizontal direction of the cached image is greater than the number of pixels in the horizontal direction of the display, and the cache The number of pixels in the vertical direction of the image is greater than the number of pixels in the vertical direction of the display. The currently displayed image in the display is a part of the cached image. The terminal includes: a memory and a processor; the memory is used for storing code, and the processor executes the following according to the code. Action: Obtain the relative motion of the eyes of the terminal and the user using the terminal; obtain the image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion. For an image to be displayed, the number of pixels in the horizontal direction of the image to be displayed is the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display.

由于终端中的各个器件用于执行上述方法,终端的有益效果可参见方法部分所述的有益效果。Since each device in the terminal is used to execute the above method, the beneficial effects of the terminal can be referred to the beneficial effects described in the method section.

结合第三方面,在第一种可能的实现方式中,相对运动量包括相对位移运动量和/或相对角度运动量。With reference to the third aspect, in a first possible implementation manner, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

该情况下,既可以对显示器中显示的图像进行位移补偿,也可以对显示器中显示的图像进行角度补偿。In this case, displacement compensation may be performed on the image displayed on the display, and angle compensation may be performed on the image displayed on the display.

结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,处理器,具体用于:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为待显示图像,其中,待显示图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,N为正整数;或者,当相对运动量为用户的眼睛相对于终端的角度运动量时,将当前显示图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,将缓存图像中的与当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,将中间图像旋转目标角度后得到的图像确定为待显示图像,其中,中间图像中的任意一个像素点在缓存图像中的坐标值比当前显示图像中的与该像素点对应的像素点在缓存图像中的坐标值大目标值,目标值为用户的眼睛相对于终端的位移运动量的值,目标角度为用户的眼睛相对于终端的角度运动量的值,N为正整数。With reference to the first possible implementation manner of the third aspect, in the second possible implementation manner, the processor is specifically configured to: when the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the user's eyes are relative to the terminal When the displacement movement amount of the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the image composed of N pixels in the cached image corresponding to the N pixels in the currently displayed image is stored. It is determined to be an image to be displayed, wherein the coordinate value of any pixel in the image to be displayed in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by the target value. The value is the value of the displacement movement amount of the user's eyes relative to the terminal, and N is a positive integer; or, when the relative movement amount is the angular movement amount of the user's eyes relative to the terminal, the image obtained by rotating the currently displayed image by the target angle is determined as the waiting To display the image, the target angle is the value of the angular movement of the user's eyes relative to the terminal; or, when the relative movement is the displacement movement of the user's eyes relative to the terminal and the angular movement of the user's eyes relative to the terminal, and the user's eyes are relative to the terminal. When the displacement movement amount of the terminal is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the image composed of N pixels in the cached image corresponding to the N pixels in the currently displayed image is stored. It is determined as an intermediate image, and the image obtained by rotating the intermediate image by the target angle is determined as the image to be displayed, wherein the coordinate value of any pixel in the intermediate image in the cached image is higher than that in the currently displayed image corresponding to the pixel. The coordinate value of the pixel in the cached image is larger than the target value, the target value is the value of the displacement movement of the user's eyes relative to the terminal, the target angle is the value of the angular movement of the user's eyes relative to the terminal, and N is a positive integer.

结合第三方面的第一种可能的实现方式,在第三种可能的实现方式中,处理器,具体用于:当相对运动量为用户的眼睛相对于终端的位移运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,对第一图像进行处理得到第二图像并确定第二图像为待显示图像;或者,当相对运动量为用户的眼睛相对于终端的位移运动量和用户的眼睛相对于终端的角度运动量、且用户的眼睛相对于终端的位移运动量为沿着z轴方向的位移运动量时,根据当前显示图像与缓存图像的位置关系和相对运动量确定第一图像,对第一图像进行处理得到第二图像,将第二图像旋转目标角度后得到的图像确定为待显示图像,目标角度为用户的眼睛相对于终端的角度运动量的值;其中,当相对运动量的值表示用户的眼睛远离终端时,第一图像为当前显示图像中心部分的图像,对第一图像进行处理为放大第一图像;或者,当相对运动量的值表示用户的眼睛靠近终端时,当前显示图像为第一图像中心部分的图像,对第一图像进行处理为缩小第一图像。With reference to the first possible implementation manner of the third aspect, in the third possible implementation manner, the processor is specifically configured to: when the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the user's eyes are relative to the terminal When the displacement movement amount of the terminal is the displacement movement amount along the z-axis direction, the first image is determined according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, the first image is processed to obtain the second image, and the second image is determined as the waiting image. display an image; or, when the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal and the angular movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the z-axis direction, The first image is determined according to the positional relationship and relative motion between the currently displayed image and the cached image, the second image is obtained by processing the first image, and the image obtained by rotating the second image by the target angle is determined as the image to be displayed, and the target angle is the user's The value of the angular motion of the eye relative to the terminal; wherein, when the value of the relative motion indicates that the user's eyes are far away from the terminal, the first image is the image of the center part of the currently displayed image, and the first image is processed to enlarge the first image; Alternatively, when the value of the relative movement amount indicates that the user's eyes are close to the terminal, the currently displayed image is the image in the center portion of the first image, and the first image is processed to reduce the size of the first image.

结合第三方面的第一种可能的实现方式至第三种可能的实现方式中的任一种,在第四种可能的实现方式中,相对角度运动量包括用户的眼睛相对于终端在三维方向上的角度运动量。With reference to any one of the first possible implementation manner to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the relative angular movement amount includes the user's eyes relative to the terminal in a three-dimensional direction angular movement.

结合第三方面、第三方面的第一种可能的实现方式至第四种可能的实现方式中的任一种,在第五种可能的实现方式中,处理器,具体用于:采用虹膜技术或巩膜技术检测用户的眼睛相对于终端的运动,并获取用户的眼睛相对于终端的相对运动量。With reference to the third aspect and any one of the first possible implementation manner to the fourth possible implementation manner of the third aspect, in the fifth possible implementation manner, the processor is specifically configured to: adopt the iris technology Or the scleral technology detects the movement of the user's eye relative to the terminal, and obtains the relative movement amount of the user's eye relative to the terminal.

由于虹膜技术或巩膜技术相比人脸识别技术而言,识别精度较高,因此,可以提高确定的相对运动量的精度。Since the iris technology or the sclera technology has higher recognition accuracy than the face recognition technology, the accuracy of the determined relative movement amount can be improved.

第四方面,提供一种存储一个或多个程序的计算机可读存储介质,一个或多个程序包括指令,指令当被终端执行时使终端执行第一方面提供的任一种方法。In a fourth aspect, a computer-readable storage medium storing one or more programs is provided, wherein the one or more programs include instructions, and the instructions, when executed by a terminal, cause the terminal to perform any one of the methods provided in the first aspect.

该计算机可读存储介质用于终端实现上述方法,因此,其有益效果可参见方法部分所述的有益效果。The computer-readable storage medium is used for the terminal to implement the above method, and therefore, for the beneficial effects, please refer to the beneficial effects described in the method section.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例提供的一种终端的组成示意图;FIG. 1 is a schematic diagram of the composition of a terminal according to an embodiment of the present invention;

图2为本发明实施例提供的一种终端显示防抖方法的流程图;FIG. 2 is a flowchart of a terminal display anti-shake method according to an embodiment of the present invention;

图3为本发明实施例提供的缓存图像与当前显示图像的大小关系示意图;3 is a schematic diagram of the size relationship between a cached image and a currently displayed image provided by an embodiment of the present invention;

图4-a为本发明实施例提供的一种当前显示图像与缓存图像的位置关系示意图;4-a is a schematic diagram of a positional relationship between a currently displayed image and a cached image according to an embodiment of the present invention;

图4-b为本发明实施例提供的一种待显示图像与缓存图像的位置关系示意图;4-b is a schematic diagram of a positional relationship between an image to be displayed and a cached image according to an embodiment of the present invention;

图5为本发明实施例提供的一种当前显示图像与第一图像的位置关系示意图;5 is a schematic diagram of a positional relationship between a currently displayed image and a first image according to an embodiment of the present invention;

图6-a为本发明实施例提供的一种当前显示图像与缓存图像的位置关系示意图;6-a is a schematic diagram of a positional relationship between a currently displayed image and a cached image according to an embodiment of the present invention;

图6-b为本发明实施例提供的一种显示器中显示的图像的示意图;6-b is a schematic diagram of an image displayed in a display provided by an embodiment of the present invention;

图7-a为本发明实施例提供的一种当前显示图像与旋转后的当前显示图像的位置关系示意图;7-a is a schematic diagram of a positional relationship between a currently displayed image and a rotated currently displayed image according to an embodiment of the present invention;

图7-b为本发明实施例提供的又一种当前显示图像与旋转后的当前显示图像的位置关系示意图;FIG. 7-b is a schematic diagram of a positional relationship between another currently displayed image and a rotated currently displayed image according to an embodiment of the present invention;

图7-c为本发明实施例提供的又一种当前显示图像与旋转后的当前显示图像的位置关系示意图;7-c is a schematic diagram of a positional relationship between another currently displayed image and a rotated currently displayed image provided by an embodiment of the present invention;

图8为本发明实施例提供的一种终端的组成示意图;FIG. 8 is a schematic diagram of the composition of a terminal according to an embodiment of the present invention;

图9为本发明实施例提供的又一种终端的组成示意图。FIG. 9 is a schematic diagram of the composition of another terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

如图1所示,为一种终端的组成示意图,本发明实施例提供的方法可以应用于该终端中。其中,终端包括硬件和软件部分,软件部分具体包括操作系统、中间件、显示防抖模块以及应用程序等,操作系统具体包括传感器数据处理模块和Framebuffer等,硬件部分具体包括中央处理器(Central Processing Unit,简称CPU)、图形处理器(GraphicsProcessing Unit,简称GPU)、显示器、内存以及传感器等。目前对终端显示的内容进行防抖的方法包括:传感器获取终端的运动数据,并将运动数据传递给传感器数据处理模块,传感器数据处理模块对运动数据进行处理后,将处理后的运动数据传递给显示防抖模块,显示防抖模块采用显示防抖算法对经传感器数据处理模块处理后的运动数据进行计算,确定终端显示的内容的补偿量,Framebuffer根据补偿量将内存中的图像数据显示在显示器中。As shown in FIG. 1 , it is a schematic diagram of the composition of a terminal, and the method provided by the embodiment of the present invention can be applied to the terminal. The terminal includes hardware and software. The software includes the operating system, middleware, display anti-shake module, and application programs. The operating system includes the sensor data processing module and Framebuffer. The hardware includes the central processing unit (Central Processing Unit). Unit, referred to as CPU), graphics processor (GraphicsProcessing Unit, referred to as GPU), display, memory, and sensors. The current method for anti-shake content displayed on the terminal includes: a sensor acquires the motion data of the terminal, and transmits the motion data to the sensor data processing module. After the sensor data processing module processes the motion data, it transmits the processed motion data to Display anti-shake module, the display anti-shake module uses the display anti-shake algorithm to calculate the motion data processed by the sensor data processing module to determine the compensation amount of the content displayed by the terminal, and the Framebuffer displays the image data in the memory on the display according to the compensation amount. middle.

本发明实施例提供了一种终端显示防抖方法,所述终端包括随机存取存储器(Random-Access Memory,简称RAM)和显示器,所述RAM包括显示内存缓冲区,所述显示内存缓冲区用于存储缓存图像,所述缓存图像的水平方向的像素数大于所述显示器的水平方向的像素数,所述缓存图像的垂直方向的像素数大于所述显示器的垂直方向的像素数,所述显示器中的当前显示图像为所述缓存图像中的一部分,如图2所示,该方法包括:An embodiment of the present invention provides a display anti-shake method for a terminal. The terminal includes a random access memory (Random-Access Memory, RAM for short) and a display, and the RAM includes a display memory buffer, and the display memory buffer is used for For storing a cached image, the number of pixels in the horizontal direction of the cached image is greater than the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, and the display The currently displayed image in is a part of the cached image, as shown in Figure 2, the method includes:

201、所述终端获取所述终端与使用所述终端的用户的眼睛的相对运动量。201. The terminal acquires the relative movement amount of the eyes of the terminal and a user using the terminal.

其中,本发明实施例中的终端可以为手机、虚拟现实(Virtual Reality,简称VR)设备、增强现实(Augmented Reality,AR)设备、平板电脑、智能手表、投影设备以及其他用户在观看图像时设备和人眼可能发送抖动的显示设备。Wherein, the terminal in the embodiment of the present invention may be a mobile phone, a virtual reality (Virtual Reality, VR for short) device, an augmented reality (Augmented Reality, AR) device, a tablet computer, a smart watch, a projection device, and other devices when users watch images and the human eye may transmit jitter to the display device.

本发明实施例中终端的显示器中显示的图像可以为视频图像、游戏画面以及网页内容等,本发明实施例对此不进行限制。In the embodiment of the present invention, the image displayed on the display of the terminal may be a video image, a game screen, and web page content, which is not limited in the embodiment of the present invention.

本发明实施例提供的方法在具体实现时,终端执行步骤201的触发条件可以为终端的屏幕被点亮。When the method provided by the embodiment of the present invention is specifically implemented, the trigger condition for the terminal to perform step 201 may be that the screen of the terminal is lit.

其中,显示内存缓冲区用于缓存一帧完整图像的数据(具体包括图像中的每个像素点的位置及灰度值等),终端在显示图像时,该图像已经在显示内存缓冲区中绘制完毕,显示内存缓冲区中的数据可以通过Framebuffer进行管理。Among them, the display memory buffer is used to cache the data of a complete frame of image (specifically including the position and gray value of each pixel in the image, etc.), when the terminal displays the image, the image has been drawn in the display memory buffer After that, the data in the display memory buffer can be managed by Framebuffer.

本发明实施例中,缓存图像的水平方向的像素数和垂直方向的像素数可以根据终端的显示器的水平方向的像素数和垂直方向的像素数进行确定,缓存图像的水平方向的像素数和垂直方向的像素数分别大于显示器的水平方向的像素数和垂直方向的像素数。In this embodiment of the present invention, the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the cached image may be determined according to the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the display of the terminal, and the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the cached image The number of pixels in the direction is greater than the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the display, respectively.

示例性的,如图3所示,区域1代表终端的显示器,其水平方向的像素数为X1,垂直方向的像素数为Y1,区域2代表缓存图像,其水平方向的像素数为X2,垂直方向的像素数为Y2,其中,X2大于X1,Y2大于Y1Exemplarily, as shown in FIG. 3 , area 1 represents the display of the terminal, and the number of pixels in the horizontal direction is X 1 , the number of pixels in the vertical direction is Y 1 , and the area 2 represents the cache image, and the number of pixels in the horizontal direction is X 1 . 2 , the number of pixels in the vertical direction is Y 2 , where X 2 is greater than X 1 , and Y 2 is greater than Y 1 .

可选的,所述相对运动量包括相对位移运动量和/或相对角度运动量。Optionally, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

该情况下,既可以对显示器中显示的图像进行位移补偿,也可以对显示器中显示的图像进行角度补偿。In this case, displacement compensation may be performed on the image displayed on the display, and angle compensation may be performed on the image displayed on the display.

可选的,步骤201在具体实现时,包括:所述终端采用虹膜技术或巩膜技术检测所述用户的眼睛相对于所述终端的运动,并获取所述用户的眼睛相对于所述终端的相对运动量。Optionally, when step 201 is specifically implemented, it includes: the terminal uses iris technology or scleral technology to detect the movement of the user's eyes relative to the terminal, and obtains the relative movement of the user's eyes relative to the terminal. amount of exercise.

具体的,终端可以采用终端的前置摄像头获取多帧前景图像,并通过虹膜技术(或巩膜技术)识别前景图像中的虹膜(或巩膜),根据多帧前景图像中的虹膜(或巩膜)的位置及转动角度等确定用户的眼睛相对于终端的相对运动量。Specifically, the terminal can use the front camera of the terminal to acquire multiple frames of foreground images, and identify the iris (or sclera) in the foreground image through the iris technology (or sclera technology), according to the iris (or sclera) in the multiple frames of foreground images. The position and rotation angle determine the relative movement amount of the user's eyes relative to the terminal.

由于虹膜技术或巩膜技术相比人脸识别技术而言,识别精度较高,因此,可以提高确定的相对运动量的精度。Since the iris technology or the sclera technology has higher recognition accuracy than the face recognition technology, the accuracy of the determined relative movement amount can be improved.

另外,终端还可以基于深度传感器的技术(例如结构光、激光传感器等)对用户的眼睛进行三维建模,通过用户的眼睛运动的信息、用户的眼睛和终端的距离信息以及用户的两眼的距离等信息,精确计算相对运动量。In addition, the terminal can also perform three-dimensional modeling of the user's eyes based on the depth sensor technology (such as structured light, laser sensor, etc.) Distance and other information to accurately calculate relative motion.

202、所述终端根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量在所述缓存图像中获取待显示图像,所述待显示图像为对所述相对运动量进行补偿后,所述显示器中即将显示的图像,所述待显示图像的水平方向的像素数与所述显示器的水平方向的像素数相同,所述待显示图像的垂直方向的像素数与所述显示器的垂直方向的像素数相同。202. The terminal acquires an image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion amount, where the to-be-displayed image is obtained after compensating for the relative motion amount, For the image to be displayed in the display, the number of pixels in the horizontal direction of the image to be displayed is the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display. the same number of pixels.

需要说明的是,当终端获取到相对运动量时,由于终端显示于显示器的图像在显示到显示器前,已经在显示内存缓冲区中绘制完毕,因此,终端可以快速的确定待显示图像,并快速的显示待显示图像。It should be noted that, when the terminal obtains the relative motion, since the image displayed by the terminal on the display has been drawn in the display memory buffer before being displayed on the display, the terminal can quickly determine the image to be displayed, and quickly Displays the image to be displayed.

具体的,当相对位移量为不同的运动量时,步骤202的执行方式也不相同,以下以五种情况为例分别介绍步骤202的实现方式:Specifically, when the relative displacement amounts are different motion amounts, the execution methods of step 202 are also different. The following five cases are used as examples to introduce the realization methods of step 202:

方式一:当所述相对运动量为所述用户的眼睛相对于所述终端的位移运动量、且所述用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,所述终端将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为所述待显示图像,其中,所述待显示图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端的位移运动量的值,N为正整数。Mode 1: When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the x-axis direction or along the y-axis direction When the displacement movement amount is , the terminal determines an image composed of N pixels in the cached image that correspond to N pixels in the currently displayed image as the to-be-displayed image, wherein the The coordinate value of any pixel in the image to be displayed in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by a target value, and the target The value is the value of the displacement movement amount of the user's eyes relative to the terminal, and N is a positive integer.

其中,x-y垂直坐标系所在的平面与显示器所在平面为同一平面或平行的平面。Wherein, the plane where the x-y vertical coordinate system is located and the plane where the display is located are the same plane or a parallel plane.

方式一在具体实现时,可以将当前显示图像中的一个像素点作为第一基准像素点,将第一基准像素点的坐标增加目标值得到第二基准像素点,然后根据第一基准像素点在当前显示图像中的位置,以第二基准像素点作为基准在缓存图像中获取待显示图像,第二基准像素点在待显示图像中的位置与第一基准像素点在当前显示图像中的位置相同。In the specific implementation of the first method, a pixel in the currently displayed image can be used as the first reference pixel, the coordinates of the first reference pixel are increased by the target value to obtain the second reference pixel, and then according to the first reference pixel The position in the currently displayed image, the image to be displayed is obtained from the cached image based on the second reference pixel point, the position of the second reference pixel point in the to-be-displayed image is the same as the position of the first reference pixel point in the currently displayed image .

示例性的,基于图3所述的示例,参见图4-a,A为第一基准像素点,其在缓存图像中的坐标值为(x,y),若位移运动量的值为[w1,0],则将第一基准像素点增加[w1,0],得到第二基准像素点A′,参见图4-b,A′在缓存图像中的坐标值为(x+w1,y),若A为当前显示图像中的水平方向的第一个像素点、且为垂直方向的第一个像素点,则终端可以以A′为基准,确定水平方向的X1个像素点、垂直方向的Y1个像素点所组成的图像为待显示图像,在该示例中,当前显示图像即图4-a中的区域1中的图像,待显示图像即图4-b中的区域1中的图像,该示例中的w1为正值。Exemplarily, based on the example described in FIG. 3, referring to FIG. 4-a, A is the first reference pixel point, and its coordinate value in the cached image is (x, y), if the value of the displacement movement amount is [w 1 , 0], then add [w 1 , 0] to the first reference pixel to obtain the second reference pixel A', see Figure 4-b, the coordinate value of A' in the cached image is (x+w 1 , y), if A is the first pixel point in the horizontal direction in the current display image, and is the first pixel point in the vertical direction, then the terminal can use A' as the benchmark to determine X 1 pixel point in the horizontal direction, The image formed by Y 1 pixels in the vertical direction is the image to be displayed. In this example, the currently displayed image is the image in the area 1 in FIG. 4-a, and the image to be displayed is the area 1 in FIG. 4-b. The image in , w 1 in this example is a positive value.

需要说明的是,本发明实施例中的目标值可以通过[w1,w2]表示,其中,w1和w2分别表示沿x轴和y轴的相对位移运动量,w1和w2均可以通过携带的正负号区分相对位移运动量的方向(沿着相应轴线的正方向还是反方向)。当然,该种表示目标值的方法中的各个值之间也可以为其他顺序,本发明实施例对此不做具体限定。本发明实施例中也只是举例说明了一种目标值的表示方法,实际上也可以采用其他方法进行表示。It should be noted that the target value in the embodiment of the present invention can be represented by [w 1 , w 2 ], where w 1 and w 2 represent the relative displacement motion along the x-axis and y-axis, respectively, and w 1 and w 2 are both The direction of the relative displacement movement amount (positive or negative along the corresponding axis) can be distinguished by the sign carried. Certainly, the values in the method for representing the target value may also be in other sequences, which are not specifically limited in this embodiment of the present invention. The embodiments of the present invention only illustrate a method for expressing the target value, and other methods may also be used to express the target value in fact.

方式二:当所述相对运动量为所述用户的眼睛相对于所述终端的位移运动量、且所述用户的眼睛相对于所述终端的位移运动量为沿着z轴方向的位移运动量时,所述终端根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,所述终端对所述第一图像进行处理得到第二图像并确定所述第二图像为所述待显示图像。Method 2: When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is the displacement movement amount along the z-axis direction, the The terminal determines a first image according to the positional relationship between the currently displayed image and the cached image and the relative motion, the terminal processes the first image to obtain a second image, and determines that the second image is the Image to be displayed.

其中,当所述相对运动量的值表示所述用户的眼睛远离所述终端时,所述第一图像为所述当前显示图像中心部分的图像,所述终端对所述第一图像进行处理为所述终端放大所述第一图像;或者,当所述相对运动量的值表示所述用户的眼睛靠近所述终端时,所述当前显示图像为所述第一图像中心部分的图像,所述终端对所述第一图像进行处理为所述终端缩小所述第一图像。Wherein, when the value of the relative movement amount indicates that the user's eyes are far away from the terminal, the first image is the image of the central part of the currently displayed image, and the terminal processes the first image as the the terminal zooms in on the first image; or, when the value of the relative movement amount indicates that the user's eyes are close to the terminal, the currently displayed image is an image of the central part of the first image, and the terminal has The first image is processed so that the terminal reduces the first image.

方式二在具体实现时,可以先根据相对运动量换算一个水平方向的像素数k1和垂直方向的像素数k2,相对运动量越大时,k1和k2也越大,k1和k2的比值与当前显示图像中的水平方向的像素数和垂直方向的像素数的比值相同,以当前显示图像为基准,在缓存图像中获取比当前显示图像左右方向各多k1个像素数、上下方向各多k2个像素数的图像作为第一图像,然后将第一图像缩小至第二图像,第二图像的水平方向的像素数和垂直方向的像素数分别与显示器的水平方向的像素数和垂直方向的像素数相同。In the specific implementation of the second method, the number of pixels k 1 in the horizontal direction and the number of pixels in the vertical direction k 2 can be converted according to the relative motion amount. The ratio is the same as the ratio of the number of pixels in the horizontal direction and the number of pixels in the vertical direction in the currently displayed image. Based on the currently displayed image, the cached image is obtained by k 1 pixel in the left and right directions of the currently displayed image, up and down. The image with more than k 2 pixels in each direction is used as the first image, and then the first image is reduced to the second image, and the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the second image are respectively the same as the number of pixels in the horizontal direction of the display. The same as the number of pixels in the vertical direction.

示例性的,如图5所示,当k1=2,k2=3时,确定的第一图像与当前显示图像的位置关系可参见图5。Exemplarily, as shown in FIG. 5 , when k 1 =2, k 2 =3, the determined positional relationship between the first image and the currently displayed image may be referred to in FIG. 5 .

其中,根据相对运动量换算k1和k2的方法可以为:确定一个预设值,该预设值对应一个水平方向的像素点,k1等于相对运动量除以该预设值的结果取整后的值,k2根据k2与k1的比值确定。Wherein, the method of converting k 1 and k 2 according to the relative motion amount may be: determine a preset value, the preset value corresponds to a pixel point in the horizontal direction, and k 1 is equal to the result of dividing the relative motion amount by the preset value after rounding The value of k 2 is determined according to the ratio of k 2 to k 1 .

方式三:当所述相对运动量为所述用户的眼睛相对于所述终端的角度运动量时,所述终端将所述当前显示图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端的角度运动量的值。Mode 3: when the relative movement amount is the angular movement amount of the user's eyes relative to the terminal, the terminal determines the image obtained by rotating the currently displayed image by the target angle as the to-be-displayed image, and the The target angle is the value of the angular movement amount of the user's eyes relative to the terminal.

可选的,所述相对角度运动量包括所述用户的眼睛相对于所述终端在三维方向上的角度运动量。Optionally, the relative angular movement amount includes an angular movement amount of the user's eyes relative to the terminal in a three-dimensional direction.

示例性的,基于图3所述的示例,图6-a中的区域1中的图像为当前显示图像,当终端获取到的角度运动量为用户的眼睛相对于终端绕着z轴逆时针旋转了s1°时,终端可以将当前显示图像绕着z轴逆时针旋转s1°进行显示,显示器中显示的图像如图6-b所示。Exemplarily, based on the example described in FIG. 3 , the image in area 1 in FIG. 6-a is the currently displayed image, and the angular motion obtained by the terminal is the counterclockwise rotation of the user's eyes around the z-axis relative to the terminal. When s 1 °, the terminal can rotate the currently displayed image counterclockwise around the z-axis by s 1 ° to display, and the image displayed on the display is shown in Figure 6-b.

另外,终端获取到的相对角度运动量也可以为用户的眼睛相对于终端绕着x轴和y轴旋转的角度。示例性的,图7-a、图7-b和图7-c分别示出了当前显示图像绕着z轴、y轴和x轴旋转后显示器中显示的图像,其中,图7-a、图7-b和图7-c中,显示器中显示的图像为当前显示图像与旋转后的当前显示图像的公共部分。In addition, the relative angular movement amount obtained by the terminal may also be an angle at which the user's eyes rotate relative to the terminal around the x-axis and the y-axis. Exemplarily, Figures 7-a, 7-b and 7-c respectively show the images displayed in the display after the currently displayed image is rotated around the z-axis, the y-axis and the x-axis, wherein Figures 7-a, In Fig. 7-b and Fig. 7-c, the image displayed in the display is the common part of the currently displayed image and the rotated currently displayed image.

需要说明的是,本发明实施例中的目标角度可以通过[s1,s2,s3]表示,其中,s1、s2和s3分别表示绕着x轴、绕着y轴和绕着z轴的相对角度运动量,s1、s2和s3均可以通过携带的正负号区分相对角度运动量的方向(绕着相应轴线的顺时针还是逆时针)。当然,该种表示目标角度的方法中的各个值之间也可以为其他顺序,本发明实施例对此不做具体限定。本发明实施例中也只是举例说明了一种目标角度的表示方法,实际上也可以采用其他方法进行表示。It should be noted that, the target angle in the embodiment of the present invention may be represented by [s 1 , s 2 , s 3 ], where s 1 , s 2 and s 3 respectively represent around the x-axis, around the y-axis and around the According to the relative angular motion of the z-axis, s 1 , s 2 and s 3 can all distinguish the direction of the relative angular motion (clockwise or counterclockwise around the corresponding axis) by the sign carried. Certainly, the values in the method for representing the target angle may also be in other sequences, which are not specifically limited in this embodiment of the present invention. In the embodiment of the present invention, only a method for expressing the target angle is exemplified, and in fact, other methods may also be used for expressing.

方式四:当所述相对运动量为所述用户的眼睛相对于所述终端的位移运动量和所述用户的眼睛相对于所述终端的角度运动量、且所述用户的眼睛相对于所述终端的位移运动量为沿着z轴方向的位移运动量时,所述终端根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,所述终端对所述第一图像进行处理得到第二图像,所述终端将所述第二图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端的角度运动量的值。Mode 4: When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal, the angular movement amount of the user's eyes relative to the terminal, and the displacement of the user's eyes relative to the terminal When the movement amount is the displacement movement amount along the z-axis direction, the terminal determines the first image according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, and the terminal processes the first image A second image is obtained, and the terminal determines an image obtained by rotating the second image by a target angle as the to-be-displayed image, where the target angle is a value of the angular motion of the user's eyes relative to the terminal.

其中,确定第二图像的过程可以参见方式二,旋转第二图像的方法可以参见方式三,在此不再赘述。The process of determining the second image may refer to the second mode, and the method of rotating the second image may refer to the third mode, which will not be repeated here.

方式五:当所述相对运动量为所述用户的眼睛相对于所述终端的位移运动量和所述用户的眼睛相对于所述终端的角度运动量、且所述用户的眼睛相对于终端的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量时,所述终端将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,所述终端将所述中间图像旋转目标角度后得到的图像确定为所述待显示图像,其中,所述中间图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端的位移运动量的值,所述目标角度为所述用户的眼睛相对于所述终端的角度运动量的值,N为正整数。Mode 5: When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal and the angular movement amount of the user's eyes relative to the terminal, and the displacement movement amount of the user's eyes relative to the terminal is When the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction, the terminal will be composed of N pixel points in the cached image that correspond one-to-one with the N pixel points in the currently displayed image. The image of the intermediate image is determined as the intermediate image, and the terminal determines the image obtained by rotating the intermediate image by the target angle as the image to be displayed, wherein the coordinates of any pixel in the intermediate image in the cached image The value is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by a target value, and the target value is the value of the displacement movement of the user's eyes relative to the terminal , the target angle is the value of the angular movement of the user's eyes relative to the terminal, and N is a positive integer.

其中,确定中间图像的过程可以采用方式一中的确定待显示图像的方法进行确定,旋转中间图像的方法可以参见方式三,在此不再赘述。The process of determining the intermediate image may be determined by the method for determining the image to be displayed in the first mode, and the method for rotating the intermediate image may refer to the third mode, which will not be repeated here.

在本发明实施例中,当相对运动量包括多个维度上的位移运动量时,可以依次根据多个维度上的位移运动量确定待显示图像,当相对运动量包括多个维度上的角度运动量时同理。In this embodiment of the present invention, when the relative motion includes displacement motions in multiple dimensions, the image to be displayed may be determined according to the displacement motions in multiple dimensions in sequence, and the same is true when the relative motions include angular motions in multiple dimensions.

203、所述终端将所述待显示图像显示在所述显示器中。203. The terminal displays the image to be displayed on the display.

本发明实施例提供的方法可以应用在多种生活场景中,示例性的,在用户乘坐地铁(或公交车)的应用场景下,若用户正在浏览图片,由于地铁(或公交车)的晃动,会导致用户的眼睛和该用户的终端之间产生相对运动,从而使得用户无法稳定的浏览图片,该情况下,终端可以获取相对运动量,并确定待显示图像后在显示器中进行显示。The method provided by the embodiment of the present invention can be applied in various life scenarios. Exemplarily, in the application scenario where the user takes the subway (or bus), if the user is browsing pictures, due to the shaking of the subway (or bus), This will cause relative movement between the user's eyes and the user's terminal, so that the user cannot browse pictures stably. In this case, the terminal can obtain the relative movement amount, and display the image to be displayed on the display after determining it.

本发明实施例提供的方法,终端获取到终端与使用终端的用户的眼睛的相对运动量之后,可以根据当前显示图像与缓存图像的位置关系和相对运动量在缓存图像中获取对该相对运动量进行补偿后的待显示图像,由于缓存图像的水平方向的像素数大于显示器的水平方向的像素数,缓存图像的垂直方向的像素数大于显示器的垂直方向的像素数,从而使得待显示图像的水平方向的像素数可以与显示器的水平方向的像素数相同,待显示图像的垂直方向的像素数可以与显示器的垂直方向的像素数相同,因此,显示器在显示待显示图像时,显示器中不会出现黑边。In the method provided by the embodiment of the present invention, after the terminal obtains the relative movement amount of the eyes of the terminal and the user using the terminal, it can obtain the relative movement amount in the cache image according to the positional relationship between the currently displayed image and the cached image and the relative movement amount and compensate the relative movement amount. Since the number of pixels in the horizontal direction of the cached image is greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, so that the number of pixels in the horizontal direction of the to-be-displayed image is The number of pixels in the horizontal direction of the display can be the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed can be the same as the number of pixels in the vertical direction of the display.

本发明实施例还提供一种终端80,所述终端80包括RAM和显示器,所述RAM包括显示内存缓冲区,所述显示内存缓冲区用于存储缓存图像,所述缓存图像的水平方向的像素数大于所述显示器的水平方向的像素数,所述缓存图像的垂直方向的像素数大于所述显示器的垂直方向的像素数,所述显示器中的当前显示图像为所述缓存图像中的一部分,如图8所示,所述终端80包括:An embodiment of the present invention further provides a terminal 80, the terminal 80 includes a RAM and a display, the RAM includes a display memory buffer, the display memory buffer is used to store a cached image, and the pixels in the horizontal direction of the cached image The number is greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, and the currently displayed image in the display is a part of the cached image, As shown in FIG. 8 , the terminal 80 includes:

第一获取单元801,用于获取所述终端80与使用所述终端80的用户的眼睛的相对运动量;a first obtaining unit 801, configured to obtain the relative movement amount of the eyes of the terminal 80 and the user using the terminal 80;

第二获取单元802,用于根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量在所述缓存图像中获取待显示图像,所述待显示图像为对所述相对运动量进行补偿后,所述显示器中即将显示的图像,所述待显示图像的水平方向的像素数与所述显示器的水平方向的像素数相同,所述待显示图像的垂直方向的像素数与所述显示器的垂直方向的像素数相同。The second acquiring unit 802 is configured to acquire an image to be displayed in the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion amount, where the to-be-displayed image is the result of performing a calculation on the relative motion amount. After compensation, for the image to be displayed in the display, the number of pixels in the horizontal direction of the image to be displayed is the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display. The number of pixels in the vertical direction is the same.

可选的,所述相对运动量包括相对位移运动量和/或相对角度运动量。Optionally, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

可选的,所述第二获取单元802,具体用于:Optionally, the second obtaining unit 802 is specifically configured to:

当所述相对运动量为所述用户的眼睛相对于所述终端80的位移运动量时,将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为所述待显示图像,其中,所述待显示图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端80的位移运动量的值,N为正整数;或者,When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 80, N pixels in the cached image corresponding to N pixels in the currently displayed image are composed of The image to be displayed is determined to be the image to be displayed, wherein the coordinate value of any pixel in the image to be displayed in the cached image is higher than that of the pixel corresponding to the pixel in the currently displayed image. The coordinate value in the cached image is larger than the target value, the target value is the value of the displacement movement amount of the user's eyes relative to the terminal 80, and N is a positive integer; or,

当所述相对运动量为所述用户的眼睛相对于所述终端80的角度运动量时,将所述当前显示图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端80的角度运动量的值;或者,When the relative movement amount is the angular movement amount of the user's eyes relative to the terminal 80, the image obtained by rotating the currently displayed image by a target angle is determined as the to-be-displayed image, and the target angle is the The value of the angular movement amount of the user's eyes relative to the terminal 80; or,

当所述相对运动量为所述用户的眼睛相对于所述终端80的位移运动量和所述用户的眼睛相对于所述终端80的角度运动量时,将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,将所述中间图像旋转目标角度后得到的图像确定为所述待显示图像,其中,所述中间图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端80的位移运动量的值,所述目标角度为所述用户的眼睛相对于所述终端80的角度运动量的值,N为正整数;When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 80 and the angular movement amount of the user's eyes relative to the terminal 80, the cached image is compared with the currently displayed image. The image composed of the N pixels in the one-to-one correspondence is determined as the intermediate image, and the image obtained after the intermediate image is rotated by the target angle is determined as the image to be displayed, wherein the image in the intermediate image is determined as the image to be displayed. The coordinate value of any pixel in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by a target value, and the target value is the user The value of the displacement movement amount of the user's eyes relative to the terminal 80, the target angle is the value of the angular movement amount of the user's eyes relative to the terminal 80, and N is a positive integer;

其中,所述用户的眼睛相对于所述终端80的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量。Wherein, the displacement movement amount of the user's eyes relative to the terminal 80 is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction.

可选的,所述第二获取单元802,具体用于:Optionally, the second obtaining unit 802 is specifically configured to:

当所述相对运动量为所述用户的眼睛相对于所述终端80的位移运动量时,根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,对所述第一图像进行处理得到第二图像并确定所述第二图像为所述待显示图像;或者,When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 80, the first image is determined according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, and the first image is determined according to the relative movement amount. An image is processed to obtain a second image, and the second image is determined as the to-be-displayed image; or,

当所述相对运动量为所述用户的眼睛相对于所述终端80的位移运动量和所述用户的眼睛相对于所述终端80的角度运动量时,根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,对所述第一图像进行处理得到第二图像,将所述第二图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端80的角度运动量的值;When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 80 and the angular movement amount of the user's eyes relative to the terminal 80, according to the position of the currently displayed image and the cached image The relationship and the relative motion amount determine the first image, process the first image to obtain a second image, and determine the image obtained by rotating the second image by a target angle as the to-be-displayed image, and the target angle is the value of the angular movement amount of the user's eyes relative to the terminal 80;

其中,所述用户的眼睛相对于所述终端80的位移运动量为沿着z轴方向的位移运动量;Wherein, the displacement movement amount of the user's eyes relative to the terminal 80 is the displacement movement amount along the z-axis direction;

当所述相对运动量的值表示所述用户的眼睛远离所述终端80时,所述第一图像为所述当前显示图像中心部分的图像,对所述第一图像进行处理为放大所述第一图像;或者,当所述相对运动量的值表示所述用户的眼睛靠近所述终端80时,所述当前显示图像为所述第一图像中心部分的图像,对所述第一图像进行处理为缩小所述第一图像。When the value of the relative movement amount indicates that the user's eyes are far away from the terminal 80, the first image is an image of the central part of the currently displayed image, and the first image is processed to enlarge the first image or, when the value of the relative movement amount indicates that the user's eyes are close to the terminal 80, the currently displayed image is the image of the central part of the first image, and the first image is processed to be reduced the first image.

可选的,所述相对角度运动量包括所述用户的眼睛相对于所述终端80在三维方向上的角度运动量。Optionally, the relative angular movement amount includes an angular movement amount of the user's eyes relative to the terminal 80 in a three-dimensional direction.

可选的,第一获取单元801,具体用于:采用虹膜技术或巩膜技术检测所述用户的眼睛相对于所述终端80的运动,并获取所述用户的眼睛相对于所述终端80的相对运动量。Optionally, the first obtaining unit 801 is specifically configured to: use iris technology or scleral technology to detect the movement of the user's eyes relative to the terminal 80, and obtain the relative movement of the user's eyes relative to the terminal 80. amount of exercise.

第一获取单元801具体可以包括终端的前置摄像头和处理器,其中,前置摄像头用于获取多帧前景图像,处理器用于根据多帧前景图像中的虹膜(或巩膜)的位置及转动角度等确定用户的眼睛相对于终端的相对运动量。The first acquisition unit 801 may specifically include a front camera and a processor of the terminal, wherein the front camera is used to acquire multiple frames of foreground images, and the processor is used to obtain the position and rotation angle of the iris (or sclera) in the multiple frames of foreground images. etc. to determine the relative movement amount of the user's eyes relative to the terminal.

本发明实施例中提供的终端中的各个单元执行的动作与本发明实施例提供的方法一致,因此,本发明实施例中的终端的有益效果可参见本发明实施例中的方法中所述的有益效果,此处不再赘述。Actions performed by each unit in the terminal provided in the embodiment of the present invention are consistent with the method provided in the embodiment of the present invention. Therefore, for the beneficial effects of the terminal in the embodiment of the present invention, reference may be made to the method in the embodiment of the present invention. The beneficial effects will not be repeated here.

本发明实施例还提供一种终端90,所述终端90包括RAM和显示器,所述RAM包括显示内存缓冲区,所述显示内存缓冲区用于存储缓存图像,所述缓存图像的水平方向的像素数大于所述显示器的水平方向的像素数,所述缓存图像的垂直方向的像素数大于所述显示器的垂直方向的像素数,所述显示器中的当前显示图像为所述缓存图像中的一部分,如图9所示,所述终端90包括:存储器901和处理器902;An embodiment of the present invention further provides a terminal 90, the terminal 90 includes a RAM and a display, the RAM includes a display memory buffer, the display memory buffer is used to store a cached image, and the pixels in the horizontal direction of the cached image The number is greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the cached image is greater than the number of pixels in the vertical direction of the display, and the currently displayed image in the display is a part of the cached image, As shown in FIG. 9 , the terminal 90 includes: a memory 901 and a processor 902;

所述存储器901用于存储代码,所述处理器902根据该代码执行以下动作:The memory 901 is used to store codes, and the processor 902 performs the following actions according to the codes:

获取所述终端90与使用所述终端90的用户的眼睛的相对运动量;acquiring the relative movement amount of the eyes of the terminal 90 and the user using the terminal 90;

根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量在所述缓存图像中获取待显示图像,所述待显示图像为对所述相对运动量进行补偿后,所述显示器中即将显示的图像,所述待显示图像的水平方向的像素数与所述显示器的水平方向的像素数相同,所述待显示图像的垂直方向的像素数与所述显示器的垂直方向的像素数相同。The to-be-displayed image is acquired from the cached image according to the positional relationship between the currently displayed image and the cached image and the relative motion amount. For the displayed image, the number of pixels in the horizontal direction of the image to be displayed is the same as the number of pixels in the horizontal direction of the display, and the number of pixels in the vertical direction of the image to be displayed is the same as the number of pixels in the vertical direction of the display.

可选的,所述相对运动量包括相对位移运动量和/或相对角度运动量。Optionally, the relative movement amount includes a relative displacement movement amount and/or a relative angular movement amount.

可选的,所述处理器902,具体用于:Optionally, the processor 902 is specifically configured to:

当所述相对运动量为所述用户的眼睛相对于所述终端90的位移运动量时,将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为所述待显示图像,其中,所述待显示图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端90的位移运动量的值,N为正整数;或者,When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 90, N pixels in the cached image corresponding to N pixels in the currently displayed image are composed of The image to be displayed is determined to be the image to be displayed, wherein the coordinate value of any pixel in the image to be displayed in the cached image is higher than that of the pixel corresponding to the pixel in the currently displayed image. The coordinate value in the cached image is larger than the target value, the target value is the value of the displacement movement amount of the user's eyes relative to the terminal 90, and N is a positive integer; or,

当所述相对运动量为所述用户的眼睛相对于所述终端90的角度运动量时,将所述当前显示图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端90的角度运动量的值;或者,When the relative movement amount is the angular movement amount of the user's eyes relative to the terminal 90, the image obtained by rotating the currently displayed image by a target angle is determined as the to-be-displayed image, and the target angle is the The value of the angular movement amount of the user's eyes relative to the terminal 90; or,

当所述相对运动量为所述用户的眼睛相对于所述终端90的位移运动量和所述用户的眼睛相对于所述终端90的角度运动量时,将所述缓存图像中的与所述当前显示图像中的N个像素点一一对应的N个像素点组成的图像确定为中间图像,将所述中间图像旋转目标角度后得到的图像确定为所述待显示图像,其中,所述中间图像中的任意一个像素点在所述缓存图像中的坐标值比所述当前显示图像中的与该像素点对应的像素点在所述缓存图像中的坐标值大目标值,所述目标值为所述用户的眼睛相对于所述终端90的位移运动量的值,所述目标角度为所述用户的眼睛相对于所述终端90的角度运动量的值,N为正整数;When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 90 and the angular movement amount of the user's eyes relative to the terminal 90, the cached image is compared with the currently displayed image. The image composed of the N pixels in the one-to-one correspondence is determined as the intermediate image, and the image obtained after the intermediate image is rotated by the target angle is determined as the image to be displayed, wherein the image in the intermediate image is determined as the image to be displayed. The coordinate value of any pixel in the cached image is larger than the coordinate value of the pixel corresponding to the pixel in the currently displayed image in the cached image by a target value, and the target value is the user The value of the displacement movement amount of the user's eyes relative to the terminal 90, the target angle is the value of the angular movement amount of the user's eyes relative to the terminal 90, and N is a positive integer;

其中,所述用户的眼睛相对于所述终端90的位移运动量为沿着x轴方向的位移运动量或沿着y轴方向的位移运动量。Wherein, the displacement movement amount of the user's eyes relative to the terminal 90 is the displacement movement amount along the x-axis direction or the displacement movement amount along the y-axis direction.

可选的,所述处理器902,具体用于:Optionally, the processor 902 is specifically configured to:

当所述相对运动量为所述用户的眼睛相对于所述终端90的位移运动量时,根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,对所述第一图像进行处理得到第二图像并确定所述第二图像为所述待显示图像;或者,When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 90, the first image is determined according to the positional relationship between the currently displayed image and the cached image and the relative movement amount, and the first image is determined according to the relative movement amount. An image is processed to obtain a second image, and the second image is determined as the to-be-displayed image; or,

当所述相对运动量为所述用户的眼睛相对于所述终端90的位移运动量和所述用户的眼睛相对于所述终端90的角度运动量时,根据所述当前显示图像与所述缓存图像的位置关系和所述相对运动量确定第一图像,对所述第一图像进行处理得到第二图像,将所述第二图像旋转目标角度后得到的图像确定为所述待显示图像,所述目标角度为所述用户的眼睛相对于所述终端90的角度运动量的值;When the relative movement amount is the displacement movement amount of the user's eyes relative to the terminal 90 and the angular movement amount of the user's eyes relative to the terminal 90, according to the position of the currently displayed image and the cached image The relationship and the relative motion amount determine the first image, process the first image to obtain a second image, and determine the image obtained by rotating the second image by a target angle as the to-be-displayed image, and the target angle is the value of the angular movement amount of the user's eyes relative to the terminal 90;

其中,所述用户的眼睛相对于所述终端90的位移运动量为沿着z轴方向的位移运动量;Wherein, the displacement movement amount of the user's eyes relative to the terminal 90 is the displacement movement amount along the z-axis direction;

当所述相对运动量的值表示所述用户的眼睛远离所述终端90时,所述第一图像为所述当前显示图像中心部分的图像,对所述第一图像进行处理为放大所述第一图像;或者,当所述相对运动量的值表示所述用户的眼睛靠近所述终端90时,所述当前显示图像为所述第一图像中心部分的图像,对所述第一图像进行处理为缩小所述第一图像。When the value of the relative movement amount indicates that the user's eyes are far away from the terminal 90, the first image is an image of the center part of the currently displayed image, and the first image is processed to enlarge the first image or, when the value of the relative movement amount indicates that the user's eyes are close to the terminal 90, the currently displayed image is the image of the central part of the first image, and the first image is processed to be reduced the first image.

可选的,所述相对角度运动量包括所述用户的眼睛相对于所述终端90在三维方向上的角度运动量。Optionally, the relative angular movement amount includes an angular movement amount of the user's eyes relative to the terminal 90 in a three-dimensional direction.

可选的,所述处理器902,具体用于:采用虹膜技术或巩膜技术检测所述用户的眼睛相对于所述终端90的运动,并获取所述用户的眼睛相对于所述终端90的相对运动量。Optionally, the processor 902 is specifically configured to: detect the movement of the user's eyes relative to the terminal 90 by using the iris technology or the sclera technology, and obtain the relative movement of the user's eyes relative to the terminal 90 . amount of exercise.

其中,终端80中的第一获取单元801和第二获取单元802可以为终端90中的处理器902。终端80中的其他单元可以以硬件形式内嵌于或独立于终端80的处理器中,也可以以软件形式存储于终端80的存储器中,以便于处理器调用执行以上各个单元对应的操作,该处理器可以为中央处理器(Central Processing Unit,简称CPU)、特定集成电路(Application Specific Integrated Circuit,简称ASIC)或者是被配置成实施本发明实施例的一个或多个集成电路。The first obtaining unit 801 and the second obtaining unit 802 in the terminal 80 may be the processor 902 in the terminal 90 . Other units in the terminal 80 may be embedded in or independent of the processor of the terminal 80 in the form of hardware, or may be stored in the memory of the terminal 80 in the form of software, so that the processor can call and execute the operations corresponding to the above units. The processor may be a central processing unit (Central Processing Unit, CPU for short), a specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or one or more integrated circuits configured to implement the embodiments of the present invention.

本发明实施例中提供的终端中的各个器件执行的动作与本发明实施例提供的方法一致,因此,本发明实施例中的终端的有益效果可参见本发明实施例中的方法中所述的有益效果,此处不再赘述。Actions performed by each device in the terminal provided in the embodiment of the present invention are consistent with the method provided in the embodiment of the present invention. Therefore, for the beneficial effects of the terminal in the embodiment of the present invention, reference may be made to the method in the embodiment of the present invention. The beneficial effects will not be repeated here.

本发明实施例还提供一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序包括指令,所述指令当被终端执行时使所述终端执行根据上述方法。Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a terminal, cause the terminal to execute the method according to the above.

该计算机可读存储介质用于终端实现上述方法,其有益效果参见方法部分的有益效果,此处不再赘述。The computer-readable storage medium is used for the terminal to implement the above method, and its beneficial effects can be found in the beneficial effects of the method section, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated modules implemented in the form of software functional modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM for short), RAM, magnetic disk or optical disk and other media that can store program codes.

Claims (16)

1. An anti-shake method for a terminal display, wherein the terminal includes a Random Access Memory (RAM) and a display, the RAM includes a display memory buffer area, the display memory buffer area is used for storing a cache image, the number of pixels of the cache image in the horizontal direction is greater than that of the display in the horizontal direction, the number of pixels of the cache image in the vertical direction is greater than that of the display in the vertical direction, and a currently displayed image in the display is a part of the cache image, the method comprising:
the terminal acquires the relative movement amount of eyes of the terminal and a user using the terminal;
the terminal acquires an image to be displayed in the cache image according to the position relation between the current display image and the cache image and the relative motion amount, wherein the image to be displayed is an image to be displayed in the display after the relative motion amount is compensated, the number of pixels of the image to be displayed in the horizontal direction is the same as that of pixels of the display in the horizontal direction, and the number of pixels of the image to be displayed in the vertical direction is the same as that of pixels of the display in the vertical direction;
wherein the terminal acquires the relative movement amount of the terminal and the eyes of a user using the terminal, and comprises the following steps:
the terminal detects the movement of the user's eyes relative to the terminal using iris or sclera techniques and acquires the amount of relative movement of the user's eyes relative to the terminal.
2. The method of claim 1, wherein the amount of relative motion comprises an amount of relative displacement motion and/or an amount of relative angular motion.
3. The method according to claim 2, wherein the terminal acquires the image to be displayed in the buffer image according to the position relationship between the current display image and the buffer image and the relative motion amount, and comprises:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, the terminal determines an image formed by N pixel points in the cache image, which correspond to N pixel points in the current display image in a one-to-one manner, as the image to be displayed, wherein a coordinate value of any pixel point in the image to be displayed in the cache image is larger than a coordinate value of a pixel point corresponding to the pixel point in the current display image in the cache image by a target value, the target value is a value of the displacement movement amount of the eyes of the user relative to the terminal, and N is a positive integer; or,
when the relative motion amount is the angular motion amount of the eyes of the user relative to the terminal, the terminal determines an image obtained after the current display image is rotated by a target angle as the image to be displayed, wherein the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal; or,
when the relative motion amount is the displacement motion amount of the user's eyes relative to the terminal and the angular motion amount of the user's eyes relative to the terminal, the terminal determines an image composed of N pixel points in the cache image, which correspond to N pixel points in the current display image one by one, as an intermediate image, and the terminal determines an image obtained after the intermediate image is rotated by a target angle as the image to be displayed, wherein a coordinate value of any one pixel point in the intermediate image in the cache image is larger than a coordinate value of the pixel point corresponding to the pixel point in the current display image in the cache image by a target value, the target value is a value of the displacement motion amount of the user's eyes relative to the terminal, and the target angle is a value of the angular motion amount of the user's eyes relative to the terminal, n is a positive integer;
wherein the amount of displacement motion of the user's eyes relative to the terminal is either along the x-axis direction or along the y-axis direction.
4. The method according to claim 2, wherein the terminal acquires the image to be displayed in the buffer image according to the position relationship between the current display image and the buffer image and the relative motion amount, and comprises:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, the terminal determines a first image according to the position relation between the current display image and the cache image and the relative movement amount, and the terminal processes the first image to obtain a second image and determines the second image as the image to be displayed; or,
when the relative motion amount is the displacement motion amount of the eyes of the user relative to the terminal and the angular motion amount of the eyes of the user relative to the terminal, the terminal determines a first image according to the position relation between the current display image and the cache image and the relative motion amount, the terminal processes the first image to obtain a second image, the terminal determines an image obtained after the second image is rotated by a target angle as the image to be displayed, and the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal;
wherein a displacement movement amount of the user's eyes relative to the terminal is a displacement movement amount along a z-axis direction;
when the value of the relative motion amount indicates that the eyes of the user are far away from the terminal, the first image is an image of the central part of the currently displayed image, and the terminal processes the first image to enlarge the first image for the terminal; or, when the value of the relative motion amount indicates that the eyes of the user approach the terminal, the currently displayed image is an image of a central portion of the first image, and the terminal processes the first image so that the terminal reduces the first image.
5. The method according to any of claims 2-4, wherein the amount of relative angular movement comprises an amount of angular movement of the user's eyes in three dimensions relative to the terminal.
6. A terminal, wherein the terminal comprises a random access memory RAM and a display, the RAM comprising a display memory buffer for storing a buffer image, the number of pixels in the horizontal direction of the buffer image being greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the buffer image being greater than the number of pixels in the vertical direction of the display, and a currently displayed image in the display being a portion of the buffer image, the terminal comprising:
a first acquisition unit configured to acquire a relative movement amount of the terminal and eyes of a user using the terminal;
a second obtaining unit, configured to obtain, from the cache image, an image to be displayed according to the position relationship between the current display image and the cache image and the relative motion amount, where the image to be displayed is an image to be displayed in the display after compensating for the relative motion amount, and a number of pixels in a horizontal direction of the image to be displayed is the same as a number of pixels in a horizontal direction of the display, and a number of pixels in a vertical direction of the image to be displayed is the same as a number of pixels in a vertical direction of the display;
the first obtaining unit is specifically configured to:
and detecting the movement of the eyes of the user relative to the terminal by adopting an iris technology or a sclera technology, and acquiring the relative movement amount of the eyes of the user relative to the terminal.
7. A terminal according to claim 6, characterized in that the amount of relative movement comprises an amount of relative displacement movement and/or an amount of relative angular movement.
8. The terminal according to claim 7, wherein the second obtaining unit is specifically configured to:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, determining an image composed of N pixel points in the cache image, which correspond to N pixel points in the current display image in a one-to-one manner, as the image to be displayed, wherein a coordinate value of any pixel point in the image to be displayed in the cache image is larger than a coordinate value of a pixel point in the current display image, which corresponds to the pixel point, in the cache image by a target value, the target value is a value of the displacement movement amount of the eyes of the user relative to the terminal, and N is a positive integer; or,
when the relative motion amount is the angular motion amount of the eyes of the user relative to the terminal, determining an image obtained after the current display image is rotated by a target angle as the image to be displayed, wherein the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal; or,
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal and the angular movement amount of the eyes of the user relative to the terminal, determining an image composed of N pixel points in the cache image, which correspond to N pixel points in the current display image in a one-to-one manner, as an intermediate image, and determining an image obtained after the intermediate image is rotated by a target angle as the image to be displayed, wherein a coordinate value of any pixel point in the intermediate image in the cache image is larger than a coordinate value of the pixel point in the current display image, which corresponds to the pixel point, in the cache image by a target value, the target value is a value of the displacement movement amount of the eyes of the user relative to the terminal, and the target angle is a value of the angular movement amount of the eyes of the user relative to the terminal, n is a positive integer;
wherein the amount of displacement motion of the user's eyes relative to the terminal is either along the x-axis direction or along the y-axis direction.
9. The terminal according to claim 7, wherein the second obtaining unit is specifically configured to:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, determining a first image according to the position relation between the current display image and the cache image and the relative movement amount, processing the first image to obtain a second image, and determining the second image as the image to be displayed; or,
when the relative motion amount is the displacement motion amount of the eyes of the user relative to the terminal and the angular motion amount of the eyes of the user relative to the terminal, determining a first image according to the position relation between the current display image and the cache image and the relative motion amount, processing the first image to obtain a second image, and determining the image obtained after the second image is rotated by a target angle as the image to be displayed, wherein the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal;
wherein a displacement movement amount of the user's eyes relative to the terminal is a displacement movement amount along a z-axis direction;
when the value of the relative motion amount indicates that the eyes of the user are far away from the terminal, the first image is an image of the central part of the currently displayed image, and the first image is processed to be enlarged; or, when the value of the relative motion amount indicates that the user's eyes are close to the terminal, the currently displayed image is an image of a central portion of the first image, and the first image is processed to be reduced.
10. A terminal according to any of claims 7-9, wherein said amount of relative angular movement comprises an amount of angular movement of the user's eyes in three dimensions relative to the terminal.
11. A terminal, wherein the terminal comprises a random access memory RAM and a display, the RAM comprising a display memory buffer for storing a buffer image, the number of pixels in the horizontal direction of the buffer image being greater than the number of pixels in the horizontal direction of the display, the number of pixels in the vertical direction of the buffer image being greater than the number of pixels in the vertical direction of the display, and a currently displayed image in the display being a portion of the buffer image, the terminal comprising: a memory and a processor;
the memory is configured to store code, and the processor performs the following actions in accordance with the code:
acquiring the relative movement amount of eyes of the terminal and a user using the terminal;
acquiring an image to be displayed in the cache image according to the position relationship between the current display image and the cache image and the relative motion amount, wherein the image to be displayed is an image to be displayed in the display after the relative motion amount is compensated, the number of pixels of the image to be displayed in the horizontal direction is the same as that of the display in the horizontal direction, and the number of pixels of the image to be displayed in the vertical direction is the same as that of the display in the vertical direction;
wherein the processor is specifically configured to:
and detecting the movement of the eyes of the user relative to the terminal by adopting an iris technology or a sclera technology, and acquiring the relative movement amount of the eyes of the user relative to the terminal.
12. A terminal according to claim 11, characterized in that the amount of relative movement comprises an amount of relative displacement movement and/or an amount of relative angular movement.
13. The terminal of claim 12, wherein the processor is specifically configured to:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, determining an image composed of N pixel points in the cache image, which correspond to N pixel points in the current display image in a one-to-one manner, as the image to be displayed, wherein a coordinate value of any pixel point in the image to be displayed in the cache image is larger than a coordinate value of a pixel point in the current display image, which corresponds to the pixel point, in the cache image by a target value, the target value is a value of the displacement movement amount of the eyes of the user relative to the terminal, and N is a positive integer; or,
when the relative motion amount is the angular motion amount of the eyes of the user relative to the terminal, determining an image obtained after the current display image is rotated by a target angle as the image to be displayed, wherein the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal; or,
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal and the angular movement amount of the eyes of the user relative to the terminal, determining an image composed of N pixel points in the cache image, which correspond to N pixel points in the current display image in a one-to-one manner, as an intermediate image, and determining an image obtained after the intermediate image is rotated by a target angle as the image to be displayed, wherein a coordinate value of any pixel point in the intermediate image in the cache image is larger than a coordinate value of the pixel point in the current display image, which corresponds to the pixel point, in the cache image by a target value, the target value is a value of the displacement movement amount of the eyes of the user relative to the terminal, and the target angle is a value of the angular movement amount of the eyes of the user relative to the terminal, n is a positive integer;
wherein the amount of displacement motion of the user's eyes relative to the terminal is either along the x-axis direction or along the y-axis direction.
14. The terminal of claim 12, wherein the processor is specifically configured to:
when the relative movement amount is the displacement movement amount of the eyes of the user relative to the terminal, determining a first image according to the position relation between the current display image and the cache image and the relative movement amount, processing the first image to obtain a second image, and determining the second image as the image to be displayed; or,
when the relative motion amount is the displacement motion amount of the eyes of the user relative to the terminal and the angular motion amount of the eyes of the user relative to the terminal, determining a first image according to the position relation between the current display image and the cache image and the relative motion amount, processing the first image to obtain a second image, and determining the image obtained after the second image is rotated by a target angle as the image to be displayed, wherein the target angle is the value of the angular motion amount of the eyes of the user relative to the terminal;
wherein a displacement movement amount of the user's eyes relative to the terminal is a displacement movement amount along a z-axis direction;
when the value of the relative motion amount indicates that the eyes of the user are far away from the terminal, the first image is an image of the central part of the currently displayed image, and the first image is processed to be enlarged; or, when the value of the relative motion amount indicates that the user's eyes are close to the terminal, the currently displayed image is an image of a central portion of the first image, and the first image is processed to be reduced.
15. The terminal of any of claims 12-14, wherein the amount of relative angular motion comprises an amount of angular motion of the user's eyes in three dimensions relative to the terminal.
16. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a terminal, cause the terminal to perform the method of any of claims 1-5.
CN201680009578.0A 2016-04-05 2016-04-05 A terminal display anti-shake method and device Active CN108027646B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/078500 WO2017173583A1 (en) 2016-04-05 2016-04-05 Terminal display anti-shake method and apparatus

Publications (2)

Publication Number Publication Date
CN108027646A CN108027646A (en) 2018-05-11
CN108027646B true CN108027646B (en) 2020-07-14

Family

ID=60000799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680009578.0A Active CN108027646B (en) 2016-04-05 2016-04-05 A terminal display anti-shake method and device

Country Status (2)

Country Link
CN (1) CN108027646B (en)
WO (1) WO2017173583A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562212A (en) * 2017-10-20 2018-01-09 网易(杭州)网络有限公司 Virtual reality scenario anti-fluttering method, device, storage medium and wear display device
CN110248243B (en) * 2019-07-25 2022-02-18 维沃移动通信有限公司 Multimedia file display method, terminal and medium
CN111010476A (en) * 2019-11-13 2020-04-14 北京奇艺世纪科技有限公司 Image display method, device, terminal and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574884A (en) * 2003-06-14 2005-02-02 Lg电子株式会社 Apparatus and method for automatically compensating for an image gradient of a mobile communication terminal
CN103250152A (en) * 2010-12-10 2013-08-14 高智83基金会有限责任公司 Image display device controlled responsive to sharing breadth
CN104464579A (en) * 2013-09-12 2015-03-25 中兴通讯股份有限公司 Data display method, data display device, data display terminal, display control method and display control device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309582B (en) * 2012-03-08 2016-12-07 阿里巴巴集团控股有限公司 The stabilization display packing of a kind of terminal unit and can the terminal unit that shows of stabilization
KR20150071344A (en) * 2013-12-18 2015-06-26 삼성전기주식회사 Apparatus and method for stabilizing image of display
US9720496B2 (en) * 2014-03-20 2017-08-01 Intel Corporation Techniques for stabilizing a display scene output
CN104575357A (en) * 2015-01-21 2015-04-29 昆山龙腾光电有限公司 Method and system for stabilizing display picture of handheld equipment and handheld device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574884A (en) * 2003-06-14 2005-02-02 Lg电子株式会社 Apparatus and method for automatically compensating for an image gradient of a mobile communication terminal
CN103250152A (en) * 2010-12-10 2013-08-14 高智83基金会有限责任公司 Image display device controlled responsive to sharing breadth
CN104464579A (en) * 2013-09-12 2015-03-25 中兴通讯股份有限公司 Data display method, data display device, data display terminal, display control method and display control device

Also Published As

Publication number Publication date
CN108027646A (en) 2018-05-11
WO2017173583A1 (en) 2017-10-12

Similar Documents

Publication Publication Date Title
US11321906B2 (en) Asynchronous time and space warp with determination of region of interest
CN106502427B (en) Virtual reality system and scene presenting method thereof
CN111225150B (en) Method for processing interpolation frame and related product
CN109743626B (en) Image display method, image processing method and related equipment
US9424767B2 (en) Local rendering of text in image
US20190392648A1 (en) Image display method and device
CN108762492A (en) Method, apparatus, equipment and the storage medium of information processing are realized based on virtual scene
CN111833403B (en) Method and device for spatial positioning
US11749141B2 (en) Information processing apparatus, information processing method, and recording medium
KR20180005528A (en) Display apparatus and method for image processing
CN107204044B (en) Picture display method based on virtual reality and related equipment
KR20180043609A (en) Display apparatus and image processing method thereof
CN111275801A (en) A three-dimensional image rendering method and device
US12192673B2 (en) Accurate optical flow interpolation optimizing bi-directional consistency and temporal smoothness
JP2020003898A (en) Information processing device, information processing method, and program
CN118945309A (en) Camera-based transparent display
CN110895433B (en) Method and apparatus for user interaction in augmented reality
CN114026603A (en) Rendering computer-generated reality text
CN108027646B (en) A terminal display anti-shake method and device
CN112308981A (en) Image processing method, device, electronic device and storage medium
CN114690894A (en) A method, device, computer storage medium and terminal for realizing display processing
CN108319365B (en) Movement tracking method and movement tracking system
US9536133B2 (en) Display apparatus and control method for adjusting the eyes of a photographed user
US20210390928A1 (en) Information processing apparatus, information processing method, and recording medium
EP4485357A2 (en) Image processing method and apparatus, electronic device, and storage medium

Legal Events

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