Resolution testing method, device, equipment and storage medium
By finding the center position in the resolution test card image and performing segmentation and coordinate positioning, the problem of low camera resolution detection accuracy is solved, and high-accuracy resolution detection is achieved at different imaging angles.
Patent Information
- Application Number
- CN202211584642.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-12-09
AI Technical Summary
When detecting camera resolution in the prior art, due to process limitations, imaging angle deviation results in low resolution detection accuracy.
By receiving the resolution test card image captured by the test camera, finding the center position according to the preset center mark map, and performing image segmentation, the starting and ending coordinates of the wedge line are obtained, the critical resolution coordinates are located, the resolution value is calculated, and the preset center mark map is used for binarization processing and similarity detection to improve the accuracy of resolution detection.
It achieves accurate calculation of resolution under different imaging angle deviations, improves the accuracy and intelligence of resolution detection, and adapts to the imaging differences of different cameras.
Smart Images

Figure CN116016901B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera technology, and in particular to a resolution testing method, device, equipment and storage medium. Background Art
[0002] In today's era, digital cameras, mobile phone test cameras, various security test cameras, and home monitoring test cameras have been widely used in people's lives. Testing and performance detection of test cameras have become very important in design and production.
[0003] Currently, in the process of testing the resolution (also known as resolution) of a camera, the method is usually to obtain an image of a resolution test card taken by the test camera, and then detect the resolution of the test camera by reading the markings on the resolution test card image. However, due to process limitations, it is impossible to guarantee that the image imaging of each test camera can be displayed squarely. That is, the resolution test card will have deviations at different angles when shooting the image, resulting in inaccurate image capture, causing errors in the calculated resolution, and thus resulting in low accuracy of resolution detection. Summary of the Invention
[0004] The main purpose of this application is to provide a resolution testing method, device, equipment and storage medium, aiming to solve the current technical problem of low accuracy of resolution detection.
[0005] To achieve the above objectives, the present application provides a resolution testing method, which includes:
[0006] Receive a resolution test card image captured by a test camera, and find the center position in the resolution test card image according to a preset center mark map;
[0007] Segmenting the image of the resolution test card according to the center position to obtain regional images, wherein the regional images include at least one set of wedge lines;
[0008] Obtaining the starting coordinates and the ending coordinates of each of the wedge lines, and locating the critical resolution coordinate between each of the starting coordinates and the corresponding ending coordinates;
[0009] According to each of the resolution critical coordinates, a resolution value of the area image corresponding to each of the resolution critical coordinates is determined, and each of the resolution values is collectively used as the camera resolution of the test camera.
[0010] Optionally, after the step of determining, based on the respective resolution critical coordinates, the resolution value of the area image corresponding to each of the resolution critical coordinates, and using the respective resolution values as the camera resolution of the test camera, the method further includes:
[0011] Obtaining the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate;
[0012] According to the ratio between the resolution value and the corresponding coordinate interval length, each resolution value is converted proportionally to obtain the corresponding true resolution value, and each true resolution value is collectively used as the true camera resolution of the test camera.
[0013] Optionally, the step of finding the center position in the image of the resolution test card according to a preset center mark diagram includes:
[0014] Binarizing the image of the resolution test card to obtain a corresponding binary image;
[0015] Performing similarity detection on the binary image based on the preset center mark image to obtain a set of similar points;
[0016] An average value operation is performed on the similar point set to obtain a similar point average value, and a position corresponding to the similar point average value is used as the center position.
[0017] Optionally, the regional pictures include a central horizontal picture, a central vertical picture, four corner horizontal pictures, and four corner vertical pictures;
[0018] The step of segmenting the image of the resolution test card according to the center position to obtain images of each region includes:
[0019] Acquire central horizontal wedge line information and central vertical wedge line information corresponding to the central position, and construct a central horizontal segmentation frame based on the central horizontal wedge line information, and construct a central vertical segmentation frame based on the central vertical wedge line information;
[0020] Segmenting the central horizontal picture from the binarized picture based on the central horizontal segmentation frame, and segmenting the central vertical picture from the binarized picture based on the central vertical segmentation frame;
[0021] According to the center position, cross-segmenting the binary image to obtain a four-corner segmentation image;
[0022] Performing image segmentation on each of the four-corner segmentation images according to a preset segmentation ratio to obtain corresponding four-corner horizontal images;
[0023] By performing geometric transformation on each of the four-corner horizontal images, corresponding four-corner vertical images are obtained.
[0024] Optionally, the step of obtaining the starting coordinates and the ending coordinates of each wedge line includes:
[0025] Obtaining the top diverging endpoints of each of the wedge lines, and using the coordinates of the top diverging endpoints as the starting coordinates;
[0026] The bottom convergence endpoint of each of the wedge lines is obtained, and the coordinates of the bottom convergence endpoint are used as the end coordinates.
[0027] Optionally, the step of locating a critical resolution coordinate between each of the starting coordinates and the corresponding ending coordinates includes:
[0028] Obtaining a set of line numbers of corresponding wedge lines between each of the starting coordinates and the corresponding ending coordinates;
[0029] According to the coordinate sequence from each starting coordinate to the corresponding ending coordinate, the first target coordinate in the line number set whose line number is less than the preset line number is searched, and the target coordinate is used as the resolution critical coordinate.
[0030] Optionally, the step of determining, based on each of the resolution critical coordinates, a resolution value of the area image corresponding to each of the resolution critical coordinates includes:
[0031] Obtaining the camera magnification of the test camera;
[0032] A corresponding resolution value is generated according to the imaging magnification and each of the resolution critical coordinates.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a resolution testing device, the resolution testing device comprising:
[0034] A center position finding module is used to receive a resolution test card image captured by a test camera and find the center position in the resolution test card image according to a preset center mark map;
[0035] An image segmentation module is used to segment the image of the resolution test card according to the center position to obtain regional images, wherein the regional images contain at least one set of wedge lines;
[0036] a module for finding the starting coordinates and the ending coordinates, for obtaining the starting coordinates and the ending coordinates of each of the wedge lines, and locating the critical resolution coordinates between each of the starting coordinates and the corresponding ending coordinates;
[0037] The image resolution calculation module is used to determine the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates, and use each of the resolution values as the camera resolution of the test camera.
[0038] Optionally, the resolution testing device is further used for:
[0039] Obtaining the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate;
[0040] According to the ratio between the resolution value and the corresponding coordinate interval length, each resolution value is converted proportionally to obtain the corresponding true resolution value, and each true resolution value is collectively used as the true camera resolution of the test camera.
[0041] Optionally, the center location search module is further configured to:
[0042] Binarizing the image of the resolution test card to obtain a corresponding binary image;
[0043] Performing similarity detection on the binary image based on the preset center mark image to obtain a set of similar points;
[0044] An average value operation is performed on the similar point set to obtain a similar point average value, and a position corresponding to the similar point average value is used as the center position.
[0045] Optionally, the image segmentation module is further configured to:
[0046] Acquire central horizontal wedge line information and central vertical wedge line information corresponding to the central position, and construct a central horizontal segmentation frame based on the central horizontal wedge line information, and construct a central vertical segmentation frame based on the central vertical wedge line information;
[0047] Segmenting the central horizontal picture from the binarized picture based on the central horizontal segmentation frame, and segmenting the central vertical picture from the binarized picture based on the central vertical segmentation frame;
[0048] According to the center position, cross-segmenting the binary image to obtain a four-corner segmentation image;
[0049] Performing image segmentation on each of the four-corner segmentation images according to a preset segmentation ratio to obtain corresponding four-corner horizontal images;
[0050] By performing geometric transformation on each of the four-corner horizontal images, corresponding four-corner vertical images are obtained.
[0051] Optionally, the module for finding the starting coordinates and the ending coordinates is further used to:
[0052] Obtaining the top diverging endpoints of each of the wedge lines, and using the coordinates of the top diverging endpoints as the starting coordinates;
[0053] The bottom convergence endpoint of each of the wedge lines is obtained, and the coordinates of the bottom convergence endpoint are used as the end coordinates.
[0054] Optionally, the module for finding the starting coordinates and the ending coordinates is further configured to:
[0055] Obtaining a set of line numbers of corresponding wedge lines between each of the starting coordinates and the corresponding ending coordinates;
[0056] According to the coordinate sequence from each starting coordinate to the corresponding ending coordinate, the first target coordinate in the line number set whose line number is less than the preset line number is searched, and the target coordinate is used as the resolution critical coordinate.
[0057] Optionally, the image force value calculation module is further configured to:
[0058] Obtaining the camera magnification of the test camera;
[0059] A corresponding resolution value is generated according to the imaging magnification and each of the resolution critical coordinates.
[0060] The present application also provides a resolution testing device, wherein the resolution test includes: a test workstation, a test camera, a darkroom, a memory, a processor, and a resolution testing program stored in the memory and executable on the processor. When the resolution testing program is executed by the processor, the steps of the above-mentioned resolution testing method are implemented.
[0061] The present application also provides a readable storage medium, on which a resolution test program is stored. When the resolution test program is executed by a processor, the steps of the above-mentioned resolution test method are implemented.
[0062] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned resolution testing method when executed by a processor.
[0063] The present application provides a resolution testing method, apparatus, device and storage medium. Compared with the current method of obtaining a resolution test card image captured by a test camera and then detecting the resolution of the test camera by reading a mark on the resolution test card image, the present application first receives a resolution test card image captured by the test camera and finds the center position in the resolution test card image based on a preset center mark map; based on the center position, the resolution test card image is segmented to obtain regional images, wherein the regional images contain at least one set of wedge lines; the starting coordinates and ending coordinates of each wedge line are obtained, and a resolution critical coordinate is located between each starting coordinate and the corresponding ending coordinate; based on each resolution critical coordinate, the resolution value of the regional image corresponding to each resolution critical coordinate is determined, and each resolution value is collectively used as the camera resolution of the test camera. This application divides the picture according to the center position of the picture, is not affected by the deviation of the picture imaging, achieves the purpose of being compatible with different picture imaging differences, and overcomes the problem that due to process limitations, it is impossible to guarantee that the picture imaging of each test camera can be displayed squarely, that is, the resolution test card will have deviations at different angles when shooting and imaging, resulting in inaccurate picture capture, which makes the calculated resolution have errors, and further leads to the technical defect of low accuracy of resolution detection. Therefore, the accuracy of the resolution is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is a flow chart of the first embodiment of the resolution testing method of the present application;
[0065] Figure 2 This is the preset center mark diagram involved in the resolution testing method of this application;
[0066] Figure 3 This is an image of a resolution test card involved in the resolution test method of this application;
[0067] Figure 4 This is the central horizontal image involved in the resolution testing method of this application;
[0068] Figure 5 The upper left corner horizontal image involved in the resolution testing method of this application;
[0069] Figure 6 The vertical image in the upper left corner involved in the resolution testing method of this application;
[0070] Figure 7 This is a flow chart of a second embodiment of the resolution testing method of the present application;
[0071] Figure 8 Schematic diagram of the resolution test process involved in the resolution test method of this application;
[0072] Figure 9 Schematic diagram of a resolution testing device involved in the resolution testing method of this application;
[0073] Figure 10 Schematic diagram of the resolution testing equipment involved in the resolution testing method of this application;
[0074] Figure 11 This is a schematic diagram of the device structure of the hardware operating environment involved in the resolution testing method of this application.
[0075] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0076] To make the above-mentioned purposes, features, and advantages of the present application more clearly understood, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.
[0077] Currently, in the process of testing the resolution (also known as resolution) of a test camera, the test camera's resolution is usually detected by obtaining an image of a resolution test card taken by the test camera and then reading the markings on the resolution test card image. However, due to process limitations, it is impossible to guarantee that the image imaged by each test camera can be displayed squarely. In other words, the resolution test card may have deviations at different angles when shooting images, resulting in inaccurate image capture, errors in the calculated resolution, and thus low accuracy of resolution detection.
[0078] The present application provides a method for testing resolution. In the first embodiment of the method for testing resolution, refer to Figure 1 , the resolution testing method comprises:
[0079] Step S10, receiving a resolution test card image captured by a test camera, and finding the center position in the resolution test card image according to a preset center mark map;
[0080] In this embodiment, it should be noted that the execution subject of this embodiment is a test workstation, which is connected to the test camera and can be used to receive the resolution test card picture transmitted by the test camera, and perform imaging display, picture processing, and resolution calculation; the test camera is used to shoot the resolution test card to obtain the resolution test card picture, and
[0081] Sent to the test workstation; resolution is also called resolution, the resolution test is the resolution test, the resolution test card is the resolution test card, wherein the resolution test card is the standard sample for resolution test using the international standard ISO12233 resolution resolution card, and the resolution test is carried out using a unified
[0082] The camera angle and shooting environment can provide auxiliary tests such as the actual vertical resolution and horizontal resolution. Generally speaking, the resolution of a camera includes the center resolution and the four-corner resolution. Therefore, this experiment
[0083] The resolution values calculated in the embodiment include the center resolution value and the four corner resolution values; the preset center mark image refers to the center image of the preset resolution test card, which can be referred to Figure 2 .
[0084] As an example, step S10 includes: connecting the test camera to the network cable,
[0085] Receive the resolution test card picture returned by the test camera, and perform similarity detection with the resolution test card picture in step 5 according to the preset center mark map to obtain the similar point set, and perform similarity detection on the similar point set.
[0086] The point set is averaged to obtain an average point, which is the center position in the image of the resolution test card, and subsequent image segmentation is performed based on the center position.
[0087] For example, refer to Figure 3 As shown in the picture of the resolution test card, according to the preset center mark
[0088] Picture Figure 2 ,Will Figure 2 and Figure 3 Perform similarity detection to obtain the center area of the center position mark box. There are multiple similar points distributed in the center area. Perform average calculation on each similar point to obtain an average value.
[0089] The average point is taken as Figure 3 central location.
[0090] Step S20, segmenting the image of the resolution test card according to the center position to obtain regional images, wherein the regional images contain at least one set of wedge lines;
[0091] In this embodiment, it should be noted that the regional pictures include a central picture and four corner pictures, wherein the central picture includes a central horizontal picture and a central vertical picture, and the four corner pictures include
[0092] The upper left corner picture, the lower left corner picture, the upper right corner picture and the lower right corner picture. Further, the upper left corner picture includes the upper left vertical picture and the upper left horizontal picture, the lower left corner picture includes the lower left vertical picture and the lower left horizontal picture, and the upper right corner picture includes the upper right vertical picture and
[0093] The upper right corner horizontal picture, the lower right corner picture includes the lower right corner vertical picture and the lower right corner horizontal picture. The center picture detects the center resolution of the test camera, and the four corner pictures detect the four corner resolution of the test camera. The wedge lines are a group of trumpet-shaped lines distributed in the center picture and the four corner pictures, and can be used to measure the resolution of the test camera in various areas, such as Figure 4 As shown, there are many other resolution lines of different shapes and directions in the ISO12233 resolution test chart, mainly to better test the resolution of cameras and other lenses.
[0094] As an example, step S20 includes: constructing a center horizontal segmentation frame corresponding to the center horizontal wedge line information and a center vertical segmentation frame corresponding to the center vertical wedge line information according to the center horizontal wedge line information and the center vertical segmentation frame corresponding to the center vertical wedge line information, and using the center horizontal segmentation frame to segment the center horizontal image and the center vertical segmentation frame to segment the center vertical image in the resolution test card image, which can be referred to Figure 3 , wherein the center horizontal wedge line information may include the length and width of the center horizontal wedge line, the center vertical wedge line information may include the length and width of the center vertical wedge line, the construction condition of the center horizontal segmentation frame is that the center horizontal wedge line and the corresponding coordinate axis must be completely included, and the construction condition of the center vertical segmentation frame is the same; using the center horizontal coordinate and center vertical coordinate corresponding to the center position, a cross segmentation is performed in the resolution test card image to obtain the four-corner segmentation diagram, which can be referred to Figure 3 The cross dividing line in the center is then divided into four corners according to a preset dividing ratio to obtain a corresponding four corner horizontal picture, wherein the preset dividing ratio refers to the ratio between the length / width of the center position mark frame and the length / width of the four corner dividing frames, and the center position mark frame refers to the frame line containing the similar point set, such as Figure 3The centermost square frame line; then rotate and mirror the four-corner horizontal pictures to obtain corresponding four-corner vertical pictures, wherein the center horizontal picture detects the center horizontal resolution of the test camera, the center vertical picture detects the center vertical resolution of the test camera, the four-corner horizontal pictures detect the four-corner horizontal resolution of the test camera, and the four-corner vertical pictures detect the four-corner vertical resolution of the test camera, that is, the upper left corner horizontal picture detects the horizontal resolution of the test camera in the direction of the upper left corner, and the upper left corner vertical picture detects the vertical resolution of the test camera in the direction of the upper left corner, and the same applies to the other triangles.
[0095] Step S30, obtaining the starting coordinates and the ending coordinates of each wedge line, and locating the critical resolution coordinate between each starting coordinate and the corresponding ending coordinate;
[0096] Step S40 , determining the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates, and using each of the resolution values as the camera resolution of the test camera.
[0097] In this embodiment, it should be noted that the starting coordinate refers to the coordinate at which the resolution detection starts; the ending coordinate refers to the coordinate at which the resolution detection ends; the critical resolution coordinate refers to the coordinate corresponding to the resolution at the detection location, based on which the resolution value required at the location can be calculated; it should be noted that the wedge line is trumpet-shaped, that is, there is a diverging end and a contracting end, and the resolution detection is performed from the starting coordinate to the ending coordinate.
[0098] As an example, steps S30 to S40 include: obtaining the diverging ends and the contracting ends of each of the wedge lines, locating the corresponding starting coordinates in each of the diverging ends, locating the corresponding ending coordinates in each of the contracting ends, and performing sequential detection from the starting coordinates to the ending coordinates, that is, detecting the number of lines at each coordinate position until the first target coordinate whose number of lines is less than a preset number of lines is detected, then stopping the detection, and using the target coordinates as the resolution critical coordinates, wherein the preset number of lines can be set to the number of lines corresponding to the starting coordinates; calculating the resolution value of the area image corresponding to each of the resolution critical coordinates according to the resolution critical coordinates and the camera magnification of the test camera, and using each of the resolution values together as the camera resolution of the test camera.
[0099] For example, Figure 4Take the center horizontal picture, start from the starting coordinate to the ending coordinate, and calculate the number of lines corresponding to each coordinate point. It can be seen that the number of lines at the starting coordinate is 9. It can be assumed that the preset number of lines is also 9. It can be seen that at coordinate 10, the number of lines is less than 9 for the first time, that is, this is the critical coordinate of resolution. Then according to the value 10 and the camera magnification of the test camera, the center horizontal resolution of the test camera can be calculated.
[0100] The step of finding the center position in the image of the resolution test card according to the preset center mark diagram includes:
[0101] Step S11, performing binarization processing on the resolution test card image to obtain a corresponding binarized image;
[0102] Step S12, performing similarity detection on the binary image based on the preset center mark image to obtain a set of similar points;
[0103] Step S13 , performing an average operation on the similar point set to obtain a similar point average value, and taking a position corresponding to the similar point average value as the center position.
[0104] As an example, steps S11 to S13 include: performing binarization processing on the resolution test card image to obtain a corresponding binarized image, wherein the binarization processing refers to setting the grayscale values of pixels on the resolution test card image to 0 or 255, that is, presenting the entire image with a distinct visual effect of only black and white, and the binarized image is a black and white image obtained after the binarization processing; performing similarity detection on the preset center mark image and the binarized image using a similarity algorithm to obtain multiple clustered similar points, and aggregating the coordinates of the multiple similar points to obtain the similar point set, wherein the similarity algorithm may also be a standard algorithm of the difflib model or other similarity calculation algorithm, which is not particularly limited in this exemplary embodiment, and the similar point set may be in the form of a coordinate point set; performing an average calculation on each horizontal coordinate and each vertical coordinate in the similar point set to obtain an abscissa average and an ordinate average, and using the abscissa average and the ordinate average as the similar point average. The position corresponding to the abscissa average and the ordinate average is the center position.
[0105] For example, the coordinates of the first similar point are (1, 1), the coordinates of the second similar point are (2, 3), and the coordinates of the third similar point are (4, 5). Further, by aggregating these three coordinates, the similarity set can be obtained as {(3, 1), (2, 3), (4, 5)}; the horizontal and vertical coordinates in the set are averaged respectively to obtain the average value of the similarity point {(3, 3)}, that is, the coordinate {3, 3} is the center position.
[0106] The regional images include a center horizontal image, a center vertical image, four corner horizontal images, and four corner vertical images. The steps of segmenting the resolution test card image based on the center position to obtain the regional images include:
[0107] Step S21, obtaining central horizontal wedge line information and central vertical wedge line information corresponding to the central position, and constructing a central horizontal segmentation frame based on the central horizontal wedge line information, and constructing a central vertical segmentation frame based on the central vertical wedge line information;
[0108] Step S22, segmenting the binarized picture into the central horizontal picture based on the central horizontal segmentation frame, and segmenting the binarized picture into the central vertical picture based on the central vertical segmentation frame;
[0109] In this embodiment, it should be noted that the central horizontal wedge line information may include the length and width of the central horizontal wedge line; and the central vertical wedge line information may include the length and width of the central vertical wedge line.
[0110] As an example, steps S21 to S22 include: obtaining the length and width of the center horizontal wedge line and the length and width of the center vertical wedge line corresponding to the center position, and constructing the center horizontal segmentation frame based on the length and width of the center horizontal wedge line, and constructing the center vertical segmentation frame based on the length and width of the center vertical wedge line, wherein the length refers to the length of the center horizontal wedge line / the center vertical wedge line, and the width refers to the maximum width of the center horizontal wedge line / the center vertical wedge line; based on the center horizontal segmentation frame, the center horizontal image is segmented in the binary image, and based on the center vertical segmentation frame, the center vertical image is segmented in the binary image, wherein the center horizontal segmentation frame includes the center horizontal wedge line and the coordinate axis corresponding to the center horizontal wedge line, and the center vertical segmentation frame includes the center vertical wedge line and the coordinate axis corresponding to the center vertical wedge line.
[0111] Step S23, performing cross segmentation on the binary image according to the center position to obtain a four-corner segmentation image;
[0112] Step S24, performing image segmentation on each of the four-corner segmentation images according to a preset segmentation ratio to obtain corresponding four-corner horizontal images;
[0113] Step S25 , performing geometric transformation on each of the four-corner horizontal images to obtain a corresponding four-corner vertical image.
[0114] As an example, steps S23 to S25 include: performing a cross-segmentation on the binary image according to the center position to obtain a four-corner segmentation map, wherein the four-corner segmentation map refers to four area images obtained by segmenting the binary image; after performing similarity detection on the binary image and obtaining the similar point set, constructing a center position mark frame, wherein the center position mark frame contains all similar points in the similar point set, obtaining the length and width of the center mark frame, and then constructing a four-corner segmentation frame proportional to the center mark frame according to a preset segmentation ratio, using the four-corner segmentation frame to segment the corresponding four-corner segmentation map to obtain a corresponding four-corner horizontal image, wherein the four-corner segmentation frame refers to a frame line including a cross wedge line and a coordinate axis corresponding to the cross wedge line in the corresponding four-corner segmentation map, and the preset segmentation ratio can be in the form of a percentage or a ratio, and the specific value can be set by oneself; and obtaining a corresponding four-corner vertical image by rotating and mirroring each of the four-corner horizontal images.
[0115] For example, suppose Figure 3 The length of the center mark box in is m, the width is n, and the preset segmentation ratio is 1:16. Then the length of the four-corner segmentation box is M = 16m, and the width is N = 16n. The four-corner segmentation image is segmented according to the 16m long and 16n wide frame line to obtain the horizontal images of each four corner, such as Figure 5 The upper left corner of the horizontal image is shown. Figure 5 After rotation and flipping, the vertical image in the upper left corner is obtained, such as Figure 6 shown.
[0116] The step of obtaining the starting coordinates and the ending coordinates of each wedge line includes:
[0117] Step S31, obtaining the top diverging endpoint of each wedge line, and using the coordinates of the top diverging endpoint as the starting coordinates;
[0118] Step S32: Acquire the bottom convergence endpoint of each of the wedge lines, and use the coordinates of the bottom convergence endpoint as the end coordinates.
[0119] As an example, steps S31 to S32 include: obtaining divergent lines in which each of the wedge lines is in a divergent form, searching for the top divergent endpoint in the divergent lines, and using the coordinates of the top divergent endpoint as the starting coordinates, wherein the top divergent endpoint means that there is no other endpoint above the endpoint, but there is other endpoint below; obtaining aggregated lines in which each of the wedge lines is in a aggregated form, searching for the bottom aggregated endpoint in the aggregated lines, and using the coordinates of the bottom aggregated endpoint as the ending coordinates, wherein the bottom aggregated endpoint means that there is no other endpoint below the endpoint, but there is other endpoint above it.
[0120] For example, Figure 4 As shown, it can be seen that the wedge line diverges upward from coordinate 12 and converges downward. When traversing the endpoints of each line between coordinates 5 and 12, it can be seen that there are no other endpoints above the line endpoint at coordinate 5, but there are other endpoints below it. In this case, coordinate 5 is used as the starting coordinate for detecting resolution. Similarly, when traversing the line endpoints from coordinate 12 to coordinate 20, it can be seen that there are no other endpoints below coordinate 20, but there are other endpoints above it. In this case, coordinate 20 is used as the ending coordinate for detecting resolution.
[0121] The step of locating the critical resolution coordinate between each of the starting coordinates and the corresponding ending coordinates includes:
[0122] Step S33, obtaining a set of corresponding wedge line numbers between each of the starting coordinates and the corresponding ending coordinates;
[0123] In step S34 , according to the coordinate sequence from each starting coordinate to the corresponding ending coordinate, the first target coordinate in the line number set having a line number less than a preset line number is searched, and the target coordinate is used as the resolution critical coordinate.
[0124] As an example, steps S33 to S34 include: detecting the number of lines corresponding to each coordinate point between each starting coordinate and the corresponding ending coordinate, and aggregating each line number into the end point line number set; according to the coordinate order from each starting coordinate to the corresponding ending coordinate, querying the first target coordinate in the line number set whose line number is less than the preset line number, and using the target coordinate as the resolution critical coordinate, wherein the preset line number can be set to the same line number as the starting coordinate.
[0125] For example, refer to Figure 4 It can be seen that, assuming that the preset number of lines is 9, the set of line numbers from the starting coordinate to the ending coordinate can be expressed as: {(5,9),(6,9),(7,9),(8,9),(9,9),(10,8),(11,8),
[0126] (12,8),(13,8),(14,7),(15,6),(16,5),(17,4),(18,4),(19,2),(20,1)}, it can be seen that the first line number less than 9 is coordinate 10, that is, the row where coordinate 10 is located is taken as the critical coordinate of the resolution.
[0127] The step of determining the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates includes:
[0128] Step S41, obtaining the camera magnification of the test camera;
[0129] In step S42 , a corresponding resolution value is generated according to the imaging magnification and each of the resolution critical coordinates.
[0130] As an example, steps S41 to S42 include: obtaining the camera magnification through the configuration information of the test camera; calculating the product between the camera magnification and each of the resolution critical coordinates, and using the product as the corresponding resolution value. Taking the center horizontal picture as an example, multiplying the camera magnification with the vertical coordinate corresponding to the resolution critical coordinate corresponding to the center horizontal picture, the obtained product is the center horizontal resolution value of the center horizontal picture. Similarly, the center vertical resolution value of the center vertical picture, the four corner horizontal resolution values of the four corner horizontal pictures, and the four corner vertical resolution values of the four corner vertical pictures can be calculated.
[0131] For example, refer to Figure 4 It can be seen that the first coordinate point corresponding to the critical resolution coordinate of the center horizontal image is 10. Assuming that the camera magnification of the test camera is 1:100, the center horizontal resolution value of the center horizontal image is 10*100=1000LP (line pairs) / mm (millimeter).
[0132] The present embodiment provides a resolution testing method, apparatus, device, and storage medium. The method includes first receiving a resolution test card image captured by a test camera, and finding a center position in the resolution test card image based on a preset center marker. The method then segments the resolution test card image based on the center position to obtain regional images, each of which includes at least one set of wedge lines. The method then obtains the starting and ending coordinates of each wedge line, and locates a critical resolution coordinate between each starting coordinate and the corresponding ending coordinate. The method then determines a resolution value for the regional image corresponding to each critical resolution coordinate based on each critical resolution coordinate, and uses each of the resolution values as the camera resolution of the test camera. This embodiment segments the image based on the center position of the image, and is not affected by the image imaging deviation, thereby achieving the purpose of being compatible with different image imaging differences. It overcomes the problem that due to process limitations, it is impossible to guarantee that the image imaging of each test camera can be displayed squarely, that is, the resolution test card will have deviations at different angles when shooting and imaging, resulting in inaccurate image capture, causing errors in the calculated resolution, and further leading to the technical defect of low accuracy of resolution detection. Therefore, the accuracy of the resolution is improved.
[0133] Example 2
[0134] The present application also provides a method for testing resolution. In the second embodiment of the method for testing resolution, refer to Figure 7 , the resolution testing method includes:
[0135] Step A10, obtaining the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate;
[0136] In step A20, each of the resolution values is converted proportionally according to the ratio between the resolution value and the corresponding coordinate interval length to obtain the corresponding true resolution value, and each of the true resolution values is used as the true camera resolution of the test camera.
[0137] In this embodiment, it should be noted that since the resolution value obtained in steps S10 to S40 is a standard value obtained by the test camera under a standard test environment, there will be certain difficulties in actual shooting, so the resolution test card picture taken will also be different. For example, the picture may be compressed or enlarged. At this time, the geometric conversion scheme in this embodiment can be adopted to calculate the true resolution value based on the resolution value, so that the true resolution value of the test camera can be quickly and accurately calculated in different actual shooting scenes, thereby improving the intelligence of the resolution detection. The test process of the true resolution can be referred to. Figure 8 shown.
[0138] As an example, steps A10 to A20 include: calculating the absolute value of the difference between each starting coordinate and the corresponding ending coordinate, where the absolute value of the difference is the length of the coordinate interval; obtaining the ratio between the resolution value and the corresponding coordinate interval length, and obtaining the real coordinate interval length, and performing geometric conversion on each resolution value based on the ratio and the real coordinate interval length to obtain the corresponding real resolution value, and using each real resolution value as the real camera resolution of the test camera.
[0139] For example, refer to Figure 4 , it can be seen that Figure 4 The standard resolution value obtained is 1000LP / mm, the starting coordinate is 5, the ending coordinate is 20, and the coordinate interval length is 15. Then the ratio between the resolution value and the coordinate interval length is 1000:15. If the actual coordinate interval length obtained is x, where x can be any positive number, representing the actual coordinate interval length of the resolution test card image taken in actual application, then the actual resolution value is (425 / 7)*x(LP / mm).
[0140] This embodiment provides a resolution testing method, apparatus, device, and storage medium. The method first obtains the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate; then, based on the ratio between the resolution value and the corresponding coordinate interval length, geometrically converts each resolution value to obtain the corresponding true resolution value, and uses each true resolution value as the true camera resolution of the test camera. This embodiment utilizes the geometric conversion method to achieve the purpose of calculating the true resolution based on the actual image. This overcomes the technical drawback that, due to differences in specifications, shooting pixels, and image quality between different test cameras, the corresponding captured resolution test card images may also differ. For example, images captured by some cameras may be compressed, resulting in certain errors in resolution detection during actual shooting. By eliminating the need for secondary testing using a resolution test card, the true resolution value can be calculated directly through geometric conversion, thereby improving the accuracy and efficiency of resolution detection and making resolution detection more intelligent.
[0141] Example 3
[0142] In addition, the present invention also provides a resolution testing device. Figure 9 As shown, the resolution testing device includes:
[0143] The center position finding module 10 is used to receive the image of the resolution test card captured by the test camera and find the center position in the image of the resolution test card according to a preset center mark diagram;
[0144] An image segmentation module 20 is configured to segment the image of the resolution test card according to the center position to obtain regional images, wherein the regional images contain at least one set of wedge lines;
[0145] a module 30 for finding the starting and ending coordinates, for obtaining the starting and ending coordinates of each wedge line, and locating the critical resolution coordinate between each starting coordinate and the corresponding ending coordinate;
[0146] The image resolution calculation module 40 is configured to determine the resolution value of the image region corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates, and use each of the resolution values as the camera resolution of the test camera.
[0147] Optionally, the resolution testing device is further used for:
[0148] Obtaining the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate;
[0149] According to the ratio between the resolution value and the corresponding coordinate interval length, each resolution value is converted proportionally to obtain the corresponding true resolution value, and each true resolution value is collectively used as the true camera resolution of the test camera.
[0150] Optionally, the center location search module 10 is further configured to:
[0151] Binarizing the image of the resolution test card to obtain a corresponding binary image;
[0152] Performing similarity detection on the binary image based on the preset center mark image to obtain a set of similar points;
[0153] An average value operation is performed on the similar point set to obtain a similar point average value, and a position corresponding to the similar point average value is used as the center position.
[0154] Optionally, the image segmentation module 20 is further configured to:
[0155] Acquire central horizontal wedge line information and central vertical wedge line information corresponding to the central position, and construct a central horizontal segmentation frame based on the central horizontal wedge line information, and construct a central vertical segmentation frame based on the central vertical wedge line information;
[0156] Segmenting the central horizontal picture from the binarized picture based on the central horizontal segmentation frame, and segmenting the central vertical picture from the binarized picture based on the central vertical segmentation frame;
[0157] According to the center position, cross-segmenting the binary image to obtain a four-corner segmentation image;
[0158] Performing image segmentation on each of the four-corner segmentation images according to a preset segmentation ratio to obtain corresponding four-corner horizontal images;
[0159] By performing geometric transformation on each of the four-corner horizontal images, corresponding four-corner vertical images are obtained.
[0160] Optionally, the module 30 for searching the starting coordinates and the ending coordinates is further configured to:
[0161] Obtaining the top diverging endpoints of each of the wedge lines, and using the coordinates of the top diverging endpoints as the starting coordinates;
[0162] The bottom convergence endpoint of each of the wedge lines is obtained, and the coordinates of the bottom convergence endpoint are used as the end coordinates.
[0163] Optionally, the module 30 for searching the starting coordinates and the ending coordinates is further configured to:
[0164] Obtaining a set of line numbers of corresponding wedge lines between each of the starting coordinates and the corresponding ending coordinates;
[0165] According to the coordinate sequence from each starting coordinate to the corresponding ending coordinate, the first target coordinate in the line number set whose line number is less than the preset line number is searched, and the target coordinate is used as the resolution critical coordinate.
[0166] Optionally, the image force value calculation module 40 is further configured to:
[0167] Obtaining the camera magnification of the test camera;
[0168] A corresponding resolution value is generated according to the imaging magnification and each of the resolution critical coordinates.
[0169] The resolution testing device provided in this application utilizes the resolution testing method described in the aforementioned embodiments to address the current technical issue of low resolution detection accuracy. Compared to the prior art, the resolution testing device provided in this application's embodiments achieves the same beneficial effects as the resolution testing method described in the aforementioned embodiments. Other technical features of the resolution testing device are the same as those disclosed in the aforementioned embodiments and are not further detailed here.
[0170] Example 4
[0171] The present application provides an electronic device, referring to Figure 10 The electronic equipment includes: test workstation G100, test camera G300, dark box G500; wherein, the test workstation G100 is used to control the test process and receive RTSP (Real Time Streaming Protocol, Real-time Streaming Protocol) streaming, imaging display, image processing, and resolution calculation; the test workstation G100 and the test camera G300 are connected through the test workstation's Ethernet port G110, the network cable G200, and the test camera's Ethernet port G310; the test camera G300 includes a test camera lens G320; the test camera lens G320 and the darkroom G500 are connected through a connector G400; the darkroom G500 is a light-proof darkroom used to provide the camera with an environment for taking pictures of the resolution test card, and includes an adjustable lamp G510, a lens focuser G520, and a resolution test card G600, wherein the adjustable lamp G510 refers to an adjustable light source that provides reasonable brightness for the test camera G300 to take pictures, and the lens focuser G520 is used to adjust the focus so that the test camera G300 can take pictures of the full-resolution test card G600.
[0172] Reference Figure 11The electronic device also includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the resolution testing method in the above-mentioned embodiment 1.
[0173] Figure 11 The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 11 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0174] like Figure 11 As shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0175] Typically, the following systems can be connected to the I / O interface: input devices such as a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices such as a magnetic tape, hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figures show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.
[0176] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0177] The electronic device provided in this application utilizes the resolution testing method of the aforementioned embodiment, resolving the current technical issue of low resolution detection accuracy. Compared to the prior art, the electronic device provided in this application embodiment achieves the same beneficial effects as the resolution testing method provided in the aforementioned embodiment. Other technical features of this electronic device are the same as those disclosed in the aforementioned embodiment and are not further detailed here.
[0178] It should be understood that various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in an appropriate manner.
[0179] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0180] Example 5
[0181] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the resolution testing method in the above-mentioned embodiment 1.
[0182] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. A more specific example of a computer-readable storage medium can include, but is not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, a system or a device or used in combination therewith. The program code contained in the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: an electric wire, an optical cable, RF (radio frequency), etc., or any suitable combination thereof.
[0183] The computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0184] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device is caused to: receive a resolution test card image captured by a test camera, and find a center position in the resolution test card image based on a preset center mark map; segment the resolution test card image based on the center position to obtain regional images, wherein the regional images contain at least one set of wedge lines; obtain the starting coordinates and ending coordinates of each wedge line, and locate a resolution critical coordinate between each starting coordinate and the corresponding ending coordinate; determine a resolution value of the regional image corresponding to each resolution critical coordinate based on each resolution critical coordinate, and use each resolution value as the camera resolution of the test camera.
[0185] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0186] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0187] The modules involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0188] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the aforementioned resolution testing method, resolving the current technical issue of low resolution testing accuracy. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this embodiment of the application are similar to those of the resolution testing method provided in the aforementioned embodiment, and are not further elaborated here.
[0189] Example 6
[0190] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned resolution testing method when executed by a processor.
[0191] The computer program product provided by this application solves the current technical problem of low accuracy in resolution testing. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of this application are the same as those of the resolution testing method provided by the above embodiments, and will not be elaborated here.
[0192] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for measuring resolution, characterized in that: The resolution testing method comprises: Receive a resolution test card image captured by a test camera, and find the center position in the resolution test card image according to a preset center mark map; Segmenting the image of the resolution test card according to the center position to obtain regional images, wherein the regional images include at least one set of wedge lines; Obtaining the starting coordinates and the ending coordinates of each of the wedge lines, and locating the critical resolution coordinate between each of the starting coordinates and the corresponding ending coordinates; Determining, according to each of the resolution critical coordinates, a resolution value of the area image corresponding to each of the resolution critical coordinates, and using each of the resolution values as the camera resolution of the test camera; The step of finding the center position in the image of the resolution test card according to the preset center mark diagram includes: Binarizing the image of the resolution test card to obtain a corresponding binary image; Performing similarity detection on the binary image based on the preset center mark image to obtain a set of similar points; An average value operation is performed on the similar point set to obtain a similar point average value, and a position corresponding to the similar point average value is used as the center position.
2. The method for testing resolution according to claim 1, wherein: After the step of determining the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates, and using each of the resolution values as the camera resolution of the test camera, the method further includes: Obtaining the length of the coordinate interval between each starting coordinate and the corresponding ending coordinate; According to the ratio between the resolution value and the corresponding coordinate interval length, each resolution value is converted proportionally to obtain the corresponding true resolution value, and each true resolution value is collectively used as the true camera resolution of the test camera.
3. The method for testing resolution according to claim 1, wherein: The regional pictures include a central horizontal picture, a central vertical picture, four corner horizontal pictures and four corner vertical pictures; The step of segmenting the image of the resolution test card according to the center position to obtain images of each region includes: Acquire central horizontal wedge line information and central vertical wedge line information corresponding to the central position, and construct a central horizontal segmentation frame based on the central horizontal wedge line information, and construct a central vertical segmentation frame based on the central vertical wedge line information; Segmenting the central horizontal picture from the binarized picture based on the central horizontal segmentation frame, and segmenting the central vertical picture from the binarized picture based on the central vertical segmentation frame; According to the center position, cross-segmenting the binary image to obtain a four-corner segmentation image; Performing image segmentation on each of the four-corner segmentation images according to a preset segmentation ratio to obtain corresponding four-corner horizontal images; By performing geometric transformation on each of the four-corner horizontal images, corresponding four-corner vertical images are obtained.
4. The method for testing resolution according to claim 1, wherein: The step of obtaining the starting coordinates and the ending coordinates of each wedge line comprises: Obtaining the top diverging endpoints of each of the wedge lines, and using the coordinates of the top diverging endpoints as the starting coordinates; The bottom convergence endpoint of each of the wedge lines is obtained, and the coordinates of the bottom convergence endpoint are used as the end coordinates.
5. The method for testing resolution as claimed in claim 1, wherein: The step of locating the critical resolution coordinate between each of the starting coordinates and the corresponding ending coordinates comprises: Obtaining a set of line numbers of corresponding wedge lines between each of the starting coordinates and the corresponding ending coordinates; According to the coordinate sequence from each starting coordinate to the corresponding ending coordinate, the first target coordinate in the line number set whose line number is less than the preset line number is searched, and the target coordinate is used as the resolution critical coordinate.
6. The method for testing resolution according to claim 1, wherein: The step of determining the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates includes: Obtaining the camera magnification of the test camera; A corresponding resolution value is generated according to the imaging magnification and each of the resolution critical coordinates.
7. A resolution testing device, characterized in that: The resolution testing device comprises: A center position search module is used to receive a resolution test card image captured by a test camera and find the center position in the resolution test card image based on a preset center mark map. The center position search module is also used to perform a binarization process on the resolution test card image to obtain a corresponding binarized image; perform a similarity detection on the binarized image based on the preset center mark map to obtain a set of similar points; perform an average calculation on the set of similar points to obtain an average value of the similar points, and use the position corresponding to the average value of the similar points as the center position; An image segmentation module is used to segment the image of the resolution test card according to the center position to obtain regional images, wherein the regional images contain at least one set of wedge lines; a module for finding the starting coordinates and the ending coordinates, for obtaining the starting coordinates and the ending coordinates of each of the wedge lines, and locating the critical resolution coordinates between each of the starting coordinates and the corresponding ending coordinates; The image resolution calculation module is used to determine the resolution value of the area image corresponding to each of the resolution critical coordinates according to each of the resolution critical coordinates, and use each of the resolution values as the camera resolution of the test camera.
8. An electronic device, characterized in that: The electronic device comprises: Test workstations, test cameras, darkrooms; and, at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the resolution testing method according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that The readable storage medium stores a program for implementing the resolution testing method, and the program for implementing the resolution testing method is executed by a processor to implement the steps of the resolution testing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for testing resolving power of camera
CN110611808A
Image analyzing apparatus and method
JP2006109315A