[go: up one dir, main page]

CN107800868A - A kind of method for displaying image and mobile terminal - Google Patents

A kind of method for displaying image and mobile terminal Download PDF

Info

Publication number
CN107800868A
CN107800868A CN201710862099.XA CN201710862099A CN107800868A CN 107800868 A CN107800868 A CN 107800868A CN 201710862099 A CN201710862099 A CN 201710862099A CN 107800868 A CN107800868 A CN 107800868A
Authority
CN
China
Prior art keywords
user
distance
current distance
preset
screen
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.)
Pending
Application number
CN201710862099.XA
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710862099.XA priority Critical patent/CN107800868A/en
Publication of CN107800868A publication Critical patent/CN107800868A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Rehabilitation Tools (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明提供了一种图像显示方法及移动终端,其中,所述方法包括:启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。

The present invention provides an image display method and a mobile terminal, wherein the method includes: starting a front-facing camera to obtain a user's eye image in real time; determining the current distance between the user's eye and the screen according to the human eye image distance; based on the current distance and preset user vision parameters, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users.

Description

一种图像显示方法及移动终端Image display method and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种图像显示方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to an image display method and a mobile terminal.

背景技术Background technique

随着科技和信息化的加速发展,智能手机已经成为人们获取新闻、开阔眼界、娱乐等最重要的工具。从而,视力和智能手机对图像的显示关系越来越密切。With the accelerated development of technology and informatization, smartphones have become the most important tool for people to obtain news, broaden their horizons, and entertain them. Therefore, eyesight and the display of images by smartphones are becoming more and more closely related.

在实际应用中,对于正常视力的用户,在裸眼使用手机时,眼睛与手机屏幕正常距离即可看清楚屏幕上显示的图像;但对于近视用户,在裸眼使用手机时,需要将手机离眼睛很近才能看清楚屏幕上显示的图像;而对于远视用户,在裸眼使用手机时,需要将手机离眼睛很远才能看清楚屏幕上显示的图像。In practical applications, for users with normal eyesight, when using the mobile phone with naked eyes, the images displayed on the screen can be clearly seen with the normal distance between the eyes and the mobile phone screen; but for nearsighted users, when using the mobile phone with naked eyes, the mobile phone needs to be far away The images displayed on the screen can only be seen clearly when the user is close; for hyperopic users, when using the mobile phone with naked eyes, the mobile phone needs to be far away from the eyes to see the images displayed on the screen clearly.

可以看出,对于近视或远视用户而言,裸眼使用手机不方便,降低了用户的使用积极性和效率。It can be seen that for nearsighted or hyperopic users, it is inconvenient to use the mobile phone with naked eyes, which reduces the enthusiasm and efficiency of users.

发明内容Contents of the invention

本发明实施例提供的图像显示方法及移动终端,以解决近视或远视裸眼使用手机进行浏览时不便看清显示内容,导致降低用户使用效率的问题。The image display method and mobile terminal provided by the embodiments of the present invention solve the problem that it is inconvenient to see the displayed content clearly when using a mobile phone to browse with naked eyes for myopia or hyperopia, which leads to the problem of reducing user efficiency.

一方面,本发明实施例公开了一种图像显示方法,应用于移动终端,包括:On the one hand, the embodiment of the present invention discloses an image display method applied to a mobile terminal, including:

启动前置摄像头实时获取用户的人眼图像;Start the front camera to obtain the user's eye image in real time;

根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;determining the current distance between the user's eyes and the screen according to the human eye image;

基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;Adjusting the sharpness of the original image displayed on the screen based on the current distance and preset user vision parameters;

将调节之后的图像替换所述原始图像在所述屏幕上进行显示。and displaying the adjusted image on the screen instead of the original image.

另一方面,本发明实施例还公开了一种移动终端,包括:On the other hand, the embodiment of the present invention also discloses a mobile terminal, including:

人眼图像获取模块,用于启动前置摄像头实时获取用户的人眼图像;The human eye image acquisition module is used to start the front camera to acquire the user's human eye image in real time;

当前距离确定模块,用于根据所述人眼图像获取模块获取的人眼图像确定所述用户的眼睛与屏幕之间的当前距离;A current distance determination module, configured to determine the current distance between the user's eyes and the screen according to the human eye image acquired by the human eye image acquisition module;

清晰度调节模块,用于基于所述当前距离确定模块确定的当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;A sharpness adjustment module, configured to adjust the sharpness of the original image displayed on the screen based on the current distance determined by the current distance determination module and the preset user vision parameters;

图像显示模块,用于将清晰度调节模块调节之后的图像替换所述原始图像在所述屏幕上进行显示。The image display module is used to replace the original image with the image adjusted by the sharpness adjustment module and display it on the screen.

再一方面,本发明实施例还公开了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上任一项所述的图像显示方法的步骤。In yet another aspect, the embodiment of the present invention also discloses a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When executed, the steps of the image display method described in any one of the above items are realized.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

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

图1示出了本发明实施例一中的一种图像显示方法的步骤流程图;FIG. 1 shows a flow chart of the steps of an image display method in Embodiment 1 of the present invention;

图2示出了本发明实施例二中的一种图像显示方法的步骤流程图;FIG. 2 shows a flowchart of steps of an image display method in Embodiment 2 of the present invention;

图3示出了本发明实施例三中的一种移动终端的结构框图;FIG. 3 shows a structural block diagram of a mobile terminal in Embodiment 3 of the present invention;

图4示出了本发明实施例四中的一种移动终端的结构框图;FIG. 4 shows a structural block diagram of a mobile terminal in Embodiment 4 of the present invention;

图5示出了本发明实施例五中的一种移动终端的结构框图;FIG. 5 shows a structural block diagram of a mobile terminal in Embodiment 5 of the present invention;

图6示出了本发明实施例六中的一种移动终端的结构框图。FIG. 6 shows a structural block diagram of a mobile terminal in Embodiment 6 of the present invention.

具体实施方式Detailed ways

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

下面通过列举几个具体的实施例详细介绍本发明提供的一种图像显示方法及移动终端。An image display method and a mobile terminal provided by the present invention will be described in detail below by enumerating several specific embodiments.

实施例一Embodiment one

参照图1,示出了本发明实施例一的一种图像显示方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of an image display method according to Embodiment 1 of the present invention, which may specifically include the following steps:

步骤101,启动前置摄像头实时获取用户的人眼图像。Step 101, start the front camera to acquire the user's eye image in real time.

本发明实施例的应用场景为:视力差的用户看不清楚移动终端屏幕上的图像。例如,远视、近视或其他视力问题。可以理解,本发明实施例可以适用于各种类型的移动终端,包括但不限于平板电脑、智能手机等。The application scenario of the embodiment of the present invention is: a user with poor eyesight cannot clearly see images on the screen of a mobile terminal. For example, farsightedness, nearsightedness, or other vision problems. It can be understood that the embodiments of the present invention may be applicable to various types of mobile terminals, including but not limited to tablet computers, smart phones, and the like.

具体地,当近视或远视用户在裸眼看不清楚移动终端的屏幕时,通过按压移动终端上对图像清晰度的调节按钮,来调节图像清晰度。可以理解,近视用户或远视用户在佩戴眼镜时的视力为正常情况,从而不需要启动调节清晰度。Specifically, when the nearsighted or hyperopic user cannot clearly see the screen of the mobile terminal with naked eyes, the image definition is adjusted by pressing an image definition adjustment button on the mobile terminal. It can be understood that the eyesight of a nearsighted user or a hyperopic user wearing glasses is normal, so there is no need to start adjusting the sharpness.

在本发明实施例中,实时获取人眼图像从而可以保证用户在不断移动屏幕时,可以实时调节图像清晰度。In the embodiment of the present invention, the human eye image is acquired in real time so as to ensure that the user can adjust the image definition in real time when the user keeps moving the screen.

步骤102,根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离。Step 102: Determine the current distance between the user's eyes and the screen according to the human eye image.

具体地,可以通过人眼图像中的人眼深度信息获取人眼与屏幕之间的距离。Specifically, the distance between the human eye and the screen can be obtained through the human eye depth information in the human eye image.

步骤103,基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度。Step 103, based on the current distance and preset user vision parameters, adjust the clarity of the original image displayed on the screen.

其中,用户视力参数为用户预先在移动终端上设置的一系列视力相关参数。例如,用户近视或远视,用户裸眼看图像最清晰时的距离等。在实际应用中,可以在移动终端设置界面新添加用户视力参数的设置项,从而接收移动终端归属用户输入的视力参数。当然,该设置项可以提供修改和删除功能。Wherein, the user's vision parameters are a series of vision-related parameters pre-set by the user on the mobile terminal. For example, the user is short-sighted or far-sighted, the distance at which the user sees the clearest image with naked eyes, etc. In practical applications, a setting item of the user's visual acuity parameter can be newly added in the setting interface of the mobile terminal, so as to receive the visual acuity parameter input by the user of the mobile terminal. Of course, this setting item can provide modification and deletion functions.

本发明实施例对于不同视力状况的用户进行不同的处理,从而使得各种视力问题的用户在裸眼均可以看清楚屏幕上的图像。例如,对于近视用户,在当前距离大于用户裸眼看清晰图像对应的距离时,调高图像的清晰度;对于远视用户,在当前距离小于用户裸眼看清晰图像对应的距离时,调高图像的清晰度。The embodiment of the present invention performs different processing for users with different vision conditions, so that users with various vision problems can see images on the screen clearly with naked eyes. For example, for short-sighted users, when the current distance is greater than the distance corresponding to the user's naked-eye view of a clear image, increase the image clarity; Spend.

具体地,调节图像的清晰度为将图像调节的更清晰,通过调节图像中各像素的亮度的灰度值或亮度值等。Specifically, adjusting the definition of the image is to adjust the image more clearly, by adjusting the grayscale value or brightness value of the brightness of each pixel in the image.

步骤104,将调节之后的图像替换所述原始图像在所述屏幕上进行显示。Step 104, replacing the original image with the adjusted image and displaying it on the screen.

将更清晰的图像替换原始图像,从而使得用户在当前距离不变的情况下,可以看到清晰图像。对于不想佩戴眼镜的近视或远视用户来说使用起来更加方便。Replace the original image with a clearer image so that the user can see a clearer image at the same current distance. It is more convenient to use for nearsighted or farsighted users who do not want to wear glasses.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users.

实施例二Embodiment two

参照图2,示出了本发明实施例二的一种图像显示方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of an image display method according to Embodiment 2 of the present invention, which may specifically include the following steps:

步骤201,保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。Step 201, save preset user vision parameters, the user vision parameters at least include user vision marks, optimal distances, preset distance sets, and optimal sharpness corresponding to each preset distance.

其中,用户视力标记表明用户是近视、远视或其他视力问题,系统可以提供选项供用户选择。Wherein, the user's vision mark indicates that the user is nearsighted, farsighted or other vision problems, and the system may provide options for the user to choose.

最佳距离为用户裸眼看清楚屏幕上的图像时,眼睛与屏幕之间的距离。系统可以提供输入框供用户输入最佳距离。The optimal distance is the distance between the eyes and the screen when the user sees the images on the screen clearly with naked eyes. The system may provide an input box for the user to input the optimal distance.

预设距离为用户预先录入的多个距离,并记录用户在该距离看清楚屏幕上的图像时的最佳清晰度。系统提供预设距离,还可以提供添加自定义距离的功能,以供用户输入多个预设距离和对应的最佳清晰度。在实际应用中,可以通过用户在多个预设距离时,调节图像清晰度,当达到最佳清晰度时,记录该预设距离以及最佳清晰度。The preset distance is a plurality of distances entered in advance by the user, and records the best clarity when the user sees the image on the screen clearly at this distance. The system provides preset distances, and can also provide the function of adding custom distances for users to input multiple preset distances and corresponding optimal clarity. In practical applications, the user can adjust the image sharpness at multiple preset distances, and when the best sharpness is reached, record the preset distance and the best sharpness.

可以理解,上述用户视力参数均可以提供修改、删除等功能。It can be understood that functions such as modification and deletion can be provided for the above-mentioned user vision parameters.

步骤202,启动前置摄像头实时获取用户的人眼图像。Step 202, start the front camera to acquire the user's eye image in real time.

该步骤可以参照步骤101的详细说明,在此不再赘述。For this step, reference may be made to the detailed description of step 101, which will not be repeated here.

步骤203,获取所述人眼图像的深度信息。Step 203, acquiring depth information of the human eye image.

在计算机视觉系统中,图像以三维场景来表达,而对于深度图像而言,深度图像中像素点的灰度值可以作为该点距离摄像头之间的距离。在实际应用中,深度信息可以通过对图像的光度特征、明暗特征等进行间接估算得到。In the computer vision system, the image is expressed as a three-dimensional scene, and for the depth image, the gray value of the pixel in the depth image can be used as the distance between the point and the camera. In practical applications, depth information can be obtained by indirect estimation of photometric features, light and dark features, etc. of the image.

步骤204,根据所述深度信息计算所述用户的眼睛与屏幕之间的当前距离。Step 204, calculate the current distance between the user's eyes and the screen according to the depth information.

具体地,当用户面部与屏幕平行时,两只眼睛的深度信息相同,从而深度信息即为眼睛与当前屏幕之间的当前距离;当用户面部与屏幕不平行时,两只眼睛的深度信息不同,从而深度信息为两只眼睛深度信息的平均值。Specifically, when the user's face is parallel to the screen, the depth information of the two eyes is the same, so the depth information is the current distance between the eyes and the current screen; when the user's face is not parallel to the screen, the depth information of the two eyes is different , so that the depth information is the average value of the depth information of the two eyes.

在本发明实施例中,当两只眼睛的深度信息不同时,还可以根据使用权值将主视眼的权重调大,从而可以尽可能的提高清晰度。可以理解,取平均值时两者的权值相同。In the embodiment of the present invention, when the depth information of the two eyes is different, the weight of the dominant eye can also be increased according to the weight value used, so as to improve the clarity as much as possible. It can be understood that the weights of the two are the same when taking the average value.

步骤205,若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像。Step 205, if it is determined according to the user's vision parameters that the current distance is outside the clear visible range, acquire the original image displayed on the screen.

在本发明实施例中,在用户启动调节图像清晰度之后,用户移动移动终端的位置,可能改变屏幕与眼睛之间的当前距离,从而只有在当前距离超出可视范围之外时,调节图像的清晰度。In the embodiment of the present invention, after the user starts to adjust the image definition, the user moves the position of the mobile terminal, which may change the current distance between the screen and the eyes, so that the image is adjusted only when the current distance exceeds the visible range. clarity.

例如,对于一近视用户,最佳距离为10厘米。在用户启动调节操作之后,用户的眼睛与屏幕之间的距离为15厘米,从而系统启动调节;若用户将移动终端移动至距离眼睛8厘米时,可以不调节回原有的清晰度。若用户最开始将移动终端置于离眼睛8厘米处时,系统不启动调节图像清晰度;若用户将移动终端从8厘米处移动至15厘米处时,系统实时监测到当前距离大于最佳距离,从而自动调节图像清晰度。For example, for a myopic user, the optimal distance is 10 cm. After the user starts the adjustment operation, the distance between the user's eyes and the screen is 15 cm, so the system starts the adjustment; if the user moves the mobile terminal to a distance of 8 cm from the eyes, it is not necessary to adjust back to the original clarity. If the user initially places the mobile terminal at a distance of 8 cm from the eyes, the system will not start to adjust the image definition; if the user moves the mobile terminal from 8 cm to 15 cm, the system will monitor in real time that the current distance is greater than the optimal distance to automatically adjust the image sharpness.

可选地,在本发明的另一种实施例中,步骤205包括子步骤2051至 2052:Optionally, in another embodiment of the present invention, step 205 includes substeps 2051 to 2052:

子步骤2051,若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。Sub-step 2051, if the user's vision mark in the vision parameters corresponds to the user's nearsightedness, then the current distance is greater than the optimal distance in the vision parameters, and the absolute value of the difference between the current distance and the optimal distance is greater than the preset value, it is determined that the current distance is outside the clearly visible range.

其中,预设值可以根据实际应用场景设定,本发明实施例对其不加以限制。在实际应用中,对于近视用户,当用户的眼睛距离屏幕在最佳距离之后一定范围内,可以看清楚屏幕上的图像。Wherein, the preset value may be set according to an actual application scenario, which is not limited in the embodiment of the present invention. In practical applications, for myopic users, when the user's eyes are within a certain range behind the optimal distance from the screen, images on the screen can be seen clearly.

子步骤2052,若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。Sub-step 2052, if the user's vision mark in the vision parameters corresponds to the user's hyperopia, then the current distance is smaller than the optimal distance in the vision parameters, and the absolute value of the difference between the current distance and the optimal distance is greater than the preset value, it is determined that the current distance is outside the clearly visible range.

在实际应用中,对于近视用户,当用户的眼睛距离屏幕在最佳距离之前一定范围内,可以看清楚屏幕上的图像。In practical applications, for myopic users, when the user's eyes are within a certain range before the optimal distance from the screen, images on the screen can be seen clearly.

其中,该预设值和子步骤2053中的预设值相同,当然还可以不同。Wherein, the preset value is the same as the preset value in sub-step 2053, and of course it can also be different.

步骤206,从预设的用户视力参数中获取所述当前距离对应的最佳清晰度。In step 206, the best definition corresponding to the current distance is obtained from preset user vision parameters.

具体地,选择与当前距离最相近的预设距离,并将该预设距离对应的最佳清晰度作为当前距离的最佳清晰度。Specifically, the preset distance closest to the current distance is selected, and the best definition corresponding to the preset distance is used as the best definition of the current distance.

步骤207,按照预设步距逐步增大所述原始图像中各像素的亮度值和/ 或灰度值,并计算各步距对应的清晰度。Step 207: Gradually increase the brightness value and/or grayscale value of each pixel in the original image according to the preset step distance, and calculate the sharpness corresponding to each step distance.

其中,预设步距越大,计算复杂度越小,计算准确度越低;预设步距越小,计算复杂度越大,计算准确度越高。可以理解,预设步距可以根据实际应用场景以及移动终端中央处理器的处理能力设定,本发明实施例对其不加以限制。Wherein, the larger the preset step size, the smaller the calculation complexity and the lower the calculation accuracy; the smaller the preset step size, the greater the calculation complexity and the higher the calculation accuracy. It can be understood that the preset step distance can be set according to the actual application scenario and the processing capability of the central processing unit of the mobile terminal, which is not limited in the embodiment of the present invention.

清晰度可以根据相邻像素灰度方差法、Sobel边缘检测算子、Robert边缘检测算子等计算。本发明实施例对清晰度的计算公式不加以限制。The sharpness can be calculated according to the adjacent pixel gray variance method, Sobel edge detection operator, Robert edge detection operator, etc. The embodiment of the present invention does not limit the calculation formula of the sharpness.

步骤208,当所述清晰度与所述最佳清晰度之间的差值的绝对值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。Step 208, when the absolute value of the difference between the sharpness and the best sharpness is smaller than a preset value, stop increasing the brightness value and/or grayscale value of each pixel in the original image.

其中,预设值可以根据实际应用场景设定,本发明实施例对其不加以限制。Wherein, the preset value may be set according to an actual application scenario, which is not limited in the embodiment of the present invention.

在本发明实施例中,当清晰度与最佳清晰度之间的差值大于预设值时,根据预设步距继续调节图像的清晰度,即反复进行步骤207,直至调节之后的清晰度与最佳清晰度之间的差值的绝对值小于预设值。In the embodiment of the present invention, when the difference between the sharpness and the best sharpness is greater than the preset value, continue to adjust the sharpness of the image according to the preset step distance, that is, repeat step 207 until the adjusted sharpness The absolute value of the difference from the best sharpness is smaller than the preset value.

步骤209,将调节之后的图像替换所述原始图像在所述屏幕上进行显示。Step 209, replacing the original image with the adjusted image and displaying it on the screen.

该步骤可以参照步骤104的详细说明,在此不再赘述。For this step, reference may be made to the detailed description of step 104, which will not be repeated here.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。此外,还可以通过逐步调节图像像素的亮度值和/或灰度值,以及用户视力参数灵活调节图像的清晰度。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users. In addition, the clarity of the image can also be flexibly adjusted by gradually adjusting the brightness value and/or gray value of the image pixel, as well as the user's visual acuity parameters.

实施例三Embodiment Three

参照图3,示出了本发明实施例三的一种移动终端的结构框图。Referring to FIG. 3 , it shows a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention.

所述移动终端300包括:人眼图像获取模块301、当前距离确定模块 302、清晰度调节模块303、图像显示模块304。The mobile terminal 300 includes: a human eye image acquisition module 301, a current distance determination module 302, a sharpness adjustment module 303, and an image display module 304.

下面分别详细介绍各模块的功能以及各模块之间的交互关系。The functions of each module and the interaction between each module are introduced in detail below.

人眼图像获取模块301,用于启动前置摄像头实时获取用户的人眼图像。The human eye image acquiring module 301 is configured to start the front camera to acquire the user's eye image in real time.

当前距离确定模块302,用于根据所述人眼图像获取模块获取的人眼图像确定所述用户的眼睛与屏幕之间的当前距离。The current distance determination module 302 is configured to determine the current distance between the user's eyes and the screen according to the human eye image acquired by the human eye image acquisition module.

清晰度调节模块303,用于基于所述当前距离确定模块确定的当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度。The sharpness adjustment module 303 is configured to adjust the sharpness of the original image displayed on the screen based on the current distance determined by the current distance determination module and preset user vision parameters.

图像显示模块304,用于将清晰度调节模块调节之后的图像替换所述原始图像在所述屏幕上进行显示。The image display module 304 is configured to replace the original image with the image adjusted by the sharpness adjustment module and display it on the screen.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users.

实施例三是方法实施例一对应的装置实施例,详细说明可以参照实施例一,在此不再赘述。Embodiment 3 is a device embodiment corresponding to method embodiment 1. For detailed description, reference may be made to embodiment 1, which will not be repeated here.

实施例四Embodiment Four

参照图4,示出了本发明实施例四的一种移动终端的结构框图。Referring to FIG. 4 , it shows a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention.

所述移动终端400包括:用户参数保存模块401、人眼图像获取模块 402、当前距离确定模块403、清晰度调节模块404、图像显示模块405。The mobile terminal 400 includes: a user parameter storage module 401, a human eye image acquisition module 402, a current distance determination module 403, a sharpness adjustment module 404, and an image display module 405.

下面分别详细介绍各模块的功能以及各模块之间的交互关系。The functions of each module and the interaction between each module are introduced in detail below.

用户参数保存模块401,用于保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。The user parameter saving module 401 is configured to save preset user vision parameters, and the user vision parameters at least include a user vision mark, an optimal distance, a set of preset distances, and the best definition corresponding to each preset distance.

人眼图像获取模块402,用于启动前置摄像头实时获取用户的人眼图像。The human eye image acquiring module 402 is configured to start the front camera to acquire the user's eye image in real time.

当前距离确定模块403,用于根据所述人眼图像获取模块获取的人眼图像确定所述用户的眼睛与屏幕之间的当前距离。在本发明实施例中,上述当前距离确定模块403,包括:The current distance determination module 403 is configured to determine the current distance between the user's eyes and the screen according to the human eye image acquired by the human eye image acquisition module. In the embodiment of the present invention, the above-mentioned current distance determination module 403 includes:

深度信息获取子模块4031,用于获取所述人眼图像的深度信息。The depth information acquisition sub-module 4031 is configured to acquire the depth information of the human eye image.

当前距离计算子模块4032,用于根据所述深度信息获取子模块获取的深度信息计算所述用户的眼睛与屏幕之间的当前距离。The current distance calculation sub-module 4032 is configured to calculate the current distance between the user's eyes and the screen according to the depth information acquired by the depth information acquisition sub-module.

清晰度调节模块404,用于基于所述当前距离确定模块确定的当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度。在本发明实施例中,上述清晰度调节模块404,包括:The sharpness adjustment module 404 is configured to adjust the sharpness of the original image displayed on the screen based on the current distance determined by the current distance determination module and preset user vision parameters. In the embodiment of the present invention, the above definition adjustment module 404 includes:

原始图像获取子模块4041,用于若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像。The original image acquisition sub-module 4041 is configured to acquire the original image displayed on the screen when it is determined according to the user's vision parameters that the current distance is outside the clearly visible range.

最佳清晰度获取子模块4042,用于从预设的用户视力参数中获取所述当前距离对应的最佳清晰度。The optimal sharpness acquisition sub-module 4042 is configured to acquire the best sharpness corresponding to the current distance from preset user vision parameters.

像素调节子模块4043,用于按照预设步距逐步增大所述原始图像获取子模块获取的原始图像中各像素的亮度值和/或灰度值,并计算各步距对应的清晰度。The pixel adjustment sub-module 4043 is used to gradually increase the brightness value and/or gray value of each pixel in the original image acquired by the original image acquisition sub-module according to the preset step distance, and calculate the sharpness corresponding to each step distance.

结束调节子模块4044,用于当所述像素调节子模块计算的清晰度与所述最佳清晰度之间的差值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。End adjustment sub-module 4044, configured to stop increasing the brightness value of each pixel in the original image when the difference between the sharpness calculated by the pixel adjustment sub-module and the optimal sharpness is less than a preset value and/or grayscale values.

图像显示模块405,用于将清晰度调节模块调节之后的图像替换所述原始图像在所述屏幕上进行显示。The image display module 405 is configured to replace the original image with the image adjusted by the sharpness adjustment module and display it on the screen.

可选地,在本发明的另一种实施例中,上述原始图像获取子模块 4041,包括:Optionally, in another embodiment of the present invention, the above-mentioned original image acquisition submodule 4041 includes:

第一可视确定单元,用于若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。The first visual determination unit is configured to: if the user's vision mark in the vision parameters corresponds to the user's myopia, then the current distance is greater than the optimal distance in the vision parameters, and the difference between the current distance and the optimal distance is When the absolute value is greater than the preset value, it is determined that the current distance is outside the clearly visible range.

第二可视确定单元,用于若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。The second visual determination unit is configured to: if the user's vision mark in the vision parameters corresponds to the user's hyperopia, the current distance is smaller than the optimal distance in the vision parameters, and the difference between the current distance and the optimal distance is When the absolute value is greater than the preset value, it is determined that the current distance is outside the clearly visible range.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。此外,还可以通过逐步调节图像像素的亮度值和/或灰度值,以及用户视力参数灵活调节图像的清晰度。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users. In addition, the clarity of the image can also be flexibly adjusted by gradually adjusting the brightness value and/or gray value of the image pixel, as well as the user's visual acuity parameters.

实施例四是方法实施例二对应的装置实施例,详细说明可以参照实施例二,在此不再赘述。Embodiment 4 is an apparatus embodiment corresponding to method embodiment 2. For detailed description, reference may be made to embodiment 2, which will not be repeated here.

实施例五Embodiment five

参照图5,示出了本发明实施例五的一种移动终端的结构框图。Referring to FIG. 5 , it shows a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention.

图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统 505。The mobile terminal 500 shown in FIG. 5 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and a user interface 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled bus system 505 in FIG. 5 for clarity of illustration.

其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.

可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM, EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器 (DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM, SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM, SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM, DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory can be a read-only memory (Read-OnlyMemory, ROM), a programmable read-only memory (ProgrammableROM, PROM), an erasable programmable read-only memory (ErasablePROM, EPROM), an electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous Dynamic RAM (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DoubleDataRateSDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), Synchronous Connection Dynamic Random Access Memory (SynchlinkDRAM, SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序 5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .

其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序 5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser) 等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to realize various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .

在本发明实施例中,移动终端500还包括存储在存储器502上并可在处理器501上运行的计算机程序,该计算机程序被处理器501执行时实现如下步骤:启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor, DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。In the embodiment of the present invention, the mobile terminal 500 also includes a computer program stored in the memory 502 and operable on the processor 501. When the computer program is executed by the processor 501, the following steps are implemented: start the front-facing camera to acquire the user's information in real time. Human eye image; determine the current distance between the user's eyes and the screen according to the human eye image; adjust the clarity of the original image displayed on the screen based on the current distance and preset user vision parameters; adjust the Subsequent images replace the original images and are displayed on the screen. The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备 (DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器501还用于实现在基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度时,若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像;从预设的用户视力参数中获取所述当前距离对应的最佳清晰度;按照预设步距逐步增大所述原始图像中各像素的亮度值和/或灰度值,并计算各步距对应的清晰度;当所述清晰度与所述最佳清晰度之间的差值的绝对值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。Optionally, the processor 501 is further configured to adjust the sharpness of the original image displayed on the screen based on the current distance and preset user vision parameters, if it is determined according to the user vision parameters that the current distance is within When it is outside the clear visual range, obtain the original image displayed on the screen; obtain the best definition corresponding to the current distance from the preset user vision parameters; gradually increase each of the original images according to the preset step distance The brightness value and/or gray value of the pixel, and calculate the sharpness corresponding to each step; when the absolute value of the difference between the sharpness and the best sharpness is less than the preset value, stop increasing The brightness value and/or gray value of each pixel in the original image.

可选地,处理器501还用于实现在所述根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外;若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。Optionally, the processor 501 is further configured to realize that when it is determined according to the user's vision parameters that the current distance is outside the clearly visible range, if the user's vision mark in the vision parameters corresponds to the user's nearsightedness, the current When the distance is greater than the optimum distance in the vision parameters, and the absolute value of the difference between the current distance and the optimum distance is greater than a preset value, it is determined that the current distance is outside the clear visual range; if the vision The user's vision mark in the parameter corresponds to the user's hyperopia, then the current distance is determined when the current distance is less than the optimal distance in the vision parameter, and the absolute value of the difference between the current distance and the optimal distance is greater than the preset value beyond the clear range of vision.

可选地,处理器501还用于实现在所述启动前置摄像头实时获取用户的人眼图像的步骤之前,保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。Optionally, the processor 501 is further configured to save preset user vision parameters before the step of starting the front-facing camera to obtain the user's eye image in real time, the user vision parameters at least including the user vision mark, the best distance, a set of preset distances, and the best sharpness corresponding to each preset distance.

可选地,处理器501还用于实现在所述根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离时,获取所述人眼图像的深度信息;根据所述深度信息计算所述用户的眼睛与屏幕之间的当前距离。Optionally, the processor 501 is further configured to acquire depth information of the human eye image when determining the current distance between the user's eyes and the screen according to the human eye image; Calculate the current distance between the user's eyes and the screen.

可见,在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。此外,还可以通过逐步调节图像像素的亮度值和/ 或灰度值,以及用户视力参数灵活调节图像的清晰度。It can be seen that, in the embodiment of the present invention, the front camera is started to acquire the user's eye image in real time; the current distance between the user's eyes and the screen is determined according to the human eye image; based on the current distance and the preset The vision parameter of the user adjusts the sharpness of the original image displayed on the screen; and displays the adjusted image on the screen instead of the original image. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users. In addition, the sharpness of the image can be flexibly adjusted by gradually adjusting the brightness value and/or gray value of the image pixel, as well as the user's visual acuity parameters.

实施例六Embodiment six

图6示出了本发明实施例六的移动终端的结构示意图。FIG. 6 shows a schematic structural diagram of a mobile terminal according to Embodiment 6 of the present invention.

本发明实施例的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图6中的移动终端包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity) 模块680、电源690。The mobile terminal in FIG. 6 includes a radio frequency (Radio Frequency, RF) circuit 610 , a memory 620 , an input unit 630 , a display unit 640 , a processor 660 , an audio circuit 670 , a WiFi (Wireless Fidelity) module 680 , and a power supply 690 .

其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED) 等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或 widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one application program icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600 的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal 600, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory 621. The data in the memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/ 或模块和/或该第二存储器622内的数据,处理器660用于启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。In the embodiment of the present invention, by calling the software program and/or module stored in the first memory 621 and/or the data in the second memory 622, the processor 660 is used to start the front-facing camera to obtain the user's human eyes in real time. image; determine the current distance between the user's eyes and the screen according to the human eye image; adjust the clarity of the original image displayed on the screen based on the current distance and preset user vision parameters; adjust the adjusted An image is displayed on the screen in place of the original image.

可选地,处理器660还用于实现在基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度时,若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像;从预设的用户视力参数中获取所述当前距离对应的最佳清晰度;按照预设步距逐步增大所述原始图像中各像素的亮度值和/或灰度值,并计算各步距对应的清晰度;当所述清晰度与所述最佳清晰度之间的差值的绝对值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。Optionally, the processor 660 is further configured to adjust the sharpness of the original image displayed on the screen based on the current distance and the preset user vision parameters, if it is determined according to the user vision parameters that the current distance is within When it is outside the clear visual range, obtain the original image displayed on the screen; obtain the best definition corresponding to the current distance from the preset user vision parameters; gradually increase each of the original images according to the preset step distance The brightness value and/or grayscale value of the pixel, and calculate the sharpness corresponding to each step; when the absolute value of the difference between the sharpness and the best sharpness is less than the preset value, stop increasing The brightness value and/or gray value of each pixel in the original image.

可选地,处理器660还用于实现在所述根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外;若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。Optionally, the processor 660 is further configured to realize that when it is determined according to the user vision parameters that the current distance is outside the clearly visible range, if the user vision flag in the vision parameters corresponds to the user's nearsightedness, the current When the distance is greater than the optimum distance in the vision parameters, and the absolute value of the difference between the current distance and the optimum distance is greater than a preset value, it is determined that the current distance is outside the clear visual range; if the vision The user's vision mark in the parameter corresponds to the user's hyperopia, then the current distance is determined when the current distance is less than the optimal distance in the vision parameter, and the absolute value of the difference between the current distance and the optimal distance is greater than the preset value beyond the clear range of vision.

可选地,处理器660还用于实现在所述启动前置摄像头实时获取用户的人眼图像的步骤之前,保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。Optionally, the processor 660 is also configured to save the preset user vision parameters before the step of starting the front camera to acquire the user's eye image in real time, the user vision parameters at least including the user vision mark, the best distance, a set of preset distances, and the best sharpness corresponding to each preset distance.

可选地,处理器660还用于实现在所述根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离时,获取所述人眼图像的深度信息;根据所述深度信息计算所述用户的眼睛与屏幕之间的当前距离。Optionally, the processor 660 is further configured to acquire depth information of the human eye image when determining the current distance between the user's eyes and the screen according to the human eye image; Calculate the current distance between the user's eyes and the screen.

在本发明实施例中,启动前置摄像头实时获取用户的人眼图像;根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;将调节之后的图像替换所述原始图像在所述屏幕上进行显示。实现了近视或远视用户在裸眼使用手机时可以调节图像清晰度,从而提高了用户的使用积极性和效率。此外,还可以通过逐步调节图像像素的亮度值和/或灰度值,以及用户视力参数灵活调节图像的清晰度。In the embodiment of the present invention, start the front camera to acquire the user's human eye image in real time; determine the current distance between the user's eyes and the screen according to the human eye image; parameter, adjust the sharpness of the original image displayed on the screen; replace the original image with the adjusted image and display it on the screen. It realizes that near-sighted or far-sighted users can adjust the image clarity when using the mobile phone with naked eyes, thereby improving the enthusiasm and efficiency of users. In addition, the clarity of the image can also be flexibly adjusted by gradually adjusting the brightness value and/or gray value of the image pixel, as well as the user's visual acuity parameters.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the mobile terminal device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

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

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (11)

1.一种图像显示方法,应用于移动终端,其特征在于,所述方法包括:1. An image display method applied to a mobile terminal, characterized in that the method comprises: 启动前置摄像头实时获取用户的人眼图像;Start the front camera to obtain the user's eye image in real time; 根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离;determining the current distance between the user's eyes and the screen according to the human eye image; 基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;Adjusting the sharpness of the original image displayed on the screen based on the current distance and preset user vision parameters; 将调节之后的图像替换所述原始图像在所述屏幕上进行显示。and displaying the adjusted image on the screen instead of the original image. 2.根据权利要求1所述的方法,其特征在于,所述基于所述当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度的步骤,包括:2. The method according to claim 1, wherein the step of adjusting the clarity of the original image displayed on the screen based on the current distance and preset user vision parameters comprises: 若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像;If it is determined according to the user's vision parameters that the current distance is outside the clearly visible range, acquire the original image displayed on the screen; 从预设的用户视力参数中获取所述当前距离对应的最佳清晰度;Obtain the best definition corresponding to the current distance from preset user vision parameters; 按照预设步距逐步增大所述原始图像中各像素的亮度值和/或灰度值,并计算各步距对应的清晰度;Gradually increase the brightness value and/or gray value of each pixel in the original image according to the preset step distance, and calculate the sharpness corresponding to each step distance; 当所述清晰度与所述最佳清晰度之间的差值的绝对值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。When the absolute value of the difference between the sharpness and the best sharpness is smaller than a preset value, stop increasing the brightness value and/or grayscale value of each pixel in the original image. 3.根据权利要求2所述的方法,其特征在于,所述根据所述用户视力参数确定所述当前距离在清晰可视范围之外的步骤,包括:3. The method according to claim 2, wherein the step of determining that the current distance is outside the clearly visible range according to the user vision parameters comprises: 若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外;If the user's vision mark in the vision parameters corresponds to the user's myopia, then the current distance is greater than the optimal distance in the vision parameters, and the absolute value of the difference between the current distance and the optimal distance is greater than a preset value, determine said current distance is outside the range of clear visibility; 若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。If the user's vision mark in the vision parameters corresponds to the user's hyperopia, then the current distance is less than the optimal distance in the vision parameters, and when the absolute value of the difference between the current distance and the optimal distance is greater than a preset value, determine The current distance is out of clear view. 4.根据权利要求2所述的方法,其特征在于,在所述启动前置摄像头实时获取用户的人眼图像的步骤之前,还包括:4. The method according to claim 2, further comprising: 保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。Preset user vision parameters are saved, and the user vision parameters at least include a user vision mark, an optimal distance, a set of preset distances, and an optimal definition corresponding to each preset distance. 5.根据权利要求1所述的方法,其特征在于,所述根据所述人眼图像确定所述用户的眼睛与屏幕之间的当前距离的步骤,包括:5. The method according to claim 1, wherein the step of determining the current distance between the user's eyes and the screen according to the human eye image comprises: 获取所述人眼图像的深度信息;Acquiring depth information of the human eye image; 根据所述深度信息计算所述用户的眼睛与屏幕之间的当前距离。calculating the current distance between the user's eyes and the screen according to the depth information. 6.一种移动终端,其特征在于,包括:6. A mobile terminal, characterized in that, comprising: 人眼图像获取模块,用于启动前置摄像头实时获取用户的人眼图像;The human eye image acquisition module is used to start the front camera to acquire the user's human eye image in real time; 当前距离确定模块,用于根据所述人眼图像获取模块获取的人眼图像确定所述用户的眼睛与屏幕之间的当前距离;A current distance determination module, configured to determine the current distance between the user's eyes and the screen according to the human eye image acquired by the human eye image acquisition module; 清晰度调节模块,用于基于所述当前距离确定模块确定的当前距离以及预设的用户视力参数,调节屏幕上显示的原始图像的清晰度;A sharpness adjustment module, configured to adjust the sharpness of the original image displayed on the screen based on the current distance determined by the current distance determination module and the preset user vision parameters; 图像显示模块,用于将清晰度调节模块调节之后的图像替换所述原始图像在所述屏幕上进行显示。The image display module is used to replace the original image with the image adjusted by the sharpness adjustment module and display it on the screen. 7.根据权利要求6所述的移动终端,其特征在于,所述清晰度调节模块,包括:7. The mobile terminal according to claim 6, wherein the definition adjustment module comprises: 原始图像获取子模块,用于若根据所述用户视力参数确定所述当前距离在清晰可视范围之外时,获取屏幕上显示的原始图像;The original image acquisition sub-module is used to acquire the original image displayed on the screen if it is determined according to the user vision parameters that the current distance is outside the clear visual range; 最佳清晰度获取子模块,用于从预设的用户视力参数中获取所述当前距离对应的最佳清晰度;The optimal sharpness acquisition sub-module is used to obtain the best sharpness corresponding to the current distance from the preset user vision parameters; 像素调节子模块,用于按照预设步距逐步增大所述原始图像获取子模块获取的原始图像中各像素的亮度值和/或灰度值,并计算各步距对应的清晰度;The pixel adjustment sub-module is used to gradually increase the brightness value and/or gray value of each pixel in the original image acquired by the original image acquisition sub-module according to the preset step distance, and calculate the sharpness corresponding to each step distance; 结束调节子模块,用于当所述像素调节子模块计算的清晰度与所述最佳清晰度之间的差值小于预设值时,停止增大所述原始图像中各像素的亮度值和/或灰度值。The end adjustment submodule is used to stop increasing the brightness value and sum of each pixel in the original image when the difference between the sharpness calculated by the pixel adjustment submodule and the optimal sharpness is less than a preset value / or grayscale values. 8.根据权利要求7所述的移动终端,其特征在于,所述原始图像获取子模块,包括:8. The mobile terminal according to claim 7, wherein the original image acquisition submodule comprises: 第一可视确定单元,用于若所述视力参数中的用户视力标记对应用户近视,则当前距离大于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外;The first visual determination unit is configured to: if the user's vision mark in the vision parameters corresponds to the user's myopia, then the current distance is greater than the optimal distance in the vision parameters, and the difference between the current distance and the optimal distance is When the absolute value is greater than the preset value, it is determined that the current distance is outside the clearly visible range; 第二可视确定单元,用于若所述视力参数中的用户视力标记对应用户远视,则当前距离小于所述视力参数中的最佳距离,且当前距离与所述最佳距离的差值的绝对值大于预设值时,确定所述当前距离在清晰可视范围之外。The second visual determination unit is configured to: if the user's vision mark in the vision parameters corresponds to the user's hyperopia, the current distance is smaller than the optimal distance in the vision parameters, and the difference between the current distance and the optimal distance is When the absolute value is greater than the preset value, it is determined that the current distance is outside the clearly visible range. 9.根据权利要求7所述的移动终端,其特征在于,还包括:9. The mobile terminal according to claim 7, further comprising: 用户参数保存模块,用于保存预设的用户视力参数,所述用户视力参数至少包括用户视力标记、最佳距离、预设距离集合以及各预设距离对应的最佳清晰度。The user parameter saving module is used to save preset user vision parameters, and the user vision parameters at least include user vision marks, optimal distances, preset distance sets, and optimal sharpness corresponding to each preset distance. 10.根据权利要求6所述的移动终端,其特征在于,所述当前距离确定模块,包括:10. The mobile terminal according to claim 6, wherein the current distance determining module comprises: 深度信息获取子模块,用于获取所述人眼图像的深度信息;A depth information acquisition submodule, configured to acquire the depth information of the human eye image; 当前距离计算子模块,用于根据所述深度信息获取子模块获取的深度信息计算所述用户的眼睛与屏幕之间的当前距离。The current distance calculation submodule is configured to calculate the current distance between the user's eyes and the screen according to the depth information acquired by the depth information acquisition submodule. 11.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5任一项所述的图像显示方法的步骤。11. A mobile terminal, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the image display method described in any one of 1 to 5 are required.
CN201710862099.XA 2017-09-21 2017-09-21 A kind of method for displaying image and mobile terminal Pending CN107800868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710862099.XA CN107800868A (en) 2017-09-21 2017-09-21 A kind of method for displaying image and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710862099.XA CN107800868A (en) 2017-09-21 2017-09-21 A kind of method for displaying image and mobile terminal

Publications (1)

Publication Number Publication Date
CN107800868A true CN107800868A (en) 2018-03-13

Family

ID=61532384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710862099.XA Pending CN107800868A (en) 2017-09-21 2017-09-21 A kind of method for displaying image and mobile terminal

Country Status (1)

Country Link
CN (1) CN107800868A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618042A (en) * 2018-10-30 2019-04-12 努比亚技术有限公司 Display distance control method, collapsible terminal and computer readable storage medium
CN109670432A (en) * 2018-12-13 2019-04-23 北京小米移动软件有限公司 Action identification method and device
CN110377385A (en) * 2019-07-05 2019-10-25 深圳壹账通智能科技有限公司 A kind of screen display method, device and terminal device
CN111387932A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Vision detection method, device and equipment
CN111583106A (en) * 2019-02-18 2020-08-25 奇酷互联网络科技(深圳)有限公司 Intelligent terminal, image display method thereof and device with storage function
CN113099300A (en) * 2021-03-19 2021-07-09 深圳创维-Rgb电子有限公司 Program playing method and device, display terminal and storage medium
CN113835804A (en) * 2021-09-13 2021-12-24 维沃移动通信有限公司 Information display method and electronic device
CN115396547A (en) * 2022-08-25 2022-11-25 武汉元光科技有限公司 Naked eye vision presenting method, device, medium and equipment for vision-impaired people
WO2023025184A1 (en) * 2021-08-25 2023-03-02 华为技术有限公司 Interface element control method and apparatus, electronic device and storage medium
CN119376670A (en) * 2024-10-10 2025-01-28 上海外高桥造船有限公司 Display device, method, electronic device and program product
CN119418633A (en) * 2024-12-16 2025-02-11 维沃移动通信有限公司 Screen resolution adjustment method, device, electronic device and storage medium
CN119496862A (en) * 2024-11-14 2025-02-21 北京朗威精研科技有限公司 A control method, device and equipment for displaying content of a teleprompter

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103026367A (en) * 2010-06-11 2013-04-03 焦点再现 Systems and methods for rendering a display to compensate for a viewer's visual impairment
CN103473738A (en) * 2013-07-30 2013-12-25 宁波迪吉特电子科技发展有限公司 Image enhancement method
US20140118354A1 (en) * 2012-11-01 2014-05-01 Motorola Mobility Llc Systems and Methods for Configuring the Display Resolution of an Electronic Device Based on Distance and User Presbyopia
CN104991718A (en) * 2015-06-29 2015-10-21 努比亚技术有限公司 Terminal screen capture method and apparatus
CN106339086A (en) * 2016-08-26 2017-01-18 珠海格力电器股份有限公司 Screen font adjusting method and device and electronic equipment
CN107067842A (en) * 2017-06-05 2017-08-18 努比亚技术有限公司 Colour method of adjustment, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103026367A (en) * 2010-06-11 2013-04-03 焦点再现 Systems and methods for rendering a display to compensate for a viewer's visual impairment
US20140118354A1 (en) * 2012-11-01 2014-05-01 Motorola Mobility Llc Systems and Methods for Configuring the Display Resolution of an Electronic Device Based on Distance and User Presbyopia
CN103473738A (en) * 2013-07-30 2013-12-25 宁波迪吉特电子科技发展有限公司 Image enhancement method
CN104991718A (en) * 2015-06-29 2015-10-21 努比亚技术有限公司 Terminal screen capture method and apparatus
CN106339086A (en) * 2016-08-26 2017-01-18 珠海格力电器股份有限公司 Screen font adjusting method and device and electronic equipment
CN107067842A (en) * 2017-06-05 2017-08-18 努比亚技术有限公司 Colour method of adjustment, mobile terminal and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618042B (en) * 2018-10-30 2021-01-26 努比亚技术有限公司 Display distance control method, foldable terminal, and computer-readable storage medium
CN109618042A (en) * 2018-10-30 2019-04-12 努比亚技术有限公司 Display distance control method, collapsible terminal and computer readable storage medium
CN109670432A (en) * 2018-12-13 2019-04-23 北京小米移动软件有限公司 Action identification method and device
CN109670432B (en) * 2018-12-13 2023-08-04 北京小米移动软件有限公司 Action recognition method and device
CN111387932A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Vision detection method, device and equipment
CN111583106A (en) * 2019-02-18 2020-08-25 奇酷互联网络科技(深圳)有限公司 Intelligent terminal, image display method thereof and device with storage function
WO2021004138A1 (en) * 2019-07-05 2021-01-14 深圳壹账通智能科技有限公司 Screen display method, terminal device, and storage medium
CN110377385B (en) * 2019-07-05 2022-06-21 深圳壹账通智能科技有限公司 A screen display method, device and terminal equipment
CN110377385A (en) * 2019-07-05 2019-10-25 深圳壹账通智能科技有限公司 A kind of screen display method, device and terminal device
CN113099300A (en) * 2021-03-19 2021-07-09 深圳创维-Rgb电子有限公司 Program playing method and device, display terminal and storage medium
WO2023025184A1 (en) * 2021-08-25 2023-03-02 华为技术有限公司 Interface element control method and apparatus, electronic device and storage medium
CN113835804A (en) * 2021-09-13 2021-12-24 维沃移动通信有限公司 Information display method and electronic device
CN115396547A (en) * 2022-08-25 2022-11-25 武汉元光科技有限公司 Naked eye vision presenting method, device, medium and equipment for vision-impaired people
CN119376670A (en) * 2024-10-10 2025-01-28 上海外高桥造船有限公司 Display device, method, electronic device and program product
CN119496862A (en) * 2024-11-14 2025-02-21 北京朗威精研科技有限公司 A control method, device and equipment for displaying content of a teleprompter
CN119418633A (en) * 2024-12-16 2025-02-11 维沃移动通信有限公司 Screen resolution adjustment method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107800868A (en) A kind of method for displaying image and mobile terminal
CN105959553B (en) A kind of switching method and terminal of camera
CN106502605B (en) A method and device for adjusting brightness and color temperature of a mobile terminal
US20210255761A1 (en) Suspend button display method and terminal device
CN106057169B (en) A kind of eye care method and mobile terminal of mobile terminal
WO2018196699A1 (en) Method for displaying fingerprint recognition region, and mobile terminal
CN107528972A (en) A kind of display methods and mobile terminal
EP2921947A1 (en) Device and method for controlling a display panel
CN106713654A (en) Mobile terminal display adjustment method and mobile terminal
CN106265006A (en) The antidote of a kind of dominant eye and mobile terminal
CN105446673A (en) Screen display method and terminal device
CN108024009A (en) Electronic device having hole area and method of controlling hole area thereof
CN103365541B (en) The method of impression window and terminal
US9823773B2 (en) Handheld device and method for implementing input area position adjustment on handheld device
CN107707823A (en) A kind of image pickup method and mobile terminal
CN106777329A (en) The processing method and mobile terminal of a kind of image information
CN106959864A (en) A kind of adjusting method and mobile terminal of interface display effect
CN104238887A (en) Icon lookup method and icon lookup device for common application program
CN106547358A (en) A kind of display packing and terminal of terminal time information
WO2022041606A1 (en) Method and apparatus for adjusting display position of control
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106503625B (en) A kind of method and mobile terminal detecting hair distribution situation
CN107610042A (en) A kind of image beautification method and mobile terminal
CN106648374A (en) Mobile terminal screen brightness adjustment method and mobile terminal
CN106855744B (en) A screen display method and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313