Display control method and device, electronic equipment and computer readable storage medium

文档序号:738831 发布日期:2021-04-20 浏览:8次 中文

阅读说明:本技术 显示控制方法和装置、电子设备、计算机可读存储介质 (Display control method and device, electronic equipment and computer readable storage medium ) 是由 刘凯 于 2020-12-18 设计创作,主要内容包括:本申请涉及一种显示控制方法和装置、电子设备、计算机可读存储介质,该显示控制方法,包括:在接收到亮屏指令的情况下,在当前可拍摄范围内拍摄图像;对图像进行识别得到识别结果,并判断识别结果中是否包括人脸方向;若是,则根据人脸方向确定电子设备的目标屏幕显示方向;控制电子设备基于目标屏幕显示方向进行亮屏显示。因为电子设备在需要亮屏时,判断所拍摄的图像中是否包括人脸方向,若是,则根据人脸方向就能够及时确定电子设备的目标屏幕显示方向;控制电子设备基于目标屏幕显示方向进行亮屏显示。不需要用户进行手动旋转,自动将屏幕显示方向调整至适合用户观看的方向,显然不会造成用户的使用等待,满足了用户及时使用电子设备的要求。(The application relates to a display control method and device, an electronic device and a computer readable storage medium, wherein the display control method comprises the following steps: under the condition that a screen-lighting instruction is received, shooting an image in a current shooting range; identifying the image to obtain an identification result, and judging whether the identification result comprises a face direction; if yes, determining the target screen display direction of the electronic equipment according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. When the electronic equipment needs to be lightened, whether the shot image comprises the face direction or not is judged, and if yes, the target screen display direction of the electronic equipment can be determined in time according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. The screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, so that the use waiting of the user is obviously avoided, and the requirement of the user on timely using the electronic equipment is met.)

1. An electronic device is characterized by comprising at least two camera modules and at least two pressure key modules;

the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner around a symmetric center, and the symmetric center is the center of the electronic equipment;

the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric manner relative to the symmetric center.

2. The electronic device of claim 1, wherein the at least two pressure key modules are disposed on opposite sides of the middle frame parallel to a length direction of the electronic device.

3. The electronic device of claim 1, further comprising at least two proximity sensors, and/or at least two sound modules;

the top and the bottom of the at least two proximity sensors in the length direction of the electronic device are arranged in central symmetry with respect to the symmetry center;

the top and the bottom of the at least two sound modules in the length direction of the electronic equipment are arranged in central symmetry around the symmetry center.

4. The electronic device of claim 1, further comprising at least two fingerprint modules, the at least two fingerprint modules being arranged on the electronic device in a central symmetry with respect to the center of symmetry.

5. The electronic device of claim 1, wherein the camera module comprises an off-screen camera; the pressure key module comprises a piezoresistive pressure key and is used for adjusting the volume in a sliding mode.

6. A display control method applied to an electronic apparatus according to any one of claims 1 to 5, the method comprising:

under the condition that a screen-lighting instruction is received, shooting an image in a current shooting range;

identifying the image to obtain an identification result, and judging whether the identification result comprises a face direction;

if yes, determining a target screen display direction of the electronic equipment according to the face direction;

and controlling the electronic equipment to perform bright screen display based on the target screen display direction.

7. The method according to claim 6, wherein a Y-axis of the electronic device is set with a center of the electronic device as a coordinate origin, wherein the Y-axis of the electronic device is parallel to a length direction of the electronic device; setting the display direction of an initial screen as the Y-axis direction of the electronic equipment; the determining the display direction of the target screen of the electronic device according to the face direction includes:

calculating an included angle between the face direction and the initial screen display direction;

and determining the display direction of the target screen of the electronic equipment according to the size of the included angle.

8. The method of claim 6, further comprising:

if the recognition result does not include the face direction, acquiring the gravity acceleration data of the electronic equipment;

and determining the display direction of the target screen according to the gravity acceleration data.

9. The method according to claim 8, wherein an X-axis of the electronic device and a Y-axis of the electronic device are set with a center of the electronic device as a coordinate origin, wherein the X-axis of the electronic device is parallel to a width direction of the electronic device and the Y-axis of the electronic device is parallel to a length direction of the electronic device; setting an initial screen display direction along the positive direction of a Y axis of the electronic equipment; the determining the display direction of the target screen according to the gravity acceleration data comprises:

if the gravity acceleration data is a positive value in the positive direction of the Y axis of the electronic equipment, determining that the display direction of the target screen is consistent with the display direction of the initial screen;

if the gravity acceleration data is a negative value in the Y-axis negative direction of the electronic equipment, rotating the initial screen display direction by 180 degrees to obtain the target screen display direction;

if the gravity acceleration data is a positive value in the positive direction of the X axis of the electronic equipment, rotating the initial screen display direction by 90 degrees in the positive direction of the X axis to obtain the target screen display direction;

and if the gravity acceleration data is a negative value in the X-axis negative direction of the electronic equipment, rotating the initial screen display direction by 90 degrees along the X-axis negative direction to obtain the target screen display direction.

10. The method according to claim 6, wherein the electronic device comprises at least two camera modules, and the step of taking an image in a current shooting range in case of receiving a bright screen instruction comprises the following steps:

under the condition of receiving a screen lightening instruction, determining a target shooting module from the at least two shooting modules;

and starting the target shooting module to shoot the image in the current shooting range.

11. The method of claim 10, wherein determining a target camera module from the at least two camera modules if a bright screen command is received comprises:

