Test method and device of image processing circuit, electronic equipment and storage medium

By cropping the test images that meet the parameters from the pre-stored actual test images, and using the crop reference position movement step length to simulate jitter, the problems of low test efficiency and large storage space of digital circuit jitter image processing are solved, and efficient and accurate testing is achieved.

CN119024138APending Publication Date: 2024-11-26VERISILICON MICROELECTRONICS (HAINAN) CO LTD +5
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411151890.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the prior art, the jitter image processing test efficiency of digital circuits is low and takes up a large amount of storage space, and engineers need to manually process and generate a large number of test images.

Method used

By cropping multiple test images that meet the parameters from the pre-stored actual test images, as test excitation for test cases, the image processing circuit is jitter tested, and the jitter amplitude is simulated by using the crop reference position movement step length to reduce the storage of a large number of test images need.

Benefits of technology

Improves testing efficiency, reduces storage space usage, and the generated test images are more in line with the actual jitter state, improving the accuracy and diversity of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024138A_ABST
    Figure CN119024138A_ABST
Patent Text Reader

Abstract

The invention provides a test method and device of an image processing circuit, electronic equipment and a storage medium, and relates to the technical field of computers. The test method of the image processing circuit comprises the following steps: acquiring parameters of a test image required by a test case from the test case; based on the parameters, cutting out a plurality of test images conforming to the parameters from pre-stored actual test images; wherein the size of the actual test image is larger than that of the test image; and taking the plurality of test images as test excitation of the test case, and carrying out jitter test on the image processing circuit. And based on the parameters obtained in the test case, cutting out a plurality of test images conforming to the parameters from the actual test image, thereby completing the jitter test. And a large amount of test excitation is generated without manual processing of engineers, so that the test efficiency can be improved. According to the scheme, only the actual test image needs to be stored in advance, a large number of test images do not need to be stored in advance, and therefore the storage space needing to be occupied is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computers, and in particular to a testing method, device, electronic device and storage medium for an image processing circuit. Background Art

[0002] As the functions of current digital circuits become more and more powerful, in order to test the jitter image processing capabilities of digital circuits, more jitter images need to be prepared to complete the test. However, the test images need to be manually processed and generated by engineers, which takes a lot of time for engineers to prepare the test images, resulting in reduced test efficiency. In addition, a large number of test images require a large storage space. Summary of the invention

[0003] The present application provides a testing method, device, electronic device and storage medium for an image processing circuit to improve testing efficiency and reduce storage space required.

[0004] In a first aspect, the present application provides a testing method for an image processing circuit, comprising: obtaining parameters of a test image required for the test case from a test case; based on the parameters, cropping a plurality of test images that meet the parameters from a pre-stored actual test image; wherein the size of the actual test image is larger than the size of the test image; and using the plurality of test images as test stimuli for the test case to perform a jitter test on the image processing circuit.

[0005] In the embodiment of the present application, based on the parameters obtained in the test case, multiple test images that meet the parameters are cut out from the actual test image, thereby completing the jitter test. There is no need for engineers to manually process and generate a large number of test stimuli, thereby improving the test efficiency. In addition, through this solution, only the actual test images need to be pre-stored, and there is no need to pre-store a large number of test images, thereby reducing the storage space required.

[0006] In combination with the technical solution provided in the first method above, in some possible implementations, the parameters include the size information of the test image requirements, and based on the parameters, multiple test images that meet the parameters are cropped from the pre-stored actual test image, including: based on a preset cropping reference position and a preset cropping reference position moving step, multiple test images that meet the size information are cropped from the actual test image; wherein the cropping reference position moving step represents the jitter amplitude.

[0007] In an embodiment of the present application, the simulation of image jitter can be achieved by cropping the reference position moving step, so that multiple test images that meet the size information cropped from the actual test image by cropping the reference position moving step can better conform to the actual state of the jittered image, thereby improving the accuracy of the present solution.

[0008] In combination with the technical solution provided by the first method above, in some possible implementations, the cropping reference position moving step includes multiple groups, and based on the preset cropping reference position and the preset cropping reference position moving step, multiple test images that meet the size information are cropped from the actual test image, including: for each group of cropping reference position moving step, taking the cropping reference position as the initial position, moving the initial position based on the group of cropping reference position moving step, and determining the target position corresponding to the group of cropping reference position moving step from the actual test image; based on the target position, cropping an image that meets the size information from the actual test image to obtain the test image.

[0009] In the embodiment of the present application, the cropping reference position is used as the initial position, and the jitter amplitude is simulated by moving the step size of each group of cropping reference positions, so that the multiple test images finally obtained can be more consistent with the actual state of the jittered image, thereby improving the accuracy of the present solution.

