Camera module abnormity monitoring system and method based on cloud computing

Through the camera module abnormality monitoring system based on cloud computing, auxiliary camera shooting and coordinate recording are used to analyze image differences, which solves the problem of image quality degradation during the use of the camera module, realizes image repair and fault reminders, and reduces maintenance cost.

CN118869979AInactive Publication Date: 2024-10-29SHENZHEN WEIQUNSHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411032965.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During use, camera modules are prone to problems such as lens damage, loose connection of electronic components, or abnormal focusing, resulting in blurred and distorted images, which are difficult to monitor and repair, and routine periodic inspections do not meet the needs of all users.

Method used

A camera module anomaly monitoring system based on cloud computing is used. Through the auxiliary camera module, rendering mapping module, quality control module, picture repair module and module monitoring module, cameras with other focal lengths are used to take reference pictures and record coordinates to conduct picture difference analysis. and quality assessment to remind users to replace lenses.

Benefits of technology

It realizes the restoration of image quality and abnormal monitoring of camera modules, prevents failures, reduces unnecessary maintenance and cost expenditures, and ensures the stability and continuity of the shooting system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869979A_ABST
    Figure CN118869979A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of equipment supervision, in particular to a camera module abnormity monitoring system and method based on cloud computing, and the system comprises an auxiliary camera shooting module, a rendering mapping module, a quality control module, a picture restoration module and a module monitoring module, the rendering mapping module is used for splicing reference pictures and identifying difference coefficients, the quality control module is used for calculating the quality coefficient of a main lens, the picture restoration module is used for performing color restoration on original pictures, and the module monitoring module is used for analyzing the sudden change condition of the shooting quality of the main lens. According to the invention, the brightness, contrast, color saturation and other parameters of the image can be adjusted so as to improve the image quality and make the image clearer and more real, and excessive maintenance and frequent replacement of the camera module are avoided so as to reduce unnecessary cost expenditure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment supervision, and in particular to a camera module abnormality monitoring system and method based on cloud computing. Background Art A camera module is a module that integrates a camera and related circuits to capture images or videos. It is usually composed of an image sensor, an image processor, a lens, and a connection interface. At present, the camera devices inside mobile phones, computers, and surveillance probes usually integrate multiple camera modules, each of which is responsible for shooting tasks with different focal lengths, so as to achieve multi-angle and multi-view shooting.

[0002] Because the camera module is made of precision components and is relatively fragile, it is easy to have problems such as lens damage, loose electronic component connections, or abnormal focusing, which will cause the captured image to be blurred and distorted. Since the multi-camera module will only use one lens according to the focal length when shooting, the content of each shot is different, so it is difficult to monitor and repair the quality of a single picture.

[0003] In addition, the camera module will be constantly worn during use. When the wear accumulates to a certain level, abnormal conditions such as component short circuit, lens damage or loose locking components will occur. The conventional solution is to regularly disassemble the camera module for component inspection, but different users have different requirements for camera use. Regular inspection of the camera does not meet the needs of some users. Summary of the invention

[0004] The purpose of the present invention is to provide a camera module abnormality monitoring system and method based on cloud computing to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: A camera module abnormality monitoring system based on cloud computing, comprising: an auxiliary camera module, a rendering mapping module, a quality control module, an image repair module and a module monitoring module; The auxiliary camera module is used to use cameras with other focal lengths as auxiliary lenses to shoot when the camera module is shooting, and record the reference pictures taken by each auxiliary lens and the position coordinates of each auxiliary lens in the cloud database; The rendering mapping module is used to use the computing resources provided by the cloud to blur the picture taken by the auxiliary lens, and map the reference pictures to the original pictures according to the coordinates of the auxiliary lens, splice all the reference pictures to obtain the comparison picture, and identify the difference coefficient between the comparison picture and the original picture; The quality control module is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the shooting frequency and average jitter of the user, and use the quality coefficient as the restoration parameter of the picture; The image restoration module is used to perform color restoration on the original image according to the difference coefficient between the comparison image and the original image, and to control the restoration rate of the original image by the quality coefficient of the image to obtain the restored original image; The module monitoring module is used to draw a function of the difference coefficient between the picture taken by the main lens and the comparison picture as the number of shots changes. According to the change function of the rendering difference, the mutation phenomenon of the main lens shooting quality is analyzed. When the mutation rate is higher than the quality coefficient of the picture, the user is reminded to replace the main lens.

[0006] Furthermore, the auxiliary camera module includes: a lens shooting unit and a module positioning unit; The lens shooting unit is used to use other lenses in the camera module as auxiliary lenses to shoot pictures at the same time as the camera module shoots, the picture taken by the main lens is recorded as the original picture, and the picture taken by the auxiliary lens is recorded as the reference picture; The module positioning unit is used to establish a coordinate system for the location of the camera module and provide the coordinates of the main lens and each auxiliary lens.

[0007] Further, the rendering mapping module includes: a focal length processing unit, a mapping synthesis unit and a rendering difference unit; The focal length processing unit is used to perform blur processing on the pictures taken by all auxiliary lenses according to the focal length of the auxiliary lenses; The mapping synthesis unit is used to map the reference pictures into the original pictures according to the coordinates of the auxiliary lenses; The rendering difference unit is used to merge all reference pictures according to the mapping coordinates of each reference picture to form a comparison picture.

[0008] Further, the quality control module includes: a history analysis unit and a repair quality unit; The history analysis unit is used to obtain the historical pictures taken by the main lens, and calculate the information volume and average jitter of the historical pictures; The restoration threshold unit is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the user's shooting frequency and the average jitter.

[0009] Further, the picture restoration module includes: a pixel synthesis unit and a picture generation unit; The pixel synthesis unit is used to synthesize the color level of each pixel point in the comparison picture with the color level of the corresponding position in the original picture in proportion, and the synthesis ratio is determined by the quality coefficient of the picture; The image generation unit is used to combine the synthesized pixel points and output the restored original image.

[0010] Further, the module monitoring module includes: a periodic drawing unit, an abnormality monitoring unit and a fault location unit; The periodic drawing unit is used to draw the functional relationship between the difference coefficient of the pictures taken by the main lens and the number of shots; The abnormality monitoring unit is used to analyze the function and identify the mutation point and mutation rate in the function; The fault location unit is used to remind the user to replace the main lens when the mutation rate of a mutation point is higher than the quality coefficient of the picture.

[0011] A camera module abnormality monitoring method based on cloud computing includes the following steps: Step S1. After the shutter is pressed, while the main lens takes a picture, other lenses in the camera module serve as auxiliary lenses to take pictures at the same time, the picture taken by the main lens is recorded as the original picture, and the pictures taken by each auxiliary lens are recorded as reference pictures and recorded in the cloud database; Step S2. Establish a coordinate system for the camera module, obtain the coordinates of the main camera and each auxiliary camera, process the reference image according to the coordinates and focal length of the auxiliary camera, and use cloud computing resources to map the reference image to the original image, merge all the reference images according to the mapping results, and obtain a comparison image; Step S3. Obtain historical pictures taken by the main lens, calculate the information volume of the historical pictures, and calculate the quality coefficient of the main lens according to the information volume and shooting time of the historical pictures; Step S4. Calculate the synthesis ratio of the reference image according to the quality coefficient in step S3, synthesize the color level of each pixel in the comparison image with the color level of the corresponding position in the original image according to the synthesis ratio to obtain a repaired image, and send the repaired image to the user; Step S5. Calculate the information difference between the restored image and the original image in step S4, draw a function of the relationship between the information difference and the number of times the image is taken, and use a function analysis tool to detect the relationship function. When the information difference per unit time is higher than the quality coefficient of the main lens, remind the user to replace the main lens.

[0012] Further, step S1 includes: Step S11. After focusing, the user presses the shutter button, the main lens takes a picture, and the other lenses in the camera module take pictures at the same time. The lenses other than the main lens are recorded as auxiliary lenses, the focal length of the main lens when shooting is recorded as F0, and the focal lengths of the auxiliary lenses when shooting are recorded as {F1, F2, ..., Fn}, where n represents the number of auxiliary lenses, and Fn represents the focal length of the auxiliary lens numbered n when shooting; Step S12. Mark the photos taken by the main camera as original photos, mark the photos taken by the auxiliary camera as reference photos, and upload the original photos and all reference photos to the cloud database for processing.

