CN117857910A - Camera protection method, program and electronic device - Google Patents

Camera protection method, program and electronic device Download PDF

Info

Publication number
CN117857910A
CN117857910A CN202410175278.6A CN202410175278A CN117857910A CN 117857910 A CN117857910 A CN 117857910A CN 202410175278 A CN202410175278 A CN 202410175278A CN 117857910 A CN117857910 A CN 117857910A
Authority
CN
China
Prior art keywords
camera
ambient light
iris diaphragm
time
light intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410175278.6A
Other languages
Chinese (zh)
Inventor
彭林志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202410175278.6A priority Critical patent/CN117857910A/en
Publication of CN117857910A publication Critical patent/CN117857910A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application provides a camera protection method, a program and electronic equipment. The method is applied to the electronic equipment, and the electronic equipment comprises the following steps: a camera and an ambient light sensor; the camera comprises a variable aperture; the camera and the ambient light sensor are arranged on the first side surface of the electronic device; at a first moment, the ambient light intensity detected by the ambient light sensor is a first ambient light intensity, and the iris diaphragm is in an open state; the method comprises the following steps: the second moment, the iris diaphragm is controlled to be closed; the ambient light intensity detected by the ambient light sensor at the second moment is a second ambient light intensity; the second ambient light intensity is greater than the first ambient light intensity; the second time is later than the first time; the iris diaphragm is in an open state after the first time and before the second time. The technical scheme provided by the embodiment of the application can reduce the probability of burn of the camera.

Description

