CN117857781A - 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 PDF

Info

Publication number
CN117857781A
CN117857781A CN202410257142.XA CN202410257142A CN117857781A CN 117857781 A CN117857781 A CN 117857781A CN 202410257142 A CN202410257142 A CN 202410257142A CN 117857781 A CN117857781 A CN 117857781A
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.)
Granted
Application number
CN202410257142.XA
Other languages
Chinese (zh)
Other versions
CN117857781B (en
Inventor
左文广
吕恒阳
游鸿飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qiangrui Precision Technology Co ltd
Original Assignee
Shenzhen Qiangrui Precision Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qiangrui Precision Technology Co ltd filed Critical Shenzhen Qiangrui Precision Technology Co ltd
Priority to CN202410257142.XA priority Critical patent/CN117857781B/en
Priority claimed from CN202410257142.XA external-priority patent/CN117857781B/en
Publication of CN117857781A publication Critical patent/CN117857781A/en
Application granted granted Critical
Publication of CN117857781B publication Critical patent/CN117857781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • 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

Camera anti-shake test method and system based on image processing
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
The 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 the image 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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the dithering apparatus,for camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 anti-shake function test of the camera ois is qualified.
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 a camera anti-shake test system based on image processing, 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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the dithering apparatus,for camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 anti-shake function test is qualified 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.
A third aspect of the present application provides a camera anti-shake test method device based on image processing, where the device includes 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, where the computer readable storage medium is configured to store program code, where the program code is configured to perform a camera anti-shake test method based on image processing according to any one of the first aspect of the present invention.
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 needs 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, the camera needs to complete shooting 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 ois by default to have the shake prevention function in the step.
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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the dithering apparatus,for camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 light path area to be 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 thatAt 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 the quality of the anti-shake effect is generally determined that the image captured at a predetermined shutter speed is clearClearly, international radiology considers that the human eyes have a blurred sense when the photos have penumbra blurring equal to 0.2mm, so that the standard dithering frequency and the 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 of ois, and can judge the qualification degree of the anti-shake function of ois of the whole 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 foregoing is a detailed description of a first embodiment of an image processing-based camera anti-shake test method provided in 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 in 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,for testing instruction interval time, +.>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 the 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 the anti-shake test in the half shake period is irrelevant to the time, and when the period is greater than the half shake period, the shake device drives the camera to reciprocate, namelyThe screw rod of the dithering device can rotate in the opposite direction, at the moment, ois optical dithering prevention is required to be reversely corrected, and the dithering prevention difficulty is necessarily larger, so that the dithering prevention 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,correction value for anti-shake suppression ratio +.>For the reciprocal correction factors, the coefficient is greater than 1 +.>Every time a complete ball screw stroke can be completed, a direction change is required, and every reverse change is required to prevent shakeThe effect has an influence, i.e. 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, the optical shaking prevention process is carried out by +.>When the camera is 1/2, the camera only translates in one direction, and +.>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 provided in 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 provided in 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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the dithering apparatus,for camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 anti-shake function test of the camera ois is qualified.
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, wherein the computer readable storage medium is configured to store program code for performing 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 this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. 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 U-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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the wobble device +.>For camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 anti-shake function test of the camera ois is qualified.
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 the ratio of->For focal length->For dithering the frequency of the device +.>For the angular range of the wobble device +.>For camera shutter speed, < >>For the longest straight line length +.>For marking dot diameter, +.>For the first test image size,/a>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 anti-shake function test is qualified 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. The camera anti-shake test method based on image processing is characterized by comprising 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 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.
CN202410257142.XA 2024-03-07 Camera anti-shake test method and system based on image processing Active CN117857781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410257142.XA CN117857781B (en) 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 Camera anti-shake test method and system based on image processing

Publications (2)

Publication Number Publication Date
CN117857781A true CN117857781A (en) 2024-04-09
CN117857781B CN117857781B (en) 2024-06-04

Family

ID=

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012320A1 (en) * 2000-01-31 2001-08-09 Toshifumi Watanabe Jitter measuring device and method
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
US20190320118A1 (en) * 2016-12-02 2019-10-17 Hangzhou Hikvision Digital Technology Co., Ltd. Anti-Shake Method for Camera and Camera
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012320A1 (en) * 2000-01-31 2001-08-09 Toshifumi Watanabe Jitter measuring device and method
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
US20190320118A1 (en) * 2016-12-02 2019-10-17 Hangzhou Hikvision Digital Technology Co., Ltd. Anti-Shake Method for Camera and Camera
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)

* Cited by examiner, † Cited by third party
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, 30 November 2018 (2018-11-30) *
严峻;高峰;: "光传输误码/抖动分析仪表的测试", 现代电信科技, no. 04, 15 April 2010 (2010-04-15) *
曹盛: "多媒体视频监控系统关键技术及应用", 《信息科技》, 15 December 2011 (2011-12-15) *

Similar Documents

Publication Publication Date Title
JP7015374B2 (en) Methods for image processing using dual cameras and mobile terminals
CN106707674B (en) Automatic focusing method of projection equipment and projection equipment
WO2020259474A1 (en) Focus tracking method and apparatus, terminal device, and computer-readable storage medium
CN107690673B (en) Image processing method and device and server
US7460773B2 (en) Avoiding image artifacts caused by camera vibration
EP2494524A2 (en) Algorithms for estimating precise and relative object distances in a scene
CN110602400B (en) Video shooting method and device and computer readable storage medium
CN109151257B (en) Image processing method and camera
CN109660718B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN110049237B (en) Camera anti-shake method and device, electronic equipment and computer storage medium
CN110266966A (en) Image generating method and device, electronic equipment, computer readable storage medium
CN109598764A (en) Camera calibration method and device, electronic equipment, computer readable storage medium
CN110493522A (en) Anti-fluttering method and device, electronic equipment, computer readable storage medium
CN111246100B (en) Anti-shake parameter calibration method and device and electronic equipment
CN113472991B (en) Control method, control device, camera assembly, electronic device and medium
CN111432118A (en) Image anti-shake processing method and device, electronic equipment and storage medium
CN107613190A (en) A kind of photographic method and terminal
EP3557530A1 (en) Calibration system and method
CN107465880B (en) Focusing method, device, terminal and computer readable storage medium
TWI515471B (en) Auto-focus system for multiple lens and method thereof
CN117857781B (en) Camera anti-shake test method and system based on image processing
CN112598719B (en) Depth imaging system, calibration method thereof, depth imaging method and storage medium
CN112437283B (en) Method and system for adjusting projection jitter
CN109743487A (en) A kind of ultrashort out-of-focus projection&#39;s device and its Atomatic focusing method of auto-focusing
CN110519513B (en) Anti-shake method and apparatus, electronic device, computer-readable storage medium

Legal Events

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