judging whether a camera module of the electronic equipment is shielded or not through a proximity sensor on the electronic equipment;

if the camera modules of the electronic equipment are not shielded, acquiring gravity acceleration data of the electronic equipment, determining a holding position of the electronic equipment according to the gravity acceleration data, and acquiring the camera module opposite to the holding position as a target camera module;

if one of the camera modules of the electronic equipment is not shielded, the camera module which is not shielded is obtained and used as a target shooting module.

12. The method according to any one of claims 6-11, further comprising:

acquiring a camera module corresponding to the display direction of the target screen from the at least two camera modules according to the display direction of the target screen, and using the camera module as a camera module currently used by the electronic equipment;

acquiring a pressure key module corresponding to the target screen display direction from the at least two pressure key modules according to the target screen display direction, and using the pressure key module as a pressure key module currently used by the electronic equipment;

acquiring a proximity sensor corresponding to the target screen display direction from the at least two proximity sensors according to the target screen display direction, and using the proximity sensor as a proximity sensor currently used by the electronic equipment;

acquiring a fingerprint module corresponding to the target screen display direction from the at least two fingerprint modules according to the target screen display direction, and using the fingerprint module as a fingerprint model currently used by the electronic equipment;

and acquiring a sound module corresponding to the display direction of the target screen from the at least two sound modules according to the display direction of the target screen, and using the sound module as a sound module currently used by the electronic equipment.

13. A display control apparatus, characterized by being applied to the electronic device according to any one of claims 1 to 5; the device comprises:

the image shooting module is used for shooting an image in the current shooting range under the condition of receiving the screen lightening instruction;

the image recognition module is used for recognizing the image to obtain a recognition result and judging whether the recognition result comprises a face direction;

the target screen display direction determining module is used for determining the target screen display direction of the electronic equipment according to the face direction if the recognition result is judged to include the face direction;

and the display module is used for controlling the electronic equipment to perform bright screen display based on the target screen display direction.

14. An electronic device comprises a memory and a processor, wherein the memory is stored with a computer program and is characterized by further comprising at least two camera modules and at least two pressure key modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner around a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric manner relative to the symmetric center; the computer program, when executed by the processor, causes the processor to perform the steps of the display control method of any one of claims 6 to 12.

15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the display control method according to any one of claims 6 to 12.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a display control method and apparatus, an electronic device, and a computer-readable storage medium.

Background

With the rapid development of electronic technology, electronic devices are used more and more widely in various scenes in life. When a user needs to use the electronic device in a busy scene, the user often drags the electronic device out of a bag or a pocket and lights the screen in a hurry, and the display direction of the screen of the electronic device is not consistent with the viewing direction of the user. At this time, the user needs to rotate the electronic device to be aligned with the viewing direction.

Obviously, a user spends a certain time in the process of rotating the electronic device, so that the user waits for use, and the requirement that the user uses the electronic device in time cannot be met.

Disclosure of Invention

The embodiment of the application provides a display control method and device, electronic equipment and a computer readable storage medium, which can not cause the use waiting of a user and meet the requirement of the user on using the electronic equipment in time.

An electronic device comprises at least two camera modules and at least two pressure key modules;

the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner around a symmetric center, and the symmetric center is the center of the electronic equipment;

the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric manner relative to the symmetric center.

A display control method is applied to the electronic equipment, and the method comprises the following steps:

under the condition that a screen-lighting instruction is received, shooting an image in a current shooting range;

identifying the image to obtain an identification result, and judging whether the identification result comprises a face direction;

if yes, determining a target screen display direction of the electronic equipment according to the face direction;

and controlling the electronic equipment to perform bright screen display based on the target screen display direction.

A display control device is applied to the electronic equipment; the device comprises:

the image shooting module is used for shooting an image in the current shooting range under the condition of receiving the screen lightening instruction;

the image recognition module is used for recognizing the image to obtain a recognition result and judging whether the recognition result comprises a face direction;

the target screen display direction determining module is used for determining the target screen display direction of the electronic equipment according to the face direction if the recognition result is judged to include the face direction;

and the display module is used for controlling the electronic equipment to perform bright screen display based on the target screen display direction.

An electronic device comprises a memory and a processor, wherein the memory is stored with a computer program and also comprises at least two camera modules and at least two pressure key modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner around a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric manner relative to the symmetric center; the computer program, when executed by the processor, causes the processor to perform the steps of the display control method as described above.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the display control method as described above.

The display control method and device, the electronic equipment and the computer readable storage medium are applied to the electronic equipment, and the electronic equipment comprises at least two camera modules and at least two pressure key modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner relative to a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric mode around the symmetric center. The display control method comprises the following steps: under the condition that a screen-lighting instruction is received, shooting an image in a current shooting range; identifying the image to obtain an identification result, and judging whether the identification result comprises a face direction; if yes, determining the target screen display direction of the electronic equipment according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. When the electronic equipment needs to be lightened, the image is identified to obtain an identification result, whether the identification result comprises a face direction or not is judged, and if yes, the target screen display direction of the electronic equipment can be determined in time according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. The screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, so that the use waiting of the user is obviously avoided, and the requirement of the user on timely using the electronic equipment is met.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a diagram of an application environment of a display control method in one embodiment;

FIG. 2 is a schematic diagram of an electronic device in one embodiment;

FIG. 3 is a flow diagram of a display control method in one embodiment;

FIG. 4 is a flowchart of the method for determining the display direction of the target screen of the electronic device according to the face direction in FIG. 3;

FIG. 5 is a flowchart of a display control method in another embodiment;