Camera protection method, program and electronic device
Technical Field
The application relates to the technical field of terminal application, in particular to a camera protection method, a program and electronic equipment.
Background
With the continuous development of photographing technology and the wide use of electronic devices, the photographing function of electronic devices is becoming more popular.
The electronic equipment is provided with a camera module; the camera module includes: an image sensor. The materials of existing image sensors often consist of organic materials, semiconductor materials, and metallic materials. When an image sensor is exposed to intense light or laser light, its pixel cells tend to be damaged, especially micro lenses and color filters (color filters) composed of organic materials, which are very vulnerable to intense light damage. When the microlenses and color filters are damaged, bright spots or white spots may appear which appear as noticeable noise or white spots in the image. In addition, as the micro lens has a converging function on light rays, strong light or laser light incident into the image sensor can be further converged and concentrated, under the condition of enough intensity, even semiconductor materials or metal circuits on the lower layer of the color filter can be damaged, so that the problems of color belts, broken wires and even incapability of drawing of the image sensor are caused.
The scenes in which visible light laser frequently appears in daily life are as follows: laser shows of cities during bars and holidays, etc., in which abnormal lines occur in a camera of a mobile phone due to strong light or laser irradiation. In addition, more and more intelligent automobiles are equipped with laser radars, the laser radars can continuously emit infrared laser, and when the intensity is too high, the problem of burning of cameras in urban roads or ground libraries, especially cameras without infrared filters, can be caused.
Disclosure of Invention
Aspects of the present application provide a camera protection method, program, and electronic device for reducing the probability of a camera being burned.
In a first aspect, an embodiment of the present application provides a method for protecting a camera, which is applied to an electronic device, where the electronic device includes: a camera and an ambient light sensor; the camera comprises a variable aperture; the camera and the ambient light sensor are arranged on the first side surface of the electronic device; at a first moment, the ambient light intensity detected by the ambient light sensor is a first ambient light intensity, and the iris diaphragm is in an open state; the method comprises the following steps:
the second moment, the iris diaphragm is controlled to be closed;
the ambient light intensity detected by the ambient light sensor at the second moment is a second ambient light intensity; the second ambient light intensity is greater than the first ambient light intensity; the second time is later than the first time; the iris diaphragm is in an open state after the first time and before the second time.
Optionally, the camera and the ambient light sensor are arranged close to each other, or a distance between the camera and the ambient light sensor is smaller than a first preset distance. The size of the first preset distance may be set according to practical situations, which is not specifically limited in the embodiment of the present application. By this arrangement, the intensity of the ambient light detected by the ambient light sensor can be used to represent the intensity of illumination impinging on the camera.
The iris diaphragm has two states, a closed state and an open state. When in a closed state, the aperture size of the iris diaphragm is zero, and the light inlet quantity is zero; in the open state, the aperture size of the iris diaphragm is larger than zero, and the light inlet quantity is larger than zero. Wherein, when the iris diaphragm is in an open state, the aperture size of the iris diaphragm can be adjusted in multiple steps (for example, the iris diaphragm is switched between a plurality of preset aperture sizes) or continuously.
That is, when the camera is irradiated with strong light, the variable aperture is controlled to be closed. Therefore, the image sensor in the camera can be prevented from being burnt by strong light, and the camera is protected.
In an implementation manner provided in the first aspect, the camera is in a use state between the first time and the second time;
the method further comprises the steps of:
and after the iris diaphragm is controlled to be closed, displaying first prompt information for prompting the reason of closing the iris diaphragm.
Optionally, in response to closing of the iris diaphragm, first prompt information for prompting a cause of closing of the iris diaphragm is displayed.
That is, after the iris diaphragm is controlled to be closed during the shooting process of the user by using the camera, the user is informed of the reason of abnormal closing of the iris diaphragm by the prompt information.
In an implementation manner provided in the first aspect, between the first time and the second time, the electronic device displays a camera shooting interface;
after the iris diaphragm is controlled to be closed, first prompt information for prompting the reason of closing the iris diaphragm is displayed, and the method comprises the following steps:
after the iris diaphragm is controlled to be closed, popup a popup window on the shooting interface of the camera; the popup window is internally provided with the first prompt message.
That is, the first prompt message is displayed through the popup window.
In an implementation manner provided in the first aspect, the controlling the variable aperture to close at the second moment includes:
and at a second moment, controlling the iris diaphragm to be closed based on the fact that the second ambient light intensity is larger than or equal to a first preset intensity threshold.
That is, when the ambient light intensity detected by the ambient light sensor is greater than or equal to the first preset intensity threshold, the camera is considered to be irradiated with strong light, and thus, it is necessary to control the variable aperture to be closed.
In an embodiment of the first aspect, at a third moment in time, the ambient light intensity detected by the ambient light sensor is a third ambient light intensity;
the method further comprises the steps of:
The third moment, based on the third ambient light intensity being smaller than a second preset intensity threshold, controlling the iris diaphragm to be opened;
the third time is later than the second time; the iris diaphragm is in a closed state after the second moment and before the third moment.
That is, after the iris is closed due to the camera being irradiated with strong light, the iris is opened again when the camera is no longer irradiated with strong light after the user takes a camera protection measure (e.g., adjusts a photographing angle).
Optionally, the first preset intensity threshold is equal to the second preset intensity threshold. Optionally, the first preset intensity threshold is greater than the second preset intensity threshold.
In an implementation manner provided in the first aspect, the controlling, at the third moment, the variable aperture to open based on the third ambient light intensity being less than a second preset intensity threshold includes:
and at the third moment, controlling the iris diaphragm to be opened based on the fact that the third ambient light intensity is smaller than a second preset intensity threshold and the camera is in a use state.
In an embodiment of the first aspect, at a fourth time, the ambient light intensity detected by the ambient light sensor is a fourth ambient light intensity;
The method further comprises the steps of:
the fourth moment, based on the fourth ambient light intensity being greater than or equal to the second preset intensity threshold and less than the first preset intensity threshold, displays second prompt information for prompting the camera to be irradiated by strong light;
the fourth time is later than the third time; the iris diaphragm is in an open state after the third time and before the fourth time.
That is, when the iris diaphragm is in an open state, the ambient light intensity detected by the ambient light sensor is between the second preset intensity threshold and the second preset intensity threshold, the iris diaphragm is not closed, and the camera is prompted to be irradiated by strong light, so that the user takes corresponding camera protection measures.
In an embodiment of the first aspect, when the camera is in an unused state, the iris diaphragm is in a closed state.
In an embodiment provided in the first aspect, the method further includes:
and at a fifth moment, opening the iris diaphragm based on the operation of opening the camera.
In an implementation manner provided in the first aspect, at a fifth moment, based on an operation of opening the camera, opening the iris includes:
And at a fifth moment, opening the iris diaphragm and displaying a camera shooting interface based on a starting operation of a camera application on the electronic equipment.
In an implementation manner provided in the first aspect, at the fifth moment, the ambient light sensor detected by the ambient light sensor is a fifth ambient light intensity;
a fifth time, based on an operation of opening the camera, of opening the iris diaphragm, including:
and at a fifth moment, opening the iris diaphragm based on the operation of opening the camera and the fifth ambient light intensity being smaller than a first preset intensity threshold.
That is, when the user turns on the camera, it is necessary to determine whether the current camera is irradiated with strong light, and if the camera is not irradiated with strong light, the iris is opened.
In an embodiment of the first aspect, at a sixth moment, the ambient light sensor detected by the ambient light sensor is a sixth ambient light intensity; the method further comprises the steps of:
and at a sixth moment, displaying third prompt information for prompting the reason why the iris diaphragm cannot be opened based on the operation of starting the camera and the fact that the sixth ambient light intensity is greater than or equal to a first preset intensity threshold.
That is, when the user turns on the camera, it is necessary to determine whether the current camera is irradiated with strong light, and if the camera is irradiated with strong light, the iris is not opened and the user is prompted for the reason that the iris cannot be opened.
In a second aspect, embodiments of the present application provide a computer program, which when executed by an electronic device, implements a method as described in any of the above.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, wherein,
the memory is used for storing programs;
the processor is coupled to the memory for executing the program stored in the memory to implement the method of any one of the above.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a system architecture diagram according to an embodiment of the present application;
FIG. 4 is a schematic view showing a state of a variable aperture when a camera according to an embodiment of the present disclosure is in an unused state;
FIG. 5 is a diagram showing an example of a variation of the iris diaphragm according to an embodiment of the present application;
FIG. 6 is a set of interface diagrams according to one embodiment of the present application;
FIG. 7 is a schematic diagram of an interface provided in an embodiment of the present application;
fig. 8 is a flowchart of a camera protection method according to an embodiment of the present application;
fig. 9a is a second flowchart of a camera protection method according to an embodiment of the present application;
fig. 9b is a flowchart illustrating a method for protecting a camera according to an embodiment of the present application;
FIG. 10 is a diagram showing an example of a variation of the iris diaphragm according to an embodiment of the present application;
FIG. 11 is a diagram of a variation example of an iris diaphragm according to an embodiment of the present application;
fig. 12 is a flowchart of a camera protection method according to an embodiment of the present application;
fig. 13 is a flowchart of a camera protection method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first," "second," "third," and the like, are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", or a third "may explicitly or implicitly include one or more such feature.
The method for protecting the camera provided in the embodiment of the present application may be applied to an electronic device including a camera 101 and an ambient light sensor 102 as shown in fig. 1, where the camera 101 includes: iris diaphragm and image sensor. Optionally, the camera 101 and the ambient light sensor 102 are arranged on the same side of the electronic device. Illustratively, the camera 101 and the ambient light sensor 102 are disposed on the same side of the electronic device and are disposed proximate thereto.
The iris diaphragm is an important component of a camera (or called a camera module), and is a technology capable of adjusting the light inlet quantity of a camera lens. The aperture size of the iris diaphragm can realize multi-gear switching or continuous switching through a mechanical structure. Illustratively, the iris diaphragm varies the diaphragm aperture size of the lens by a set of rotatable or movable blades. When the iris diaphragm in the embodiment of the application is closed, the aperture of the diaphragm aperture is zero, and the light entering amount of the lens is zero.
The ambient light sensor is a sensor capable of sensing the intensity of ambient light, the working principle of the ambient light sensor is based on the photoelectric effect of a photosensitive element, light energy is converted into electric energy, corresponding voltage signals are output, and the intensity of the ambient light can be known by identifying the intensity of the voltage signals. Wherein the photosensitive element may comprise: photoresistors (Light-Dependent Resistor, LDR), photodiodes (photodiodes), etc.
The camera and the ambient light sensor are arranged close to each other, or the distance between the camera and the ambient light sensor is smaller than a first preset distance. The size of the first preset distance may be set according to practical situations, which is not specifically limited in the embodiment of the present application. By this arrangement, the intensity of the ambient light detected by the ambient light sensor can be used to represent the intensity of illumination impinging on the camera.
Taking the example that the first side of the electronic device is provided with a display screen, the first side of the electronic device is provided with a camera and an ambient light sensor, and/or the second side of the electronic device opposite to the first side is provided with a camera and an ambient light sensor. The camera arranged on the first side is called a front camera; the camera arranged on the second side is called a rear camera. The number of the front cameras can be one or more, and the number of the rear cameras can be one or more.
The electronic device may be a tablet computer, a mobile phone, a wearable device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a monitoring device, a camera, or the like. The embodiment of the application does not limit the specific type of the electronic equipment.
Fig. 2 shows a schematic structural diagram of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (FLED), a Mini Led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object is projected onto an image sensor (or photosensitive element) by generating an optical image through a lens. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music play, voice play, sound recording, etc.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
Fig. 3 is an internal block diagram of the electronic device 100 according to the embodiment of the present application. As shown in fig. 3, the electronic device 100 may include an SOC (System on Chip), a camera, an ambient light sensor, and the like. The SOC includes: a CPU and an intelligent Sensor Hub (Sensor Hub) in communication with the CPU. The software system of the CPU may adopt a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of a CPU of the electronic device 100 is illustrated.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a hardware abstraction layer (Hardware Abstract Layer, HAL), and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The hardware abstraction layer at least comprises a camera hardware abstraction layer.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with a camera protection scenario.
The intelligent sensing hub judges whether the ambient light intensity detected by the ambient light sensor is larger than a preset intensity threshold value or not; when the ambient light intensity is greater than a preset intensity threshold, the intelligent sensing hub sends a notification for closing the iris diaphragm to the camera driver; the camera drive closes the iris in response to a notification to close the iris.
The following describes a camera protection method provided in the embodiment of the present application, taking an electronic device as an example of a mobile phone.
In one embodiment, as shown in fig. 4, the iris diaphragm is in a closed state when the camera on the phone is in an unused state (which can be understood as a state in which the user is not using the camera to take a picture or video).
That is, when the camera on the mobile phone is in the unused state, the iris diaphragm of the camera on the mobile phone is always in the closed state, so that the light incoming quantity of the camera is zero. That is, regardless of whether the camera is irradiated with strong light (e.g., strong light irradiation), there is no risk of being burned.
As shown in fig. 5 and 6, when the camera on the mobile phone is in an unused state, the iris diaphragm is in a closed state shown in fig. 5 (a); in response to the user clicking on the camera application icon on the desktop 601 of the mobile phone, the mobile phone starts the camera application, brings the camera into use, opens the iris diaphragm, brings the iris diaphragm into an open state as shown in fig. 5 (b), and displays the photographing interface 602 as shown in fig. 6 (b). The photographing interface 602 includes: an image preview area 6021 for displaying the image captured by the camera. When the camera is in use, the mobile phone closes the iris diaphragm when the camera is irradiated by strong light (for example, laser irradiation), so that the iris diaphragm enters a closed state shown in fig. 5 (c), and a photographing interface 603 shown in fig. 6 (c) is displayed. As shown in fig. 6 (c), the image preview area 6021 in the photographing interface 603 becomes a black area due to the closing of the iris. After the iris diaphragm is closed, when it is detected again that the camera is not irradiated with strong light, the iris diaphragm may be opened so that the iris diaphragm enters an open state shown in (d) of fig. 5, and a photographing interface 604 shown in (d) of fig. 6 is displayed.
Whether the camera is irradiated by strong light can be determined by judging whether the ambient light intensity currently detected by the ambient light sensor is greater than or equal to a preset intensity threshold (a first preset intensity threshold or a second preset intensity threshold). The preset intensity threshold may be determined experimentally or through simulation. The threshold value needs to be verified through experiments, and because different chips can bear inconsistent laser intensity capability, the threshold value needs to be known through experiments or simulation. For example: the camera and the ambient light sensor can be irradiated by lasers with different powers, and a preset intensity threshold is determined according to whether the camera is damaged or not.
Alternatively, in response to the user clicking on the camera application icon on the cell phone desktop 601, it may be determined whether the current camera is illuminated by intense light. In one embodiment, if the current camera is illuminated by intense light, the camera application is not started. In addition, a prompt message for prompting the reason why the camera application cannot be started may be displayed. The hint information may also include camera protection advice. In another embodiment, if the current camera is illuminated with intense light, the camera application is started but the iris diaphragm is not opened. In addition, a prompt message (i.e., the third prompt message above) for prompting the reason why the iris diaphragm cannot be opened may also be displayed, and the prompt message may further include a camera protection suggestion.
Optionally, as shown in fig. 6 (c), while the iris diaphragm is closed, a prompt message (i.e., the first prompt message above) for prompting the reason for closing the iris diaphragm may also be displayed, and the prompt message may further include a camera protection suggestion. For example, as shown in fig. 6 (c), the prompt message may be "the camera is irradiated by strong light, is easy to be damaged, is adjusted to a safe shooting angle, and the aperture is automatically closed". Specifically, a pop-up window may be popped up on the camera shooting interface 603, and a prompt message may be displayed in the pop-up window.
Optionally, when the camera is illuminated by strong light, the mobile phone may close the camera application; in response to the closing of the camera application (i.e., the camera enters an unused state), the iris diaphragm is closed, displaying a cell phone desktop 701 as shown in fig. 7.
Optionally, as shown in fig. 7, when the camera application is turned off, a prompt message may also be displayed, where the prompt message is used to prompt the reason why the camera is turned off and the camera protection suggestion. For example, as shown in fig. 7, the prompt message may be "the camera is irradiated by strong light, is easy to be damaged, is required to be adjusted to a safe shooting angle, and the camera is automatically turned off".
In addition to providing the prompt information to the user through the form of interface display, the prompt information may be provided to the user through other modes (for example, a form of voice broadcasting) or a combination of modes, which is not particularly limited in the embodiment of the present application. Optionally, the prompt message displayed on the interface may be configured with a preset display duration, and when the display duration of the prompt message on the interface reaches the preset display duration, the prompt message is deleted on the interface, so that the prompt message disappears from the interface. Optionally, the prompt information and the deletion control are displayed in an associated mode on the interface; and deleting the prompt information on the interface in response to the triggering operation of the deleting control.
In the above embodiment, when the camera is in the unused state, the mobile phone does not need to determine whether the camera is irradiated by strong light because the iris diaphragm is in the closed state. Only when the camera application icon is clicked and the camera is in a use state, the mobile phone needs to judge whether the camera is irradiated by strong light.
In another embodiment, the closed state and the open state of the iris diaphragm are independent of the state of use of the camera. That is, whether the camera is in a use state or a non-use state, the mobile phone can judge whether the camera is irradiated by strong light in real time; if the camera is not irradiated by strong light, the iris diaphragm enters an open state shown in (a) of fig. 10; if the camera is irradiated with strong light, the iris diaphragm is brought into a closed state as shown in fig. 10 (b), for example.
In practical applications, strong light illumination scenes are not always present, that is, in this embodiment, when the camera on the mobile phone is in an unused state, the iris is in an open state most of the time.
It should be noted that, in the process that the camera is in the non-use state (i.e., the non-use state), the iris diaphragm is closed due to the strong light irradiation, so that the camera is not perceived by the user, and the user may not need to be provided with prompt information for prompting the reason for closing the iris diaphragm.
In the above embodiments, when the camera is irradiated by strong light, the mobile phone automatically closes (or closes) the iris diaphragm.
In yet another embodiment, when the camera is illuminated by strong light, the mobile phone may display a prompt (i.e., the second prompt above) for prompting that the camera is illuminated by strong light. After the user sees the prompt information, the camera can be protected by adopting corresponding measures, for example: placing the phone in a pocket, moving the phone to a safe area, adjusting the phone to a safe shooting angle, etc. Optionally, the prompt information may further include a camera protection suggestion. In this embodiment, the mobile phone does not need to automatically close the iris diaphragm, and only needs to prompt the user. For example, the prompt message is "the camera is irradiated by strong light, please adjust to the safe shooting angle". For example, the prompt may be displayed in a pop-up window of the camera shooting interface (e.g., when the camera application is running in the foreground) or in a pop-up window of the desktop of the cell phone (e.g., when the camera application is not running in the foreground).
Taking the following example that the iris diaphragm is in a closed state when the camera is not in use, processing logic after the camera application icon is clicked by the user will be described with reference to fig. 8:
801. A trigger operation for a camera application icon is received.
Illustratively, the triggering operation is a clicking operation.
802. In response to the triggering operation, it is determined whether the ambient light intensity currently detected by the ambient light sensor is greater than or equal to a preset intensity threshold.
The preset intensity threshold may be, for example, a first preset intensity threshold or a second preset intensity threshold in the embodiments described below. If not, executing step 803; if yes, go to step 804.
803. The camera application is started and the iris is opened.
804. The camera application is not started and a hint of the reason why the camera application is not started (i.e., the reason why the camera application cannot be started) is displayed.
Without the camera application being started, the iris diaphragm will remain in the closed state.
Alternatively, the above step 804 may be replaced with "start camera application, not open iris, and display a prompt message for prompting the reason why the iris cannot be opened". That is, the step of "opening the iris diaphragm in response to the start of the camera application" is not performed. In this way, the risk of burning the camera is avoided even if the camera application is started, since the iris diaphragm is still kept in the closed state.
Processing logic when the iris is in the open state will be described with reference to fig. 9 a:
901a, acquiring the current detected ambient light intensity of the ambient light sensor.
902a, judging whether the ambient light intensity is greater than or equal to a preset intensity threshold.
The determination manner of the preset intensity threshold may be referred to the corresponding content in the above embodiment, and will not be described herein.
If yes, executing step 903a; and if the judgment result is negative, not executing any operation, namely ending.
903a, closing the iris.
Note that, when the camera is in the use state, the above 903a may further include a prompt message for displaying the reason for closing the iris.
Processing logic when the iris diaphragm is in the closed state will be described with reference to fig. 9 b:
901b, acquiring the current detected ambient light intensity of the ambient light sensor.
902b, judging whether the ambient light intensity is greater than or equal to a preset intensity threshold.
The determination manner of the preset intensity threshold may be referred to the corresponding content in the above embodiment, and will not be described herein.
If not, executing step 903b; and if the judgment result is yes, no operation is executed, namely the operation is finished.
903b, opening the iris.
It should be noted that, when the iris diaphragm is in the closed state in the unused state of the camera, the processing logic shown in fig. 9a and 9b is only required to be executed when the camera is in the used state, and the processing logic shown in fig. 9a and 9b is not required to be executed when the camera is in the unused state.
Optionally, according to the intensity of the strong light irradiating the camera, whether the camera is prompted to be irradiated by the strong light is determined, so that the camera is protected by a user by adopting corresponding measures, or the iris diaphragm is automatically closed. When the intensity of the laser irradiating the camera is insufficient to damage the camera in a short period of time, a user can be prompted to adopt corresponding measures to protect the camera; the iris diaphragm may be automatically closed when the intensity of the laser light illuminating the camera is sufficient to damage the camera within a short period of time. Processing logic when the iris diaphragm is in the open state will be described with reference to fig. 12:
1201. the ambient light intensity currently detected by the ambient light sensor is acquired.
1202. And judging whether the ambient light intensity is greater than or equal to a first preset intensity threshold.
If yes, the following step 1203 is executed, which indicates that the camera is irradiated by strong light and the intensity of the strong light is greater than or equal to the first preset intensity threshold; if not, the following step 1204 is performed.
1203. The iris diaphragm is closed.
Note that, when the camera is in the use state, the step 1203 may further include displaying a prompt message for prompting the reason for closing the iris.
In 1203, the mobile phone may close the iris through camera driving. For example, the prompt may be provided to the user by way of an interface display and/or voice broadcast.
Alternatively, only the iris diaphragm may be closed, and the user may not be alerted to the alert message.
1204. And judging whether the ambient light intensity is greater than or equal to a second preset intensity threshold.
The first preset intensity threshold is greater than the second preset intensity threshold, and the magnitude of the first preset intensity threshold and the second preset intensity threshold can be determined through experiments or simulation. The threshold value needs to be verified through experiments, and because different chips can bear inconsistent laser intensity capability, the threshold value needs to be known through experiments or simulation. For example: the camera and the ambient light sensor may be illuminated with lasers of different powers, and the first preset intensity threshold and the second preset intensity threshold may be determined based on whether the camera is damaged.
If yes, the camera is irradiated by strong light, and the intensity of the strong light is greater than or equal to the second preset intensity threshold value and less than the first preset intensity threshold value, and step 1205 is executed; and if not, ending, namely not executing any processing.
1205. And displaying prompt information for prompting that the camera is irradiated by strong light.
In step 1205, the iris is not closed. The prompt information can also be used for prompting camera protection suggestions.
Processing logic when the iris diaphragm is in the closed state will be described with reference to fig. 13:
1301. acquiring the intensity of ambient light currently detected by an ambient light sensor
1302. And judging whether the ambient light intensity is greater than or equal to a second preset intensity threshold.
If not, executing step 1303; and when the judgment result is yes, ending, namely not executing any processing.
1303. The iris diaphragm is opened.
By setting the first preset threshold value and the second preset threshold value, unnecessary shooting interruption can be reduced when the camera is in a use state, so that the influence on shooting experience of a user is reduced.
In practical applications, multiple camera protection modes may be provided for selection by a user through an interface (e.g., a "setup" application interface). Taking the example that the camera is in the unused state and the iris diaphragm is in the closed state, the following three protection modes are introduced:
first camera protection mode: when the camera is irradiated by strong light, only prompt information for prompting that the camera is irradiated by strong light is provided for a user.
Second camera protection mode: when the camera is irradiated by strong light, the iris diaphragm is closed.
Third camera protection mode: when the camera is irradiated by strong light and the intensity of the strong light is greater than or equal to a first preset intensity threshold value, closing the iris diaphragm; when the camera is irradiated by strong light and the intensity of the strong light is larger than or equal to a second preset intensity threshold value and smaller than a first preset intensity threshold value, only prompt information for prompting that the camera is irradiated by the strong light is provided for a user.
The following describes the mapping relationship between the illuminance (i.e., illumination intensity) X irradiated to the ambient light sensor and the illuminance Y finally output by the ambient light sensor:
(1)
wherein A is a coefficient; t is the normalized exposure time; gain is a Gain multiple, and the specific magnitude of these several parameter values may be set according to actual needs, which is not specifically limited in the embodiment of the present application. For example, A is 683, T is 30 to 1000ms, and gain may be 1 to 512.
For example: the illuminance is generally 80-100 k lux at noon when the sun is directly incident, and the light entering the ambient light sensor is attenuated due to the stacking of the devices, and is generally 20-30% of the light entering the ambient light sensor. Assuming that the solar light in noon is directly incident (i.e., hit) on the ambient light sensor with an illuminance of about 30Klux, then the Y value output by the ambient light sensor is about 2811K, which is about 100 times the incident illuminance.
That is, the ambient light intensity output by the ambient light sensor is not the illuminance (i.e., the actual ambient light intensity) of the actual ambient light, and there is a mapping relationship between the ambient light intensity and the actual ambient light intensity, and the scaling relationship may be determined according to the attenuation ratio and the mapping relationship shown in the above formula (1), which is not described in detail in the embodiment of the present application.
Therefore, the ambient light intensity detected by the ambient light sensor can be mapped into the illuminance of the real ambient light, and the illuminance of the real ambient light is compared with the first preset intensity threshold value and the second preset intensity threshold value.
When the camera is in an unused state, the iris diaphragm is closed; when the camera is in a use state and the iris diaphragm is in an open state, the mobile phone executes the following steps: as shown in fig. 3, the ambient light sensor sends its monitored ambient light intensity to the smart sensor hub, so that the ambient light intensity detected by the ambient light sensor is mapped into a real ambient light intensity by the smart sensor hub; comparing the real ambient light intensity with a first preset intensity threshold; if the real ambient light intensity is greater than or equal to a first preset intensity threshold, the intelligent sensor hub sends an instruction for closing the iris diaphragm to the camera driver, and sends a notification for displaying prompt information, namely that the camera is irradiated by strong light and is easy to damage, and the iris diaphragm is automatically closed, to the camera application; the camera application responds to the notification and displays prompt information; the camera driving responds to the instruction and closes the iris diaphragm of the camera; if the real ambient light intensity is smaller than the first preset intensity threshold, the intelligent sensor hub continues to judge whether the ambient light intensity is larger than or equal to the second preset intensity threshold, and if the ambient light intensity is larger than or equal to the second preset intensity threshold, the intelligent sensor hub can send a notification showing that the prompt message "the camera is irradiated by strong light and please adjust to the arrangement shooting angle" to the camera application; the camera application displays a prompt in response to the notification.
It should be noted that, in a non-strong light illumination scene, the camera application can be normally used, and the iris diaphragm can be switched among various diaphragm aperture sizes according to actual needs. Fig. 11 shows various diaphragm aperture sizes of the variable diaphragm. Fig. 11 illustrates only a few aperture sizes for an iris, in practice, there may be fewer or more aperture sizes.
It should be noted that the camera protection suggestions in the above-mentioned prompt messages are not necessarily included, and may be set according to actual needs, which is not particularly limited in the embodiment of the present application.
The application provides an electronic device, comprising: a memory and a processor, wherein the memory is used for storing a program; the processor is coupled to the memory and is configured to execute the program stored in the memory, so as to implement the method in the foregoing embodiments.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer, is capable of implementing one or more steps of the method in any of the embodiments described above.
The computer readable storage medium may be a non-transitory computer readable storage medium, for example, a ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Another embodiment of the present application also provides a computer program. The computer program is capable of carrying out one or more of the steps of the method in any of the embodiments described above when executed by a computer.
The electronic device, the computer readable storage medium and the computer program provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects of the corresponding methods provided above, and will not be described herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A camera protection method, characterized in that it is applied to an electronic device, the electronic device comprising: a camera and an ambient light sensor; the camera comprises a variable aperture; the camera and the ambient light sensor are arranged on the first side surface of the electronic device; at a first moment, the ambient light intensity detected by the ambient light sensor is a first ambient light intensity, and the iris diaphragm is in an open state; the method comprises the following steps:
the second moment, the iris diaphragm is controlled to be closed;
the ambient light intensity detected by the ambient light sensor at the second moment is a second ambient light intensity; the second ambient light intensity is greater than the first ambient light intensity; the second time is later than the first time; the iris diaphragm is in an open state after the first time and before the second time.
2. The method of claim 1, wherein between the first time and the second time, the camera is in use;
the method further comprises the steps of:
and after the iris diaphragm is controlled to be closed, displaying first prompt information for prompting the reason of closing the iris diaphragm.
3. The method of claim 2, wherein between the first time and the second time, the electronic device displays a camera capture interface;
after the iris diaphragm is controlled to be closed, first prompt information for prompting the reason of closing the iris diaphragm is displayed, and the method comprises the following steps:
after the iris diaphragm is controlled to be closed, popup a popup window on the shooting interface of the camera; the popup window is internally provided with the first prompt message.
4. A method according to any one of claims 1 to 3, wherein controlling the iris diaphragm to close at a second instant of time comprises:
and at a second moment, controlling the iris diaphragm to be closed based on the fact that the second ambient light intensity is larger than or equal to a first preset intensity threshold.
5. The method of claim 4, wherein at a third time instant, the ambient light intensity detected by the ambient light sensor is a third ambient light intensity;
The method further comprises the steps of:
the third moment, based on the third ambient light intensity being smaller than a second preset intensity threshold, controlling the iris diaphragm to be opened;
the third time is later than the second time; the iris diaphragm is in a closed state after the second moment and before the third moment;
the second preset intensity threshold is less than or equal to the first preset intensity threshold.
6. The method of claim 5, wherein the controlling the iris opening based on the third ambient light intensity being less than a second preset intensity threshold at the third time comprises:
and at the third moment, controlling the iris diaphragm to be opened based on the fact that the third ambient light intensity is smaller than a second preset intensity threshold and the camera is in a use state.
7. The method of claim 5, wherein the second preset intensity threshold is less than the first preset intensity threshold at a fourth time instant; the ambient light intensity detected by the ambient light sensor is a fourth ambient light intensity;
the method further comprises the steps of:
the fourth moment, based on the fourth ambient light intensity being greater than or equal to the second preset intensity threshold and less than the first preset intensity threshold, displays second prompt information for prompting the camera to be irradiated by strong light;
The fourth time is later than the third time; the iris diaphragm is in an open state after the third time and before the fourth time.
8. A method according to any one of claims 1 to 3, wherein the iris diaphragm is in a closed state when the camera is in an unused state.
9. The method as recited in claim 8, further comprising:
and at a fifth moment, opening the iris diaphragm based on the operation of opening the camera.
10. The method of claim 9, wherein at a fifth time, based on the operation of turning on the camera, opening the iris diaphragm comprises:
and at a fifth moment, opening the iris diaphragm and displaying a camera shooting interface based on a starting operation of a camera application on the electronic equipment.
11. The method of claim 9, wherein at the fifth time instant, the ambient light sensor detected by the ambient light sensor is a fifth ambient light intensity;
a fifth time, based on an operation of opening the camera, of opening the iris diaphragm, including:
and at a fifth moment, opening the iris diaphragm based on the operation of opening the camera and the fifth ambient light intensity being smaller than a first preset intensity threshold.
12. The method of claim 9, wherein at a sixth time, the ambient light sensor detected by the ambient light sensor is a sixth ambient light intensity; the method further comprises the steps of:
and at a sixth moment, displaying third prompt information for prompting the reason why the iris diaphragm cannot be opened based on the operation of starting the camera and the fact that the sixth ambient light intensity is greater than or equal to a first preset intensity threshold.
13. A computer program, characterized in that the method of any of claims 1 to 12 is implemented when the computer program is executed by an electronic device.
14. An electronic device, comprising: a memory and a processor, wherein,
the memory is used for storing programs;
the processor, coupled to the memory, for executing the program stored in the memory to implement the method of any one of claims 1 to 12.
CN202410175278.6A 2024-02-07 2024-02-07 Camera protection method, program and electronic device Pending CN117857910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410175278.6A CN117857910A (en) 2024-02-07 2024-02-07 Camera protection method, program and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410175278.6A CN117857910A (en) 2024-02-07 2024-02-07 Camera protection method, program and electronic device

