A method of starting a camera, a user equipment and a storage medium are provided. A memory in the user equipment is additionally utilized to store calibrated OTP data therein so that the calibrated OTP data stored in the memory can be written directly into a register of an optical sensor of the camera each time the user equipment accesses the camera to thereby avoid OTP data calibration each time the user equipment accesses the camera, and shorten a period of time for the user equipment to access the camera and a period of time for the camera to start while avoiding an overly amount of calibration calculations, lowering a load on a kernel of the user equipment and improving the experience of a user.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method of starting a camera in a user equipment comprising: receiving an instruction to start the camera; and reading camera module One Time Programmable (OTP) data in a memory in response to the instruction and when valid camera module OTP data is read, writing the valid camera module OTP data into a register of an optical sensor of the camera wherein the reading camera module OTP data in the memory and when valid camera module OTP data is read, writing the valid camera module OTP data into the register of the optical sensor of the camera comprises: reading the camera module OTP data in the memory, and judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly, and when it is judged that the camera module OTP data has been calibrated correctly, writing the camera module OTP data into the register of the optical sensor of the camera.
2. The method of claim 1 , further comprising: when no valid camera module OTP data is read, reading camera module OTP data to be calibrated in an OTP register, and when valid camera module OTP data to be calibrated is read, calibrating the camera module OTP data to be calibrated against with standard camera module OTP data, and writing the calibrated camera module OTP data into the register of the optical sensor of the camera and storing the calibrated camera module OTP data into the memory.
3. The method of claim 1 , wherein the judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly comprises: judging whether the camera module OTP data is a preset initial value, and when it is judged that the camera module OTP data is the preset initial value, determining that the camera module OTP data has not been calibrated; or when it is judged that the camera module OTP data is not the preset initial value, determining that the camera module OTP data has been calibrated, and further judging whether the camera module OTP data is located in a preconfigured valid area, and when it is judged that the camera module OTP data is located in the preconfigured valid area, determining that the camera module OTP data has been calibrated correctly; or when it is judged that the camera module OTP data is not located in the preconfigured valid area, determining that the camera module OTP data has not been calibrated correctly.
4. The method of claim 1 , wherein the camera module OTP data comprises a lens uniformity parameter of a module, an auto white balance parameter of the module and an auto focus location of the module.
5. The method of claim 1 , wherein the memory is a nonvolatile random access memory.
6. A user equipment comprising one or more processors and a storage medium storing computer readable program codes, wherein the one or more processors are configured to execute the computer readable program codes to perform: receiving an instruction to start the camera; and reading camera module One Time Programmable (OTP) data in a memory in response to the instruction and when valid camera module OTP data is read, writing the valid camera module OTP data into a register of an optical sensor of the camera wherein the reading camera module OTP data in the memory and when valid camera module OTP data is read, writing the valid camera module OTP data into the register of the optical sensor of the camera comprises: reading the camera module OTP data in the memory, and judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly, and when it is judged that the camera module OTP data has been calibrated correctly, writing the camera module OTP data into the register of the optical sensor of the camera.
7. The user equipment of claim 6 , wherein the one or more processors are configured to execute the computer readable program codes to further perform: when no valid camera module OTP data is read, reading camera module OTP data to be calibrated in an OTP register, and when valid camera module OTP data to be calibrated is read, calibrating the camera module OTP data to be calibrated against with standard camera module OTP data, and writing the calibrated camera module OTP data into the register of the optical sensor of the camera and storing the calibrated camera module OTP data into the memory.
8. The user equipment of claim 6 , wherein the judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly comprises: judging whether the camera module OTP data is a preset initial value, and when it is judged that the camera module OTP data is the preset initial value, determining that the camera module OTP data has not been calibrated; or when it is judged that the camera module OTP data is not the preset initial value, determining that the camera module OTP data has been calibrated, and further judging whether the camera module OTP data is located in a preconfigured valid area, and when it is judged that the camera module OTP data is located in the preconfigured valid area, determining that the camera module OTP data has been calibrated correctly; or when it is judged that the camera module OTP data is not located in the preconfigured valid area, determining that the camera module OTP data has not been calibrated correctly.
9. The user equipment of claim 6 , wherein the camera module OTP data comprises a lens uniformity parameter of a module, an auto white balance parameter of the module and an auto focus location of the module.
10. The user equipment of claim 6 , wherein the memory is a nonvolatile random access memory.
11. A non-transitory computer storage medium, storing computer readable program codes, the computer readable program codes being executed by one or more processors to perform: receiving an instruction to start the camera; and reading camera module One Time Programmable (OTP) data in a memory in response to the instruction and when valid camera module OTP data is read, writing the valid camera module OTP data into a register of an optical sensor of the camera wherein the reading camera module OTP data in the memory and when valid camera module OTP data is read, writing the valid camera module OTP data into the register of the optical sensor of the camera comprises: reading the camera module OTP data in the memory, and judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly, and when it is judged that the camera module OTP data has been calibrated correctly, writing the camera module OTP data into the register of the optical sensor of the camera.
12. The non-transitory computer storage medium of claim 11 , wherein the computer readable program codes are executed by one or more processors to further perform: when no valid camera module OTP data is read, reading camera module OTP data to be calibrated in an OTP register, and when valid camera module OTP data to be calibrated is read, calibrating the camera module OTP data to be calibrated against with standard camera module OTP data, and writing the calibrated camera module OTP data into the register of the optical sensor of the camera and storing the calibrated camera module OTP data into the memory.
13. The non-transitory computer storage medium of claim 11 , wherein the judging whether the camera module OTP data has been calibrated, and when it is judged that the camera module OTP data has been calibrated, further judging whether the camera module OTP data has been calibrated correctly comprises: judging whether the camera module OTP data is a preset initial value, and when it is judged that the camera module OTP data is the preset initial value, determining that the camera module OTP data has not been calibrated; or when it is judged that the camera module OTP data is not the preset initial value, determining that the camera module OTP data has been calibrated, and further judging whether the camera module OTP data is located in a preconfigured valid area, and when it is judged that the camera module OTP data is located in the preconfigured valid area, determining that the camera module OTP data has been calibrated correctly; or when it is judged that the camera module OTP data is not located in the preconfigured valid area, determining that the camera module OTP data has not been calibrated correctly.
14. The non-transitory computer storage medium of claim 11 , wherein the camera module OTP data comprises a lens uniformity parameter of a module, an auto white balance parameter of the module and an auto focus location of the module.
15. The non-transitory computer storage medium of claim 11 , wherein the memory is a nonvolatile random access memory.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
April 18, 2014
May 10, 2016
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.