[0010] In combination with the technical solution provided in the first manner above, in some possible implementations, the cropping reference position moving step includes n groups, and based on the preset cropping reference position and the preset cropping reference position moving step, multiple test images that meet the size information are cropped from the actual test image, including: for the i-th group of cropping reference position moving step, the target position corresponding to the i-1-th group of cropping reference position moving step is used as the initial position, the initial position is moved based on the i-th group of cropping reference position moving step, and the target position corresponding to the i-th group of cropping reference position moving step is determined from the actual test image; based on the target position, an image that meets the size information is cropped from the actual test image to obtain a test image corresponding to the i-th group of cropping reference position moving step; wherein i and n are positive integers, the target position corresponding to the i-1-th group of cropping reference position moving step is the cropping position of the test image corresponding to the i-1-th group of cropping reference position moving step; when i is 1, the initial position is the cropping reference position.

[0011] In the embodiment of the present application, since the test image corresponding to the i-th group of cropping reference position movement steps is obtained by further performing jitter simulation on the basis of the target position corresponding to the i-1-th group of cropping reference position movement steps, the n test images finally obtained are interrelated, thereby being able to more accurately simulate the patterns between actual jittered images.

[0012] In combination with the technical solution provided in the above-mentioned first method, in some possible implementations, the cropping reference position moving step includes multiple groups, and based on the preset cropping reference position and the preset cropping reference position moving step, multiple test images that meet the size information are cropped from the actual test image, including: for each group of cropping reference position moving step, taking the cropping reference position as a reference position, and moving the actual test image based on the group of cropping reference position moving step; based on the reference position, cropping an image that meets the size information from the actual test image after the move to obtain the test image.

[0013] In the embodiment of the present application, the actual test image is moved based on each set of cropping reference position moving step lengths, and then cropped with the cropping reference position as the reference position, to obtain the test image corresponding to each set of cropping reference position moving step lengths. Thus, the multiple test images finally obtained can be more consistent with the actual state of the jittered image, thereby improving the accuracy of the present solution.

[0014] In combination with the technical solution provided by the first method above, in some possible implementations, each group of the cropping reference position moving steps includes a first moving step moving along the vertical direction of the actual test image and a second moving step moving along the horizontal direction of the actual test image.

[0015] In an embodiment of the present application, the first moving step size can be used to simulate the jitter of the image in the vertical direction, and the second moving step size can be used to simulate the jitter of the image in the horizontal direction. Therefore, by using a cropping reference position moving step size including at least one of the first moving step size and the second moving step size, a large number of test images with different jitter conditions can be simulated, thereby improving the diversity of the test images obtained by this scheme.

[0016] In combination with the technical solution provided in the first manner above, in some possible implementations, the first moving step lengths are not completely the same, and the second moving step lengths are not completely the same.

[0017] In combination with the technical solution provided by the first method above, in some possible implementations, the cropping reference position moving step is obtained in the following manner: for each group of cropping reference position moving steps: randomly determine a value from a preset first moving step range as the first moving step included in the group of cropping reference position moving steps; randomly determine a value from a preset second moving step range as the second moving step included in the group of cropping reference position moving steps.

[0018] In the embodiment of the present application, by limiting the first moving step range and the second moving step range, the final cropping reference position moving step can be within the actual range to meet the actual use requirements. By determining the cropping reference position moving step in a random manner, the influence of human factors on the final test image can be reduced, so that the final test image is more in line with the actual situation.

[0019] In combination with the technical solution provided by the first method above, in some possible implementations, the parameters include the required size information of the test image and the moving step size of the cropping reference position, and based on the parameters, multiple test images that meet the parameters are cropped from the pre-stored actual test image, including: based on a preset cropping reference position and the moving step size of the cropping reference position, multiple test images that meet the size information are cropped from the actual test image.

[0020] In the embodiment of the present application, by obtaining parameters including the moving step length of the cropping reference position from the test case, the multiple test images finally obtained can better meet the requirements of the test case.

[0021] In a second aspect, the present application provides a testing device for an image processing circuit, comprising: an acquisition module and a processing module, the acquisition module being used to acquire parameters of a test image required for the test case from the test case; the processing module being used to crop, based on the parameters, a plurality of test images that meet the parameters from pre-stored actual test images; wherein the size of the actual test image is larger than the size of the test image; the processing module being further used to use the plurality of test images as test stimuli for the test case to perform a jitter test on the image processing circuit.