[0013] Further, step S2 includes: Step S21. Establish a coordinate system for the plane where the camera module is located, obtain the coordinates (x0, y0) of the main lens in the coordinate system, and the coordinates of each auxiliary lens in the coordinate system {(x1, y1), (x2, y2), ..., (xn, yn)}, where (xn, yn) represents the coordinates of the auxiliary lens numbered n in the coordinate system; Step S22: Using cloud computing resources, a reference picture processing method is executed on the reference pictures taken by each auxiliary lens. The reference picture processing method is as follows: Traverse each pixel on the reference image and calculate the mapping coordinates of the pixel (a, b) on the reference image in the original image: Where A represents the horizontal coordinate of the pixel point (a, b) in the original image, B represents the vertical coordinate of the pixel point (a, b) in the original image, xi represents the horizontal coordinate of the auxiliary lens corresponding to the reference image, yi represents the vertical coordinate of the auxiliary lens corresponding to the reference image, D represents the distance between two pixels in the original image, d represents the distance between two pixels in the reference image, and SET is the floor rounding function; Mark the pixel point (a, b) on the reference image as a reference coordinate corresponding to the pixel point (A, B) in the original image; Step S23: Execute the contrast image processing method for each pixel in the original image. The contrast image processing method is as follows: Retrieve all reference coordinates corresponding to the pixel point (A, B) in the original image, obtain the color levels of all the reference coordinates, and calculate the color level of the pixel point (A, B) in the comparison image according to the following formula: Wherein, Q represents the color level of the pixel with coordinates (A, B) in the comparison image, Qj represents the color level of the pixel with coordinates (A, B) in the reference image taken by the auxiliary lens numbered j, Q0 represents the color level of the pixel with coordinates (A, B) in the original image, Fj represents the focal length of the auxiliary lens numbered j when shooting, and F0 represents the focal length of the main lens when shooting; Step S24. Generate a comparison image of the original image in the cloud based on the color level of each pixel obtained in step S23.

[0014] In this step, there are multiple reference images, but only one original image. Each pixel in each reference image can be mapped to a pixel in the original image. For this pixel in the original image, there is a pixel mapped to this pixel in each reference image. By merging the color levels of multiple reference images, a comparison image of the same size as the original image can be output. The original image can be repaired by comparing the images, making the picture smoother.

[0015] Further, step S3 includes: Step S31. Obtain m historical pictures taken by the main lens, where m is a preset value. For each historical picture, calculate the amount of information contained in each historical picture according to the following formula: Among them, C represents the amount of information contained in the historical image, h represents the number of pixels in the historical image, Qt represents the color level of the t-th pixel in the historical image, and QT represents the average color level of all pixels in the historical image; Step S32. Calculate the quality coefficient of the main lens according to the amount of information in the m historical pictures and the shooting time of the historical pictures: Among them, G represents the quality coefficient of the main lens, T represents the total time used by the main lens to shoot m historical pictures, and Cr represents the amount of information contained in the rth historical picture.

[0016] Further, step S4 includes: Step S41. Overlap the comparison image obtained in step S2 with the original image taken by the main lens. For the pixel points with the same coordinates in the two images, the color level of the pixel point in the original image is recorded as QW, and the color level of the pixel point in the comparison image is recorded as QE. The color level difference QS=QE-QW between the comparison image and the original image at the pixel coordinates is calculated, and then go to step S42; Step S42. Calculate the color scale of the restored pixel according to the quality coefficient in step S3: Among them, QF represents the color level of the pixel after restoration; Step S43. Execute steps S41-S42 for each pixel in the image to obtain the color level of each pixel after restoration, output the restored image from the cloud, and send it to the user's shooting device.

[0017] Further, step S5 includes: Step S51. Calculate the information amount of the original image and the restored image according to the method of step S31, and record the difference in information amount between the original image and the restored image; Step S52. According to the information amount difference calculated in the historical shooting of the main lens, a functional variation relationship F(k) between the information amount difference and the shooting number is plotted, wherein k represents the shooting number of the main lens, and F(k) represents the information amount difference between the picture taken by the main lens at the kth shooting and the picture after restoration; Step S53. Use the function analysis tool to fit the function F(k), and combine it with the shooting interval of each user to obtain the relationship function P(t) of the information difference over time, where t represents time and P(t) represents the information difference at time t. When P(t)>G, an alarm is issued to remind the user to replace the main lens.

