WO2023005999A1 - 提示摄像头状态的方法及电子设备 - Google Patents

提示摄像头状态的方法及电子设备 Download PDF

Info

Publication number
WO2023005999A1
WO2023005999A1 PCT/CN2022/108373 CN2022108373W WO2023005999A1 WO 2023005999 A1 WO2023005999 A1 WO 2023005999A1 CN 2022108373 W CN2022108373 W CN 2022108373W WO 2023005999 A1 WO2023005999 A1 WO 2023005999A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
camera
electronic device
prompt
display screen
Prior art date
Application number
PCT/CN2022/108373
Other languages
English (en)
French (fr)
Inventor
徐荣涛
吴同刚
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023005999A1 publication Critical patent/WO2023005999A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Definitions

  • the present application relates to the technical field of terminals, and in particular to a method for prompting camera status and electronic equipment.
  • Electronic devices such as mobile phones are usually provided with a camera, and an application program in the electronic device can obtain images by calling the camera for shooting. Since in practical applications, this kind of shooting operation may lead to leakage of user privacy, it is necessary to prompt the state of the camera in time.
  • the electronic device when the electronic device detects that the camera is turned on, it can display a yellow light spot on the upper right corner of the display screen. Therefore, the user can judge whether the light spot exists in the upper right corner of the display screen. is open.
  • this prompting method is not obvious enough, and the user is likely to ignore the light point, and the prompting effect is poor.
  • the present application provides a method and an electronic device for prompting the state of the camera, which can significantly prompt the state of the camera and improve the prompting effect.
  • the embodiment of the present application provides a method for prompting the status of the camera, including:
  • a first prompt signal will be displayed in the first area of the display screen, wherein the first area is adjacent to the second area where the second camera is located, and the first prompt signal The signal is used to prompt that the first camera is currently in an open state.
  • the first area is adjacent to the second area may mean that the distance between the first area and the second area is less than or equal to a specific distance when the electronic device is in at least one usage mode.
  • this partial area is not used to display any notification message, and does not include any objects for interacting with the user (such as icon). If there is a part of the body shell of the electronic device between the first area and the second area, then this part of the body shell does not include any exposed components, such as speakers or microphones.
  • the indication signal displayed in the first area is different from the second area. The stronger the relevance of the camera in the area is, so that the user can better associate the prompt signal with the camera, and the better the prompt effect will be.
  • the electronic device when the electronic device detects that the first camera is in an open state, it may display the first prompt signal through the first area of the display screen adjacent to the second area. Since the second area is the area where the second camera is located, when the first prompt signal is displayed in the first area, the user can easily associate the first prompt signal with the camera, thereby determining what the first prompt signal prompts.
  • the content is that the first camera is currently open.
  • the prompting process will not interrupt other operations of the user, and the user experience is good.
  • the method of displaying yellow dots in the upper right corner of the display screen it can more accurately prompt the user that the camera is currently being called, rather than other functions such as positioning or recording.
  • the prompting method is more significant and reduces the user's learning experience cost.
  • the user perceives the first prompt signal, he may wish to turn off the first camera, so the electronic device can quickly turn off the opened first camera based on the first area or an additional touch sensing area, providing better privacy Protective effect.
  • the first prompt signal includes a first light signal.
  • any color attribute of the first light signal may be fixed, or may change with the prompt duration. When any color attribute of the light signal can change with the prompting duration, a better prompting effect can be achieved.
  • the hue and tint of the first light signal may not change, and the lightness may change cyclically from low to high and then to low. In some embodiments, the hue and lightness of the first light signal may not change, and the hue may change cyclically in a preset manner.
  • texts and icons can also be displayed in the first area, so as to prompt more information related to the state of the camera, for example, to indicate the application program that opens the camera through the application logo, further improving the prompting effect.
  • the first area surrounds the second area.
  • enclosing the second area by the first area may include that the first area encloses a projection of the second area on the plane where the first area is located.
  • the first prompt signal can surround the second camera, thereby improving the correlation between the first prompt signal and the camera.
  • the first area and the second area are in the same plane.
  • the first region and the second region are in the same plane, which can also make the correlation between the first prompt signal and the camera stronger, thereby improving the prompt effect.
  • the first area is a circular area, a rectangular area or a fan-shaped area.
  • the shape of the first region may be similar to the shape of the second region.
  • the method before displaying the first prompt signal in the first area of the display screen, the method further includes:
  • the first area is determined based on the second area and the minimum touch block size.
  • the smallest touch block may be the smallest area in the display screen that can clearly and unambiguously receive the user's touch operation, and the size or determination method of the smallest touch block may be submitted by technical personnel related to receiving electronic equipment.
  • the electronic device can obtain the stored number of rows and columns of the touchpad (TP, touchpad) of the display screen, and the value obtained by dividing the number of horizontal pixels of the display screen by the number of TP columns can be the minimum touch
  • the value obtained by dividing the number of vertical pixels of the display screen by the number of TP rows can be the height of the smallest touch block.
  • the electronic device may obtain the stored minimum touch block size.
  • the electronic device can automatically match and obtain the first area through the screen cutting area parameters and the minimum touch block size, which improves the efficiency of determining the first area.
  • the aforementioned minimum touch block size may also be replaced by a preset size.
  • the size of the first area is updated.
  • the first area obtained by automatic adaptation may not perfectly match the second area of the electronic device, so the electronic device may be based on the user's first drag operation or the first
  • the scaling operation updates the position or size of the first area obtained by automatic matching, thereby precisely adjusting the first area and improving the accuracy of the first area.
  • the electronic device may display the third frame on the display screen, wherein the shape of the third frame may be preset, and the position and size of the first frame may be random values or preset values.
  • the electronic device may receive the user's second drag operation based on the third frame, determine the position of the first area based on the second drag operation; receive the user's second zoom operation based on the third frame, and determine the size after the second zoom operation is the size of the first region. That is to say, the electronic device can also determine the first region only based on user operations, so that it can also determine the first region when it is difficult to automatically match the first region (for example, the parameters of the screen cutting region cannot be obtained), and improve the determination. The reliability of the first area.
  • the third area is the first area, or the third area is a touch point adjacent to the first area control sensing area.
  • the third area is a touch sensing area adjacent to the first area, and the electronic device may determine the third area in a manner similar to that for determining the first area.
  • the first area and the third area may be in the same plane.
  • the third area may surround the first area.
  • the shape of the third area may be similar to that of the first area.
  • the third area is the first area, or the third area is a touch sensing area adjacent to the first area.
  • the first trigger operation is received based on the third area, and a decrease in sensitivity is detected by the first camera and the value after the decrease is less than the second sensitivity threshold, then the first camera is turned off, and the third area is The first area, or the third area is a touch sensing area adjacent to the first area.
  • the first trigger operation is a sliding operation in which the third area points to the direction of the second area, and at least part of the sliding track is in the third area.
  • the electronic device may first receive the first trigger operation based on the third area, and then detect through the first camera that the photosensitivity drops and the amount of the dropped value is greater than or equal to the first photosensitivity threshold, or , and then the first camera detects that the photosensitivity drops and the value after the drop is smaller than the second photosensitivity threshold, then the camera is turned off.
  • the user can start sliding in the direction from the third area to the second area. During the sliding process, the first camera is gradually approached and blocked, thereby reducing the sensitivity of the first camera, and finally turning off the first camera. On the one hand, it conforms to the operation logic of the user who perceives that the first camera is turned on and then turns it off, and on the other hand, it also reduces the possibility of misoperation.
  • the third area is the first area, or the third area is adjacent to the first area touch sensing area.
  • the second trigger operation may be a sliding operation in which the second area points to the third area, and at least part of the sliding track is in the third area; in other embodiments, the second trigger operation may be For a sliding operation from the third area to the first edge, and at least part of the sliding track is in the third area, the first edge is the edge of the display screen closest to the third area.
  • the display duration of the first prompt signal is a first preset duration.
  • the third area is the first area, or the third The area is a touch sensing area adjacent to the first area.
  • the third area is a touch sensing area adjacent to the first area, and the third area surrounds the first area.
  • the second prompt signal may be used to prompt that the first camera is currently in an open state, and the open state is permitted by the user.
  • the second prompt signal can be used to provide a supplementary light function.
  • the electronic device determines to turn off the first camera (for example, within the first preset time period, based on receiving the first trigger operation in the third area) or determines to keep the first camera on (for example, within the first preset time period based on The third area does not receive the first trigger operation, or receives the second trigger operation), that is, the user’s feedback has been obtained based on the first prompt signal, or, although the user feedback has not been obtained but the prompt has been fully played, then It is possible to stop displaying the first prompt signal (it can also be understood as hiding the first prompt signal).
  • the electronic device may stop displaying the first prompt signal in the first area and display the second prompt signal in the first area, that is, the first prompt signal that will be displayed in the first area Update to the second cue signal.
  • the electronic device may jump to the first application program for opening the first camera.
  • the electronic device can prompt the state of the second camera in a manner similar to the manner of prompting the state of the first camera, and can also control the second camera in a manner similar to the manner of controlling the first camera.
  • the electronic device may display a third prompt signal in the first area.
  • the third prompt signal may include at least one of a third light signal and an application identifier of the second application program, where the second application program is an application program requesting to open the second camera.
  • the third prompt signal is the first prompt signal, or it can be understood that the third prompt signal is the same as the first prompt signal.
  • the third prompt signal can be different from the first prompt signal, or can be the same as the first prompt signal. The difference is that if the first prompt signal is different from the third prompt signal.
  • the prompting signals are the same, and the prompting method is relatively simple, which can also reduce the requirements for equipment capabilities; if the first prompting signal and the third prompting signal are different, it can more accurately prompt the user which camera is currently on.
  • the electronic device may receive the first trigger operation based on the third area, and based on the second camera detecting that the value change of the sensitivity drop is greater than or equal to the third sensitivity threshold, or, based on the second The third area receives the first trigger operation, and when the second camera detects that the sensitivity drops and the value after the decrease is less than the fourth sensitivity threshold, the second camera is turned off.
  • the display duration of the third prompt signal may be the second preset duration.
  • the electronic device if the second camera is currently turned on and the electronic device receives a fourth trigger operation based on the third area, it can keep the second camera turned on.
  • the fourth trigger operation if the fourth trigger operation is not detected based on the third area within the second preset time period, it may be determined to keep the second camera turned on.
  • the electronic device may stop displaying the third prompt signal.
  • the electronic device may stop displaying the third prompt signal in the first area and display the fourth prompt signal in the first area, which is the third prompt signal to be displayed in the first area. The signal is updated to the fourth reminder signal.
  • the fourth prompt signal may be used to prompt that the second camera is currently in an open state, and the open state is permitted by the user.
  • the fourth light signal can provide a supplementary light function.
  • the electronic device may jump to the second application program for opening the second camera.
  • displaying a first prompt signal in the first area of the display screen includes:
  • the first call message is used to indicate that the first camera is currently called and is in an open state.
  • the first camera and the second camera are the same camera.
  • the first camera is a front camera.
  • the first camera is a rear camera
  • the second camera is a front camera
  • the method before displaying the first prompt signal in the first area of the display screen if it is detected that the first camera is in an open state, the method further includes:
  • a first setting operation is received, and the first setting operation is used to enable the camera prompt function.
  • the embodiment of the present application provides a method for prompting the status of the camera, including:
  • a first prompt signal is displayed through at least one light assembly in the first area, wherein the first area surrounds the second area where the second camera is located, and the first The prompt signal is used to prompt that the first camera is currently in an open state.
  • the second aspect has an effect similar to that of the aforementioned first aspect, the difference is that in the first aspect, the first area is a partial area of the display screen, and the electronic device may display a prompt signal by drawing a user interface, the prompt signal is the result of superposition of multiple pixels with different display states in the first area.
  • the first area may not be a part of the display screen, but an area including at least one lighting component, which may include a flashlight or a light strip module, and correspondingly, the prompt signal may only include a light signal , the electronic device does not need to draw the user interface.
  • the electronic device can determine whether to turn off the camera only according to the change of the light sensitivity of the camera, and no longer depends on the user's gesture interaction.
  • the light assembly includes a flashlight or a light strip module.
  • the light strip module is an annular light strip module surrounding the second area.
  • the first optical signal is an optical signal with a first power, and the first power is less than a rated power of the lighting assembly or a preset first power threshold.
  • At least one light assembly in the first area is used to display a third light signal.
  • the third optical signal is an optical signal with a second power, and the second power is less than the rated power of the lighting assembly or a preset first power threshold.
  • the first power or the second power is less than the rated power of the light component or the preset first power threshold, so when the light component sends out the first light signal or the third light signal, it can be considered as being in low power output mode, so that the user can distinguish the first light signal and the third light signal from the light emitting situation of the light module in other cases, so as to improve the prompting effect.
  • the embodiment of the present application provides a device for prompting the state of the camera, the device is set in an electronic device, and the electronic device is used to execute the method described in any one of the first aspect or any one of the second aspect. method.
  • an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; and the processor is used to execute the method described in any one of the above first aspects when calling the computer program.
  • an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement any of the above-mentioned first aspects. one of the methods described.
  • the chip system may be a single chip, or a chip module composed of multiple chips.
  • an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the above-mentioned first aspects is implemented.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to execute the method described in any one of the above-mentioned first aspects.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a software structural block diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for prompting camera status provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another method for prompting camera status provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another display interface provided by the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of another method for prompting camera status provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another display interface provided by the embodiment of the present application.
  • FIG. 9 is a flow chart of a method for determining a first area provided by an embodiment of the present application.
  • Fig. 11 is a schematic diagram of another first region provided by the embodiment of the present application.
  • FIG. 12 is a flow chart of a method for detecting the state of a camera provided in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another display interface provided by the embodiment of the present application.
  • FIG. 14 is a flow chart of a method for turning off a camera provided in an embodiment of the present application.
  • Fig. 15 is a partially enlarged view of another display interface provided by the embodiment of the present application.
  • Fig. 16 is a schematic diagram of a user operation provided by the embodiment of the present application.
  • Fig. 17 is a partially enlarged view of another display interface provided by the embodiment of the present application.
  • Fig. 18 is a schematic diagram of another user operation provided by the embodiment of the present application.
  • Fig. 19 is a partial enlarged view of another display interface provided by the embodiment of the present application.
  • Fig. 20 is a schematic diagram of another first region provided by the embodiment of the present application.
  • Fig. 21 is a schematic diagram of another first region provided by the embodiment of the present application.
  • Fig. 22 is a schematic diagram of another first region provided by the embodiment of the present application.
  • Fig. 23 is a schematic diagram of another first region provided by the embodiment of the present application.
  • Fig. 24 is a schematic diagram of another user operation provided by the embodiment of the present application.
  • Fig. 25 is a schematic diagram of a first area and a third area provided by an embodiment of the present application.
  • Fig. 26 is a partially enlarged view of another display interface provided by the embodiment of the present application.
  • FIG. 27 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the method for prompting the status of the camera provided in the embodiment of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, notebook computers, super mobile On electronic devices such as personal computers (ultra-mobile personal computer, UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • FIG. 1 is a schematic structural diagram of an example of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, a memory 120, a communication module 130, a display screen 140, a camera 150, a sensor 160, and the like.
  • the processor 110 may include one or more processing units, and the memory 120 is used for storing program codes and data.
  • the processor 110 may execute computer-executed instructions stored in the memory 120 for controlling and managing the actions of the electronic device 100 .
  • the communication module 130 may be used for communication between various internal modules of the electronic device 100, or communication between the electronic device 100 and other external electronic devices, and the like. Exemplarily, if the electronic device 100 communicates with other electronic devices through a wired connection, the communication module 130 may include an interface, etc., such as a USB interface. USB interface, USB Type C interface, etc.
  • the USB interface can be used to connect the charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the communication module 130 may include an audio device, a radio frequency circuit, a Bluetooth chip, a wireless fidelity (Wi-Fi) chip, a near-field communication (NFC) module, etc.
  • the interaction between the electronic device 100 and other electronic devices is realized in a manner.
  • the display screen 140 is used for displaying images, videos and the like.
  • the electronic device 100 may include 1 or N display screens 140 , where N is a positive integer greater than 1.
  • Camera 150 is used to capture still images or video.
  • the electronic device 100 may include 1 or N cameras 150 , where N is a positive integer greater than 1.
  • N is a positive integer greater than 1.
  • the electronic device 100 when it is a mobile phone, it may include a front camera set on one side of the display screen 140 , and multiple rear cameras set on a side opposite to the display screen 140 .
  • the front camera may be a camera set on the side opposite to the user when the user uses the electronic device 100 .
  • the electronic device 100 as a mobile phone as an example
  • the side on which the display screen 140 is set is opposite to the user
  • the camera set on the side is the front camera
  • the camera set on the side opposite to the side is the front camera. for the rear camera.
  • the sensor 160 may include a pressure sensor, a touch sensor, and a light sensor.
  • the pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • a pressure sensor can be provided on the display screen 140 .
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • Touch sensor also known as "touch panel”.
  • the touch sensor may be disposed on the display screen 140, and the touch sensor and the display screen 140 form a touch screen, also called a “touch screen”.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 140 .
  • the touch sensor may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 140 .
  • the light sensor can be used to perceive the brightness of the environment, and then can be used to adaptively adjust the brightness of the screen, automatically adjust the white balance when taking pictures, detect whether there is an object approaching, and so on.
  • the electronic device 100 may also include peripheral devices (not shown in the figure), such as a mouse, a keyboard, a speaker, a microphone, and the like.
  • peripheral devices such as a mouse, a keyboard, a speaker, a microphone, and the like.
  • the embodiment of the present application does not specifically limit the structure of the electronic device 100 .
  • the electronic device 100 may also include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • electronic device 100 may include an access layer, a control layer, and a base middle layer.
  • the access layer can be used to present a variety of interfaces to the user, and interact with the user based on the presented interface, including setting the control switch in the interface, the position selection of the first area and the third area in the embodiment of this application , and touch interactions in the first and third areas.
  • the control layer may be used to control the display or hiding of the prompt signal in the embodiment of the present application, as well as the interaction logic with the first area and the third area.
  • the control layer can be divided into foreground and background.
  • the foreground includes coordinate control module, event registration module and camera control module.
  • the coordinate control module can be used to determine the position (such as coordinates) and size of the first area or the third area according to the screen notch area (notch) parameters and TP parameters stored in the electronic device.
  • the event registration module can be used to register various events related to the embodiment of the present application in the application framework (framework, not shown in the figure), such as camera opening event, touch sliding event, and camera photosensitive change event.
  • the camera control module can be used to control the state of the camera, including opening or closing.
  • the screen cutting area may be the area where the camera is located, and the screen cutting area parameter may be used to indicate the position and size of the screen cutting area.
  • the TP parameter can include the number of rows and columns. Dividing the number of horizontal pixels of the display screen by the number of columns is the width of the smallest touch block of the display screen, and the number of vertical pixels of the display screen is equal to the number of rows, which is the height of the smallest touch block.
  • the background includes location matching module, event monitoring module, camera management module and notification management module.
  • the position matching module can match and determine the first area or the third area in the display screen according to the calculation result of the aforementioned coordinate control module.
  • the event monitoring module can be used to monitor various events registered by the aforementioned event registration module, such as camera opening events, touch sliding events, and the like.
  • the camera management module can be used to manage the camera, such as opening, closing and jumping to the front and back.
  • the notification management module can be used for message notification between processes or components, such as sending a message that the camera is turned on, etc., and can also be used to notify users of certain information.
  • the basic middle layer can be used to provide basic hardware and software support for the aforementioned access layer and control layer.
  • the basic middle layer may include Huawei mobile services (huawei mobile services, HMS), window management services (window manager service, WMS), active component management services (activity manager service, AMS), application package management services One or more of (package manage service, PMS), structured query language software library (structured query language ite, SQLite), broadcast (broadcast) service, and push kit (push kit).
  • Electronic devices are usually provided with a camera, and a user can call the camera through an application program such as a camera to capture images and achieve the purpose of recording information.
  • an application program such as a camera to capture images and achieve the purpose of recording information.
  • Many third-party applications may open the camera and take images without the user's knowledge, which may violate user privacy. Therefore, it is necessary to The status of the camera is prompted so that the user can perceive the status of the camera.
  • the manner in which the electronic device prompts the front camera may be as shown in FIG. 3 .
  • the operating system of the electronic device can register a monitoring event for the front camera in the camera framework.
  • the camera framework will listen to the call event and send an event notification.
  • a pop-up window is displayed at the bottom of the screen as shown in Figure 4.
  • the pop-up window includes "A certain application requests to open the front camera", a prohibit button and a allow button, and a countdown is displayed near the prohibit button. If the electronic device receives a click operation from the user based on the prohibit button, or does not receive any operation before the end of the countdown, keep the front camera turned off.
  • the electronic device receives a user's click operation based on the permission button, the front camera is turned on.
  • the prompting method shown in FIG. 4 is an intrusive prompting. During the display of the pop-up window, the user can only continue to perform other operations after selecting permission or prohibition.
  • the prompting manner of the electronic device to the front camera may be as shown in FIG. 5 .
  • the application program requests the camera frame to open the front camera, and the camera frame notifies the status bar that the call status of the front camera is on, so the status bar displays yellow (black in the figure) dots on the display screen as Figure 6 shows.
  • the camera framework can notify the status bar that the call status of the front camera is off, so the status bar hides the yellow light spot.
  • this prompting method is not obvious enough, and the user is likely to ignore the light point, and the prompting effect is poor.
  • the electronic device also displays a light spot of another color with the same size at the same position in the upper right corner of the display to indicate that another sensitive function (such as positioning or recording) is turned on, which will also cause the user to need to It takes time and energy to memorize the meanings of light spots of different colors, and the learning cost is relatively high.
  • another sensitive function such as positioning or recording
  • the embodiment of the present application provides another method for prompting the state of the camera.
  • the electronic device when the electronic device detects that the first camera is in an open state, it may display the first prompt signal through the first area of the display screen adjacent to the second area. Since the second area is the area where the second camera is located, when the first prompt signal is displayed in the first area, the user can easily associate the first prompt signal with the camera, so as to determine the content prompted by the first prompt signal Indicates that the first camera is currently open. Compared with the method of displaying pop-up windows under the display screen, the prompting process will not interrupt other operations of the user, and the user experience is good. Compared with the method of displaying yellow dots in the upper right corner of the display screen, it can more accurately prompt the user that the camera is currently being called, rather than other functions such as positioning or recording. The prompting method is more significant and reduces the user's learning experience cost.
  • the electronic device when the user perceives the first prompt signal, he may wish to turn off the first camera, so the electronic device can quickly turn off the opened first camera based on the first area or the additional touch sensing area, providing Better privacy protection effect.
  • the embodiment of the present application can be implemented as an application program (such as a camera notification program) or a component in a certain application program (such as a reminder component).
  • the following electronic devices are related to the embodiment of the application The operation of can actually be performed by the electronic device through the prompt program or the prompt component.
  • FIG. 7 is a flow chart of a method for prompting camera status provided by an embodiment of the present application. It should be noted that the method is not limited to the specific order shown in FIG. 7 and the following description. It should be understood that in other embodiments, the order of some steps in the method can be exchanged according to actual needs, or some steps in the method can be exchanged according to actual needs. It can also be omitted or deleted.
  • the method comprises the steps of:
  • the electronic device turns on a camera prompting function.
  • the purpose of the method for prompting the status of the camera is to prompt the user in time when the camera is turned on, so as to reduce the occurrence of privacy leaks such as malicious shooting by third-party applications, but in actual applications, not all All users want to be prompted, and even the same user does not want to be prompted in some scenarios, so the electronic device can provide the user with a corresponding configuration access port, so that the user can flexibly choose whether to prompt the camera status and the prompt method Configure the relevant details.
  • the electronic device may determine to enable the camera prompt function when receiving the first setting operation submitted by the user, and then may prompt the status of the camera through subsequent steps.
  • the electronic device may also determine to turn off the camera prompt function when receiving the second setting operation, so no matter what the state of the camera is, it will no longer prompt the user, or at least it will no longer follow the instructions provided by the embodiment of the present application. way to prompt.
  • the operation types of the first setting operation and the second setting operation may be determined in advance by the electronic device, and the embodiment of the present application does not specifically limit the operation types of the first setting operation and the second setting operation.
  • the electronic device may provide the user with a system configuration page as shown in FIG. 8 , and the system configuration page includes the option "Camera Call Prompt" and a switch corresponding to the option.
  • the camera prompt function can be turned on, and the switch can be switched to an on state.
  • the camera prompt function is turned off, and the switch is switched to an off state.
  • the electronic device can also determine whether to turn on or turn off the camera prompt function through other methods, and is not limited to the method shown in FIG. 8 .
  • the manner of prompting the function is not specifically limited.
  • the electronic device may not determine whether to enable the camera prompt function based on the configuration of the user. For example, the electronic device may determine whether to enable the camera prompt function based on a judgment strategy preset by relevant technicians. Or, in some other embodiments, at any time, the electronic device can prompt the user the state of the camera according to the method provided in the embodiment of the present application, without turning on or off the camera prompt function, and without executing S701, That is, S701 is an optional step.
  • the electronic device determines a first area on a display screen.
  • An electronic device may be provided with a display screen, and when the user uses the electronic device, the display screen may always or most of the time face the user.
  • the electronic device may also include more than one camera, which may include a second camera arranged on the plane where the display screen of the electronic device is located (such as a panel on one side of the display screen or a certain position in the display screen), and It may include a first camera arranged at any position of the electronic device (such as the side facing away from the display screen). Then, when a certain camera is called and turned on, a prompt signal can be sent in the first area of the display screen close to the second camera.
  • the prompt signal is associated with the camera, that is, it is easier to determine that the prompt signal is used to prompt that a camera is currently in an open state. Therefore, in order to prompt the user in the first area subsequently, the electronic device may determine the first area on the display screen.
  • the electronic device can automatically match and determine the first area based on the position of the second camera; or, it can also receive related operations from the user to determine the first area, that is, the user manually determines the first area; or, the electronic device can first automatically determine the first area.
  • the first area is determined by matching, and then the first area is precisely adjusted based on the relevant operations of the user, and then the first area is finally determined.
  • the manner in which the electronic device determines the first area on the display screen may be as shown in FIG. 9 below.
  • the first area and the second area may be in the same plane, so that the prompt signal displayed in the first area is more closely related to the camera, and the prompt effect is improved.
  • the first area may be adjacent to the second area where the second camera is located.
  • the first area is adjacent to the second area may mean that the distance between the first area and the second area is less than or equal to a specific distance when the electronic device is in at least one usage mode.
  • the size and calculation unit of the specific distance can be determined by relevant technical personnel. Taking the calculation unit as a pixel as an example, the specific distance can be any numerical value between 100 and 200 pixels. The size of the distance is not specifically limited.
  • the electronic device has only one usage mode, and the second camera is set inside the display screen, so the area of the display screen is on the same plane as the second area where the second camera is located.
  • another electronic device is a foldable device. When the electronic device is in a folded state, as shown in FIG. This part of the display area defines a first area 1002 for prompting the status of the camera.
  • this partial area is not used to display any notification message, and does not include any objects for interacting with the user (such as icon). If there is a part of the body shell of the electronic device between the first area and the second area, then this part of the body shell does not include any exposed components, such as speakers or microphones.
  • the indication signal displayed in the first area is different from the second area. The stronger the relevance of the camera in the area is, so that the user can better associate the prompt signal with the camera, and the better the prompt effect will be.
  • the first area may surround the second area, so that the prompt signal may surround the second camera, improving the correlation between the prompt signal and the camera.
  • enclosing the second area by the first area may include that the first area encloses a projection of the second area on the plane where the first area is located.
  • the shape of the first region may be similar to the shape of the second region.
  • the area where the second camera is located is the second area 1001
  • the first area 1002 is adjacent to the second area 1001 .
  • the first area 1002 can be a circular area, as shown in a in FIG. 11 and b in FIG. 11 ; or, the first area 1002 can be a rectangular area, as shown in c in FIG. 11 and d in FIG. 11 ; or , the first area 1002 may be a fan-shaped area, as shown in e in FIG. 11 .
  • the first area 1002 in b in Figure 11 can also be called an annular area; similarly, compared with c in Figure 11, there is no common area between the first area 1002 and the second area 1001 in d in Figure 11 Boundary: Compared with a, b, c and d in FIG. 11 , the first region 1001 in e in FIG. 11 is set on one side of the second region 1001 instead of surrounding the second region 1001 .
  • the first area may also be an area of other shapes.
  • the first region may include corners, or may include rounded corners after chamfering the corners.
  • the first area may be a rectangular area with four right angles, or a rectangle with four rounded corners, where the four rounded corners are obtained by chamfering the four right angles respectively.
  • the first area is determined based on the second area where the second camera is located, for the same electronic device, since the position and arrangement of the second camera are fixed, that is, the second area (shape, size and position) are fixed, then the first area can be fixed; and for different electronic devices, due to the different positions of their second cameras, the second area is also different, then the corresponding first area can be different, thus presenting Different electronic devices may include first regions with different shapes.
  • the electronic device in order to control the camera, such as turning off the camera, the electronic device may further set a third area for user touch operation.
  • the third area may be the same area as the first area.
  • the first display area may only be used to display the prompt signal, and the electronic device additionally determines a third area as a touch sensing area, and the third area may be adjacent to the first area.
  • the manner in which the electronic device determines the third area may be the same as or similar to the manner in which the first area is determined.
  • the third area is not the same area as the first area, the first area and the third area may be in the same plane.
  • the third area may surround the first area.
  • the electronic device may determine the third area in a manner similar to that of determining the first area, and the position and size of the determined third area may also vary from different electronic devices, which will not be repeated here. A repeat.
  • the first camera and the second camera may be the same camera set on the plane where the display screen of the electronic device is located, such as the same front camera. In some other embodiments, the first camera is set on the side opposite to the display screen, that is, the rear camera, and the second camera is a front camera.
  • the electronic device detects the state of the camera.
  • the electronic device can detect whether the camera is currently on or off.
  • the manner in which the electronic device detects the state of the camera may be as shown in FIG. 12 below.
  • the way the electronic device detects the state of the camera is not limited to the way shown in FIG. 12 below.
  • the electronic device determines the first area that has a strong correlation with the camera and detects that the camera is turned on, it can prompt the user in the first area in time, so that the user can more timely and accurately perceive the event that the camera is turned on. It is also convenient for subsequent related control operations on the camera.
  • the prompt signal may include at least one of light signal, text and icon.
  • the light signal may have three color attributes such as hue, tint and lightness. Any color attribute of the light signal included in the reminder signal may be fixed, or may change with the duration of the reminder. When any color attribute of the light signal can change with the prompting duration, a better prompting effect can be achieved.
  • the hue and tint of the light signal may not change, and the lightness may change cyclically from low to high and then to low. In some embodiments, the hue and brightness of the light signal may not change, and the hue may change cyclically in a preset manner.
  • the text and the icon may include an application identification requesting to turn on the camera, so as to prompt more information related to the state of the camera, such as instructing an application to turn on the camera, to further improve the prompting effect.
  • the prompt signal is not limited to the above-mentioned light signal, text and icon.
  • the electronic device can also prompt the user that the camera is in an open state through more or fewer types of prompt signals. For example, the electronic device can reverse the phase of the second image in the first area of the screen to be displayed on the current display screen, The first image is obtained, and then the first image is displayed in the first area as a prompt signal, and the embodiment of the present application does not specifically limit the type of the prompt signal.
  • the electronic device may determine the type of the prompt signal based on the third setting operation submitted by the user.
  • the electronic device may display the reminder signal configuration options as shown in FIG. 13 .
  • the reminder signal configuration options include three options: "display light signal”, "display application name” and "display application icon", and each option is correspondingly provided with a switch.
  • the electronic device may determine that the type of the prompt signal includes the type indicated by the option.
  • the electronic device may display a first prompt signal in the first area.
  • the first prompt signal may include at least one of a first light signal and an application identifier of a first application program, where the first application program is an application program that requests to open the first camera.
  • the third prompt signal is the first prompt signal, or it can be understood that the third prompt signal is the same as the first prompt signal.
  • the third prompt signal can be different from the first prompt signal, or can be the same as the first prompt signal. The difference is that if the first prompt signal is different from the third prompt signal.
  • the prompting signals are the same, and the prompting method is relatively simple, which can also reduce the requirements for equipment capabilities; if the first prompting signal and the third prompting signal are different, it can more accurately prompt the user which camera is currently on.
  • the electronic device detects a preset control event.
  • the electronic device can detect a preset control event, and the preset control The event is used to trigger closing the camera.
  • the preset control event may include a first preset control event corresponding to the first camera and a second preset control event corresponding to the second camera. Wherein, the first preset control event is used to trigger the shutdown of the first camera, and the second preset control event is used to trigger the shutdown of the second camera.
  • the first preset control event may include a first touch event and a first sensitivity drop event.
  • the first touch event may be an event based on the third area receiving a first trigger operation.
  • the first area has a strong correlation with the camera, so the prompt number used to prompt the camera to be turned on can be intuitively displayed, and the third area is the first area or a touch-sensitive area adjacent to the first area.
  • the correlation with the camera is also very strong, so controlling the camera based on the first touch event can meet the thinking habits of most users and improve the convenience of operation.
  • the operation type of the first trigger operation may be determined in advance by the electronic device.
  • the first trigger operation may be a sliding operation that slides along the first direction and at least part of the sliding track is in the third area.
  • the first direction may be determined in advance by the electronic device.
  • the first direction may be a direction from the third area to the second area.
  • the first photosensitivity drop event may be an event based on the first camera detecting that the value change of the photosensitivity drop is greater than or equal to the first photosensitivity threshold, or the first photosensitivity event may be an event based on the first camera detecting that the photosensitivity drop And the event that the value after the drop is smaller than the second sensitivity threshold.
  • the second preset control event may include a first touch event and a second sensitivity drop event.
  • the second photosensitivity drop event may be an event based on the second camera detecting that the value change of the photosensitivity drop is greater than or equal to the third photosensitivity threshold, or the second photosensitivity event may be an event based on the second camera detecting a photosensitivity drop And the event that the value after the drop is less than the fourth sensitivity threshold.
  • the third sensitivity threshold or the fourth sensitivity threshold may be determined in advance by the electronic device.
  • the third sensitivity threshold may be the same as the first sensitivity threshold
  • the fourth sensitivity threshold may be the same as the second sensitivity threshold.
  • the second preset control event is the first preset control event.
  • the type and quantity of the first preset control event may be set in advance by the electronic device.
  • the electronic device may register a preset control event before performing S705. In some embodiments, the electronic device may register a first preset control event after determining that the first camera is in an on state; and register a second preset control event after determining that the second camera is in an on state.
  • the electronic device can register the first touch event from the touch-related components through the prompt component, and register the first touch event from the camera-related components (such as the camera frame). Sensitivity drop event.
  • the electronic device can be driven by the camera to control the camera to be turned off.
  • the electronic device if the electronic device detects the first preset control event, it can turn off the first camera; if it detects the second preset control event, it can turn off the second camera.
  • the electronic device may set the type or number of the first preset control event (or the second preset control event) in advance. Therefore, taking the first preset control event as an example, if the number of first preset control events set in advance is more than one, the electronic device can be turned off when some of the first preset control events (such as at least one) are detected. The camera in the open state may also be closed when all the first preset control events are detected.
  • the manner in which the electronic device turns off the camera may refer to FIG. 14 below.
  • the display duration of the first prompt signal may be a first preset duration. If the electronic device does not detect at least one or all of the specified first preset control events within the first preset time period, it may determine to keep the first camera turned on.
  • the display duration of the third prompt signal may be the second preset duration. If the electronic device does not detect at least one or all of the specified second preset control events within the second preset time period, it may determine to keep the second camera turned on.
  • the electronic device within the first preset time period after the electronic device sends out the first prompt signal, if the user does not manually turn off the first camera, the electronic device can keep the first camera turned on; or, the electronic device sends out the third prompt Within the second preset time period after the signal, if the user does not manually turn off the second camera, the electronic device may keep the second camera turned on.
  • first preset duration or the second preset duration may be determined in advance by the electronic device.
  • the embodiment of the present application does not specifically limit the manner of determining the first preset duration and the second preset duration and the sizes of the first preset duration and the second preset duration.
  • the second preset duration is the first preset duration.
  • the first camera if the first camera is currently turned on and the electronic device receives the second trigger operation based on the third area, it may keep the first camera turned on.
  • the second camera if the second camera is currently in the on state, and the electronic device receives the fourth trigger operation based on the third area, it can keep the second camera on. That is, the user may actively keep the first camera turned on through the second trigger operation, or actively keep the second camera turned on through the fourth trigger operation.
  • the operation type of the second trigger operation or the fourth trigger operation may be determined in advance by the electronic device.
  • the second trigger operation may be a sliding operation in which the second area points to the third area, and at least part of the sliding track is in the third area; in other embodiments Among them, the second trigger operation may be a sliding operation directed from the third area to the first edge, and at least part of the sliding track is in the third area, and the first edge is the edge of the display screen closest to the third area.
  • the fourth trigger operation is the second trigger operation.
  • the electronic device may determine to keep the first camera turned on.
  • the fourth trigger operation is not detected based on the third area within the second preset time period, it may be determined to keep the second camera turned on.
  • the electronic device determines to turn off the first camera (for example, within the first preset time period, based on receiving the first trigger operation in the third area) or determines to keep the first camera on (for example, within the first preset time period within the third area based on the fact that the first trigger operation is not received, or the second trigger operation is received), that is, the user’s feedback has been obtained based on the first prompt signal, or the prompt has been fully played although no user feedback has been obtained , then it can stop displaying the first prompt signal, or it can also be understood as hiding the first prompt signal; similarly, if the electronic device turns off the second camera or determines to keep the second camera on, it can stop displaying the third prompt signal.
  • the electronic device may stop displaying the first prompt signal in the first area and display the second prompt signal in the first area, that is, update the first prompt signal displayed in the first area is the second prompt signal.
  • the electronic device may stop displaying the third prompt signal in the first area and display the fourth prompt signal in the first area, that is, update the third prompt signal displayed in the first area to The fourth reminder signal.
  • the second prompt signal can be used to prompt that the first camera is currently in the open state, and the open state is permitted by the user;
  • the fourth prompt signal can be used to prompt that the second camera is currently in the open state, and the open state is approved by the user. allowed by the user.
  • the second light signal or the fourth light signal may also provide a supplementary light function.
  • the second light signal or the fourth light signal may be a white light signal.
  • the fourth optical signal is the second optical signal.
  • the fourth prompt signal can be different from the second prompt signal, or can be the same as the second prompt signal.
  • the first camera and the second camera are the same camera located in the second area 1001 , the first area 1002 and the third area are in the same area, and the electronic device sends a first optical signal in the first area 1002 .
  • the electronic device can determine that the first touch event is detected. But in fact, since the user does not stop when sliding to position 2, but continues to slide to position 3 in the second area 1001, when the user slides to position 3, the first camera located in the second area 1001 will be blocked , the photosensitivity detected by the first camera will decrease, so the electronic device will also detect the first photosensitivity drop event. When the electronic device detects the first touch event and the first sensitivity drop event, it can turn off the first camera and stop displaying the first light signal in the first area 1002 , as shown in FIG. 17 .
  • the user blocks the first camera with a finger (that is, gesture interaction), thereby reducing the sensitivity detected by the first camera.
  • the user can also use the electronic device to The side on which the first camera is set is close to an obstacle to reduce the sensitivity detected by the first camera. For example, the user can turn over the electronic device so that the first camera is placed upside down on the table.
  • the electronic device can keep the first camera in the second area 1001 turned on.
  • the electronic device can stop displaying the first light signal in the first area 1002, as shown in FIG. 17 , or update the first light signal displayed in the first area 1002 to a second light signal, as shown in As shown in FIG. 19 , the supplementary light is performed through the second light signal to improve the shooting effect of the first camera.
  • the electronic device may jump to the first application program or the second application program.
  • the type of the fifth trigger operation may be determined in advance by the electronic device.
  • the fifth trigger operation may include a press operation or a double-click operation.
  • the fifth trigger operation may also be other types of operations, and the embodiment of the present application does not specifically limit the operation type of the fifth trigger operation.
  • the electronic device when the electronic device detects that the first camera is in an open state, it may display the first prompt signal through the first area of the display screen adjacent to the second area. Since the second area is the area where the second camera is located, when the first prompt signal is displayed in the first area, the user can easily associate the first prompt signal with the camera, thereby determining what the first prompt signal prompts.
  • the content is that the first camera is currently open.
  • the prompting process will not interrupt other operations of the user, and the user experience is good.
  • the method of displaying yellow dots in the upper right corner of the display screen it can more accurately prompt the user that the camera is currently being called, rather than other functions such as positioning or recording.
  • the prompting method is more significant and reduces the user's learning experience cost.
  • the user perceives the first prompt signal, he may wish to turn off the first camera, so the electronic device can quickly turn off the opened first camera based on the first area or an additional touch sensing area, providing better privacy Protective effect.
  • FIG. 9 is a flowchart of a method for determining a first area provided by an embodiment of the present application. It should be noted that the method is not limited to the specific order shown in FIG. 9 and the following description. It should be understood that in other embodiments, the order of some steps in the method can be exchanged according to actual needs, or some steps in the method can be exchanged according to actual needs. It can also be omitted or deleted.
  • the method comprises the steps of:
  • the electronic device determines a second area where the second camera is located.
  • the second camera is set on the edge or inside of the display screen, and the display screen is correspondingly provided with a screen cutting area for arranging the second camera. Hole screen" and so on.
  • the electronic device may pre-store the screen cutting area parameter, therefore, the electronic device may obtain the screen cutting area parameter, and determine the second area based on the screen cutting area parameter.
  • the screen cutting area parameter may be used to indicate the screen cutting area.
  • the parameters of the screen cutting area may include the height, width and distance from the edge of the display screen of the screen cutting area.
  • the parameters of the screen cutting area may include coordinate positions of multiple pixel points on the edge of the screen cutting area. It should be noted that, in practical applications, the parameters of the screen cutting area may be determined according to factors such as the shape of the screen cutting area, and the embodiment of the present application does not specifically limit the form of the screen cutting area parameters.
  • the second camera is buried in the inner space below the display screen.
  • the electronic device may preselect and store an area parameter for indicating the second area, and then determine the second area based on the area parameter, or the electronic device may detect the second area drawn by the user on the display screen.
  • the electronic device can determine the second area by detecting the way the user draws on the display screen.
  • the electronic device does not need to execute S901 to determine the second area, but directly executes subsequent steps.
  • the second camera is set on the side of the electronic device near the display screen. On the panel, the second area cannot be determined according to the screen cutting area, so S901 is an optional step.
  • the electronic device determines the minimum touch block size of the display screen.
  • the width of the prompt area can be determined based on the minimum touch block size of the display screen .
  • the smallest touch block may be the smallest area in the display screen that can clearly and unambiguously receive the user's touch operation, and the size or determination method of the smallest touch block may be submitted by technical personnel related to receiving electronic equipment.
  • the electronic device can obtain the number of TP rows and TP columns of the stored display screen, and the value obtained by dividing the number of horizontal pixels of the display screen by the number of TP columns can be the width of the smallest touch block.
  • the value obtained by dividing the number of vertical pixels of the screen by the number of TP rows can be the height of the smallest touch block.
  • the electronic device may obtain the stored minimum touch block size.
  • S902 may be an optional step, then in subsequent steps, the electronic device may determine the size of the prompt area in other ways.
  • the electronic device determines the first area based on the second area and the minimum touch block size.
  • the first area can be set adjacent to the second area, That is, the second area can be used to determine the position of the first area.
  • the smallest touch block can be used to determine the width of the first area. Therefore, based on the second area and the minimum touch block size, the first area can be determined.
  • the second areas are also different, so the corresponding first areas may be different, thus showing that different electronic devices may include first areas with different shapes .
  • the display screen of the electronic device is a "hole-digging screen", and the second camera is arranged in the second area 1001 inside the display screen.
  • the second area 1001 is a rectangular area, with the second area as the center, the width of the second area 1001 is extended to both ends by the width of the smallest touch block 1003, and the height of the second area 1001 is extended to both ends by the smallest touch block 1003, the first area 1002 which is also a rectangular area can be obtained.
  • the display screen of the electronic device is a "notch screen", and the second camera is arranged in the second area 1001 on the edge of the display screen.
  • the second area 1001 is a rectangular area, with the second area as the center, the width of the second area 1001 is extended to both ends by the width of the smallest touch block 1003, and the height of the second area 1001 is extended to the end far away from the second area 1001 Extending the height of the smallest touch block 1003 can obtain the first area 1002 which is also a rectangular area.
  • the display screen of the electronic device is a special-shaped screen, and the second camera is arranged in the second area 1001 at the upper right corner of the edge of the display screen.
  • the shape of the second area 1001 is irregular, and the first area 1002 may be circular.
  • the width of any part of the first region 1002 may be greater than or equal to the width of the smallest touch block 1003
  • the height of any part of the first region 1002 may be greater than or equal to the height of the smallest touch block 1003 .
  • the second camera is arranged on the front panel of the electronic device, near the top of the display screen, and the second area 1001 where it is located is circular.
  • the first area 1002 may be a semicircle, and one straight side of the first area 1002 coincides with the top of the display screen.
  • the first area 1002 may include at least one smallest touch block 1003 .
  • the electronic device may display the first frame on the display screen, wherein the shape of the first frame may be preset, and the shape of the first frame may be preset.
  • the size may be determined based on the smallest touch block size.
  • the electronic device may receive the user's second drag operation based on the first border, and determine the position of the first area based on the second drag operation. That is, the position of the first area is manually set by the user.
  • the electronic device when the electronic device does not execute S901, it may execute S903 as shown in FIG. 24 .
  • the electronic device displays a first frame 1004, wherein the position of the first frame 1004 is a side of the display screen close to the second area 1001 where the second camera is located, and the width of the first frame 1004 is the width of the smallest touch block 1003, The height of the first frame 1004 is a random value.
  • the electronic device re-determines the position of the first frame 1004 based on the first frame 1004 receiving the user's second drag operation, and finally obtains the first area 1002 as shown in FIG. 10 .
  • the electronic device may display a second frame on the display screen, wherein the shape of the second frame may be preset, and the second frame The position of can be determined based on the second area, and the size of the second frame can be a random size or a preset size.
  • the electronic device may also receive a second scaling operation from the user based on the second frame, and determine a size after the second scaling operation as the size of the first region.
  • the minimum touch block size can be replaced with a random size or a preset size. That is, the size of the first area is manually set by the user.
  • a third frame may be displayed on the display screen, wherein the shape of the third frame may be preset, and the position and size of the first frame may be It is a random value or a preset value.
  • the electronic device may receive the user's second drag operation based on the third frame, determine the position of the first area based on the second drag operation; receive the user's second zoom operation based on the third frame, and determine the size after the second zoom operation is the size of the first region. That is to say, manually setting the position and size of the first region by the user facilitates the determination of the first region even when it is difficult to obtain the first region through automatic matching, thereby improving the reliability of determining the first region.
  • the electronic device can determine the first area through automatic adaptation, but in practical applications, there are many types of electronic equipment, and the first area obtained by automatic adaptation may not be perfectly consistent with the second area of the electronic device. Therefore, in order to improve the accuracy of the first area, as long as at least one of the position and size of the first area is obtained through automatic adaptation, the electronic device can also perform the following optional step S904, so that The user manually fine-tunes the first area obtained through automatic adaptation.
  • the electronic device updates the first area based on the received first update operation.
  • the first updating operation is used to update at least one of the position and the size of the first area.
  • the first update operation is a first drag operation on the first area
  • the electronic device may finish updating the position of the first area based on the first drag operation.
  • the first update operation is a first scaling operation on the first area
  • the electronic device may update the size of the first area based on the first scaling operation
  • the electronic device may also determine the third area in a manner similar to S901-S904.
  • FIG. 25 also includes a third area 1005 , and the third area 1005 surrounds the first area 1002 and the second area 1001 .
  • the electronic device displays a prompt signal in the first area 1002 , as shown in FIG. 26 .
  • the first area 1002 can be used not only for displaying a prompt signal, but also for receiving related operations from the user to control the camera in the open state.
  • the first area 1002 can only be used to display the prompt signal
  • the third area 1005 outside the first area 1002 can be used to subsequently receive relevant operations from the user to control the camera in the open state. , which is convenient for users to operate.
  • the size of the first area may not be limited by the minimum touch block size.
  • the electronic device can determine the second area where the second camera is located and the minimum touch block size of the display screen, and automatically match the first area based on the second area and the minimum touch block size, which improves the Determine the efficiency of the first zone.
  • the electronic device may update and adjust the automatically matched first area based on the first update operation, so that the user can manually adjust the first area obtained through automatic matching, thereby improving the accuracy of the first area.
  • FIG. 12 is a flow chart of a method for detecting the state of the camera provided by the embodiment of the present application.
  • the electronic device can complete the detection of the state of the camera through the interaction between the prompt component, the camera frame and the camera driver.
  • the method is not limited to the specific order shown in FIG. 12 and the following description. It should be understood that in other embodiments, the order of some steps in the method can be exchanged according to actual needs, or some steps in the method can be exchanged according to actual needs. It can also be omitted or deleted.
  • the method comprises the steps of:
  • the camera monitoring event can be used to perceive the camera opening event from the camera framework.
  • the electronic device may send an event registration message to the camera framework through the prompt component, where the event registration message carries the registered event type.
  • the camera framework receives the event registration message, it can register the event of the event type based on the event registration message.
  • the camera driver sends a camera call interruption message to the camera framework.
  • the camera calling interrupt message is used to notify the camera framework to start opening the camera, including opening the first camera or the second camera.
  • the electronic device when an application program needs to call the camera, the electronic device can send a camera opening instruction to the camera driver through the application program.
  • the electronic device receives the camera opening instruction through the camera driver, it can send the The camera framework sends a camera call interrupt message and opens the camera.
  • the electronic device may also notify the camera framework of the application identification of the application that requests to open the camera through the camera driver.
  • the electronic device may carry the application identification of the application calling the camera in the calling interrupt message through the camera driver, or may send the application identification to the camera framework separately through the camera driver.
  • the embodiment of the present application does not specifically limit the manner in which the electronic device notifies the camera framework of the application identifier through the camera driver.
  • the camera framework sends a camera call message to the prompt component.
  • the call message may be used to indicate that the camera is called and is in an open state.
  • the electronic device detects the call message through the prompt component, it may determine that the camera is currently in an open state.
  • the electronic device may also use the camera framework to notify the prompt component of the application identification of the application that calls the camera.
  • the electronic device may carry the application identification of the application calling the camera in the calling message through the camera framework, or may send the application identification to the prompting component separately through the camera framework.
  • the embodiment of the present application does not specifically limit the manner in which the electronic device notifies the prompt component of the application identifier through the camera frame.
  • the electronic device may send a first call message to the prompt component through the camera frame, and the first call message is used to indicate that the first camera is currently called and is in an open state.
  • the electronic device detects through the prompt component If the first calling message is used, it can be determined that the first camera is currently called and is in an open state.
  • the electronic device may send the application identification of the application program requesting to open the first camera to the prompt component through the camera framework.
  • the electronic device can send a second call message to the prompt component through the camera frame, and the second call message is used to indicate that the second camera is currently called and is in an open state.
  • the electronic device detects the second call via the prompt component message, it can be determined that the second camera is currently called and is in the open state.
  • the electronic device may send the application identification of the application program requesting to open the second camera to the prompt component through the camera framework.
  • the second calling message is the first calling message.
  • the electronic device can perceive the opened camera and the application program that opens the camera from the camera frame by registering the camera monitoring event, so as to prompt the user in time.
  • FIG. 14 is a flowchart of a method for turning off a camera of an electronic device according to an embodiment of the present application. It should be noted that the method is not limited to the specific order shown in FIG. 14 and the following. It should be understood that in other embodiments, the order of some steps in the method can be exchanged according to actual needs, or some steps in the method can be exchanged according to actual needs. It can also be omitted or deleted. It should also be noted that FIG. 14 provides a method for turning off the first camera when a first preset control event is detected. Wherein, the first preset control event includes a first touch event and a first sensitivity drop event, and the first camera and the second camera are the same camera, such as a front camera. The method comprises the steps of:
  • the electronic device detects a first touch event.
  • the electronic device can detect the position and operation type of any touch operation of the user on the display screen, if the touch operation is based on the third area receiving the first trigger operation, if so, it can determine that the first touch event is detected .
  • the electronic device may detect the current sensitivity based on the first camera, and compare the detected sensitivity with the first sensitivity threshold or the second sensitivity threshold. In some embodiments, if the detected photosensitivity drop and the value variation of the drop is greater than or equal to the first photosensitivity threshold, it may be determined that the first photosensitivity drop event is detected. In some embodiments, if the detected photosensitivity drops and the dropped value is smaller than the second photosensitivity threshold, it may be determined that a first photosensitivity drop event is detected.
  • the first camera can be turned off.
  • the first touch event and the first sensitivity drop event may be sequentially detected, and when the first touch event and the first sensitivity drop event are detected, , turn off the first camera.
  • the first touch operation may be a sliding operation in a direction from the third area to the second area, and at least part of the sliding track is in the third area, and the first camera and the second camera are located in the same second area. area, then the user can start sliding in the direction from the third area to the second area, trigger the first touch event, and gradually approach and block the first camera during the sliding process, thereby reducing the sensitivity of the first camera , to trigger the first ISO drop event.
  • the electronic device first displays the first prompt signal (the first condition) in the first area when it detects that the first camera is turned on, and then sequentially detects the first touch event (the second condition) and the first photosensitive degree drop event (third condition).
  • the electronic device can turn off the first camera. On the one hand, it conforms to the operation logic of the user who perceives that the first camera is turned on and then turns it off, and on the other hand, it also reduces the possibility of misoperation.
  • the embodiment of the present application only describes the case where the electronic device turns off the first camera in the order of first detecting the first touch event and then detecting the first sensitivity drop event, and does not describe the detection of the preset control event.
  • the sequence constitutes a constraint.
  • the first area is a partial area of the display screen
  • the electronic device may display a prompt signal by drawing a user interface (user interface, UI), and the prompt signal is generated by multiple The result of overlaying pixels in different display states.
  • the first area may not be a partial area of the display screen, but an area including at least one lighting component, and the lighting component may include a flashlight or a light strip module.
  • the prompt signal may only include Light signals, electronic devices do not need to perform UI drawing. In the subsequent process, the electronic device can determine whether to turn off the camera only according to the change of the light sensitivity of the camera, without relying on the gesture interaction of the user.
  • the light strip module may be a ring light strip module surrounding the second area.
  • the first optical signal may be an optical signal output by the electronic device according to the first power by controlling the flashlight or the light strip module in the first area.
  • the third optical signal may be an optical signal output by the electronic device according to the second power by controlling the flashlight or the light strip module in the first area.
  • the first power and the second power may be the rated power of the light component or a preset first power threshold, so that when the light component outputs an optical signal according to the first power, it can be considered as being in a low power output mode, and also makes The user can distinguish the first light signal and the third light signal from the lighting of the light module in other situations, so as to improve the prompting effect.
  • the first power and the second power are the same.
  • the first power and the second power may be the same.
  • FIG. 27 is a schematic structural diagram of an electronic device 2700 provided by an embodiment of the present application.
  • the electronic device provided by this embodiment includes: a memory 2710 and a processor 2720, the memory 2710 is used to store computer programs; the processor 2720 uses The methods described in the above method embodiments are executed when the computer program is called.
  • the electronic device provided in this embodiment can execute the foregoing method embodiment, and its implementation principle and technical effect are similar, and details are not repeated here.
  • an embodiment of the present application further provides a chip system.
  • the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement the methods described in the above method embodiments.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
  • An embodiment of the present application further provides a computer program product, which, when the computer program product is run on an electronic device, enables the electronic device to implement the method described in the foregoing method embodiments.
  • the above integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable storage medium may at least include: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (read-only memory, ROM), random access Memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
  • the disclosed device/device and method can be implemented in other ways.
  • the device/device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the term “if” may be construed, depending on the context, as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrase “if determined” or “if [the described condition or event] is detected” may be construed, depending on the context, to mean “once determined” or “in response to the determination” or “once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.

Abstract

本申请提供一种提示摄像头状态的方法及电子设备,涉及终端技术领域,其中,该方法包括检测第一摄像头的状态,若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号,其中,所述第一区域与第二摄像头所在的第二区域相邻,所述第一提示信号用于提示当前所述第一摄像头处于打开状态。本申请提供的技术方案能够显著地提示摄像头的状态,提高提示效果。

Description

提示摄像头状态的方法及电子设备
本申请要求于2021年7月28日提交国家知识产权局、申请号为202110859099.0、申请名称为“提示摄像头状态的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种提示摄像头状态的方法及电子设备。
背景技术
随着终端技术的发展和普及,电子设备逐渐集成了越来越多的功能。手机等电子设备中通常设置有摄像头,该电子设备中的应用程序可以通过调用摄像头进行拍摄来获取图像。由于在实际应用中,这种拍摄操作可能会导致用户隐私泄露,因此需要及时对摄像头的状态进行提示。
现有技术中,电子设备可以在检测到摄像头处于打开状态时,在显示屏的右上角显示一个黄色的光点,因此,用户可以通过观察显示屏的右上角是否存在该光点,来判断摄像头是否处于打开状态。但这种提示方式不够明显,用户极有可能会忽略掉该光点,提示效果较差。
发明内容
有鉴于此,本申请提供一种提示摄像头状态的方法及电子设备,能够显著地提示摄像头的状态,提高提示效果。
为了实现上述目的,第一方面,本申请实施例提供一种提示摄像头状态的方法,包括:
检测第一摄像头的状态;
若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号,其中,所述第一区域与第二摄像头所在的第二区域相邻,所述第一提示信号用于提示当前所述第一摄像头处于打开状态。
其中,第一区域与第二区域相邻,可以是指电子设备在至少一种使用形态时,第一区域和第二区域之间的距离小于或等于特定距离。在一些实施例中,如果第一区域与第二区域之间为显示屏的部分区域,则该部分区域不用于显示任何通知消息,也不包括任何用于与用户交互的对象(比如应用程序的图标)。如果第一区域与第二区域之间为电子设备的部分机身外壳,则该部分机身外壳上不包括任何外露的元器件,比如喇叭或麦克风等。当第一区域和第二区域越接近,且第一区域和第二区域包括的元器件、通知消息或图标等可能干扰用户感知的因素越少,在第一区域所显示的示信号与第二区域的摄像头的关联性也就越强,从而以使得用户能够更好地将提示信号与摄像头联系起来,提示效果也就越好。
在本申请实施例中,电子设备可以在检测到第一摄像头处于打开状态时,通过显 示屏中与第二区域相邻的第一区域显示第一提示信号。由于第二的区域为第二摄像头所在的区域,那么当在第一区域显示第一提示信号时,用户可以很容易地将第一提示信号与摄像头相关联,从而确定第一提示信号所提示的内容为第一摄像头当前处于打开状态。与在显示屏下显示弹窗的方式相比,提示过程不会打断用户的其他操作,用户体验良好。与在显示屏右上角显示黄色光点的方式相比,能够更准确地提示用户当前是摄像头被调用,而不是定位或者录音等其他功能被调用,提示方式更为显著,也降低了用户的学习成本。另外,当用户在感知到第一提示信号时,可能会希望关闭第一摄像头,因此电子设备可以基于第一区域或额外的触控感知区域,快速关闭打开的第一摄像头,提供更好的隐私保护效果。
可选地,所述第一提示信号包括第一光信号。
其中,第一光信号的任一色彩属性可以是固定的,也可以是随提示时长而变化的。当该光信号的任一色彩属性可以随提示时长变化时,能够起到更好的提示效果。在一些实施例中,第一光信号的色相和色调可以不变,明度按照从低到高再到低的方式循环变化。在一些实施例中,第一光信号的色调和明度可以不变,色相按照预设方式的循环变化。
可选地,所述第一提示信号包括第一应用程序的应用标识,所述第一应用程序为请求打开所述第一摄像头的应用程序。
其中,还可以在第一区域显示文字和图标,从而提示与摄像头状态相关的更多信息,比如通过应用标识指示打开摄像头的应用程序,进一步提高提示效果。
可选地,所述第一区域包围所述第二区域。
其中,如果第二区域与第一区域不在同一平面内,则第一区域包围第二区域可以包括,第一区域包围第二区域在第一区域所在平面上的投影。
若第一区域包围第二区域,则可以使得第一提示信号可以环绕第二摄像头,提高第一提示信号与摄像头的关联性。
可选地,第一区域与第二区域在同一平面内。
其中,第一区域与第二区域在同一平面内,也可以使得第一提示信号与摄像头的关联性更强,从而提高提示效果。
可选地,所述第一区域为圆形区域、矩形区域或扇形区域。
在一些实施例中,第一区域的形状可以与第二区域的形状为相似图形。
可选地,在所述在显示屏的第一区域显示第一提示信号之前,还包括:
基于预设的屏幕切割区域参数,确定所述第二区域;
确定所述显示屏的最小触控块尺寸;
基于所述第二区域和所述最小触控块尺寸,确定所述第一区域。
其中,最小触控块可以为显示屏中能够清楚无疑义地接收用户触控操作的最小区域,该最小触控块的尺寸或者确定方式,可以由电子设备接收相关技术人员提交得到。在一些实施例中,电子设备可以获取存储的显示屏的触控板(TP,touchpad)行数和TP列数,该显示屏横向像素数除以TP列数所得到的数值即可以为最小触控块的宽度,该显示屏纵向像素数除以TP行数所得到的数值即可以为最小触控块的高度。在另一些实施例中,电子设备可以获取存储的最小触控块尺寸。
电子设备可以通过屏幕切割区域参数以及最小触控块尺寸,自动匹配得到第一区域,提高了确定第一区域的效率。
在一些实施例中,上述最小触控块尺寸也可以被代替为预设尺寸。
可选地,还包括:
基于对所述第一区域的第一拖动操作,更新所述第一区域的位置;和或,
基于对所述第一区域的第一缩放操作,更新所述第一区域的尺寸。
由于在实际应用中,电子设备种类繁多,自动适配所得到的第一区域可能不能完美地与该电子设备的第二区域相匹配,因此电子设备可以基于用户的第一拖动操作或第一缩放操作,对自动匹配得到的第一区域的位置或尺寸进行更新,从而精确调整第一区域,提高了第一区域的准确性。
在一些实施例中,电子设备可以在显示屏显示第三边框,其中,第三边框的形状可以是预先设置的,第一边框的位置和尺寸都可以是随机的数值或者预设的数值。电子设备可以基于第三边框接收用户的第二拖动操作,基于第二拖动操作确定第一区域的位置;基于第三边框接收用户第二缩放操作,将第二缩放操作缩放后的尺寸确定为第一区域的尺寸。也即是,电子设备也可以仅根据用户操作来确定第一区域,便于在难以自动匹配得到第一区域的情况下(比如无法获取到屏幕切割区域参数),也能够确定第一区域,提高确定第一区域的可靠性。
可选地,还包括:
若基于第三区域接收到第一触发操作,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
其中,第三区域为与第一区域相邻的触控感知区域,则电子设备可以通过与确定第一区域相似的方式确定第三区域。在一些实施例中,若第三区域与第一区域不为同一区域,则第一区域和第三区域可以在同一平面内。在一些实施例中,若第三区域与第一区域不为同一区域,则第三区域可以包围第一区域。在一些实施例中,第三区域的形状可以与第一区域的形状为相似图形。
可选地,还包括:
若基于第三区域接收到第一触发操作,并通过所述第一摄像头检测到感光度下降且下降的数值变化量大于或等于第一感光度阈值,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
可选地,还包括:
若基于第三区域接收到第一触发操作,并通过所述第一摄像头检测到感光度下降且下降后的数值小于第二感光度阈值,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
可选地,所述第一触发操作为由所述第三区域指向所述第二区域的方向,且滑动轨迹的至少部分处于所述第三区域的滑动操作。
在一些实施例中,电子设备可以在先基于第三区域接收到第一触发操作,再通过所述第一摄像头检测到感光度下降且下降的数值变化量大于或等于第一感光度阈值,或者,再通过所述第一摄像头检测到感光度下降且下降后的数值小于第二感光度阈值,则关闭摄像头,相应的,用户可以先按照由第三区域指向第二区域的方向开始滑动, 在滑动过程中逐渐接近并遮挡第一摄像头,进而使得第一摄像头的感光度降低,最终关闭第一摄像头。一方面符合用户在感知到第一摄像头开启之后并关闭的操作逻辑,另一方面也减少了误操作的可能。
可选地,还包括:
若基于第三区域接收到第二触发操作,则确定保持所述第一摄像头开启,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
在一些实施例中,第二触发操作可以为由第二区域指向第三区域的方向,且滑动轨迹的至少部分处于第三区域的滑动操作;在另一些实施例中,第二触发操作可以为由第三区域指向第一边缘,且至少部分滑动轨迹处于第三区域的滑动操作,第一边缘为显示屏最接近第三区域的边缘。
可选地,所述第一提示信号的显示时长为第一预设时长。
可选地,还包括:
若在所述第一预设时长内,基于第三区域未接收到第一触发操作,则保持所述第一摄像头开启,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
可选地,所述第三区域为与所述第一区域相邻的触控感知区域,且所述第三区域包围所述第一区域。
可选地,还包括:
若确定保持所述第一摄像头开启,则将所述第一区域显示的第一光信号更新为第二光信号。
其中,第二提示信号可以用于提示当前第一摄像头处于打开状态,且该打开状态是经过用户允许的。在一些实施例中,第二提示信号可以用于提供补光功能。
也即是,电子设备若确定关闭第一摄像头(比如在第一预设时长内,基于第三区域接收到第一触发操作)或者确定保持打开第一摄像头(比如在第一预设时长内基于第三区域未接收到第一触发操作,或者接收到第二触发操作),即已经基于第一提示信号得到了用户的反馈,或者,虽然未得到用户反馈但已经充分起到了提示的作用,则可以停止显示第一提示信号(也可以理解为隐藏第一提示信号)。在一些实施例中,电子设备若确定保持第一摄像头开启,则可以停止在第一区域显示第一提示信号并在第一区域显示第二提示信号,即将在第一区域显示的第一提示信号更新为第二提示信号。
在一些实施例中,电子设备若基于第三区域接收到第五触发操作,则可以跳转至的打开第一摄像头的第一应用程序。
相似的,电子设备可以按照与提示第一摄像头状态的方式相似的方式,提示第二摄像头的状态,也可以按照控制第一摄像头的方式相似的方式,控制第二摄像头。
在一些实施例中,电子设备若检测到第二摄像头处于打开状态,则可以在第一区域显示第三提示信号。在一些实施例中,第三提示信号可以包括第三光信号和第二应用程序的应用标识中的至少一个,其中,第二应用程序为请求打开第二摄像头的应用程序。
需要说明的是,若第一摄像头与第二摄像头为同一摄像头,则第三提示信号即为第一提示信号,或者可以理解为第三提示信号与第一提示信号相同。当然,无论第一 摄像头与第二摄像头是否为同一摄像头,第三提示信号都可以与第一提示信号有所区别,也可以与第一提示信号相同,区别在于,若第一提示信号与第三提示信号相同,提示方式比较简洁,也能够降低对设备能力的要求;若第一提示信号和第三提示信号不同,则能够更加准确地提示用户当前是哪个摄像头处于打开状态。
在一些实施例中,电子设备可以在基于第三区域接收到第一触发操作,且基于第二摄像头检测到感光度下降的数值变化量大于或等于第三感光度阈值时,或者,在基于第三区域接收到第一触发操作,且基于第二摄像头检测到感光度下降且下降后的数值小于第四感光度阈值时,则关闭第二摄像头。
在一些实施例中,第三提示信号的显示时长可以为第二预设时长。
在一些实施例中,若第二摄像头当前处于开启状态,且该电子设备基于第三区域接收到第四触发操作,则可以保持第二摄像头开启。
在一些实施例中,若在第二预设时长内,基于第三区域未检测到第四触发操作,则可以确定保持第二摄像头开启。
也即是,电子设备若确定关闭第二摄像头或确定保持打开第二摄像头,则可以停止显示第三提示信号。在一些实施例中,该电子设备若确定保持第二摄像头开启,则可以停止在第一区域显示第三提示信号并在第一区域显示第四提示信号,即将在第一区域显示的第三提示信号更新为第四提示信号。
其中,第四提示信号可以用于提示当前第二摄像头处于打开状态,且该打开状态是经过用户允许的。在一些实施例中,第四光信号可以提供补光功能。
在一些实施例中,电子设备若基于第三区域接收到第五触发操作,则可以跳转至的打开第二摄像头的第二应用程序。
可选地,所述若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号,包括:
若检测到第一调用消息,则在所述显示屏的所述第一区域显示所述第一提示信号,所述第一调用消息用于指示所述第一摄像头当前被调用并处于打开状态。
可选地,所述第一摄像头与所述第二摄像头为同一摄像头。
可选地,所述第一摄像头为前置摄像头。
可选地,第一摄像头为后置摄像头,第二摄像头为前置摄像头。
可选地,在所述若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号之前,还包括:
接收第一设置操作,所述第一设置操作用于打开摄像头提示功能。
第二方面,本申请实施例提供一种提示摄像头状态的方法,包括:
检测第一摄像头的状态;
若检测到所述第一摄像头处于打开状态,则通过第一区域内的至少一个灯光组件显示第一提示信号,其中,所述第一区域包围第二摄像头所在的第二区域,所述第一提示信号用于提示当前所述第一摄像头处于打开状态。
第二方面具有与前述第一方面相似的效果,区别在于,在第一方面中,第一区域为显示屏中的部分区域,电子设备可以是通过绘制用户界面的方式显示提示信号,该提示信号是由第一区域内多个不同显示状态的像素叠加的结果。而第二方面中,第一 区域可以不是显示屏中的部分区域,而是包括至少一个灯光组件的区域,该灯光组件可以包括闪光灯或灯带模组,相应的,提示信号可以只包括光信号,电子设备不需要绘制用户界面。在后续过程中,电子设备可以仅依据摄像头的感光度变化来确定是否关闭摄像头,也不再依赖用户的手势交互。
可选地,所述灯光组件包括闪光灯或灯带模组。
可选地,若所述灯光组件包括所述灯带模组,则所述灯带模组为环绕所述第二区域的环形灯带模组。
可选地,所述第一光信号为第一功率的光信号,所述第一功率小于所述灯光组件的额定功率或者预设的第一功率阈值。
可选地,还包括:
若检测到所述第二摄像头处于打开状态,则通过第一区域内的至少一个灯光组件显示第三光信号。
可选地,所述第三光信号为第二功率的光信号,所述第二功率小于所述灯光组件的额定功率或者预设的第一功率阈值。
其中,第一功率或第二功率,小于灯光组件的额定功率或者预设的第一功率阈值,因此当该灯光组件发出第一光信号或第三光信号时,可以被认为是处于低功率输出模式,使得用户能够将第一光信号以及第三光信号,与其他情况下灯光模组发光的情况区别开,提高提示效果。
第三方面,本申请实施例提供一种提示摄像头状态的装置,所述装置设置于电子设备中,所述电子设备用于执行前述第一方面任一项或第二方面任一项所述的方法。
第四方面,本申请实施例提供一种电子设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面中任一项所述的方法。
第五方面,本申请实施例提供一种芯片系统,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面中任一项所述的方法。
其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
第六方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面中任一项所述的方法。
第七方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的方法。
可以理解的是,上述第三方面至第七方面的有益效果可以参见上述第一方面或第二方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例所提供的一种电子设备的结构示意图;
图2为本申请实施例所提供一种电子设备的软件结构框图;
图3为本申请实施例提供的一种提示摄像头状态的方法的流程示意图;
图4为本申请实施例提供的一种显示界面的示意图;
图5为本申请实施例提供的另一种提示摄像头状态的方法的流程示意图;
图6为本申请实施例提供的另一种显示界面的示意图;
图7为本申请实施例提供的又一种提示摄像头状态的方法的流程示意图;
图8为本申请实施例提供的又一种显示界面的示意图;
图9为本申请实施例所提供的一种确定第一区域的方法的流程图;
图10为本申请实施例所提供的一种第一区域的示意图;
图11为本申请实施例所提供的又一种第一区域的示意图;
图12为本申请实施例所提供的一种检测摄像头的状态的方法的流程图;
图13为本申请实施例提供的又一种显示界面的示意图;
图14为本申请实施例所提供的一种关闭摄像头的方法的流程图;
图15为本申请实施例提供的又一种显示界面的局部放大图;
图16为本申请实施例提供的一种用户操作的示意图;
图17为本申请实施例提供的又一种显示界面的局部放大图;
图18为本申请实施例提供的又一种用户操作的示意图;
图19为本申请实施例提供的又一种显示界面的局部放大图;
图20为本申请实施例提供的又一种第一区域的示意图;
图21为本申请实施例提供的又一种第一区域的示意图;
图22为本申请实施例提供的又一种第一区域的示意图;
图23为本申请实施例提供的又一种第一区域的示意图;
图24为本申请实施例提供的又一种用户操作的示意图;
图25为本申请实施例提供的一种第一区域和第三区域的示意图;
图26为本申请实施例提供的又一种显示界面的局部放大图;
图27为本申请实施例所提供的一种电子设备的结构示意图。
具体实施方式
本申请实施例提供的提示摄像头状态的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
图1是本申请实施例提供的一例电子设备100的结构示意图。电子设备100可以包括处理器110、存储器120、通信模块130、显示屏140、摄像头150和传感器160等。
其中,处理器110可以包括一个或多个处理单元,存储器120用于存储程序代码和数据。在本申请实施例中,处理器110可执行存储器120存储的计算机执行指令,用于对电子设备100的动作进行控制管理。
通信模块130可以用于电子设备100的各个内部模块之间的通信、或者电子设备100和其他外部电子设备之间的通信等。示例性的,如果电子设备100通过有线连接的方式和其他电子设备通信,通信模块130可以包括接口等,例如USB接口,USB接口可以是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口可以用于连接充电器为电子设备100充电,也可以用于 电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
或者,通信模块130可以包括音频器件、射频电路、蓝牙芯片、无线保真(wireless fidelity,Wi-Fi)芯片、近距离无线通讯技术(near-field communication,NFC)模块等,可以通过多种不同的方式实现电子设备100与其他电子设备之间的交互。
显示屏140用于显示图像,视频等。在一些实施例中,电子设备100可以包括1个或N个显示屏140,N为大于1的正整数。
摄像头150用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头150,N为大于1的正整数。例如,当电子设备100为手机时,可以包括一个设置在显示屏140一侧的前置摄像头,以及多个设置在与显示屏140相背的一侧的多个后置摄像头。
其中,前置摄像头可以为当用户使用电子设备100时,与用户相对的一面所设置的摄像头。以电子设备100为手机为例,当用户使用手机时,设置有显示屏140的一面与用户相对,设置在该面内的摄像头即为前置摄像头,设置在与该面相背的一面的摄像头即为后置摄像头。
传感器160可以包括压力传感器、触摸传感器和光传感器。
压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏140。当有触摸操作作用于显示屏140,电子设备100根据压力传感器检测触摸操作强度。电子设备100也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏140,由触摸传感器与显示屏140组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏140提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏140所处的位置不同。
光传感器,可以用于感知环境光亮度,进而可以用于自适应调节屏幕亮度、在拍照时自动调节白平衡、检测是否有物体靠近等等。
可选地,电子设备100还可以包括外设设备(图中未示出),例如鼠标、键盘、扬声器、麦克风等。
应理解,除了图1中列举的各种部件或者模块之外,本申请实施例对电子设备100的结构不做具体限定。在本申请另一些实施例中,电子设备100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,电子设备100可以包括接入层、控制层和基础中间 层。
接入层可以用于向用户呈现各种各样的界面,并基于所呈现的界面与用户进行交互,包括设置界面中的控制开关,本申请实施例中第一区域和第三区域的位置选择,以及在第一区域和第三区域中的触控交互。
控制层可以用于对本申请实施例中的提示信号的显示或隐藏,以及与第一区域和第三区域的交互逻辑进行控制。
控制层又可分为前台和后台。
前台包括坐标控制模块、事件注册模块和摄像头控制模块。坐标控制模块可以用于根据电子设备中存储的屏幕切割区域(notch)参数以及TP参数,确定第一区域或第三区域的位置(如坐标)和尺寸。事件注册模块可以用于在应用程序框架(framework,图中未示出)注册与本申请实施例相关的各种事件,比如摄像头打开事件、触控滑动事件和摄像头感光变化事件等等。摄像头控制模块可以用于对摄像头的状态进行控制,包括开启或关闭等。
其中,屏幕切割区域可以是摄像头所在的区域,屏幕切割区域参数可以用于该指示屏幕切割区域的位置以及尺寸等。TP参数可以包括行数和列数,显示屏横向像素数除以列数即为显示屏的最小触控块的宽度,显示屏纵向像素数处于行数即为该最小触控块的高度。
后台包括位置匹配模块、事件监听模块、摄像头管理模块和通知管理模块。位置匹配模块可以根据前述坐标控制模块的计算结果,在显示屏中匹配确定第一区域或第三区域。事件监听模块可以用于监听前述事件注册模块所注册的各种事件,如摄像头打开事件和触控滑动事件等等。摄像头管理模块可以用于管理摄像头,如打开、关闭和前后台跳转等。通知管理模块可以用于进程或组件之间的消息通知,比如传递摄像头被打开的消息等等,也可以用于向用户通知某些信息。
基础中间层可以用于为前述接入层和控制层提供基础的硬件和软件支持。在一些实施例中,基础中间层可以包括华为移动服务(huawei mobile services,HMS)、窗口管理服务(window manager service,WMS)、活动组件管理服务(activity manager service,AMS)、应用程序包管理服务(package manage service,PMS)、结构化查询语言软件库(structured query language ite,SQLite)、广播(broadcast)服务和推送套件(push kit)中的一个或多个。
为了便于理解本申请施例中的技术方案,下面首先对本申请实施例的应用场景予以介绍。
电子设备中通常都设置有摄像头,用户可以通过相机等应用程序调用摄像头,从而拍摄图像,达到记录信息的目的。但目前电子设备中安装的应用程序的种类和数量越来越多,很多第三方的应用程序都可能会打开摄像头,并在用户不知情的情况下拍摄图像,这可能会侵犯用户隐私,因此需要对摄像头的状态进行提示,以便于用户感知该摄像头的状态。
在一些实施例中,电子设备对前置摄像头的提示方式可以如图3所示。请参照图3,电子设备的操作系统可以在相机框架注册针对前置摄像头的监听事件。当某个应用程序调用前置摄像头时,相机框架会监听到该调用事件并发出事件通知。操作系统捕 获到该通知时,在屏幕下方显示弹窗如图4所示,该弹窗包括“某应用请求打开前置摄像头”、禁止按钮和允许按钮,禁止按钮附近还显示有倒计时。如果电子设备基于禁止按钮接收到用户的点击操作,或者在该倒计时结束之前未接收到任何操作,则保持前置摄像头关闭。如果电子设备基于允许按钮接收到用户的点击操作,则打开前置摄像头。但如图4所示的这种提示方式为侵入式的提示,在该弹窗显示的过程中,用户只能在选择允许或禁止之后,才能够继续进行其他操作。
在一些实施例中,电子设备对前置摄像头的提示方式可以如图5所示。请参照图5,应用程序向相机框架请求打开前置摄像头,相机框架通知状态栏前置摄像头的调用状态为开,因此状态栏在显示屏显示黄色(图中示出为黑色)的光点如图6所示。相应的,相机框架在相机关闭时,可以通知状态栏前置摄像头的调用状态为关,因此状态栏将黄色的光点隐藏。对于用户来说,可以通过观察显示屏的右上角是否存在该光点,来判断摄像头是否处于打开状态。但这种提示方式不够明显,用户极有可能会忽略掉该光点,提示效果较差。另外,电子设备还通过显示屏的右上角的同一位置显示相同大小的另一颜色的光点,来表示另一种较为敏感的功能(如定位或录音)处于打开状态,这也会导致用户需要耗费时间和精力去记忆不同颜色的光点所表示的含义,学习成本较高。
为至少解决上述至少部分技术问题,本申请实施例提供了另一种提示摄像头状态的方法。
在本申请实施例中,电子设备可以在检测到第一摄像头处于打开状态时,通过显示屏中与第二区域相邻的第一区域显示第一提示信号。由于第二区域为第二摄像头所在的区域,那么当在第一区域显示第一提示信号时,用户可以很容易地将第一提示信号与摄像头相关联,从而确定第一提示信号所提示的内容为第一摄像头当前处于打开状态。与在显示屏下显示弹窗的方式相比,提示过程不会打断用户的其他操作,用户体验良好。与在显示屏右上角显示黄色光点的方式相比,能够更准确地提示用户当前是摄像头被调用,而不是定位或者录音等其他功能被调用,提示方式更为显著,也降低了用户的学习成本。
在一些实施例中,当用户在感知到第一提示信号时,可能会希望关闭第一摄像头,因此电子设备可以基于第一区域或额外的触控感知区域,快速关闭打开的第一摄像头,提供更好的隐私保护效果。
需要说明的是,本申请实施例可以被实现为一个应用程序(如摄像头提示程序)或者某个应用程序中的一个组件(如提示组件),下述电子设备所执行的与本申请实施例相关的操作,实际上可以由电子设备通过该提示程序或该提示组件来执行。
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
请参照图7,为本申请实施例所提供的一种提示摄像头状态的方法的流程图。需要说明的是,该方法并不以图7以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S701,电子设备打开摄像头提示功能。
本申请实施例提供的提示摄像头状态的方法,其目的是在摄像头打开时及时提示用户,以减少第三方应用程序程序恶意拍摄等隐私泄露的情况的发生,但在实际应用中,可能并不是所有的用户都希望被提示,而即便是同一用户在某些场景下也不希望被提示,因此电子设备可以向用户提供相应的配置接入口,以便于用户灵活地对是否提示摄像头状态以及提示方式的相关细节进行配置。
在一些实施例中,电子设备可以在接收用户提交的第一设置操作时,确定打开摄像头提示功能,那么便可以通过后续步骤来提示摄像头的状态。相应的,电子设备也可以在接收到第二设置操作时,确定关闭摄像头提示功能,那么无论摄像头的状态如何,都不再对用户进行提示,或者,至少不会再按照本申请实施例所提供的方式进行提示。
其中,第一设置操作和第二设置操作的操作类型可以由电子设备事先确定,本申请实施例对第一设置操作和第二设置操作的操作类型不做具体限定。
在一些实施例中,电子设备可以向用户提供系统配置页面如图8所示,该系统配置页面包括“摄像头调用提示”选项以及与该选项对应的开关。当电子设备基于该开关接收到用户的点击操作(即第一设置操作)时,可以打开摄像头提示功能,并将该开关切换至开的状态。当电子设备再次基于该开关接收到用户的点击操作(第二设置操作)时,关闭摄像头提示功能,并将该开关切换至关的状态。
需要说明的是,在实际应用中,电子设备也可以通过其他方式来确定开启或关闭摄像头提示功能,而并不仅限于如图8所示的方式,本申请实施例对电子设备确定开启或关闭摄像头提示功能的方式不做具体限定。
还需要说明的是,在一些实施例中,电子设备也可以不基于用户的配置来确定是否打开摄像头提示功能,比如电子设备可以基于相关技术人员预先设置的判断策略来判断是否打开摄像头提示功能。或者,在另一些实施例中,在任何时机,电子设备都可以按照本申请实施例所提供方式来提示用户摄像头的状态,而不需要再开启或关闭摄像头提示功能,也就不需要执行S701,即S701为可选的步骤。
S702,电子设备在显示屏确定第一区域。
电子设备可以设置有显示屏,当用户使用该电子设备时,该显示屏可以总是或者大部时间是面向用户的。该电子设备还可能会包括一个以上的摄像头,其中可以包括设置在电子设备的显示屏所在的平面(比如该显示屏一侧的面板或者该显示屏内的某个位置)的第二摄像头,还可以包括设置在电子设备任一位置(比如与该显示屏向背的一面)的第一摄像头。那么,当某一摄像头被调用而处于打开状态时,即可以在显示屏靠近第二摄像头的第一区域来发出提示信号,一方面便于用户感知到该提示信号,另一方面也便于用户将该提示信号与摄像头联系在一起,即更容易确定该提示信号是用于提示当前有摄像头出打开状态的。因此,为了便于后续在第一区域对用户进行提示,电子设备可以在显示屏确定第一区域。
其中,电子设备可以基于第二摄像头的位置,自动匹配确定第一区域;或者,也可以接收用户的相关操作来确定第一区域,即由用户手工确定第一区域;或者,电子设备可以先自动匹配确定第一区域,再基于用户的相关操作对第一区域进行精确调整,进而最终确定第一区域。
在一些实施例中,电子设备在显示屏确定第一区域的方式,可以如下图9所示。
在一些实施例中,第一区域和第二区域可以在同一平面内,从而使得在第一区域所所显示的提示信号与摄像头的关联性更强,提高提示效果。
在一些实施例中,第一区域可以与第二摄像头所在的第二区域相邻。
其中,第一区域与第二区域相邻,可以是指电子设备在至少一种使用形态时,第一区域和第二区域之间的距离小于或等于特定距离。需要说明的是,该特定距离的大小以及计算单位可以相关技术人员确定,以计算单位为像素为例,该特定距离可以是100至200之间的任意数值个像素,本申请实施例对该特定距离的大小不做具体限定。
以前述图8所示的电子设备为例,该电子设备只有一种使用形态,第二摄像头设置在显示屏内部,那么显示屏的区域都与第二摄像头所在的第二区域处于同一平面。或者,另一种电子设备为可折叠设备,当该电子设备处于折叠状态时可以如图10所示,显示屏的一部分显示区域与摄像头所处的第二区域1001处于同一平面,那么便可以在该部分显示区域确定第一区域1002,以用于提示摄像头状态。
在一些实施例中,如果第一区域与第二区域之间为显示屏的部分区域,则该部分区域不用于显示任何通知消息,也不包括任何用于与用户交互的对象(比如应用程序的图标)。如果第一区域与第二区域之间为电子设备的部分机身外壳,则该部分机身外壳上不包括任何外露的元器件,比如喇叭或麦克风等。当第一区域和第二区域越接近,且第一区域和第二区域包括的元器件、通知消息或图标等可能干扰用户感知的因素越少,在第一区域所显示的示信号与第二区域的摄像头的关联性也就越强,从而以使得用户能够更好地将提示信号与摄像头联系起来,提示效果也就越好。
在一些实施例中,第一区域可以包围第二区域,从而使得提示信号可以环绕第二摄像头,提高提示信号与摄像头的关联性。
其中,如果第二区域与第一区域不在同一平面内,则第一区域包围第二区域可以包括,第一区域包围第二区域在第一区域所在平面上的投影。
在一些实施例中,第一区域的形状可以与第二区域的形状为相似图形。
在一些实施例中,如图11所示,第二摄像头所在的区域为第二区域1001,第一区域1002与第二区域1001相邻。第一区域1002可以为圆形区域,如图11中的a和图11中的b;或者,第一区域1002可以为矩形区域,如图11中的c和图11中的d所示;或者,第一区域1002可以为扇形区域,如图11中的e所示。其中,与图11中的a相比,图11中的b中第一区域1002与第二区域1001之间没有公共边界,即第一区域1002与第二区域1001之间可以存在空隙,因此图11中的b中的第一区域1002又可称之为环形区域;相似的,与图11中的c相比,图11中的d中第一区域1002与第二区域1001之间也没有公共边界;与图11中的a、b、c和d相比,图11中的e中第一区域1001设置在第二区域1001的一侧而非包围第二区域1001。
当然,在实际应用中,为了美观和提高提示效果等目的,第一区域也可以是其他形状的区域。
需要说明的是,第一区域可以是包括棱角,也可以包括对该棱角进行倒角处理后的圆角。例如,第一区域可以是具有四个直角的矩形区域,也可以是具有四个圆角的矩形,其中,四个圆角是通过分别对四个直角进行倒角处理得到的。
需要说明的是,由于第一区域是基于第二摄像头所在的第二区域来确定的,对于同一电子设备,由于其第二摄像头的位置以及排布是固定的,即第二区域(形状、尺寸和位置)是固定的,那么第一区域可以是固定的;而对于不同的电子设备,由于其第二摄像头的位置不同,第二区域也不同,那么相应的第一区域可以不同,从而呈现出不同电子设备可以包括形态各异的第一区域。
在一些实施例中,为了对摄像头进行控制,比如关闭摄像头,电子设备还可以设置用于用户触控操作的第三区域。在一些实施例中,第三区域可以与第一区域是同一区域。在另一些实施例中,第一显示区域可以只用于显示提示信号,电子设备额外确定作为触控感知区的第三区域,第三区域可以与第一区域相邻。
需要说明的是,电子设备确定第三区域的方式可以与确定第一区域的方式相同或相似。
在一些实施例中,若第三区域与第一区域不为同一区域,则第一区域和第三区域可以在同一平面内。
在一些实施例中,若第三区域与第一区域不为同一区域,则第三区域可以包围第一区域。
在一些实施例中,第三区域的形状可以与第一区域的形状为相似图形。
需要说明的是,电子设备可以按照与确定第一区域相似的方式,确定第三区域,且所确定的第三区域的位置和尺寸,也可以因不同的电子设备而异,此处不再一一赘述。
在一些实施例中,第一摄像头和第二摄像头可以为设置在电子设备的显示屏所在的平面的同一摄像头,比如同一前置摄像头。在另一些实施例中,第一摄像头设置在与该显示屏向背的一面,即后置摄像头,第二摄像头为前置摄像头。
S703,电子设备检测摄像头的状态。
为了在摄像头处于打开状态时及时对用户进行提示,电子设备可以检测摄像头当前是处于开启状态还是关闭状态。
在一些实施例中,电子设备检测摄像头的状态的方式,可以如下图12所示。但需要说明的是,在实际应用中,电子设备检测摄像头的状态的方式,并不限于如图12所示的方式,本申请实施例对电子设备检测摄像头的状态的方式不做具体限定。
S704,电子设备若检测到摄像头处于打开状态,则在第一区域显示提示信号。
当电子设备确定了与摄像头关联性较强的第一区域,且检测到有摄像头处于打开状态,则可以及时在第一区域提示用户,使得用户能够更及时准确地感知摄像头被打开这一事件,也便于后续对摄像头进行相关的控制操作。
在一些实施例中,提示信号可以包括光信号、文字和图标中的至少一种。
其中,光信号可以具有色相、色调和明度等三种色彩属性。提示信号所包括的光信号的任一色彩属性可以是固定的,也可以是随提示时长而变化的。当该光信号的任一色彩属性可以随提示时长变化时,能够起到更好的提示效果。
在一些实施例中,该光信号的色相和色调可以不变,明度按照从低到高再到低的方式循环变化。在一些实施例中,该光信号的色调和明度可以不变,色相按照预设方式的循环变化。
在一些实施例中,文字和图标可以包括请求打开摄像头的应用标识,从而提示与摄像头状态相关的更多信息,比如指示打开摄像头的应用程序,进一步提高提示效果。
需要说明的是,在实际应用中,提示信号并不限于上述的光信号、文字和图标。电子设备也可以通过更多或更少类型的提示信号,来提示用户摄像头处于打开状态,比如,电子设备可以将当前显示屏待显示的画面在第一区域内的第二图像进行反相处理,得到第一图像,然后将第一图像作为提示信号在第一区域进行显示,本申请实施例对该提示信号的类型不做具体限定。
在一些实施例中,电子设备可以基于用户提交的第三设置操作,确定提示信号的类型。
例如,电子设备若基于前述图8所示的系统设置界面的开关接收到用户的点击操作,则可以显示提醒信号配置选项如图13所示。该提醒信号配置选项包括“显示光信号”、“显示应用名称”和“显示应用图标”等三个选项,每个选项对应设置有开关。对于任一选项,电子设备若基于任一选项对应的开关接收到用户的点击操作,则可以确定提示信号的类型包括该选项所指示的类型。
在一些实施例中,电子设备若检测到第一摄像头处于打开状态,则可以在第一区域显示第一提示信号。在一些实施例中,第一提示信号可以包括第一光信号和第一应用程序的应用标识中的至少一个,其中,第一应用程序为请求打开第一摄像头的应用程序。
相似的,电子设备若检测到第二摄像头处于打开状态,则可以在第一区域显示第三提示信号。在一些实施例中,第三提示信号可以包括第三光信号和第二应用程序的应用标识中的至少一个,其中,第二应用程序为请求打开第二摄像头的应用程序。
需要说明的是,若第一摄像头与第二摄像头为同一摄像头,则第三提示信号即为第一提示信号,或者可以理解为第三提示信号与第一提示信号相同。当然,无论第一摄像头与第二摄像头是否为同一摄像头,第三提示信号都可以与第一提示信号有所区别,也可以与第一提示信号相同,区别在于,若第一提示信号与第三提示信号相同,提示方式比较简洁,也能够降低对设备能力的要求;若第一提示信号和第三提示信号不同,则能够更加准确地提示用户当前是哪个摄像头处于打开状态。
S705,电子设备检测预设控制事件。
由于摄像头在打开时可能并未得到用户允许,或者,该摄像头可能是由用户误操作打开的,总之用户可能当前希望快速关闭该摄像头,因此,电子设备可以检测预设控制事件,该预设控制事件用于触发关闭摄像头。
在一些实施例中,预设控制事件可以包括与第一摄像头对应的第一预设控制事件和与第二摄像头对应的第二预设控制事件。其中,第一预设控制事件用于触发关闭第一摄像头,第二预设控制事件用于触发关闭第二摄像头。
在一些实施例中,第一预设控制事件可以包括第一触控事件和第一感光度下降事件。
第一触控事件可以为基于第三区域接收到第一触发操作的事件。
由前述可知,第一区域与摄像头的关联性较强,因而能够直观地显示用于提示摄像头打开的提示号,而第三区域为第一区域或者与第一区域相邻的触控感知区域,与 摄像头的关联性也很强,因此基于第一触控事件来控制摄像头,能够符合大多数用户的思维习惯,提高操作的便利性。
需要说明的是,第一触发操作的操作类型可以由电子设备事先确定。在一些实施例中,第一触发操作可以为沿第一方向滑动且至少部分滑动轨迹处于第三区域的滑动操作。
还需要说明的是,第一方向可以由电子设备事先确定。在一些实施例中,第一方向可以为由第三区域指向第二区域的方向。
第一感光度下降事件可以为基于第一摄像头检测到感光度下降的数值变化量大于或等于第一感光度阈值的事件,或者,第一感光度事件可以为基于第一摄像头检测到感光度下降且下降后的数值小于第二感光度阈值的事件。
需要说明的是,第一感光度阈值或第二感光度阈值可以由电子设备事先确定。
在一些实施例中,第二预设控制事件可以包括第一触控事件和第二感光度下降事件。
第二感光度下降事件可以为基于第二摄像头检测到感光度下降的数值变化量大于或等于第三感光度阈值的事件,或者,第二感光度事件可以为基于第二摄像头检测到感光度下降且下降后的数值小于第四感光度阈值的事件。
需要说明的是,第三感光度阈值或第四感光度阈值可以由电子设备事先确定。在一些实施例中,第三感光度阈值可以与第一感光度阈值相同,第四感光度阈值可以与第二感光度阈值相同。
还需要说明的是,若第一摄像头与第二摄像头为同一摄像头,则第二预设控制事件即为第一预设控制事件。
还需要说明的是,第一预设控制事件(或第二预设控制事件)的类型和数量可以是电子设备事先设置的。
在一些实施例中,电子设备可以在执行S705之前,注册预设控制事件。在一些实施例中,电子设备可以在确定第一摄像头处于打开状态之后,注册第一预设控制事件;在确定第二摄像头处于打开状态之后,注册第二预设控制事件。
其中,以注册第一预设控制事件为例,电子设备可以通过提示组件,从与触控相关的组件中注册第一触控事件,从与摄像头相关的组件(比如相机框架)中注册第一感光度下降事件。
S706,电子设备若检测到预设控制事件,则关闭处于打开状态的摄像头。
其中,电子设备可以通过相机驱动,控制摄像头关闭。在一些实施例中,电子设备若检测到第一预设控制事件,则可以关闭第一摄像头;若检测到第二预设控制事件,则可以关闭第二摄像头。
需要说明的是,由前述可知,电子设备可以事先设置第一预设控制事件(或第二预设控制事件)的类型或数量。因此,以第一预设控制事件为例,若事先设置的第一预设控制事件的数量多于一个,则电子设备可以在检测到其中部分第一预设控制事件(比如至少一个)时关闭处于打开状态的摄像头,也可以在检测到全部第一预设控制事件时关闭处于打开状态的摄像头。
在一些实施例中,电子设备可以按照预设的检测顺序来检测多个预设控制事件。 当检测到某个预设控制事件时,继续检测下一预设控制事件,直至检测完成并关闭对应的摄像头。如果并未检测到下一预设控制事件,则可以保持该摄像头处于打开状态。相应的,用户可以通过与预设的检测顺序相匹配的操作顺序,才可以关闭该摄像头,因而能够减少因误操作关闭摄像头的可能,提高控制摄像头的准确性。
在一些实施例中,电子设备关闭摄像头的方式,可以参照下述图14所示。
在一些实施例中,第一提示信号的显示时长可以为第一预设时长。电子设备若在第一预设时长内,未检测到指定的至少一个或者全部的第一预设控制事件,则可以确定保持第一摄像头开启。相似的,第三提示信号的显示时长可以为第二预设时长。电子设备若在第二预设时长内,未检测到指定的至少一个或者全部的第二预设控制事件,则可以确定保持第二摄像头开启。也即是,在电子设备发出第一提示信号之后的第一预设时长内,如果用户没有手动关闭第一摄像头,则该电子设备可以保持第一摄像头开启;或者,电子设备发出在第三提示信号之后的第二预设时长内,如果用户没有手动关闭第二摄像头,则该电子设备可以保持第二摄像头开启。
需要说明的是,第一预设时长或第二预设时长可以由电子设备事先确定。本申请实施例对确定第一预设时长和第二预设时长的方式以及第一预设时长和第二预设时长的大小,不做具体限定。
还需要说明的是,若第一摄像头与第二摄像头为同一摄像头,则第二预设时长即为第一预设时长。
在一些实施例中,若第一摄像头当前处于开启状态,且电子设备基于第三区域接收到第二触发操作,则可以保持第一摄像头开启。相似的,若第二摄像头当前处于开启状态,且该电子设备基于第三区域接收到第四触发操作,则可以保持第二摄像头开启。也即是,用户可以主动通过第二触发操作来保持第一摄像头开启,或者主动通过第四触发操作保持第二摄像头开启。
其中,第二触发操作或第四触发操作的操作类型可以由电子设备事先确定。以第二触发操作为例,在一些实施例中,第二触发操作可以为由第二区域指向第三区域的方向,且滑动轨迹的至少部分处于第三区域的滑动操作;在另一些实施例中,第二触发操作可以为由第三区域指向第一边缘,且至少部分滑动轨迹处于第三区域的滑动操作,第一边缘为显示屏最接近第三区域的边缘。
需要说明的是,若第一摄像头与第二摄像头为同一摄像头,则第四触发操作即为第二触发操作。
在一些实施例中,电子设备若在第一预设时长内,基于第三区域未检测到第二触发操作,则可以确定保持第一摄像头开启。相似的,若在第二预设时长内,基于第三区域未检测到第四触发操作,则可以确定保持第二摄像头开启。
在一些实施例中,电子设备若确定关闭第一摄像头(比如在第一预设时长内,基于第三区域接收到第一触发操作)或者确定保持打开第一摄像头(比如在第一预设时长内基于第三区域未接收到第一触发操作,或者接收到第二触发操作),即已经基于第一提示信号得到了用户的反馈,或者,虽然未得到用户反馈但已经充分起到了提示的作用,则可以停止显示第一提示信号,或者也可以理解为隐藏第一提示信号;相似的,该电子设备若关闭第二摄像头或确定保持打开第二摄像头,则可以停止显示第三提示 信号。
在一些实施例中,电子设备若确定保持第一摄像头开启,则可以停止在第一区域显示第一提示信号并第一区域显示第二提示信号,即将在第一区域显示的第一提示信号更新为第二提示信号。相似的,该电子设备若确定保持第二摄像头开启,则可以停止在第一区域显示第三提示信号并在第一区域显示第四提示信号,即将在第一区域显示的第三提示信号更新为第四提示信号。
其中,第二提示信号可以用于提示当前第一摄像头处于打开状态,且该打开状态是经过用户允许的;第四提示信号可以用于提示当前第二摄像头处于打开状态,且该打开状态是经过用户允许的。
需要说明的是,第二提示信号可以包括第二光信号,还可以包括第一应用程序的应用标识;第四提示信号可以包括第四光信号,还可以包括第二应用程序的应用标识。
在一些实施例中,第二光信号或第四光信号还可以提供补光功能。例如,第二光信号或第四光信号可以为白色的光信号。
在一些实施例中,若第一摄像头与第二摄像头为同一摄像头,则第四光信号即为第二光信号。当然,无论第一摄像头与第二摄像头是否为同一摄像头,第四提示信号都可以与第二提示信号有所区别,也可以与第二提示信号相同。
以图15所示电子设备为例。其中,第一摄像头与第二摄像头为位为第二区域1001的同一摄像头,第一区域1002与第三区域为同一区域,该电子设备在第一区域1002发出第一光信号。
若电子设备基于图15,接收到如图16所示的从位置1至位置2的滑动操作,其中,位置1处于第一区域1002外,位置2处于第一区域1002中。因此,电子设备可以确定检测到第一触控事件。但实际上由于用户在滑动至位置2时并未停止,而是继续滑动至处于第二区域1001中的位置3,当用户滑动至位置3时,会遮挡住位于第二区域1001的第一摄像头,第一摄像头所检测到的感光度会降低,所以电子设备还会检测到第一感光度下降事件。当电子设备检测到第一触控事件和第一感光度下降事件时,即可以关闭第一摄像头,并停止在第一区域1002显示第一光信号,如图17所示。
需要说明的是,在图16中,用户是通过手指遮挡第一摄像头(即手势交互),从而使得第一摄像头检测到的感光度下降,在另一些实施例中,用户也可以通过将电子设备设置有第一摄像头的一面靠近障碍物来使得第一摄像头检测到的感光度下降,比如用户可以翻转电子设备从而使得第一摄像头倒扣在桌面上。
若电子设备基于图15,接收到如图18所示的从位置4至位置5的滑动操作,其中,位置4处于第一区域1002中,位置5处于第一区域1002外,为显示屏最靠近第一区域1002的边缘。因此电子设备可以保持第二区域1001中的第一摄像头开启。当电子设备保持第一摄像头开启时,可以停止在第一区域1002显示第一光信号,如图17所示,也可以将第一区域1002显示的第一光信号更新为第二光信号,如图19所示,从而通过第二光信号进行补光,提高第一摄像头的拍摄效果。
在一些实施例中,电子设备若基于第三区域接收到第五触发操作,则可以跳转至第一应用程序或第二应用程序。
需要说明的是,第五触发操作的类型可以由电子设备事先确定。在一些实施例中, 第五触发操作可以包括按压操作或双击操作。当然,在实际应用中,第五触发操作还可以是其他类型的操作,本申请实施例对第五触发操作的操作类型不做具体限定。
在本申请实施例中,电子设备可以在检测到第一摄像头处于打开状态时,通过显示屏中与第二区域相邻的第一区域显示第一提示信号。由于第二的区域为第二摄像头所在的区域,那么当在第一区域显示第一提示信号时,用户可以很容易地将第一提示信号与摄像头相关联,从而确定第一提示信号所提示的内容为第一摄像头当前处于打开状态。与在显示屏下显示弹窗的方式相比,提示过程不会打断用户的其他操作,用户体验良好。与在显示屏右上角显示黄色光点的方式相比,能够更准确地提示用户当前是摄像头被调用,而不是定位或者录音等其他功能被调用,提示方式更为显著,也降低了用户的学习成本。另外,当用户在感知到第一提示信号时,可能会希望关闭第一摄像头,因此电子设备可以基于第一区域或额外的触控感知区域,快速关闭打开的第一摄像头,提供更好的隐私保护效果。
请参照图9,为本申请实施例所提供的一种确定第一区域的方法的流程图。需要说明的是,该方法并不以图9以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S901,电子设备确定第二摄像头所在的第二区域。
在一些实施例中,第二摄像头设置在显示屏的边缘或内部,显示屏对应设置有用于安置第二摄像头的屏幕切割区域,该显示屏可以为“刘海屏”、“水滴屏”或“挖孔屏”等。电子设备中可以预先存储有屏幕切割区域参数,因此,电子设备可以获取该屏幕切割区域参数,基于该屏幕切割区域参数确定第二区域。
其中,屏幕切割区域参数可以用于指示屏幕切割区域。在一些实施例中,屏幕切割区域参数可以包括该屏幕切割区域的高度、宽度以及距离显示屏边缘的距离。在一些实施例中,屏幕切割区域参数可以包括该屏幕切割区域的边缘上多个像素点的坐标位置。需要说明的是,在实际应用中,屏幕切割区域参数可以根据屏幕切割区域的形状等因素确定,本申请实施例对屏幕切割区域参数的形式不做具体限定。
在一些实施例中,第二摄像头埋设在显示屏下方的内部空间。电子设备可以预选存储用于指示第二区域的区域参数,进而能够基于该区域参数确定第二区域,或者,电子设备可以检测用户在显示屏绘制的第二区域。
需要说明的是,对于任何一种第二摄像头设置在显示屏边缘或内部的电子设备,比如前述中“刘海屏”、“水滴屏”和“挖孔屏”以及不同于前述中“刘海屏”、“水滴屏”和“挖孔屏”的其他异形屏,该电子设备都可以通过检测用户在该显示屏绘制的方式来确定第二区域。
需要说明的是,在实际应用中,电子设备也可以不必执行S901来确定第二区域,而是直接执行后续步骤,比如在一些实施例中,第二摄像头设置在电子设备靠近显示屏一侧的面板上,第二区域不能根据屏幕切割区域来确定,因此S901为可选的步骤。
S902,电子设备确定显示屏的最小触控块尺寸。
为了便于通过该提示区域向用户显示信号,也便于通过该提示区域与用户进行交互,从而实现针对摄像头的其他操作,比如关闭等,提示区域的宽度可以基于显示屏 的最小触控块尺寸来确定。
其中,最小触控块可以为显示屏中能够清楚无疑义地接收用户触控操作的最小区域,该最小触控块的尺寸或者确定方式,可以由电子设备接收相关技术人员提交得到。在一些实施例中,电子设备可以获取存储的显示屏的TP行数和TP列数,该显示屏横向像素数除以TP列数所得到的数值即可以为最小触控块的宽度,该显示屏纵向像素数除以TP行数所得到的数值即可以为最小触控块的高度。在另一些实施例中,电子设备可以获取存储的最小触控块尺寸。
需要说明的是,S902可以为可选的步骤,那么在后续步骤中,电子设备可以通过其他方式来确定提示区域的尺寸。
S903,电子设备基于第二区域和最小触控块尺寸,确定第一区域。
由于第二区域为第二摄像头所在的区域,因此为了便于用户感知到提示信号并该提示信号与摄像头联系在一起,提高提示效果,可以将第一区域设置在与第二区域相邻的位置,即第二区域可以与用于确定第一区域的位置。另外,最小触控块可以用于确定第一区域的宽度。因此,基于第二区域和最小触控块尺寸,即可以确定第一区域。
可以理解的是,对于不同的电子设备,由于其第二摄像头的位置不同,第二区域也不同,那么相应的第一区域可以不同,从而呈现出不同电子设备可以包括形态各异的第一区域。
以图20所示的电子设备为例。该电子设备的显示屏为“挖孔屏”,第二摄像头设置在显示屏内部的第二区域1001。第二区域1001为矩形区域,以第二区域为中心,将第二区域1001的宽度向两端延长最小触控块1003的宽度,并将第二区域1001的高度向两端延长最小触控块1003的高度,即可得到同为矩形区域的第一区域1002。
再以图21所示的电子设备为例。该电子设备的显示屏为“刘海屏”,第二摄像头设置在显示屏边缘的第二区域1001。第二区域1001为矩形区域,以第二区域为中心,将第二区域1001的宽度向两端延长最小触控块1003的宽度,并将第二区域1001的高度向远离第二区域1001的一端延长最小触控块1003的高度,即可得到同为矩形区域的第一区域1002。
再以图22所示的电子设备为例。该电子设备的显示屏为异形屏,第二摄像头设置在显示屏边缘右上角的第二区域1001。第二区域1001的形状为不规则形状,第一区域1002可以为圆形。第一区域1002任一处的宽度可以大于或等于最小触控块1003的宽度,第一区域1002任一处的高度可以大于或等于最小触控块1003的高度。
再以图23所示的电子设备为例。第二摄像头设置在电子设备的前面板,并靠近显示屏顶部,所在的第二区域1001为圆形。第一区域1002可以为半圆形,且第一区域1002直线的一边与显示屏顶部重合。第一区域1002可以至少包括一个最小触控块1003。
在一些实施例中,若电子设备省略了S901,即并未确定第二区域,那么电子设备可以在显示屏显示第一边框,其中,第一边框的形状可以是预先设置的,第一边框的尺寸可以是基于最小触控块尺寸确定的。电子设备可以基于第一边框接收用户的第二拖动操作,基于第二拖动操作确定第一区域的位置。也即是,由用户手动设置第一区域的位置。
例如,对于前述图10所示的电子设备,电子设备在未执行S901的情况下,执行 S903时可以如图24所示。电子设备显示第一边框1004,其中,第一边框1004的位置是为显示屏中靠近第二摄像头所在的第二区域1001的一侧,第一边框1004的宽度为最小触控块1003的宽度,第一边框1004的高度为随机数值。电子设备基于第一边框1004接收用户的第二拖动操作重新确定第一边框1004的位置,最终得到如图10所示的第一区域1002。
在一些实施例中,若电子设备省略了S902,即未确定最小触控块尺寸,那么电子设备可以在显示屏显示第二边框,其中,第二边框的形状可以是预先设置的,第二边框的位置可以基于第二区域确定的,第二边框的尺寸可以是随机的尺寸或者预设的尺寸。且在另一些实施例中,电子设备还可以基于第二边框接收用户第二缩放操作,将第二缩放操作缩放后的尺寸确定为第一区域的尺寸。最小触控块尺寸可以被代替为随机的尺寸或预设的尺寸。也即是,由用户手动设置第一区域的尺寸。
在一些实施例中,若电子设备既未执行S901也未执行S902,则可以在显示屏显示第三边框,其中,第三边框的形状可以是预先设置的,第一边框的位置和尺寸都可以是随机的数值或者预设的数值。电子设备可以基于第三边框接收用户的第二拖动操作,基于第二拖动操作确定第一区域的位置;基于第三边框接收用户第二缩放操作,将第二缩放操作缩放后的尺寸确定为第一区域的尺寸。也即是,由用户手动设置第一区域的位置和尺寸,便于在难以自动匹配得到第一区域的情况下,也能够确定第一区域,提高确定第一区域的可靠性。
通过前述S901-S903,电子设备可以通过自动适配,确定第一区域,但在实际应用中,电子设备种类繁多,自动适配所得到的第一区域可能不能完美地与该电子设备的第二区域相匹配,因此,为了提高第一区域的准确性,只要第一区域的位置和尺寸中的至少一个是通过自动适配得到的,电子设备还可以执行下述可选的步骤S904,以使得用户手动对自动适配得到的第一区域进行精确调整。
S904,电子设备基于接收到的第一更新操作,对第一区域进行更新。
其中,第一更新操作用于对第一区域的位置和尺寸中的至少一个进行更新。
在一些实施例中,第一更新操作为对第一区域的第一拖动操作,电子设备可以基于第一拖动操作结束更新第一区域的位置。
在一些实施例中,第一更新操作为对第一区域的第一缩放操作,电子设备可以基于第一缩放操作更新第一区域的尺寸。
在一些实施例中,如果第三区域与第一区域不为同一区域,电子设备还可以按照与S901-S904相似的方式,确定第三区域。
例如,若如前述图15所示的电子设备还确定了不同于第一区域的触控感知区作为第三区域,则可以如图25所示。与图15相比,图25中还包括第三区域1005,且第三区域1005包围第一区域1002和第二区域1001,该电子设备在第一区域1002显示提示信号,如图26所示。其中,在图15所示的显示方式中,第一区域1002既可以用于显示提示信号,还可以用于后续接收用户的相关操作来控制处于打开状态的摄像头。而在图26所示的显示方式中,第一区域1002可以只用于显示提示信号,第一区域1002之外的第三区域1005可以用于后续接收用户的相关操作来控制处于打开状态的摄像头,便于用户操作。
在一些实施例中,若第三区域与第一区域不为同一区域,则第一区域的尺寸可以不必受最小触控块尺寸的限制。
在本申请实施例中,电子设备可以确定第二摄像头所在的第二区域以及显示屏的最小触控块尺寸,并基于第二区域和最小触控块尺寸,自动匹配得到第一区域,提高了确定第一区域的效率。另外,电子设备还可以基于第一更新操作,对自动匹配的第一区域进行更新调整,使得用户能够手动调整通过自动匹配得到的第一区域,提高了第一区域的准确性。
请参照图12,为本申请实施例所提供的一种检测摄像头的状态的方法的流程图,电子设备可以通过提示组件、相机框架和相机驱动之间的交互来完成摄像头状态的检测。需要说明的是,该方法并不以图12以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S1201,提示组件向相机框架注册摄像头监听事件。
其中,摄像头监听事件可以用于从相机框架感知摄像头打开事件。
电子设备可以通过提示组件向相机框架发送事件注册消息,该事件注册消息中携带注册的事件类型。当相机框架接收到该事件注册消息时,即可基于该事件注册消息,注册该事件类型的事件。
S1202,相机驱动向相机框架发送摄像头调用中断消息。
其中,摄像头调用中断消息用于通知相机框架开始打开摄像头,包括打开第一摄像头或第二摄像头。
在一些实施例中,当某个应用程序需要调用摄像头时,电子设备可以通过该应用程序向相机驱动发送摄像头打开指令,相应的,电子设备若通过相机驱动接收到该摄像头打开指令,则可以向相机框架发送摄像头调用中断消息,并打开摄像头。
在一些实施例中,电子设备还可以通过相机驱动向相机框架通知请求打开摄像头的应用程序的应用标识。
其中,应用标识可以用于识别应用程序。在一些实施例中,该应用标识可以包括该应用程序的应用程序包名、应用程序名称、对应进程的进程ID和图标中的至少一个。当然,在实际应用中,该应用标识也可以包括其他能够用于识别应用程序的信息,本申请实施例对该应用标识的类型不做具体限定。
需要说明的是,电子设备可以通过相机驱动将调用摄像头的应用程序的应用标识,携带在调用中断消息中,也可以通过相机驱动单独向相机框架发送该应用标识。本申请实施例对电子设备通过相机驱动通知提相机框架该应用标识的方式不做具体限定。
S1203,相机框架向提示组件发送摄像头调用消息。
其中,调用消息可以用于指示摄像头被调用并处于打开状态,相应的,若电子设备通过提示组件检测到该调用消息,则可以确定摄像头当前处于打开状态。
在一些实施例中,电子设备还可以相机框架通知提示组件调用摄像头的应用程序的应用标识。
需要说明的是,电子设备可以通过相机框架将调用摄像头的应用程序的应用标识,携带在调用消息中,也可以通过相机框架单独向提示组件发送该应用标识。本申请实 施例对电子设备通过相机框架通知提示组件该应用标识的方式不做具体限定。
在一些实施例中,电子设备可以通过相机框架向提示组件发送第一调用消息,第一调用消息用于指示第一摄像头当前被调用并处于打开状态,相应的,若电子设备通过提示组件检测到第一调用消息,则可以确定第一摄像头当前被调用并处于打开状态。
在一些实施例中,电子设备可以通过相机框架向提示组件发送请求打开第一摄像头的应用程序的应用标识。
相似的,电子设备可以通过相机框架向提示组件发送第二调用消息,第二调用消息用于指示第二摄像头当前被调用并处于打开状态,相应的,若电子设备通过提示组件检测到第二调用消息,则可以确定第二摄像头当前被调用并处于打开状态。另外,电子设备可以通过相机框架向提示组件发送请求打开第二摄像头的应用程序的应用标识。
需要说明的是,若第一摄像头和第二摄像头为同一摄像头,则第二调用消息即为第一调用消息。
在本申请实施例中,电子设备可以通过注册摄像头监听事件的方式,从相机框架感知被打开的摄像头以及打开该摄像头的应用程序,便于及时对用户进行提示。
请参照图14,为本申请实施例所提供的一种电子设备关闭摄像头的方法的流程图。需要说明的是,该方法并不以图14以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。还需要说明的是,图14提供了在检测第一预设控制事件情况下关闭第一摄像头的方法。其中,第一预设控制事件包括第一触控事件和第一感光度下降事件,第一摄像头和第二摄像头为同一摄像头,比如前置摄像头。该方法包括如下步骤:
S1401,电子设备检测第一触控事件。
电子设备可以检测用户的任一触控操作在显示屏上的位置以及操作类型,如果该触控操作是基于第三区域接收到第一触发操作,如果是则可以确定检测到第一触控事件。
S1402,电子设备若检测到第一触控事件,则检测第一感光度下降事件。
电子设备可以基于第一摄像头检测当前的感光度,将检测到的感光度与第一感光度阈值或第二感光度阈值进行比较。在一些实施例中,若检测到的感光度下降且下降的数值变化量大于或等于第一感光度阈值,则可以确定检测到第一感光度下降事件。在一些实施例中,若检测到的感光度下降且下降后的数值小于第二感光度阈值,则可以确定检测到第一感光度下降事件。
S1403,电子设备若检测到第一感光度下降事件,则关闭第一摄像头。
由于已经检测到第一触控事件和第一感光度下降事件,因此可以关闭第一摄像头。
在本申请实施例中,在第一摄像头处于打开状态的情况下,可以依次检测第一触控事件和第一感光度下降事件,并在检测到第一触控事件和第一感光度下降事件时,关闭第一摄像头。由前述可知,第一触控操作可以为沿由第三区域指向第二区域的方向滑动,且至少部分滑动轨迹处于第三区域的滑动操作,而第一摄像头和第二摄像头为同一处于第二区域的摄像头,那么用户可以先按照由第三区域指向第二区域的方向 开始滑动,触发第一触控事件,在滑动过程中逐渐接近并遮挡第一摄像头,进而使得第一摄像头的感光度降低,触发第一感光度下降事件。电子设备按照时间顺序,先在检测到第一摄像头打开时在第一区域显示第一提示信号(第一个条件),之后再依次检测第一触控事件(第二个条件)和第一感光度下降事件(第三个条件)。当三个条件依次被满足时,电子设备可以关闭第一摄像头。一方面符合用户在感知到第一摄像头开启之后并关闭的操作逻辑,另一方面也减少了误操作的可能。
需要说明的是,本申请实施例仅以先检测第一触控事件再检测第一感光度下降事件的顺序,对电子设备关闭第一摄像头的情况进行说明,并不对检测预设控制事件的检测顺序构成限定。
另外,在前述实施例中,第一区域为显示屏中的部分区域,电子设备可以是通过绘制用户界面(user interface,UI)的方式显示提示信号,该提示信号是由第一区域内多个不同显示状态的像素叠加的结果。而在另一些实施例中,第一区域可以不是显示屏中的部分区域,而是包括至少一个灯光组件的区域,该灯光组件可以包括闪光灯或灯带模组,相应的,提示信号可以只包括光信号,电子设备不需要再进行UI绘制。在后续过程中,电子设备可以仅依据摄像头的感光度变化来确定是否关闭摄像头,而不需要再依赖用户的手势交互。
在一些实施例中,若灯光组件为灯带模组,则该灯带模组可以为环绕第二区域的环形灯带模组。
在一些实施例中,第一光信号可以是由电子设备通过控制第一区域中的闪光灯或灯带模组,按照第一功率输出的光信号。相似的,第三光信号可以是由电子设备通过控制第一区域中的闪光灯或灯带模组,按照第二功率输出的光信号。
其中,第一功率和第二功率可以灯光组件的额定功率或者预设的第一功率阈值,从而使得当灯光组件按照第一功率输出光信号时,可以被认为是处于低功率输出模式,也使得用户能够将第一光信号以及第三光信号,与其他情况下灯光模组发光的情况区别开,提高提示效果。
需要说明的是,若第一摄像头和第摄像头为同一摄像头,则第一功率和第二功率相同。当然,即使第一摄像头和第摄像头不为同一摄像头,第一功率和第二功率也可以相同。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
基于同一发明构思,本申请实施例还提供了一种电子设备。图27为本申请实施例提供的电子设备2700的结构示意图,如图27所示,本实施例提供的电子设备包括: 存储器2710和处理器2720,存储器2710用于存储计算机程序;处理器2720用于在调用计算机程序时执行上述方法实施例所述的方法。
本实施例提供的电子设备可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。
基于同一发明构思,本申请实施例还提供了一种芯片系统。该所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。
其中,该芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。
本申请实施例还提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行时实现上述方法实施例所述的方法。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (20)

  1. 一种提示摄像头状态的方法,其特征在于,包括:
    检测第一摄像头的状态;
    若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号,其中,所述第一区域与第二摄像头所在的第二区域相邻,所述第一提示信号用于提示当前所述第一摄像头处于打开状态。
  2. 根据权利要求1所述的方法,其特征在于,所述第一提示信号包括第一光信号。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一提示信号包括第一应用程序的应用标识,所述第一应用程序为请求打开所述第一摄像头的应用程序。
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述第一区域包围所述第二区域。
  5. 根据权利要求1-4任一所述的方法,其特征在于,在所述在显示屏的第一区域显示第一提示信号之前,还包括:
    基于预设的屏幕切割区域参数,确定所述第二区域;
    确定所述显示屏的最小触控块尺寸;
    基于所述第二区域和所述最小触控块尺寸,确定所述第一区域。
  6. 根据权利要求5所述的方法,其特征在于,还包括:
    基于对所述第一区域的第一拖动操作,更新所述第一区域的位置;和或,
    基于对所述第一区域的第一缩放操作,更新所述第一区域的尺寸。
  7. 根据权利要求1-6任一所述的方法,其特征在于,还包括:
    若基于第三区域接收到第一触发操作,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
  8. 根据权利要求1-6任一所述的方法,其特征在于,还包括:
    若基于第三区域接收到第一触发操作,并通过所述第一摄像头检测到感光度下降且下降的数值变化量大于或等于第一感光度阈值,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
  9. 根据权利要求1-6任一所述的方法,其特征在于,还包括:
    若基于第三区域接收到第一触发操作,并通过所述第一摄像头检测到感光度下降且下降后的数值小于第二感光度阈值,则关闭所述第一摄像头,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
  10. 根据权利要求7-9任一所述的方法,其特征在于,所述第一触发操作为由所述第三区域指向所述第二区域的方向,且滑动轨迹的至少部分处于所述第三区域的滑动操作。
  11. 根据权利要求1-10任一所述的方法,其特征在于,还包括:
    若基于第三区域接收到第二触发操作,则确定保持所述第一摄像头开启,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述第一提示信号的显示时长为第一预设时长。
  13. 根据权利要求12所述的方法,其特征在于,还包括:
    若在所述第一预设时长内,基于第三区域未接收到第一触发操作,则保持所述第一摄像头开启,所述第三区域为所述第一区域,或者,所述第三区域为与所述第一区域相邻的触控感知区域。
  14. 根据权利要求7-11和13任一所述的方法,其特征在于,所述第三区域为与所述第一区域相邻的触控感知区域,且所述第三区域包围所述第一区域。
  15. 根据权利要求1-14任一所述的方法,其特征在于,还包括:
    若确定保持所述第一摄像头开启,则将所述第一区域显示的第一光信号更新为第二光信号。
  16. 根据权利要求1-15任一所述的方法,其特征在于,所述若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号,包括:
    若检测到第一调用消息,则在所述显示屏的所述第一区域显示所述第一提示信号,所述第一调用消息用于指示所述第一摄像头当前被调用并处于打开状态。
  17. 根据权利要求1-16任一所述的方法,其特征在于,所述第一摄像头与所述第二摄像头为同一摄像头。
  18. 根据权利要求1-17任一所述的方法,其特征在于,在所述若检测到所述第一摄像头处于打开状态,则在显示屏的第一区域显示第一提示信号之前,还包括:
    接收第一设置操作,所述第一设置操作用于打开摄像头提示功能。
  19. 一种电子设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-18任一项所述的方法。
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-18任一项所述的方法。
PCT/CN2022/108373 2021-07-28 2022-07-27 提示摄像头状态的方法及电子设备 WO2023005999A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110859099.0A CN115695599A (zh) 2021-07-28 2021-07-28 提示摄像头状态的方法及电子设备
CN202110859099.0 2021-07-28

Publications (1)

Publication Number Publication Date
WO2023005999A1 true WO2023005999A1 (zh) 2023-02-02

Family

ID=85057741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/108373 WO2023005999A1 (zh) 2021-07-28 2022-07-27 提示摄像头状态的方法及电子设备

Country Status (2)

Country Link
CN (1) CN115695599A (zh)
WO (1) WO2023005999A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180052571A1 (en) * 2016-08-16 2018-02-22 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN108196722A (zh) * 2018-01-29 2018-06-22 广东欧珀移动通信有限公司 一种电子设备及其触控方法、计算机可读存储介质
WO2019000437A1 (zh) * 2017-06-30 2019-01-03 华为技术有限公司 显示图形用户界面的方法和移动终端
CN109190369A (zh) * 2018-08-31 2019-01-11 努比亚技术有限公司 一种摄像头控制方法、终端和计算机存储介质
CN109711148A (zh) * 2018-12-17 2019-05-03 深圳壹账通智能科技有限公司 应用程序行为的拦截方法、装置、计算机设备和存储介质
CN111131613A (zh) * 2019-12-25 2020-05-08 惠州Tcl移动通信有限公司 一种数据发送方法、装置、存储介质及移动终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180052571A1 (en) * 2016-08-16 2018-02-22 Lg Electronics Inc. Mobile terminal and method for controlling the same
WO2019000437A1 (zh) * 2017-06-30 2019-01-03 华为技术有限公司 显示图形用户界面的方法和移动终端
CN108196722A (zh) * 2018-01-29 2018-06-22 广东欧珀移动通信有限公司 一种电子设备及其触控方法、计算机可读存储介质
CN109190369A (zh) * 2018-08-31 2019-01-11 努比亚技术有限公司 一种摄像头控制方法、终端和计算机存储介质
CN109711148A (zh) * 2018-12-17 2019-05-03 深圳壹账通智能科技有限公司 应用程序行为的拦截方法、装置、计算机设备和存储介质
CN111131613A (zh) * 2019-12-25 2020-05-08 惠州Tcl移动通信有限公司 一种数据发送方法、装置、存储介质及移动终端

Also Published As

Publication number Publication date
CN115695599A (zh) 2023-02-03

Similar Documents

Publication Publication Date Title
US11307733B2 (en) Always on display method and electronic device
US10739854B2 (en) Terminal and touch response method and device
US10564833B2 (en) Method and apparatus for controlling devices
EP3113001A1 (en) Method and apparatus for displaying information
WO2020063091A1 (zh) 一种图片处理方法及终端设备
WO2019174465A1 (zh) 用户界面显示方法、装置、终端及存储介质
CN108024009B (zh) 一种电子设备及其方法
CN106998377A (zh) 终端设备
RU2637884C2 (ru) Способ и устройство для отображения метки на пиктограмме
EP3726514B1 (en) Display control method for terminal screen, device and storage medium thereof
JP6220076B2 (ja) 遅延撮影方法、装置、プログラム、及び記録媒体
US9116618B2 (en) Terminal having touch screen and method for displaying key on terminal
EP3232301B1 (en) Mobile terminal and virtual key processing method
US20220244846A1 (en) User Interface Display Method and Electronic Device
KR20150095536A (ko) 사용자 단말 장치 및 이의 디스플레이 방법
CN110413148B (zh) 防误触检测方法、装置、设备以及存储介质
WO2022206130A1 (zh) 一种控制应用程序限时使用的方法及电子设备
JP2017525076A (ja) キャラクタ特定方法、装置、プログラムおよび記録媒体
CN112905136A (zh) 投屏控制方法、装置以及存储介质
CN109670507A (zh) 图片处理方法、装置及移动终端
CN105335061A (zh) 信息的显示方法、装置及终端
CN110865765A (zh) 终端及地图控制方法
US9641737B2 (en) Method and device for time-delay photographing
CN110162249A (zh) 一种控制应用程序图标的方法及装置、设备和存储介质
CN113010056A (zh) 桌面显示控制方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22848604

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE