CN110855888B - Method for remotely controlling focusing system of camera module - Google Patents

Method for remotely controlling focusing system of camera module Download PDF

Info

Publication number
CN110855888B
CN110855888B CN201911150586.9A CN201911150586A CN110855888B CN 110855888 B CN110855888 B CN 110855888B CN 201911150586 A CN201911150586 A CN 201911150586A CN 110855888 B CN110855888 B CN 110855888B
Authority
CN
China
Prior art keywords
focusing
background server
camera module
picture
video stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911150586.9A
Other languages
Chinese (zh)
Other versions
CN110855888A (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.)
Pi Technology (Changzhou) Co.,Ltd.
Original Assignee
Shenzhen Pisofttech 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 Pisofttech Technology Co ltd filed Critical Shenzhen Pisofttech Technology Co ltd
Priority to CN201911150586.9A priority Critical patent/CN110855888B/en
Publication of CN110855888A publication Critical patent/CN110855888A/en
Application granted granted Critical
Publication of CN110855888B publication Critical patent/CN110855888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/663Remote control of cameras or camera parts, e.g. by remote control devices for controlling interchangeable camera parts based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which comprises the following steps: the background server sends a configuration instruction to the focusing system, and the focusing system sends a pre-login request to the background server through a production end software account; the method comprises the steps that a focusing system receives an authorized login instruction sent by a background server and logs in a production end software account of the focusing system; after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information; the focusing system sends a focusing result to a background server; and the background server receives and stores the focusing result. In the scheme, the remote management of the focusing operation of the third party is achieved by adding the software account of the control production end. In the scheme, the problem that the focusing configuration cannot be set is solved by opening the setting of the focusing configuration parameters in the background server.

Description