[0022] In a third aspect, the present application provides an electronic device, comprising: a memory and a processor, the memory and the processor being connected; the memory being used to store programs; and the processor being used to call the programs stored in the memory to execute the method described in the first aspect above and / or in combination with any possible implementation of the first aspect above.

[0023] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the computer program executes the method described in the first aspect and / or in combination with any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic flow chart of a method for testing an image processing circuit according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram of an initial position and a target position shown in an embodiment of the present application;

[0027] Figure 3 A structural block diagram of a testing device for an image processing circuit shown in an embodiment of the present application;

[0028] Figure 4 A structural block diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0030] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it is not necessary to further define and explain it in the subsequent drawings. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.

[0031] The technical solution of the present application will be described in detail below with reference to the accompanying drawings.

[0032] See also Figure 1 , Figure 1 A flow chart of a method for testing an image processing circuit is provided for this application. Figure 1 Describe the steps it involves.

[0033] S100: Obtaining parameters of a test image required by the test case from the test case.

[0034] In one implementation, the parameters obtained from the test case may include size information required by the test image.

[0035] Optionally, the test image may be a rectangular image, or may be an image of any shape such as a circle or an ellipse.

[0036] The required size information of the test image is used to indicate the shape and size of the test image.

[0037] Optionally, when the test image is a rectangular image, the size information may include image height and image width.

[0038] The image height and image width may be represented by the number of pixels.

[0039] Optionally, when the test image is a circular image, the size information may include the image radius (or image diameter).

[0040] The image radius (or image diameter) may be represented by the number of pixels.

[0041] The size information required for the test image is set according to actual needs, and its specific range is not limited here.

[0042] In one implementation, the parameters obtained from the test case may include the size information required for the test image and the moving step length of the cropping reference position.

[0043] The specific implementation method of the size information has been clearly described in the previous text, and will not be repeated here for the sake of brevity.

[0044] Optionally, the cropping reference position moving step includes at least one of a first moving step and a second moving step.

[0045] The first moving step length represents the step length of moving along the vertical direction of the actual test image, and the second moving step length represents the step length of moving along the horizontal direction of the actual test image.

[0046] The sizes of the first moving step length and the second moving step length can be represented by the number of pixels.

[0047] The directions of the first moving step length and the second moving step length can be represented by different symbols, wherein the symbol can be “+”, “-” (“+” can be omitted in actual application), or any other type of symbol.

[0048] For example, when the first moving step is a positive number (with the sign "+"), it represents movement upward (e.g., vertically upward); when the first moving step is a negative number (with the sign "-"), it represents movement downward (e.g., vertically downward). When the second moving step is a positive number (with the sign "+"), it represents movement to the right (e.g., horizontally to the right); when the second moving step is a negative number (with the sign "-"), it represents movement to the left (e.g., horizontally to the left). The examples here are only for ease of understanding. In addition to the above-mentioned "+" and "-" signs, any other type of sign may also be used.

[0049] The moving step length of the cropping reference position may be pre-acquired and stored in a local storage medium, and can be directly called when needed. Alternatively, the moving step length of the cropping reference position may be acquired in real time when needed. Alternatively, the moving step length of the cropping reference position may be input by a user.

[0050] In one implementation manner, the acquired cropping reference position moving step lengths may include multiple groups, and each group of cropping reference position moving step lengths includes a first moving step length and a second moving step length.

[0051] Optionally, the first moving step lengths of different groups are not completely the same, and the second moving step lengths of different groups are not completely the same.

[0052] For example, if the cropping reference position moving step includes 4 groups, and the first moving step and the second moving step included in each group of cropping reference position moving step are expressed as (first moving step, second moving step), then the 4 groups of cropping reference position moving step are (1, 1), (1, -2), (-3, 1), (1, 1), respectively. Among them, the first group of cropping reference position moving step and the fourth group of cropping reference position moving step can be the same.

[0053] In one implementation mode, a specific method for obtaining the cropping reference position moving step may be: for each group of cropping reference position moving step: randomly determine a value from a preset first moving step range as the first moving step included in the group of cropping reference position moving step; randomly determine a value from a preset second moving step range as the second moving step included in the group of cropping reference position moving step.

[0054] By limiting the first moving step range and the second moving step range, the final cropping reference position moving step can be within the actual range to meet the actual use requirements. By determining the cropping reference position moving step in a random manner, the influence of human factors on the final test image can be reduced, making the final test image more in line with the actual situation.

[0055] The specific numerical ranges of the first moving step range and the second moving step range can be set according to actual needs, and their specific numerical values ​​are not limited here.

