[go: up one dir, main page]

CN107357540B - Display direction adjusting method and mobile terminal - Google Patents

Display direction adjusting method and mobile terminal Download PDF

Info

Publication number
CN107357540B
CN107357540B CN201710524055.6A CN201710524055A CN107357540B CN 107357540 B CN107357540 B CN 107357540B CN 201710524055 A CN201710524055 A CN 201710524055A CN 107357540 B CN107357540 B CN 107357540B
Authority
CN
China
Prior art keywords
display
display interface
interface
display direction
face
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
CN201710524055.6A
Other languages
Chinese (zh)
Other versions
CN107357540A (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.)
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 CN201710524055.6A priority Critical patent/CN107357540B/en
Publication of CN107357540A publication Critical patent/CN107357540A/en
Application granted granted Critical
Publication of CN107357540B publication Critical patent/CN107357540B/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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种显示方向的调整方法及移动终端,其中,所述方法包括:获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。从而解决了现有技术中移动终端界面的显示方向与用户的观看方向不同的问题。

Figure 201710524055

The present invention provides a method for adjusting a display direction and a mobile terminal, wherein the method includes: acquiring the display directions of a first display interface and a second display interface in the display interface of the mobile terminal; When the direction and the display direction of the second display interface are different, according to the display direction of one of the first display interface or the second display interface, adjust the display direction of the other display interface, so that the display direction of the first display interface and the display direction of the second display interface are different. The display directions of the second display interface are the same. Thus, the problem in the prior art that the display direction of the mobile terminal interface is different from the viewing direction of the user is solved.

Figure 201710524055

Description

一种显示方向的调整方法及移动终端A kind of adjustment method of display direction and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种显示方向的调整方法及移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to a method for adjusting a display direction and a mobile terminal.

背景技术Background technique

随着电子技术的飞速发展,智能手机,平板电脑等便携移动设备极大的改变着人们的生活和工作方式,而这些移动设备上通常会配备一个或多个摄像头,以实现用户的越来越高的拍摄需求。With the rapid development of electronic technology, portable mobile devices such as smartphones and tablet computers have greatly changed the way people live and work, and these mobile devices are usually equipped with one or more cameras to achieve more and more users. High shooting demand.

目前,随着摄像头使用场景也越来越多,例如,AR/VR、手机3D投影等技术的逐渐兴起,摄像头成像效果和取景准确性要求也会越来越高。目前,为实现取景角度准确,智能手机开启摄像头在线视频或者拍照后,通过重力传感器(G-senior)判断识别竖直方向上的角度变化方向,让手机每旋转90度时,摄像头的取景方向相应调整始终保持和重力方向一致。用以防止因为智能手机旋转而出现人像和景物倒置的情况。At present, with the increasing use of cameras, for example, the gradual rise of technologies such as AR/VR and 3D projection on mobile phones, the requirements for camera imaging effects and framing accuracy will become higher and higher. At present, in order to achieve an accurate viewing angle, the smartphone uses the gravity sensor (G-senior) to judge and identify the angle change direction in the vertical direction after turning on the camera for online video or taking pictures, so that every time the mobile phone rotates 90 degrees, the viewing direction of the camera corresponds to The adjustment is always consistent with the direction of gravity. Used to prevent upside-down portraits and scenes due to smartphone rotation.

然而,在一些重力传感器不适用或分屏的场景,由于无法或者用户的朝向,界面的显示往往根据预设角度进行显示,可能与用户的朝向不同,影响用户正常查看。However, in some scenarios where the gravity sensor is not applicable or the screen is split, the display of the interface is often displayed according to a preset angle due to the inability or the user's orientation, which may be different from the user's orientation, which affects the user's normal viewing.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种显示方向的调整方法及移动终端,以解决现有技术中移动终端中界面的显示方向与用户的观看方向不同的问题。Embodiments of the present invention provide a method for adjusting a display direction and a mobile terminal, so as to solve the problem in the prior art that the display direction of an interface in a mobile terminal is different from the viewing direction of a user.

第一方面,本发明实施例提供了一种显示方向的调整方法,应用于移动终端,该方法包括:In a first aspect, an embodiment of the present invention provides a method for adjusting a display direction, which is applied to a mobile terminal, and the method includes:

获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;acquiring the display directions of the first display interface and the second display interface in the display interface of the mobile terminal;

当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。When the display direction of the first display interface and the display direction of the second display interface are different, according to the display direction of one of the first display interface or the second display interface, adjust the display direction of the other display interface, so that the display direction of the other display interface is adjusted. The display direction of the first display interface is the same as the display direction of the second display interface.

第二方面,本发明实施例还提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:

取景方向获取模块,用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;a viewfinder direction acquisition module, configured to acquire the display directions of the first display interface and the second display interface in the display interface of the mobile terminal;

取景方向调整模块,用于当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。A viewfinder direction adjustment module, used for adjusting the display direction of one display interface of the first display interface or the second display interface when the display direction of the first display interface and the display direction of the second display interface are different, to adjust the other display interface so that the display direction of the first display interface and the display direction of the second display interface are the same.

这样,本发明实施例中,通过获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同,从而解决现有技术中移动终端中界面的显示方向与用户的观看方向不同的问题。In this way, in this embodiment of the present invention, the display directions of the first display interface and the second display interface in the display interface of the mobile terminal are obtained; when the display direction of the first display interface and the display direction of the second display interface are different, according to The display direction of one of the first display interface or the second display interface is adjusted, and the display direction of the other display interface is adjusted so that the display direction of the first display interface and the display direction of the second display interface are the same, thereby solving the problem of existing In the technology, the display direction of the interface in the mobile terminal is different from the viewing direction of the user.

附图说明Description of drawings

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

图1示出了本发明实施例一中的一种显示方向的调整方法的流程图;1 shows a flowchart of a method for adjusting a display direction in Embodiment 1 of the present invention;

图2示出了本发明实施例二中的一种显示方向的调整方法的流程图;FIG. 2 shows a flowchart of a method for adjusting a display direction in Embodiment 2 of the present invention;

图2A示出了本发明实施例二中的人脸T型区域显示方向的调整示意图;FIG. 2A shows a schematic diagram of adjusting the display direction of the T-shaped area of the face in Embodiment 2 of the present invention;

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

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

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

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

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

实施例一Example 1

参照图1,示出了本发明实施例一的一种显示方向的调整方法的流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flowchart of a method for adjusting a display direction according to Embodiment 1 of the present invention is shown, which may specifically include the following steps:

步骤110,获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向。Step 110: Obtain the display directions of the first display interface and the second display interface in the display interfaces of the mobile terminal.

本发明实施例中,在使用移动终端时,当确定移动终端上显示屏处于开启状态时,检测具有两个显示界面,分别是第一显示界面和第二显示界面。其中,第一显示界面和第二显示界面可以分屏的两个独立的显示界面,也可以是叠加式的显示界面。例如第一显示界面显示面积小于第二显示界面,并悬浮在第二显示界面上。In the embodiment of the present invention, when the mobile terminal is used, when it is determined that the display screen on the mobile terminal is in an on state, it is detected that there are two display interfaces, namely a first display interface and a second display interface. Wherein, the first display interface and the second display interface may be two independent display interfaces with a split screen, or may be superimposed display interfaces. For example, the display area of the first display interface is smaller than that of the second display interface, and is suspended on the second display interface.

本实施例以分屏为例进一步说明。首先判定移动终端中是否开启双屏显示,其中,Android框架中与显示相关的组件主要有活动Activity、窗口Windows、窗口属性WindowState、窗口管理服务Windows Manager Service、显示管理服务Display ManagerService、界面管理Surface Manager/Surface Flinger、显示层Display HAL(HardwareAbstraction Layer)以及Linux系统核心Linux Kernel中显示方面的驱动等。Android平台在4.2版本之后新增了对于多屏的支持,主要有3种屏幕类型:主屏幕(Primary Display)、外屏幕(External Display)和虚拟屏幕(Virtual Display)。其中自带屏幕一般识别为主屏幕,而HDMI将会被设为外屏幕。为了方便APP访问上述3种屏幕,Android还提供了一个统一的屏幕管理服务DisplayManagerService,通过DisplayManagerService也可方便地获取到显示设备参数并实现双屏显示操作。Android系统通过一个WindowState的列表维护当前窗体栈,列表从开始直至结束代表当前窗体显示的窗体景深(前后)布局顺序。该列表与当前显示默认设备绑定,而WindowState本身包含着当前窗体的Surface信息。以上实现了默认显示设备、WindowState列表以及各Window的Surface的连接关系。然后,根据当前显示情况进行判断,若当前是双屏同显状态,有应用请求显示至第二屏幕上。首先按照默认窗体栈,也即默认WindowState列表创立一个新的窗体栈——第二窗体栈,通过DisplayManager Service获取第二屏幕操作上下文对象DisplayContent并将新创建的第二窗体栈与获取的上下文对象绑定。这时从第一窗体栈中查找当前应用的窗体状态对象WindowState所以,通过获取WindowState其中的具体参数,即可以得知移动终端双屏显示的的开启状态,当分屏状态处于开启时,进一步的获取第一显示屏和第二显示屏显示画面的显示方向。This embodiment is further described by taking the split screen as an example. First determine whether dual-screen display is enabled in the mobile terminal. Among them, the display-related components in the Android framework mainly include activity Activity, window Windows, window attribute WindowState, window management service Windows Manager Service, display management service Display ManagerService, and interface management Surface Manager /Surface Flinger, Display HAL (HardwareAbstraction Layer) and display drivers in the Linux Kernel, the core of the Linux system. The Android platform added support for multiple screens after version 4.2. There are three main screen types: Primary Display, External Display and Virtual Display. The built-in screen is generally recognized as the main screen, and HDMI will be set as the external screen. In order to facilitate the APP to access the above three types of screens, Android also provides a unified screen management service DisplayManagerService, through which the display device parameters can also be easily obtained and dual-screen display operations can be realized. The Android system maintains the current window stack through a list of WindowState, and the list represents the depth of field (front and rear) layout order of the window displayed by the current window from the beginning to the end. The list is bound to the current display default device, and WindowState itself contains the Surface information of the current form. The above implements the default display device, the WindowState list, and the connection relationship between the Surfaces of each Window. Then, it is judged according to the current display situation, if the current dual-screen simultaneous display state, there is an application request to display on the second screen. First, create a new form stack - the second form stack according to the default form stack, that is, the default WindowState list, obtain the second screen operation context object DisplayContent through the DisplayManager Service and combine the newly created second form stack with the obtained Context object bindings. At this time, the window state object WindowState of the current application is searched from the first window stack. Therefore, by obtaining the specific parameters of WindowState, you can know the opening state of the dual-screen display of the mobile terminal. When the split-screen state is turned on, further to obtain the display directions of the images displayed on the first display screen and the second display screen.

步骤120,当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。Step 120, when the display orientation of the first display interface and the display orientation of the second display interface are different, adjust the display orientation of the other display interface according to the display orientation of one of the first display interface or the second display interface, So that the display direction of the first display interface and the display direction of the second display interface are the same.

本发明实施例中,在实际应用中,摄像头的预览方向在由于手机屏幕可以360度旋转,为了保证用户无论怎么旋转手机都能看到“正确”的预览画面(这个“正确”是指人眼看到的眼前的画面的顺序与UI预览界面的画面是匹配的),所以移动终端双屏显示界面中的取景方向并不一定相同,在Android系统底层根据当前手机屏幕的方向对图像Sensor采集到的数据进行了旋转处理,然后才送给显示系统,因此,打开Camera应用后,无论怎么旋转手机,都能看到“正确”的画面,Android系统提供一个API来手动设置Camera的预览方向,叫做setDisplayOrientation,默认情况下,这个值是0,与图像Sensor方向一致,所以对于横屏应用来说,就不需要更改这个Camera预览方向,但是,如果应用是竖屏应用,就必须通过这个API将Camera的预览方向旋转90,与手机屏幕方向一致,这样才会得到正确的预览画面。摄像头的拍照方向为,当用户点击拍照按钮,得到的图片方向不一定与画面中预览的方向一致,这是因为拍摄的照片是将图像传感器采集到的数据直接存储到SDCard上的,因此,Camera的拍照方向与上述的摄像头的图像传感器方向一致。所以通过如果拍照方向不是正确方向,以双屏中一个显示屏的取景方向为主,调整两个显示屏的取景方向一致,其中,可以通过调用函数setDisplayOrientation(),来保证摄像头的预览方向与Activity的方向一致,即调整为正确方向。In the embodiment of the present invention, in practical applications, the preview direction of the camera is 360 degrees because the screen of the mobile phone can be rotated, in order to ensure that the user can see the "correct" preview screen no matter how the mobile phone rotates (this "correct" refers to the human eye The order of the pictures in front of you is matched with the pictures in the UI preview interface), so the viewing directions in the dual-screen display interface of the mobile terminal are not necessarily the same. The data is rotated and then sent to the display system. Therefore, after opening the Camera app, no matter how you rotate the phone, you can see the "correct" picture. The Android system provides an API to manually set the camera's preview orientation, called setDisplayOrientation , by default, this value is 0, which is consistent with the orientation of the image Sensor, so for landscape applications, you do not need to change the Camera preview orientation, but if the application is a portrait application, you must pass this API to the Camera Rotate the preview direction by 90, which is consistent with the direction of the mobile phone screen, so as to get the correct preview picture. The direction of the camera is that when the user clicks the photo button, the direction of the obtained picture is not necessarily the same as the direction of the preview in the screen. This is because the data collected by the image sensor is directly stored on the SDCard. Therefore, the Camera The photographing direction of the camera is consistent with the image sensor direction of the above-mentioned camera. Therefore, if the camera direction is not the correct direction, the viewfinder direction of one display screen in the dual screen is mainly used, and the viewfinder direction of the two display screens is adjusted to be consistent. Among them, the function setDisplayOrientation() can be called to ensure that the preview direction of the camera is consistent with the Activity. The direction is the same, that is, adjust to the correct direction.

在本发明实施例中,通过获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。具有将摄像头预览方向即取景方向一直调整为面对用户正向的有益效果,增强了用户的使用体验。In this embodiment of the present invention, the display directions of the first display interface and the second display interface in the display interface of the mobile terminal are acquired; when the display direction of the first display interface and the display direction of the second display interface are different, according to the The display orientation of one display interface or the second display interface is adjusted, and the display orientation of the other display interface is adjusted so that the display orientation of the first display interface and the display orientation of the second display interface are the same. It has the beneficial effect of always adjusting the camera preview direction, that is, the framing direction, to face the positive direction of the user, which enhances the user's use experience.

实施例二Embodiment 2

参照图2,示出了本发明实施例二的一种显示方向的调整方法的流程图,具体可以包括如下步骤:Referring to FIG. 2 , a flowchart of a method for adjusting a display direction according to Embodiment 2 of the present invention is shown, which may specifically include the following steps:

步骤210,获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面。Step 210: Obtain the display directions of the first display interface and the second display interface after the split screen, wherein the first display interface is a reduced interface of the display interface before the split screen.