[0018] Compared with the prior art, the beneficial effects achieved by the present invention are: 1. The present invention can utilize other cameras in the module to shoot at the same time, perform focal length processing and position transformation on the captured image and then map it to the original image, adjust the pixel parameters of the original image according to the rendering difference between the comparison image and the original image, thereby repairing the original image, and can adjust parameters such as image brightness, contrast, color saturation, etc. to improve image quality and make it clearer and more realistic.

[0019] 2. The present invention can determine the sudden change in image quality based on the change in rendering differences, locate the abnormal camera based on the average focal length of the compared images, and remind the user to replace the lens. This can prevent the camera from suddenly malfunctioning due to life issues, causing the shooting system to fail, and ensure the stability and continuity of the shooting system.

[0020] 3. The present invention can calculate the quality threshold according to the historical shooting focal length, picture quality and average jitter of the user, evaluate the quality of the restored picture according to the camera focal length and the rendering difference between the original picture and the comparison picture, adaptively adjust the degree of picture restoration, reasonably arrange the budget and resources, avoid excessive maintenance and frequent replacement of camera modules, and thus reduce unnecessary cost expenditure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 It is a structural schematic diagram of a camera module abnormality monitoring system based on cloud computing of the present invention; Figure 2 It is a schematic diagram of the steps of a camera module abnormality monitoring method based on cloud computing of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1 ,The present invention provides a technical solution: a camera module abnormality monitoring system based on cloud computing, comprising: an auxiliary camera module, a rendering mapping module, a quality control module, an image repair module and a module monitoring module; The auxiliary camera module is used to use cameras with other focal lengths as auxiliary lenses to shoot when the camera module is shooting, and record the reference pictures taken by each auxiliary lens and the position coordinates of each auxiliary lens in the cloud database; The auxiliary camera module includes: a lens shooting unit and a module positioning unit; The lens shooting unit is used to use other lenses in the camera module as auxiliary lenses to shoot pictures at the same time as the camera module shoots, the picture taken by the main lens is recorded as the original picture, and the picture taken by the auxiliary lens is recorded as the reference picture; The module positioning unit is used to establish a coordinate system for the location of the camera module and provide the coordinates of the main lens and each auxiliary lens.

[0024] The rendering mapping module is used to use the computing resources provided by the cloud to blur the picture taken by the auxiliary lens, and map the reference pictures to the original pictures according to the coordinates of the auxiliary lens, splice all the reference pictures to obtain the comparison picture, and identify the difference coefficient between the comparison picture and the original picture; The rendering mapping module includes: a focal length processing unit, a mapping synthesis unit and a rendering difference unit; The focal length processing unit is used to perform blur processing on the pictures taken by all auxiliary lenses according to the focal length of the auxiliary lenses; The mapping synthesis unit is used to map the reference pictures into the original pictures according to the coordinates of the auxiliary lenses; The rendering difference unit is used to merge all reference pictures according to the mapping coordinates of each reference picture to form a comparison picture.

[0025] The quality control module is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the shooting frequency and average jitter of the user, and use the quality coefficient as the restoration parameter of the picture; The quality control module includes: a history analysis unit and a repair quality unit; The history analysis unit is used to obtain the historical pictures taken by the main lens, and calculate the information volume and average jitter of the historical pictures; The restoration threshold unit is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the user's shooting frequency and the average jitter.

[0026] The image restoration module is used to perform color restoration on the original image according to the difference coefficient between the comparison image and the original image, and to control the restoration rate of the original image by the quality coefficient of the image to obtain the restored original image; The picture restoration module includes: a pixel synthesis unit and a picture generation unit; The pixel synthesis unit is used to synthesize the color level of each pixel point in the comparison picture with the color level of the corresponding position in the original picture in proportion, and the synthesis ratio is determined by the quality coefficient of the picture; The image generation unit is used to combine the synthesized pixel points and output the restored original image.

[0027] The module monitoring module is used to draw a function of the difference coefficient between the picture taken by the main lens and the comparison picture as the number of shots changes. According to the change function of the rendering difference, the mutation phenomenon of the main lens shooting quality is analyzed. When the mutation rate is higher than the quality coefficient of the picture, the user is reminded to replace the main lens.