Method for remotely controlling focusing system of camera module
Technical Field
The invention relates to the field of camera lenses, in particular to a method for remotely controlling a focusing system of a camera module.
Background
In the field of camera lenses, an existing image capturing module includes a lens, a photosensitive chip, a circuit board of a minimum peripheral circuit required by the photosensitive chip, and a connection structure between the lens and the circuit board, and the image capturing module is also called a camera module. The camera module is used as an electronic component, is completely provided by a module manufacturer and is used for the complete machine assembly of an image acquisition product. And to the tight shot module, the module manufacturer need make a video recording the focusing of module before the module leaves the factory, then fixed with the camera lens to every. Therefore, module manufacturers focus the camera modules to obtain high-quality fixed-focus camera modules.
When the camera module focuses, only when the distance from the lens to the photosensitive chip is equal to the focal length of the lens, and when the light beam collected by the lens is just vertical to the target surface of the photosensitive chip, the photosensitive chip can collect a clear image. The distance from the lens to the photosensitive chip and the angle from the light beam to the target surface of the photosensitive chip require very accurate data. Slight deviations between these two data and the ideal data can have a great influence on the final imaging definition.
The focusing operation of the camera module is performed in a camera module production factory, and a common module production factory is a processing factory of a third party. At present, the conventional focusing method of the camera module focuses by means of a mode of subjectively judging whether the focusing is ideal or not by checking images of the camera module manually. The focusing mode has strong subjectivity and puts high requirements on the experience and operation method of an operator. Because the focusing system is put in the camera module processing factory of third party and uses, just need to carry out strict management and control to the focusing process.
Therefore, it is important to have a reliable and effective management method for managing the focusing process.
Disclosure of Invention
The embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which is used for improving the control quality and efficiency of the focusing process of the camera module.
The embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which comprises the following steps:
a background server sends a configuration instruction to a focusing system, wherein the configuration instruction is used for pre-configuring production end software account information of the focusing system, and the configuration instruction comprises the production end software account information of the focusing system; the production end software account information of the focusing system comprises focusing authorization information and focusing operation setting information;
the focusing system sends a pre-login request to the background server through a production end software account of the focusing system;
the focusing system receives an authorized login instruction sent by the background server and logs in a production end software account of the focusing system;
after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information;
the focusing system sends a focusing result to a background server;
and the background server receives and stores the focusing result.
Optionally, the focusing operation information includes a preset sharpness value, and the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information, including: when the position of a lens relative to a photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture and outputs a video stream;
calculating the definition value of a fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream;
when the definition value of the fixed preset area of the frame picture at the current moment in the video stream output reaches the preset definition value, stopping adjusting the position of the lens relative to the photosensitive chip, fixing the position of the lens relative to the photosensitive chip, and storing the focusing parameter of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches the preset definition value.
Optionally, after calculating the sharpness value of the fixed preset region of each frame of the picture in the video stream, the method further includes:
and displaying the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output.
Optionally, while adjusting the position of the lens relative to the photosensitive chip, the method further includes, before acquiring a preset picture through a camera module including the lens and the photosensitive chip and outputting a video stream:
fixing a preset test drawing;
adjusting and setting the illumination intensity of a preset shooting environment where the preset test drawing is located;
when adjusting the position of the relative sensitization chip of camera lens, through containing the camera lens with the preset picture of the module collection of making a video recording of sensitization chip, output video stream includes:
when the position of the lens relative to the photosensitive chip is adjusted, the camera module comprising the lens and the photosensitive chip collects the picture of the preset test drawing, and a video stream is output.
Optionally, the fixing of the preset test drawing includes:
and fixing a preset test drawing set, wherein the preset test drawing set comprises N preset test drawings, and N is 1 or 2 or an integer greater than 2.
Optionally, the focusing system includes the image acquisition system; when the position of the lens relative to the photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture, and before the video stream is output, the method further comprises the following steps:
connecting the image acquisition system with a camera module comprising the lens and the photosensitive chip;
configuring shooting parameters of a camera module comprising the lens and the photosensitive chip through the image acquisition system;
the image acquisition system drives the camera module to start a shooting function;
when the position of the lens relative to the photosensitive chip is adjusted, a preset picture is collected through a camera module comprising the lens and the photosensitive chip, and after a video stream is output, the method further comprises the following steps:
acquiring the video stream through the image acquisition system;
the calculating the definition value of the fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream comprises the following steps:
calculating a definition value of a fixed preset area of each frame of picture in a video stream aiming at each frame of picture output by the video stream through the image acquisition system;
when the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output reaches the preset definition value, the method further comprises the following steps of:
and judging whether the definition value of a fixed preset area of the frame picture at the current moment reaches a preset definition value or not by the image acquisition system when the video stream is output.
Optionally, before the focusing system performs a focusing operation on the camera module in the focusing environment according to the focusing operation setting information, the method further includes:
the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
after the background server verifies the focusing authorization information, updating the focusing operation setting information, and sending a first focusing operation instruction to the focusing system, wherein the first focusing operation instruction comprises the updated focusing operation setting information;
and after receiving the first focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the updated focusing operation setting information.
Optionally, before the focusing system performs a focusing operation on the camera module in the focusing environment according to the focusing operation setting information, the method further includes:
the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
after the background server verifies the focusing authorization information, sending a second focusing operation instruction to the focusing system, wherein the second focusing operation instruction comprises the focusing operation setting information;
and after receiving the second focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information.
Optionally, before the focus system sends a pre-login request to the background server through a production side software account of the focus system, the method further includes:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server updates the focusing operation setting information in the database and after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is different from the updated focusing operation setting information in the database, the background server generates the first focusing operation instruction.
Optionally, before the focus system sends a pre-login request to the background server through a production side software account of the focus system, the method further includes:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is the same as the updated focusing operation setting information in the database, the background server generates the first focusing operation instruction.
Optionally, the storing of the focusing parameters of the camera module when the definition value of the fixed preset area of the frame at the current time reaches the preset definition value includes:
acquiring and storing the focusing parameters of the camera module when the definition value of a fixed preset area of the frame picture at the current moment reaches a preset definition value through the image acquisition system;
optionally, the storing of the focusing parameters of the camera module when the definition value of the fixed preset area of the frame at the current time reaches the preset definition value includes:
sending a focusing stopping instruction to the camera module through the image acquisition system so that the camera module stores focusing parameters of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches a preset definition value.
Optionally, before the calculating, by the image acquisition system, a sharpness value of a fixed preset region of each frame of picture in the video stream for each frame of picture output by the video stream, the method further includes:
and setting parameters of a fixed preset area of the frame picture, wherein the parameters of the fixed preset area of the frame picture comprise the number of sub-areas included in the fixed preset area, and the coordinates of each sub-area or the position and the size of each sub-area.
Optionally, the calculating, by the image acquisition system, a sharpness value of a fixed preset region of each frame of picture in the video stream for each frame of picture output by the video stream includes:
setting a weighted value of each subarea in each frame of picture output by a video stream through the image acquisition system;
calculating the definition value of each sub-area of each frame of picture in a video stream aiming at each frame of picture output by the video stream through the image acquisition system;
and performing weighted calculation on the definition values of the sub-areas corresponding to the weighted values of the sub-areas in the frame picture by the image acquisition system according to a weighted algorithm and the weighted values of each sub-area in the frame picture to obtain weighted definition values serving as the definition values of the fixed preset area of each frame picture in the video stream.
Optionally, after the calculating, by the image acquisition system, a sharpness value of each sub-region of each frame of the frame of picture in the video stream for each frame of picture output by the video stream, the method further includes:
judging whether the definition value of each sub-area reaches a target value corresponding to the sub-area or not through the image acquisition system;
when the definition values of a plurality of subareas which accord with the preset number reach the target values corresponding to the subareas, the definition values of the subareas corresponding to the weighted values of the subareas in the frame picture are weighted and calculated by the image acquisition system according to a weighting algorithm and the weighted value of each subarea in the frame picture, and the weighted definition values are obtained and used as the definition values of the fixed preset area of each frame picture in the video stream.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which comprises the following steps: a background server sends a configuration instruction to a focusing system, wherein the configuration instruction is used for pre-configuring production end software account information of the focusing system, and the configuration instruction comprises the production end software account information of the focusing system; the production end software account information of the focusing system comprises focusing authorization information and focusing operation setting information; the focusing system sends a pre-login request to the background server through a production end software account of the focusing system; the focusing system receives an authorized login instruction sent by the background server and logs in a production end software account of the focusing system; after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information; the focusing system sends a focusing result to a background server; and the background server receives and stores the focusing result. In the scheme, the remote management of the focusing operation of the third party is achieved by adding the software account of the control production end.
In the scheme, the problem that the focusing configuration cannot be set is solved by opening the setting of the focusing configuration parameters in the background server.
In addition, in the above scheme, all configuration parameters are stored in the background server, and the website of the background server is input through a network account (e.g., a web browsing server), so that the background server can be logged in to edit the configuration parameters, thereby solving the problem that the focusing parameters are dead and cannot be modified through an interface. The configuration parameters are edited without time and space limitation, and the method does not need to reach a focusing production site at any time and any place, and is very efficient.
In addition, in the scheme, every time the focusing operation is performed, the production end software applies for the authorization of focusing permission to the background server. And when the background server permits the production end software to perform focusing, the production end software can perform focusing. By modifying the configuration setting of the background server, the production end software takes effect immediately. When abnormal operation of the production end software is found, the background server setting is modified, and the abnormal operation of the production end software can be immediately prevented, so that the remote focusing control operation on a production field in real time is realized, and the safety and reliability of focusing are improved.
Drawings
Fig. 1 is a flowchart of a method for remotely controlling a focusing system of a camera module according to an embodiment of the present invention;
fig. 2 is a structural diagram of a focusing system of a camera module according to an embodiment of the present invention;
FIG. 3 is a flowchart of a focus authorization process provided by an embodiment of the present invention;
fig. 4 is a flowchart of another authorization for focusing according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which is used for improving the control quality and efficiency of the focusing process of the camera module.
The embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which comprises the following steps: the background server sends a configuration instruction to the focusing system, and the focusing system sends a pre-login request to the background server through a production end software account; the method comprises the steps that a focusing system receives an authorized login instruction sent by a background server and logs in a production end software account of the focusing system; after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information; the focusing system sends a focusing result to a background server; and the background server receives and stores the focusing result. In the scheme, the remote management of the focusing operation of the third party is achieved by adding the software account of the control production end. In the scheme, the problem that the focusing configuration cannot be set is solved by opening the setting of the focusing configuration parameters in the background server.
As shown in fig. 1, a method for remotely controlling a focusing system of a camera module according to an embodiment of the present invention includes the following steps:
110. and the background server sends a configuration instruction to the focusing system. The configuration instruction is used for pre-configuring production end software account information of the focusing system, and the configuration instruction comprises the production end software account information of the focusing system; and the production end software account information of the focusing system comprises focusing authorization information and focusing operation setting information.
120. And the focusing system sends a pre-login request to the background server through a production end software account of the focusing system.
130. And the focusing system receives an authorized login instruction sent by the background server and logs in a production end software account of the focusing system.
140. And after a user configures the focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information.
150. And the focusing system sends a focusing result to the background server.
160. And the background server receives and stores the focusing result.
Optionally, the focusing operation information includes a preset sharpness value.
The focusing system carries out focusing operation on the camera module in the focusing environment according to the focusing operation setting information, and the method comprises the following steps:
when the position of a lens relative to a photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture and outputs a video stream;
calculating the definition value of a fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream;
when the definition value of the fixed preset area of the frame picture at the current moment in the video stream output reaches the preset definition value, stopping adjusting the position of the lens relative to the photosensitive chip, fixing the position of the lens relative to the photosensitive chip, and storing the focusing parameter of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches the preset definition value.
Optionally, after calculating the sharpness value of the fixed preset region of each frame of the picture in the video stream, the method further includes:
and displaying the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output.
In the embodiment, the definition values of different definition calculation areas are calculated through an algorithm, and the calculated definition values are displayed, so that the focusing effect of the current module is reflected more objectively, the focusing effect is judged without judging whether the imaging is clear through human eyes like the traditional method, and the dependence on subjective judgment of people is reduced.
In addition, among the above-mentioned scheme, through to focusing effect quantization and visual mode, make the focusing process target in place by one step, can ensure moreover that the effect of every module of making a video recording can both be transferred to the best, improve the uniformity of the definition of every module of making a video recording greatly.
Optionally, while adjusting the position of the lens relative to the photosensitive chip, the method further includes, before acquiring a preset picture through a camera module including the lens and the photosensitive chip and outputting a video stream:
fixing a preset test drawing;
adjusting and setting the illumination intensity of a preset shooting environment where the preset test drawing is located;
when adjusting the position of the relative sensitization chip of camera lens, through containing the camera lens with the preset picture of the module collection of making a video recording of sensitization chip, output video stream includes:
when the position of the lens relative to the photosensitive chip is adjusted, the camera module comprising the lens and the photosensitive chip collects the picture of the preset test drawing, and a video stream is output.
Optionally, the fixing of the preset test drawing includes:
and fixing a preset test drawing set, wherein the preset test drawing set comprises N preset test drawings, and N is 1 or 2 or an integer greater than 2.
In this embodiment, the number of the test drawings is determined according to the test requirements of the module to be focused and the efficiency of the resolution calculation algorithm. The more the test drawing quantity, the bigger the visual angle area covered by the test drawing is, and the bigger the area of the definition of the camera module to be tested is. Meanwhile, the more test drawings are, the more areas needing to calculate definition are, the longer the calculation time is, and the higher the performance requirement on the PC is. If the calculation time is too long, the real-time performance of the sharpness numerical calculation is affected, and therefore the efficiency of the focusing operation is affected. The test drawings need to satisfy the definition test of several important characteristic regions and be uniformly distributed in the whole imaging picture. Generally, the test drawings need to be placed in five feature areas of the middle, top middle, bottom middle, left middle and right middle of the imaged picture.
In the present embodiment, specifically, the pattern edge of the test drawing is clear so as to be very easily and accurately recognized by the sharpness calculation algorithm. The number of the pattern lines of the test drawing is enough, so that the number calculated by the definition algorithm is large enough, and the definition camera module with different definition degrees can be better distinguished. The sharpness algorithm is used for calculating the sharpness value by calculating the sharpness of the edge of the pattern according to the characteristics of the sharpness algorithm. Since the difference between the black and white transition values is the largest in the black and white line image, for example, in the 8-bit depth image, the RGB values of the pure black color are (0,0,0), the RGB values of the pure white color are (255,255,255), and the difference between the RGB values of the pure black color and the pure white color is 255 with the maximum 8-bit depth value. Preferably, the test paper adopts a square or round test paper with dense black and white lattices or dense black and white stripes, so that the total length of the black and white edges is longer, the effective area contributing to the calculation of the definition value is larger, namely the black and white edge area is larger, the calculated definition value is larger, and the numerical difference of the camera modules with close definition can be better pulled away.
In addition, in the embodiment, because the illumination intensity affects the final imaging of the shooting, too much noise is generated on the imaging picture by the shooting due to too small illumination intensity, and the recognition of the edge of the test pattern by the algorithm is interfered by the too much noise, so that the calculation of the final definition value is affected; too much light can cause overexposure on the imaging picture, so that the color of the test pattern is diluted, the edge of the test pattern is covered by glare, and even the test pattern cannot be shot, thereby influencing the correct calculation of the algorithm on the edge of the test pattern. Therefore, the illumination intensity is controlled. Different modules of making a video recording are because different, the sensitization chip is different to the bearing capacity of luminous flux through the aperture, need be according to the module of making a video recording of treating the focusing, under the different illumination intensity of test, the imaging picture condition of the module of making a video recording, the focusing illumination intensity of every type of module of making a video recording of deciding. Under the condition that the focusing of the camera module is adjusted well, the test pattern in the imaging picture is very clear, the color of the pattern is normal, the edge of the pattern has no stray light, and the whole picture has no obvious noise.
Alternatively, in another embodiment, the captured video stream is acquired by an image capturing system, and then the sharpness calculation is performed, as shown in fig. 2, the image capturing system 220 includes an image capturing box 221 and a processor 222, the image capturing box 221 is communicatively connected to the camera module 210 including the lens and the photosensitive chip, the image capturing box 221 is further communicatively connected to the processor 222, and the processor 222 may be a PC. When the position of the lens relative to the photosensitive chip is adjusted, a preset picture is collected through a camera module comprising the lens and the photosensitive chip, and before a video stream is output, the method further comprises the following steps: optionally, the focusing system includes the image acquisition system; when the position of the lens relative to the photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture, and before the video stream is output, the method further comprises the following steps:
connecting the image acquisition system with a camera module comprising the lens and the photosensitive chip;
in this step, can be connected with the module of making a video recording through the image acquisition box among the image acquisition system.
Configuring shooting parameters of a camera module comprising the lens and the photosensitive chip through the image acquisition system;
in this step, the shooting parameters of the camera module including the lens and the photosensitive chip are configured through an image acquisition box.
The image acquisition system drives the camera module to start a shooting function; in this step, through the image acquisition box drive the module of making a video recording to make the module of making a video recording starts the shooting function.
In this embodiment, the image capture box performs parameter configuration on the camera module to be focused, drives the camera module to be focused, and enables the camera module to be focused to output a video stream.
When the position of the lens relative to the photosensitive chip is adjusted, a preset picture is collected through a camera module comprising the lens and the photosensitive chip, and after a video stream is output, the method further comprises the following steps:
acquiring the video stream through the image acquisition system; in the step, the image acquisition box acquires a video stream output by the camera module and forwards the video stream to the PC;
optionally, before the calculating, by the image acquisition system, a sharpness value of a fixed preset region of each frame of picture in the video stream for each frame of picture output by the video stream, the method further includes:
and setting parameters of a fixed preset area of the frame picture, wherein the parameters of the fixed preset area of the frame picture comprise the number of sub-areas included in the fixed preset area, and the coordinates of each sub-area or the position and the size of each sub-area.
In the PC control client, the calculation regions of definition can be set, including the number of the calculation regions, the coordinates of the calculation regions and the length and width of the calculation regions. For example, the resolution of the video stream is 1000 × 1000, that is, the resolution of the framed picture is 1000 × 1000, five sharpness calculation regions of the center, the top center, the bottom center, the left center, and the right center are provided, the coordinates of the center points of the five calculation regions are (500 ), (500,950), (500,50), (50,500), and (950,500), and the size of each of the five calculation regions is 40 × 40.
The calculating the definition value of the fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream comprises the following steps:
calculating a definition value of a fixed preset area of each frame of picture in a video stream aiming at each frame of picture output by the video stream through the image acquisition system;
after the PC receives the video stream data transmitted by the image acquisition box, in the step, the PC analyzes each frame in the video stream and calculates the definition value of the self-defined area to be calculated. The PC frames the video stream transmitted from the image acquisition box, and frames in the video stream are separated frame by frame to form one picture. And the PC calculates all definition calculation regions of the image obtained by frame splitting through an algorithm.
When the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output reaches the preset definition value, the method further comprises the following steps of:
and judging whether the definition value of a fixed preset area of the frame picture at the current moment reaches a preset definition value or not by the image acquisition system when the video stream is output.
In this step, the PC sets a threshold value for the sharpness value of each region, the threshold value being a preset sharpness value, and indicates that the sharpness of a sharpness calculation region is acceptable when the sharpness value of the region exceeds the threshold value set for the region.
Optionally, as shown in fig. 3, before the focusing system performs the focusing operation on the image capturing module in the focusing environment according to the focusing operation setting information, that is, before the step 140 is performed, the method further includes the following steps:
310. the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
320. after the background server verifies the focusing authorization information, updating the focusing operation setting information, and sending a first focusing operation instruction to the focusing system, wherein the first focusing operation instruction comprises the updated focusing operation setting information;
330. and after receiving the first focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the updated focusing operation setting information.
In the present embodiment, the focusing operation may be updated.
Optionally, unlike the embodiment shown in fig. 3, in another embodiment, as shown in fig. 4, before the focus system performs the focus operation on the image capture module in the focus environment according to the focus operation setting information, that is, before the step 140 is performed, the method further includes:
410. the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
420. after the background server verifies the focusing authorization information, sending a second focusing operation instruction to the focusing system, wherein the second focusing operation instruction comprises the focusing operation setting information;
430. and after receiving the second focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information.
In the present embodiment, the focusing operation is not updated.
Based on the embodiment shown in fig. 3, optionally, before the focus system sends a pre-login request to the backend server through a production-side software account of the focus system, the method further includes:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server updates the focusing operation setting information in the database and after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is different from the updated focusing operation setting information in the database, the background server generates the first focusing operation instruction.
Optionally, based on any implementation manner of the foregoing implementation, before the focus system sends a pre-login request to the background server through a production side software account of the focus system, and before step 120, the method further includes:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is the same as the updated focusing operation setting information in the database, the background server generates the first focusing operation instruction.
Optionally, the storing of the focusing parameters of the camera module when the definition value of the fixed preset area of the frame at the current time reaches the preset definition value includes:
and acquiring and storing the focusing parameters of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches a preset definition value through the image acquisition system.
In the scheme, the PC is used for storing the focusing parameters of each camera module, namely recording and archiving the focusing information, so that the focusing condition of the modules can be reviewed and retrieved in the future, and the life cycle of each module can be better managed.
Optionally, the storing of the focusing parameters of the camera module when the definition value of the fixed preset area of the frame at the current time reaches the preset definition value includes:
sending a focusing stopping instruction to the camera module through the image acquisition system so that the camera module stores focusing parameters of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches a preset definition value.
In the scheme, the PC is used for forwarding the focusing instruction comprising the focusing parameters to the camera module so as to record and file the focusing information of each module, so that the focusing condition of the module can be reviewed and retrieved in the future, and the life cycle of each module can be better managed.
Optionally, the calculating, by the image acquisition system, a sharpness value of a fixed preset region of each frame of picture in the video stream for each frame of picture output by the video stream includes:
setting a weighted value of each subarea in each frame of picture output by a video stream through the image acquisition system;
calculating the definition value of each sub-area of each frame of picture in a video stream aiming at each frame of picture output by the video stream through the image acquisition system;
and performing weighted calculation on the definition values of the sub-areas corresponding to the weighted values of the sub-areas in the frame picture by the image acquisition system according to a weighted algorithm and the weighted values of each sub-area in the frame picture to obtain weighted definition values serving as the definition values of the fixed preset area of each frame picture in the video stream.
Because the camera modules in different application scenes have different requirements on the definition of different areas in a picture, a set of weighting algorithm needs to be added, the definition value of each area is weighted and calculated according to the actual requirement of a specific module, and finally a final definition score is obtained. All weighting coefficients should add up to 1. For example, when the requirement for the center definition of the camera module is high and the requirement for the edge definition is not high, five definition calculation regions of the center, the upper middle, the lower middle, the left middle and the right middle can be set. The sharpness calculation weights of the five sharpness calculation regions of the middle, upper middle, lower middle, left middle, and right middle may be set to 60%, 10%, and 10%, respectively. In this weighting algorithm, all weighting factors, i.e. the sum of the five weighting factors 60%, 10% and 10%, are equal to 1, i.e. 60% + 10% + 10% + 1. For another example, when the camera module has the same requirements for center sharpness and edge sharpness, five sharpness calculation regions, namely, center in the middle, top center, bottom center, left center, and right center, may be provided. The sharpness calculation weights of the five sharpness calculation regions of the middle, upper middle, lower middle, left middle, and right middle may be set to be the same, each being 20%. In this weighting algorithm, all weighting factors, i.e. the sum of the five weighting factors 20%, 20% and 20%, are equal to 1, i.e. 20% + 20% + 20% + 20% + 20% + 1. The definition calculation method after weighting comprises the following steps: the definition of each region of which the definition value is to be calculated is multiplied by the weighting coefficient of the region to obtain a product, and then the multipliers calculated by all the regions of which the definition value is to be calculated are added to obtain a sum, namely the definition value of the frame image. For example, in an image with five sharpness calculation regions, the sharpness weighting coefficients of the five sharpness calculation regions are 60%, 10%, and 10%, respectively, and the sharpness values calculated by the five sharpness calculation regions are 1000, 800, 900, 1000, and 700, respectively, and after weighting calculation, the sharpness value of the image is 940. Namely as follows:
1000*60%+800*10%+900*10%+1000*10%+700*10%=940。
optionally, after the calculating, by the image acquisition system, a sharpness value of each sub-region of each frame of the frame of picture in the video stream for each frame of picture output by the video stream, the method further includes:
judging whether the definition value of each sub-area reaches a target value corresponding to the sub-area or not through the image acquisition system;
when the definition values of a plurality of subareas which accord with the preset number reach the target values corresponding to the subareas, the definition values of the subareas corresponding to the weighted values of the subareas in the frame picture are weighted and calculated by the image acquisition system according to a weighting algorithm and the weighted value of each subarea in the frame picture, and the weighted definition values are obtained and used as the definition values of the fixed preset area of each frame picture in the video stream.
Because the camera modules in different application scenes have different requirements on the definition of different areas in a picture, a set of weighting algorithm needs to be added, the definition value of each area is weighted and calculated according to the actual requirement of a specific module, and finally a final definition score is obtained. All weighting coefficients should add up to 1. For example, when the requirement for the center definition of the camera module is high and the requirement for the edge definition is not high, five definition calculation regions of the center, the upper middle, the lower middle, the left middle and the right middle can be set. The sharpness calculation weights of the five sharpness calculation regions of the middle, upper middle, lower middle, left middle, and right middle may be set to 60%, 10%, and 10%, respectively. In this weighting algorithm, all weighting factors, i.e. the sum of the five weighting factors 60%, 10% and 10%, are equal to 1, i.e. 60% + 10% + 10% + 1. For another example, when the camera module has the same requirements for center sharpness and edge sharpness, five sharpness calculation regions, namely, center in the middle, top center, bottom center, left center, and right center, may be provided. The sharpness calculation weights of the five sharpness calculation regions of the middle, upper middle, lower middle, left middle, and right middle may be set to be the same, each being 20%. In this weighting algorithm, all weighting factors, i.e. the sum of the five weighting factors 20%, 20% and 20%, are equal to 1, i.e. 20% + 20% + 20% + 20% + 20% + 1. The definition calculation method after weighting comprises the following steps: the definition of each region of which the definition value is to be calculated is multiplied by the weighting coefficient of the region to obtain a product, and then the multipliers calculated by all the regions of which the definition value is to be calculated are added to obtain a sum, namely the definition value of the frame image. For example, in an image with five sharpness calculation regions, the sharpness weighting coefficients of the five sharpness calculation regions are 60%, 10%, and 10%, respectively, and the sharpness values calculated by the five sharpness calculation regions are 1000, 800, 900, 1000, and 700, respectively, and after weighting calculation, the sharpness value of the image is 940. Namely as follows:
1000*60%+800*10%+900*10%+1000*10%+700*10%=940。
optionally, the display may receive an image frame of the focusing process, a resolution calculation area, and a focusing setting interface from the PC.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method for remotely controlling a focusing system of a camera module, which comprises the following steps: a background server sends a configuration instruction to a focusing system, wherein the configuration instruction is used for pre-configuring production end software account information of the focusing system, and the configuration instruction comprises the production end software account information of the focusing system; the production end software account information of the focusing system comprises focusing authorization information and focusing operation setting information; the focusing system sends a pre-login request to the background server through a production end software account of the focusing system; the focusing system receives an authorized login instruction sent by the background server and logs in a production end software account of the focusing system; after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information; the focusing system sends a focusing result to a background server; and the background server receives and stores the focusing result. In the scheme, the remote management of the focusing operation of the third party is achieved by adding the software account of the control production end.
In the scheme, the problem that the focusing configuration cannot be set is solved by opening the setting of the focusing configuration parameters in the background server.
In addition, in the above scheme, all configuration parameters are stored in the background server, and the website of the background server is input through a network account (e.g., a web browsing server), so that the background server can be logged in to edit the configuration parameters, thereby solving the problem that the focusing parameters are dead and cannot be modified through an interface. The configuration parameters are edited without time and space limitation, and the method does not need to reach a focusing production site at any time and any place, and is very efficient.
In addition, in the scheme, every time the focusing operation is performed, the production end software applies for the authorization of focusing permission to the background server. And when the background server permits the production end software to perform focusing, the production end software can perform focusing. By modifying the configuration setting of the background server, the production end software takes effect immediately. When abnormal operation of the production end software is found, the background server setting is modified, and the abnormal operation of the production end software can be immediately prevented, so that the remote focusing control operation on a production field in real time is realized, and the safety and reliability of focusing are improved.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for remotely controlling a focusing system of a camera module is characterized by comprising the following steps:
a background server sends a configuration instruction to a focusing system, wherein the configuration instruction is used for pre-configuring production end software account information of the focusing system, and the configuration instruction comprises the production end software account information of the focusing system; the production end software account information of the focusing system comprises focusing authorization information and focusing operation setting information;
the focusing system sends a pre-login request to the background server through a production end software account of the focusing system;
the focusing system receives an authorized login instruction sent by the background server and logs in a production end software account of the focusing system;
after a user configures a focusing environment of the camera module, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information;
the focusing system sends a focusing result to a background server;
and the background server receives and stores the focusing result.
2. The method of claim 1, wherein the focus operation information includes a preset sharpness value, and the focus system performs a focus operation on the image capture module in the focus environment according to the focus operation setting information, comprising: when the position of a lens relative to a photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture and outputs a video stream;
calculating the definition value of a fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream;
when the definition value of the fixed preset area of the frame picture at the current moment in the video stream output reaches the preset definition value, stopping adjusting the position of the lens relative to the photosensitive chip, fixing the position of the lens relative to the photosensitive chip, and storing the focusing parameter of the camera module when the definition value of the fixed preset area of the frame picture at the current moment reaches the preset definition value.
3. The method of claim 2, wherein after calculating the sharpness value for a fixed preset region of each frame of a picture in the video stream, further comprising:
and displaying the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output.
4. The method as claimed in claim 2, wherein before the preset picture is captured by a camera module comprising the lens and the photosensitive chip and the video stream is output while the position of the lens relative to the photosensitive chip is adjusted, the method further comprises:
fixing a preset test drawing;
adjusting and setting the illumination intensity of a preset shooting environment where the preset test drawing is located;
when adjusting the position of the relative sensitization chip of camera lens, through containing the camera lens with the preset picture of the module collection of making a video recording of sensitization chip, output video stream includes:
when the position of the lens relative to the photosensitive chip is adjusted, the camera module comprising the lens and the photosensitive chip collects the picture of the preset test drawing, and a video stream is output.
5. The method of claim 4, wherein said fixing the predetermined test drawing comprises:
and fixing a preset test drawing set, wherein the preset test drawing set comprises N preset test drawings, and N is 1 or 2 or an integer greater than 2.
6. The method of claim 2, wherein the focusing system comprises an image acquisition system; when the position of the lens relative to the photosensitive chip is adjusted, a camera module comprising the lens and the photosensitive chip collects a preset picture, and before the video stream is output, the method further comprises the following steps:
connecting the image acquisition system with a camera module comprising the lens and the photosensitive chip;
configuring shooting parameters of a camera module comprising the lens and the photosensitive chip through the image acquisition system;
the image acquisition system drives the camera module to start a shooting function;
when the position of the lens relative to the photosensitive chip is adjusted, a preset picture is collected through a camera module comprising the lens and the photosensitive chip, and after a video stream is output, the method further comprises the following steps:
acquiring the video stream through the image acquisition system;
the calculating the definition value of the fixed preset area of each frame of picture in the video stream aiming at each frame of picture output by the video stream comprises the following steps:
calculating a definition value of a fixed preset area of each frame of picture in a video stream aiming at each frame of picture output by the video stream through the image acquisition system;
when the definition value of the fixed preset area of the frame picture at the current moment when the video stream is output reaches the preset definition value, the method further comprises the following steps of:
and judging whether the definition value of a fixed preset area of the frame picture at the current moment reaches a preset definition value or not by the image acquisition system when the video stream is output.
7. The method according to claim 1, wherein the focus system performs a focus operation on the image pickup module in the focus environment in accordance with the focus operation setting information, and further comprising:
the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
after the background server verifies the focusing authorization information, updating the focusing operation setting information, and sending a first focusing operation instruction to the focusing system, wherein the first focusing operation instruction comprises the updated focusing operation setting information;
and after receiving the first focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the updated focusing operation setting information.
8. The method according to claim 1, wherein the focus system performs a focus operation on the image pickup module in the focus environment in accordance with the focus operation setting information, and further comprising:
the focusing system sends a focusing request to the background server, wherein the focusing request comprises the focusing authorization information and the focusing operation setting information;
after the background server verifies the focusing authorization information, sending a second focusing operation instruction to the focusing system, wherein the second focusing operation instruction comprises the focusing operation setting information;
and after receiving the second focusing operation instruction, the focusing system performs focusing operation on the camera module in the focusing environment according to the focusing operation setting information.
9. The method of claim 7, wherein prior to the focus system sending a pre-login request to the backend server via a production side software account of the focus system, the method further comprises:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server updates the focusing operation setting information in the database and after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is different from the updated focusing operation setting information in the database, the background server generates the first focusing operation instruction.
10. The method of claim 8, wherein prior to the focus system sending a pre-login request to the backend server via a production side software account of the focus system, the method further comprises:
the focusing system sends configuration success information to the background server;
the background server stores the production end software account information of the focusing system into a database;
after the background server verifies the focusing authorization information, the method further comprises:
and when the background server judges that the focusing operation setting information in the focusing request is the same as the updated focusing operation setting information in the database, the background server generates a second focusing operation instruction.
CN201911150586.9A 2019-11-21 2019-11-21 Method for remotely controlling focusing system of camera module Active CN110855888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911150586.9A CN110855888B (en) 2019-11-21 2019-11-21 Method for remotely controlling focusing system of camera module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911150586.9A CN110855888B (en) 2019-11-21 2019-11-21 Method for remotely controlling focusing system of camera module