Publications (1)

Publication Number Publication Date
CN117857910A true CN117857910A (en) 2024-04-09

Family

ID=90536345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410175278.6A Pending CN117857910A (en) 2024-02-07 2024-02-07 Camera protection method, program and electronic device

Country Status (1)

Country Link
CN (1) CN117857910A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN210469533U (en) * 2019-11-04 2020-05-05 深圳市灵明光子科技有限公司 Ambient light adjusting device, image sensor, and electronic device
CN115086528A (en) * 2022-07-04 2022-09-20 维沃移动通信有限公司 Camera module, electronic equipment and control method
CN115103131A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Shooting module protection method and device, computer readable medium and electronic equipment
CN115103100A (en) * 2022-06-22 2022-09-23 Oppo广东移动通信有限公司 Camera module, control method thereof, electronic device and computer-readable storage medium
CN116916159A (en) * 2023-06-16 2023-10-20 维沃移动通信有限公司 Camera assembly, electronic equipment, control method and control device of electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN210469533U (en) * 2019-11-04 2020-05-05 深圳市灵明光子科技有限公司 Ambient light adjusting device, image sensor, and electronic device
CN115103131A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Shooting module protection method and device, computer readable medium and electronic equipment
CN115103100A (en) * 2022-06-22 2022-09-23 Oppo广东移动通信有限公司 Camera module, control method thereof, electronic device and computer-readable storage medium
CN115086528A (en) * 2022-07-04 2022-09-20 维沃移动通信有限公司 Camera module, electronic equipment and control method
CN116916159A (en) * 2023-06-16 2023-10-20 维沃移动通信有限公司 Camera assembly, electronic equipment, control method and control device of electronic equipment