FIG. 6 is a flow diagram of a method for determining a display orientation of a target screen based on gravitational acceleration data in one embodiment;

FIG. 7 is a block diagram showing the construction of a display control apparatus according to an embodiment;

FIG. 8 is a block diagram showing the construction of a display control apparatus in another embodiment;

fig. 9 is a schematic diagram of an internal structure of an electronic device in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

Fig. 1 is an application scenario diagram of a display control method in one embodiment. As shown in fig. 1, the application environment includes an electronic device 120, where the electronic device 120 includes at least two camera modules and at least two pressure button modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner relative to a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric mode around the symmetric center. The electronic device 120, through the display control method in the present application, takes an image within the current photographable range when receiving the bright screen instruction; identifying the image to obtain an identification result, and judging whether the identification result comprises a face direction; if yes, determining the target screen display direction of the electronic equipment according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. Here, the electronic device 120 may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a wearable device, and a smart home.

Conventionally, if the electronic device is in a screen-saving state, when a user randomly takes out the electronic device from a dark environment or from a bag or a pocket, half of the probability is that the electronic device will be taken back. The conventional electric device is not designed to be completely symmetrical, and thus cannot be used normally by a user in a case of taking a person in a wrong place. Therefore, at this time, the user needs to manually rotate the electronic device to adjust the electronic device to the forward direction, so that the screen display direction of the electronic device is consistent with the viewing direction. However, if the user needs to turn on the screen, it is obvious that a certain time is spent in the process of rotating the electronic device by the user, so that the user waits for use, and the requirement that the user uses the electronic device in time cannot be met.

In order to solve the technical problem, the application provides an electronic device, which comprises at least two camera modules and at least two pressure key modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner relative to a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric mode around the symmetric center. The electronic equipment calls any camera module to shoot images within the current shooting range under the condition that the screen-on instruction is received. Then, the electronic equipment identifies the image to obtain an identification result, and judges whether the identification result comprises a face direction. If yes, determining the target screen display direction of the electronic equipment according to the face direction, and controlling the electronic equipment to perform bright screen display based on the target screen display direction.

That is, if the user holds the electronic device upside down, the user does not need to manually rotate the electronic device to adjust the electronic device to the forward direction when the electronic device is in the screen-saving state. But automatically adjusts the screen display direction to be consistent with the viewing direction of the user based on the face direction. The electronic equipment comprises at least two camera modules and at least two pressure key modules; the top and the bottom of the at least two camera modules in the length direction of the electronic equipment are arranged in a centrosymmetric manner relative to a symmetric center, and the symmetric center is the center of the electronic equipment; the at least two pressure key modules are arranged on the middle frame of the electronic equipment in a centrosymmetric mode around the symmetric center. Therefore, the user can call the camera module and/or the pressure key module corresponding to the face direction for normal use under the condition of taking the electronic equipment back. For example, use this module of making a video recording to carry out face identification unblock, use this pressure button module to carry out other controls such as volume control, this application does not limit to this.

In one embodiment, as shown in fig. 2, there is provided an electronic device 200 comprising at least two camera modules (222 and 224), at least two pressure key modules (242 and 244); the top and the bottom of at least two camera modules (222 and 224) in the length direction of the electronic equipment are arranged in central symmetry around a symmetry center, and the symmetry center is the center of the electronic equipment; at least two pressure key modules (242 and 244) are arranged on the middle frame of the electronic equipment in a central symmetry mode around the symmetry center.

Wherein, at least two modules of making a video recording set up top and bottom on electronic equipment's length direction respectively to be central symmetry setting about electronic equipment's center. If the electronic device is rectangular and includes a pair of short sides and a pair of long sides, the length direction of the electronic device is parallel to the long sides. The at least two pressure key modules can be arranged on any pair of edges of the middle frame of the electronic equipment and are arranged in a central symmetry mode relative to the center of the electronic equipment.

As shown in fig. 2, first, the Y axis of the electronic apparatus is set with the center of the electronic apparatus as the origin of coordinates O, wherein the Y axis of the electronic apparatus is parallel to the length direction of the electronic apparatus. One direction that may define the Y axis is the positive Y axis direction.

The camera module 222 and the pressure key module 242 are a group a devices on the electronic device, that is, when the screen display direction of the electronic device is consistent with the positive direction of the Y axis of the electronic device, the camera module 222 and the pressure key module 242 can be started. That is, when the user needs to shoot, the camera module 222 is used, and when the user applies pressure or slides the pressure button module 242, the corresponding function can be realized. On the premise that the screen display direction of the electronic device is consistent with the viewing direction of the user, the camera module 222 and the pressure key module 242 are started, and the operation and use habits of the user are just met.

The camera module 224 and the pressure key module 244 are B-group devices on the electronic device, and when the screen display direction of the electronic device is opposite to the positive direction of the Y axis of the electronic device, the camera module 224 and the pressure key module 244 can be started. That is, when the user needs to shoot, the camera module 224 is used, and when the user applies pressure or slides the pressure button module 244, the corresponding function can be realized. On the premise that the screen display direction of the electronic device is opposite to the user viewing direction, the camera module 224 and the pressure key module 244 are started, and the operation and use habits of the user are just met.

A direction perpendicular to the Y axis may be defined as an X axis direction, and one direction of the X axis is specifically defined as an X axis positive direction. Similarly, for the case that the screen display direction of the electronic device is consistent with the positive direction of the X axis of the electronic device and the screen display direction of the electronic device is opposite to the positive direction of the X axis of the electronic device, the electronic device does not need to be manually rotated, and the same use experience as that of taking the electronic device can be obtained.