[0028] The module monitoring module includes: a periodic drawing unit, an abnormality monitoring unit and a fault location unit; The periodic drawing unit is used to draw the functional relationship between the difference coefficient of the pictures taken by the main lens and the number of shots; The abnormality monitoring unit is used to analyze the function and identify the mutation point and mutation rate in the function; The fault location unit is used to remind the user to replace the main lens when the mutation rate of a mutation point is higher than the quality coefficient of the picture.

[0029] like Figure 2 As shown, a camera module abnormality monitoring method based on cloud computing includes the following steps: Step S1. After the shutter is pressed, while the main lens takes a picture, other lenses in the camera module serve as auxiliary lenses to take pictures at the same time, the picture taken by the main lens is recorded as the original picture, and the pictures taken by each auxiliary lens are recorded as reference pictures and recorded in the cloud database; Step S1 includes: Step S11. After focusing, the user presses the shutter button, the main lens takes a picture, and the other lenses in the camera module take pictures at the same time. The lenses other than the main lens are recorded as auxiliary lenses, the focal length of the main lens when shooting is recorded as F0, and the focal lengths of the auxiliary lenses when shooting are recorded as {F1, F2, ..., Fn}, where n represents the number of auxiliary lenses, and Fn represents the focal length of the auxiliary lens numbered n when shooting; Step S12. Mark the photos taken by the main camera as original photos, mark the photos taken by the auxiliary camera as reference photos, and upload the original photos and all reference photos to the cloud database for processing.

[0030] Step S2. Establish a coordinate system for the camera module, obtain the coordinates of the main camera and each auxiliary camera, process the reference image according to the coordinates and focal length of the auxiliary camera, and use cloud computing resources to map the reference image to the original image, merge all the reference images according to the mapping results, and obtain a comparison image; Step S2 includes: Step S21. Establish a coordinate system for the plane where the camera module is located, obtain the coordinates (x0, y0) of the main lens in the coordinate system, and the coordinates of each auxiliary lens in the coordinate system {(x1, y1), (x2, y2), ..., (xn, yn)}, where (xn, yn) represents the coordinates of the auxiliary lens numbered n in the coordinate system; Step S22: Using cloud computing resources, a reference picture processing method is executed on the reference pictures taken by each auxiliary lens. The reference picture processing method is as follows: Traverse each pixel on the reference image and calculate the mapping coordinates of the pixel (a, b) on the reference image in the original image: Where A represents the horizontal coordinate of the pixel point (a, b) in the original image, B represents the vertical coordinate of the pixel point (a, b) in the original image, xi represents the horizontal coordinate of the auxiliary lens corresponding to the reference image, yi represents the vertical coordinate of the auxiliary lens corresponding to the reference image, D represents the distance between two pixels in the original image, d represents the distance between two pixels in the reference image, and SET is the floor rounding function; Mark the pixel point (a, b) on the reference image as a reference coordinate corresponding to the pixel point (A, B) in the original image; Step S23: Execute the contrast image processing method for each pixel in the original image. The contrast image processing method is as follows: Retrieve all reference coordinates corresponding to the pixel point (A, B) in the original image, obtain the color levels of all the reference coordinates, and calculate the color level of the pixel point (A, B) in the comparison image according to the following formula: Wherein, Q represents the color level of the pixel with coordinates (A, B) in the comparison image, Qj represents the color level of the pixel with coordinates (A, B) in the reference image taken by the auxiliary lens numbered j, Q0 represents the color level of the pixel with coordinates (A, B) in the original image, Fj represents the focal length of the auxiliary lens numbered j when shooting, and F0 represents the focal length of the main lens when shooting; Step S24. Generate a comparison image of the original image in the cloud based on the color level of each pixel obtained in step S23.

[0031] Step S3. Obtain historical pictures taken by the main lens, calculate the information volume of the historical pictures, and calculate the quality coefficient of the main lens according to the information volume of the historical pictures and the shooting time; Step S3 includes: Step S31. Obtain m historical pictures taken by the main lens, where m is a preset value. For each historical picture, calculate the amount of information contained in each historical picture according to the following formula: Among them, C represents the amount of information contained in the historical image, h represents the number of pixels in the historical image, Qt represents the color level of the t-th pixel in the historical image, and QT represents the average color level of all pixels in the historical image; Step S32. Calculate the quality coefficient of the main lens according to the amount of information in the m historical pictures and the shooting time of the historical pictures: Among them, G represents the quality coefficient of the main lens, T represents the total time used by the main lens to shoot m historical pictures, and Cr represents the amount of information contained in the rth historical picture.