Publications (2)

Publication Number Publication Date
CN110855888A CN110855888A (en) 2020-02-28
CN110855888B true CN110855888B (en) 2021-10-15

Family

ID=69603410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911150586.9A Active CN110855888B (en) 2019-11-21 2019-11-21 Method for remotely controlling focusing system of camera module

Country Status (1)

Country Link
CN (1) CN110855888B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442247A (en) * 2013-08-15 2013-12-11 华南理工大学 Camera image resolution estimation method and camera image resolution estimation system
CN106878622A (en) * 2017-04-20 2017-06-20 长春欧意光电技术有限公司 A kind of automatic focusing processing system and processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5293716B2 (en) * 2010-09-30 2013-09-18 株式会社ニコン Interchangeable lens, camera body and camera system
CN105407265B (en) * 2014-09-05 2018-11-02 佳能株式会社 Interchangeable lens device, image capture apparatus and control method
CN107093228B (en) * 2016-02-17 2020-09-01 腾讯科技(深圳)有限公司 Authorization method, device and system applied to electronic lock

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442247A (en) * 2013-08-15 2013-12-11 华南理工大学 Camera image resolution estimation method and camera image resolution estimation system
CN106878622A (en) * 2017-04-20 2017-06-20 长春欧意光电技术有限公司 A kind of automatic focusing processing system and processing method