[0056] S200: Based on the parameters, a plurality of test images meeting the parameters are cut out from pre-stored actual test images.

[0057] The size of the actual test image is larger than the size of the test image.

[0058] In one implementation, if the parameters include size information required for the test image, then based on the parameters, the specific process of cropping multiple test images that meet the parameters from the pre-stored actual test image may be: based on a preset cropping reference position and a preset cropping reference position moving step, cropping multiple test images that meet the size information from the actual test image; wherein the cropping reference position moving step represents the jitter amplitude.

[0059] The preset cropping reference position may be the coordinates of a designated pixel point in the actual test image.

[0060] The actual test image can be stored in the local storage space. When a test image is needed, the required size information of the test image and the moving step length of the cropping reference position can be directly obtained to obtain the test image. There is no need to store a large number of test images in the storage space, which reduces the storage space occupied.

[0061] The size of the actual test image must be larger than the size of the test image.

[0062] Optionally, the size of the actual test image can be 8192x8192 or the like.

[0063] In one implementation, when the cropping reference position moving step includes a first moving step and a second moving step, a specific method for cropping a test image that meets the size information from a preset actual test image based on the cropping reference position moving step and a preset cropping reference position may be: first, taking the cropping reference position as the initial position, moving the initial position based on the first moving step and the second moving step, determining a target position corresponding to the group of cropping reference position moving steps from the actual test image, and based on the target position, cropping an image that meets the size information from the actual test image to obtain a first test image.

[0064] Then, the target position corresponding to the first test image is used as the initial position, and the initial position is moved based on the first moving step and the second moving step, and the target position corresponding to the moving step of the group of cropping reference positions is determined from the actual test image, and based on the target position, an image that meets the size information is cropped from the actual test image to obtain two test images. The above steps are repeated until the number of obtained test images reaches the preset number.

[0065] Optionally, the specific manner of moving the initial position based on the first moving step length and the second moving step length is: moving the horizontal coordinate of the initial position according to the second moving step length to obtain the horizontal coordinate of the target position, and moving the vertical coordinate of the initial position according to the first moving step length to obtain the vertical coordinate of the target position.

[0066] For example, if the first moving step is -1 (i.e., moving down by 1), the second moving step is 2 (i.e., moving right by 2), and the initial position is (3, 3), then the horizontal coordinate of the target position is 3+2, and the vertical coordinate of the target position is 3-1. Therefore, the coordinates of the target position are (5, 2). The examples here are only for ease of understanding and should not be used as limitations of the present application.

[0067] Optionally, based on the target position, an image that meets the size information is cropped from the actual test image. The specific method of obtaining the test image may be: using the target position as the positioning point of the test image, and cropping the image to a size that matches the size information according to a preset cropping method to obtain the test image.

[0068] Among them, the cropping method is pre-set. For example, the positioning point can be used as the upper left corner vertex of the test image for cropping, or the positioning point can be used as the upper right corner vertex of the test image for cropping, or the positioning point can be used as the lower left corner vertex of the test image for cropping, or the positioning point can be used as the lower right corner vertex of the test image for cropping, or the positioning point can be used as the center point of the test image for cropping. The specific cropping method can be set according to actual needs, and its specific method is not limited here.

[0069] For ease of understanding, the cropping method is to use the positioning point as the upper left corner vertex of the test image, and the target position is (3, 3), and the size information of the test image is 300×400. Then the coordinates of the four vertices of the cropped test image are (3, 3), (303, 3), (3, 403), and (303, 403). The examples here are only for ease of understanding and should not be used as limitations on this application.

[0070] In one implementation, the cropping reference position moving step includes multiple groups, and based on the preset cropping reference position and the preset cropping reference position moving step, the specific process of cropping multiple test images that meet the size information from the actual test image can be: for each group of cropping reference position moving step, the cropping reference position is used as the initial position, the initial position is moved based on the group of cropping reference position moving step, and the target position corresponding to the group of cropping reference position moving step is determined from the actual test image. Based on the target position, an image that meets the size information is cropped from the actual test image to obtain a test image.

[0071] For ease of understanding, take the example that the cropping reference position moving step includes 4 groups, and the first moving step and the second moving step included in each group of cropping reference position moving step are expressed as (first moving step, second moving step), then the 4 groups of cropping reference position moving step are (1, 1), (1, -2), (-3, 1), (1, 1), and the initial position is (3, 3).

[0072] Then, the four target positions can be determined to be (4, 4), (4, 1), (0, 4), and (4, 4). Then, based on the four target positions, four test images are obtained by cropping. The examples here are only for ease of understanding and should not be used as limitations on the present application.

[0073] Among them, based on the target position, an image that meets the size information is cropped from the actual test image. The specific method of obtaining the test image has been clearly described in the previous text and will not be repeated here for the sake of brief description.

[0074] In one implementation, the cropping reference position moving step includes n groups, and based on a preset cropping reference position and a preset cropping reference position moving step, multiple test images that meet the size information are cropped from an actual test image, including: for the i-th group of cropping reference position moving step, a target position corresponding to the i-1-th group of cropping reference position moving step is used as the initial position, and the initial position is moved based on the i-th group of cropping reference position moving step, and the target position corresponding to the i-th group of cropping reference position moving step is determined from the actual test image; based on the target position, an image that meets the size information is cropped from the actual test image to obtain a test image corresponding to the i-th group of cropping reference position moving step.

[0075] Among them, i and n are positive integers, the target position corresponding to the i-1th group of cropping reference position moving step is the cropping position of the test image corresponding to the i-1th group of cropping reference position moving step; when i is 1, the initial position is the cropping reference position.

[0076] For easier understanding, see Figure 2, take the example that the cropping reference position moving step includes 4 groups, and the first moving step and the second moving step included in each group of cropping reference position moving step are expressed as (first moving step, second moving step), then the 4 groups of cropping reference position moving step are (1, 1), (1, -2), (-3, 1), (1, 1), and the initial position is (3, 3).

[0077] First, (3, 3) Figure 2 a) in the figure is the initial position, the clipping reference position moving step is (1, 1), and the target position corresponding to the first set of clipping reference position moving step is determined to be (4, 4) ( Figure 2 b) in the figure, and use (4, 4) as the target position to crop and obtain the test images corresponding to the moving step of the first set of cropping reference positions.

[0078] Then, with (4, 4) as the initial position, the clipping reference position moving step is (1, -2), and the target position corresponding to the second set of clipping reference position moving step is determined to be (5, 2) ( Figure 2 c) in the figure, and use (5, 2) as the target position to crop and obtain the test images corresponding to the moving step of the second set of cropping reference positions.

[0079] Then, taking (5, 2) as the initial position and the moving step length of the cropping reference position as (-3, 1), the target position corresponding to the moving step length of the third set of cropping reference positions is determined to be (2, 3) ( Figure 2 d) in the figure, and take (2, 3) as the target position, and crop to obtain the test images corresponding to the moving step of the third set of cropping reference positions.

[0080] Then, with (2, 3) as the initial position, the clipping reference position moving step is (1, 1), and the target position corresponding to the fourth set of clipping reference position moving step is determined to be (3, 4) ( Figure 2 e) in the figure, and taking (3, 4) as the target position, cropping is performed to obtain the test images corresponding to the moving step of the fourth set of cropping reference positions.

[0081] The examples given here are only for ease of understanding and should not be regarded as limitations on this application.

[0082] In one implementation, the cropping reference position moving step includes multiple groups, and based on a preset cropping reference position and a preset cropping reference position moving step, multiple test images that meet the size information are cropped from an actual test image, including: for each group of cropping reference position moving step, taking the cropping reference position as a reference position, and moving the actual test image based on the group of cropping reference position moving step; based on the reference position, cropping an image that meets the size information from the actual test image after the move to obtain a test image.

[0083] A reference coordinate system may be pre-established, with a point or region in the coordinate system as a reference position. The actual test image is moved based on the clipping reference position moving step, that is, the actual test image is moved in the reference coordinate system. The position of the actual test image in the reference coordinate system may be predetermined.

[0084] For ease of understanding, the coordinates of the four corners of the actual test image in the reference coordinate system are (100, 100), (-100, 100), (100, -100), and (-100, -100), respectively. The cropping reference position moving step includes 4 groups, and the first moving step and the second moving step included in each group of cropping reference position moving steps are expressed as (first moving step, second moving step). The 4 groups of cropping reference position moving steps are (1, 1), (1, -2), (-3, 1), and (1, 1) respectively. The required size information of the test image is 60 in length and 40 in width, and the reference position is the coordinate point (0, 0) in the preset coordinate system (then the four corner points of the cropping area are (30, 20), (-30, 20), (30, -20), and (-30, -20)). This is explained as an example.

[0085] First, the actual test image is moved according to (1, 1). The coordinates of the four corner points of the actual test image after the move are (101, 101), (-99, 101), (101, -99), and (-99, -99). Then, the image of the area surrounded by (30, 20), (-30, 20), (30, -20), and (-30, -20) in the reference coordinate system is cropped as the test image.