[0032] Step S4. Step S4. According to the quality coefficient in step S3, the synthesis ratio of the reference image is calculated, the color level of each pixel in the comparison image is synthesized with the color level of the corresponding position in the original image according to the synthesis ratio to obtain a repaired image, and the repaired image is sent to the user; Step S4 includes: Step S41. Overlap the comparison image obtained in step S2 with the original image taken by the main lens. For the pixel points with the same coordinates in the two images, the color level of the pixel point in the original image is recorded as QW, and the color level of the pixel point in the comparison image is recorded as QE. The color level difference QS=QE-QW between the comparison image and the original image at the pixel coordinates is calculated, and then go to step S42; Step S42. Calculate the color scale of the restored pixel according to the quality coefficient in step S3: Among them, QF represents the color level of the pixel after restoration; Step S43. Execute steps S41-S42 for each pixel in the image to obtain the color level of each pixel after restoration, output the restored image from the cloud, and send it to the user's shooting device.

[0033] Step S5. Calculate the information difference between the restored image and the original image in step S4, draw a function of the relationship between the information difference and the number of shots, use a function analysis tool to detect the relationship function, and remind the user to replace the main lens when the information difference per unit time is higher than the quality coefficient of the main lens.

[0034] Step S5 includes: Step S51. Calculate the information amount of the original image and the restored image according to the method of step S31, and record the difference in information amount between the original image and the restored image; Step S52. According to the information amount difference calculated in the historical shooting of the main lens, a functional variation relationship F(k) between the information amount difference and the shooting number is plotted, wherein k represents the shooting number of the main lens, and F(k) represents the information amount difference between the picture taken by the main lens at the kth shooting and the picture after restoration; Step S53. Use the function analysis tool to fit the function F(k), and combine it with the shooting interval of each user to obtain the relationship function P(t) of the information difference over time, where t represents time and P(t) represents the information difference at time t. When P(t)>G, an alarm is issued to remind the user to replace the main lens.

[0035] Example: A camera module has 4 lenses. The user activates the first lens to take a picture with a focal length of 50m, and the other lenses take reference pictures with focal lengths of 20m, 80m and 100m respectively. The four pictures are uploaded to the cloud. The color levels of a pixel point (1, 2) in the 4 pictures are 1.2, 1.4, 1.0 and 1.5 respectively. Then, the color level of the pixel point (1, 2) in the comparison picture synthesized from the reference pictures taken by lenses 2, 3 and 4 is 1.41. According to the historical shooting records, the quality coefficient of the main lens is calculated to be 2.1, and the color level of the restored pixel (1,2) is 1.3. All restored pixels are obtained and composed into a picture to be sent to the user, which is the restored picture.

[0036] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0037] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A camera module abnormality monitoring method based on cloud computing, characterized in that: The method comprises the following steps: Step S1. After the shutter is pressed, while the main lens takes a picture, other lenses in the camera module serve as auxiliary lenses to take pictures at the same time, the picture taken by the main lens is recorded as the original picture, and the pictures taken by each auxiliary lens are recorded as reference pictures and recorded in the cloud database; Step S2. Establish a coordinate system for the camera module, obtain the coordinates of the main camera and each auxiliary camera, process the reference image according to the coordinates and focal length of the auxiliary camera, and use cloud computing resources to map the reference image to the original image, merge all the reference images according to the mapping results, and obtain a comparison image; Step S3. Obtain historical pictures taken by the main lens, calculate the information volume of the historical pictures, and calculate the quality coefficient of the main lens according to the information volume and shooting time of the historical pictures; Step S4. Calculate the synthesis ratio of the reference image according to the quality coefficient in step S3, synthesize the color level of each pixel in the comparison image with the color level of the corresponding position in the original image according to the synthesis ratio to obtain a repaired image, and send the repaired image to the user; Step S5. Calculate the information difference between the restored image and the original image in step S4, draw a function of the relationship between the information difference and the number of times the image is taken, and use a function analysis tool to detect the relationship function. When the information difference per unit time is higher than the quality coefficient of the main lens, remind the user to replace the main lens.

