CN118055223A - Time sequence adjusting method and device for video acquisition signals and electronic equipment - Google Patents

Time sequence adjusting method and device for video acquisition signals and electronic equipment Download PDF

Info

Publication number
CN118055223A
CN118055223A CN202211436840.3A CN202211436840A CN118055223A CN 118055223 A CN118055223 A CN 118055223A CN 202211436840 A CN202211436840 A CN 202211436840A CN 118055223 A CN118055223 A CN 118055223A
Authority
CN
China
Prior art keywords
time sequence
control data
sequence control
value
video 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.)
Pending
Application number
CN202211436840.3A
Other languages
Chinese (zh)
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202211436840.3A priority Critical patent/CN118055223A/en
Publication of CN118055223A publication Critical patent/CN118055223A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides a time sequence adjusting method, a device and electronic equipment of a video acquisition signal, and relates to the technical field of testing, wherein the method comprises the following steps: traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on the each set of timing control data; comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data; and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data, thereby solving the technical problem of how to better perform time sequence test on the video acquisition signals of the video recorder so as to determine proper time sequence control parameters in the prior art.

Description

Time sequence adjusting method and device for video acquisition signals and electronic equipment
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method and an apparatus for adjusting a timing sequence of a video acquisition signal, and an electronic device.
Background
Currently, in order to meet the market demand for video recorders and to promote video recorders to be put on line in a shorter period, there is also a more urgent need for testing efficiency of video recorder functions and video recorder quality and a more stringent standard. The quality of video images in a video recorder is affected by the timing control parameters of the video acquisition signals, so that the quality of the images can be improved by determining the proper timing control parameters, and the quality of the video recorder products can be improved.
In the prior art, a manual mode is adopted to perform time sequence test on a video acquisition signal of a video recorder so as to determine proper time sequence control parameters. However, subjective errors are introduced due to manual operation judgment, so that a deviation exists between a test result and an actual situation. In addition, since the workload of manually performing the time series test is very large, there is a defect of low test efficiency.
Therefore, how to better perform timing test on the video acquisition signal of the video recorder to determine the appropriate timing control parameters is a technical problem to be solved by those skilled in the relevant art.
Disclosure of Invention
The invention provides a time sequence adjusting method, a time sequence adjusting device and electronic equipment for video acquisition signals, which are used for solving the technical problem of how to better perform time sequence test on video acquisition signals of a video recorder so as to determine proper time sequence control parameters in the prior art.
The invention provides a time sequence adjusting method of a video acquisition signal, which comprises the following steps:
traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on the each set of timing control data;
Comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data;
and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data.
According to the timing adjustment method of the video acquisition signal provided by the invention, each set of timing control data comprises values corresponding to at least two timing control parameters;
the traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on the each set of timing control data includes:
assigning a current value of a first timing control parameter of the at least two timing control parameters to a first initial value;
and controlling a second time sequence control parameter in the at least two time sequence control parameters to traverse all values, acquiring a test video image based on each value of the current value and the second time sequence control parameter, assigning the first time sequence control parameter as the next value, and repeatedly executing the steps until each value of the first time sequence control parameter is traversed.
According to the method for adjusting the time sequence of the video acquisition signal provided by the invention, the test video image corresponding to each set of time sequence control data is compared with the pre-stored standard video image, so as to obtain the test result corresponding to each set of time sequence control data, and the method comprises the following steps:
Acquiring a first identification array of a test video image corresponding to each set of time sequence control data and a second identification array of the standard video image;
Comparing each element in the first identification array with the corresponding element in the second identification array to obtain a comparison result corresponding to each set of time sequence control data;
and determining a test result corresponding to each set of time sequence control data based on the comparison result.
According to the method for adjusting the time sequence of the video acquisition signal provided by the invention, the first identification array of the test video image corresponding to each set of time sequence control data and the second identification array of the standard video image are obtained, and the method comprises the following steps:
Dividing the test video image corresponding to each set of time sequence control data into a plurality of first pixel areas, and dividing the standard video image into a plurality of second pixel areas;
performing Fourier transform processing on the plurality of first pixel areas to obtain a first identification array of the test video image corresponding to each set of time sequence control data;
and carrying out Fourier transform processing on the plurality of second pixel areas to obtain a second identification array of the standard video image.
According to the timing adjustment method of the video acquisition signal provided by the invention, the determining of the test result corresponding to each set of timing control data based on the comparison result comprises the following steps:
determining a first number of inconsistent elements in the first identification array and the second identification array based on a comparison result corresponding to each set of time sequence control data;
Under the condition that the first number is not larger than a preset number threshold value, determining a test result corresponding to the time sequence control data as a first identification value, wherein the first identification value is used for representing that the image quality of a test video image corresponding to the time sequence control data is larger than a preset value;
And under the condition that the first number is larger than a preset number threshold, determining a test result corresponding to the time sequence control data as a second identification value, wherein the second identification value is used for representing that the image quality of the test video image corresponding to the time sequence control data is not larger than the preset value.
According to the timing adjustment method of the video acquisition signal provided by the invention, the method for determining the target timing control data based on the test result corresponding to each set of timing control data and adjusting the timing control parameters of the video acquisition signal based on the target timing control data comprises the following steps:
Determining a value range of each time sequence control parameter in the first time sequence control data based on first time sequence control data with a first identification value as a test result, wherein the first identification value is used for representing that the image quality of a test video image corresponding to the time sequence control data is larger than a preset value;
acquiring the value number of the values in the value range of each time sequence control parameter, and determining an intermediate value calculation strategy based on the value number;
acquiring the intermediate value of the value range of each time sequence control parameter based on the intermediate value calculation strategy;
And determining target time sequence control data of the video acquisition signals based on the intermediate value of the value range of each time sequence control parameter.
The invention also provides a time sequence adjusting device of the video acquisition signal, which comprises the following steps:
The image acquisition module is used for traversing each set of time sequence control data of the video acquisition signal to acquire a corresponding test video image based on each set of time sequence control data;
The time sequence testing module is used for comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data;
and the parameter determining module is used for determining target time sequence control data based on the test result corresponding to each group of time sequence control data and adjusting the time sequence control parameters of the video acquisition signals based on the target time sequence control data.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the time sequence adjusting method of the video acquisition signal when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of timing adjustment of a video acquisition signal as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of timing adjustment of a video acquisition signal as described in any one of the above.
According to the time sequence adjusting method, the device and the electronic equipment for the video acquisition signals, whether the test video image acquired based on each set of time sequence control data has an image quality problem or not is judged based on the comparison result of the test video image corresponding to each set of time sequence control data and the standard video image, and the test result corresponding to each set of time sequence control data is determined based on the judgment result, so that the defect that the test result is inaccurate due to the fact that subjective error is caused by judging the image quality by adopting manual operation in the prior art is avoided, and the accuracy of the time sequence detection result can be effectively improved; moreover, the whole test process is automatically operated by a computer without manual intervention, and a standardized automatic test flow is adopted to replace a scheme of manually performing time sequence test in the prior art, so that the time sequence test efficiency is effectively improved, and further, proper target time sequence control parameters can be determined from multiple groups of time sequence control data of video acquisition signals based on a relatively accurate test result, so that the image quality is improved, the product quality of a video recorder is improved, the video recorder is ensured to be transferred to an online in a shorter period, and the technical problem of how to perform time sequence test on video acquisition signals of the video recorder better in the prior art is solved, so that proper time sequence control parameters are determined.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings that are used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a timing adjustment method for a video acquisition signal according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the video image captured by the video recorder according to the embodiment of the present invention, in which the image quality problem occurs;
FIG. 3 is a second flowchart of a timing adjustment method for a video acquisition signal according to an embodiment of the present invention;
FIG. 4 is a third flowchart illustrating a timing adjustment method of a video acquisition signal according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for adjusting a timing of a video acquisition signal according to an embodiment of the present invention;
FIG. 6 is a flowchart of a timing adjustment method for a video acquisition signal according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for adjusting the timing of a video acquisition signal according to an embodiment of the present invention;
FIG. 8 is a flowchart of a timing adjustment method for a video acquisition signal according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of the range of values of various timing control parameters according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a timing adjustment device for a video acquisition signal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. 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 timing adjustment method of the video acquisition signal of the present invention is described below with reference to fig. 1 to 9. As shown in fig. 1, the present invention provides a timing adjustment method for a video acquisition signal, including:
Step 101, traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on each set of timing control data.
Each set of time sequence control data comprises at least two time sequence control parameters, each time sequence control parameter corresponds to one data transmission bus in an AD analog-to-digital conversion chip of the video recorder, and the data transmission bus is used for transmitting video images acquired by the video camera to a CPU chip of the video recorder. The AD analog-to-digital conversion chip comprises at least two data transmission buses, each data transmission bus corresponds to a register, and the register is used for controlling the time sequence of video acquisition signals on the corresponding data transmission buses, so that the time sequence control parameters can be also called register parameters.
Further, at least two timing control parameters included in each set of timing control data may constitute a multi-dimensional timing coordinate. The test video image represents a video image for performing time sequence test on a video acquisition signal of the video recorder and is used for simulating a video image acquired by the video camera. It should be noted that, the video image acquired in real time by the camera is not adopted, so as to avoid the influence of environmental factors such as temperature, humidity and the like of the environment where the camera is located on the time-lapse detection result.
Step 102, comparing the test video image corresponding to each set of time sequence control data with the pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data.
The standard video image represents a high-quality video image of the same monitoring scene corresponding to the test video image and is used as a reference video image of the test video image to detect the image quality problem in the test video image.
It should be noted that, the present invention is not limited to the execution sequence of the step 101 and the step 102, and the step 101 may be executed first, then the step 102 may be executed, and the step 101 and the step 102 may also be executed simultaneously, where "to execute the step 101 and the step 102 simultaneously" means: after the corresponding test video image is acquired based on the current set of time sequence control data, determining a test result of the test video image corresponding to the current set of time sequence control data, acquiring the corresponding test video image based on the next set of time sequence control data, and so on.
Step 103, determining target time sequence control data based on the test result corresponding to each group of time sequence control data, and adjusting the time sequence control parameters of the video acquisition signals based on the target time sequence control data.
The target time sequence control data comprises final values of various time sequence control parameters. Specifically, the final value of each time sequence control parameter in the target time sequence control data is determined as the current value of the time sequence control parameter of the video acquisition signal, so as to realize the adjustment and update of the time sequence control parameter of the video acquisition signal.
In one embodiment, in a case that no image quality problem is detected in the test video image based on the standard video image, a test result of the timing control data corresponding to the test video image is determined to be a first identification value. The first identification value is used for indicating that the test video image has an image quality problem, and the time sequence control data corresponding to the test video image cannot be used as target time sequence control data of a target video acquisition signal.
Similarly, in the case that the image quality problem is detected in the test video image based on the standard video image, the test result of the time sequence control data corresponding to the test video image is determined to be the second identification value. The second identification value is used for indicating that the test video image has no image quality problem, and the time sequence control data corresponding to the test video image can be used as target time sequence control data of a target video acquisition signal.
Step 101 to step 103 above, judge whether there is image quality problem in the test video image based on each set of time sequence control data acquisition based on the comparison result of the test video image corresponding to each set of time sequence control data and determine the test result corresponding to each set of time sequence control data based on the judgment result, so as to avoid the defect of inaccurate test result caused by subjective error introduced by adopting manual operation to judge the image quality in the prior art, thereby effectively improving the accuracy of the time sequence detection result; moreover, the whole test process is automatically operated by a computer without manual intervention, and a standardized automatic test flow is adopted to replace a scheme of manually performing time sequence test in the prior art, so that the time sequence test efficiency is effectively improved, and further, proper target time sequence control parameters can be determined from multiple groups of time sequence control data of video acquisition signals based on a relatively accurate test result, so that the image quality is improved, the product quality of a video recorder is improved, the video recorder is ensured to be transferred to an online in a shorter period, and the technical problem of how to perform time sequence test on video acquisition signals of the video recorder better in the prior art is solved, so that proper time sequence control parameters are determined.
In one embodiment, the timing control parameter corresponding to each register is the sample delay time stored in that register. The data transmission bus included in the AD analog-to-digital conversion chip is a BT656 bus, the BT656 bus is composed of 8 DAT data lines and 1 CLK clock line, the DAT data lines and the CLK clock line are mutually independent and simultaneously transmit, the DAT data lines are used for transmitting DAT image data signals, and the CLK clock line is used for sampling the DAT image data signals transmitted on the DAT data lines to obtain the DAT image data signals to be transmitted finally. Each set of BT656 data, and the CLK clock signal, is controlled by separate registers F2 and F3 within the AD analog-to-digital conversion chip, where each set of BT656 data includes DAT image data signals transmitted on 8 DAT data lines of the BT656 bus. The register F2 and the register F3 may store therein a sampling delay time required to transmit the DAT image data signal and the CLK clock signal read, which is a timing control parameter corresponding to the register F2 and the register F3.
Taking the DAT image data signal and the CLK clock signal in the BT656 bus corresponding to the register F2 as an example, as shown in fig. 2, the DAT image data signal and the CLK clock signal on the DAT data line are controlled by the sampling delay time stored in the register F2. In the case where the sampling delay time increases, the CLK clock signal moves rightward, whereas the CLK clock signal moves leftward. Under the condition that the current data needs to be transmitted with '1', the rising edge of the CLK clock signal is near the falling edge of the DAT image data signal, the sampling delay time is increased, the rising edge of the CLK clock signal moves to the position where the DAT image data signal is 'low', the sampled data is '0', error codes are generated, and the image quality problem is caused by the generation of the error codes, so that the timing adjustment method of the video acquisition signal is needed to adjust the sampling delay time of the DAT image data signal, so that the generation of the error codes in the sampling process is avoided, and the image quality of the video image finally acquired by the video recorder is improved.
Further, the plurality of sets of timing control data of the video acquisition signal are determined based on a combination of different values of at least two timing control parameters of the video acquisition signal. For example, if the range of values of the first timing control parameter is [0X00,0X0F ] and the range of values of the second timing control parameter is [0X00,0X0F ], the number of sets of timing control data determined by the combination of different values of the first timing control parameter and the second timing control parameter is 16×16=256.
Therefore, in the prior art, the time sequence test is performed manually, at least 256 times of time sequence tests are required, so that a tester needs to take a long time to judge whether the video image acquired by each time sequence test has an image quality problem or not, the workload of manually performing the time sequence test is very large, and a fixed judgment standard is not formed by the time sequence tests for many times, and the judgment is performed only by the visual observation and subjective feeling of the tester, so that the subjective error of the tester is easy to be introduced, and the deviation exists between the test result and the actual situation.
Based on this, the following embodiments are provided to further illustrate the detailed technical features of the technical scheme of the present invention, so as to solve the technical defects of low test efficiency and inaccurate test results of manually performing the time sequence test in the prior art.
In one embodiment, as shown in fig. 3, each set of timing control data includes values corresponding to at least two timing control parameters; in this embodiment, the above step 101 is described in detail by taking the example that each set of timing control data includes two values corresponding to the timing control parameters. The step 101 includes steps 201 to 202, wherein:
In step 201, the current value of the first timing control parameter of the at least two timing control parameters is assigned as the first initial value.
The first timing control parameter may be denoted by F2 and corresponds to the F2 register. The second timing control parameter may be denoted by F3 and corresponds to the F3 register. The first initial value may be any value of all values of the first timing control parameter, which is not limited in this embodiment.
Step 202, controlling a second time sequence control parameter of at least two time sequence control parameters to traverse all values, collecting a test video image based on the current value and each value of the second time sequence control parameters, assigning the first time sequence control parameter as the next value, and repeatedly executing the steps until each value of the first time sequence control parameters is traversed.
The next value of the first timing control parameter may be any value of all values of the first timing control parameter, which is not limited in this embodiment. Specifically, the step of traversing all values of the second timing control parameter may be to control the second timing control parameter to jump from the minimum value to the maximum value, or to control the second timing control parameter to jump from the maximum value to the minimum value, or to control the second timing control parameter to jump from the middle value to the two sides value, which is not limited in this embodiment.
In one embodiment, the positions of the first timing control parameter and the second timing control parameter are exchanged, so that the current value of the second timing control parameter can be assigned as the second initial value; and controlling the first time sequence control parameter to traverse all values, collecting a test video image based on the current value of the second time sequence control parameter and each value of the first time sequence control parameter, assigning the second time sequence control parameter as the next value, and repeatedly executing the steps until each value of the second time sequence control parameter is traversed.
In one embodiment, as shown in fig. 4, the step 102 includes steps 301 to 303, where:
Step 301, a first identification array of a test video image corresponding to each set of timing control data and a second identification array of a standard video image are obtained.
The first identifier array is used for uniquely identifying the test video image, so that the first identifier array can be called as a first fingerprint corresponding to the test video image. The second identification array is used to uniquely identify the standard video image, and thus may be referred to as a second fingerprint corresponding to the standard video image.
In one embodiment, the test video image corresponding to each set of timing control data is divided into a plurality of first pixel areas, and the standard video image is divided into a plurality of second pixel areas. And processing the plurality of first pixel areas based on a preset data processing strategy to obtain a first identification array of the test video image corresponding to each set of time sequence control data. And carrying out Fourier transform processing on the plurality of second pixel areas based on a preset data processing strategy to obtain a second identification array of the standard video image.
Step 302, comparing each element in the first identification array with the corresponding element in the second identification array to obtain a comparison result corresponding to each set of time sequence control data.
In one embodiment, each element in the first identification array is compared with a corresponding element in the second identification array, and when it is determined that the value of an element in the first identification array is not equal to the value of an element corresponding to the element in the second identification array, it is determined that the element in the first identification array is inconsistent with the element corresponding to the element in the second identification array. The comparison result contains a first number of inconsistent elements corresponding to each set of time sequence control data.
For example, the first identification array is 10001001 and the second identification array is 10011101, and the first number of inconsistent elements in the first identification array and the second identification array is 2.
Step 303, determining a test result corresponding to each set of time sequence control data based on the comparison result.
Specifically, based on the first number of inconsistent elements corresponding to each set of timing control data, it is determined whether an image quality problem exists in the test video image acquired based on each set of timing control data.
In the steps 301 to 303, the comparison flow of the test video image and the standard video image is converted into the comparison flow of the elements in the two arrays by acquiring the first identification array of the test video image and the second identification array of the standard video image corresponding to each set of time sequence control data, so that the subtle difference between the test video image and the standard video image can be detected based on the comparison results of the elements in the two arrays, and further, the relatively accurate time sequence test result can be obtained.
In one embodiment, as shown in fig. 5, the step 301 includes steps 401 to 403, where:
In step 401, the test video image corresponding to each set of timing control data is divided into a plurality of first pixel areas, and the standard video image is divided into a plurality of second pixel areas. And step 402, performing fourier transform processing on the plurality of first pixel areas to obtain a first identification array of the test video image corresponding to each set of time sequence control data.
And step 403, performing fourier transform processing on the plurality of second pixel areas to obtain a second identification array of the standard video image.
For example, the test video image corresponding to each set of time sequence control data is divided into 64 first pixel areas, fourier transform processing is performed on the 64 first pixel areas, a first long integer array of 64bits is obtained, and the first long integer array is determined as a first identification array of the test video image.
Similarly, the standard video image is divided into 64 second pixel areas, the 64 second pixel areas are subjected to Fourier transform processing to obtain a 64-bit second long integer array, and the second long integer array is determined as a second identification array of the standard video image.
In the steps 401 to 403, the test video image is divided into a plurality of first pixel areas and the standard video image is divided into a plurality of second pixel areas, and fourier transform processing is performed on the plurality of first pixel areas and the plurality of second pixel areas to obtain a first identification array containing fine image features in the test video image and a second identification array containing fine image features in the standard video image, so that fine distinction between the test video image and the standard video image can be detected based on comparison results of elements in the first identification array and the second identification array, and further a relatively accurate time sequence test result can be obtained.
In one embodiment, as shown in fig. 6, the step 303 includes steps 501 to 503, where:
Step 501, determining, based on the comparison result, a first number of inconsistent elements in the first identification array and the second identification array according to the comparison result corresponding to each set of time sequence control data.
Step 502, determining a test result corresponding to the time sequence control data as a first identification value under the condition that the first number is not greater than a preset number threshold, wherein the first identification value is used for representing that the image quality of the test video image corresponding to the time sequence control data is greater than a preset value.
In one embodiment, when the first number is determined not to be greater than the preset number threshold, it is determined that the image quality of the test video image corresponding to the timing control data is greater than the preset value, that is, the test video image has no image quality problem, so that it is determined that the test result of the timing control data corresponding to the test video image is the first identification value. The first identification value may be set to 1, so as to simplify the subsequent process of determining the target timing control parameter.
In step 503, when the first number is determined to be greater than the preset number threshold, the test result corresponding to the timing control data is determined to be a second identification value, where the second identification value is used to characterize that the image quality of the test video image corresponding to the timing control data is not greater than the preset value.
In one embodiment, when the first number is determined to be greater than the preset number threshold, it is determined that the image quality of the test video image corresponding to the timing control data is not greater than the preset value, that is, the test video image has an image quality problem, so that it is determined that the test result of the timing control data corresponding to the test video image is the second identification value. Wherein, the second identification value may be set to 0, so as to simplify the subsequent process of determining the target timing control parameter.
In the above steps 501 to 503, the comparison process of the test video image and the standard video image is converted into the comparison process between the first number of inconsistent elements in the two arrays and the threshold value of the preset number, so as to form a fixed judgment standard to determine whether the collected video image has an image quality problem, so as to avoid the technical defect that the subjective error is introduced due to the judgment by the visual observation and subjective feeling of the tester in the prior art, and further improve the accuracy of the time sequence test result.
An embodiment is provided below to further explain the above steps 101 to 102. The present embodiment exemplifies a case where step 101 and step 102 are simultaneously performed, and as shown in fig. 7, the present embodiment specifically includes:
s101, in a case where each set of timing control data includes a first timing control parameter F2 and a second timing control parameter F3, the first timing control parameter F2 is assigned to 0X00.
S102, the second time sequence control parameter F3 is assigned to be 0X00.
S103, acquiring a corresponding test video image based on the current value of the second time sequence control parameter F3. And determining whether the acquired test video image has an image quality problem or not based on a comparison result of the acquired test video image and a pre-stored standard video image.
Specifically, a first identification array of a test video image corresponding to each set of time sequence control data and a second identification array of a standard video image are obtained; and comparing each element in the first identification array with the corresponding element in the second identification array to obtain a first number of inconsistent elements in the first identification array and the second identification array.
Further, under the condition that the first number is not larger than a preset number threshold value, determining that the test video image has no image quality problem; and determining that the test video image has an image quality problem under the condition that the first number is larger than a preset number threshold value.
S104, under the condition that the test video image is determined to have no image quality problem, determining a test result X=1 corresponding to time sequence control data; in the case where it is determined that the test video image has an image quality problem, a test result x=0 corresponding to the timing control data is determined.
S105, performing self-addition on the current value of the second time sequence control parameter F3, and assigning the self-addition result to the second time sequence control parameter F3 to update the current value of the second time sequence control parameter F3 to F3=F3+1. Judging whether the current value of the second time sequence control parameter F3 is larger than a preset value threshold value 0X0F.
S106, repeatedly executing S103 to S105 under the condition that the current value of the second time sequence control parameter F3 is not larger than the preset value threshold value 0X0F, until the current value of the second time sequence control parameter F3 is larger than the preset value threshold value 0X0F.
And S107, under the condition that the current value of the second time sequence control parameter F3 is determined to be larger than the preset value threshold value 0X0F, performing self-addition on the current value of the first time sequence control parameter F2, and assigning the self-addition result to the first time sequence control parameter F2 so as to update the current value of the first time sequence control parameter F2 to F2=F2+1. Judging whether the current value of the first timing control parameter F2 is larger than a preset value threshold value 0X0F.
S108, under the condition that the current value of the first time sequence control parameter F2 is not larger than the preset value threshold value 0X0F, repeating S102 to S107 until the current value of the first time sequence control parameter F2 is larger than the preset value threshold value 0X0F.
S109. And outputting a test result corresponding to each group of time sequence control data under the condition that the current value of the first time sequence control parameter F2 is determined to be larger than the preset value threshold value 0X 0F.
In one embodiment, as shown in fig. 8, the step 103 includes steps 601 to 604, where:
Step 601, determining a value range of each time sequence control parameter in the first time sequence control data based on the first time sequence control data with the test result being a first identification value, wherein the first identification value is used for representing that the image quality of the test video image corresponding to the time sequence control data is larger than a preset value.
Specifically, first timing control data with a test result being a first identification value is obtained, and a value range of each timing control parameter is determined based on the value of each timing control parameter in the first timing control data.
For example, in the case where each set of timing control data includes values corresponding to the first timing control parameter F2 and the second timing control parameter F3, the timing coordinates (F2, F3) are determined based on the first timing control parameter F2 and the second timing control parameter F3. Based on the test result corresponding to each set of time sequence control data, a time sequence matrix formed by the test results corresponding to each time sequence coordinate value is obtained, the time sequence matrix is shown in fig. 9, and the value ranges of the first time sequence control parameter F2 and the second time sequence control parameter F3 are determined based on the first time sequence control data with the test result of 1. Wherein, the first value range of the first timing control parameter F2 is 0X 00-0X 0B. The second value range of the second time sequence control parameter F3 is 0X 00-0X 0C.
Step 602, obtaining the number of values that can be obtained in the value range of each time sequence control parameter, and determining the intermediate value calculation strategy based on the number of values.
In one embodiment, the number of values that can be taken in the range of values of each timing control parameter is obtained, and in the case where it is determined that the number of values is odd, the determination of the intermediate value calculation strategy is represented by the following formula (1):
wherein y represents the intermediate value of the value range of the timing control parameter, x1 represents the minimum value of the value range of the timing control parameter, and x2 represents the maximum value of the value range of the timing control parameter.
For example, as shown in fig. 9, since the number of values that can be obtained in the second value range of the second timing control parameter F3 is an odd number, the second intermediate value of the second value range of the second timing control parameter F3 is calculated based on the formula (1) to be 0X06.
In the case where the number of values is determined to be even, the determination intermediate value calculation strategy is represented by the following formulas (2) to (3):
wherein y represents the intermediate value of the value range of the timing control parameter, x1 represents the minimum value of the value range of the timing control parameter, and x2 represents the maximum value of the value range of the timing control parameter.
For example, as shown in fig. 9, since the number of values that can be taken in the first value range of the first timing control parameter F2 is even, the first intermediate values of the first value range of the first timing control parameter F2 are calculated based on the formula (2) and the formula (3) to be 0X05 and 0X06.
Step 603, based on the intermediate value calculation strategy, obtaining an intermediate value of the value range of each time sequence control parameter.
Step 604, determining target timing control data of the video acquisition signal based on the intermediate value of the value range of each timing control parameter.
In one embodiment, the intermediate value of the range of values of each timing control parameter may be determined as the final value of each timing control parameter, and the target timing control data of the video acquisition signal, such as the shaded small region shown in fig. 9, may be determined based on the final value of each timing control parameter.
Further, the final value of each timing control parameter may be extended to other values in the range of values that are adjacent to the intermediate value, such as the outer matrix area of the shaded small area shown in fig. 9.
The final value of each timing control parameter may be extended to other values of the corresponding row and column of intermediate values, such as the two dashed bar areas shown in fig. 9.
The timing adjustment device for a video acquisition signal provided by the invention is described below, and the timing adjustment device for a video acquisition signal described below and the timing adjustment method for a video acquisition signal described above can be referred to correspondingly.
As shown in fig. 10, the present invention provides a timing adjustment device for a video acquisition signal, and the timing adjustment device 100 for a video acquisition signal includes:
The image acquisition module 101 is configured to traverse each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on each set of timing control data.
The timing test module 102 is configured to compare the test video image corresponding to each set of timing control data with a pre-stored standard video image, so as to obtain a test result corresponding to each set of timing control data.
The parameter determining module 103 is configured to determine target timing control data based on a test result corresponding to each set of timing control data, and adjust timing control parameters of the video acquisition signal based on the target timing control data.
In one embodiment, each set of timing control data includes values corresponding to at least two timing control parameters; the image acquisition module 101 is further configured to assign a current value of a first timing control parameter of the at least two timing control parameters to a first initial value; and controlling a second time sequence control parameter in the at least two time sequence control parameters to traverse all values, collecting a test video image based on the current value and each value of the second time sequence control parameter, assigning the first time sequence control parameter as the next value, and repeatedly executing the steps until each value of the first time sequence control parameter is traversed.
In one embodiment, the timing test module 102 includes:
The identification determining unit is used for acquiring a first identification array of the test video image corresponding to each set of time sequence control data and a second identification array of the standard video image.
And the element comparison unit is used for comparing each element in the first identification array with the corresponding element in the second identification array to obtain a comparison result corresponding to each set of time sequence control data.
And the time sequence testing unit is used for determining a testing result corresponding to each group of time sequence control data based on the comparison result.
In one embodiment, the identification determining unit is further configured to divide the test video image corresponding to each set of timing control data into a plurality of first pixel areas, and divide the standard video image into a plurality of second pixel areas; performing Fourier transform processing on the plurality of first pixel areas to obtain a first identification array of the test video image corresponding to each set of time sequence control data; and carrying out Fourier transform processing on the plurality of second pixel areas to obtain a second identification array of the standard video image.
In one embodiment, the timing test unit is configured to determine, for a comparison result corresponding to each set of timing control data, a first number of inconsistent elements in the first identifier array and the second identifier array based on the comparison result; under the condition that the first quantity is not larger than a preset quantity threshold value, determining a test result corresponding to the time sequence control data as a first identification value, wherein the first identification value is used for representing that the image quality of a test video image corresponding to the time sequence control data is larger than the preset value; and under the condition that the first number is larger than a preset number threshold value, determining a test result corresponding to the time sequence control data as a second identification value, wherein the second identification value is used for representing that the image quality of the test video image corresponding to the time sequence control data is not larger than the preset value.
In one embodiment, the parameter determining module 103 is further configured to determine a value range of each timing control parameter in the first timing control data based on the first timing control data with the test result being a first identification value, where the first identification value is used to characterize that an image quality of a test video image corresponding to the timing control data is greater than a preset value; acquiring the value number of the values in the value range of each time sequence control parameter, and determining an intermediate value calculation strategy based on the value number; acquiring the intermediate value of the value range of each time sequence control parameter based on the intermediate value calculation strategy; and determining target time sequence control data of the video acquisition signals based on the intermediate value of the value range of each time sequence control parameter.
Fig. 11 illustrates a physical structure diagram of an electronic device, as shown in fig. 11, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform the method for timing adjustment of video acquisition signals provided by the methods described above, the method comprising: traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on each set of timing control data; comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data; and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of 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 (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The invention also provides a time sequence adjusting system of the video acquisition signal, which comprises a video recorder and electronic equipment which are connected with each other, wherein:
The electronic equipment is used for executing the time sequence adjusting method of the video acquisition signals provided by the methods and transmitting the target time sequence control data of the acquired video acquisition signals to the video recorder, wherein the target time sequence control data comprises the final value of each time sequence control parameter.
The video recorder comprises an AD analog-to-digital conversion chip and a CPU chip which are connected with each other, wherein the AD analog-to-digital conversion chip and the CPU chip are used for receiving target time sequence control data transmitted by the electronic equipment and updating register parameters of each register in the AD analog-to-digital conversion chip based on the target time sequence control data; the target timing control data includes the final value of each timing control parameter.
Further, the video recorder is further used for updating the register parameters of each register in the AD analog-to-digital conversion chip into the final values of the corresponding time sequence control parameters. The AD analog-to-digital conversion chip comprises at least two data transmission buses, each data transmission bus corresponds to a register, and the register is used for controlling the time sequence of video acquisition signals on the corresponding data transmission bus.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can perform a method for adjusting a timing of a video acquisition signal provided by the above methods, where the method includes: traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on each set of timing control data; comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data; and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of timing adjustment of a video acquisition signal provided by the methods described above, the method comprising traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on each set of timing control data; comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data; and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product, which may be stored in a computer-readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the various embodiments or methods of some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; 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. A method for timing adjustment of a video acquisition signal, comprising:
traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on the each set of timing control data;
Comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data;
and determining target time sequence control data based on a test result corresponding to each set of time sequence control data, and adjusting time sequence control parameters of the video acquisition signals based on the target time sequence control data.
2. The method for adjusting the time sequence of a video acquisition signal according to claim 1, wherein each set of time sequence control data comprises values corresponding to at least two time sequence control parameters;
the traversing each set of timing control data of the video acquisition signal to acquire a corresponding test video image based on the each set of timing control data includes:
assigning a current value of a first timing control parameter of the at least two timing control parameters to a first initial value;
and controlling a second time sequence control parameter in the at least two time sequence control parameters to traverse all values, acquiring a test video image based on each value of the current value and the second time sequence control parameter, assigning the first time sequence control parameter as the next value, and repeatedly executing the steps until each value of the first time sequence control parameter is traversed.
3. The method for adjusting the timing sequence of a video acquisition signal according to claim 1, wherein comparing the test video image corresponding to each set of timing sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of timing sequence control data comprises:
Acquiring a first identification array of a test video image corresponding to each set of time sequence control data and a second identification array of the standard video image;
Comparing each element in the first identification array with the corresponding element in the second identification array to obtain a comparison result corresponding to each set of time sequence control data;
and determining a test result corresponding to each set of time sequence control data based on the comparison result.
4. A method for adjusting the timing of a video acquisition signal according to claim 3, wherein said obtaining a first identification array of a test video image corresponding to each set of timing control data and a second identification array of the standard video image comprises:
Dividing the test video image corresponding to each set of time sequence control data into a plurality of first pixel areas, and dividing the standard video image into a plurality of second pixel areas;
performing Fourier transform processing on the plurality of first pixel areas to obtain a first identification array of the test video image corresponding to each set of time sequence control data;
and carrying out Fourier transform processing on the plurality of second pixel areas to obtain a second identification array of the standard video image.
5. The method for adjusting the timing of a video acquisition signal according to claim 3, wherein determining the test result corresponding to each set of timing control data based on the comparison result comprises:
determining a first number of inconsistent elements in the first identification array and the second identification array based on a comparison result corresponding to each set of time sequence control data;
Under the condition that the first number is not larger than a preset number threshold value, determining a test result corresponding to the time sequence control data as a first identification value, wherein the first identification value is used for representing that the image quality of a test video image corresponding to the time sequence control data is larger than a preset value;
And under the condition that the first number is larger than a preset number threshold, determining a test result corresponding to the time sequence control data as a second identification value, wherein the second identification value is used for representing that the image quality of the test video image corresponding to the time sequence control data is not larger than the preset value.
6. The method for adjusting the timing of a video acquisition signal according to any one of claims 1 to 5, wherein determining target timing control data based on the test result corresponding to each set of timing control data, and adjusting the timing control parameter of the video acquisition signal based on the target timing control data, comprises:
Determining a value range of each time sequence control parameter in the first time sequence control data based on first time sequence control data with a first identification value as a test result, wherein the first identification value is used for representing that the image quality of a test video image corresponding to the time sequence control data is larger than a preset value;
acquiring the value number of the values in the value range of each time sequence control parameter, and determining an intermediate value calculation strategy based on the value number;
acquiring the intermediate value of the value range of each time sequence control parameter based on the intermediate value calculation strategy;
And determining target time sequence control data of the video acquisition signals based on the intermediate value of the value range of each time sequence control parameter.
7. A timing adjustment device for a video acquisition signal, comprising:
The image acquisition module is used for traversing each set of time sequence control data of the video acquisition signal to acquire a corresponding test video image based on each set of time sequence control data;
The time sequence testing module is used for comparing the test video image corresponding to each set of time sequence control data with a pre-stored standard video image to obtain a test result corresponding to each set of time sequence control data;
and the parameter determining module is used for determining target time sequence control data based on the test result corresponding to each group of time sequence control data and adjusting the time sequence control parameters of the video acquisition signals based on the target time sequence control data.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method of timing adjustment of a video acquisition signal as claimed in any one of claims 1 to 6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of timing adjustment of a video acquisition signal according to any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements a method of timing adjustment of a video acquisition signal as claimed in any one of claims 1 to 6.
CN202211436840.3A 2022-11-16 2022-11-16 Time sequence adjusting method and device for video acquisition signals and electronic equipment Pending CN118055223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211436840.3A CN118055223A (en) 2022-11-16 2022-11-16 Time sequence adjusting method and device for video acquisition signals and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211436840.3A CN118055223A (en) 2022-11-16 2022-11-16 Time sequence adjusting method and device for video acquisition signals and electronic equipment

Publications (1)

Publication Number Publication Date
CN118055223A true CN118055223A (en) 2024-05-17

Family

ID=91047112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211436840.3A Pending CN118055223A (en) 2022-11-16 2022-11-16 Time sequence adjusting method and device for video acquisition signals and electronic equipment

Country Status (1)

Country Link
CN (1) CN118055223A (en)

Similar Documents

Publication Publication Date Title
US20230214989A1 (en) Defect detection method, electronic device and readable storage medium
CN116519707A (en) Lithium battery defect detection method and device based on machine vision and electronic equipment
CN111899238A (en) Defect detection method, device, medium and electronic equipment for double-light source image
CN115393446A (en) Temperature coefficient calibration method, system, electronic device and storage medium
CN117332205B (en) High-precision automatic optimization method and device for temperature compensation resistance of piezoresistor
CN118055223A (en) Time sequence adjusting method and device for video acquisition signals and electronic equipment
CN112040224A (en) Method, medium and electronic device for verifying camera module performance test equipment
WO2018094823A1 (en) Uniformity test method and system for display screen
US10657626B2 (en) Image processing apparatus, image processing system, and recording medium
CN108521571B (en) SDI chip automatic detection method and device, storage medium and terminal
CN116597246A (en) Model training method, target detection method, electronic device and storage medium
CN116452662A (en) Method and device for extracting pixel coordinates of optical fiber center and electronic equipment
CN111815552A (en) Workpiece detection method and device, readable storage medium and terminal equipment
CN112149546B (en) Information processing method, device, electronic equipment and storage medium
CN111435080B (en) Water level measuring method, device and system
CN109829389B (en) Machine displacement determination method, device and computer storage medium
CN112435210A (en) Quality detection method and device for annular device
CN113139563A (en) Optimization method and device of image classification model
CN110584695A (en) Medical imaging equipment testing method, device, equipment and storage medium
CN101996402A (en) Image processing device and image processing method
CN111062857B (en) System and method for eliminating reflected light of 3D contour camera
CN118200515A (en) Detection method and system for chromatic aberration of camera module
CN110197523B (en) Quality control graph drawing method, quality control graph drawing equipment and storage medium
WO2023240650A1 (en) Color correction matrix calibration method and apparatus for camera module
US20240169210A1 (en) Methods for 3d tensor builder for input to machine learning

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