本发明实施例中,Android框架中与显示相关的组件主要有活动Activity、窗口Windows、窗口属性WindowState、窗口管理服务Windows Manager Service、显示管理服务Display Manager Service、界面管理Surface Manager/Surface Flinger、显示层DisplayHAL(Hardware Abstraction Layer)以及Linux系统核心Linux Kernel中显示方面的驱动等。Android平台在4.2版本之后新增了对于多屏的支持,主要有3种屏幕类型:主屏幕(Primary Display)、外屏幕(External Display)和虚拟屏幕(Virtual Display)。其中自带屏幕一般识别为主屏幕,而HDMI将会被设为外屏幕。为了方便APP访问上述3种屏幕,Android还提供了一个统一的屏幕管理服务DisplayManagerService。虽然屏幕被划分为3种类型,但是建立于它们之上的窗口合成以及渲染依然统一由SurfaceFlinger管理。这些新特性的引入确保了双屏异显的框架基础。具体实现时,如Surface Manger在识别到当前设备拥有多个逻辑显示设备时,可根据需要创立对应的Surface,通过Display ManagerService也可方便地获取到显示设备列表并进行操作。Android系统通过一个WindowState的列表维护当前窗体栈,列表从开始直至结束代表当前窗体显示的窗体景深(前后)布局顺序。该列表与当前显示默认设备绑定,而WindowState本身包含着当前窗体的Surface信息,以实现移动终端显示屏上的双屏显示,并且可以根据参数设置的更改将第一显示界面为分屏前的显示界面的缩小界面,该缩小界面的大小以及与全屏的比例都可以根据当前移动终端的固件参数进行设定。当然,检测移动终端双屏状态的方式不限上述描述,本发明实施例对此不加以限制。In the embodiment of the present invention, the display-related components in the Android framework mainly include activity Activity, window Windows, window attribute WindowState, window management service Windows Manager Service, display management service Display Manager Service, interface management Surface Manager/Surface Flinger, display layer DisplayHAL (Hardware Abstraction Layer) and the display driver in the Linux Kernel, the core of the Linux system. The Android platform added support for multiple screens after version 4.2. There are three main screen types: Primary Display, External Display and Virtual Display. The built-in screen is generally recognized as the main screen, and HDMI will be set as the external screen. In order to facilitate the APP to access the above three kinds of screens, Android also provides a unified screen management service DisplayManagerService. Although the screen is divided into 3 types, the window composition and rendering built on them are still managed by SurfaceFlinger. The introduction of these new features ensures the framework foundation for dual-screen display. In the specific implementation, for example, when the Surface Manger recognizes that the current device has multiple logical display devices, it can create the corresponding Surface as needed, and the Display ManagerService can also easily obtain and operate the display device list. The Android system maintains the current window stack through a list of WindowState, and the list represents the depth of field (front and rear) layout order of the window displayed by the current window from the beginning to the end. The list is bound to the current display default device, and WindowState itself contains the Surface information of the current form, so as to realize dual-screen display on the display screen of the mobile terminal, and the first display interface can be changed to the front-split screen according to the change of parameter settings. The reduced interface of the display interface, the size of the reduced interface and the ratio to the full screen can be set according to the firmware parameters of the current mobile terminal. Certainly, the manner of detecting the dual-screen state of the mobile terminal is not limited to the above description, which is not limited in this embodiment of the present invention.

步骤220,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Step 220: Adjust the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

本发明实施例中,根据当前显示情况进行判断,若当前是双屏同显状态,有应用请求显示至第二屏幕上。首先按照默认窗体栈,也即默认WindowState列表创立一个新的窗体栈——第二窗体栈,通过Display Manager Service获取第二屏幕操作上下文对象DisplayContent并将新创建的第二窗体栈与获取的上下文对象绑定。这时从第一窗体栈中查找当前应用的窗体状态对象WindowState所以,通过获取WindowState其中的具体参数,即可以得知移动终端双屏显示的状态是否为开启状态。根据上述方法判定移动终端开启双屏显示时,其中一个应用为拍照应用显示在其中一个显示任务中,另一个应用则显示在第二显示任务中,此时通过获取WindowState中关于第二显示任务调用参数,例如,通过函数ToSecondDisplay(),其中的mDisplayContents,获取第一显示任务和第二显示任务中的显示内容以及显示方向,并通常第一显示界面中的显示方向是面对用户的,所以以该方向为主,调整第二显示界面的显示方向与第一界面显示方向相同。根据分屏前的显示界面的显示方向,可以得知分屏后的第一显示界面的显示界面。其中,第一显示界面为分屏前的显示界面的缩小界面。由于第一显示界面的显示方向适配用户,故分屏后以第一显示界面为准,调整第二显示界面的显示方向可以确保用户的观看不受分屏的影响。In the embodiment of the present invention, the judgment is made according to the current display situation. If the current dual-screen simultaneous display state is in the state of simultaneous display, there is an application request to display on the second screen. First, create a new window stack - the second window stack according to the default window stack, that is, the default WindowState list, obtain the second screen operation context object DisplayContent through the Display Manager Service and add the newly created second window stack to the second window stack. Get the context object binding. At this time, the window state object WindowState of the current application is searched from the first window stack. Therefore, by obtaining specific parameters in WindowState, it can be known whether the dual-screen display state of the mobile terminal is in the open state. According to the above method, when it is determined that the mobile terminal enables dual-screen display, one of the applications is a camera application displayed in one of the display tasks, and the other application is displayed in the second display task. Parameters, for example, through the function ToSecondDisplay(), where mDisplayContents, obtain the display content and display direction in the first display task and the second display task, and usually the display direction in the first display interface is facing the user, so use This direction is the main one, and the display direction of the second display interface is adjusted to be the same as the display direction of the first interface. According to the display direction of the display interface before the split screen, the display interface of the first display interface after the split screen can be known. The first display interface is a reduced interface of the display interface before the split screen. Since the display direction of the first display interface is adapted to the user, the first display interface shall prevail after the screen is split, and adjusting the display direction of the second display interface can ensure that the user's viewing is not affected by the split screen.

优选的,在本发明另一实施例中,还包括:Preferably, in another embodiment of the present invention, it also includes:

步骤210A,在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向。Step 210A, during the video call, acquire the first display interface captured by the front camera of the mobile terminal, and determine the display direction of the first display interface according to the face of the first display interface.

本发明实施例中,实际应用中,以安卓系统为例,首先检测设备是否有摄像头,在视频通话进行时,首先,根据函数hasCamera()的返回值可以确定设备是否有摄像头,并且可以通过函数hasBackFacingCamera()以及函数hasFrontFacingCamera()判断设备的前后摄像头是否可用,进一步的判断该摄像头的状态,可以利用main线程里调用函数Camera.open,获取catch相应的RuntimeException,如果返回值canUse=true,那么就说明当前的摄像头处于开启状态。当确定设备上的摄像头的状态是开启状态,并根据视频通话开启操作返回的参数,开始进一步的判断摄像头的取景内容,并提取取景画面中取景内容中的人脸特征,并根据人脸特征的显示方向判定第一显示界面的显示方向,通常,在视频通话中,由于前置摄像头拍摄的是用户的人脸,所以第一显示界面为前置摄像头拍摄的画面,并且获取的用户人脸特征的显示方向为当前移动终端画面显示方向的标准。In the embodiment of the present invention, in the practical application, taking the Android system as an example, firstly, it is detected whether the device has a camera. When a video call is in progress, first, whether the device has a camera can be determined according to the return value of the function hasCamera(), and the function can be used to determine whether the device has a camera. hasBackFacingCamera() and the function hasFrontFacingCamera() determine whether the front and rear cameras of the device are available, and to further determine the status of the camera, you can use the main thread to call the function Camera.open to get the corresponding RuntimeException of the catch, if the return value canUse=true, then Indicates that the current camera is on. When it is determined that the status of the camera on the device is on, and according to the parameters returned by the video call start operation, it starts to further judge the framing content of the camera, and extracts the face features in the framing content in the framing screen, and according to the face features The display direction determines the display direction of the first display interface. Usually, in a video call, since the front camera captures the user's face, the first display interface is the image captured by the front camera, and the acquired user's face features The display direction is the standard of the current screen display direction of the mobile terminal.