[0086] Similarly, the actual test image is moved according to (1, -2), and the coordinates of the four corner points of the actual test image after the move are (101, 98), (-99, 98), (101, -102), and (-99, -102), respectively. Then the image of the area surrounded by (30, 20), (-30, 20), (30, -20), and (-30, -20) in the reference coordinate system is cropped as the test image.

[0087] The actual test image is moved according to (-3, 1), and the coordinates of the four corner points of the actual test image after the move are (97, 101), (-103, 101), (97, -99), and (-103, -99). Then the image of the area surrounded by (30, 20), (-30, 20), (30, -20), and (-30, -20) in the reference coordinate system is cropped as the test image.

[0088] The actual test image is moved according to (1, 1), and the coordinates of the four corner points of the actual test image after the move are (101, 101), (-99, 101), (101, -99), and (-99, -99), respectively. Then the image of the area surrounded by (30, 20), (-30, 20), (30, -20), and (-30, -20) in the reference coordinate system is cropped as the test image.

[0089] The examples given here are only for ease of understanding and should not be regarded as limitations on this application.

[0090] Optionally, based on the parameters, cutting out a plurality of test images that meet the parameters from pre-stored actual test images may be achieved by running a preset script.

[0091] The preset script may be a script written in languages ​​such as python, perl, or VBA.

[0092] In one implementation, the actual test images may include multiple images, and different actual test images are different. In this case, based on the parameters, the method of cutting out multiple test images that meet the parameters from the pre-stored actual test images may be: for each actual test image, based on the parameters, cutting out multiple test images that meet the parameters from the actual test image.

[0093] The specific method of cutting out multiple test images that meet the parameters from the pre-stored actual test images based on the parameters has been clearly described in the previous text, and will not be repeated here for the sake of brevity.

[0094] Optionally, the cropping reference positions corresponding to different actual test images may be the same.

[0095] In one implementation manner, before obtaining the parameters of the test image required by the test case from the test case, the actual test image may be obtained first.

[0096] A specific method of acquiring the actual test image may be to first acquire an initial actual test image, and then convert the format of the initial actual test image into a specified format to obtain the actual test image.

[0097] For example, if the format of the initial actual test image is a RAW type image, and the specified format can be an image in txt format. After obtaining the initial actual test image of RAW type, the initial actual test image is converted into an actual test image in txt format. The example here is only for ease of understanding and should not be used as a limitation to this application.

[0098] In order to compare with the test image, a comparison image that meets the size information can be cut out from the preset actual test image based on a preset cutting reference position. The size information of the comparison image and the test image is the same.

[0099] The method of cropping the control image based on the cropping reference position is the same as the method of cropping the test image based on the target position, and for the sake of brevity, it will not be repeated here.

[0100] S300: Using multiple test images as test stimuli of a test case to perform a jitter test on an image processing circuit.

[0101] The image processing circuit may be any type of existing image processing circuit as long as it has the ability to process jittered images, and its specific circuit structure is not limited here.

[0102] The specific method of using the test case to perform jitter testing on the image processing circuit is well known to those skilled in the art and will not be described in detail here for the sake of brevity.

[0103] In order to facilitate understanding of the testing method of the image processing circuit of the present solution, it will be described below in conjunction with Embodiment 1.

[0104] Embodiment 1:

[0105] Prepare one or more initial actual test images in RAW format in advance. The size of the initial actual test image can be the maximum size required in the jitter test process, such as a resolution of 8192×8192. Then save the initial actual test image in a public directory so that all verification platforms can read the initial actual test image.

[0106] Then, the initial actual test image in RAW format is converted into a txt file that can be used as an input for the verification platform or into an actual test image of another type that is compatible with the verification platform.

[0107] When a jitter test is required, the test case transmits the parameters of the required test image to the verification platform. The parameters include the required size information of the test image and the moving step length of the cropping reference position (the first step length and the second step length). The size information and the moving step length of the cropping reference position can be determined randomly. The units of the size information and the moving step length of the cropping reference position are both pixels (the number of pixels).

[0108] After that, the verification platform automatically cuts the image size required by the test case from the large image as the first frame data sent to the verification platform. The jitter amplitude of the second frame image is offset based on the first frame image and then cut. The third frame and subsequent frames repeat the operation method of the second frame until all the test images are obtained. The verification platform can obtain test images of any size and can be jittered at will.

[0109] The specific method of cropping can be: use software to read the input txt image data (that is, the actual test image), and read the pixels of the required image from the large image according to the parameters set in the test case, and send the read pixels to the test platform.

