CN111158485A - Screen control method and electronic equipment - Google Patents

Screen control method and electronic equipment Download PDF

Info

Publication number
CN111158485A
CN111158485A CN201911400822.8A CN201911400822A CN111158485A CN 111158485 A CN111158485 A CN 111158485A CN 201911400822 A CN201911400822 A CN 201911400822A CN 111158485 A CN111158485 A CN 111158485A
Authority
CN
China
Prior art keywords
screen
display content
camera
priority
target area
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.)
Granted
Application number
CN201911400822.8A
Other languages
Chinese (zh)
Other versions
CN111158485B (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 CN201911400822.8A priority Critical patent/CN111158485B/en
Publication of CN111158485A publication Critical patent/CN111158485A/en
Application granted granted Critical
Publication of CN111158485B publication Critical patent/CN111158485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Abstract

According to the screen control method and the electronic equipment provided by the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when a target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera blocks important information in the screen is avoided, the user experience is improved, the method and the electronic equipment are suitable for carrying various on-screen cameras, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the camera blocking area is reduced.

Description

Screen control method and electronic equipment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a screen control method and electronic equipment.
Background
At present, portable electronic devices are continuously developed, and a full screen becomes a mainstream screen of the electronic devices. Correspondingly, the mode that adopts the water droplet screen or dig the hole screen in the whole screen sets up leading camera more, and this kind of leading camera can shelter from the partial display area on the screen because of having occupied the screen, especially when playing the recreation and watching the shadow, leading camera can shelter from a large amount of important information, has influenced user's use and has experienced.
For such a front camera arranged on a screen, a developer is usually dedicated to adjusting an interface layout of an application program according to a setting position of the front camera in electronic devices of different models, so that important information in a display screen can avoid a region blocked by the front camera.
Although the situation that the front camera shields important information can be avoided in the mode, due to the fact that the water drop screen and the hole digging screen are various in types, the front camera is different in position, a large amount of development cost needs to be consumed, all applications in the electronic equipment cannot be guaranteed to be applicable, and user experience is seriously affected.
Disclosure of Invention
The embodiment of the invention provides a screen control method and electronic equipment, and aims to solve the problems that in the prior art, important information is shielded by a camera on a screen to influence user experience, and a large amount of development cost is consumed for specially adjusting the layout of an application interface to avoid a camera shielding area.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention further provides a screen control method applied to an electronic device, where the electronic device includes a camera, and the camera is disposed on a screen of the electronic device, and the method includes:
under the condition that the foreground running of a target application is detected, respectively determining first display content of a first target area and second display content of a second target area on the screen, wherein the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen;
respectively determining a first priority of the first display content and a second priority of the second display content;
and controlling the screen to perform center rotation if the first priority is higher than the second priority.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a camera, the camera is disposed on a screen of the electronic device, and the electronic device further includes:
the first determining module is used for respectively determining first display content of a first target area and second display content of a second target area on the screen under the condition that foreground operation of a target application is detected, wherein the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen;
the second determining module is used for respectively determining the first priority of the first display content and the second priority of the second display content;
and the control module is used for controlling the screen to rotate in the center under the condition that the first priority is higher than the second priority.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a camera, the camera is disposed on a screen of the electronic device, the electronic device further includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the screen control method according to the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screen control method in the first aspect are implemented.
According to the screen control method and the electronic equipment provided by the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when a target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera blocks important information in the screen is avoided, the user experience is improved, the method and the electronic equipment are suitable for carrying various on-screen cameras, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the camera blocking area is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a method for controlling a screen according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an interface effect of a screen control method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating steps of another screen control method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an interface effect of a screen layout according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an effect of a screen rotation function option according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a screen control method, which is applied to an electronic device, where the electronic device includes a camera, and the camera is disposed on a screen of the electronic device, and the method includes:
step 101, under the condition that foreground operation of a target application is detected, respectively determining first display content of a first target area and second display content of a second target area on a screen, wherein a camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen.
In the embodiment of the present invention, the target application may be some applications set by the user, such as: a text reading application, a game application, etc. determining a first display content of a first target area on a screen and a second display content of a second target area on the screen in case that the target application is running in the foreground, i.e. a first interface of the target application is displayed on the screen.
In the embodiment of the invention, for a part of applications installed in an electronic device, key information may be located at the side of the electronic device during running, for example, a game application, a control key is usually located at the side of a screen in the electronic device, and currently, a setting position of a camera, such as a water droplet screen, a hole digging screen, etc., is also located at the side of the screen, and a setting area of the camera has no display and touch functions, which may affect the use experience of a user.
And for the screen of the electronic equipment, the influence of the display direction of the screen on the display effect of the screen is very little, and for a user, only the arrangement direction of the electronic equipment needs to be correspondingly adjusted when the screen rotates, so that the screen can just face the screen, and the screen is not influenced to be watched and touched, therefore, when the camera shades important information on the screen, the center of the screen is rotated by 180 degrees, so that the shielded area of the camera is adjusted to the diagonal position of the screen on the display screen, and the important information is avoided.
Specifically, after the screen rotates at the center, the area blocked by the camera may still have important information, and at this time, it is necessary to confirm a first target area where the camera is currently located on the screen and a second target area at a diagonal position of the first target area with respect to the center of the screen. It can be understood that the first target area is a display area actually affected by the camera, and it should be noted here that the affected display area is not only a display area blocked by the camera, and since the camera may cause visual effects such as darkness and reflection to the user, the camera may also affect the actual display effect of other display contents within a certain range around the user. For example: the diameter of an opening of a camera on a screen of an existing electronic device is basically more than 3 mm, the diameter of displayed characters is usually 5 mm to 10 mm, if the camera shields part of the characters, a user cannot recognize other parts of the characters, and in this case, the display content influenced by the camera actually exceeds a display area shielded by the camera on the screen. Further, processing may be performed on the basis of the area set by the camera to determine the actual area of influence thereof on the screen, i.e., the first target area and the diagonally located second target area.
Step 102, respectively determining a first priority of the first display content and a second priority of the second display content.
In the embodiment of the invention, for a first display content currently blocked by the camera and a second display content blocked after the camera rotates at the center, the priority of the first display content and the priority of the second display content can be respectively identified. The first priority and the second priority may be determined according to a preset priority rule, where the priority rule may be a default priority rule preset by the system, or may be that a user sets the highest priority for some specific display content according to a self requirement, and other display contents without the priority are determined to have a priority lower than the specific display content, for example, a game application, and the user may set the highest priority for a control key on a screen, and for display contents other than the game key, the priority is lower than the priority of the game key, so as to ensure that the user can normally acquire the display content required by the user, and of course, the priority rule may also be set according to other logics, and is not specifically limited here.
And 103, controlling the screen to rotate in the center under the condition that the first priority is higher than the second priority.
In the embodiment of the present invention, if the first priority is higher than the second priority, it is determined that the display content of the current occlusion region of the camera is more important than the display content of the occlusion region after the center rotation, and the display effect of the screen after the center rotation is better than the current display effect, the display picture on the screen is controlled to rotate by 180 degrees around the center of the screen as a symmetry center, the first display content is rotated to the second display region for display, and the second display content is rotated to the second display region for display.
Of course, when the first priority is lower than the second priority, the screen is not rotated and the existing display state is maintained.
Specifically, referring to fig. 2, an interface effect schematic diagram of the screen control method provided by the present invention is shown, where a camera is located in a first target area, a second target area is located in a diagonal position of the first target area in a screen, and a display content "positive" of the first target area is occluded by the camera, so that when the screen is rotated by 180 degrees around a center of the screen, the display content "positive" is rotated to the second target area, and a display content before the second target area is rotated is displayed in the first target area.
According to the screen control method provided by the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when the target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera blocks important information in the screen is avoided, the user experience is improved, the method is suitable for the electronic equipment carrying various cameras on the screen, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the camera blocking area is reduced.
Referring to fig. 3, an embodiment of the present invention provides another screen control method, which is applied to an electronic device, where the electronic device includes a camera, and the camera is disposed on a screen of the electronic device, and the method includes:
step 201, collecting the brightness information of each pixel point on the screen under the condition that the screen is lighted.
In the embodiment of the invention, when the setting area of the camera on the screen is detected, the screen can display the sample image, so that the brightness information of each pixel point in the screen is collected under the condition that each pixel point on the screen is lightened.
Step 202, determining an area on the screen where no brightness information is acquired as a first setting area of the camera on the screen.
In the embodiment of the invention, if the brightness information of the pixel points of the partial screen cannot be acquired under the condition that each pixel point on the screen is lightened, the pixel points of the partial area cannot be lightened, and the partial area is determined as the first setting area of the camera on the screen. It should be explained that, the camera herein refers to a camera module, and not only the exposed lens portion of the camera, but also the area occupied by the camera module in the screen has no display function or touch function.
Of course, the first setting area of the camera on the screen can also be pre-recorded according to the models of different electronic devices.
And 203, expanding the first setting area according to a preset size to obtain a first target area corresponding to the camera.
In the embodiment of the invention, since the first setting area can affect the display effect of other surrounding display areas, the actual area of the first setting area in the screen, where the first setting area affects the screen display effect, of the camera is larger than the first setting area. The actual area with the display effect influenced by the experimental test can be established according to the positions and the sizes of the different first setting areas so as to establish the mapping relation between the positions and the sizes of the first setting areas and the preset sizes. The corresponding preset size can be inquired by utilizing the mapping relation, and then the first setting area is expanded according to the preset size, so that the actual influence area of the camera on the screen display effect, namely the first target area corresponding to the camera, is obtained.
And 204, determining a region which is in central symmetry with the first setting region around the center of the screen on the screen as a second setting region.
In the embodiment of the present invention, after the screen is rotated 180 degrees around the screen, the picture in the first setting area is rotated to the diagonal position symmetrical to the center of the first setting area, so that the area symmetrical to the first setting area around the center of the screen is used as the second setting area.
And step 205, expanding the second setting area according to the preset size to obtain a second target area.
In the embodiment of the present invention, referring to step 203, similarly, the second setting area is expanded according to the preset size to obtain a second target area where the display content is located after the center of the display content in the current first target area is rotated.
Specifically, referring to fig. 4, a schematic diagram of an effect of a screen layout interface provided by an embodiment of the present invention is shown, where a screen of the electronic device is provided with a camera, a region where the camera is located is a first setting region, a range of the first target region is larger than the first setting region, and a second target region is located at a diagonal position of the first target region in the screen.
Step 206, under the condition that foreground operation of the target application is detected, determining a first display content of a first target area and a second display content of a second target area on the screen, respectively, wherein the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen.
The detailed description of step 101 can be referred to in this step, and is not repeated here.
Step 207, determining a first data type of the first display content and a second data type of the second display content respectively.
In the embodiment of the invention, the data types of the first display content and the second display content can be used as the basis for determining the priority in the following process, so that the method is suitable for various different application programs, and the applicability of screen rotation is improved.
Step 208, querying a preset priority mapping relationship, and determining a first priority corresponding to the first data type and a second priority corresponding to the second data type respectively.
In the embodiment of the present invention, the type priority list includes a corresponding relationship between each data type and a priority, and the priority list may be set by default, that is, the priority order of the data types is set according to the requirements of most users, for example: the text type is higher than the button type and the icon type is higher than the picture type and the background type. Of course, the type priority list may also be obtained by the user sorting the data types according to the priority order according to the actual needs of the user.
Step 209, displaying screen rotation function options under the condition that the first priority is higher than the second priority.
In the embodiment of the present invention, if the first priority is higher than the second priority, it may be determined that the screen display effect after the center rotation is higher than the current display effect, so that a screen rotation function option is presented to a user for the user to confirm whether to perform screen rotation.
Specifically, referring to fig. 5, which is a schematic diagram illustrating an interface effect of a screen rotation function option according to an embodiment of the present invention, when the first display content in the first target area is important information and the second display content in the second target area is secondary information, that is, the priority of the first display content is higher than that of the second display content, the screen rotation function option including the prompt information is displayed on the screen.
Step 210, receiving an input operation to the screen rotation function option.
In the embodiment of the invention, the user can perform output operation by clicking 'yes' in the option to trigger the screen to rotate, and the current screen rotation state is maintained if clicking 'no'.
Step 211, in response to the input operation, controlling the screen to perform center rotation around a center of the screen, where in the screen after center rotation, the first display content is displayed in the second target area, and the second display content is displayed in the first target area.
In the embodiment of the invention, after the user selects the screen rotation function option, the display picture on the screen is controlled to rotate 180 degrees around the screen center as a symmetry center, the first display content is displayed in the second display area, and the second display content is displayed in the second display area.
And if the user does not select the screen rotation function option or selects a cancel option in the screen rotation function options in a preset time period, the screen is not rotated, and the existing screen display state is maintained.
According to the other screen control method provided by the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when the target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera blocks important information in the screen is avoided, the user experience is improved, the method is suitable for the electronic equipment carrying various cameras on the screen, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the camera blocking area is reduced. Furthermore, by presetting the priority mapping relation between the data types and the priorities, different types of applications can determine the priorities according to the priority mapping relation, and the applicability of screen rotation is improved.
The screen control method provided by the embodiment of the invention is described above, and the electronic device provided by the embodiment of the invention is described below with reference to the accompanying drawings.
Referring to fig. 6, an embodiment of the present invention further provides an electronic device 30, where the electronic device 30 includes a camera, the camera is disposed on a screen of the electronic device 30, and the electronic device 30 includes:
the first determining module 301 is configured to determine, when it is detected that a target application runs in a foreground, first display content of a first target area and second display content of a second target area on the screen, where the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen.
A second determining module 302, configured to determine a first priority of the first display content and a second priority of the second display content, respectively.
A control module 303, configured to control the screen to perform center rotation when the first priority is higher than the second priority.
Optionally, the second determining module 302 includes:
a first determining sub-module 3021, configured to determine a first data type of the first display content and a second data type of the second display content, respectively.
The second determining submodule 3022 is configured to query a preset priority mapping relationship, and determine a first priority corresponding to the first data type and a second priority corresponding to the second data type respectively.
Optionally, the electronic device further includes:
the collecting module 304 is configured to collect brightness information of each pixel point on the screen when the screen is turned on.
A third determining module 305, configured to determine, as the first setting area of the camera on the screen, an area on the screen where no brightness information is acquired.
The first processing module 306 is configured to expand the first setting area according to a preset size, and obtain a first target area corresponding to the camera.
A fourth determining module 307, configured to determine, as the second setting region, a region on the screen that is centrosymmetric around the screen center with the first setting region.
And the second processing module 308 is configured to expand the second setting area according to the preset size to obtain a second target area.
Optionally, the control module 303 includes:
a display sub-module 3031 is used for displaying the screen rotation function options.
The receiving submodule 3032 is configured to receive an input operation on the screen rotation function option.
A control sub-module 3033, configured to control the screen to perform center rotation around a screen center in response to a selected operation on the screen rotation function option, where in the screen after center rotation, the first display content is displayed in the second target region, and the second display content is displayed in the first target region.
The electronic device 30 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
According to the electronic equipment provided by the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when the target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera shields important information in the screen is avoided, the user experience is improved, the electronic equipment is suitable for carrying various cameras on the screen, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the camera shielding area is reduced. Furthermore, by presetting the priority mapping relation between the data types and the priorities, different types of applications can determine the priorities according to the priority mapping relation, and the applicability of screen rotation is improved.
FIG. 7 is a diagram illustrating a hardware configuration of an electronic device implementing various embodiments of the invention;
the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like. The electronic equipment comprises a camera which is arranged on a screen of the electronic equipment,
the processor 410 is configured to determine, when it is detected that a target application runs in a foreground, first display content of a first target area and second display content of a second target area on the screen, where the camera is located in the first target area, and the second target area and the first target area are in central symmetry with respect to the center of the screen; respectively determining a first priority of the first display content and a second priority of the second display content; and controlling the screen to perform center rotation if the first priority is higher than the second priority.
In the embodiment of the invention, for the electronic equipment with the camera arranged in the screen, when the target application foreground runs, the display content in the area where the camera is located is compared with the priority of the display content in the central symmetrical area on the screen, so that the screen is rotated in the center under the condition that the priority of the display content in the area where the camera is located is higher, the condition that the camera blocks important information in the screen is avoided, the user experience is improved, the electronic equipment is suitable for carrying various cameras on the screen, and the development cost which is specially consumed for adjusting the layout of an application interface in order to avoid the blocking area of the camera is reduced. Furthermore, by presetting the priority mapping relation between the data types and the priorities, different types of applications can determine the priorities according to the priority mapping relation, and the applicability of screen rotation is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 6071 detects a touch operation on or near the touch panel 4071, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 7, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned screen control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the screen control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A screen control method is applied to electronic equipment, the electronic equipment comprises a camera, the camera is arranged on a screen of the electronic equipment, and the method comprises the following steps:
under the condition that the foreground running of a target application is detected, respectively determining first display content of a first target area and second display content of a second target area on the screen, wherein the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen;
respectively determining a first priority of the first display content and a second priority of the second display content;
and controlling the screen to perform center rotation if the first priority is higher than the second priority.
2. The method of claim 1, wherein the step of determining the first priority of the first display content and the second priority of the second display content respectively comprises:
respectively determining a first data type of the first display content and a second data type of the second display content;
and inquiring a preset priority mapping relation, and respectively determining a first priority corresponding to the first data type and a second priority corresponding to the second data type.
3. The method according to claim 1, wherein the step of determining the first display content of the first target area and the second display content of the second target area on the screen respectively in the case of detecting that the target application runs in the foreground further comprises:
collecting brightness information of each pixel point on the screen under the condition that the screen is lightened;
determining an area where the brightness information is not acquired on the screen as a first setting area of the camera on the screen;
expanding the first setting area according to a preset size to obtain a first target area corresponding to the camera;
determining an area which is in central symmetry with the first setting area around the center of the screen on the screen as a second setting area;
and expanding the second setting area according to the preset size to obtain a second target area.
4. The method of claim 1, wherein the step of controlling the screen to perform a center rotation comprises:
displaying screen rotation function options;
receiving an input operation on the screen rotation function option;
and responding to the input operation, controlling the screen to perform center rotation around the center of the screen, wherein in the screen after the center rotation, the first display content is displayed in the second target area, and the second display content is displayed in the first target area.
5. An electronic device, wherein the electronic device includes a camera, the camera is disposed on a screen of the electronic device, and the electronic device includes:
the first determining module is used for respectively determining first display content of a first target area and second display content of a second target area on the screen under the condition that foreground operation of a target application is detected, wherein the camera is located in the first target area, and the second target area and the first target area are in central symmetry with the center of the screen;
the second determining module is used for respectively determining the first priority of the first display content and the second priority of the second display content;
and the control module is used for controlling the screen to rotate in the center under the condition that the first priority is higher than the second priority.
6. The electronic device of claim 5, wherein the second determining module comprises:
the first determining submodule is used for respectively determining a first data type of the first display content and a second data type of the second display content;
and the second determining submodule is used for inquiring a preset priority mapping relation and respectively determining a first priority corresponding to the first data type and a second priority corresponding to the second data type.
7. The electronic device of claim 5, further comprising:
the acquisition module is used for acquiring the brightness information of each pixel point on the screen under the condition that the screen is lightened;
the third determining module is used for determining an area, on the screen, where the brightness information is not acquired, as a first setting area of the camera on the screen;
the first processing module is used for expanding the first setting area according to a preset size to obtain a first target area corresponding to the camera;
the fourth determining module is used for determining an area which is centrosymmetric to the first setting area around the center of the screen on the screen as a second setting area;
and the second processing module is used for expanding the second setting area according to the preset size to obtain a second target area.
8. The electronic device of claim 5, wherein the control module comprises:
the display submodule is used for displaying screen rotation function options;
the receiving submodule is used for receiving input operation of the screen rotation function option;
and the control sub-module is used for responding to the input operation and controlling the screen to rotate around the center of the screen, wherein in the screen after the center rotation, the first display content is displayed in the second target area, and the second display content is displayed in the first target area.
9. An electronic device comprising a camera disposed on a screen of the electronic device, the electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the screen control method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the screen control method according to any one of claims 1 to 4.
CN201911400822.8A 2019-12-30 2019-12-30 Screen control method and electronic equipment Active CN111158485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911400822.8A CN111158485B (en) 2019-12-30 2019-12-30 Screen control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911400822.8A CN111158485B (en) 2019-12-30 2019-12-30 Screen control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111158485A true CN111158485A (en) 2020-05-15
CN111158485B CN111158485B (en) 2022-03-04

Family

ID=70559376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911400822.8A Active CN111158485B (en) 2019-12-30 2019-12-30 Screen control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111158485B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698844A (en) * 2020-12-29 2021-04-23 威海新北洋技术服务有限公司 Flashing method and device of operating system and electronic equipment
CN113778580A (en) * 2021-07-28 2021-12-10 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium
CN114422842A (en) * 2022-01-19 2022-04-29 阿里巴巴(中国)有限公司 Content display method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050053274A1 (en) * 2003-04-21 2005-03-10 Yaron Mayer System and method for 3D photography and/or analysis of 3D images and/or display of 3D images
JP2006084735A (en) * 2004-09-15 2006-03-30 Olympus Corp Image display device and image display method
US20150199051A1 (en) * 2009-05-21 2015-07-16 Japan Display West, Inc. Display device and electronic unit
CN105306820A (en) * 2015-10-15 2016-02-03 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera in mobile terminal and mobile terminal
CN105812736A (en) * 2016-03-21 2016-07-27 北京工业大学 Self-adjustment Pan/Tilt/Zoom camera remote intelligent control system and control method
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal
CN108886575A (en) * 2016-03-17 2018-11-23 富士胶片株式会社 Image processing apparatus, image processing system and image processing method
CN109547644A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of information display method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050053274A1 (en) * 2003-04-21 2005-03-10 Yaron Mayer System and method for 3D photography and/or analysis of 3D images and/or display of 3D images
JP2006084735A (en) * 2004-09-15 2006-03-30 Olympus Corp Image display device and image display method
US20150199051A1 (en) * 2009-05-21 2015-07-16 Japan Display West, Inc. Display device and electronic unit
CN105306820A (en) * 2015-10-15 2016-02-03 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera in mobile terminal and mobile terminal
CN108886575A (en) * 2016-03-17 2018-11-23 富士胶片株式会社 Image processing apparatus, image processing system and image processing method
CN105812736A (en) * 2016-03-21 2016-07-27 北京工业大学 Self-adjustment Pan/Tilt/Zoom camera remote intelligent control system and control method
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal
CN109547644A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of information display method and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698844A (en) * 2020-12-29 2021-04-23 威海新北洋技术服务有限公司 Flashing method and device of operating system and electronic equipment
CN113778580A (en) * 2021-07-28 2021-12-10 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium
CN113778580B (en) * 2021-07-28 2023-12-08 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium
CN114422842A (en) * 2022-01-19 2022-04-29 阿里巴巴(中国)有限公司 Content display method and electronic equipment

Also Published As

Publication number Publication date
CN111158485B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN108182043B (en) Information display method and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN111142991A (en) Application function page display method and electronic equipment
CN111163260B (en) Camera starting method and electronic equipment
CN110750189B (en) Icon display method and device
CN109710349B (en) Screen capturing method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN108345425B (en) Application management method and mobile terminal
CN111158485B (en) Screen control method and electronic equipment
CN109407948B (en) Interface display method and mobile terminal
CN109508136B (en) Display method of application program and mobile terminal
CN109558046B (en) Information display method and terminal equipment
CN110825295B (en) Application program control method and electronic equipment
CN110231972B (en) Message display method and terminal equipment
CN109521920B (en) Application icon control method and terminal equipment
CN109445653B (en) Icon processing method and mobile terminal
CN110752981A (en) Information control method and electronic equipment
CN110753155A (en) Proximity detection method and terminal equipment
CN107967153B (en) Application program management method and mobile terminal
CN110647277A (en) Control method and terminal equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN111338525A (en) Control method of electronic equipment and electronic equipment
CN109284146B (en) Light application starting method and mobile terminal
CN111399715B (en) Interface display method and electronic equipment
CN111638842B (en) Display control method and device and electronic equipment

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