CN117857781B - Camera anti-shake test method and system based on image processing - Google Patents
Camera anti-shake test method and system based on image processing Download PDFInfo
- Publication number
- CN117857781B CN117857781B CN202410257142.XA CN202410257142A CN117857781B CN 117857781 B CN117857781 B CN 117857781B CN 202410257142 A CN202410257142 A CN 202410257142A CN 117857781 B CN117857781 B CN 117857781B
- Authority
- CN
- China
- Prior art keywords
- camera
- shake
- test
- dithering
- image
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 43
- 238000010998 test method Methods 0.000 title claims abstract description 25
- 238000012360 testing method Methods 0.000 claims abstract description 123
- 230000001629 suppression Effects 0.000 claims abstract description 30
- 238000000034 method Methods 0.000 claims abstract description 29
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 230000005764 inhibitory process Effects 0.000 claims description 30
- 230000006870 function Effects 0.000 claims description 17
- 230000000694 effects Effects 0.000 abstract description 9
- 230000003287 optical effect Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 238000012937 correction Methods 0.000 description 7
- 206010070834 Sensitisation Diseases 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008313 sensitization Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 206010044565 Tremor Diseases 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Studio Devices (AREA)
Abstract
The invention relates to the technical field of camera module quality detection, and provides a camera anti-shake test method and system based on image processing, wherein the method comprises the following steps: the image processing is carried out on the first test image, the image characteristics of the image after the anti-shake in the image are divided and identified, then the image blurring data which originally exists is calculated according to the characteristics of the shake device and the shutter speed in the image shooting, parameters are calculated in the middle of the anti-shake suppression ratio model, the step of shooting the image under the function of closing the anti-shake is omitted, and the efficiency of testing the anti-shake effect of the camera is improved.
Description
Technical Field
The invention relates to the technical field of quality detection of camera modules, in particular to a camera anti-shake test method and system based on image processing.
Background
Ois optical anti-shake of the mobile phone camera is realized by detecting the vibration condition of the camera, and compensating the offset light path by adjusting a movable component, so that the blurring of images is reduced;
In the prior art, the long exposure detection method adopted for the test of the camera anti-shake effect has long detection time and low image quality, so that the test efficiency is low; in some detection methods, a plurality of detected images for opening and closing the anti-shake are required to be obtained respectively, and the efficiency of the anti-shake test is low.
Disclosure of Invention
The invention provides a camera anti-shake test method based on image processing, which is used for solving the problem of low anti-shake test efficiency of a camera in the prior art.
The first aspect of the invention provides a camera anti-shake test method based on image processing, which comprises the following steps:
Sending test instructions to the dithering device and the camera respectively to obtain a first test image;
Carrying out gray processing on the first test image, and identifying a region with a gray value larger than a preset threshold value to obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
and comparing the anti-shake inhibition ratio with the standard parameter, and if the anti-shake inhibition ratio is larger than the standard parameter, judging that the current camera ois is qualified in the anti-shake function test.
Optionally, before the sending test instructions to the dithering device and the camera respectively, the method further includes:
And acquiring a second test image, identifying the edge distance of the mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than the preset distance.
Optionally, before the sending test instructions to the dithering device and the camera respectively, the method further includes:
The method comprises the steps of obtaining the stroke position of a current shaking device, calculating test instruction interval time according to the stroke position and the frequency of the shaking device, and sending test instructions to the shaking device and the camera according to the test instruction interval time.
Optionally, after the obtaining the anti-shake suppression ratio of the current camera, the method further includes:
If the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, the anti-dithering inhibition ratio is corrected according to the reciprocating frequency of the dithering device under the shutter speed of the camera.
The second aspect of the present application provides an image processing-based camera anti-shake test system, comprising:
The test image acquisition module is used for sending test instructions to the dithering device and the camera respectively to acquire a first test image;
the suppression ratio calculation module is used for carrying out gray processing on the first test image, and identifying a region with a gray value larger than a preset threshold value to obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
And the detection judging module is used for comparing the anti-shake suppression ratio with the standard parameter, and judging that the current camera ois is qualified in the anti-shake function test if the anti-shake suppression ratio is larger than the standard parameter.
Optionally, before the test image obtaining module sends the test instruction to the dithering device and the camera, the test image obtaining module further includes:
And acquiring a second test image, identifying the edge distance of the mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than the preset distance.
Optionally, before the test image obtaining module sends the test instruction to the dithering device and the camera, the test image obtaining module further includes:
The method comprises the steps of obtaining the stroke position of a current shaking device, calculating test instruction interval time according to the stroke position and the frequency of the shaking device, and sending test instructions to the shaking device and the camera according to the test instruction interval time.
Optionally, after the suppression ratio calculation module obtains the anti-shake suppression ratio of the current camera, the suppression ratio calculation module further includes:
If the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, the anti-dithering inhibition ratio is corrected according to the reciprocating frequency of the dithering device under the shutter speed of the camera.
The third aspect of the application provides camera anti-shake test method equipment based on image processing, which comprises a processor and a memory:
The memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the camera anti-shake test method based on image processing according to any one of the first aspect of the present invention according to the instructions in the program code.
A fourth aspect of the present application provides a computer readable storage medium storing program code for executing a camera anti-shake test method according to any one of the first aspect of the present application.
From the above technical scheme, the invention has the following advantages: the image processing is carried out on the first test image, the image characteristics of the image after the anti-shake in the image are divided and identified, then the image blurring data which originally exists is calculated according to the characteristics of the shake device and the shutter speed in the image shooting, parameters are calculated in the middle of the anti-shake suppression ratio model, the step of shooting the image under the function of closing the anti-shake is omitted, and the efficiency of testing the anti-shake effect of the camera is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a first flowchart of a camera anti-shake test method based on image processing;
FIG. 2 is a schematic view of the shape of the light path region;
FIG. 3 is a schematic diagram of camera imaging;
FIG. 4 is a second flowchart of a camera anti-shake test method based on image processing;
fig. 5 is a diagram of a camera anti-shake test system based on image processing.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the following description of the embodiments accompanied with the accompanying drawings in the embodiments of the present invention will make it apparent that the embodiments described below are only some embodiments but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a camera anti-shake test method based on image processing, which is used for solving the problem of low anti-shake test efficiency of a camera in the prior art.
Referring to fig. 1, fig. 1 is a first flowchart of a camera anti-shake test method based on image processing according to an embodiment of the present invention.
S100, sending test instructions to a dithering device and a camera respectively to obtain a first test image;
It should be noted that, the camera is a front or rear camera of a mobile phone with ois optical anti-shake function, and the anti-shake function is required to be tested before leaving the factory, so as to verify the effectiveness of the anti-shake function; the shaking device is used for simulating normal shaking when a person holds a mobile phone to shoot, the amplitude and the frequency of the shaking device can simulate physiological shaking of the person as much as possible, the frequency is in the range of 5-12 hz, the shaking device can be a ball screw connected with a mobile phone camera, the rotation range of the shaking device in the lead of the ball screw can be +/-5 degrees, namely the mobile phone camera can shake back and forth in the angle range of 10 degrees;
After the shaking device receives the test instruction, the stepping motor is controlled to drive the ball screw, so that a camera connected with the ball screw begins shaking, and the tremble of hands is simulated; after the camera receives the test instruction, shooting is performed, shooting can be completed within a few tenths of a second due to the shutter speed of the camera, the optical path change caused by the shake of the camera in the time simulates the shake condition during shooting, and at the moment, the camera is opened by default to achieve the ois anti-shake function.
S200, carrying out gray scale processing on the first test image, and identifying a region with a gray scale value larger than a preset threshold value to obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
It should be noted that, in the general range of 1/10 second to 1/60 second of the shutter speed of the mobile phone, the shutter speed is determined according to different types or delivery states of the mobile phone camera; in the present embodiment, the light-absorbing bottom plate and the light-transmitting dot and light-transmitting combined target plate are set, the light-transmitting dot is used as a mark point, the light-transmitting dot is in the view of the camera in the shaking range, the camera is driven by the shaking device to change the light path in the shutter speed time, please refer to fig. 2, the circular translation of the diameter d in the image shot by the camera under the condition of ois anti-shaking closing forms a circular rectangle, the circular shape is the form of the light-transmitting dot of the target plate in the image, the arc edge of the circular rectangle is necessarily formed by the light-transmitting dot, the diameter of the white dot when being shot into the test image is reduced according to the arc edge, and the longest straight line length in the circular moment is the translation distance of the light-transmitting dot plus the diameter of the light-transmitting dot; the gray level of the light path region through which the light-transmitting dot mark points pass is close to 255 through gray level processing of the first test image, and is far larger than other background regions with gray levels smaller than a threshold value 50, and the region with the gray level larger than a preset threshold value is identified through gray level segmentation, so that the light path region through which the light-transmitting dot mark points pass can be obtained;
Based on the imaging principle of the camera, the ratio of the size of an actual object to the sensitization of the sensitization components is equal to the object distance divided by the focal length, the focal length can be obtained in advance according to the parameter data of the camera, namely the corresponding distance of the actual dithering distance on the sensitization components can be calculated, the size of the CMOS sensitization components is in direct proportion to the picture size, and the actual dithering distance can be converted into the actual size in the first test image according to the ratio of the length of the CMOS to the length in the first test image; after the frequency of the dithering device is multiplied by the shutter speed of the camera to obtain a test instruction sent to the camera, pressing down the shutter to shoot how many times the dithering device finishes dithering in the time for obtaining the first test image, according to the angle range of the dithering device, the dithering path of the camera can be calculated to obtain, each time the complete dithering of a human hand is finished by taking the original position restoration as the end, please refer to fig. 3, fig. 3 is a schematic diagram of camera imaging, the camera dithering can change the angle of an optical path, the angle of final imaging is changed, and the method is characterized in that At this time, although the dithering is not completed once, the light path of the light-transmitting dot mark point is in a repeated path, and the light path area is not changed basically; according to the suppression ratio calculation model,/>The smaller the value of (c) is, the smaller the image blurring degree in the first test image is, the larger the corresponding actual jitter amplitude is, and the larger the anti-jitter suppression ratio is, the better the anti-jitter effect is.
S300, comparing the anti-shake suppression ratio with the standard parameter, and if the anti-shake suppression ratio is larger than the standard parameter, judging that the current camera ois is qualified in the anti-shake function test.
It should be noted that, regarding the quality of the anti-shake effect, it is generally considered that the image taken at a preset shutter speed is clear, while international radiology considers that the human eyes have a blurred feel when the photo has a penumbra blur equal to 0.2mm, so that the standard shake frequency and shutter speed can be set according to the actual detection requirementThe value is set to 0.2mm to set the standard anti-shake suppression ratio parameter, when the anti-shake suppression ratio detected by the current camera is smaller than the standard parameter, the anti-shake effect is unqualified, and the shake device in the embodiment only detects the anti-shake effect of the anti-shake function on one axis, but is the main shake condition of a human hand, and the one axis anti-shake condition can reflect the processing speed and the hardware installation condition of the whole anti-shake function ois, and can judge the qualification degree of the anti-shake function of the whole ois of the camera.
In this embodiment, the image feature after the anti-shake in the image is divided and identified by performing image processing on the first test image, and then image blur data which should originally exist is calculated according to the characteristics of the shake device and the shutter speed in image capturing, so that parameters are calculated in the middle of the anti-shake suppression ratio model, the step of capturing the image under the function of closing the anti-shake is omitted, and the efficiency of testing the anti-shake effect of the camera is improved.
The above is a detailed description of a first embodiment of an image processing-based camera anti-shake test method provided by the present application, and the following is a detailed description of a second embodiment of an image processing-based camera anti-shake test method provided by the present application.
In this embodiment, further provided is an image processing-based camera anti-shake test method, please refer to fig. 4, before the foregoing step S100 sends test instructions to the camera and the shake apparatus, the method further includes steps S101-S102, specifically:
s101, acquiring a second test image, identifying the edge distance of a mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than a preset distance;
Before the anti-shake test, the mark points are required to be ensured to be in the picture, and the mark points are ensured to be in the image in the shake process of the camera, so that a complete light path area can be obtained in the subsequent step, and the parameters corresponding to the anti-shake suppression ratio are calculated; adjusting the edge distance between the mark point and the image to be larger than a preset distance so as to ensure the shaking space of the mark point, and adjusting the position of a shaking device if the edge distance is smaller than the preset distance or the mark point is not in the image, wherein the position correction is generally carried out through the rotation of a base of a ball screw of the shaking device; for the mark points obtained in the second test image, the size diameter of the mark points can be directly identified, the circle diameter corresponding to the radian is not needed to be calculated in the subsequent steps, the diameter of the mark points is obtained, and the detection efficiency is improved.
S102, acquiring the stroke position of the current dithering device, calculating test instruction interval time according to the stroke position and the frequency of the dithering device, and sending test instructions to the dithering device and the camera in sequence according to the test instruction interval time;
It should be noted that, the shake device is a ball screw, the screw rod can rotate to drive the camera to shake in the process that the stepping motor drives the sliding block to slide on the screw rod, the shake device does not start moving from the end point of the screw rod in the process of executing the shake test, the shake path of the actual mark point corresponding to the first test image is not consistent with the model, the shake suppression ratio calculation can generate errors, the shake of the shake device is generally stopped after the first test image is received in each shake, if the shutter speed can not completely carry out the last shake, the sliding block of the ball screw rod can not stop at the two ends of the screw rod, and the reset of the screw rod is more troublesome, therefore, the interval time can be set in the test instructions of respectively sending the shake device and the camera, the camera synchronously starts shooting when the shake device is at the end point, the stroke position can be expressed as the completed stroke percentage of the current sliding block on the screw rod, and the test instruction interval time can be calculated by adopting the following formula:
;
Wherein, To test instruction interval,/>Is the percentage of travel completed.
Further, after S200, the method further includes: if the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, correcting the anti-dithering inhibition ratio according to the reciprocating frequency of the dithering device under the shutter speed of the camera;
It should be noted that, under ois anti-shake function, the longer the shake time is ois, the longer the anti-shake response time is, but when the product of the frequency of the shake device and the shutter speed of the camera is greater than the half shake time of the shake device, the accuracy of testing the anti-shake in the half shake period is irrelevant to the time, and when the period is greater than the half shake period, the camera is driven by the shake device to reciprocate, namely The screw rod of the dithering device can rotate in the opposite direction, at the moment ois optical anti-dithering is required to be reversely corrected, and the anti-dithering difficulty is necessarily larger, so that the anti-dithering inhibition ratio calculated by the model can be corrected at the moment, and the correction coefficient is multiplied once after the direction change of one reciprocating motion, and the concrete calculation model is as follows:
;
Wherein, Is the correction value of the anti-shake suppression ratio,/>For a reciprocation correction factor, the factor is greater than 1,/>Every time a complete ball screw stroke can be completed, a direction change is required, and each reverse change has an influence on the anti-shake effect, namely, although/>The optical path areas of 1/2 and 3 are the same, and the cameras complete 10-degree shaking, but in the ois optical shaking prevention process,/>At 1/2 the camera translates in only one direction, while/>For 3 hours, the camera needs to change the moving direction for 5 times to solve the shake, and the anti-shake inhibition of the latter is obviously more gold-containing, so that the camera needs to be subjected to amplification correction, and the reciprocation correction coefficient can be set based on an empirical value or correction difficulty.
The foregoing is a detailed description of a camera anti-shake test method based on image processing according to the first aspect of the present application, and the following is a detailed description of an embodiment of a camera anti-shake test system based on image processing according to the second aspect of the present application.
Referring to fig. 5, fig. 5 is a block diagram of a camera anti-shake test system based on image processing. The embodiment provides a camera anti-shake test system based on image processing, which comprises:
a test image acquisition module 10, configured to send test instructions to the dithering apparatus and the camera, respectively, to acquire a first test image;
The suppression ratio calculation module 20 is configured to perform gray level processing on the first test image, identify a region with a gray level value greater than a preset threshold value, and obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
The detection and judgment module 30 is configured to compare the anti-shake suppression ratio with the standard parameter, and if the anti-shake suppression ratio is greater than the standard parameter, judge that the current camera ois is qualified in the anti-shake function test.
Further, before the test image obtaining module 10 sends the test instruction to the dithering device and the camera, the test image obtaining module further includes:
And acquiring a second test image, identifying the edge distance of the mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than the preset distance.
Further, the test image obtaining module 10 further includes, before sending the test command to the dithering device and the camera, respectively:
The method comprises the steps of obtaining the stroke position of a current shaking device, calculating test instruction interval time according to the stroke position and the frequency of the shaking device, and sending test instructions to the shaking device and the camera according to the test instruction interval time.
Further, after obtaining the anti-shake suppression ratio of the current camera, the suppression ratio calculation module 20 further includes:
If the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, the anti-dithering inhibition ratio is corrected according to the reciprocating frequency of the dithering device under the shutter speed of the camera.
The third aspect of the application also provides camera anti-shake test method equipment based on image processing, which comprises a processor and a memory: wherein the memory is used for storing the program code and transmitting the program code to the processor; the processor is used for executing the camera anti-shake test method based on image processing according to the instructions in the program codes.
A fourth aspect of the present application provides a computer-readable storage medium storing program code for executing the above-described camera anti-shake test method based on image processing.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and device described above may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The camera anti-shake test method based on image processing is characterized by comprising the following steps of:
Sending test instructions to the dithering device and the camera respectively to obtain a first test image;
Carrying out gray processing on the first test image, and identifying a region with a gray value larger than a preset threshold value to obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
and comparing the anti-shake inhibition ratio with the standard parameter, and if the anti-shake inhibition ratio is larger than the standard parameter, judging that the current camera ois is qualified in the anti-shake function test.
2. The camera anti-shake test method according to claim 1, wherein before the sending test instructions to the shake apparatus and the camera respectively, further comprises:
And acquiring a second test image, identifying the edge distance of the mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than the preset distance.
3. The camera anti-shake test method according to claim 1, wherein before the sending test instructions to the shake apparatus and the camera respectively, further comprises:
The method comprises the steps of obtaining the stroke position of a current shaking device, calculating test instruction interval time according to the stroke position and the frequency of the shaking device, and sending test instructions to the shaking device and the camera according to the test instruction interval time.
4. The method for anti-shake test of a camera based on image processing according to claim 1, wherein after obtaining the anti-shake suppression ratio of the current camera, further comprises:
If the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, the anti-dithering inhibition ratio is corrected according to the reciprocating frequency of the dithering device under the shutter speed of the camera.
5. The utility model provides a camera anti-shake test system based on image processing which characterized in that includes:
The test image acquisition module is used for sending test instructions to the dithering device and the camera respectively to acquire a first test image;
the suppression ratio calculation module is used for carrying out gray processing on the first test image, and identifying a region with a gray value larger than a preset threshold value to obtain a light path region; identifying the longest straight line length passing through the light path area, identifying the edge radian of the light path area, and calculating the circle diameter corresponding to the radian to obtain the mark point diameter; the method comprises the steps of obtaining the shutter speed of a current camera, substituting the shutter speed into an inhibition ratio calculation model to obtain the anti-shake inhibition ratio of the current camera, wherein the inhibition ratio calculation model specifically comprises the following steps:
;
Wherein, To inhibit ratio,/>Is focal length,/>For dithering the frequency of the device,/>For the angular range of the dithering apparatus,/>For camera shutter speed,/>Is the longest straight line length,/>For marking dot diameter,/>For the first test image size,/>Is a photosensitive size;
And the detection judging module is used for comparing the anti-shake suppression ratio with the standard parameter, and judging that the current camera ois is qualified in the anti-shake function test if the anti-shake suppression ratio is larger than the standard parameter.
6. The camera anti-shake test system according to claim 5, wherein, in the test image acquisition module, before the test instructions are sent to the shake apparatus and the camera, respectively, the method further comprises:
And acquiring a second test image, identifying the edge distance of the mark point in the second test image, and correcting the position of the dithering device if the edge distance is smaller than the preset distance.
7. The camera anti-shake test system according to claim 5, wherein the test image acquisition module further comprises, before sending the test instructions to the shake apparatus and the camera, respectively:
The method comprises the steps of obtaining the stroke position of a current shaking device, calculating test instruction interval time according to the stroke position and the frequency of the shaking device, and sending test instructions to the shaking device and the camera according to the test instruction interval time.
8. The camera anti-shake test system based on image processing according to claim 5, wherein after the anti-shake suppression ratio of the current camera is obtained in the suppression ratio calculation module, the system further comprises:
If the product of the frequency of the dithering device and the shutter speed of the camera is larger than the half dithering time of the dithering device, the anti-dithering inhibition ratio is corrected according to the reciprocating frequency of the dithering device under the shutter speed of the camera.
9. Camera anti-shake test equipment based on image processing, characterized in that, the equipment includes processor and memory:
The memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the camera anti-shake test method according to any one of claims 1-4 based on image processing according to instructions in the program code.
10. A computer readable storage medium storing program code for performing a camera anti-shake test method according to any one of claims 1 to 4 based on image processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410257142.XA CN117857781B (en) | 2024-03-07 | 2024-03-07 | Camera anti-shake test method and system based on image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410257142.XA CN117857781B (en) | 2024-03-07 | 2024-03-07 | Camera anti-shake test method and system based on image processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117857781A CN117857781A (en) | 2024-04-09 |
CN117857781B true CN117857781B (en) | 2024-06-04 |
Family
ID=90534982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410257142.XA Active CN117857781B (en) | 2024-03-07 | 2024-03-07 | Camera anti-shake test method and system based on image processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117857781B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049839A (en) * | 2015-07-13 | 2015-11-11 | 成都西可科技有限公司 | Mobile terminal-based OIS camera module test system and test method |
WO2017177407A1 (en) * | 2016-04-13 | 2017-10-19 | 华为技术有限公司 | Method and apparatus for setting exposure duration, and photographic device |
CN107645624A (en) * | 2016-07-20 | 2018-01-30 | 宁波舜宇光电信息有限公司 | Camera module and its antidote and optical anti-vibration method and the electronic equipment with camera module |
CN110022393A (en) * | 2019-04-10 | 2019-07-16 | 北京易诚高科科技发展有限公司 | A kind of method of self-adaptive estimation mobile phone stabilization function |
CN111787310A (en) * | 2020-07-14 | 2020-10-16 | 南昌欧菲晶润科技有限公司 | Anti-shake performance testing method and device, computer equipment and storage medium |
CN113676667A (en) * | 2021-08-23 | 2021-11-19 | Oppo广东移动通信有限公司 | Suppression ratio testing method, suppression ratio testing device, electronic equipment and storage medium |
CN115174807A (en) * | 2022-06-28 | 2022-10-11 | 上海艾为电子技术股份有限公司 | Anti-shake detection method and device, terminal equipment and readable storage medium |
EP4131917A1 (en) * | 2020-03-26 | 2023-02-08 | Huawei Technologies Co., Ltd. | Photographic method and device |
CN115955558A (en) * | 2022-12-20 | 2023-04-11 | 美新半导体(无锡)有限公司 | Anti-shake testing device and anti-shake testing method for optical image stabilizer |
CN116243466A (en) * | 2021-09-30 | 2023-06-09 | 华为技术有限公司 | Lens assembly, camera module and electronic equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4445114B2 (en) * | 2000-01-31 | 2010-04-07 | 株式会社アドバンテスト | Jitter measuring apparatus and method |
US10805539B2 (en) * | 2016-12-02 | 2020-10-13 | Hangzhou Hikvision Digital Technology Co., Ltd. | Anti-shake method for camera and camera |
-
2024
- 2024-03-07 CN CN202410257142.XA patent/CN117857781B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049839A (en) * | 2015-07-13 | 2015-11-11 | 成都西可科技有限公司 | Mobile terminal-based OIS camera module test system and test method |
WO2017177407A1 (en) * | 2016-04-13 | 2017-10-19 | 华为技术有限公司 | Method and apparatus for setting exposure duration, and photographic device |
CN107645624A (en) * | 2016-07-20 | 2018-01-30 | 宁波舜宇光电信息有限公司 | Camera module and its antidote and optical anti-vibration method and the electronic equipment with camera module |
CN110022393A (en) * | 2019-04-10 | 2019-07-16 | 北京易诚高科科技发展有限公司 | A kind of method of self-adaptive estimation mobile phone stabilization function |
EP4131917A1 (en) * | 2020-03-26 | 2023-02-08 | Huawei Technologies Co., Ltd. | Photographic method and device |
CN111787310A (en) * | 2020-07-14 | 2020-10-16 | 南昌欧菲晶润科技有限公司 | Anti-shake performance testing method and device, computer equipment and storage medium |
CN113676667A (en) * | 2021-08-23 | 2021-11-19 | Oppo广东移动通信有限公司 | Suppression ratio testing method, suppression ratio testing device, electronic equipment and storage medium |
CN116243466A (en) * | 2021-09-30 | 2023-06-09 | 华为技术有限公司 | Lens assembly, camera module and electronic equipment |
CN115174807A (en) * | 2022-06-28 | 2022-10-11 | 上海艾为电子技术股份有限公司 | Anti-shake detection method and device, terminal equipment and readable storage medium |
CN115955558A (en) * | 2022-12-20 | 2023-04-11 | 美新半导体(无锡)有限公司 | Anti-shake testing device and anti-shake testing method for optical image stabilizer |
Non-Patent Citations (3)
Title |
---|
Qiwei Xie ; Xi Chen ; Liming Zhang ; An Jiang ; Feng Cui.A Robust and Efficient Video Anti-Shaking Algorithm for Low-End Smartphone Platforms.IEEE Transactions on Consumer Electronics.2018,全文. * |
光传输误码/抖动分析仪表的测试;严峻;高峰;;现代电信科技;20100415(第04期);全文 * |
多媒体视频监控系统关键技术及应用;曹盛;《信息科技》;20111215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN117857781A (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106707674B (en) | Automatic focusing method of projection equipment and projection equipment | |
JP7015374B2 (en) | Methods for image processing using dual cameras and mobile terminals | |
CN107690673B (en) | Image processing method and device and server | |
AU2019326496A1 (en) | Method for capturing images at night, apparatus, electronic device, and storage medium | |
CN109598764B (en) | Camera calibration method and device, electronic equipment and computer-readable storage medium | |
JP5276529B2 (en) | Image processing apparatus and method | |
TWI515470B (en) | Auto-focus system for multiple lens and method thereof | |
WO2011084279A2 (en) | Algorithms for estimating precise and relative object distances in a scene | |
CN111432118B (en) | Image anti-shake processing method and device, electronic equipment and storage medium | |
CN109660718B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN110266966A (en) | Image generating method and device, electronic equipment, computer readable storage medium | |
EP3557530A1 (en) | Calibration system and method | |
CN103837129A (en) | Distance measuring method and device in terminals and terminal | |
CN111787297B (en) | Idle stroke calibration method, automatic focusing method, device and storage medium | |
CN109712193A (en) | A kind of determination method and device of ball machine field angle | |
TWI515471B (en) | Auto-focus system for multiple lens and method thereof | |
CN116182786A (en) | Monocular vision ranging method, camera and medium | |
CN117857781B (en) | Camera anti-shake test method and system based on image processing | |
CN109040586A (en) | A kind of method and device calculating compensation rotation angle | |
US20070098383A1 (en) | Motion blur reduction and compensation | |
CN110519513B (en) | Anti-shake method and apparatus, electronic device, computer-readable storage medium | |
CN112437283B (en) | Method and system for adjusting projection jitter | |
CN111885297B (en) | Image definition determining method, image focusing method and device | |
WO2015158953A1 (en) | Transformations for image stabilization and refocus | |
CN104811602A (en) | Self-shooting method and self-shooting device for mobile terminals |
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 |