[0110] Alternatively, you can use a script to crop the input image data and generate the image data required by the test case according to the parameters set by the test case. You can also use other cropping tools to crop images.

[0111] Optionally, if a new actual test image needs to be added, the initial actual test image can be added to the public directory according to the above steps without modifying the verification platform.

[0112] If you need to modify the actual test image, you can directly replace the actual test image.

[0113] Other verification platforms can achieve the effect of improving test efficiency and reducing the storage space required by applying the above method.

[0114] Based on the same technical concept, the present application also provides a testing device for an image processing circuit. Figure 3 As shown, the image processing circuit testing device 100 includes an acquisition module 110 and a processing module 120 .

[0115] The acquisition module 110 is used to acquire the parameters of the test image required by the test case from the test case.

[0116] The processing module 120 is used to crop multiple test images that meet the parameters from the pre-stored actual test images based on the parameters; wherein the size of the actual test image is larger than the size of the test image; and use the multiple test images as test stimuli for the test case to perform a jitter test on the image processing circuit.

[0117] The parameters include the size information of the test image requirements, and the processing module 120 is specifically used to crop multiple test images that meet the size information from the actual test image based on a preset cropping reference position and a preset cropping reference position moving step; wherein the cropping reference position moving step represents the jitter amplitude.

[0118] The cropping reference position moving step includes multiple groups, and the processing module 120 is specifically used to, for each group of cropping reference position moving step, take the cropping reference position as the initial position, move the initial position based on the group of cropping reference position moving step, and determine the target position corresponding to the group of cropping reference position moving step from the actual test image; based on the target position, crop an image that meets the size information from the actual test image to obtain the test image.

[0119] The cropping reference position moving step includes n groups, and the processing module 120 is specifically used to, for the i-th group of cropping reference position moving step, take the target position corresponding to the i-1th group of cropping reference position moving step as the initial position, move the initial position based on the i-th group of cropping reference position moving step, and determine the target position corresponding to the i-th group of cropping reference position moving step from the actual test image; based on the target position, crop an image that meets the size information from the actual test image to obtain the test image corresponding to the i-th group of cropping reference position moving step; wherein, i and n are positive integers, the target position corresponding to the i-1th group of cropping reference position moving step is the cropping position of the test image corresponding to the i-1th group of cropping reference position moving step; when i is 1, the initial position is the cropping reference position.

[0120] The cropping reference position moving step includes multiple groups, and the processing module 120 is specifically used to, for each group of cropping reference position moving step, take the cropping reference position as a reference position, and move the actual test image based on the group of cropping reference position moving step; based on the reference position, crop an image that meets the size information from the actual test image after the move to obtain the test image.

[0121] In one implementation manner, each group of the cropping reference position moving step lengths includes a first moving step length moving along a vertical direction of the actual test image and a second moving step length moving along a horizontal direction of the actual test image.

[0122] In one implementation manner, the first moving step lengths are not completely the same, and the second moving step lengths are not completely the same.

[0123] The processing module 120 is also used to randomly determine, for each group of cropping reference position moving steps: a value from a preset first moving step range as the first moving step included in the group of cropping reference position moving steps; and a value from a preset second moving step range as the second moving step included in the group of cropping reference position moving steps.

[0124] The parameters include the required size information of the test image and the moving step length of the cropping reference position. The processing module 120 is specifically used to crop multiple test images that meet the size information from the actual test image based on the preset cropping reference position and the moving step length of the cropping reference position.

[0125] The image processing circuit testing device 100 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned image processing circuit testing method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned image processing circuit testing method embodiment.

[0126] See also Figure 4 , which is an electronic device 200 provided in an embodiment of the present application. The electronic device 200 includes: a processor 210 and a memory 220.

[0127] The memory 220 and the processor 210 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The memory 220 is used to store computer programs, such as storing Figure 3 The software functional modules shown in the figure are the testing device 100 for the image processing circuit. The testing device 100 for the image processing circuit includes at least one software functional module that can be stored in the memory 220 in the form of software or firmware or fixed in the operating system (OS) of the electronic device 200. The processor 210 is used to execute the executable modules stored in the memory 220, such as the software functional modules or computer programs included in the testing device 100 for the image processing circuit. At this time, the processor 210 is used to obtain the parameters of the test image required for the test case from the test case; based on the parameters, a plurality of test images that meet the parameters are cut out from the pre-stored actual test image; wherein the size of the actual test image is larger than the size of the test image; and the plurality of test images are used as test stimuli for the test case to perform a jitter test on the image processing circuit.