Similar Documents

Publication Publication Date Title
EP4024845A1 (en) Time-lapse photography method and device
EP3820130A1 (en) Method and electronic device for processing notification message
CN115297199A (en) Touch method of equipment with folding screen and folding screen equipment
WO2023015956A1 (en) Method for controlling camera, and electronic device and computer-readable storage medium
CN113805797B (en) Processing method of network resource, electronic equipment and computer readable storage medium
CN114095666B (en) Photographing method, electronic device, and computer-readable storage medium
CN114168065B (en) Method and device for adjusting memory configuration parameters
CN114463191B (en) Image processing method and electronic equipment
WO2023015990A1 (en) Point light source image detection method and electronic device
WO2023131070A1 (en) Electronic device management method, electronic device, and readable storage medium
WO2024040981A1 (en) Photographing method and related device therefor
EP4336330A1 (en) Two-dimensional code recognition method, electronic device, and storage medium
WO2021057472A1 (en) Display control method and electronic device
CN108259771A (en) Image processing method, device, storage medium and electronic equipment
WO2022267762A1 (en) Method for photographing under multiple artificial light sources, and related apparatus
CN113920963A (en) Screen brightness adjusting method, electronic equipment and storage medium
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN115904297A (en) Screen display detection method, electronic device and storage medium
CN114422686A (en) Parameter adjusting method and related device
WO2022267763A1 (en) Photographing method and related apparatus
CN116684520B (en) Shutdown method, electronic equipment, storage medium and chip
CN117857910A (en) Camera protection method, program and electronic device
WO2022242412A1 (en) Method for killing application, and related device
CN117135467A (en) Image processing method and electronic equipment
CN113781959B (en) Interface processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination