CN109068066B - Camera focusing correction method, related equipment and storage medium - Google Patents

Camera focusing correction method, related equipment and storage medium Download PDF

Info

Publication number
CN109068066B
CN109068066B CN201811178503.2A CN201811178503A CN109068066B CN 109068066 B CN109068066 B CN 109068066B CN 201811178503 A CN201811178503 A CN 201811178503A CN 109068066 B CN109068066 B CN 109068066B
Authority
CN
China
Prior art keywords
position register
focusing
control chip
motor control
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811178503.2A
Other languages
Chinese (zh)
Other versions
CN109068066A (en
Inventor
祝令冉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811178503.2A priority Critical patent/CN109068066B/en
Publication of CN109068066A publication Critical patent/CN109068066A/en
Application granted granted Critical
Publication of CN109068066B publication Critical patent/CN109068066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Lens Barrels (AREA)
  • Studio Devices (AREA)

Abstract

The application provides a camera focusing correction method, related equipment and a storage medium, wherein the method is applied to electronic equipment with electrostatic impact, and the focusing correction method comprises the following steps: when the camera shoots, acquiring focusing parameters, and writing the focusing parameters into a position register of the motor control chip; reading the data in the position register, and judging whether the data read from the position register is consistent with the focusing parameters or not; if the position register is inconsistent with the position register, performing power-off reset operation on the motor control chip, wherein the power-off reset operation is used for deleting data in the position register; rewriting the focusing parameter in the position register. Compared with the mode of adopting a physical structure, the method not only saves the hardware cost for arranging the conductive auxiliary materials on the camera, but also can accurately finish focusing.

Description

Camera focusing correction method, related equipment and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a camera focusing correction method, a camera focusing device, an electronic apparatus, and a computer storage medium.
Background
With the advancement of society, photographing has become an important part of people's daily life. When the intelligent terminal camera works, the interference from electrostatic impact can be frequently received, and the focusing failure of the camera is caused.
At present, reduce electrostatic interference and generally realize through the improvement of physical structure, mainly connect camera metallic decoration circle and mainboard ground through electrically conductive auxiliary material, form the route of discharging, reduce static as far as possible to the influence of camera module, nevertheless camera metallic decoration circle and mainboard ground probably have the contact incomplete, the route of discharging unstability scheduling problem, not only increase the hardware cost but also can not guarantee that the camera can not receive the interference to the burnt.
Disclosure of Invention
In order to solve the above problems, the present invention provides a camera focusing correction method, a camera focusing correction device, an electronic apparatus, and a storage medium, which can solve the problem that the camera focusing is interfered by static electricity.
The first aspect of the embodiments of the present invention provides a camera focusing correction method, which is applied to a camera module, where the camera module includes a camera and a motor control chip, where:
when the camera shoots, acquiring focusing parameters, and writing the focusing parameters into a position register of the motor control chip;
reading the data in the position register, and judging whether the data read from the position register is consistent with the focusing parameters or not;
if the position register is inconsistent with the static electricity, performing power-off reset operation on the motor control chip, wherein the power-off reset operation is used for deleting data in the position register and eliminating static electricity in the position register;
rewriting the focusing parameter in the position register.
A second aspect of the embodiments of the present invention provides a camera focusing correction apparatus, where the camera focusing correction apparatus is applied to an electronic device, and the camera focusing correction apparatus includes:
the acquisition unit is used for acquiring focusing parameters when the camera focuses;
the writing unit is used for writing the focusing parameters into a position register of the motor control chip;
a reading unit for reading the data in the position register;
the judging unit is used for judging whether the data read from the position register is consistent with the focusing parameters or not;
a reset unit configured to perform a power-off reset operation on the motor control chip, the power-off reset operation being configured to delete data in the position register and eliminate static electricity in the position register;
the writing unit is further configured to rewrite the focusing parameter in the position register after the reset unit performs a power-off reset operation on the motor control chip.
A third aspect of an embodiment of the present invention provides an electronic device, where the electronic device includes a processor, a memory, and a camera module, where the camera module includes a camera, a motor control chip, and a motor, the motor control chip includes a location register and a logic control circuit, a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method according to the first aspect of the embodiment of the present invention are implemented.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method of the first aspect of embodiments of the present invention.
The camera focusing correction method is applied to electronic equipment with electrostatic impact, and comprises the following steps: when the camera shoots, acquiring focusing parameters, and writing the focusing parameters into a position register of the motor control chip; reading the data in the position register, and judging whether the data read from the position register is consistent with the focusing parameters or not; if the position register is inconsistent with the static electricity, performing power-off reset operation on the motor control chip, wherein the power-off reset operation is used for deleting data in the position register and eliminating static electricity in the position register; rewriting the focusing parameter in the position register. Compared with the mode of adopting a physical structure, the electronic equipment using the camera focusing correction method not only saves the hardware cost for arranging the conductive auxiliary materials on the camera, but also can eliminate the interference of static electricity on the focusing of the camera, and can accurately finish the focusing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram of a camera focus correction method in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a camera focus correction method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another camera focus correction method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a camera focus calibration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of a mobile phone based on fig. 5 in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present invention may include various handheld devices with a shooting function, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, in the present application, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a system architecture diagram of a camera focus correction method according to an embodiment of the present invention, as shown in fig. 1, the system architecture includes a camera module 100, a processor 110, the camera module includes a camera 120, a motor control chip 130, and a motor 140, and the motor control chip may include an Inter-Integrated Circuit (I2C) interface 131, a location register 132, and a logic control Circuit 133. The processor 110 may control the camera module 100 to enable the camera 120 to complete a focusing operation, where the camera 120 includes but is not limited to a camera lens.
The processor 110 and the motor control chip 130 are connected through an I2C interface 131, the I2C interface 131 forms a Serial bus by a Data line (Serial Data, SDA) and a control line (Serial Clock L ine, SC L), specifically, the processor 110 can directly send Data to a position register 132 in the motor control chip 130 through the control line SC L and the Data line SDA, or read Data in the position register 132, the Data includes a relevant instruction for controlling the operation of the motor control chip, the relevant instruction can be a power-on reset instruction, an overcurrent protection instruction, a lens shading correction instruction, and the like, the position register 132 is connected to a logic control circuit 133, and the logic control circuit 133 directly controls the magnitude of an output current to drive the motor 140.
Specifically, the processor 110 may be a Central Processing Unit (CPU) for controlling each part of the electronic device to complete work.
Specifically, the position register 132 may be a Digital to analog converter (DAC) for converting a Digital signal into an analog signal, wherein the DAC may convert a written binary Digital signal into an analog voltage signal. The number of bits of the binary digital signal is different, and the number of analog voltage signals that the digital-to-analog converter can convert is also different. In general, the more the number of bits of a binary digital signal, the more the number of analog voltage signals that can be converted, and the higher the focusing accuracy that can be provided. For example, for binary digital signals, if the DAC is a 10-Bit DAC, it can convert 1024 (2)10) Different analog voltage signals.
Specifically, the position register 132 receives a focusing parameter sent by the processor 110, where the focusing parameter may be a binary code, the position register 132 may temporarily store the binary code, convert the binary code into a corresponding voltage signal, and then send the voltage signal to the logic control circuit 133, the logic control circuit 133 generates a corresponding output current according to the voltage signal, and the output current drives the motor 140 to operate, so that the camera 120 moves to a focusing position, and completes a focusing operation.
Referring to fig. 2 based on the system architecture of fig. 1, fig. 2 is a schematic flowchart of a camera focus correction method according to an embodiment of the present invention, where the method includes the following steps:
step 201, when the camera takes a picture, obtaining a focusing parameter, and writing the focusing parameter into a position register of the motor control chip;
the focusing parameter in the present application may be a binary code, the focusing parameter is generated based on environment information during shooting, optionally, the environment information during shooting may include a distance between the camera and a shot object, the position register is configured to convert the focusing parameter into a voltage signal and send the voltage signal to the logic control circuit, and the position register may be a digital-to-analog converter DAC.
Specifically, the processor obtains a corresponding focusing parameter according to the environment information during shooting, and writes the focusing parameter into a position register in the motor control chip through a control line SC L and a data line SDA forming an I2C interface, where the position register may include, but is not limited to, a 10Bit DAC, an 8Bit DAC, etc., where a 10Bit equal-digit number merely indicates the number of different switchable focusing parameters, for example, 10Bit indicates that the position register can switch 1024 different focusing parameters, 8Bit indicates that the position register can switch 256 different focusing parameters, the position register is used to convert the written focusing parameter into a corresponding analog signal, and the analog signal may be a voltage signal.
When the camera shoots, the focusing parameters are obtained, and the focusing parameters are generated according to the environmental information during shooting, so that more accurate focusing parameters can be obtained. The use of a more digital-to-analog converter also allows for greater focusing accuracy.
Step 202, reading the data in the position register, and determining whether the data read from the position register is consistent with the focusing parameter. If yes, go to step 205, otherwise go to step 203.
If the static electricity interference exists in the position register, when the static electricity in the position register is accumulated to a certain degree, the data stored in the position register is abnormal, and the focusing operation cannot be accurately finished subsequently. Based on this, the present application may determine whether there is electrostatic interference in the position register by adding step 202 to detect whether there is an abnormality in the data stored in the position register.
The processor writes a focus parameter into the position register, reads the focus parameter data in the position register through the control line SC L and the data line SDA forming the I2C interface, and determines whether the read data and the written focus parameter are the same, that is, whether the binary code is the same.
Specifically, when writing the focus parameter into the position register, the processor may temporarily store the focus parameter in the processor, compare the focus parameter with the read data in the position register, determine whether the binary codes of the two binary codes are the same, and detect whether the data stored in the position register is abnormal.
Step 203, performing a power-off reset operation on the motor control chip.
The processor controls the motor control chip to power off and reset firstly, and is used for clearing data in the position register and clearing electrostatic interference. The static electricity may interfere with the writing process in step 201, so that the data in the position register is inconsistent with the written focusing parameters, and focusing cannot be performed during shooting.
The location register is a Random Access Memory (RAM). The data stored on the RAM can disappear automatically after the power is cut off, and the RAM is sensitive to static electricity and is easy to be interfered.
Step 204, rewriting the focusing parameter into the position register.
Specifically, because the step 203 has already performed the power-off reset operation, the electrostatic interference in the position register has been eliminated, and the data stored in the position register returns to normal, the step 202 does not need to be repeatedly performed, and because the time interval between the step 203 and the step 204 is short, the static electricity will not be accumulated to the extent that the static electricity affects the position register in a short time, the focusing parameter has already been corrected and no error will be generated in a short time, thereby ensuring the accuracy of the subsequent focusing operation.
Step 205, controlling the motor to complete focusing.
Wherein, the motor is controlled by a motor control chip.
Specifically, the position register converts the correct focusing parameters into corresponding voltage signals and sends the voltage signals to the logic control circuit, the logic control circuit outputs corresponding output currents according to the voltage signals, the output currents drive the motor to work, and the motor controls the lens to move to a focusing position to complete focusing.
Referring to fig. 3, fig. 3 is a schematic flow chart of another camera focus correction method according to an embodiment of the present invention, fig. 3 is obtained by further optimizing on the basis of fig. 2, and the method flow shown in fig. 3 includes the following steps:
step 301, when the camera takes a picture, obtaining a focusing parameter, and writing the focusing parameter into a position register of the motor control chip.
Step 302, obtaining a time difference between a time of performing a power-off reset operation on the motor control chip and a current time.
The processor can record the time of the last power-off reset operation and store the time in the processor, and when a new shooting operation is executed, the time difference between the time of the power-off reset operation and the current time is obtained through calculation, and the time difference data is stored in the processor.
After power-off reset, a period of time is required for static electricity to be accumulated to a value which is enough to interfere the position register, whether the position register is subjected to the static electricity interference can be no longer detected within a period of time after the power-off reset operation in order to avoid complicated reading operation, whether the static electricity interference exists in the position register is determined by obtaining the time difference between the last time of the power-off reset operation and the current time, and repeated reading operation can be avoided. For scenes of continuous shooting (photographing or video recording), the focusing process can be simplified, so that accurate focusing is realized.
Step 303, obtaining the current humidity, and determining the target humidity range in which the current humidity falls.
The humidity information of the surrounding environment can be acquired through a humidity sensor (or a temperature and humidity sensor) on the electronic device, and the processor determines the corresponding humidity range according to the humidity information. The corresponding relation is that a target preset time corresponding to the target humidity range is determined according to the humidity, optionally, when the humidity is less than or equal to 45%, the target preset time is set to be thirty minutes, and when the humidity is greater than 45%, the target preset time is set to be sixty minutes.
And step 304, determining a target preset time length corresponding to the target humidity range according to the corresponding relation between the humidity range and the preset time length.
The generation of static has very big relation with humidity, is difficult to produce static under the environment that humidity is great, and just produces static very easily in drier environment, through acquireing humidity information, can set up different targets according to different environment and predetermine for a long time. Compared with the method for presetting the time length by adopting the fixed target, the method and the device for presetting the time length can adapt to the environments with different humidity, on one hand, the longer target preset time length can be set in the environment with higher humidity, the repeated reading operation is avoided, and the focusing process is simplified. On the other hand, a shorter target preset time can be set in an environment with lower humidity, and the focusing accuracy is improved.
Step 305, judging whether the time difference between the time of once power-off reset operation on the motor control chip and the current time is greater than a target preset time length; if yes, go to step 306, otherwise go to step 309.
The preset target duration may be a preset duration that elapses after the last power-off reset operation is performed in the processor, and the preset target duration may be set by a duration that static electricity is accumulated after the power-off reset operation to a duration that may affect the threshold requirement of step 201.
Specifically, the time difference data is compared with a target preset time length, and whether the time length of the time difference is greater than the target preset time length is judged.
Whether the operation of reading the data in the position register should be performed again can be clearly judged by comparing with a target preset time period, which can be set according to the degree of difficulty of generation of static electricity in the surrounding environment.
The target preset time length can be preset and stored in a nonvolatile memory of the processor. For example, the target preset time period may be set to 30 minutes.
Wherein, step 303 and step 304 are optional steps.
Step 306, reading the data in the position register, and determining whether the data read from the position register is consistent with the focusing parameter. If yes, go to step 309, otherwise go to step 307.
Step 307, performing a power-off reset operation on the motor control chip.
Step 308, rewriting the focusing parameter into the position register.
Step 309, controlling the motor to complete focusing.
The specific implementation of the steps 301, 306 to 309 can refer to the corresponding description of the steps 201 to 205 shown in fig. 2, and is not described herein again.
Referring to fig. 4, fig. 4 is a block diagram of a camera focus calibration apparatus according to an embodiment of the present invention, where the camera focus calibration apparatus 400 includes:
an obtaining unit 410, configured to obtain a focusing parameter when the camera performs focusing;
a write unit 420 for writing the focusing parameter into a position register of the motor control chip;
a reading unit 430 for reading the data in the position register;
a determining unit 440, configured to determine whether the data read from the position register is consistent with the focusing parameter;
a reset unit 450, configured to perform a power-off reset operation on the motor control chip, where the power-off reset operation is used to delete data in the position register and eliminate static electricity in the position register.
The writing unit 420 is further configured to rewrite the focusing parameter in the position register after the reset unit 450 performs a power-off reset operation on the camera motor control chip.
In one embodiment, the writing unit 420 writes the focusing parameter into a first storage area of a position register of the motor control chip, specifically:
the write unit 420 writes the focusing parameter into the position register of the motor control chip through the I2C interface.
The reading unit 430 reads data in the first storage area, specifically:
the reading unit 430 reads the data in the location register through the I2C interface.
In one embodiment, the camera focus correction apparatus 400 may further include a control focus unit 460.
The focus control unit 460 is configured to control the motor to complete focusing when the determining unit 440 determines that the data read from the first storage area is consistent with the focus parameter, or after the writing unit 420 rewrites the focus parameter in the location register.
In one embodiment, the focus control unit 460 controls the motor to complete focusing, specifically:
the focus control unit 460 controls the logic control circuit to generate an output current corresponding to the focus parameter, and the output current drives the motor to complete focusing.
In one embodiment, the camera focusing correction apparatus 400 may further include a time obtaining unit 470, a time judging unit 480, and a time determining unit 490, wherein:
a time obtaining unit 470, configured to obtain a time difference between a time of performing a power-off reset operation on the motor control chip and a current time;
a time determining unit 480, configured to determine whether the time difference is greater than a preset target time duration;
the time determining unit 490 is configured to determine a target preset time duration corresponding to the target humidity range according to a corresponding relationship between the humidity range and the preset time duration.
For specific implementation of the units in the focus correction apparatus 400 in fig. 4, reference may be made to the method embodiments in fig. 2 or fig. 3, which are not described herein again.
By implementing the focusing correction device shown in fig. 4, the hardware cost for arranging the conductive auxiliary materials on the camera can be saved, and focusing can be accurately finished.
It should be understood that the above units may be embedded in hardware or independent from a processor in the electronic device, or may be stored in a memory in the electronic device in software, so that the processor can call the above units to perform the corresponding operations.
The embodiment of the present invention further provides an electronic device, which may be any electronic device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of Sales (POS), a vehicle-mounted computer, and the like.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 includes a processor 501 and a memory 502, wherein the electronic device 500 may further include a bus 503, the processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The electronic device 500 may further include a camera module 504, where the camera module 504 includes a camera, a motor control chip, a motor, and the like, and the motor control chip includes a position register, a logic control circuit, and the like. Memory 502 is used to store one or more programs containing instructions; processor 501 is configured to call instructions stored in memory 502 to perform some or all of the method steps described above in fig. 2-3.
Taking an electronic device as a mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a cellular phone related to an electronic device provided by an embodiment of the present invention. Referring to fig. 6, the handset includes: camera module 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, Wireless Fidelity (WiFi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the camera module 910 may be configured to control the camera to complete focusing, where the camera module includes, but is not limited to, a camera, a motor control chip, and a motor, the motor control chip includes, but is not limited to, a position register, a logic control circuit, a Power-On Reset (POR), an over-current protection (OCP), a lens Shading Correction (L ens Shading Correction, L SC), and the like, and specifically, the position register receives a focusing parameter sent by the processor, where the focusing parameter may be a binary code, the position register may temporarily store the binary code, convert the binary code into a corresponding voltage signal, and then send the voltage signal to the logic control circuit, where the logic control circuit generates a corresponding output current according to the voltage signal, and the output current drives the motor to operate, so that the focal length of the camera moves to a focusing position, and completes focusing operation.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a liquid crystal display (L required CrystalDisplay, &ttttranslation = L "&tttl &ttt/t &tttcd), an Organic light Emitting Diode (Organic L sight-Emitting Diode, O L ED), and the like, although in fig. 3, the fingerprint recognition module 931 and the display screen 941 are implemented as two separate parts to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be integrated to implement the input and play functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and converts the electrical signal into audio data after being received by the audio circuit 960, and then sends the audio data processed by the audio data playing processor 980 to, for example, another mobile phone, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 3 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a bluetooth module, etc., which will not be described herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute some or all of the steps of the method described in fig. 2 and/or fig. 3.
The computer readable storage medium may be an internal storage unit of the server according to any of the foregoing embodiments, for example, a hard disk or a memory of the server. The computer readable storage medium may be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided in the server. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the server. The computer-readable storage medium is used for storing the computer program and other programs and data required by the server. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the server and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed server and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The camera focusing correction method is applied to a camera module, the camera module comprises a camera and a motor control chip, and the method comprises the following steps:
when the camera shoots, acquiring focusing parameters, and writing the focusing parameters into a position register of the motor control chip;
reading the data in the position register, and judging whether the data read from the position register is consistent with the focusing parameters or not;
if the position register is inconsistent with the static electricity, performing power-off reset operation on the motor control chip, wherein the power-off reset operation is used for deleting data in the position register and eliminating static electricity in the position register;
rewriting the focusing parameter in the position register.
2. The method of claim 1, wherein the motor control chip further comprises an inter-integrated circuit I2C interface, and wherein writing the focus parameter to a position register of the motor control chip comprises:
writing the focusing parameters into a position register of the motor control chip through the I2C interface;
the reading data in the location register comprises:
the data in the location register is read through the I2C interface.
3. The method of any of claims 1-2, wherein the camera module further comprises a motor, the method further comprising:
and if the data read from the first storage area is consistent with the focusing parameters, or after the step of rewriting the focusing parameters in the position register is executed, controlling the motor to finish focusing.
4. The method of claim 3, wherein the motor control chip further comprises a logic control circuit, and the controlling the motor to complete focusing comprises:
and controlling the logic control circuit to generate an output current corresponding to the focusing parameter, wherein the output current drives a motor to finish focusing.
5. The method of claim 1, wherein after the writing the focusing parameter to a position register of the motor control chip and before the reading data in the position register, the method further comprises:
acquiring the time difference between the time of once power-off reset operation on the motor control chip and the current time;
judging whether the time difference is greater than a target preset time length or not;
and if the time difference is greater than the target preset time length, executing the step of reading the data in the position register.
6. The method of claim 5, further comprising:
and if the time difference is less than or equal to the target preset time length, executing the step of controlling the motor to finish focusing.
7. The method according to claim 5 or 6, wherein after acquiring a time difference between a time when a power-off reset operation is performed on the motor control chip and a current time, before determining whether the time difference is greater than a target preset time period, the method further comprises:
acquiring current humidity, and determining a target humidity range in which the current humidity falls;
and determining the target preset time length corresponding to the target humidity range according to the corresponding relation between the humidity range and the preset time length.
8. A camera focusing correction device is characterized in that the camera focusing correction device is applied to an electronic device, and comprises:
the acquisition unit is used for acquiring focusing parameters when the camera focuses;
the writing unit is used for writing the focusing parameters into a position register of a motor control chip;
a reading unit for reading the data in the position register;
the judging unit is used for judging whether the data read from the position register is consistent with the focusing parameters or not;
a reset unit configured to perform a power-off reset operation on the motor control chip, the power-off reset operation being configured to delete data in the position register and eliminate static electricity in the position register;
the writing unit is further configured to rewrite the focusing parameter in the position register after the reset unit performs a power-off reset operation on the motor control chip.
9. An electronic device, comprising a processor, a memory, and a camera module, wherein the camera module comprises a camera, a motor control chip, and a motor, the motor control chip comprises a position register and a logic control circuit, the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201811178503.2A 2018-10-10 2018-10-10 Camera focusing correction method, related equipment and storage medium Active CN109068066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811178503.2A CN109068066B (en) 2018-10-10 2018-10-10 Camera focusing correction method, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811178503.2A CN109068066B (en) 2018-10-10 2018-10-10 Camera focusing correction method, related equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109068066A CN109068066A (en) 2018-12-21
CN109068066B true CN109068066B (en) 2020-07-10

Family

ID=64763732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811178503.2A Active CN109068066B (en) 2018-10-10 2018-10-10 Camera focusing correction method, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109068066B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868266B (en) * 2019-10-31 2022-01-28 维沃移动通信有限公司 Electronic equipment and information processing method
CN110913134B (en) * 2019-11-26 2021-08-20 Oppo广东移动通信有限公司 Focusing method and device, camera, storage medium and electronic equipment
CN113709326B (en) * 2021-08-09 2024-06-18 维沃移动通信(杭州)有限公司 Lens shading correction method and device and electronic equipment
CN113885416A (en) * 2021-10-20 2022-01-04 上海新纪元机器人有限公司 Method and system for automatically detecting servo motor parameters

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069335A (en) * 2010-08-06 2013-04-24 佳能株式会社 Image pickup apparatus, accessory, and imaging system
CN103916577A (en) * 2014-03-24 2014-07-09 南昌欧菲光电技术有限公司 Electrostatic conducting element and camera shooting module with same
CN104598028A (en) * 2015-01-09 2015-05-06 上海小蚁科技有限公司 Image pickup device and image pickup method
CN105827961A (en) * 2016-03-22 2016-08-03 努比亚技术有限公司 Mobile terminal and focusing method
CN107580165A (en) * 2017-09-20 2018-01-12 努比亚技术有限公司 Camera lens, projecting method with projecting function and the terminal for being provided with the camera lens

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8319829B2 (en) * 2008-05-16 2012-11-27 Ffei Limited Method and system for controlling the position of a microscope lens

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069335A (en) * 2010-08-06 2013-04-24 佳能株式会社 Image pickup apparatus, accessory, and imaging system
CN103916577A (en) * 2014-03-24 2014-07-09 南昌欧菲光电技术有限公司 Electrostatic conducting element and camera shooting module with same
CN104598028A (en) * 2015-01-09 2015-05-06 上海小蚁科技有限公司 Image pickup device and image pickup method
CN105827961A (en) * 2016-03-22 2016-08-03 努比亚技术有限公司 Mobile terminal and focusing method
CN107580165A (en) * 2017-09-20 2018-01-12 努比亚技术有限公司 Camera lens, projecting method with projecting function and the terminal for being provided with the camera lens

Also Published As

Publication number Publication date
CN109068066A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109068066B (en) Camera focusing correction method, related equipment and storage medium
EP3435199B1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
CN109543570B (en) Fingerprint identification method and related product
AU2018273505B2 (en) Method for capturing fingerprint and associated products
WO2018214734A1 (en) Photographing control method and related product
CN104092932A (en) Acoustic control shooting method and device
CN107613129B (en) Unlocking method and related product
CN107317918B (en) Parameter setting method and related product
CN111212242A (en) Exposure method and electronic apparatus
CN103699373A (en) Interface color display method, device and system
CN107302633A (en) application control method, device, storage medium and electronic equipment
CN108063897B (en) Camera assembly, focal length adjusting method and mobile terminal
CN107545163B (en) Unlocking control method and related product
CN107657160B (en) Face information acquisition method and related product
CN108600542B (en) Gyroscope calibration method and device
CN103674314A (en) Power source, electronic device and temperature detection method
CN112764543A (en) Information output method, terminal equipment and computer readable storage medium
CN106488168B (en) Method and device for switching angles of pictures collected in electronic terminal
CN106469310B (en) Method and device for extracting characters in picture
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN108989555B (en) Image processing method and related product
CN103685935A (en) Methods and devices for controlling camera image capture
CN103731552B (en) A kind of shooting changing method of mobile terminal, device and electronic equipment
CN108304709B (en) Face unlocking method and related product
CN112311029A (en) Charging method, electronic device and storage medium

Legal Events

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