[0128] Among them, the memory 220 can be, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0129] The processor 210 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it may also be a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor or the processor 210 may also be any conventional processor, etc.

[0130] The electronic device 200 mentioned above includes but is not limited to a personal computer, a server, etc.

[0131] The embodiment of the present application also provides a computer-readable storage medium (hereinafter referred to as storage medium), on which a computer program is stored, and when the computer program is run by a computer such as the above-mentioned electronic device 200, the test method of the image processing circuit shown above is executed. The computer-readable storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.

[0132] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for testing an image processing circuit, characterized in that: include: Obtaining parameters of a test image required by the test case from the test case; Based on the parameters, a plurality of test images meeting the parameters are cut out from pre-stored actual test images; wherein the size of the actual test image is larger than the size of the test image; The multiple test images are used as test stimuli of the test case to perform a jitter test on the image processing circuit.

2. The method according to claim 1, characterized in that The parameters include size information of the test image requirements, and based on the parameters, cutting out a plurality of test images that meet the parameters from the pre-stored actual test images includes: Based on a preset cropping reference position and a preset cropping reference position moving step length, a plurality of test images conforming to the size information are cropped from the actual test image; wherein the cropping reference position moving step length represents the jitter amplitude.

3. The method according to claim 2, characterized in that The cropping reference position moving step includes a plurality of groups, and the cropping of a plurality of test images conforming to the size information from the actual test image based on the preset cropping reference position and the preset cropping reference position moving step includes: For each group of cropping reference position moving step lengths, taking the cropping reference position as the initial position, moving the initial position based on the group of cropping reference position moving step lengths, and determining a target position corresponding to the group of cropping reference position moving step lengths from the actual test image; Based on the target position, an image that meets the size information is cut out from the actual test image to obtain the test image.

4. The method according to claim 2, characterized in that: The cropping reference position moving step includes n groups, and the cropping of a plurality of test images conforming to the size information from the actual test image based on the preset cropping reference position and the preset cropping reference position moving step includes: For the i-th group of cropping reference position moving step lengths, taking the target position corresponding to the i-1-th group of cropping reference position moving step lengths as the initial position, moving the initial position based on the i-th group of cropping reference position moving step lengths, and determining the target position corresponding to the i-th group of cropping reference position moving step lengths from the actual test image; Based on the target position, an image conforming to the size information is cropped from the actual test image to obtain a test image corresponding to the i-th group of cropping reference position moving steps; Among them, i and n are positive integers, the target position corresponding to the i-1th group of cropping reference position moving step is the cropping position of the test image corresponding to the i-1th group of cropping reference position moving step; when i is 1, the initial position is the cropping reference position.

5. The method according to claim 2, characterized in that: The cropping reference position moving step includes a plurality of groups, and the cropping of a plurality of test images conforming to the size information from the actual test image based on the preset cropping reference position and the preset cropping reference position moving step includes: For each group of cropping reference position movement steps, the cropping reference position is used as a reference position, and the actual test image is moved based on the group of cropping reference position movement steps; Based on the reference position, an image conforming to the size information is cut out from the moved actual test image to obtain the test image.

6. The method according to any one of claims 3 to 5, characterized in that: Each group of the cropping reference position moving steps includes a first moving step moving along the vertical direction of the actual test image and a second moving step moving along the horizontal direction of the actual test image.

7. The method according to claim 6, characterized in that The first moving step lengths are not completely the same, and the second moving step lengths are not completely the same.

8. The method according to any one of claims 3 to 5, characterized in that: The moving step of the cropping reference position is obtained by: For each set of crop reference positions, move the step size: Randomly determine a value from a preset first moving step range as the first moving step included in the group of cropping reference position moving steps; A value is randomly determined from a preset second moving step range as the second moving step included in the group of cropping reference position moving steps.

9. The method according to claim 1, characterized in that: The parameters include the size information of the test image requirement and the moving step length of the cropping reference position. Based on the parameters, cropping a plurality of test images that meet the parameters from the pre-stored actual test image includes: Based on the preset cropping reference position and the cropping reference position moving step length, a plurality of test images conforming to the size information are cropped from the actual test image.

10. A testing device for an image processing circuit, characterized in that: include: An acquisition module, used for acquiring parameters of a test image required by the test case from the test case; A processing module, used for cutting out a plurality of test images conforming to the parameters from the pre-stored actual test images based on the parameters; wherein the size of the actual test image is larger than the size of the test image; The processing module is further configured to use the multiple test images as test stimuli of the test case to perform a jitter test on the image processing circuit.

11. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor is used to call the program stored in the memory to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 9 is executed.