Also Published As

Publication number Publication date
CN110855888A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
US8629915B2 (en) Digital photographing apparatus, method of controlling the same, and computer readable storage medium
JP3528184B2 (en) Image signal luminance correction apparatus and luminance correction method
US20200145633A1 (en) White balance synchronization method and apparatus, and terminal device
CN102572506B (en) Method and digital video camera for improving the image quality of images in a video image stream
CN110248105B (en) Image processing method, camera and computer storage medium
CN104853112A (en) Method and apparatus for controlling long exposure time
US8493464B2 (en) Resolution adjusting method
WO2022057670A1 (en) Real-time focusing method, apparatus and system, and computer-readable storage medium
CN110730307A (en) Focusing device of camera module
JP2004343519A (en) Imaging apparatus and image processing apparatus
US20090322934A1 (en) Focus detection apparatus and control method therefor
CN103004179B (en) Tracking means and tracking
US10887524B2 (en) Image pickup apparatus, an image processing method and a non-transitory computer-readable medium
CN110677576B (en) Focusing system of camera module
CN110661981B (en) System for remotely controlling focusing system of camera module
CN109120847B (en) Control method and device of image acquisition equipment
CN110855888B (en) Method for remotely controlling focusing system of camera module
CN110730308B (en) Method for remotely controlling focusing system of camera module
CN110730309A (en) Focusing method of camera module
TWI626620B (en) Image processing method and device, electronic device, and computer readable storage medium
CN110891143B (en) System for remotely controlling focusing system of camera module
CN103916594B (en) Imaging apparatus and imaging method
CN210781057U (en) Focusing device of camera module
US20120075495A1 (en) Electronic camera
CN109598195A (en) A kind of clear face image processing method and device based on monitor video

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building 4D, Gongyanhui Science and Technology Industrial Park, No. 160, Xihu West Road, Wujin National High and New Technology Industrial Development Zone, Changzhou City, Jiangsu Province, 213166

Patentee after: Pi Technology (Changzhou) Co.,Ltd.

Address before: 518052 102, building C11, TCL Science Park, 1001 Zhongshan Garden Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN PISOFTTECH TECHNOLOGY Co.,Ltd.