优选的,步骤210A具体包括:子步骤210A1-210A2;Preferably, step 210A specifically includes: sub-steps 210A1-210A2;

子步骤210A1,根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。Sub-step 210A1: Determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the facial features in the first display interface.

本发明实施例中,对于手机拍照时人脸识别主要应用:拍摄场景中人脸检测与定位,而基于几何特征的人脸检测方法中,首先确定人脸由眼睛、鼻子、嘴巴、下巴等部件构成,正因为这些部件的形状、大小和结构上的各种差异才使得世界上每个人脸千差万别,因此对这些部件的形状和结构关系的几何描述可以作为人脸识别的重要特征。大致的,首先根据轮廓曲线确定若干显著点,并由这些显著点导出一组用于识别的特征度量如距离、角度、等由正面灰度图中线附近的积分投影。当拍照过程中发现符合识别特征的轮廓曲线,就能快速定位和标记出来。而人脸T字型轮廓特征识别,需要识别人脸特征点的位置大致为,眉毛、鼻子左侧,鼻尖、鼻子右侧、鼻孔下侧,瞳孔位置,上嘴唇下侧等点,特征点分布类似于T字型。当确定人脸特征的T型区域后,可以具体判断该区域的显示角度,从而判断拍摄取景角度的显示方向。In the embodiment of the present invention, the main application of face recognition when taking pictures with a mobile phone is: face detection and positioning in the shooting scene, and in the face detection method based on geometric features, it is first determined that the face consists of parts such as eyes, nose, mouth, chin, etc. It is precisely because of the various differences in shape, size and structure of these parts that each face in the world is very different, so the geometric description of the shape and structural relationship of these parts can be used as an important feature of face recognition. Roughly, several salient points are firstly determined according to the contour curve, and a set of characteristic metrics for identification such as distance, angle, etc. are derived from these salient points, and are projected by the integral near the line in the frontal grayscale image. When a contour curve that conforms to the identification features is found during the photographing process, it can be quickly positioned and marked. For face T-shaped contour feature recognition, the positions of the face feature points that need to be identified are roughly, the eyebrows, the left side of the nose, the tip of the nose, the right side of the nose, the lower side of the nostril, the position of the pupil, the lower side of the upper lip, etc. The distribution of the feature points Similar to the T shape. After the T-shaped area of the face feature is determined, the display angle of the area can be specifically determined, so as to determine the display direction of the shooting framing angle.

优选的,子步骤210A1,具体包括:子步骤210A11-子步骤210A13;Preferably, sub-step 210A1 specifically includes: sub-step 210A11-sub-step 210A13;

子步骤210A11,根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征。Sub-step 210A11, according to the facial features in the first display interface, determine whether it is a single facial feature.

本发明实施例中,若在拍摄显示的预览画面中,通过监测人脸的T型特征,发现在检测出多个人脸特征,那么就判断当前的预览画面中存在多个人脸,若只检测出一个T型区域,则确定为一个人脸。当确定检测单个人脸特征后,则提取该人脸特征的T型区角度偏移参数,假定场景为手机水平放置(或者手机重力传感器异常),取景框中自动人脸识别功能开启,识别人脸双眼和鼻梁类“T”型区域,以此为判断是否正确取景标准,当从“T”逐渐变成

