CN-121985207-A - Shooting method and related equipment
Abstract
The application discloses a shooting method and related equipment, and belongs to the technical field of terminals. The method comprises the steps of responding to a camera starting instruction, controlling the first camera to start, and matching the correlated sampling CDS frequency of the first camera with the switching frequency of the target switching power supply in the starting process of the first camera under the condition that the target switching power supply is started, so that the CDS frequency and the switching frequency of the target switching power supply are in a frequency multiplication relationship, and the target switching power supply is an interference source of the first camera. The application eliminates the switching noise in the CDS system calculation process by matching the CDS frequency with the switching frequency of the switching noise, thereby improving the phenomenon of black stripes of images caused by the switching noise of the switching power supply under the condition of not increasing the cost.
Inventors
- Xie Yuankun
- ZHANG LIXIN
- LI YAN
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20241025
Claims (11)
- 1. A photographing method, applied to an electronic device, the method comprising: responding to a camera starting instruction, and controlling the first camera to start; under the condition that a target switching power supply is started, in the starting process of the first camera, matching the double-phase sampling CDS frequency of the first camera with the switching frequency of the target switching power supply, so that the CDS frequency and the switching frequency of the target switching power supply are in a frequency multiplication relationship, and the target switching power supply is an interference source of the first camera.
- 2. The method of claim 1, wherein matching the dual correlated sampling CDS frequency of the first camera with the switching frequency of the target switching power supply comprises: in the case where the number of the target switching power supplies is one, adjusting the CDS frequency according to the switching frequency of the target switching power supplies; in the case where the number of the target switching power supplies is plural, the switching frequencies of the plural target switching power supplies are adjusted according to the CDS frequency.
- 3. The method of claim 2, wherein the adjusting the CDS frequency according to the switching frequency of the target switching power supply in the case that the number of the target switching power supplies is one, comprises: multiplying the switching frequency of the target switching power supply with a preset value to obtain a first CDS frequency under the condition that the number of the target switching power supplies is one; and adjusting the CDS frequency to the first CDS frequency.
- 4. The method of claim 2, wherein the adjusting the switching frequencies of the plurality of target switching power supplies according to the CDS frequency in the case that the number of target switching power supplies is a plurality, comprises: Under the condition that the number of the target switching power supplies is multiple, multiplying the CDS frequency values with different preset values respectively to obtain multiple target switching frequencies, wherein the multiple target switching frequencies are all in a preset switching frequency range; and adjusting the switching frequencies of a plurality of target switching power supplies based on the target switching frequencies.
- 5. The method of any one of claims 1-4, wherein the method further comprises: controlling the first camera to be mapped under the condition that the target switching power supply is not turned on; if the target switching power supply is in a state to be started, determining a target switching frequency according to the current CDS frequency; And controlling the target switching power supply to operate at the target switching frequency.
- 6. The method of any of claims 1-4, wherein the electronic device comprises a camera drive and a switching power supply drive; Under the condition that the target switching power supply is turned on, before the correlated sampling CDS frequency of the first camera is matched with the switching frequency of the target switching power supply in the starting process of the first camera, the method further comprises the following steps: the camera driver queries corresponding switch information according to the camera identification of the first camera, and the switch information is used for indicating the target switch power supply; The camera driver sends a switch power supply state query request to the switch power supply driver, wherein the switch power supply state query request carries the switch information; The switch power supply drive sends a switch power supply state query response to the camera drive, the switch power supply state query response carries switch power supply state indication information, the switch power supply state indication information is used for indicating that the target switch power supply is turned on, and the switch power supply state indication information is determined based on the switch information.
- 7. A photographing method, applied to an electronic device, the method comprising: responding to a camera starting instruction, and controlling the first camera to start; Under the condition that a target switching power supply is started, in the starting process of the first camera, the switching frequency of the target switching power supply is adjusted to be a preset switching frequency, the difference between the preset switching frequency and the correlated sampling CDS frequency of the first camera is larger than a preset difference, and the target switching power supply is an interference source of the first camera.
- 8. The method of claim 7, wherein the method further comprises: if the first camera is closed, controlling the switching frequency of the target switching power supply to be recovered to a first switching frequency; And when the first camera is started again, readjusting the switching frequency of the target switching power supply to the preset switching frequency.
- 9. An electronic device comprising one or more processors and memory coupled to the one or more processors, the memory to store computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-6 or to perform the method of claim 7 or 8.
- 10. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any one of claims 1-6 or to perform the method of claim 7 or 8.
- 11. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-6 or to perform the method of claim 7 or 8.
Description
Shooting method and related equipment Technical Field The application relates to the technical field of terminals, in particular to a shooting method and related equipment. Background Currently, electronic devices such as mobile phones and tablet computers are equipped with cameras, and users can trigger the electronic devices to shoot images, record videos and the like through the cameras. In addition to the camera, a switching power supply is usually disposed on a main board of the electronic device, and the switching power supply can be used for converting the voltage output by a battery of the electronic device into the voltage required by the corresponding functional module during operation, wherein the functional module comprises a loudspeaker, a display screen, a microphone and the like. However, when shooting by a camera, some switching power supplies are easy to become interference sources, and image quality is affected, so that a dark stripe phenomenon occurs in an image. Disclosure of Invention The application provides a shooting method and related equipment, which can solve the problem that some switching power supplies are easy to cause dark stripes of images when shooting through a camera. The technical scheme is as follows: in a first aspect, a photographing method is provided and applied to an electronic device, and the method includes: And under the condition that the target switching power supply is started, matching the CDS frequency of the first camera with the switching frequency of the target switching power supply in the starting process of the first camera, so that the CDS frequency and the switching frequency of the target switching power supply are in a frequency multiplication relationship, and the target switching power supply is an interference source of the first camera. Illustratively, the first camera is camera a, which is the primary camera. In this way, by matching the CDS frequency with the switching frequency of the switching noise to cancel the switching noise in the CDS system calculation process, the phenomenon that the image appears black streaks due to the switching noise of the switching power supply is improved without increasing the cost. As an example of the present application, matching the CDS frequency of the first camera with the switching frequency of the target switching power supply includes adjusting the CDS frequency according to the switching frequency of the target switching power supply in the case where the number of the target switching power supplies is one, and adjusting the switching frequencies of the plurality of target switching power supplies according to the CDS frequency in the case where the number of the target switching power supplies is a plurality. In this way, according to the number of target switching power supplies, it is determined to adjust the CDS frequency or adjust the switching frequency of the target switching power supplies so that the CDS frequency matches the switching frequency of the target switching power supplies without affecting the operation of the target switching frequency as much as possible. As an example of the present application, in the case where the number of the target switching power supplies is one, adjusting the CDS frequency according to the switching frequency of the target switching power supplies includes multiplying the switching frequency of the target switching power supplies by a preset value to obtain a first CDS frequency in the case where the number of the target switching power supplies is one, and adjusting the CDS frequency to the first CDS frequency. Therefore, the CDS frequency and the switching frequency of the target switching power supply are in a multiplied frequency relationship, so that switching noise can be eliminated in the calculation process, and the aim of inhibiting the switching noise is fulfilled. As an example of the present application, in case that the number of the target switching power supplies is plural, adjusting the switching frequencies of the plural target switching power supplies according to the CDS frequency includes multiplying the values of the CDS frequency by different preset values, respectively, to obtain plural target switching frequencies, each of which is within a preset switching frequency range, in case that the number of the target switching power supplies is plural, and adjusting the switching frequencies of the plural target switching power supplies based on the plural target switching frequencies. Therefore, the switching frequency of each target switching power supply can be respectively adjusted to different values according to the requirements, and the switching frequency of each adjusted target switching power supply is in a preset switching frequency range, so that the output stability of the target switching power supply is ensured. As an example of the application, the first camera is controlled to be mapped when the target switching po