2. The camera module abnormality monitoring method based on cloud computing according to claim 1, characterized in that: Step S1 includes: Step S11. After focusing, the user presses the shutter button, the main lens takes a picture, and the other lenses in the camera module take pictures at the same time. The lenses other than the main lens are recorded as auxiliary lenses, the focal length of the main lens when shooting is recorded as F0, and the focal lengths of the auxiliary lenses when shooting are recorded as {F1, F2, ..., Fn}, where n represents the number of auxiliary lenses, and Fn represents the focal length of the auxiliary lens numbered n when shooting; Step S12. Mark the photos taken by the main camera as original photos, mark the photos taken by the auxiliary camera as reference photos, and upload the original photos and all reference photos to the cloud database for processing.

3. The camera module abnormality monitoring method based on cloud computing according to claim 2 is characterized in that: Step S2 includes: Step S21. Establish a coordinate system for the plane where the camera module is located, obtain the coordinates (x0, y0) of the main lens in the coordinate system, and the coordinates of each auxiliary lens in the coordinate system {(x1, y1), (x2, y2), ..., (xn, yn)}, where (xn, yn) represents the coordinates of the auxiliary lens numbered n in the coordinate system; Step S22: Using cloud computing resources, a reference picture processing method is executed on the reference pictures taken by each auxiliary lens. The reference picture processing method is as follows: Traverse each pixel on the reference image and calculate the mapping coordinates of the pixel (a, b) on the reference image in the original image: Where A represents the horizontal coordinate of the pixel point (a, b) in the original image, B represents the vertical coordinate of the pixel point (a, b) in the original image, xi represents the horizontal coordinate of the auxiliary lens corresponding to the reference image, yi represents the vertical coordinate of the auxiliary lens corresponding to the reference image, D represents the distance between two pixels in the original image, d represents the distance between two pixels in the reference image, and SET is the floor rounding function; Mark the pixel point (a, b) on the reference image as a reference coordinate to which the pixel point (A, B) in the original image belongs; Step S23: Execute the contrast image processing method for each pixel in the original image. The contrast image processing method is as follows: Retrieve all reference coordinates of the pixel point (A, B) in the original image, obtain the color levels of all reference coordinates, and calculate the color level of the pixel point (A, B) in the comparison image according to the following formula: Wherein, Q represents the color level of the pixel (A, B) in the comparison image, Qj represents the color level of the pixel (A, B) in the reference image taken by the auxiliary lens numbered j, Q0 represents the color level of the pixel (A, B) in the original image, Fj represents the focal length of the auxiliary lens numbered j when shooting, and F0 represents the focal length of the main lens when shooting; Step S24. Generate a comparison image of the original image in the cloud based on the color level of each pixel obtained in step S23.

4. The camera module abnormality monitoring method based on cloud computing according to claim 3 is characterized in that: Step S3 includes: Step S31. Obtain m historical pictures taken by the main lens, where m is a preset value. For each historical picture, calculate the amount of information contained in each historical picture according to the following formula: Among them, C represents the amount of information contained in the historical image, h represents the number of pixels in the historical image, Qt represents the color level of the t-th pixel in the historical image, and QT represents the average color level of all pixels in the historical image; Step S32. Calculate the quality coefficient of the main lens according to the amount of information in the m historical pictures and the shooting time of the historical pictures: Among them, G represents the quality coefficient of the main lens, T represents the total time used by the main lens to shoot m historical pictures, and Cr represents the amount of information contained in the rth historical picture.

5. The camera module abnormality monitoring method based on cloud computing according to claim 4 is characterized in that: Step S4 includes: Step S41. Overlap the comparison image obtained in step S2 with the original image taken by the main lens. For the pixel points with the same coordinates in the two images, the color level of the pixel point in the original image is recorded as QW, and the color level of the pixel point in the comparison image is recorded as QE. The color level difference QS=QE-QW between the comparison image and the original image at the pixel coordinates is calculated, and then go to step S42; Step S42. Calculate the color scale of the restored pixel according to the quality coefficient in step S3: Among them, QF represents the color level of the pixel after restoration; Step S43. Execute steps S41-S42 for each pixel in the image to obtain the color level of each pixel after restoration, output the restored image from the cloud, and send it to the user's camera; Step S5 includes: Step S51. Calculate the information amount of the original image and the restored image according to the method of step S31, and record the difference in information amount between the original image and the restored image; Step S52. According to the information amount difference calculated in the historical shooting of the main lens, a functional variation relationship F(k) between the information amount difference and the shooting number is plotted, wherein k represents the shooting number of the main lens, and F(k) represents the information amount difference between the picture taken by the main lens at the kth shooting and the picture after restoration; Step S53. Use the function analysis tool to fit the function F(k), and combine it with the shooting interval of each user to obtain the relationship function P(t) of the information difference over time, where t represents time and P(t) represents the information difference at time t. When P(t)>G, an alarm is issued to remind the user to replace the main lens.