Figure BDA0001338194800000081
或者
Figure BDA0001338194800000082
时,可以根据T字的角度获取角度偏移参数。In the embodiment of the present invention, if it is found that multiple face features are detected by monitoring the T-shaped feature of the human face in the preview image displayed by shooting, then it is determined that there are multiple human faces in the current preview image. A T-shaped area is identified as a face. When it is determined to detect a single face feature, the angle offset parameter of the T-shaped area of the face feature is extracted, assuming the scene is that the mobile phone is placed horizontally (or the mobile phone's gravity sensor is abnormal), and the automatic face recognition function in the viewfinder is turned on. The eyes and the bridge of the nose are the "T"-shaped areas, which are used as the standard for judging whether the framing is correct. When the "T" gradually becomes
Figure BDA0001338194800000081
or
Figure BDA0001338194800000082
, the angle offset parameter can be obtained according to the angle of the T word.

步骤210A12,若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。Step 210A12, if it is a single face feature, determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the single face feature.

本发明实施例中,如图2A所示,假定场景为手机水平放置(或者手机重力传感器异常),取景框中自动人脸识别功能开启,识别人脸双眼和鼻梁类“T”型区域,以此为判断是否正确取景标准,当从“T”逐渐变成

Figure BDA0001338194800000083
或者
Figure BDA0001338194800000084
时,切换取景视角90度。其中,人脸T型区与取景角度偏移变化量实时读取,且判定当人脸T型区与摄像头取景角度一旦偏移超过了45度门限时,即可切换摄像头取景角度。In the embodiment of the present invention, as shown in FIG. 2A , it is assumed that the scene is that the mobile phone is placed horizontally (or the gravity sensor of the mobile phone is abnormal), the automatic face recognition function in the viewfinder is turned on, and the “T”-shaped area of the eyes and the bridge of the nose is recognized to identify the human face and the bridge of the nose. This is the standard for judging whether the framing is correct. When it gradually changes from "T" to
Figure BDA0001338194800000083
or
Figure BDA0001338194800000084
, switch the viewing angle to 90 degrees. Among them, the change of the face T-shaped area and the viewing angle offset is read in real time, and it is determined that once the deviation between the face T-shaped area and the camera viewing angle exceeds the 45-degree threshold, the camera viewing angle can be switched.

步骤210A13,若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。Step 210A13: If there are multiple face features, determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the face feature with the largest area among the multiple face features.

本发明实施例中,若屏幕出现多个人脸时且由于行为不一致性(头部倾斜)导致多个人脸T型区偏移角度不一致的情况,需要启用检测人脸识别区面积大小,以最大个体人脸识别区面积作为主要参考人脸,并提取该人脸的T型区与当前摄像头取景角度偏移为判定摄像头取景角度变化的标准,其中,多个人脸中面积最大的人脸特征辨识度最高,提取的T型区人脸特征即能表明该取景画面的取景方向,所以如果监测出多个人脸的T型区域,则将其中面积最大的人脸特征中的T型区域作为判定角度偏移参数的T型特征。In the embodiment of the present invention, if there are multiple faces on the screen and the offset angles of the T-shaped areas of multiple faces are inconsistent due to inconsistency in behavior (head tilt), it is necessary to enable the detection of the area size of the face recognition area, with the largest individual The area of the face recognition area is used as the main reference face, and the deviation between the T-shaped area of the face and the current camera framing angle is extracted as the criterion for judging the change of the framing angle of the camera. The highest, the extracted face features in the T-shaped area can indicate the framing direction of the framing screen, so if multiple T-shaped areas of faces are monitored, the T-shaped area in the face feature with the largest area is used as the judgment angle deviation. T-type feature for shifting parameters.

子步骤210A2,当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Sub-step 210A2, when the difference between the angle of the T-shaped area in the facial features in the second display interface and the angle of the T-shaped area in the facial features in the first display interface reaches a preset switching threshold, then The display direction of the second display interface is adjusted according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

本发明实施例中,当通过上述方法判定第一显示界面和第二显示界面摄像头的取景方向后,那么就根据对比两个显示界面显示方向的偏移角度,来判定两个显示界面的显示方向是否一致,若不一致则进行调整,例如上例中,当判定当第二显示界面中的人脸T型区与第一显示界面的人脸T型区角度偏移超过了45度门限时,那么就将第二显示界面的取景方向旋转至小于20度,其中20度为预设正向取景值,具体的,通过调用函数getCameraInfo(),以及函数getWindowManager()和函数getDefaultDisplay(),可以得知当前的显示任务方向,在通过Surface.ROTATION,调整摄像头取景方向至预设值,当然,该值可以根据用户的需求随时调整设定,本发明实施例对此不加以限制。In this embodiment of the present invention, after determining the viewing directions of the cameras of the first display interface and the second display interface through the above method, then the display directions of the two display interfaces are determined according to the offset angles of the display directions of the two display interfaces. Whether it is consistent, if not, adjust it. For example, in the above example, when it is determined that the angle deviation between the face T-shaped area in the second display interface and the face T-shaped area in the first display interface exceeds the 45-degree threshold, then Rotate the viewing direction of the second display interface to less than 20 degrees, where 20 degrees is the preset forward viewing value. Specifically, by calling the function getCameraInfo(), the function getWindowManager() and the function getDefaultDisplay(), you can know For the current display task direction, the camera viewing direction is adjusted to a preset value through Surface.ROTATION. Of course, the value can be adjusted and set at any time according to the user's needs, which is not limited in this embodiment of the present invention.

优选的,在本发明的另一实施例中,还包括:Preferably, in another embodiment of the present invention, it also includes:

步骤210B,获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向。Step 210B: Acquire the second display interface of the counterparty in the video call, and determine the display direction of the second display interface according to the face of the second display interface.

本发明实施例中,第二显示界面通常为视频通话对方的图像,提取显示界面中的人脸特征,并进一步的判断该人脸特征的显示方向,进而确定第二显示界面的显示方向,一般来说,人脸识别系统包括图像摄取、人脸定位、图像预处理、以及人脸识别(身份确认或者身份查找)。所以可以根据人脸中主要特征,并进行处理后确定人脸的显示方向。In the embodiment of the present invention, the second display interface is usually an image of the other party in the video call, and the facial features in the display interface are extracted, and the display direction of the facial features is further judged, and then the display direction of the second display interface is determined. Generally, In other words, a face recognition system includes image capture, face localization, image preprocessing, and face recognition (identity confirmation or identity search). Therefore, the display direction of the face can be determined after processing according to the main features of the face.

步骤210C,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Step 210C: Adjust the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

此步骤与步骤220相同,在此不再详述。This step is the same as step 220 and will not be described in detail here.

在本发明实施例中,通过获取分屏后第一显示界面和第二显示界面的显示方向,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同,并通过在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向,并调整两个显示界面的方向一致,实现了在较为复杂场景下的自拍、和视频通话等提升了用户体验的有益效果。In this embodiment of the present invention, by acquiring the display orientations of the first display interface and the second display interface after the split screen, the display orientation of the second display interface is adjusted according to the display orientation of the first display interface, so that the display orientation of the second display interface is The direction is the same as the display direction of the first display interface, and the first display interface captured by the front camera of the mobile terminal is acquired during the video call, and the first display interface is determined according to the face of the first display interface. The display direction is adjusted, and the directions of the two display interfaces are adjusted to be consistent, realizing the beneficial effects of improving the user experience such as selfies and video calls in more complex scenes.

实施例三Embodiment 3

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

所述移动终端300包括:取景方向获取模块301、取景方向调整模块302。The mobile terminal 300 includes: a viewfinder direction acquisition module 301 and a viewfinder direction adjustment module 302 .

取景方向获取模块301,用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;取景方向调整模块302,用于当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。The viewing direction acquisition module 301 is used to acquire the display directions of the first display interface and the second display interface in the display interface of the mobile terminal; the viewing direction adjustment module 302 is used for when the display direction of the first display interface and the second display interface are displayed. When the display directions are different, according to the display direction of one of the first display interface or the second display interface, adjust the display direction of the other display interface, so that the display direction of the first display interface and the display direction of the second display interface same direction.

参照图4,下面分别详细介绍所述移动终端400各模块的功能以及各模块之间的交互关系。Referring to FIG. 4 , the functions of each module of the mobile terminal 400 and the interaction relationship between the modules are described in detail below.

取景方向获取模块401,用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;A viewing direction obtaining module 401, configured to obtain the display directions of the first display interface and the second display interface in the display interface of the mobile terminal;

优选的,所述取景方向获取模块401,具体包括:Preferably, the framing direction acquiring module 401 specifically includes:

获取分屏显示方向子模块4011,用于获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面;The sub-module 4011 for obtaining the display direction of the split screen is used to obtain the display directions of the first display interface and the second display interface after the split screen, wherein the first display interface is a reduced interface of the display interface before the split screen;

优选的,在本发明的另一实施例中,所述取景方向获取模块401,包括:Preferably, in another embodiment of the present invention, the framing direction acquiring module 401 includes:

第一显示方向获取子模块,用于在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向;a first display orientation acquisition submodule, configured to acquire a first display interface captured by a front camera of a mobile terminal during a video call, and determine a display orientation of the first display interface according to a face of the first display interface;

第二显示方向获取子模块,用于获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向;The second display orientation obtaining submodule is used to obtain the second display interface of the opposite party in the video call, and determine the display orientation of the second display interface according to the face of the second display interface;

优选的,第一显示方向子模块,具体包括:Preferably, the first display direction sub-module specifically includes:

人脸特征方向确定单元,用于根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;a face feature direction determination unit, configured to determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the face feature in the first display interface;

优选的,人脸特征方向确定单元,具体包括:Preferably, the face feature direction determination unit specifically includes:

单个人脸特征判断子单元,用于根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征;A single face feature judgment subunit, used for judging whether it is a single face feature according to the face feature in the first display interface;

单人脸显示方向确定子单元,用于若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。The single-face display direction determination subunit is used for determining the display direction of the first display interface according to the T-shaped area angle offset parameter in the single face feature if it is a single face feature.

多人脸显示方向确定子单元,用于若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。The multi-face display direction determination subunit is used to determine the first display interface according to the T-shaped area angle offset parameter in the face feature with the largest area in the plurality of face features if it is a plurality of face features display direction.

取景方向调整模块402,用于当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。The viewfinder direction adjustment module 402 is used to adjust the display direction of one display interface in the first display interface or the second display interface when the display direction of the first display interface is different from the display direction of the second display interface. The display direction of the interface, so that the display direction of the first display interface and the display direction of the second display interface are the same.

优选的,所述取景方向调整模块402,具体包括:Preferably, the viewing direction adjustment module 402 specifically includes:

取景方向调整子模块4021,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The viewing direction adjustment sub-module 4021 adjusts the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

取景方向判断调整子模块4022,用于当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The viewing direction judgment and adjustment sub-module 4022 is used for when the difference between the T-shaped area angle in the facial features in the second display interface and the T-shaped area angle in the facial features in the first display interface reaches The preset switching threshold is to adjust the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

在本发明实施例中,通过获取分屏后第一显示界面和第二显示界面的显示方向,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同,并通过在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向,并调整两个显示界面的方向一致,实现了在较为复杂场景下的自拍、和视频通话等提升了用户体验的有益效果。In this embodiment of the present invention, by acquiring the display orientations of the first display interface and the second display interface after the split screen, the display orientation of the second display interface is adjusted according to the display orientation of the first display interface, so that the display orientation of the second display interface is The direction is the same as the display direction of the first display interface, and the first display interface captured by the front camera of the mobile terminal is acquired during the video call, and the first display interface is determined according to the face of the first display interface. The display direction is adjusted, and the directions of the two display interfaces are adjusted to be consistent, realizing the beneficial effects of improving the user experience such as selfies and video calls in more complex scenes.

实施例四Embodiment 4

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

图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503以及拍照组件506。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。The mobile terminal 500 shown in FIG. 5 includes: at least one processor 501 , memory 502 , at least one network interface 504 and user interface 503 , and a photographing component 506 . The various components in the mobile terminal 500 are coupled together by a bus system 505 . It is understood that the bus system 505 is used to implement the connection 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, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .

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

可以理解,本发明实施例中的存储器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 non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (ErasablePROM, EPROM), Electrically Erasable Program read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be Random Access Memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (DirectRambusRAM, DRRAM). The memory 502 of the systems and methods described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

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

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

在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。In this embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is configured to acquire the first display interface and The display orientation of the second display interface; when the display orientation of the first display interface and the display orientation of the second display interface are different, adjust the display orientation of one of the first display interface or the second display interface according to the display orientation of the other display interface The display direction of the interface, so that the display direction of the first display interface and the display direction of the second display interface are the same. The methods disclosed in the above 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 with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 501 or an instruction 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 logical block diagrams disclosed in the embodiments of the present invention can 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 method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. 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 processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.

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

可选地,处理器501处理所述获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向时,还用于:获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面;所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 501 processes the acquisition of the display orientations of the first display interface and the second display interface in the display interface of the mobile terminal, it is further configured to: acquire the display orientation of the first display interface and the second display interface after the split screen. Display orientation, wherein the first display interface is a reduced interface of the display interface before the split screen; the display orientation of one display interface in the first display interface or the second display interface is adjusted according to the display orientation of the other display interface, When making the display direction of the first display interface and the display direction of the second display interface the same, it is also used to: adjust the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface It is the same as the display direction of the first display interface.

可选地,处理器501处理所述获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向时,还用于:在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向;获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向;所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 501 processes the acquisition of the display directions of the first display interface and the second display interface in the display interface of the mobile terminal, it is further configured to: acquire the data collected by the front camera of the mobile terminal during the video call. a first display interface, determining the display direction of the first display interface according to the face of the first display interface; acquiring the second display interface of the other party in the video call, and determining the display interface according to the face of the second display interface The display direction of the second display interface; the display direction of one of the first display interface or the second display interface is adjusted according to the display direction of the other display interface, so that the display direction of the first display interface and the second display interface are adjusted. When the display directions of the display interfaces are the same, it is also used for: adjusting the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as that of the first display interface.

可选地,处理器501处理所述根据所述第一显示界面的人脸确定所述第一显示界面的显示方向时,还用于:根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 501 processes the determining of the display direction of the first display interface according to the face of the first display interface, the processor 501 is further configured to: according to the facial features in the first display interface: The angle offset parameter of the T-shaped area determines the display direction of the first display interface; when the display direction of the first display interface and the display direction of the second display interface are different, the When adjusting the display direction of one display interface in the display interface, and adjusting the display direction of the other display interface so that the display direction of the first display interface and the display direction of the second display interface are the same, it is also used for: when the second display interface is in the same display direction The difference between the angle of the T-shaped area in the face feature and the angle of the T-shaped area in the face feature in the first display interface reaches the preset switching threshold, then the second display is adjusted according to the display direction of the first display interface. The display direction of the interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

可选地,处理器501处理所述根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向时,还用于:根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征;若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。Optionally, when the processor 501 processes the T-shaped area angle offset parameter in the face feature in the first display interface and determines the display direction of the first display interface, it is further configured to: Describe the facial feature in the first display interface, judge whether it is a single facial feature; if it is a single facial feature, then according to the T-shaped area angle offset parameter in the single facial feature, determine the first display The display direction of the interface; if there are multiple face features, the display direction of the first display interface is determined according to the T-shaped area angle offset parameter in the face feature with the largest area among the multiple face features.

可见,在本发明实施例中,通过获取分屏后第一显示界面和第二显示界面的显示方向,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同,并通过在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向,并调整两个显示界面的方向一致,实现了在较为复杂场景下的自拍、和视频通话等提升了用户体验的有益效果。It can be seen that, in this embodiment of the present invention, by acquiring the display directions of the first display interface and the second display interface after the split screen, the display direction of the second display interface is adjusted according to the display direction of the first display interface, so that the second display interface The display direction is the same as the display direction of the first display interface, and the first display interface captured by the front camera of the mobile terminal is acquired during the video call, and the first display interface is determined according to the face of the first display interface. The display direction of the interface is adjusted, and the directions of the two display interfaces are adjusted to be consistent, so as to realize the beneficial effect of improving the user experience, such as Selfie and video call in a more complex scene.

实施例五Embodiment 5

图6示出了本发明实施例五的移动终端的结构示意图。FIG. 6 shows a schematic structural diagram of a mobile terminal according to Embodiment 5 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 (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可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used for receiving numerical or character information input by the user, and generating signal input related to user setting and function control of the mobile terminal. Specifically, in this embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also known as a touch screen, can collect the user's touch operations on or near it (such as the user's operations on the touch panel 631 using any suitable objects or accessories such as a finger, a stylus, etc.) The specified program drives the corresponding connection 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 then sends it to the touch controller. To the processor 660, and can receive the commands sent by the processor 660 and execute them. In addition, the touch panel 631 can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板641。The display unit 640 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 640 may include a display panel 641, and 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 transmitted 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 touch event.

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

其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。The processor 660 is the control center of the mobile terminal, using various interfaces and lines to connect various parts of the entire 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 622, perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. Optionally, processor 660 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同。In this embodiment of the present invention, by calling and storing software programs and/or modules in the first memory 621 and/or data in the second memory 622, the processor 660 is configured to acquire the first data in the display interface of the mobile terminal. The display orientation of the display interface and the second display interface; when the display orientation of the first display interface and the display orientation of the second display interface are different, adjust the display orientation according to the display orientation of one of the first display interface or the second display interface The display direction of the other display interface, so that the display direction of the first display interface and the display direction of the second display interface are the same.

可选地,处理器660处理所述获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向时,还用于:获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面;所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 660 processes the acquiring the display orientations of the first display interface and the second display interface in the display interface of the mobile terminal, it is further configured to: acquire the first display interface and the second display interface after the split screen. Display orientation, wherein the first display interface is a reduced interface of the display interface before the split screen; the display orientation of one display interface in the first display interface or the second display interface is adjusted according to the display orientation of the other display interface, When making the display direction of the first display interface and the display direction of the second display interface the same, it is also used to: adjust the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface It is the same as the display direction of the first display interface.

可选地,处理器660处理所述获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向时,还用于:在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向;获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向;所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 660 processes the acquisition of the display directions of the first display interface and the second display interface in the display interface of the mobile terminal, it is further configured to: acquire the data collected by the front camera of the mobile terminal during the video call. a first display interface, determining the display direction of the first display interface according to the face of the first display interface; acquiring the second display interface of the other party in the video call, and determining the display interface according to the face of the second display interface The display direction of the second display interface; the display direction of one of the first display interface or the second display interface is adjusted according to the display direction of the other display interface, so that the display direction of the first display interface and the second display interface are adjusted. When the display directions of the display interfaces are the same, it is also used for: adjusting the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as that of the first display interface.

可选地,处理器660处理所述根据所述第一显示界面的人脸确定所述第一显示界面的显示方向时,还用于:根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;当第一显示界面的显示方向和第二显示界面的显示方向不同时,所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同时,还用于:当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。Optionally, when the processor 660 processes the determining of the display direction of the first display interface according to the face of the first display interface, the processor 660 is further configured to: according to the facial features in the first display interface: The angle offset parameter of the T-shaped area determines the display direction of the first display interface; when the display direction of the first display interface and the display direction of the second display interface are different, the When adjusting the display direction of one display interface in the display interface, and adjusting the display direction of the other display interface so that the display direction of the first display interface and the display direction of the second display interface are the same, it is also used for: when the second display interface is in the same display direction The difference between the angle of the T-shaped area in the face feature and the angle of the T-shaped area in the face feature in the first display interface reaches the preset switching threshold, then the second display is adjusted according to the display direction of the first display interface. The display direction of the interface, so that the display direction of the second display interface is the same as the display direction of the first display interface.

可选地,处理器660处理所述根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向时,还用于:根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征;若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。Optionally, when the processor 660 processes the T-shaped area angle offset parameter in the facial features in the first display interface and determines the display direction of the first display interface, it is further configured to: Describe the facial feature in the first display interface, judge whether it is a single facial feature; if it is a single facial feature, then according to the T-shaped area angle offset parameter in the single facial feature, determine the first display The display direction of the interface; if there are multiple face features, the display direction of the first display interface is determined according to the T-shaped area angle offset parameter in the face feature with the largest area among the multiple face features.

可见,在本发明实施例中,通过获取分屏后第一显示界面和第二显示界面的显示方向,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同,并通过在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向,并调整两个显示界面的方向一致,实现了在较为复杂场景下的自拍、和视频通话等提升了用户体验的有益效果。It can be seen that, in this embodiment of the present invention, by acquiring the display directions of the first display interface and the second display interface after the split screen, the display direction of the second display interface is adjusted according to the display direction of the first display interface, so that the second display interface The display direction is the same as the display direction of the first display interface, and the first display interface captured by the front camera of the mobile terminal is acquired during the video call, and the first display interface is determined according to the face of the first display interface. The display direction of the interface is adjusted, and the directions of the two display interfaces are adjusted to be consistent, so as to realize the beneficial effect of improving the user experience, such as Selfie and video call in a more complex scene.

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

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

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

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, 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 an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed 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 will 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. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements 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 appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的拍摄设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。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 of the functions of some or all of the components in the photographing apparatus according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art 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 different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

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

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

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, 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 unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

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

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

Claims (8)

1.一种显示方向的调整方法,应用于移动终端,其特征在于,包括:1. A method for adjusting a display direction, applied to a mobile terminal, characterized in that comprising: 获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向,包括:获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面;Obtaining the display directions of the first display interface and the second display interface in the display interface of the mobile terminal includes: obtaining the display directions of the first display interface and the second display interface after the split screen, wherein the first display interface is before the split screen The reduced interface of the display interface; 当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同,包括:根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。When the display direction of the first display interface and the display direction of the second display interface are different, according to the display direction of one of the first display interface or the second display interface, adjust the display direction of the other display interface, so that the display direction of the other display interface is adjusted. The display direction of the first display interface is the same as the display direction of the second display interface, including: adjusting the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as that of the first display interface. The display direction is the same. 2.根据权利要求1所述的方法,其特征在于,所述获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向的步骤,包括:2. The method according to claim 1, wherein the step of acquiring the display directions of the first display interface and the second display interface in the display interface of the mobile terminal comprises: 在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向;During the video call, acquiring the first display interface captured by the front camera of the mobile terminal, and determining the display direction of the first display interface according to the face of the first display interface; 获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向;acquiring the second display interface of the opposite party in the video call, and determining the display direction of the second display interface according to the face of the second display interface; 所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同的步骤,包括:The step of adjusting the display direction of the other display interface according to the display direction of one of the first display interface or the second display interface, so that the display direction of the first display interface and the display direction of the second display interface are the same ,include: 根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The display direction of the second display interface is adjusted according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface. 3.根据权利要求2所述的方法,其特征在于,所述根据所述第一显示界面的人脸确定所述第一显示界面的显示方向的步骤,包括:3. The method according to claim 2, wherein the step of determining the display direction of the first display interface according to the face of the first display interface comprises: 根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;Determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the face feature in the first display interface; 当第一显示界面的显示方向和第二显示界面的显示方向不同时,所述根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同的步骤,包括:When the display direction of the first display interface and the display direction of the second display interface are different, adjusting the display direction of the other display interface according to the display direction of one of the first display interface or the second display interface, so as to The steps of making the display direction of the first display interface and the display direction of the second display interface the same include: 当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。When the difference between the angle of the T-shaped area in the face feature in the second display interface and the angle of the T-shaped area in the face feature in the first display interface reaches the preset switching threshold, then according to the first display interface The display direction of the interface adjusts the display direction of the second display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface. 4.根据权利要求3所述的方法,其特征在于,所述根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向的步骤,包括:4. The method according to claim 3, wherein, according to the T-shaped area angle offset parameter in the facial features in the first display interface, determine the display direction of the first display interface. steps, including: 根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征;According to the facial features in the first display interface, determine whether it is a single facial feature; 若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;If it is a single face feature, then according to the T-shaped area angle offset parameter in the single face feature, determine the display direction of the first display interface; 若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。If there are multiple face features, the display direction of the first display interface is determined according to the T-shaped area angle offset parameter in the face feature with the largest area among the multiple face features. 5.一种移动终端,其特征在于,包括:5. A mobile terminal, characterized in that, comprising: 取景方向获取模块,用于获取移动终端的显示界面中的第一显示界面和第二显示界面的显示方向;a viewfinder direction acquisition module, configured to acquire the display directions of the first display interface and the second display interface in the display interface of the mobile terminal; 取景方向调整模块,用于当第一显示界面的显示方向和第二显示界面的显示方向不同时,根据第一显示界面或第二显示界面中的一个显示界面的显示方向,调整另一个显示界面的显示方向,以使第一显示界面的显示方向和第二显示界面的显示方向相同;A viewfinder direction adjustment module, used for adjusting the display direction of one display interface of the first display interface or the second display interface when the display direction of the first display interface and the display direction of the second display interface are different, to adjust the other display interface the display direction of the first display interface, so that the display direction of the first display interface and the display direction of the second display interface are the same; 所述取景方向获取模块,包括:The framing direction acquisition module includes: 获取分屏显示方向子模块,用于获取分屏后第一显示界面和第二显示界面的显示方向,其中,第一显示界面为分屏前的显示界面的缩小界面;A submodule for obtaining a split-screen display direction is used to obtain the display directions of the first display interface and the second display interface after the split-screen, wherein the first display interface is a reduced interface of the display interface before the split-screen; 所述取景方向调整模块,包括:取景方向调整子模块,用于根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The viewfinder direction adjustment module includes: a viewfinder direction adjustment sub-module for adjusting the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface. same direction. 6.根据权利要求5所述移动终端,其特征在于,所述取景方向获取模块,包括:6. The mobile terminal according to claim 5, wherein the viewing direction acquisition module comprises: 第一显示方向获取子模块,用于在视频通话过程中,获取移动终端前置摄像头采集的第一显示界面,根据所述第一显示界面的人脸确定所述第一显示界面的显示方向;a first display orientation acquisition sub-module, configured to acquire a first display interface captured by a front camera of a mobile terminal during a video call, and determine a display orientation of the first display interface according to the face of the first display interface; 第二显示方向获取子模块,用于获取视频通话中对方的第二显示界面,根据所述第二显示界面的人脸确定所述第二显示界面的显示方向;The second display orientation obtaining submodule is used to obtain the second display interface of the opposite party in the video call, and determine the display orientation of the second display interface according to the face of the second display interface; 所述取景方向调整模块,包括:取景方向调整子模块,根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The viewfinder direction adjustment module includes: a viewfinder direction adjustment sub-module, which adjusts the display direction of the second display interface according to the display direction of the first display interface, so that the display direction of the second display interface is the same as the display direction of the first display interface . 7.根据权利要求6所述移动终端,其特征在于,所述第一显示方向子模块,包括:7. The mobile terminal according to claim 6, wherein the first display direction sub-module comprises: 人脸特征方向确定单元,用于根据所述第一显示界面中的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;a face feature direction determining unit, configured to determine the display direction of the first display interface according to the T-shaped area angle offset parameter in the face feature in the first display interface; 所述取景方向调整模块,包括:取景方向判断调整子模块,用于当所述第二显示界面中的人脸特征中的T型区角度,与所述第一显示界面中的人脸特征中的T型区角度之差达到预设切换门限,则根据第一显示界面的显示方向调整第二显示界面的显示方向,以使第二显示界面的显示方向与第一显示界面的显示方向相同。The framing direction adjustment module includes: a framing direction judging and adjusting sub-module, which is used when the angle of the T-shaped area in the face features in the second display interface is different from the face features in the first display interface. If the difference between the angles of the T-shaped areas reaches the preset switching threshold, the display direction of the second display interface is adjusted according to the display direction of the first display interface, so that the display direction of the second display interface is the same as that of the first display interface. 8.根据权利要求7所述移动终端,其特征在于,所述人脸特征方向确定单元,包括:8. The mobile terminal according to claim 7, wherein the face feature direction determination unit comprises: 单个人脸特征判断子单元,用于根据所述第一显示界面中的人脸特征,判断是否为单个人脸特征;A single face feature judgment subunit, used for judging whether it is a single face feature according to the face feature in the first display interface; 单人脸显示方向确定子单元,用于若为单个人脸特征,则根据所述单个人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向;A single-face display direction determination subunit, used for determining the display direction of the first display interface if it is a single face feature, then according to the T-shaped area angle offset parameter in the single face feature; 多人脸显示方向确定子单元,用于若为多个人脸特征,则根据所述多个人脸特征中面积最大的人脸特征中的T型区角度偏移参数,确定所述第一显示界面的显示方向。The multi-face display direction determination subunit is used to determine the first display interface according to the T-shaped area angle offset parameter in the face feature with the largest area in the plurality of face features if it is a plurality of face features display direction.
CN201710524055.6A 2017-06-30 2017-06-30 Display direction adjusting method and mobile terminal Active CN107357540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524055.6A CN107357540B (en) 2017-06-30 2017-06-30 Display direction adjusting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524055.6A CN107357540B (en) 2017-06-30 2017-06-30 Display direction adjusting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107357540A CN107357540A (en) 2017-11-17
CN107357540B true CN107357540B (en) 2020-08-18

Family

ID=60274094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524055.6A Active CN107357540B (en) 2017-06-30 2017-06-30 Display direction adjusting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107357540B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922204A (en) * 2017-12-13 2019-06-21 中兴通讯股份有限公司 Image processing method and terminal
CN107977131B (en) * 2017-12-18 2021-07-27 深圳市芯云显控技术有限公司 Display device control method, storage medium, control device, and display device
CN108289186A (en) * 2017-12-20 2018-07-17 维沃移动通信有限公司 A kind of video image method of adjustment, mobile terminal
CN108134903B (en) 2017-12-25 2020-01-14 Oppo广东移动通信有限公司 Shooting methods and related products
CN108536371A (en) * 2018-03-30 2018-09-14 维沃移动通信有限公司 A kind of method for displaying image and terminal
CN109117241B (en) * 2018-09-27 2020-08-21 Oppo广东移动通信有限公司 A display direction control method, system and mobile terminal
CN109933298B (en) * 2018-11-08 2022-04-22 闽江学院 A method and device for displaying according to user location
CN109981898B (en) * 2019-03-14 2021-03-26 维沃移动通信有限公司 Screen recording method, device and terminal
CN112118347A (en) * 2019-06-20 2020-12-22 中兴通讯股份有限公司 A kind of head portrait processing method and device
CN110290269A (en) * 2019-06-26 2019-09-27 努比亚技术有限公司 Display control method, mobile terminal and computer readable storage medium
CN111176374B (en) * 2019-12-09 2021-12-10 北京点石经纬科技有限公司 Control method for secondary screen rotation based on Android system
CN111182356A (en) * 2019-12-31 2020-05-19 珠海六点智能科技有限公司 Method and system for realizing double-screen different display of Android video playing
CN111914693A (en) * 2020-07-16 2020-11-10 上海云从企业发展有限公司 Face posture adjusting method, system, device, equipment and medium
CN117519865B (en) * 2023-09-26 2024-09-27 荣耀终端有限公司 Method for reloading display interface and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100833241B1 (en) * 2006-04-28 2008-05-28 삼성전자주식회사 Sliding-tilt unit and mobile appliance adopting the same
TW200813601A (en) * 2006-09-06 2008-03-16 Coretronic Corp Projection device and the method for automatically adjusting an angle of a projection image
CN103853459A (en) * 2012-12-04 2014-06-11 联想(北京)有限公司 Display method and device
KR20170051950A (en) * 2015-11-03 2017-05-12 삼성전자주식회사 Electronic device and method for controlling display thereof

Also Published As

Publication number Publication date
CN107357540A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN107357540B (en) Display direction adjusting method and mobile terminal
US11128802B2 (en) Photographing method and mobile terminal
CN106027907B (en) Method and mobile terminal for automatically adjusting camera
US10136069B2 (en) Apparatus and method for positioning image area using image sensor location
CN109947508B (en) Split screen display method and device, electronic equipment and computer readable storage medium
WO2019001152A1 (en) Photographing method and mobile terminal
US9430045B2 (en) Special gestures for camera control and image processing operations
CN107659769B (en) A shooting method, a first terminal and a second terminal
CN104902170B (en) A kind of photographic method and terminal
US9565333B2 (en) Apparatus and method for processing an image in device
JP2020514813A (en) Shooting method and terminal
CN106027900A (en) Photographing method and mobile terminal
CN105915782A (en) Picture obtaining method based on face identification, and mobile terminal
CN106713764A (en) Photographic method and mobile terminal
CN105959565A (en) Panoramic photographing method and mobile terminal
CN108632543B (en) Image display method, image display device, storage medium and electronic equipment
US20210084228A1 (en) Tracking shot method and device, and storage medium
CN107172347B (en) A kind of photographing method and terminal
CN107592454A (en) A kind of image processing method and mobile terminal
CN106162150B (en) A kind of photographic method and mobile terminal
CN106937054A (en) Take pictures weakening method and the mobile terminal of a kind of mobile terminal
CN107360375B (en) Shooting method and mobile terminal
TW201403454A (en) Screen rotating method and system
CN104994287A (en) Camera shooting method based on wide-angle camera and mobile terminal
CN105827987B (en) A picture taking 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
GR01 Patent grant
GR01 Patent grant