In the embodiment of the application, it can be known that, no matter the screen display direction of the electronic device is consistent with or opposite to the positive direction of the Y axis of the electronic device, or consistent with or opposite to the positive direction of the X axis of the electronic device, the corresponding camera module and the pressure key module can be started, so that the operation and use of the user in any direction are the same. Therefore, when the user holds the electronic device reversely, the user can obtain the same use experience as the user who holds the electronic device without manually rotating the electronic device.

In another embodiment, at least two pressure key modules are disposed on opposite sides of the middle frame parallel to the length direction of the electronic device.

In the embodiment of the present application, among others, the Y axis of the electronic device is parallel to the length direction of the electronic device. Since the user generally holds the electronic device at a position on the middle frame that is opposite to the direction parallel to the Y-axis of the electronic device, the user also holds the key at a position on the middle frame that is opposite to the direction parallel to the Y-axis of the electronic device. Therefore, for the convenience of users, at least two pressure key modules are arranged on the opposite sides of the middle frame parallel to the Y-axis direction of the electronic equipment. Therefore, under the condition that the user takes the electronic equipment reversely, the electronic equipment does not need to be rotated manually, and the same use experience of the camera module and the pressure key module as that of the electronic equipment is taken can be obtained.

In one embodiment, the electronic device further comprises at least two proximity sensors, and/or at least two sound modules;

the top and the bottom of the at least two proximity sensors in the length direction of the electronic device are arranged in central symmetry with respect to the center of symmetry;

the top and the bottom of the at least two sound modules in the length direction of the electronic equipment are arranged in central symmetry around the symmetry center.

As shown in fig. 2, the electronic device further includes at least two proximity sensors (262 and 264) and/or at least two sound modules (292 and 294) in addition to the at least two camera modules and the at least two pressure key modules. That is, in one case, the electronic device further comprises at least two proximity sensors; in another case, the electronic device further includes at least two sound modules; in still another case, the electronic device further includes at least two camera modules and at least two sound modules.

Specifically, at least two proximity sensors (262 and 264) are respectively disposed at the top and bottom in the length direction (Y-axis direction) of the electronic apparatus, and are disposed in central symmetry with respect to the center of the electronic apparatus. At least two sound modules (292 and 294) are respectively disposed at the top and bottom in the length direction (Y-axis direction) of the electronic apparatus and are disposed in central symmetry with respect to the center of the electronic apparatus.

In the embodiment of the present application, at least two proximity sensors (262 and 264) are respectively disposed at the top and bottom in the Y-axis direction of the electronic apparatus, and are disposed in central symmetry with respect to the center of the electronic apparatus. At least two sound modules (292 and 294) are respectively disposed at the top and bottom in the Y-axis direction of the electronic apparatus and are disposed in central symmetry with respect to the center of the electronic apparatus. Therefore, under the condition that the user takes the electronic equipment reversely, the electronic equipment does not need to be rotated manually, and the same use experience of the camera module, the pressure key module, the proximity sensor and/or the sound module as the user takes the electronic equipment can be obtained.

In one embodiment, electronic equipment still includes two at least fingerprint modules, and two at least fingerprint modules are centrosymmetric setting about the center of symmetry on electronic equipment.

In the embodiment of the present application, as shown in fig. 2, at least two fingerprint modules (282 and 284) in the electronic device only need to be disposed on the electronic device in a central symmetry manner with respect to a center of symmetry, that is, can be disposed at any position on the electronic device. Therefore, under the condition that the user takes the anti-electronic equipment, the electronic equipment does not need to be rotated manually, and the same use experience of the camera module, the pressure key module and the fingerprint module as the user takes the electronic equipment can be obtained.

In one embodiment, as shown in fig. 2, the camera module 222, the pressure button module 242, the proximity sensor 262, the fingerprint module 282, and the sound module 292 are divided into a group a devices, that is, when the screen display direction of the electronic device is consistent with the positive direction of the Y axis of the electronic device, the camera module 222, the pressure button module 242, the proximity sensor 262, the fingerprint module 282, and the sound module 292 are configured to be activated. That is, when the user normally uses the electronic device, the camera module 222, the pressure button module 242, the proximity sensor 262, the fingerprint module 282, and the sound module 292 are used to implement corresponding functions. Because under the prerequisite that the screen display direction of electronic equipment is unanimous with user viewing direction, then start module 222, pressure button module 242, proximity sensor 262, fingerprint module 282 and sound module 292 of making a video recording, just accord with user's operation and use custom.

With module 224, pressure button module 244, proximity sensor 264, fingerprint module 284, sound module 294 of making a video recording for B group's device, and when the screen display direction of electronic equipment was opposite with electronic equipment's Y axle positive direction, the setting can start module 224, pressure button module 244, proximity sensor 264, fingerprint module 284 and sound module 294 of making a video recording. That is, when the user normally uses the electronic device, the camera module 224, the pressure button module 244, the proximity sensor 264, the fingerprint module 284 and the sound module 294 are used to implement corresponding functions. On the premise that the screen display direction of the electronic device is opposite to the user viewing direction, the camera module 224, the pressure key module 244, the proximity sensor 264, the fingerprint module 284 and the sound module 294 are started, so that the operation and use habits of the user are just met. Similarly, the same applies to the case where the screen display direction of the electronic apparatus coincides with the positive X-axis direction of the electronic apparatus and the case where the screen display direction of the electronic apparatus is opposite to the positive X-axis direction of the electronic apparatus.