6. A camera module abnormality monitoring system based on cloud computing, characterized in that: The system includes the following modules: auxiliary camera module, rendering mapping module, quality control module, image repair module and module monitoring module; The auxiliary camera module is used to use cameras with other focal lengths as auxiliary lenses to shoot when the camera module is shooting, and record the reference pictures taken by each auxiliary lens and the position coordinates of each auxiliary lens in the cloud database; The rendering mapping module is used to use the computing resources provided by the cloud to blur the picture taken by the auxiliary lens, and map the reference pictures to the original pictures according to the coordinates of the auxiliary lens, splice all the reference pictures to obtain the comparison picture, and identify the difference coefficient between the comparison picture and the original picture; The quality control module is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the shooting frequency and average jitter of the user, and use the quality coefficient as the restoration parameter of the picture; The image restoration module is used to perform color restoration on the original image according to the difference coefficient between the comparison image and the original image, and to control the restoration rate of the original image by the quality coefficient of the image to obtain the restored original image; The module monitoring module is used to draw a function of the difference coefficient between the main lens taken picture and the comparison picture as the number of shots changes. According to the change function of the rendering difference, the mutation phenomenon of the main lens shooting quality is analyzed. When the mutation rate is higher than the quality coefficient of the picture, the user is reminded to replace the main lens.

7. The camera module abnormality monitoring system based on cloud computing according to claim 6, characterized in that: The auxiliary camera module includes: a lens shooting unit and a module positioning unit; The lens shooting unit is used to use other lenses in the camera module as auxiliary lenses to shoot pictures at the same time as the camera module shoots, the picture taken by the main lens is recorded as the original picture, and the picture taken by the auxiliary lens is recorded as the reference picture; The module positioning unit is used to establish a coordinate system for the location of the camera module and provide the coordinates of the main lens and each auxiliary lens.

8. The camera module abnormality monitoring system based on cloud computing according to claim 7, characterized in that: The rendering mapping module includes: a focal length processing unit, a mapping synthesis unit and a rendering difference unit; The focal length processing unit is used to perform blur processing on the pictures taken by all auxiliary lenses according to the focal length of the auxiliary lenses; The mapping synthesis unit is used to map the reference pictures into the original pictures according to the coordinates of the auxiliary lenses; The rendering difference unit is used to merge all reference pictures according to the mapping coordinates of each reference picture to form a comparison picture.

9. The camera module abnormality monitoring system based on cloud computing according to claim 8, characterized in that: The quality control module includes: a history analysis unit and a repair quality unit; The history analysis unit is used to obtain the historical pictures taken by the main lens, and calculate the information volume and average jitter of the historical pictures; The restoration quality unit is used to calculate the quality coefficient of the picture according to the amount of historical picture information taken by the main lens, the user's shooting frequency and average jitter; The picture restoration module includes: a pixel synthesis unit and a picture generation unit; The pixel synthesis unit is used to synthesize the color level of each pixel point in the comparison picture with the color level of the corresponding position in the original picture in proportion, and the synthesis ratio is determined by the quality coefficient of the picture; The image generation unit is used to combine the synthesized pixel points and output the restored original image.

10. The camera module abnormality monitoring system based on cloud computing according to claim 9, characterized in that: The module monitoring module includes: a periodic drawing unit, an abnormality monitoring unit and a fault location unit; The periodic drawing unit is used to draw the functional relationship between the difference coefficient of the pictures taken by the main lens and the number of shots; The abnormality monitoring unit is used to analyze the function and identify the mutation point and mutation rate in the function; The fault location unit is used to remind the user to replace the main lens when the mutation rate of a mutation point is higher than the quality coefficient of the picture.