A shooting method and electronic device
By adjusting the operating frequency and power of the target module, the image quality reduction problem of electronic devices due to strong magnetic environment in dark environments is solved, and higher image quality is achieved.
Patent Information
- Application Number
- CN202410719302.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-06-05
AI Technical Summary
In dark environments, the amplification of the interference signal caused by the strong magnetic environment during shooting of electronic devices will lead to a decrease in image quality and a stripe, which will affect the shooting effect.
By adjusting the operating frequency and power of the target module in the operating state, it is inconsistent with the sampling frequency of the target camera, or reducing the power of the target module to reduce or eliminate the impact of the interfering signal on the camera, thereby improving image quality.
Effectively reduce or eliminate streaks in images captured by electronic devices in strong magnetic environments, improve image quality, and ensure shooting effect.
Smart Images

Figure CN118317191B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminals, and in particular to a shooting method and an electronic device. Background Art
[0002] In a dark environment, when an electronic device shoots with a camera, in order to obtain a better shooting effect, the electronic device will increase the camera gain. Specifically, increasing the camera gain can amplify the image signal, increase the brightness of the image, and thus improve the shooting effect. However, if the electronic device is in a strong magnetic environment at this time, that is, there is an interference signal, then while amplifying the image signal, the interference signal will also be amplified, resulting in stripes in the preview image or captured image of the electronic device, thereby reducing the image quality and affecting the shooting effect. Summary of the invention
[0003] The present application provides a shooting method and an electronic device, which are used to improve image quality when shooting the electronic device in a dark environment or a strong magnetic environment.
[0004] In order to achieve the above purpose, this application adopts the following technical solutions:
[0005] In a first aspect, a shooting method is provided, which can be applied to a first electronic device. The first electronic device has a target module in a working state, and the target module is a module in the first electronic device that generates a strong magnetic environment when working. The shooting method may include:
[0006] In the first environment, the first electronic device receives an operation to start the target camera, collects a first image through the target camera and displays a first shooting interface, wherein the operating frequency of the target module in the working state is the first frequency, the sampling frequency of the target camera is the second frequency, and the power of the target module in the working state is the first power.
[0007] In the second environment, the first electronic device receives an operation to start the target camera, collects a second image through the target camera and displays a second shooting interface. The ambient brightness of the second environment is lower than the ambient brightness of the first environment. In the second environment, the operating frequency of the target module in the working state is the third frequency, the sampling frequency of the target camera is the second frequency, and the power of the target module in the working state is the second power.
[0008] Among them, in the second environment, the operating frequency and power of the target module in the working state and the sampling frequency of the target camera can meet any of the following conditions: the third frequency is different from the first frequency, and the third frequency is M times the second frequency, M is an integer greater than or equal to 1; the second power is less than the first power; the first frequency is the same as the third frequency, and the second frequency is multiple of the first frequency. times, N is an integer greater than 1.
[0009] In the shooting method provided in the present application, when there is a target module in a working state in the electronic device, there will be an interference signal in the electronic device. At this time, if the electronic device enters a second environment with lower ambient brightness from a first environment with higher ambient brightness, that is, the electronic device is in a dark environment, after receiving an operation to start the target camera, in the process of collecting images through the target camera and displaying the shooting interface, the working frequency and power of the target module in the working state and the sampling frequency of the target camera can meet at least one of the following conditions: the first electronic device reduces the power of the target module in the working state, which can reduce the impact of the target module in the working state on the target camera, thereby improving the image quality; the first electronic device modifies the working frequency of the target module in the working state to an integer multiple of the sampling frequency of the target camera, so that the interference signal generated by the target module in the working state can be filtered out by the double sampling circuit of the target camera, that is, the interference signal is eliminated, so that the target module in the working state will not affect the target camera, thereby improving the image quality; the first electronic device does not modify the working frequency of the target module in the working state, and the sampling frequency of the target camera is one Nth of the working frequency of the target module in the working state, so that the interference signal generated by the target module in the working state can be filtered out by the double sampling circuit of the target camera, that is, the interference signal is eliminated, so that the target module in the working state will not affect the target camera, thereby improving the image quality. In summary, the present application is to improve the quality of images captured by an electronic device through a target camera by reducing the impact of a target module in a working state on a target camera, or eliminating the impact of a target module in a working state on a target camera.
[0010] In a possible implementation of the first aspect, in the second environment, after the first electronic device receives an operation to start a target camera, the shooting method further includes: the first electronic device changes the operating frequency of the target module in a working state from the first frequency to a third frequency.
[0011] In another possible implementation of the first aspect, the first electronic device modifies the operating frequency of the target module in a working state from the first frequency to the third frequency, including: first, the first electronic device determines whether the operating frequency of the target module in a working state supports modification; then, if the operating frequency of the target module in a working state supports modification, the operating frequency of the target module in a working state is modified from the first frequency to the third frequency.
[0012] Exemplarily, the first electronic device can determine whether the operating frequency of the target module in the working state supports modification based on the frequency modification identifier of the target module in the working state. For example, when the frequency modification identifier of a target module in the working state is represented by a first value (such as 1), it indicates that the operating frequency of the target module in the working state supports modification. Otherwise, it indicates that the operating frequency of the target module in the working state does not support modification.
[0013] In another possible implementation of the first aspect, the target module in the working state is a wireless charging module, the second electronic device charges the first electronic device by wireless charging, and the charging parameters of the wireless charging module of the first electronic device change with the charging parameters of the second electronic device. That is, when the first electronic device is in the forward charging mode, whether the charging parameters of the wireless charging module of the first electronic device can be modified is determined by the wireless charging module of the second electronic device.
[0014] Based on this, the first electronic device determines whether the operating frequency of the target module in working state supports modification, including: first, the first electronic device sends charging query information to the second electronic device. The charging query information is used to query whether the operating frequency of the wireless charging module of the second electronic device supports modification. Then, the first electronic device receives charging feedback information from the second electronic device. The charging feedback information is used to indicate that the operating frequency of the wireless charging module of the second electronic device supports modification, or does not support modification. Finally, the first electronic device determines whether the operating frequency of the wireless charging module of the first electronic device supports modification based on the charging feedback information.
[0015] In another possible implementation of the first aspect, the first electronic device modifies the operating frequency of the target module in the working state from the first frequency to the third frequency, including: first, the first electronic device sends frequency adjustment information to the second electronic device. The frequency adjustment information is used to instruct the second electronic device to modify the operating frequency of the wireless charging module of the second electronic device to the third frequency. Secondly, the first electronic device accepts the second electronic device charging at the third frequency, and modifies the operating frequency of the wireless charging module of the first electronic device from the first frequency to the third frequency.
[0016] In another possible implementation of the first aspect, the target module in working state is a wireless charging module, a radio frequency module, or a board-level power supply wiring. When the target module in working state is a wireless charging module, the first electronic device charges the second electronic device by wireless charging, and the charging parameters of the wireless charging module of the second electronic device change with the charging parameters of the first electronic device. That is to say, when the first electronic device is in reverse charging mode, whether the charging parameters of the wireless charging module of the first electronic device can be modified is determined by the wireless charging module of the first electronic device.
[0017] Based on this, the above-mentioned first electronic device determines whether the operating frequency of the target module in a working state supports modification, including: the first electronic device queries whether the operating frequency of the wireless charging module of the first electronic device supports modification; or, the first electronic device queries whether the operating frequency of the radio frequency module in the first electronic device can be modified, or, the first electronic device queries whether the operating frequency of the signal corresponding to the board-level power supply power routing in the first electronic device can be modified.
[0018] In another possible implementation of the first aspect, the first electronic device modifies the operating frequency of the target module in a working state from the first frequency to a third frequency, including: the first electronic device modifies the operating frequency of the wireless charging module of the first electronic device from the first frequency to the third frequency; or, the first electronic device modifies the operating frequency of the radio frequency module in the first electronic device from the first frequency to the third frequency, or, the first electronic device modifies the operating frequency of the signal corresponding to the board-level power supply wiring in the first electronic device from the first frequency to the third frequency.
[0019] In another possible implementation of the first aspect, in the second environment, after receiving an operation to start the target camera, the shooting method further includes: the first electronic device reducing the power of the target module in a working state from the first power to the second power.
[0020] In another possible implementation of the first aspect, the first electronic device reduces the power of the target module in the working state from the first power to the second power, including: if the working frequency of the target module in the working state does not support modification, the first electronic device reduces the power of the target module in the working state from the first power to the second power.
[0021] In another possible implementation manner of the first aspect, the target module in working state is a wireless charging module; the second electronic device charges the first electronic device, and a charging parameter of the wireless charging module of the first electronic device changes with a change in a charging parameter of the second electronic device.
[0022] The first electronic device reduces the power of the target module in the working state from the first power to the second power, including: first, the first electronic device sends a power reduction instruction information to the second electronic device; wherein the power reduction instruction information is used to indicate: reduce the power of the wireless charging module of the second electronic device from the first power to the second power. Secondly, the first electronic device accepts the charging of the second electronic device at the second power. Finally, the first electronic device reduces the power of the wireless charging module of the first electronic device from the first power to the second power.
[0023] In another possible implementation of the first aspect, the target module in working state is a wireless charging module, a radio frequency module, or a board-level power supply wiring. When the target module in working state is a wireless charging module, the first electronic device supplies power to the second electronic device, and the charging parameters of the wireless charging module of the second electronic device change with the charging parameters of the first electronic device.
[0024] In the second environment, after receiving an operation to start the target camera, the shooting method also includes: the first electronic device reduces the power of the wireless charging module of the first electronic device from the first power to the second power; or, the first electronic device reduces the power of the radio frequency module of the first electronic device from the first power to the second power; or, the first electronic device reduces the power of the signal corresponding to the board-level power supply power routing in the first electronic device from the first power to the second power.
[0025] In another possible implementation of the first aspect, the first power is obtained according to the first voltage and the first current. Reducing the power of the wireless charging module of the first electronic device from the first power to the second power includes: reducing the voltage of the wireless charging module of the first electronic device from the first voltage to the second voltage, and maintaining the current of the wireless charging module of the first electronic device at the first current; or reducing the current of the wireless charging module of the first electronic device from the first current to the second current, and maintaining the voltage of the wireless charging module of the first electronic device at the first voltage; or reducing the voltage of the wireless charging module of the first electronic device from the first voltage to the third voltage, and reducing the current of the wireless charging module of the first electronic device from the first current to the third current.
[0026] In another possible implementation of the first aspect, in the second environment, after receiving an operation to start the target camera, the shooting method further includes: in the second environment, after receiving the operation to start the target camera, determining based on the frequency identifier of the target camera that the sampling frequency of the target camera has been modified to the operating frequency of the target module in the working state times.
[0027] The frequency identification of a camera may include: a sampling frequency modification identification and a modification status identification of the camera. If the sampling frequency modification identification of a camera is represented by a first value (such as 1), and the modification status identification of the camera is represented by a first value, it indicates that the sampling frequency of the camera supports modification and the sampling frequency has been modified to the working frequency of the target module in the working state. times.
[0028] In another possible implementation manner of the first aspect, the first electronic device includes a dual sampling circuit corresponding to the target camera, and a sampling frequency of the dual sampling circuit is consistent with a sampling frequency of the target camera.
[0029] In another possible implementation manner of the first aspect, the second environment refers to an environment where the environment brightness is less than a preset brightness. In the second environment, the gain parameter value of the target camera is greater than the preset gain value.
[0030] In a second aspect, an electronic device is provided, the electronic device comprising: a display screen, a memory, at least one target module, at least one camera and at least one processor, wherein the target module is a module in a first electronic device that generates a strong magnetic environment when in operation. The display screen, the memory, the camera and the target module are coupled to the processor respectively. The camera is used to capture images. The display screen is used to display images. The target module is used to implement the corresponding functions of the electronic device. The memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes the first aspect and any possible implementation thereof.
[0031] According to a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on an electronic device, the electronic device can execute any one of the methods according to the first aspect.
[0032] According to a fourth aspect, a computer program product comprising instructions is provided, which, when executed on an electronic device, enables the electronic device to execute any one of the methods according to the first aspect.
[0033] In a fifth aspect, a chip system is provided, the chip system including a processor for supporting an electronic device to implement the functions involved in the first aspect and any of its embodiments. In a possible design, the electronic device also includes an interface circuit, which can be used to receive signals from other devices (such as a memory) or send signals to other devices (such as a communication interface). The chip system may include a chip and may also include other discrete devices.
[0034] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip system described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible implementation method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 One of the schematic diagrams of a shooting scene provided in an embodiment of the present application;
[0036] Figure 2 A second schematic diagram of a shooting scene provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0039] Figure 5 One of the flowcharts of a shooting method provided in an embodiment of the present application;
[0040] Figure 6 This is one of the display interface schematic diagrams of an electronic device provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of the arrangement of a camera on a first electronic device provided in an embodiment of the present application;
[0042] Figure 8 A second schematic diagram of a display interface of an electronic device provided in an embodiment of the present application;
[0043] Fig. 9 A second flowchart of a photographing method provided in an embodiment of the present application;
[0044] Fig.10 A schematic diagram of the structure of a dual sampling circuit of a camera provided in an embodiment of the present application;
[0045] Fig.11 A waveform diagram of a dual sampling circuit of a camera provided in an embodiment of the present application;
[0046] Fig.12 A third flowchart of a photographing method provided in an embodiment of the present application;
[0047] Fig.13 A schematic diagram of the state change of a camera provided in an embodiment of the present application;
[0048] Fig.14 A fourth flowchart of a photographing method provided in an embodiment of the present application;
[0049] Fig.15 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The terms "first", "second", etc. involved in the embodiments of the present application are only used to distinguish features of the same type and cannot be understood as indicating relative importance, quantity, order, etc.
[0051] The terms "exemplary" or "for example" and the like in the embodiments of the present application are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the related concepts in a specific way.
[0052] The terms "coupling" and "connection" involved in the embodiments of the present application should be understood in a broad sense. For example, they may refer to a direct physical connection, or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.
[0053] First, some concepts involved in the embodiments of the present application are introduced.
[0054] Camera gain (again): Gain refers to the process of increasing or decreasing the image signal during the photoelectric conversion process after the camera receives the image signal. The camera gain can also be called the camera gain parameter or camera gain.
[0055] Dark environment: refers to an environment with weak light or no light, that is, a low-brightness environment with no or very little visible light entering. Generally speaking, when the ambient brightness in an environment is lower than X (such as 5) nits, the environment can be called a dark environment.
[0056] In a dark environment, when an electronic device shoots with a camera, in order to obtain a better shooting effect, the electronic device will increase the camera gain. Specifically, increasing the camera gain can amplify the image signal, increase the brightness of the image, and thus improve the shooting effect. However, if the electronic device is in a strong magnetic environment (i.e., there is an interference signal), the interference signal will be amplified while amplifying the image signal, resulting in stripes in the preview image or captured image of the electronic device, thereby reducing the image quality and affecting the shooting effect.
[0057] The strong magnetic environment can be formed when some modules in the electronic device (such as wireless charging module, RF module, board-level power supply wiring, etc.) are in working state, or formed by other devices around the electronic device. Figure 1 , taking the example of a strong magnetic environment formed when some modules in electronic equipment are in working state as an example.
[0058] Figure 1 One of the schematic diagrams of a shooting scene provided in an embodiment of the present application is shown.
[0059] In one scenario, Figure 1 As shown in A in the figure, in a dark environment, after the first electronic device 110 is connected to the second electronic device 120, the second electronic device 120 charges the first electronic device 110 by wireless charging. That is, the first electronic device 110 is in a forward charging mode. At this time, the wireless charging module of the first electronic device 110 is in a working state to form a strong magnetic environment, resulting in interference signals in the first electronic device. During the charging process, the first electronic device 110 displays a shooting interface 111, that is, the first electronic device 110 is in a shooting state. At this time, the first preview image 112 displayed on the shooting interface 111 of the first electronic device 110 includes stripes. In response to the triggering operation of the shooting button 101 in the shooting interface 111, the first electronic device 110 generates a first shot image 113. The first shot image 113 includes stripes.
[0060] In another scenario, after the first electronic device is connected to the second electronic device, the first electronic device charges the second electronic device by wireless charging. That is, the first electronic device is in reverse charging mode. At this time, the wireless charging module of the first electronic device is in working state to form a strong magnetic environment, resulting in interference signals in the first electronic device. During the charging process, stripes will appear in both the preview image and the captured image of the first electronic device.
[0061] In another scenario, Figure 1 As shown in B, in a dark environment, the first electronic device 110 and the third electronic device 130 have a voice call through the base station 140. At this time, the radio frequency module of the first electronic device 110 is in a working state to form a strong magnetic environment, resulting in an interference signal in the first electronic device. During the call, the first electronic device 110 displays the shooting interface 111 of the camera application. At this time, the second preview image 114 displayed on the shooting interface 111 of the first electronic device 110 includes stripes. In response to the triggering operation of the shooting button 101 in the shooting interface 111, the first electronic device 110 generates a second shot image 115. The second shot image 115 includes stripes.
[0062] In order to solve the above problems, an embodiment of the present application provides a shooting method for solving the problem of stripes appearing in the preview image and shot image of the electronic device when the target module that can generate interference signals in the electronic device is working in a dark environment. Specifically, when the electronic device determines that it is in a dark environment and there is an interference signal, when starting the target camera shooting process: the electronic device can collect images through the target camera when the sampling frequency of each target camera is inconsistent with the working frequency of all target modules in the working state, or after reducing the power of the corresponding target module in the working state. In this way, the influence of the interference signal generated by the target module in the working state on the target camera can be reduced or avoided, thereby reducing or avoiding the appearance of stripes in the image collected by the electronic device through the target camera.
[0063] Among them, the sampling frequency of each target camera is inconsistent with the working frequency of all target modules in working state, which may include: the electronic device modifies the working frequency of the target module in working state to an integer multiple of the sampling frequency of the target camera, or, before the electronic device leaves the factory, the sampling frequency of the target camera is modified to the divided frequency of the working frequency of the target module in working state, so that the interference signal generated by the target module in working state can be filtered out by the dual sampling circuit of the target camera, so that the interference signal will not affect the target camera.
[0064] Figure 2 A second schematic diagram of a shooting scene provided in an embodiment of the present application is shown.
[0065] In one embodiment, if Figure 2 As shown, in a dark environment, after the first electronic device 110 is connected to the second electronic device 120, the second electronic device 120 charges the first electronic device 110 by wireless charging. During the charging process, the first electronic device 110 displays the shooting interface 111, that is, the first electronic device 110 is in a shooting state. At this time, the third preview image 210 displayed by the shooting interface 111 of the first electronic device 110 does not include stripes. In response to the triggering operation of the shooting button 101 in the shooting interface 111, the first electronic device 110 generates a third shooting image 220. The third shooting image 220 also does not include stripes.
[0066] The electronic device involved in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The electronic device may have a shooting function, as well as at least one of a communication function and a wireless charging function. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the electronic device.
[0067] Figure 3 The hardware structure diagram of an electronic device provided by an embodiment of the present application is shown. Figure 3 Introduce the hardware structure of electronic equipment.
[0068] Take the mobile phone as an example. Figure 3 As shown, the electronic device 300 may include: a processor 310, a memory 320, a universal serial bus (USB) interface 330, a charging control module 340, a wireless charging control module 341 (such as a wireless charging chip), a battery 342, a matching circuit 343, a wireless charging coil 344, an antenna, a communication module 350, a display screen 360, an audio module 370, a camera 380, a sensor module 390, etc. Among them, the charging control module 340, the wireless charging control module 341, the battery 342, the matching circuit 343 and the wireless charging coil 344 may be referred to as a wireless charging module.
[0069] The processor 310 may include one or more processing units, for example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. The controller may be the nerve center and command center of the electronic device 300. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0070] The memory 320 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 320. The memory 320 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an interface display function, etc.). The data storage area may store data (such as notification messages) created during the use of the electronic device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0071] The charging control module 340 is used to receive charging input from a charger, where the charger can be a wireless charger (such as a wireless charging base of an electronic device or other device that can wirelessly charge the electronic device) or a wired charger.
[0072] In one embodiment, the electronic device may support wired charging. Specifically, the charging control module 340 may receive charging input from a wired charger through the USB interface 330 .
[0073] In another embodiment, the electronic device may support forward wireless charging. Specifically, the charging control module 340 may receive wireless charging input through the wireless charging coil 344 of the electronic device. The charging control module 340 is connected to the wireless charging coil 344 through a matching network 343. The wireless charging coil 344 may be coupled with the wireless charging coil of the above-mentioned wireless charger, inducing the alternating electromagnetic field emitted by the wireless charging coil of the wireless charger to generate an alternating current signal. The alternating current signal generated by the wireless charging coil 344 is transmitted to the charging control module 340 through the matching circuit 343 to wirelessly charge the battery 342.
[0074] Among them, the charging control module 340 can also power the electronic device while charging the battery 342. The charging control module 340 receives the input of the battery 342 and powers the processor 310, the memory 320 and other modules. The charging control module 340 can also be used to monitor the battery capacity, battery cycle number, battery health status (leakage, impedance) and other parameters of the battery 342. In some other embodiments, the charging control module 340 can be set in the processor 310.
[0075] In another embodiment, the electronic device can support reverse wireless charging. Specifically, the charging control module 340 can also receive the input of the battery 342 and convert the DC signal input by the battery 342 into an AC signal. The AC signal is transmitted to the wireless charging coil 344 through the matching circuit 343. The wireless charging coil 344 can generate an alternating electromagnetic field when receiving the AC signal. The wireless charging coils of other electronic devices can sense the alternating electromagnetic field and can perform wireless charging. That is, the electronic device can also perform wireless charging for other electronic devices.
[0076] The communication module 350 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), radio frequency (RF), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 300. The communication module 350 can be one or more devices integrating at least one communication processing module. The communication module 350 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310. The communication module 350 can also receive the signal to be sent from the processor 310, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0077] In some embodiments, the antenna of the electronic device 300 is coupled to the communication module 350 so that the electronic device 300 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, global navigation satellite system (GNSS), WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), Beidou navigation satellite system (BDS), global navigation satellite system (GLONASS) and / or Galileo satellite navigation system (GALILEO).
[0078] The electronic device 300 implements the display function through a GPU, a display screen 360, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 360 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.
[0079] The display screen 360 is used to display images, videos, etc. The display screen 360 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-OLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In the embodiment of the present application, the display screen 360 can be used to display preview images and captured images, etc.
[0080] The electronic device 300 can realize the shooting function through the ISP, the camera 380, the video codec, the GPU, the display screen 360 and the application processor.
[0081] The audio module 370 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 370 can also be used to encode and decode audio signals. In some embodiments, the audio module 370 can be arranged in the processor 310, or some functional modules of the audio module 370 can be arranged in the processor 310.
[0082] Camera 380 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal 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 other format.
[0083] The sensor module 390 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor, etc.
[0084] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 300. In other embodiments, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0085] Generally speaking, the realization of the shooting function in an electronic device requires not only hardware support but also software cooperation. The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture. This application embodiment takes the Android operating system® with a layered architecture as an example, and combines Figure 4 The software architecture of the electronic device involved in the embodiments of the present application is introduced.
[0086] Figure 4 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application is shown.
[0087] like Figure 4 As shown in Figure 1, the layered architecture divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces. For example, the Android operating system® can be divided into five layers, from top to bottom: application (APP) layer, application framework (FWK) layer, hardware abstract layer (HAL), driver layer and hardware layer.
[0088] The application layer can include a series of application packages, such as camera, gallery, third-party software (such as instant messaging applications, third-party image editing applications, etc.), map and navigation, etc. When these application packages are running, they can access the relevant modules of the application framework layer, hardware abstraction layer, driver layer and hardware layer through the application programming interface (API) and execute corresponding services.
[0089] The application framework layer, referred to as the framework layer for short, is used to provide API interfaces and programming frameworks for applications in the application layer.
[0090] In one embodiment, the API interface of the application framework layer may include a camera access interface. The camera access interface may be used to transfer corresponding information between a camera application of the application layer and an image processing module of the hardware abstraction layer.
[0091] The hardware abstraction layer is used to abstract the hardware. The hardware abstraction layer may include an image processing module. The image processing module is used to receive the preview data captured by the corresponding camera and process the preview data to obtain the corresponding image. The image processing module is also used to send the processed image to the camera application so that the camera application can display it in the shooting interface of the camera application.
[0092] The driver layer can be used to drive the hardware resources of the hardware layer. The driver layer may include camera drivers, sensor drivers, wireless charging drivers, etc. The camera driver is used to drive the camera to collect images through the camera. The sensor driver is used to drive the sensor (such as the ambient light sensor) to obtain information such as ambient brightness. The wireless charging driver is used to drive the wireless charging module to wirelessly charge the electronic device.
[0093] The hardware layer may include display screen, camera module, wireless charging module, RF module, ambient light sensor, board-level power routing, etc.
[0094] The display screen is used to display the relevant interfaces of applications in the application layer, such as the shooting interface of the camera application.
[0095] Among them, the camera module may include at least one camera and a processing unit connected to each camera. The processing unit is used to call the corresponding camera to shoot and obtain preview data after receiving the call indication information sent by the camera application. The processing unit is also used to send the preview data to the image processing module of the hardware abstraction layer. The processing unit can also be used to obtain the device parameters of each camera to determine whether the sampling frequency of the corresponding camera has been modified. The processing unit is also used to obtain the working state identification of the target modules such as the wireless charging module and the radio frequency module to determine whether the corresponding target module is in a working state. When it is determined that there is a target module in a working state, the processing unit is also used to obtain the frequency modification identification of the target module in a working state to determine whether the working frequency of the target module in a working state supports modification, and when the working frequency of the target module in a working state supports modification, modify the working frequency of the target module in a working state. Or, when the working frequency of the target module in a working state does not support modification, modify the power of the target module in a working state.
[0096] The wireless charging module is used to charge the electronic device by wireless charging.
[0097] Among them, the radio frequency module is used to provide communication functions for electronic devices.
[0098] The ambient light sensor is used to collect light from the environment in which the electronic device is located, and obtain the ambient brightness of the environment in which the electronic device is located based on the light.
[0099] Among them, the board-level power supply wiring is used to provide a transmission path for the corresponding signals.
[0100] It should be noted that Figure 4 The layers in the software architecture and the components included in each layer are shown, and do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more layers than shown in the figure, such as a system library (FWK LIB) layer and a kernel layer. Each layer may include more or fewer components than shown in the figure. In addition, the above-mentioned modules may also be combined into one module, and the layers may also be combined into one layer.
[0101] It is understandable that, in order to implement the method in the embodiment of the present application, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and software. Whether a function is executed in a hardware or software-driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiment.
[0102] Combined with the following Figure 5-Figure 12 , the execution subject is Figure 3 Taking the electronic device shown as an example, the shooting method provided in the embodiment of the present application is introduced.
[0103] Figure 5 FIG. 1 shows one of the flow charts of a shooting method provided in an embodiment of the present application. Figure 5 As shown, the method may include the following steps:
[0104] S501: In response to an operation of opening a shooting interface on a first electronic device, the first electronic device displays the shooting interface, where the shooting interface includes a first target image.
[0105] In one embodiment, a target application with a shooting function is installed in the first electronic device. That is, the target application can call the camera in the first electronic device to shoot. The target application can be an application that comes with the first electronic device, such as a camera application. Alternatively, the target application can be a third-party application installed in the first electronic device, such as an instant messaging application, a third-party image editing application, etc.
[0106] Figure 6 One of the display interface schematic diagrams of an electronic device provided in an embodiment of the present application is shown.
[0107] In one example, the target application is a camera application. Figure 6As shown in A in FIG. 1 , the mobile phone displays a main interface 610, which includes icons of multiple applications, such as a camera application icon 611. The operation of opening the shooting interface on the mobile phone may be: triggering (such as clicking) the camera application icon 611. After receiving the operation of triggering the camera application icon, the mobile phone displays the shooting interface of the camera application.
[0108] In another example, the target application is an instant messaging application. Figure 6 As shown in B in FIG. 1 , the mobile phone displays a conversation interface 620 of an instant messaging application, and the conversation interface 620 includes a shooting icon 621. The operation of opening the shooting interface on the mobile phone may be: triggering (such as clicking) the shooting icon 621. After receiving the operation of triggering the shooting icon, the mobile phone displays the shooting interface of the instant messaging application.
[0109] In one embodiment, the first target image is captured by a camera called after the target application is started. After the target application is started, at least one camera among all cameras of the first electronic device will be called. For the convenience of description, the camera called by the target application is referred to as the target camera in this document. Therefore, the operation of opening the shooting interface on the first electronic device can also be referred to as the operation of starting the target camera on the first electronic device.
[0110] Figure 7 A schematic diagram of the arrangement of a camera on a first electronic device provided in an embodiment of the present application is shown.
[0111] In one embodiment, if Figure 7 A and Figure 7 As shown in B in FIG. 1 , the mobile phone may include one or more cameras 710. The one or more cameras 710 may be located on the front of the mobile phone, or may be located on the back of the mobile phone, or some cameras 710 may be located on the front of the mobile phone, and other cameras 710 may be located on the back of the mobile phone. The camera located on the front of the mobile phone may be called a front camera, and the camera located on the back of the mobile phone may be called a rear camera. Figure 7 In the figure, a mobile phone including both a front camera and a rear camera is taken as an example.
[0112] During a shooting process, the type and number of cameras called by the target application are related to the current mode of the target application. The shooting interface of the target application is related to the current mode of the target application. Among them, the current mode of the target application can include any one of the foreground mode, the background mode, and the front and back dual camera mode.
[0113] In one embodiment, the shooting interface may include: at least one of a preview interface, a foreground shooting interface, a background shooting interface, a foreground video recording interface, a background video recording interface, a front and rear dual camera interface, etc. Among them, the preview interface may include a foreground preview interface, a background preview interface, and a front and rear dual camera preview interface.
[0114] Combined with the following Figure 8 , taking the target application as a camera application as an example for introduction.
[0115] Figure 8 A second schematic diagram of a display interface of an electronic device provided in an embodiment of the present application is shown.
[0116] In one example, continue as Figure 1 As shown in A in FIG. 1 , the camera application of the mobile phone is in the rear view shooting mode, and at least one of the rear cameras can be called to shoot the scenery on the back of the mobile phone. At this time, the first target image is obtained by shooting the scenery on the back of the mobile phone by at least one of the rear cameras. Among them, the rear view shooting mode is one of the rear view modes.
[0117] In another example, Figure 8 As shown in A, the camera application of the mobile phone is in the rear view panoramic mode, and at least three cameras in the rear camera can be used to shoot a three-dimensional (3D) panoramic image of the scenery on the back of the mobile phone. At this time, the first target image is obtained by shooting the scenery on the back of the mobile phone by at least three cameras in the rear camera. Among them, the rear view panoramic mode is one of the rear view modes.
[0118] In another example, Figure 8 As shown in B, the camera application of the mobile phone is in the front and rear dual-camera mode, and at least one of the front cameras can be called to shoot the scenery on the front of the mobile phone, and at least one of the rear cameras can be called to shoot the scenery on the back of the mobile phone. At this time, the shooting interface includes two first target images, one of which is obtained by shooting the scenery on the back of the mobile phone by at least one of the rear cameras, and the other first target image is obtained by shooting the scenery on the front of the mobile phone by at least one of the front cameras.
[0119] In one embodiment, if the first electronic device is in a dark environment and there is an interference signal in the first electronic device, there are stripes in the first target image. If the first electronic device is in a dark environment, but there is no interference signal in the first electronic device, there are no stripes in the first target image. If the first electronic device is in a bright environment, no matter there is an interference signal in the first electronic device, there are no stripes in the first target image. That is, when the first electronic device is in a dark environment and there is an interference signal in the first electronic device, there are stripes in the first target image.
[0120] In one example, the dark environment may be referred to as the second environment, and the bright environment may be referred to as the first environment. The bright environment refers to an environment in which the ambient brightness is higher than X (eg, 5) nits. That is, the ambient brightness of the second environment is lower than the ambient brightness of the first environment.
[0121] S502: The first electronic device determines whether there is a target module in a working state in the first electronic device.
[0122] In one embodiment, the target module may be a module that generates a strong magnetic environment (or an interference signal) when in operation. Therefore, the first electronic device may determine whether there is an interference signal in the first electronic device by determining whether there is a target module in a working state in the first electronic device. A first electronic device may include at least one target module. A first electronic device may include at least one target module in a working state.
[0123] Exemplarily, the target module may include: any one of: a wireless charging module, a communication module (such as a radio frequency module), an antenna, a board-level power supply wiring, and the like.
[0124] In one embodiment, the first electronic device may determine whether each corresponding target module is in a working state by acquiring a working state identifier of each target module.
[0125] Specifically, each target module in the first electronic device has a working status identifier. The working status identifier of a target module can be used to indicate that the target module is in a working state or an idle state. When the working status identifier of a target module is represented by a first value (such as 1), it indicates that the target module is in a working state; when the working status identifier of a target module is represented by a second value (such as 0), it indicates that the target module is in an idle state. Therefore, the first electronic device can determine whether the corresponding target module is in a working state by querying the working status identifiers of each target module, thereby determining whether there is an interference signal in the first electronic device.
[0126] S503: If there is a target module in a working state in the first electronic device, the first electronic device determines whether the first electronic device is in a dark environment.
[0127] In one embodiment, the first electronic device may determine whether the first electronic device is in a dark environment by using a camera gain of the first electronic device.
[0128] When the ambient brightness is low, when the electronic device captures an image through a camera, the brightness of the captured image is low, resulting in low image quality (i.e., poor shooting effect). In order to obtain a better shooting effect, the electronic device will increase the camera gain to compensate for the brightness of the image captured by the camera, thereby improving the image quality. Therefore, the electronic device can determine whether the current environment of the electronic device is a dark environment by obtaining the camera gain and determining whether the camera gain is greater than the preset gain.
[0129] Specifically, when the gain parameter value of the camera of the first electronic device is greater than or equal to the preset gain value, the first electronic device can determine that the first electronic device is in a dark environment. When the gain parameter value of the camera of the first electronic device is less than the preset gain value, the first electronic device can determine that the first electronic device is not in a dark environment, or the first electronic device can determine that the first electronic device is in a bright environment.
[0130] In another embodiment, the first electronic device may determine whether the first electronic device is in a dark environment according to the ambient brightness of the current environment.
[0131] An ambient light sensor is installed in the electronic device. The ambient light sensor can sense the ambient light around the electronic device and determine the ambient brightness of the current environment based on the ambient light. Therefore, the electronic device can determine whether the current environment of the electronic device is a dark environment by obtaining the ambient brightness and determining whether the ambient brightness is less than a preset brightness.
[0132] Specifically, if the ambient brightness of the current environment is less than the preset brightness, the first electronic device can determine that the first electronic device is in a dark environment. If the ambient brightness of the current environment is greater than or equal to the preset brightness, the first electronic device can determine that the first electronic device is not in a dark environment, or determine that the first electronic device is in a bright environment.
[0133] In another embodiment, the electronic device may determine whether the first electronic device is in a dark environment by using a gain parameter value of a camera of the first electronic device and the ambient brightness of the current environment.
[0134] Specifically, when the gain parameter value of the camera of the first electronic device is greater than or equal to the preset gain value, and the ambient brightness of the current environment is less than the preset brightness, the first electronic device can determine that the first electronic device is in a dark environment. Otherwise, the first electronic device can determine that the first electronic device is not in a dark environment.
[0135] In this embodiment, the first electronic device determines whether the first electronic device is in a dark environment based on two parameters: the ambient brightness of the current environment and the gain parameter value of the camera of the first electronic device. In this way, the accuracy of the first electronic device's judgment of the dark environment can be improved, thereby avoiding the execution of unnecessary processes, thereby saving system resources of the first electronic device and reducing the power consumption of the electronic device.
[0136] It should be noted that there is no fixed order for the above S502 and S503. That is, the first electronic device can execute S502 and S503 in sequence, or the first electronic device can execute S503 and S502 in sequence, or the first electronic device can execute S502 and S503 simultaneously.
[0137] S504: If the first electronic device is in a dark environment, the first electronic device determines whether the sampling frequencies of the target cameras of the first electronic device have been modified.
[0138] When the first electronic device determines that the first electronic device is in a dark environment and an interference signal exists, it indicates that stripes exist in the first target image displayed on the shooting interface of the first electronic device.
[0139] In one embodiment, the first electronic device can filter out each target camera from all cameras of the first electronic device by querying the device parameters of each camera. Exemplarily, the device parameters of each camera may include: an identity identifier, a working status identifier, and a frequency identifier, but are not limited thereto. The frequency identifier may include: a sampling frequency modification identifier and a modification status identifier, etc.
[0140] Among them, the identity of a camera can be used to uniquely identify the camera.
[0141] Among them, the working status identifier of a camera can be used to indicate that the camera is in working state or idle state. When the working status identifier of a camera is represented by the first value (such as 1), it indicates that the camera has been called by an upper-layer application (such as a camera application) and is in working state. In other words, the camera is the target camera. When the working status identifier of a camera is represented by the second value (such as 0), it indicates that the camera has not been called by any upper-layer application and is in idle state, that is, the camera is not the target camera.
[0142] It can be seen from this that the first electronic device can determine the cameras in the first electronic device that are in a working state by querying the working state identifiers of each camera, thereby determining the target camera in the first electronic device.
[0143] Among them, the sampling frequency modification flag of a camera can be used to indicate whether the sampling frequency of the camera can be modified. When the sampling frequency modification flag of a camera is represented by the first value (such as 1), it indicates that the sampling frequency of the camera can be modified; when the sampling frequency modification flag of a camera is represented by the second value (such as 0), it indicates that the sampling frequency of the camera cannot be modified.
[0144] The modification status flag of a camera can be used to indicate whether the sampling frequency of the camera has been modified. When the modification status flag of a camera is represented by a first value (such as 1), it indicates that the sampling frequency of the camera has been modified; when the modification status flag of a camera is represented by a second value (such as 0), it indicates that the sampling frequency of the camera has not been modified.
[0145] In summary, when the first electronic device determines that the working status identifier of a camera is represented by a first numerical value, it indicates that the camera is the target camera. Then, the first electronic device can query the sampling frequency modification identifier and the modification status identifier of the camera to determine whether the sampling frequency of the camera has been modified. If the sampling frequency modification identifier of the camera is represented by a first numerical value, and the modification status identifier of the camera is represented by a first numerical value, it indicates that the sampling frequency of the camera supports modification and the sampling frequency has been modified. If the sampling frequency modification identifier of the camera is represented by a first numerical value, and the modification status identifier of the camera is represented by a second numerical value, it indicates that the sampling frequency of the camera supports modification but the sampling frequency has not been modified. If the sampling frequency modification identifier of the camera is represented by a second numerical value, it indicates that the sampling frequency of the camera does not support modification, that is, the sampling frequency of the camera has not been modified.
[0146] Generally, if the sampling frequency of a camera in an electronic device supports modification, the sampling frequency of the camera can be modified during the test phase before the electronic device leaves the factory, so that the camera's dual sampling circuit can filter out interference signals generated by all target modules when they are working, thereby avoiding the situation in which stripes appear in the preview image and captured image of the electronic device due to interference signals generated by these target modules when they are working in a dark environment. At the same time, this solution will neither affect the shooting performance of the camera nor the working performance of the target module.
[0147] For example, assuming that the target module in an electronic device is a wireless charging module, and the sampling frequencies of all cameras in the electronic device support modification, then during the testing phase of the electronic device before leaving the factory, the sampling frequency of each camera in the electronic device can be modified so that the sampling frequency of each camera is equal to a certain division of the charging frequency of the wireless charging module.
[0148] In one example, a sampling frequency of a camera (eg, a target camera) in a first electronic device may be referred to as a second frequency.
[0149] S505: If there is a target camera whose sampling frequency has not been modified in the first electronic device, the first electronic device determines whether the operating frequencies of all target modules in operation support modification.
[0150] If there is a target camera whose sampling frequency has not been modified in the first electronic device, it is unavoidable that stripes appear in the preview image and the captured image of the first electronic device in a dark environment and a strong magnetic environment. At this time, the first electronic device can modify the operating frequency of each target module in operation so that the operating frequency of each target module avoids the sampling frequency of all target cameras, thereby avoiding the appearance of stripes in the preview image and the captured image of the first electronic device in a dark environment and a strong magnetic environment. Therefore, when it is determined that there is a target camera whose sampling frequency has not been modified in the first electronic device, the first electronic device needs to determine whether the operating frequency of each target module in operation supports modification.
[0151] In one embodiment, the first electronic device may query the frequency modification identifier of each target module in the working state to determine whether the working frequency of the corresponding target module in the working state supports modification.
[0152] Specifically, each target module in the first electronic device has a frequency modification identifier. The frequency modification identifier of a target module can be used to indicate whether the operating frequency of the target module supports modification. When the frequency modification identifier of a target module is represented by a first numerical value, it indicates that the operating frequency of the target module supports modification. When the frequency modification identifier of a target module is represented by a second numerical value, it indicates that the operating frequency of the target module does not support modification. Therefore, the first electronic device can determine whether the operating frequency of the corresponding target module in the working state supports modification by querying the frequency modification identifiers of each target module in the working state.
[0153] In one example, assuming that the target module in the working state in the first electronic device is a radio frequency module, the first electronic device can determine whether the working frequency of the radio frequency module in the first electronic device can be modified by querying the frequency modification identifier of the radio frequency module in the first electronic device.
[0154] In another example, assuming that the target module in the working state in the first electronic device is a board-level power supply line, the first electronic device can query whether the working frequency of the signal corresponding to the board-level power supply line in the first electronic device can be modified.
[0155] In another example, assuming that the target module in the first electronic device is a wireless charging module and the first electronic device supplies power to the second electronic device (i.e., the first electronic device is in a reverse charging mode), the first electronic device can determine whether the operating frequency of the wireless charging module in the first electronic device can be modified by querying the frequency modification identifier of the wireless charging module in the first electronic device.
[0156] In this example, since the first electronic device supplies power to the second electronic device, that is, the wireless charging module of the first electronic device is the active party and the wireless charging module of the second electronic device is the passive party, the charging frequency of the wireless charging module of the second electronic device will be consistent with the charging frequency of the wireless charging module of the first electronic device. Based on this, the first electronic device can directly determine whether the operating frequency of the wireless charging module in the first electronic device can be modified.
[0157] In another embodiment, the first electronic device can determine whether the operating frequency of the target module in the working state in the first electronic device supports modification by determining whether the operating frequency of the corresponding target module in the working state in the second electronic device connected to the first electronic device supports modification.
[0158] Fig. 9 A second flowchart of a photographing method provided in an embodiment of the present application is shown.
[0159] Exemplarily, assuming that the wireless charging module in the first electronic device is in working state, and the second electronic device supplies power to the first electronic device, the above S505 may include:
[0160] S901: If a target camera whose sampling frequency has not been modified exists in the first electronic device, the first electronic device sends charging query information to the second electronic device.
[0161] The charging query information is used to query whether the charging frequency (i.e., the operating frequency) of the wireless charging module of the second electronic device supports modification. Exemplarily, the charging query information can be used to query the frequency modification identifier of the wireless charging module of the second electronic device to determine whether the operating frequency of the wireless charging module of the second electronic device can be modified.
[0162] In this embodiment, since the second electronic device supplies power to the first electronic device, that is, the wireless charging module of the second electronic device is the active party, and the wireless charging module of the first electronic device is the passive party, the charging parameters of the wireless charging module of the first electronic device will change with the change of the charging parameters of the wireless charging module of the second electronic device. Based on this, the charging frequency of the wireless charging module of the first electronic device will be consistent with the charging frequency of the wireless charging module of the second electronic device. Therefore, the first electronic device needs to determine whether the charging frequency of the wireless charging module of the second electronic device can be modified, so as to determine whether the charging frequency of the wireless charging module of the first electronic device can be modified.
[0163] In one example, the wireless charging control module in the first electronic device may send charging query information to the wireless charging control module in the second electronic device. The charging query information is used to instruct the wireless charging control module in the second electronic device to query whether the charging frequency of the wireless charging module in the second electronic device supports modification.
[0164] S902: The first electronic device receives charging feedback information sent by the second electronic device.
[0165] The charging feedback information is used to indicate that the charging frequency of the wireless charging module of the second electronic device can be modified, or that the charging frequency of the wireless charging module of the second electronic device cannot be modified. In an example, the charging feedback information can be referred to as first feedback information.
[0166] Exemplarily, the charging feedback information may include a frequency modification identifier of the wireless charging module of the second electronic device.
[0167] In one embodiment, the wireless charging control module of the first electronic device receives the charging feedback indication information sent by the wireless charging control module of the second electronic device.
[0168] S903: The first electronic device determines whether the charging frequency of the wireless charging module of the first electronic device can be modified based on the charging feedback information.
[0169] If the charging feedback information indicates that the charging frequency of the wireless charging module of the second electronic device can be modified, the first electronic device can determine that the charging frequency of the wireless charging module of the first electronic device can support modification. If the charging feedback information indicates that the charging frequency of the wireless charging module of the second electronic device cannot be modified, the first electronic device can determine that the charging frequency of the wireless charging module of the first electronic device does not support modification.
[0170] In one embodiment, the wireless charging control module of the first electronic device may execute step S903.
[0171] S506: If the operating frequencies of the target modules in the first electronic device that are in working state all support modification, the first electronic device modifies the operating frequencies of the target modules in the first electronic device that are in working state to corresponding target frequencies.
[0172] For each target module in working state, the target frequency of the target module in working state is different from the sampling frequency of all target cameras. Exemplarily, the target frequency of the target module in working state can be an integer multiple of the sampling frequency of all target cameras. Exemplarily, the wireless charging control module of the first electronic device can execute step S506. Fig.10 and Fig.11 Provide a detailed introduction.
[0173] Fig.10 A schematic structural diagram of a dual sampling circuit of a camera provided in an embodiment of the present application is shown.
[0174] In one embodiment, if Fig.10 As shown, the dual sampling circuit of the camera may include: a first switch module 1010, a second switch module 1020, a first capacitor C1, a second capacitor C2, an operational amplifier 1030, a first resistor R1, a second resistor R2 and a third resistor Rf.
[0175] Specifically, the first end of the first switch module 1010 and the first end of the second switch module 1020 are both connected to the output end of the photosensitive module 1040 in the camera module of the first electronic device. The second end of the first switch module 1010 is connected to the first end of the first capacitor C1 and the first end of the first resistor R1. The third end of the first switch module 1010 is connected to the processing unit in the camera module. The second end of the first resistor R1 is connected to the inverting input end of the operational amplifier 1030. The first end of the third resistor Rf is connected to the inverting input end of the operational amplifier 1030, and the second end of the third resistor Rf is connected to the output end of the operational amplifier 1030. The output end of the operational amplifier 1030 is coupled to the input end of the analog-to-digital conversion module 1050 in the camera module. The second end of the second switch module 1020 is connected to the first end of the second capacitor C2 and the first end of the second resistor R2. The third end of the second switch module 920 is connected to the processing unit in the camera module. The second end of the second resistor R2 is connected to the non-inverting input end of the operational amplifier 1030.
[0176] Wherein, each switch module can be a field effect tube. The source (or drain) of the field effect tube can be the first end of the switch module, the drain (or source) of the field effect tube can be the second end of the switch module, and the gate of the field effect tube can be the third end of the switch module.
[0177] The processing unit of the camera module can be used to control the on or off of the first switch module and the second switch module. Exemplarily, at the same time, the processing unit of the camera module can control one of the first switch module and the second switch module to be on and the other switch module to be off, so that only one capacitor is sampled at the same time.
[0178] It should be noted that the sampling frequency of the dual sampling circuit of a camera is consistent with the sampling frequency of the camera.
[0179] Fig.11 The waveform diagram of a dual sampling circuit of a camera provided by an embodiment of the present application is shown. Fig.11 A in FIG. 1 shows a waveform diagram of the level of the control terminal of the second switch module changing with time. Fig.11 B in FIG. 1 shows a waveform diagram of the level of the control terminal of the first switch module changing with time. Fig.11 C in the figure shows the waveform diagram of the image signal input by the sampling module changing with time. Fig.11 D in the figure shows a waveform diagram of the interference signal input to the sampling module changing with time.
[0180] In one embodiment, the first switch module and the second switch module are both N-type field effect transistors. Fig.11 A and Fig.11 As shown in B, in the same stage, the level of the control end of the first switch module is opposite to the level of the control end of the second switch module. In the reset stage (T1), the control end of the first switch module is high level, so that the first switch module is turned on, and the control end of the second switch module is low level, so that the second switch module is turned off. At this time, the first capacitor can sample the interference signal, that is, the sampling voltage of the first capacitor can be V1. In other words, the voltage of the inverting input terminal of the op amp is V1. In the sampling stage (T2), the control end of the first switch module is low level, so that the first switch module is turned off, and the control end of the second switch module is high level, so that the second switch module is turned on. At this time, the second capacitor can sample the image signal and the interference signal at the same time, that is, the sampling voltage of the second capacitor is V2. In other words, the voltage of the in-phase input terminal of the op amp is V2. In the same cycle, the correlation of the two sampling signals is used to subtract the two sampling signals, and the difference can be used as the output signal of the sampling module, that is, the output voltage of the sampling module is: Vout= (V2-V1)×f. Among them, f is the amplification factor of the op amp.
[0181] When the operating frequency of the target module is an integer multiple of the camera's sampling frequency, the camera's double sampling circuit can output a complete image signal. Fig.11 A in Fig.11 B in Fig.11C and Fig.11 As shown in D in , when M=1, the double sampling circuit of the camera can completely filter out the interference signal to obtain a complete image signal.
[0182] In one embodiment, before modifying the operating frequency of each target module in a working state, the first electronic device may obtain the current operating frequency of each target module in a working state and the current sampling frequency of each target camera, and modify the corresponding operating frequency of each target module in a working state based on the current operating frequency of each target module in a working state and the current sampling frequency of each target camera.
[0183] In one embodiment, the first electronic device may directly modify the operating frequency of each target module in the first electronic device that is in an operating state to a corresponding target frequency.
[0184] If the operating frequencies of the target modules in the first electronic device that are in working state can be directly modified by the first electronic device, the first electronic device can directly modify the operating frequencies of the target modules in the first electronic device that are in working state to the corresponding target frequencies.
[0185] In an example, assuming that the target module in the working state in the first electronic device is a radio frequency module, the first electronic device can directly modify the working frequency of the radio frequency module in the first electronic device to the corresponding target frequency.
[0186] In another example, assuming that the target module in the working state in the first electronic device is a board-level power supply line, the first electronic device can directly modify the operating frequency of the signal corresponding to the board-level power supply line in the first electronic device to the corresponding target frequency.
[0187] In another example, assuming that the wireless charging module of the first electronic device is in working state, and the first electronic device supplies power to the second electronic device (that is, the first electronic device is in reverse charging mode), the first electronic device can directly modify the working frequency of the wireless charging module in the first electronic device to the corresponding target frequency.
[0188] In this example, since the first electronic device supplies power to the second electronic device, that is, the wireless charging module of the first electronic device is the active party, and the wireless charging module of the second electronic device is the passive party, the charging parameters of the wireless charging module of the second electronic device will change with the charging parameters of the wireless charging module of the first electronic device. Based on this, the charging frequency of the wireless charging module of the second electronic device will be consistent with the charging frequency of the wireless charging module of the first electronic device. Therefore, the first electronic device can directly modify the operating frequency of the wireless charging module in the first electronic device.
[0189] In another embodiment, the first electronic device may modify the operating frequency of a corresponding target module in a working state in a second electronic device connected to the first electronic device to a corresponding target frequency.
[0190] In this embodiment, since the second electronic device supplies power to the first electronic device, that is, the wireless charging module of the second electronic device is the active party, and the wireless charging module of the first electronic device is the passive party, the charging parameters of the wireless charging module of the first electronic device will change with the change of the charging parameters of the wireless charging module of the second electronic device. Based on this, the charging frequency of the wireless charging module of the first electronic device will be consistent with the charging frequency of the wireless charging module of the second electronic device. Therefore, the first electronic device can modify the operating frequency of the wireless charging module of the first electronic device by modifying the operating frequency of the wireless charging module of the second electronic device.
[0191] Specifically, first, the first electronic device can send frequency adjustment information to the second electronic device. The frequency adjustment information is used to instruct the second electronic device to modify the operating frequency of the wireless charging module of the second electronic device to the target frequency. Secondly, after receiving the frequency adjustment information, the second electronic device modifies the operating frequency of the wireless charging module of the second electronic device to the target frequency. In this way, the second electronic device can charge the first electronic device at the target frequency. Then, the first electronic device accepts the charging of the second electronic device at the target frequency, and the first electronic device modifies the operating frequency of the wireless charging module of the first electronic device to the corresponding target frequency.
[0192] In one example, in the first environment (i.e., bright environment), the operating frequency of the target module in the working state is the first frequency, and in the second environment (i.e., dark environment), the operating frequency of the target module in the working state is the third frequency. That is, the target frequency can be called the third frequency.
[0193] S507: If there is a target module in the working state that does not support the modification of the working frequency in the first electronic device, the first electronic device reduces the power of the target module in the working state that does not support the modification of the working frequency.
[0194] In one embodiment, the first electronic device may directly reduce the power of a target module in the first electronic device that does not support modification of the operating frequency and is in a working state.
[0195] In one example, assuming that the first electronic device does not support modifying the operating frequency, and the target module in working state is a wireless charging module, and the first electronic device supplies power to the second electronic device, the first electronic device can directly reduce the power of the wireless charging module in the first electronic device.
[0196] In this example, since the first electronic device supplies power to the second electronic device, that is, the wireless charging module of the first electronic device is the active party and the wireless charging module of the second electronic device is the passive party, the power of the wireless charging module of the second electronic device will be consistent with the power of the wireless charging module of the first electronic device. Based on this, the first electronic device directly modifies the power of the wireless charging frequency in the first electronic device.
[0197] For example, the first electronic device may reduce the power of the wireless charging module in the first electronic device by reducing at least one parameter of the voltage and current of the wireless charging module.
[0198] In one example, the target power may be referred to as the second power, the power before modification may be referred to as the first power, and the first power is obtained by the first voltage and the first current. Based on this, the first electronic device reducing the power of the wireless charging module from the first power to the second power may include: reducing the voltage of the wireless charging module from the first voltage to the second voltage, and maintaining the current of the wireless charging module at the first current; or reducing the current of the wireless charging module from the first current to the second current, and maintaining the voltage of the wireless charging module at the first voltage; or reducing the voltage of the wireless charging module from the first voltage to the third voltage, and reducing the current of the wireless charging module from the first current to the third current.
[0199] In another example, assuming that the first electronic device does not support modifying the operating frequency, and the target module in working state is a board-level power supply line, the first electronic device can directly reduce the power of the signal corresponding to the board-level power supply line in the first electronic device.
[0200] In another example, assuming that the first electronic device does not support modification of the operating frequency, and the target module in the working state is a radio frequency module, the first electronic device can directly reduce the power of the radio frequency module in the first electronic device.
[0201] In another embodiment, the first electronic device can reduce the power of a target module in the first electronic device that does not support modification of the operating frequency and is in a working state by reducing the power of a corresponding target module in a second electronic device connected to the first electronic device that does not support modification of the operating frequency and is in a working state.
[0202] Fig.12 A third flowchart of a shooting method provided in an embodiment of the present application is shown.
[0203] Exemplarily, assuming that the first electronic device does not support modifying the operating frequency, and the target module in the working state is a wireless charging module, and the first electronic device supplies power to the second electronic device, the above S507 may include:
[0204] S1201. The first electronic device sends power reduction instruction information to the second electronic device.
[0205] The power reduction instruction information is used to instruct the second electronic device to reduce the power of the wireless charging module in the second electronic device to the target power.
[0206] In one embodiment, the power reduction indication information may include: reducing the voltage of the wireless charging module of the second electronic device from the first voltage to the second voltage, and keeping the current of the wireless charging module of the second electronic device unchanged, that is, the current of the wireless charging module of the second electronic device is still the first current.
[0207] Exemplarily, assuming that the power of the wireless charging module is reduced to 24W, the first current of the wireless charging module is 6A, and the second voltage is 4V.
[0208] In another embodiment, the power reduction indication information may include: reducing the current of the wireless charging module of the second electronic device from the first current to the second current, and keeping the voltage of the wireless charging module of the second electronic device unchanged, that is, the voltage of the wireless charging module of the second electronic device is still the first voltage.
[0209] Exemplarily, assuming that the power of the wireless charging module is reduced to 24W, the first voltage of the wireless charging module is 6V, and the second current is 4A.
[0210] In another embodiment, the power reduction indication information may include: reducing the voltage of the wireless charging module of the second electronic device from the first voltage to the third voltage, and reducing the current of the wireless charging module of the second electronic device from the first current to the third current.
[0211] Exemplarily, assuming that the power of the wireless charging module is reduced to 24W, the third voltage is 5V, and the third current is 4.8A.
[0212] In one embodiment, the wireless charging control module in the first electronic device may send power reduction indication information to the wireless charging control module in the second electronic device.
[0213] S1202: Based on the power reduction indication information, the second electronic device reduces the power of the wireless charging module in the second electronic device to the target power.
[0214] In one embodiment, after the wireless charging control module of the second electronic device receives the power reduction instruction information, step S1202 may be executed.
[0215] Specifically, the second electronic device can reduce the voltage of the wireless charging module in the second electronic device from the first voltage to the second voltage, and keep the current of the wireless charging module at the first current; or, reduce the current of the wireless charging module in the second electronic device from the first current to the second current, and keep the voltage of the wireless charging module at the first voltage; or, reduce the voltage of the wireless charging module in the second electronic device from the first voltage to the third voltage, and reduce the current of the wireless charging module from the first current to the third current.
[0216] S1203: The second electronic device charges the first electronic device at the target power.
[0217] In this example, since the second electronic device supplies power to the second electronic device, that is, the wireless charging module of the second electronic device is the active party, and the wireless charging module of the first electronic device is the passive party, the power of the wireless charging module of the first electronic device will be consistent with the power of the wireless charging module of the second electronic device. Based on this, the first electronic device can instruct the second electronic device to reduce the power of the wireless charging module in the second electronic device, thereby reducing the power of the wireless charging module in the first electronic device.
[0218] S1204: The first electronic device reduces the power of the wireless charging module in the first electronic device to the target power.
[0219] S508: The first electronic device displays the second target image on the shooting interface.
[0220] There are no stripes in the second target image of the shooting interface.
[0221] In one embodiment, after the above step S502, if the first electronic device determines that the first electronic device does not have a target module in a working state, that is, there is no interference signal, the first electronic device can directly execute step S508 without executing steps S503-S507.
[0222] In another embodiment, after the above-mentioned step S503, if the first electronic device determines that the first electronic device is not in a dark environment, the camera in the first electronic device will not amplify the interference signal when shooting, and the first electronic device can directly execute step S508 without executing steps S504-S507.
[0223] In another embodiment, after the above step S504, if the first electronic device determines that the sampling frequencies of the target cameras in the first electronic device have been modified, the first electronic device can directly execute step S508 without executing steps S505-S507.
[0224] S509: In response to the shooting operation on the shooting interface, the first electronic device obtains a shot image.
[0225] In another embodiment, in response to the operation of opening the camera interface on the first electronic device, the first electronic device can directly execute the steps in S502-S509 above. That is, after receiving the operation of opening the camera interface, the first electronic device will capture images and display the shooting interface after executing the shooting method provided in the above embodiment of the present application. At this time, the second target image displayed on the shooting interface is a preview image without stripes.
[0226] Exemplarily, the device parameters of each camera may also include: a call status flag. The call status flag of a camera may be used to indicate whether the camera has been called or not. When the call status flag of a camera is represented by a first value (such as 1), it indicates that the camera has been called by an upper-layer application (such as a camera application), that is, the camera is a target camera. When the call status flag of a camera is represented by a second value (such as 0), it indicates that the camera has not been called by an upper-layer application (such as a camera application), that is, the camera is not a target camera.
[0227] It can be seen that in this embodiment, when the first electronic device inquires that the call state identifier of a camera is represented by the first value, it can be determined that the camera is the target camera. Otherwise, the first electronic device can determine that the camera is not the target camera.
[0228] In one embodiment, since the device parameters of each camera are different and the distances between each camera and the target module in working state are different, the target module in working state has different effects on each camera. Based on this, when the target cameras are different, the modification schemes for the parameters of the target module in working state are different. Fig.13 , taking the example that the target application only calls one camera during a shooting process and the target module in working state is a wireless charging module, the shooting method provided by this application is introduced.
[0229] Fig.13 A schematic diagram of state changes of a camera provided in an embodiment of the present application is shown.
[0230] In one embodiment, if Fig.13As shown, when a front camera is turned on and the sampling frequency of the front camera has not been modified, if the operating frequency of the wireless charging module in the first electronic device can be modified, the first electronic device can modify the operating frequency of the wireless charging module in the first electronic device to AKHz (such as A=120). If the operating frequency of the wireless charging module in the first electronic device cannot be modified, the first electronic device can modify the voltage of the wireless charging module in the first electronic device to BV (such as B=15) and the current to CA (such as C=1.5), that is, modify the power of the wireless charging module to DW (such as D=22.5).
[0231] Among them, turning on a front camera may include: a camera in the first electronic device that is in an turned-on state is switched from a rear camera to the front camera, or, when all cameras in the first electronic device are in a turned-off state, turning on the front camera.
[0232] Continue as Fig.13 As shown, when a rear camera is turned on and the sampling frequency of the rear camera has not been modified, if the operating frequency of the wireless charging module in the first electronic device can be modified, the first electronic device modifies the operating frequency of the wireless charging module in the first electronic device to EKHz (such as E=210). If the operating frequency of the wireless charging module in the first electronic device cannot be modified, the first electronic device can modify the power of the wireless charging module in the first electronic device to (F×G)W (such as F=2). Among them, GW can be the power of the battery in the first electronic device.
[0233] Among them, turning on a rear camera may include: a camera in the first electronic device that is in an turned-on state is switched from a front camera to the rear camera, or, when all cameras in the first electronic device are in a turned-off state, turning on the rear camera.
[0234] Continue as Fig.13 As shown, when the camera that is turned on in the first electronic device is turned off, the first electronic device can restore the operating frequency of the wireless charging module in the first electronic device to the operating frequency before the modification, or the first electronic device can restore the power of the wireless charging module in the first electronic device to the power before the modification.
[0235] In another example, when the first electronic device exits the dark environment, the first electronic device may restore the operating frequency of the wireless charging module in the first electronic device to the operating frequency before the modification, or the first electronic device may restore the power of the wireless charging module in the first electronic device to the power before the modification.
[0236] In another example, when the wireless charging module in the first electronic device stops working, the first electronic device can restore the operating frequency of the wireless charging module in the first electronic device to the operating frequency before the modification, or the first electronic device can restore the power of the wireless charging module in the first electronic device to the power before the modification.
[0237] In summary, in the shooting method provided by the embodiment of the present application, when the application (i.e., the target application) with a shooting function in the electronic device starts the target camera, the electronic device will determine whether the electronic device is in a dark environment and whether the target module that can generate an interference signal is working. If the electronic device is in a dark environment and the target module that can generate an interference signal is in working state, the electronic device first determines whether the sampling frequency of the target camera called by the target application has been modified. If the sampling frequency of each target camera has been modified, the electronic device can determine whether the operating frequency of each target camera is inconsistent with the operating frequency of each target module in working state. In other words, the interference signal generated by the target module in working state has been eliminated, so no stripes will appear in the preview image and the captured image of the electronic device. In this way, not only will the shooting performance of the target camera not be affected, but also the working performance of the target module in working state will not be affected.
[0238] If the electronic device determines that there are target cameras whose sampling frequencies have not been modified, it means that the operating frequencies of some target cameras in the electronic device cannot avoid the operating frequencies of all target modules in a working state. In this way, there will still be interference signals in the electronic device, resulting in stripes in the preview image and the captured image of the electronic device. In order to avoid the appearance of stripes in the preview image and the captured image of the electronic device, the electronic device can modify the operating frequency of each target module in a working state, so that the operating frequency of all target modules in a working state in the electronic device avoids the operating frequency of all target cameras, thereby eliminating the interference signal, so that no stripes appear in the preview image and the captured image of the electronic device. Based on this, without basically affecting the working performance of all target modules in a working state, it is ensured that no stripes appear in the preview image and the captured image of the electronic device, thereby improving the shooting effect.
[0239] If the electronic device determines that the operating frequency of some target modules in working state cannot be modified, then there is an interference signal in the electronic device. At this time, the electronic device can reduce the power of the target modules whose working frequency cannot be modified, so as to weaken the interference signal generated by the target modules whose working frequency cannot be modified, thereby weakening the influence of the target modules whose working frequency cannot be modified on the target camera. For other target modules in working state, the electronic device can still modify its operating frequency to avoid the working frequency of all target cameras to eliminate the interference signal generated by the target modules whose working frequency supports modification. Based on this, the interference signal in the electronic device can be weakened as much as possible, thereby weakening the influence of the target module in working state on the target camera as much as possible, thereby improving the shooting effect.
[0240] Combined with the following Fig.14 , taking the case where it has been determined that there is a target module in a working state in the first electronic device as an example, the shooting method provided in the embodiment of the present application is introduced.
[0241] Fig.14 A fourth flowchart of a photographing method provided in an embodiment of the present application is shown.
[0242] In one embodiment, if Fig.14 As shown, the shooting method provided in the embodiment of the present application may include:
[0243] S1401. In a first environment, a first electronic device receives an operation of starting a target camera, captures a first image through the target camera, and displays a first shooting interface.
[0244] The target camera is a camera called by the target application in the first electronic device. For details, please refer to the relevant introduction in S501 above, which will not be elaborated in this article.
[0245] Among them, the working frequency of the target module in the working state in the first electronic device is the first frequency, the sampling frequency of the target camera is the second frequency, and the power of the target module in the working state is the first power.
[0246] S1402: In a second environment, the first electronic device receives an operation of starting a target camera, captures a second image through the target camera, and displays a second shooting interface.
[0247] The ambient brightness of the second environment is lower than that of the first environment. That is, the first electronic device enters a dark environment from a bright environment. In the second environment, the operating frequency of the target module in the working state is the third frequency, the sampling frequency of the target camera is the second frequency, and the power of the target module in the working state is the second power.
[0248] Among them, in the second environment, the operating frequency and power of the target module in the working state and the sampling frequency of the target camera meet at least one of the following conditions: the third frequency is different from the first frequency, and the third frequency is M times the second frequency, M is an integer greater than or equal to 1; the second power is less than the first power; the first frequency is the same as the third frequency, and the second frequency is multiple of the first frequency. times, N is an integer greater than 1.
[0249] In one embodiment, the first electronic device is in the second environment, and after the first electronic device receives an operation to start the target camera, the first electronic device changes the operating frequency of the target module in the working state from the first frequency to the third frequency. Then, the first electronic device captures the second image through the target camera and displays the second shooting interface.
[0250] Exemplarily, the first electronic device modifying the operating frequency of the target module in a working state from the first frequency to the third frequency may include: when the first electronic device determines that the operating frequency of the target module in a working state supports modification, the first electronic device modifies the operating frequency of the target module in a working state from the first frequency to the third frequency.
[0251] In another embodiment, the first electronic device is in the second environment, and after the first electronic device receives an operation to start the target camera, the first electronic device reduces the power of the target module in the working state from the first power to the second power. Then, the first electronic device captures the second image through the target camera and displays the second shooting interface.
[0252] Exemplarily, the first electronic device reducing the power of the target module in the working state from the first power to the second power may include: when the first electronic device determines that the working frequency of the target module in the working state cannot be modified, the first electronic device reducing the power of the target module in the working state from the first power to the second power.
[0253] In one embodiment, continue as Figure 2 As shown, the second shooting interface may be the shooting interface 210 of the first electronic device.
[0254] In another embodiment, the first electronic device is in the second environment, and after the first electronic device receives an operation to start the target camera, the first electronic device can determine, based on the frequency identifier of the target camera, that the sampling frequency of the target camera has been modified to the working frequency of the target module in the working state. times, the first electronic device can capture the second image through the target camera and display the second shooting interface.
[0255] like Fig.15As shown, an embodiment of the present application also provides a chip system. The chip system 1500 includes at least one processor 1501 and at least one interface circuit 1502. At least one processor 1501 and at least one interface circuit 1502 can be interconnected through lines. The processor 1501 is used to support the electronic device to implement each step in the above method embodiment, and at least one interface circuit 1502 can be used to receive signals from other devices (such as memory) or send signals to other devices (such as communication interfaces). The chip system may include chips and may also include other discrete devices.
[0256] An embodiment of the present application also provides a computer storage medium, which includes instructions. When the instructions are executed on the above-mentioned electronic device, the electronic device executes each step in the above-mentioned method embodiment.
[0257] The embodiment of the present application also provides a computer program product including instructions, and when the instructions are executed on the above electronic device, the electronic device executes each step in the above method embodiment.
[0258] Regarding the technical effects of the chip system, computer storage medium, and computer program product, refer to the technical effects of the previous method embodiments.
[0259] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0260] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0261] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0262] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0263] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one device or distributed on multiple devices. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0264] In addition, each functional module in each embodiment of the present application may be integrated into one device, or each module may exist physically separately, or two or more modules may be integrated into one device.
[0265] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer storage medium, or transmitted from one computer storage medium to another computer storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0266] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A shooting method, characterized in that: Applied to a first electronic device, the first electronic device has a target module in a working state, and the target module is a module in the first electronic device that generates a strong magnetic environment when working; the shooting method includes: In a first environment, an operation of starting a target camera is received, a first image is captured through the target camera, and a first shooting interface is displayed; wherein the operating frequency of the target module in the working state is the first frequency, the sampling frequency of the target camera is the second frequency, and the power of the target module in the working state is the first power; In a second environment, an operation of starting the target camera is received, a second image is captured by the target camera, and a second shooting interface is displayed; wherein the ambient brightness of the second environment is lower than the ambient brightness of the first environment; in the second environment, the operating frequency of the target module in the working state is a third frequency, the sampling frequency of the target camera is a second frequency, and the power of the target module in the working state is a second power; Among them, in the second environment, the operating frequency and power of the target module in the working state and the sampling frequency of the target camera meet any of the following conditions: the third frequency is different from the first frequency, and the third frequency is M times the second frequency, M is an integer greater than or equal to 1; the second power is less than the first power; the first frequency is the same as the third frequency, and the second frequency is multiple of the first frequency times, N is an integer greater than 1.
2. The shooting method according to claim 1, characterized in that: In the second environment, the working frequency of the target module in working state and the sampling frequency of the target camera satisfy: the third frequency is different from the first frequency, and the third frequency is M times the second frequency; In the second environment, after receiving the operation of starting the target camera, the shooting method further includes: The first electronic device modifies the operating frequency of the target module in the working state from the first frequency to the third frequency.
3. The shooting method according to claim 2, characterized in that: The first electronic device modifies the operating frequency of the target module in the working state from the first frequency to the third frequency, including: The first electronic device determines whether the operating frequency of the target module in the working state supports modification; If the operating frequency of the target module in the working state supports modification, the operating frequency of the target module in the working state is modified from the first frequency to the third frequency.
4. The shooting method according to claim 3, characterized in that: The target module in working state is a wireless charging module, the second electronic device charges the first electronic device by wireless charging, and the charging parameters of the wireless charging module of the first electronic device change with the charging parameters of the second electronic device; The first electronic device determines whether the operating frequency of the target module in the working state supports modification, including: The first electronic device sends charging query information to the second electronic device; wherein the charging query information is used to query whether the working frequency of the wireless charging module of the second electronic device supports modification; The first electronic device receives charging feedback information from the second electronic device; wherein the charging feedback information is used to indicate whether the operating frequency of the wireless charging module of the second electronic device supports modification or does not support modification; The first electronic device determines, based on the charging feedback information, whether an operating frequency of the wireless charging module of the first electronic device supports modification.
5. The shooting method according to claim 4, characterized in that: The first electronic device modifies the operating frequency of the target module in the working state from the first frequency to the third frequency, including: The first electronic device sends frequency adjustment information to the second electronic device; wherein the frequency adjustment information is used to instruct the second electronic device to change the operating frequency of the wireless charging module of the second electronic device to the third frequency; The first electronic device receives power from the second electronic device; wherein the operating frequency of the wireless charging module of the second electronic device is the third frequency; The first electronic device changes the operating frequency of the wireless charging module of the first electronic device from the first frequency to the third frequency.
6. The shooting method according to claim 3, characterized in that: The target module in working state is a wireless charging module, a radio frequency module, or a board-level power supply wiring; wherein, when the target module in working state is a wireless charging module, the first electronic device charges the second electronic device by wireless charging, and the charging parameters of the wireless charging module of the second electronic device change with the charging parameters of the first electronic device; The first electronic device determines whether the operating frequency of the target module in the working state supports modification, including: The first electronic device queries whether the operating frequency of the wireless charging module of the first electronic device supports modification; or, the first electronic device queries whether the operating frequency of the radio frequency module in the first electronic device supports modification, or, the first electronic device queries whether the operating frequency of the signal corresponding to the board-level power routing in the first electronic device supports modification.
7. The shooting method according to claim 6, characterized in that: The first electronic device modifies the operating frequency of the target module in the working state from the first frequency to the third frequency, including: The first electronic device changes the operating frequency of the wireless charging module of the first electronic device from the first frequency to the third frequency; or, the first electronic device changes the operating frequency of the radio frequency module in the first electronic device from the first frequency to the third frequency, or, the first electronic device changes the operating frequency of the signal corresponding to the board-level power routing in the first electronic device from the first frequency to the third frequency.
8. The shooting method according to claim 1, characterized in that: In the second environment, the power of the target module in the working state satisfies: the second power is less than the first power; In the second environment, after receiving the operation of starting the target camera, the shooting method further includes: The first electronic device reduces the power of the target module in the working state from the first power to the second power.
9. The shooting method according to claim 8, characterized in that: The first electronic device reduces the power of the target module in the working state from the first power to the second power, including: If the operating frequency of the target module in the working state does not support modification, the first electronic device reduces the power of the target module in the working state from the first power to the second power.
10. The shooting method according to claim 9, characterized in that: The target module in working state is a wireless charging module; the second electronic device charges the first electronic device, and the charging parameter of the wireless charging module of the first electronic device changes with the charging parameter of the second electronic device; The first electronic device reduces the power of the target module in the working state from the first power to the second power, including: The first electronic device sends power reduction instruction information to the second electronic device; wherein the power reduction instruction information is used to instruct: reducing the power of the wireless charging module of the second electronic device from the first power to the second power; The first electronic device receives power from the second electronic device; wherein the power supplied to the second electronic device is the second power; The first electronic device reduces the power of the wireless charging module of the first electronic device from the first power to the second power.
11. The shooting method according to claim 9, characterized in that: The target module in working state is a wireless charging module, a radio frequency module, or a board-level power supply wiring; wherein, when the target module in working state is a wireless charging module, the first electronic device supplies power to the second electronic device, and the charging parameters of the wireless charging module of the second electronic device change with the change of the charging parameters of the first electronic device; In the second environment, after receiving the operation of starting the target camera, the shooting method further includes: The first electronic device reduces the power of the wireless charging module of the first electronic device from the first power to the second power; or, the first electronic device reduces the power of the radio frequency module of the first electronic device from the first power to the second power; or, the first electronic device reduces the power of the signal corresponding to the board-level power supply power routing in the first electronic device from the first power to the second power.
12. The shooting method according to claim 10, characterized in that: The first power is obtained according to a first voltage and a first current; and reducing the power of the wireless charging module of the first electronic device from the first power to the second power includes: The voltage of the wireless charging module of the first electronic device is reduced from the first voltage to the second voltage, and the current of the wireless charging module of the first electronic device is maintained at the first current; or, the current of the wireless charging module of the first electronic device is reduced from the first current to the second current, and the voltage of the wireless charging module of the first electronic device is maintained at the first voltage; or, the voltage of the wireless charging module of the first electronic device is reduced from the first voltage to a third voltage, and the current of the wireless charging module of the first electronic device is reduced from the first current to the third current.
13. The shooting method according to claim 1, characterized in that: In the second environment, the operating frequency of the target module in the working state and the sampling frequency of the target camera satisfy: the first frequency is the same as the third frequency, and the second frequency is the first frequency. times; In the second environment, after receiving the operation of starting the target camera, the shooting method further includes: In the second environment, after receiving the operation of starting the target camera, it is determined based on the frequency identifier of the target camera that the sampling frequency of the target camera has been modified to the working frequency of the target module in the working state. times.
14. The shooting method according to any one of claims 1 to 7, characterized in that: The first electronic device includes a dual sampling circuit corresponding to the target camera; The sampling frequency of the dual sampling circuit is consistent with the sampling frequency of the target camera.
15. The shooting method according to any one of claims 1 to 7, characterized in that: The second environment refers to an environment in which the ambient brightness is less than a preset brightness; in the second environment, the gain parameter value of the target camera is greater than or equal to a preset gain value.
16. An electronic device, characterized in that: The electronic device includes a display screen, a memory, at least one target module, at least one camera and at least one processor, wherein the target module is a module in the first electronic device that generates a strong magnetic environment when working; the display screen, the memory, the target module and the camera are respectively coupled to the processor; the memory stores computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method described in any one of claims 1 to 15.
17. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 15.
18. A computer program product, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 15.