The electronic equipment can also include wireless charging module, and this wireless charging module includes wireless charging coil, and wireless charging coil sets up based on electronic equipment's central symmetry. Therefore, when a user needs to wirelessly charge the electronic equipment, the electronic equipment does not need to be rotated to be matched with the charging equipment, and the charging equipment does not need to be plugged. The user can still normally use when holding the anti-electronic equipment, and the use experience can not be greatly different.

In the embodiment of the application, it can be known from the above that no matter the screen display direction of the electronic device is in the same direction or opposite to the positive direction of the Y axis of the electronic device, or in the same direction or opposite to the positive direction of the X axis of the electronic device, the corresponding camera module, the pressure key module, the proximity sensor, the fingerprint module and the sound module can be started, so that the user can operate and use the same in any direction. Therefore, when the user holds the electronic device reversely, the user can obtain the same use experience as the user who holds the electronic device without manually rotating the electronic device.

In one embodiment, the front-facing camera is an off-screen camera; the pressure key module comprises a piezoresistive pressure key and is used for adjusting the volume in a sliding mode; the sound module adopts cantilever piezoelectric ceramics to transmit sound.

In the embodiment of the application, the front camera on the electronic equipment is a camera under the screen, and replaces the traditional camera design for perforating on the screen display panel, so that the real perspective panoramic screen is realized. The screen camera is directly put the front camera below the screen display panel as the name implies, and during daily use, electronic equipment can demonstrate a complete full screen, and at the scene that needs to use the front camera such as auto heterodyne, video chat, people's face unblock, the front camera that is located the screen display panel below can shoot like ordinary front camera again.

The piezoresistive pressure keys are used for replacing traditional mechanical keys, wherein the pressure key module comprises the piezoresistive pressure keys, and the pressure keys are assembled inside the middle frame in a Y-direction symmetrical mode along the electronic equipment. When the pressure key is triggered by pressing, no matter which direction the user holds the electronic equipment, the pressure key can be triggered based on the same operation, and the difference of use experience of the user in different holding directions is avoided. The triggering operation of the pressure button may include a sliding operation in addition to a pressing operation, which is not limited in the present application. Wherein, the sliding operation can be used for adjusting the volume by the user.

Wherein, the sound module adopts cantilever piezoceramics to transmit sound. When a call is connected, the driving unit outputs an electric signal to the piezoelectric ceramic piece, the piezoelectric ceramic piece generates high-frequency vibration and conducts the high-frequency vibration to the cantilever beam, and then the middle frame of the whole electronic device is driven to resonate, so that sound is transmitted to ears.

In the embodiment of the application, the electronic equipment adopts the under-screen camera technology, the piezoresistive pressure keys and the cantilever piezoelectric ceramics, so that the symmetrical design of the whole electronic equipment is realized. And through reducing the button trompil, realize the hole-free design of electronic equipment.

FIG. 3 is a flow diagram of a display control method in one embodiment. The display control method in the present embodiment is described by taking the electronic device 120 in fig. 1 as an example. As shown in fig. 3, the display control method includes steps 310 to 370. Wherein the content of the first and second substances,

and step 310, in the case of receiving the bright screen instruction, shooting an image in the current shooting range.

The screen-lighting instruction is an instruction for controlling the display screen of the electronic device to be lighted, and the screen-lighting instruction can be triggered by any one of detecting that the power key is triggered, detecting that the electronic device is moved for a certain distance, detecting double-click operation on the display screen and the like. Under the condition that the electronic equipment receives the bright screen instruction, any one shooting module capable of shooting is adopted at present, and images can be shot in a shooting range.

Step 330, recognizing the image to obtain a recognition result, and judging whether the recognition result includes a face direction.

Because it is mainly concerned whether a face appears in the image and further determines the face direction. Therefore, the recognition result here may be a subject recognition result obtained by recognizing a subject in an image. Specifically, the image is subject-recognized to obtain a subject recognition result, and whether the subject recognition result includes a face is determined, and a face direction of the face is further determined.

And 350, if yes, determining the target screen display direction of the electronic equipment according to the face direction.

And if the face direction can be determined from the main body recognition result, determining the target screen display direction of the electronic equipment according to the face direction. Specifically, the preset target screen display direction of the electronic device includes a positive Y-axis direction along the electronic device, a negative Y-axis direction along the electronic device, a positive X-axis direction along the electronic device, and a negative X-axis direction along the electronic device. Then, the target screen display direction of the electronic device may be determined based on the size of the included angle between the face direction and the four directions. For example, the target screen display direction of the electronic device is determined to be along the positive Y-axis direction of the electronic device based on the fact that the included angle between the face direction and the positive Y-axis direction of the electronic device is smaller than 45 degrees.

And step 370, controlling the electronic equipment to perform bright screen display based on the target screen display direction.

After the target screen display direction of the electronic equipment is determined, the content to be displayed is acquired. And adjusting the content to be displayed based on a preset screen display direction, and performing bright screen display on the adjusted content to be displayed to obtain a bright screen interface.

In the embodiment of the application, when the electronic equipment needs to be lightened, the image is identified to obtain an identification result, whether the identification result comprises a face direction or not is judged, and if yes, the target screen display direction of the electronic equipment can be determined in time according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. The screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, so that the use waiting of the user is obviously avoided, and the requirement of the user on timely using the electronic equipment is met.

In one embodiment, a Y axis of the electronic device is set with the center of the electronic device as a coordinate origin, wherein the Y axis of the electronic device is parallel to the length direction of the electronic device; setting the display direction of an initial screen to be along the Y-axis direction of the electronic equipment; as shown in fig. 4, step 350, determining a display direction of a target screen of an electronic device according to a face direction includes:

step 352, calculate the angle between the face direction and the initial screen display direction.

Step 354, determining the display direction of the target screen of the electronic device according to the size of the included angle.

Referring to fig. 2, a Y axis of the electronic device is set with a center O of the electronic device as a coordinate origin, wherein the Y axis of the electronic device is parallel to a length direction of the electronic device; and setting the initial screen display direction as the Y-axis direction of the electronic equipment.

When the display direction of a target screen of the electronic equipment is determined according to the face direction, the method comprises the following steps: firstly, calculating an included angle between the face direction and the initial screen display direction, and secondly, determining the target screen display direction of the electronic equipment according to the size of the included angle.

Because the initial screen display direction is set to be the Y-axis direction of the electronic device, the initial screen display direction can be set to be the positive Y-axis direction of the electronic device, and the initial screen display direction can also be the negative Y-axis direction of the electronic device. In the embodiment of the application, the initial screen display direction is set to be along the positive direction of the Y axis of the electronic equipment. Then, the angle between the face direction and the positive Y-axis direction of the electronic device is calculated. Namely, the included angle between the human face direction and the positive direction of the Y axis when the human face direction is projected to the plane where the Y axis and the X axis are located in fig. 2 is calculated.

When the user faces the screen of the electronic device, if the included angle between the face direction and the positive direction of the Y axis of the electronic device is [0, 45] and (315, 360] (the included angle is calculated in the clockwise direction when the user faces the screen of the electronic device), the display direction of the target screen of the electronic device is determined to be along the positive direction of the Y axis of the electronic device, if the angle between the face direction and the positive direction of the Y axis of the electronic device is (45, 135), then the target screen display direction of the electronic device is determined to be in the positive X-axis direction of the electronic device, if the angle between the face direction and the positive Y-axis direction of the electronic device is (135, 225), then the target screen display direction of the electronic device is determined to be in a negative Y-axis direction of the electronic device, if the angle between the face direction and the positive Y-axis direction of the electronic device is (225, 315), the target screen display direction of the electronic device is determined to be in a negative X-axis direction of the electronic device.

In the embodiment of the application, an included angle between the face direction and the initial screen display direction is calculated. And determining the display direction of the target screen of the electronic equipment according to the size of the included angle. Because the viewing direction can be accurately determined based on the face direction, the target screen display direction of the electronic equipment can be accurately determined based on the face direction by adopting the method, so that the target screen display direction of the electronic equipment is adjusted to be suitable for a user to view. Therefore, the screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, the use waiting of the user is obviously avoided, and the requirement that the user uses the electronic equipment in time is met.

In one embodiment, as shown in fig. 5, there is provided a display control method further including:

380, if the recognition result does not include the face direction, acquiring gravity acceleration data of the electronic equipment;

step 390, determining the display direction of the target screen according to the gravity acceleration data.

Specifically, in the case where a bright screen instruction is received, an image is captured within the current photographable range. And identifying the image to obtain an identification result, and judging whether the identification result comprises the face direction. If yes, determining the target screen display direction of the electronic equipment according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction.

If the recognition result does not include the face direction, acquiring the gravity acceleration data of the electronic equipment; and determining the display direction of the target screen according to the gravity acceleration data.

The recognition result does not include the face direction, and the first is that the recognition result does not include the face at all, so that the face direction is not included. Alternatively, the recognition result includes a face, but the face direction cannot be recognized based on the face. For example, the sharpness of the face is low, so that the face direction cannot be recognized.

And if the recognition result does not include the face direction, acquiring the gravity acceleration data of the electronic equipment. Wherein the gravitational acceleration data may be acquired from an acceleration sensor inside the electronic device. The acceleration sensor may be a gyroscope, but the present application is not limited thereto. Because the acceleration sensor is pre-assembled in the electronic device, that is, the positive direction of the acceleration sensor and the direction of the electronic device are preset, the corresponding relationship between the direction of the electronic device and the coordinate axis can be determined based on the data size of the gravity acceleration data on the coordinate axis. And finally, determining the display direction of the target screen based on the corresponding relation between the direction of the electronic equipment and the coordinate axis.

In the embodiment of the application, because in general, when the user uses the electronic device, the direction of the gravitational acceleration data is consistent with the viewing direction or within a preset range. Therefore, if the recognition result does not include the face direction, the gravity acceleration data of the electronic equipment can be obtained, and the display direction of the target screen is determined according to the gravity acceleration data. Therefore, under the condition that the face direction is not recognized, the viewing direction is determined based on the direction of the gravity acceleration data, and the target screen display direction is further determined. The screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, so that the use waiting of the user is obviously avoided, and the requirement of the user on timely using the electronic equipment is met.

In one embodiment, an X axis of the electronic device and a Y axis of the electronic device are set with a center of the electronic device as a coordinate origin, wherein the X axis of the electronic device is parallel to a width direction of the electronic device, and the Y axis of the electronic device is parallel to a length direction of the electronic device; setting the display direction of an initial screen to be along the positive direction of a Y axis of the electronic equipment; as shown in fig. 6, step 390, determining the display direction of the target screen according to the gravity acceleration data includes:

in step 392, if the gravitational acceleration data is a positive value in the Y-axis positive direction of the electronic device, it is determined that the target screen display direction is consistent with the initial screen display direction.

Specifically, if the electronic device is rectangular and includes a pair of short sides and a pair of long sides, the length direction of the electronic device is a direction parallel to the long sides, and the width direction of the electronic device is a direction parallel to the short sides. However, the gravity acceleration data may be any value between [0,9.8] if it is positive in the Y-axis positive direction of the electronic device, and the present application is not limited thereto. At this time, the initial screen display direction does not need to be rotated.

Step 394, if the gravity acceleration data is a negative value in the Y-axis negative direction of the electronic device, the initial screen display direction is rotated 180 degrees to obtain the target screen display direction.

If the gravity acceleration data is a negative value in the Y-axis negative direction of the electronic device, it may be any value between (0 and-9.8), which is not limited in this application.

In step 396, if the gravitational acceleration data is positive in the positive X-axis direction of the electronic device, the initial screen display direction is rotated by 90 degrees in the positive X-axis direction to obtain the target screen display direction.

However, the gravity acceleration data may be any value between [0,9.8] if it is a positive value in the positive X-axis direction of the electronic device, and the present application is not limited thereto. At this time, the initial screen display direction is rotated by 90 degrees along the positive direction of the X axis to obtain the target screen display direction, that is, when the user faces the display screen of the electronic device, the initial screen display direction needs to be rotated by 90 degrees to the right side of the user to obtain the target screen display direction.

And step 398, if the gravity acceleration data is a negative value in the X-axis negative direction of the electronic equipment, rotating the initial screen display direction by 90 degrees along the X-axis negative direction to obtain a target screen display direction.

At this time, the initial screen display direction is rotated by 90 degrees along the negative X-axis direction to obtain the target screen display direction, that is, when the user faces the display screen of the electronic device, the initial screen display direction needs to be rotated by 90 degrees to the left side of the user to obtain the target screen display direction.

In the embodiment of the application, whether the initial screen display direction needs to be rotated and how to rotate the initial screen display direction specifically are determined based on the acquired size of the gravity acceleration data of the electronic device on the coordinate axis of the electronic device, so that the target screen display direction is consistent with the viewing direction of a user or within a preset range. Therefore, the user does not need to rotate manually, the screen display direction is accurately and automatically adjusted to the direction suitable for the user to watch, and the requirement that the user uses the electronic equipment in time is met.

In one embodiment, the electronic device includes at least two camera modules, and in the case of receiving the bright screen instruction, the electronic device captures an image in a current photographable range, including:

under the condition of receiving a screen lightening instruction, determining a target shooting module from at least two shooting modules;

and starting the target shooting module to shoot the image in the current shooting range.

In the embodiment of the present application, the number of the target shooting modules is generally one. And because electronic equipment includes two at least modules of making a video recording, so under the condition that receives the bright screen instruction, just need follow two at least modules of making a video recording and confirm a target and shoot the module to start the target and shoot the module and shoot the image at present shooting range. Avoid the repeated resource waste that starts the module of making a video recording and shoot and lead to.

In one embodiment, in the case of receiving a bright screen instruction, determining a target shooting module from at least two camera modules includes:

judging whether a camera module of the electronic equipment is shielded or not through a proximity sensor on the electronic equipment;

if the camera modules of the electronic equipment are not shielded, determining the holding position of the electronic equipment according to the gravity acceleration data, and acquiring the camera module opposite to the holding position as a target camera module;

if one of the camera modules of the electronic equipment is not shielded, the camera module which is not shielded is obtained and used as a target shooting module.

In this application embodiment, because proximity sensor generally sets up on predetermineeing the scope with the module of making a video recording, and proximity sensor and the module of making a video recording all are very little device, so if proximity sensor judges that proximity sensor is sheltered from based on infrared ray data, the module probability of making a video recording just also can be sheltered from then. Therefore, under the condition that the bright screen instruction is received, when the target shooting module is determined from the at least two shooting modules, whether the shooting module of the electronic equipment is shielded or not can be judged based on the infrared data of the proximity sensor. Thereby, the module of making a video recording that does not shelter from is acquireed and is shot the module as the target. Because the camera module in the area of the holding position may be blocked by the hand of the user. Therefore, if the camera modules of the electronic equipment are not shielded, the holding position of the electronic equipment is determined according to the gravity acceleration data, and the camera module corresponding to the holding position is obtained and used as the target camera module.

Therefore, after the target shooting module is determined from the at least two camera modules, the target shooting module is started to shoot the image in the current shooting range. The efficiency of shooting the image is improved, and then the face direction is accurately determined. Finally, the target screen display direction of the electronic equipment can be determined in time according to the face direction; and controlling the electronic equipment to perform bright screen display based on the target screen display direction. The screen display direction is automatically adjusted to the direction suitable for the user to watch without manual rotation of the user, so that the use waiting of the user is obviously avoided, and the requirement of the user on timely using the electronic equipment is met.

In one embodiment, there is provided a display control method, further comprising:

according to the display direction of the target screen, acquiring a camera module corresponding to the display direction of the target screen from at least two camera modules as a camera module currently used by the electronic equipment;

acquiring a pressure key module corresponding to the display direction of the target screen from at least two pressure key modules according to the display direction of the target screen, and using the pressure key module as a pressure key module currently used by the electronic equipment;

acquiring a proximity sensor corresponding to the display direction of the target screen from at least two proximity sensors according to the display direction of the target screen, and using the proximity sensor as a proximity sensor currently used by the electronic equipment;

acquiring a fingerprint module corresponding to the display direction of the target screen from at least two fingerprint modules according to the display direction of the target screen, and using the fingerprint module as a fingerprint model currently used by the electronic equipment;

and acquiring a sound module corresponding to the display direction of the target screen from the at least two sound modules according to the display direction of the target screen, and using the sound module as a sound module currently used by the electronic equipment.

In the embodiment of the application, after the display direction of the target screen is determined, the display direction of the target screen can be screened out from the modules or the sensors on the electronic equipment, and the modules or the sensors at the corresponding positions are screened out under the condition that the user does not change the operation habit. The modules or the sensors are used as modules or sensors which can be called by the electronic equipment in the current display direction. Therefore, on the premise that the user does not change the operation habit, the misoperation is prevented.

In one embodiment, as shown in fig. 7, there is provided a display control apparatus 700 applied to the electronic device described above; the display control apparatus 700 includes:

the image shooting module 720 is used for shooting an image in the current shooting range under the condition of receiving the screen-on instruction;

the image recognition module 740 is configured to recognize an image to obtain a recognition result, and determine whether the recognition result includes a face direction;

a target screen display direction determining module 760, configured to determine a target screen display direction of the electronic device according to the face direction if it is determined that the recognition result includes the face direction;

and the display module 780 is configured to control the electronic device to perform bright screen display based on the target screen display direction.

In one embodiment, a Y axis of the electronic device is set with the center of the electronic device as a coordinate origin, wherein the Y axis of the electronic device is parallel to the length direction of the electronic device; setting the display direction of an initial screen as the Y-axis direction of the electronic equipment;

in one embodiment, the target screen display direction determining module 760 is further configured to calculate an angle between the face direction and the initial screen display direction; and determining the display direction of the target screen of the electronic equipment according to the size of the included angle.

In an embodiment, the target screen display direction determining module 760 is further configured to obtain gravitational acceleration data of the electronic device if the recognition result does not include the face direction; and determining the display direction of the target screen according to the gravity acceleration data.

In one embodiment, an X axis of the electronic device and a Y axis of the electronic device are set with a center of the electronic device as a coordinate origin, wherein the X axis of the electronic device is parallel to a width direction of the electronic device, and the Y axis of the electronic device is parallel to a length direction of the electronic device; setting the display direction of an initial screen to be along the positive direction of a Y axis of the electronic equipment;

the target screen display direction determining module 760 is further configured to determine that the target screen display direction is consistent with the initial screen display direction if the gravitational acceleration data is a positive value in the Y-axis positive direction of the electronic device; if the gravity acceleration data is a negative value in the Y-axis negative direction of the electronic equipment, rotating the initial screen display direction by 180 degrees to obtain a target screen display direction; if the gravity acceleration data is positive in the positive direction of the X axis of the electronic equipment, rotating the initial screen display direction by 90 degrees along the positive direction of the X axis to obtain a target screen display direction; and if the gravity acceleration data is a negative value in the X-axis negative direction of the electronic equipment, rotating the initial screen display direction by 90 degrees along the X-axis negative direction to obtain the target screen display direction.

In one embodiment, the electronic device includes at least two camera modules, and the image capturing module 720 is further configured to determine a target camera module from the at least two camera modules when a screen-up instruction is received; and starting the target shooting module to shoot the image in the current shooting range.

In one embodiment, the image capturing module 720 is further configured to determine whether a camera module of the electronic device is blocked by a proximity sensor on the electronic device; if the camera modules of the electronic equipment are not shielded, acquiring gravity acceleration data of the electronic equipment, determining the holding position of the electronic equipment according to the gravity acceleration data, and acquiring the camera module opposite to the holding position as a target camera module; if one of the camera modules of the electronic equipment is not shielded, the camera module which is not shielded is obtained and used as a target shooting module.

In one embodiment, as shown in fig. 8, there is provided a display control apparatus 700, further comprising: a module to be used determining module 790, configured to obtain, according to the display direction of the target screen, a camera module corresponding to the display direction of the target screen from the at least two camera modules, and use the camera module as a camera module currently used by the electronic device; acquiring a pressure key module corresponding to the display direction of the target screen from at least two pressure key modules according to the display direction of the target screen, and using the pressure key module as a pressure key module currently used by the electronic equipment; acquiring a proximity sensor corresponding to the display direction of the target screen from at least two proximity sensors according to the display direction of the target screen, and using the proximity sensor as a proximity sensor currently used by the electronic equipment; acquiring a fingerprint module corresponding to the display direction of the target screen from at least two fingerprint modules according to the display direction of the target screen, and using the fingerprint module as a fingerprint model currently used by the electronic equipment; and acquiring a sound module corresponding to the display direction of the target screen from the at least two sound modules according to the display direction of the target screen, and using the sound module as a sound module currently used by the electronic equipment.

It should be understood that, although the steps in the flowcharts in the above-described figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the above figures may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.

The division of each module in the display control apparatus is only for illustration, and in other embodiments, the display control apparatus may be divided into different modules as needed to complete all or part of the functions of the display control apparatus.

For specific limitations of the display control device, reference may be made to the above limitations of the display control method, which are not described herein again. The respective modules in the display control apparatus described above may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, an electronic device is further provided, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the display control method provided in the foregoing embodiments.

Fig. 9 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 9, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a display control method provided in the above embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.

The implementation of each module in the display control apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device or an electronic device. The program modules constituting the computer program may be stored on the electronic device or a memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.

The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the display control method.

A computer program product containing instructions which, when run on a computer, cause the computer to perform a display control method.

Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).

The above control examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:电话自动重播方法、装置及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类