Method, apparatus, terminal device and storage medium for testing field of view angle of camera
By identifying the marking points on the test map card and calculating its distance on the captured image, combining the actual distance and diagonal length on the test map card, the camera's field of view angle is automatically calculated, and the problem of large errors and low accuracy caused by manual reading in the prior art is solved, and higher test accuracy is achieved.
Patent Information
- Application Number
- CN202210714890.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-06-22
AI Technical Summary
When testing the camera field angle, the prior art relies on manual reading of the scale value on the test image card, resulting in large errors and low accuracy.
By obtaining the captured image taken by the camera to be detected on the test image card, identifying the mark points in the image, calculating the distance between the mark points, and automatically computing the actual distance on the test image card and the diagonal length.
Reduces errors caused by manual measurement or reading data, and improves the accuracy of the camera's field of view angle test.
Smart Images

Figure CN115225890B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular, to a method, an apparatus, a terminal device, and a storage medium for testing the field of view angle of a camera. Background Art
[0002] The field of view angle (Field of Vision, FOV) refers to the included angle formed by two edges of the maximum range through which the image of the measured target can pass through the lens with the vertex of the lens of the optical instrument as the vertex, and it is an important performance parameter of the camera. The magnitude of its value determines the range of the maximum picture that the camera can capture. When testing the FOV of a camera, usually the camera to be detected is used to capture an FOV test chart to determine the field of view angle of the camera to be detected, and the measured field of view angle is compared with the field of view angle in the module specification of the camera to be detected to determine whether the camera to be detected meets the standard.
[0003] Currently, when determining the field of view angle of the camera to be detected, the test chart used usually has field of view angle scale values marked on it, and it is necessary for the tester to visually read the FOV value on the FOV test chart captured by the camera to be detected to determine the field of view angle of the camera to be detected, resulting in a large error and low accuracy in the measured field of view angle. Summary of the Invention
[0004] Embodiments of the present application disclose a method, an apparatus, a terminal device, and a storage medium for testing the field of view angle of a camera, which can accurately test the field of view angle of the camera and improve the test accuracy of the field of view angle of the camera.
[0005] Embodiments of the present application provide a method for testing the field of view angle of a camera, which is applied to a terminal device. The method includes:
[0006] Obtain a captured image obtained by the camera to be detected capturing a test chart, where the test chart includes a plurality of landmark points;
[0007] Identify each of the landmark points included in the captured image, and determine a first distance on the captured image between a first landmark point and a second landmark point, where the first landmark point and the second landmark point are on the same diagonal line of the test chart;
[0008] Determine a first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance and a second distance, where the second distance is the distance between the first landmark point and the second landmark point on the test chart;
[0009] Determine the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, where the diagonal length is the length of the diagonal where the first landmark point and the second landmark point are located on the test chart.
[0010] In one embodiment, identifying each of the landmark points included in the captured image and determining the first distance between the first landmark point and the second landmark point on the captured image includes:
[0011] Identify each of the landmark points included in the captured image, determine the first image coordinates of the first landmark point in the captured image, and the second image coordinates of the second landmark point in the captured image;
[0012] Determine the first distance between the first landmark point and the second landmark point on the captured image according to the first image coordinates, the second image coordinates, and the pixel size corresponding to the camera to be detected.
[0013] In one embodiment, determining the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance and the second distance includes:
[0014] Determine the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance, the second distance, and the focal length corresponding to the camera to be detected.
[0015] In one embodiment, determining the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance, the second distance, and the focal length of the camera to be detected includes:
[0016] Determine the third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected;
[0017] Determine the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance and the third distance.
[0018] In one embodiment, determining the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length includes:
[0019] Determine the first ratio between the second distance and the diagonal length;
[0020] Determine the second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle, where the second ratio between the first field of view angle and the second field of view angle is equal to the first ratio.
[0021] In one embodiment, before determining the first field of view angles corresponding to the first landmark point and the second landmark point according to the first distance and the second distance, the method further includes:
[0022] Receiving a second distance input by a tester; or,
[0023] Determining the second distance according to the positions of the first landmark point and the second landmark point on the test chart;
[0024] In one embodiment, before determining the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, the method further includes:
[0025] Receiving a diagonal length input by a tester; or,
[0026] Determining the diagonal length according to the chart size of the test chart.
[0027] In one embodiment, the test chart is fixed and vertically located directly in front of a transmissive light box, where the transmissive light box is configured to irradiate light onto the test chart;
[0028] The optical axis center of the camera to be detected is perpendicular to the plane where the test chart is located. The test chart is rectangular, and the image frame of the captured image by the camera to be detected is aligned with the four corners of the test chart.
[0029] An embodiment of the present application provides a device for testing the field of view angle of a camera, and the device includes:
[0030] An image acquisition module, configured to acquire a captured image obtained by a camera to be detected taking a picture of a test chart, where the test chart includes a plurality of landmark points;
[0031] A landmark point recognition module, configured to recognize each of the landmark points included in the captured image, and determine a first distance between a first landmark point and a second landmark point on the captured image, where the first landmark point and the second landmark point are on the same diagonal of the test chart;
[0032] A field of view angle determination module, configured to determine the first field of view angles corresponding to the first landmark point and the second landmark point according to the first distance and the second distance, where the second distance is the distance between the first landmark point and the second landmark point on the test chart; and determine the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, where the diagonal length is the length of the diagonal of the test chart where the first landmark point and the second landmark point are located.
[0033] In one embodiment, the device further includes a receiving module configured to receive the second distance input by a tester or the diagonal length input by the tester.
[0034] In one embodiment, the fiducial point recognition module is configured to recognize each of the fiducial points included in the captured image, determine the first image coordinates of the first fiducial point in the captured image, and the second image coordinates of the second fiducial point in the captured image; and determine a first distance between the first fiducial point and the second fiducial point on the captured image according to the first image coordinates, the second image coordinates, and the pixel size corresponding to the camera to be detected.
[0035] In one embodiment, the field of view angle determination module is configured to determine a first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance, the second distance, and the focal length of the camera to be detected, including: determining a third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected; and determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the third distance.
[0036] In one embodiment, the field of view angle determination module is configured to determine a first ratio between the second distance and the diagonal length; and determine a second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle, wherein a second ratio between the first field of view angle and the second field of view angle is equal to the first ratio.
[0037] In one embodiment, the field of view angle determination module is configured to determine the second distance according to the positions of the first fiducial point and the second fiducial point on the test chart; or determine the diagonal length according to the size of the test chart.
[0038] An embodiment of the present application provides a terminal device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the steps of the method for testing the field of view angle of a camera provided in any embodiment of the present application are implemented.
[0039] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for testing the field of view angle of a camera provided in any embodiment of the present application are implemented.
[0040] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0041] In the embodiments of the present application, by obtaining a captured image obtained by a camera to be detected photographing a test chart, identifying each fiducial point included in the captured image, and determining a first distance on the captured image between a first fiducial point and a second fiducial point that are on the same diagonal line of the test chart, a first field of view angle corresponding to the first fiducial point and the second fiducial point is determined according to the first distance and a second distance between the first fiducial point and the second fiducial point on the test chart, and then a second field of view angle of the camera to be detected is determined according to the first field of view angle, the second distance, and the length of the diagonal line on which the first fiducial point and the second fiducial point are located on the test chart. By implementing this method, the field of view angle of the camera to be detected can be automatically calculated according to the distance on the captured image between two fiducial points on the same diagonal line of the test chart, the distance between these two fiducial points on the test chart, and the length of the diagonal line on which these two fiducial points are located on the test chart. Furthermore, the error caused by manual measurement or data reading is avoided, and an accurate test value of the field of view angle of the camera to be detected can be obtained, improving the test accuracy of the field of view angle of the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained according to these drawings.
[0043] Figure 1a FIG. is a schematic diagram of an application scenario of a method for testing the field of view angle of a camera in an embodiment;
[0044] Figure 1b FIG. is a schematic example diagram of a test chart in an embodiment;
[0045] Figure 1c FIG. is an example diagram of a first field of view angle and a second field of view angle in an embodiment;
[0046] Figure 2 FIG. is a schematic flowchart of a method for testing the field of view angle of a camera in an embodiment;
[0047] Figure 3a FIG. is a schematic flowchart of another method for testing the field of view angle of a camera in an embodiment;
[0048] Figure 3b FIG. is a schematic diagram of establishing a plane rectangular coordinate system on a captured image in an embodiment;
[0049] Figure 3c FIG. is a schematic diagram of the imaging principle of a camera to be detected photographing a test chart in an embodiment;
[0050] Figure 4 Schematic structural diagram of a device for testing the field of view angle of a camera in an embodiment;
[0051] Figure 5 Schematic structural diagram of another device for testing the field of view angle of a camera in an embodiment;
[0052] Figure 6 Schematic structural diagram of a terminal device in an embodiment. Specific implementation manners
[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0054] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.
[0055] The embodiments of the present application disclose a method, device, terminal device, and storage medium for testing the field of view angle of a camera, which can accurately test the field of view angle of the camera. The following is a detailed description in conjunction with the accompanying drawings.
[0056] The method for testing the field of view angle of a camera provided by the present application can be applied to an application environment as Figure 1a shown. Figure 1a Schematic diagram of an application scenario of a method for testing the field of view angle of a camera in an embodiment. As Figure 1a shown, the terminal device 102 can establish a communication connection with the camera 104 and perform data exchange. The ways to establish the communication connection may include, but are not limited to, network connection and wired connection, etc.; the camera 104 can capture a captured image of the test chart 106; the test chart 106 is used to test the field of view angle of the camera 104. It should be understood that Figure 1a the terminal device 102 in Figure 1a is only connected to one camera 104, and
[0057] The terminal device 102 may include a smart phone, a wearable device, a vehicle-mounted terminal, a portable terminal, a Personal Digital Assistant (PDA), a Personal Media Player (PMP) device, a laptop computer, a Note Pad, a Wireless Broadband (Wibro) terminal, a tablet personal computer (PC), a smart PC, etc., and no specific limitation is made thereto.
[0058] The camera 104 may be composed of a lens, an image sensor, and a power source. The camera may include, but is not limited to, a digital camera, an analog camera, etc. The camera 104 may be configured on a mobile phone, a video camera, a tablet computer, or may be only an independent camera, and no specific limitation is made thereto.
[0059] The test chart 106 may be rectangular in shape and may be a transmissive chart made of a transparent film material. The test chart may include a plurality of fiducial points. As an optional implementation manner, a grid pattern may be provided on the test chart 106. Figure 1b It is a style example diagram of a test chart in an embodiment. As Figure 1b shown, the test chart may be composed of 13 vertical lines and 10 horizontal lines to form a grid pattern. The line width is 0.5 mm, the line spacing between the vertical lines and the horizontal lines is 20 mm, the total length of the test chart is 240 mm, the total width is 180 mm, and the lines may be in the style of solid black lines.
[0060] Optionally, the fiducial points on the test chart may be patterns such as circles, triangles, squares, etc., and no specific limitation is made thereto. As Figure 1b shown, the test chart may include 4 fiducial points A, B, C, and D in the style of cross marking lines. These 4 fiducial points are respectively located on two diagonals of the test chart and are symmetrically distributed with respect to the center point of the test chart. Among them, the width of the cross marking line is 4 mm and the length is 16 mm; the center of the upper left fiducial point A is 30 mm away from the upper edge line of the test chart and 40 mm away from the left edge line of the test chart; the center of the lower right fiducial point D is 30 mm away from the lower edge line of the test chart and 40 mm away from the right edge line of the test chart. Exemplarily, points E and F are respectively the two end points of the diagonal EF on the test chart, and the fiducial points B and C are located on the diagonal EF.
[0061] As an alternative embodiment, the ratio of the length to the width of the test chart can be set according to the preview screen captured by the camera. Exemplarily, the ratio of the captured image of a mobile phone camera is usually 4:3 or 16:9. When testing the field of view angle of a mobile phone camera, a test chart with an aspect ratio of 4:3 or 16:9 can be used, corresponding to the ratio of the preview screen captured by the mobile phone camera to be detected. It should be noted that the chart size, the number of straight lines, the straight line spacing, the size of the fiducial points, etc. of the test chart described in the above embodiments are only used to illustrate the test chart, and are not used to limit the specific test chart.
[0062] Before testing the field of view angle of the camera to be detected, the tester needs to adjust the positions of the test chart and the camera to be detected. The tester can fix and erect the test chart directly in front of the transmissive light box, and adjust the shooting angle of the camera to be detected so that the optical axis center of the camera to be detected is perpendicular to the plane where the test chart is located; optionally, the camera can be placed on a slide rail, and the terminal device controls the movement of the camera so that the image screen of the captured image of the camera to be detected is aligned with the four corners of the test chart. Among them, the transmissive light box is used to irradiate light on the test chart to make the captured image obtained by the camera to be detected clearer. The color temperature and illuminance of the light source in the transmissive light box can be adjusted according to the test needs, and this is not limited. Optionally, if there is a card slot for placing the test chart in the transmissive light box, the tester can put the test chart into this card slot without additionally fixing the position of the test chart.
[0063] The following explains the terms involved in the embodiments of the present application:
[0064] First fiducial point, second fiducial point: The first fiducial point and the second fiducial point are fiducial points on the same diagonal line of the test chart. Taking Figure 1b as an example, the first fiducial point and the second fiducial point can be fiducial point B and fiducial point C, or fiducial point A and fiducial point D;
[0065] First field of view angle: The first field of view angle refers to the angle formed by taking the lens of the camera to be detected as the vertex, connecting the vertex to the first fiducial point and the second fiducial point respectively to form two line segments, and the angle formed by the vertex and these two line segments; taking Figure 1c as an example, select fiducial point C and fiducial point B on the diagonal line EF of the test chart as the first fiducial point and the second fiducial point respectively, denote the center point of the lens of the camera to be detected as point O, connect point O to the first fiducial point C and the second fiducial point B respectively, and point O and line segment OC, line segment OB form ∠BOC, that is, the first field of view angle θ1 corresponding to the first fiducial point and the second fiducial point;
[0066] Second field of view angle: The second field of view angle refers to an angle with the lens of the camera to be detected as the vertex. The vertex is respectively connected to the two endpoints of the diagonal line where the first landmark point and the second landmark point are located to form two line segments. The angle formed by the vertex and these two line segments is the second field of view angle corresponding to the camera to be detected. Taking Figure 1c as an example, the first landmark point C and the second landmark point B are located on the diagonal line EF. The point O is respectively connected to the point F and the point E. The point O and the line segments OF and OE form ∠EOF, that is, the second field of view angle θ2 corresponding to the camera to be detected.
[0067] In one embodiment, Figure 2 is a schematic flow chart of a method for testing the field of view angle of a camera in one embodiment. As Figure 2 shown, this method is applied to the above terminal device, and this method includes:
[0068] 201. Obtain the captured image obtained by the camera to be detected when shooting the test chart.
[0069] In one embodiment, before step 201, the camera to be detected may first establish a communication connection with the terminal device. The communication connection method may include wired connection or wireless connection, etc. There is a certain distance between the test chart and the camera to be detected, and this distance is related to the... of the camera to be detected.
[0070] As an alternative implementation, after the terminal device establishes a communication connection with the camera to be monitored, the terminal device may automatically send a shooting instruction to the camera to be detected, or may display a connection success prompt on the terminal device to prompt the tester to initiate a shooting operation on the terminal device. The terminal device may respond to this shooting operation and send a shooting instruction to the camera to be detected. Among them, the shooting instruction can be used to drive the camera to be detected to shoot the test chart and generate a captured image. Further, after the camera to be detected generates a captured image, the camera to be detected may send the captured image to the terminal device, so that the terminal device can obtain the captured image obtained by the camera to be detected when shooting the test chart, and determine the field of view angle of the camera to be detected according to this captured image.
[0071] 202. Identify each landmark point included in the captured image, and determine the first distance between the first landmark point and the second landmark point on the captured image.
[0072] The terminal device can extract the image features of the captured image, identify each fiducial point in the captured image based on the image features, and obtain the image coordinates of each fiducial point in the captured image. The first fiducial point and the second fiducial point can be selected from the identified fiducial points, and the first distance between the first fiducial point and the second fiducial point on the captured image is determined. This first distance is the distance between the first fiducial point and the second fiducial point in the imaging system of the camera to be detected. Among them, the first fiducial point and the second fiducial point are on the same diagonal line of the test chart.
[0073] As an alternative implementation, when selecting the first fiducial point and the second fiducial point, any diagonal line on the test chart in the captured image can be first selected, and any two fiducial points on this diagonal line can be selected as the first fiducial point and the second fiducial point.
[0074] 203. Determine the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance.
[0075] The second distance can be the distance between the first fiducial point and the second fiducial point on the test chart. The terminal device can determine the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance.
[0076] As an alternative implementation, the size of the first field of view angle is related to the distance between the first fiducial point and the second fiducial point on the test chart and the distance between the camera to be detected and the test chart, as shown in Equation 2-1.
[0077]
[0078] θ1 is the first field of view angle, C1 is the distance between the first fiducial point and the second fiducial point on the test chart (i.e., the second distance), and d is the distance between the lens to be detected and the test chart.
[0079] As Figure 1c shown, for example, points C and B are selected as the first fiducial point and the second fiducial point respectively, ∠BOC is the first field of view angle θ1, the length of the line segment BC connecting the first fiducial point C and the fiducial point B is C1; the distance from point O to the test chart is d.
[0080] In the embodiments of the present application, the distance d between the lens to be detected and the test chart can be determined according to the first distance and the second distance. Therefore, the terminal device can determine the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance.
[0081] 204. Determine the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length.
[0082] Wherein, the diagonal length is the length of the diagonal where the first fiducial point and the second fiducial point are located on the test chart card.
[0083] As Figure 1c shown, by way of example, taking the first fiducial point and the second fiducial point as fiducial point C and fiducial point B respectively, ∠EOF is the second field of view angle θ2 corresponding to the camera to be detected.
[0084] Since the aspect ratio of the figure formed by the four fiducial points A, B, C, and D as vertices is equal to the aspect ratio of the test chart card, therefore, the first field of view angle θ1 corresponding to the first fiducial point and the second fiducial point and the second field of view angle θ2 corresponding to the camera to be detected are in a geometric ratio relationship, as shown in Formula 2-2,
[0085]
[0086] Wherein, as Figure 1c shown, by way of example, taking the first fiducial point and the second fiducial point as fiducial point C and fiducial point B respectively, the first field of view angle θ1 is ∠BOC, the second distance C1 is the length of the line segment BC, the diagonal length C2 is the length of the line segment EF, the second field of view angle θ2 is ∠EOF, the angle ratio of ∠BOC to ∠EOF is the same as the length ratio of the line segment BC to the line segment EF. That is, the length ratio of the line segment BC to the line segment EF can be calculated first, and then the length ratio is multiplied by the angle of ∠BOC to obtain the angle of ∠EOF, that is, the second field of view angle θ2.
[0087] Therefore, in the embodiment of the present application, the terminal device can determine the second field of view angle θ2 corresponding to the camera to be detected according to the first field of view angle θ1, the second distance C1, and the diagonal length C2.
[0088] In one embodiment, after determining the second field of view angle corresponding to the camera to be detected, the terminal device can determine whether the second field of view angle corresponding to the camera to be detected is within the error range of the field of view angle threshold, so as to determine whether the field of view angle test of the camera to be detected passes.
[0089] As an alternative embodiment, the field of view angle threshold includes the field of view angle value specified in the module specification of the camera to be detected. The field of view angle value specified in the module specification of the camera to be detected can be determined by the tester according to the module specification of the camera to be detected and input into the terminal device. If the second field of view angle corresponding to the camera to be detected is within the error range of the specified field of view angle value, it is determined that the second field of view angle of the camera to be detected is consistent with the field of view angle value specified in the module specification, and the field of view angle test of the camera to be detected passes; if the second field of view angle corresponding to the camera to be detected is not within the error range of the specified field of view angle value, it is determined that the field of view angle of the camera to be detected is not consistent with the field of view angle value specified in the module specification, and the field of view angle test of the camera to be detected fails, further indicating that the camera to be detected needs to be improved and optimized; the error range can be measured by experiments and is not specifically limited herein. By implementing this embodiment, it is possible to determine whether the measured value of the field of view angle of the camera to be detected meets the standard, and at the same time taking the test error into account, improving the reliability of the test result.
[0090] In one embodiment, after determining the second field of view angle corresponding to the camera to be detected, the terminal device may execute step 202 to 204 one or more times, select the diagonals on the test chart that have not been selected in step 202, and select any two fiducial points on the diagonal as a new set of first fiducial point and second fiducial point, so as to obtain multiple second field of view angles corresponding to the camera to be detected.
[0091] In one embodiment, after determining the second field of view angle corresponding to the camera to be detected, the tester may replace one or more test charts with the same aspect ratio as the captured image but different sizes. The terminal device executes step 201 to 204 one or more times to obtain multiple second field of view angles corresponding to the camera to be detected.
[0092] In one embodiment, after determining the second field of view angle corresponding to the camera to be detected, the terminal device changes the aspect ratio of the captured image of the camera to be detected one or more times. The tester replaces the test chart corresponding to the aspect ratio, and the terminal device controls the camera to be detected to move so that the image frame of the captured image of the camera to be detected is aligned with the four corners of the test chart, and then executes step 201 to 204 one or more times to obtain multiple second field of view angles corresponding to the camera to be detected.
[0093] As an alternative implementation, the terminal device can screen and process multiple second field of view angles corresponding to the camera to be detected, so as to determine the target second field of view angle value of the camera to be detected; for example, abnormal field of view angle values among the multiple second field of view angles corresponding to the camera to be detected can be excluded, and then the average value of the remaining multiple second field of view angles is calculated, and this average value is used as the target second field of view angle value of the camera to be detected finally, so as to reduce the error in testing the field of view angle of the camera to be detected. Further, the terminal device can compare the finally determined field of view angle value of the camera to be detected with the field of view angle threshold, and then determine whether the field of view angle test of the camera to be detected passes, improving the accuracy of the field of view angle test result of the camera to be detected.
[0094] By implementing the above method, the test value of the field of view angle of the camera to be detected can be automatically obtained according to the distance between two landmark points on the same diagonal line of the test chart in the captured image, the distance between these two landmark points on the test chart, and the length of the diagonal line where these two landmark points are located on the test chart, avoiding errors caused by manual measurement or data reading, and improving the test accuracy of the camera field of view angle.
[0095] In one embodiment, Figure 3a FIG. is a schematic flowchart of another method for testing the field of view angle of a camera in one embodiment. As Figure 3a shown, this method is applied to the above terminal device and includes:
[0096] 301. Obtain a captured image obtained by the camera to be detected shooting a test chart.
[0097] As an alternative implementation, after step 301, the terminal device can also input the obtained captured image into a camera distortion analysis model, and analyze the bending degree of the straight line on the test chart in the captured image through the camera distortion analysis model to determine the distortion value of the camera to be detected, that is, the degree of distortion of the imaging of the camera to be detected. In the embodiment of the present application, the terminal device drives the camera to be detected to automatically shoot the test chart to obtain a captured image, can determine the field of view angle of the camera to be detected according to the landmark points of the test chart in the captured image, and determine the distortion value of the camera to be detected according to the straight line of the test chart in the captured image. Shooting once can complete the field of view angle and distortion value of the camera to be detected, improving the test efficiency of the camera.
[0098] 302. Identify each landmark point included in the captured image, and determine the first distance between the first landmark point and the second landmark point in the captured image.
[0099] In one embodiment, the terminal device can identify each fiducial point included in the captured image, determine the first image coordinates of the first fiducial point in the captured image, and the second image coordinates of the second fiducial point in the captured image, and determine the first distance between the first fiducial point and the second fiducial point on the captured image according to the first image coordinates, the second image coordinates, and the pixel size corresponding to the camera to be detected.
[0100] As an alternative implementation, Figure 3b is a schematic diagram of establishing a plane rectangular coordinate system on a captured image in an embodiment. As Figure 3b shown, the terminal device can establish a plane rectangular coordinate system on the captured image, with the vertex F at the lower left corner of the captured image as the origin of the plane rectangular coordinate system. At the origin F, the X-axis and the Y-axis are respectively established in the horizontal direction and the vertical direction. The X-axis and the Y-axis intersect at the origin F, and scales are divided on the X-axis and the Y-axis at the same interval. After identifying the fiducial points, exemplarily, the fiducial point C and the fiducial point B can be selected as the first fiducial point and the second fiducial point respectively. The terminal device can determine the first image coordinates (x1, y1) of the first fiducial point C and the second image coordinates (x2, y2) of the second fiducial point B according to the positions of the first fiducial point C and the second fiducial point B in the captured image.
[0101] Further, first, according to the first image coordinates (x1, y1) and the second image coordinates (x2, y2), calculate the distance between the first fiducial point C and the second fiducial point B in the plane rectangular coordinate system of the captured image, and then multiply the distance in the plane rectangular coordinate system by the pixel size corresponding to the camera to be detected to obtain the first distance. The first distance between the first fiducial point C and the second fiducial point B on the captured image can be determined according to Formula 3-1, that is,
[0102]
[0103] where L1 is the first distance and Pixel Size is the pixel size corresponding to the camera to be detected.
[0104] As an alternative implementation, the pixel size corresponding to the camera to be detected can be determined by the tester according to the module specification of the camera to be detected and input into the terminal device.
[0105] 303. Obtain the second distance between the first fiducial point and the second fiducial point on the test chart.
[0106] In one embodiment, before step 304, first obtain the second distance between the first fiducial point and the second fiducial point on the test chart.
[0107] As an alternative implementation, the terminal device may receive a second distance input by a tester. The tester may manually measure the second distance between the first marker point and the second marker point on the test chart and input the second distance into the terminal device.
[0108] As an alternative implementation, the terminal device may determine the second distance according to the positions of the first marker point and the second marker point on the test chart. As Figure 1b shown, when the shape of the test chart is rectangular, the terminal device may first determine the diagonal length of the test chart according to the length and width of the test chart. Exemplarily, the terminal device may select Figure 1b the marker points C and B in it as the first marker point and the second marker point respectively.
[0109] When the first marker point and the second marker point are symmetrically distributed about the center of the test chart, the terminal device determines the straight-line distance CF between the first marker point C and the lower left vertex F of the test chart according to the distances from the first marker point C to the two side lines of the test chart, or determines the straight-line distance BE between the second marker point B and the upper right vertex E of the test chart according to the distances from the second marker point B to the two side lines of the test chart. Since the first marker point C, the second marker point B, and the lower left vertex F and the upper right vertex E are on the same diagonal line, the second distance can be obtained according to Formula 3-2.
[0110] L2 = L3 - L4×2 (Formula 3-2)
[0111] As shown in Formula 3-2, L2 is the second distance, L3 is the diagonal length, and L4 is the straight-line distance CF between the first marker point C and the lower left vertex F of the test chart, or the straight-line distance BE between the second marker point B and the upper right vertex E of the test chart.
[0112] When the first marker point and the second marker point are asymmetrically distributed about the center of the test chart, the terminal device determines the straight-line distance CF between the first marker point C and the lower left vertex F of the test chart according to the distances from the first marker point C to the two side lines of the test chart, and determines the straight-line distance BE between the second marker point B and the upper right vertex E of the test chart according to the distances from the second marker point B to the two side lines of the test chart. Since the first marker point C, the second marker point B, and the lower left vertex F and the upper right vertex E are on the same diagonal line, the second distance can be obtained according to Formula 3-3.
[0113] L2 = L3 - L4 - L5 (Formula 3-3)
[0114] As shown in Formula 3-3, L2 is the second distance, L3 is the diagonal length, L4 is the straight-line distance CF between the first landmark point C and the lower-left vertex F of the test chart, and L5 is the straight-line distance BE between the second landmark point B and the upper-right vertex E of the test chart.
[0115] 304. Determine the first field of view angles corresponding to the first landmark point and the second landmark point according to the first distance, the second distance, and the focal length corresponding to the camera to be detected.
[0116] In one embodiment, the terminal device may first determine the third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected; then determine the first field of view angles corresponding to the first landmark point and the second landmark point according to the first distance and the third distance.
[0117] As an optional implementation manner, the focal length corresponding to the camera to be detected may be determined by a tester according to the module specification of the camera to be detected and input into the terminal device.
[0118] Figure 3c It is a schematic diagram of the imaging principle of a test chart photographed by a camera to be detected in one embodiment. As Figure 3c shown, the camera to be detected photographs the test chart to obtain an inverted and reduced image, and there is where H is the height of the object to be photographed, d is the distance from the object to be photographed to the lens, f is the focal length of the lens, and h is the height of the image.
[0119] In the embodiments of the present application, the second distance L2 may be used as the height H of the object to be photographed, the first distance L1 may be used as the height h of the image, and the third distance may be used as the distance d from the object to be photographed to the lens. According to Formula 3-4, the second distance may be multiplied by the focal length corresponding to the camera to be detected and then divided by the first distance to determine the third distance d, that is
[0120]
[0121] The terminal device can quickly obtain the distance between the camera to be detected and the test chart by using Formula 3-5, without the tester manually measuring the distance between the camera to be detected and the test chart, avoiding the errors caused by manual measurement and improving the test accuracy of the field of view angle of the camera; when it is necessary to perform multiple field of view angle tests on the camera to be detected, or perform field of view angle tests on multiple cameras to be detected, there is no need for the tester to measure the distance between the two after adjusting the positions of the camera to be detected and the test chart each time, improving the efficiency of testing the field of view angle of the camera.
[0122] After calculating the third distance, the first field of view angle corresponding to the first landmark and the second landmark can be determined according to the first distance, the third distance, and the field of view angle calculation formula (Formula 2-1), that is,
[0123]
[0124] where FOV1 is the first field of view angle corresponding to the first landmark and the second landmark, L2 is the distance between the first landmark and the second landmark on the test chart, that is, the second distance; d is the distance between the lens to be detected and the test chart, that is, the third distance.
[0125] 305. Obtain the length of the diagonal line where the first landmark and the second landmark on the test chart are located.
[0126] In one embodiment, before step 306, first obtain the length of the diagonal line where the first landmark and the second landmark on the test chart are located, that is, the distance between the two endpoints of the diagonal line where the first landmark and the second landmark are located.
[0127] As an alternative implementation, the terminal device can receive the diagonal length input by the tester. The tester can manually measure the diagonal length of the test chart and input the diagonal length into the terminal device.
[0128] As an alternative implementation, the terminal device can determine the diagonal length according to the chart size of the test chart. Exemplarily, when the shape of the test chart is rectangular, according to the Pythagorean theorem, the square of the diagonal length is equal to the sum of the square of the length and the square of the width. Therefore, the terminal device can determine the diagonal length of the test chart according to the width and height of the test chart, as shown in Formula 3-7,
[0129]
[0130] where L3 is the diagonal length, and a and b are the length and width of the test chart respectively.
[0131] 306. Determine the first ratio between the second distance and the diagonal length.
[0132] In one embodiment, the second distance can be divided by the diagonal length to obtain the first ratio between the second distance and the diagonal length
[0133] 307. Determine the second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle.
[0134] In the prior art, when testing the field of view angle of a camera, the test chart used is marked with the field of view angle scale value. The field of view angle value of the camera to be detected is obtained by manually reading the field of view angle scale values corresponding to the four corners of the image frame in the captured image. Among them, the image of the test chart captured in the captured image is less than or equal to the size of the actual test chart; or, by manually measuring the distance from the lens to be detected to the test chart and the length of the diagonal of the test chart in the captured image, and then calculating the field of view angle value of the camera to be detected.
[0135] In the embodiment of the present application, the test chart is composed of straight lines and marking points, and no field of view angle scale is set; by aligning the image frame of the captured image with the four corners of the test chart, so that the image of the test chart captured in the captured image is equal to the size of the actual test chart, the second field of view angle corresponding to the camera to be detected can be automatically calculated without manual data measurement, improving the efficiency and accuracy of testing the field of view angle of the camera. Further, when the test chart is rectangular, the field of view angle of the camera to be detected can be determined by determining the field of view angles corresponding to the two endpoints of a diagonal of the test chart.
[0136] In one embodiment, the terminal device can determine the second field of view angle corresponding to the camera to be detected according to the first ratio the first field of view angle FOV1 and formula 2-2, as shown in formula 3-8,
[0137]
[0138] wherein, FOV1 is the first field of view angle corresponding to the first marking point and the second marking point; L2 is the second distance, that is, the distance between the first marking point and the second marking point on the test chart; L3 is the length of the diagonal where the first marking point and the second marking point are located, that is, the distance between the two endpoints of the diagonal where the first marking point and the second marking point are located; FOV2 is the field of view angle corresponding to the two endpoints of the diagonal where the first marking point and the second marking point are located, that is, the second field of view angle corresponding to the camera to be detected.
[0139] Further, as shown in formula 3-9, the first field of view angle corresponding to the first marking point and the second marking point can be multiplied by the length of the diagonal where the first marking point and the second marking point are located, and then divided by the distance between the first marking point and the second marking point on the test chart, so as to obtain the second field of view angle FOV2 corresponding to the camera to be detected.
[0140]
[0141] By implementing the above method, the shooting distance between the camera to be detected and the test chart can be determined first according to the virtual distances and actual distances of two landmark points on the same diagonal line in the captured image and the test chart, in combination with the focal length corresponding to the camera to be detected; then the field angles corresponding to the first landmark point and the second landmark point can be calculated based on the virtual distance and the shooting distance; furthermore, based on the ratio between the field angle and the ratio of the actual distance between two landmark points on the same diagonal line in the test chart to the length of this diagonal line, the field angle corresponding to the camera to be detected can be automatically calculated, without the need to manually read the field angle values corresponding to the four corners of the image frame in the captured image to obtain the field angle value of this camera, nor the need to manually measure the distance between the camera to be detected and the test chart, which can reduce the error in the test of the camera field angle caused by human operation and improve the reliability of the test result of the camera field angle.
[0142] It should be understood that although Figure 2 or Figure 3a the steps in the flowchart of Figure 2 or 3a are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 at least a part of the steps in Figure 2 or 3a may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential either, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0143] The method for testing the field angle of a camera in the embodiments of the present application is described above. Next, the device for testing the field angle of a camera in the embodiments of the present application will be described.
[0144] Figure 4 is a schematic structural diagram of a device for testing the field angle of a camera in an embodiment. As Figure 4 shown, the device 400 for testing the field angle of a camera may include an image acquisition module 401, a landmark point recognition module 402, and a field angle determination module 403.
[0145] The image acquisition module 401 is configured to acquire a captured image obtained by the camera to be detected shooting a test chart, where the test chart includes multiple landmark points.
[0146] The landmark point recognition module 402 is configured to recognize each landmark point included in the captured image and determine the first distance on the captured image between the first landmark point and the second landmark point, where the first landmark point and the second landmark point are on the same diagonal line of the test chart.
[0147] The field of view angle determination module 403 is configured to determine the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance and the second distance, where the second distance is the distance between the first landmark point and the second landmark point on the test chart; and determine the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, where the diagonal length is the length of the diagonal on which the first landmark point and the second landmark point are located in the test chart.
[0148] It should be noted that for the specific implementation process of this embodiment, reference may be made to the specific implementation process of the above method embodiment, which will not be elaborated here.
[0149] It can be seen that by implementing the above embodiments, it is possible to control the camera to be detected to automatically capture an image of the test chart, and automatically calculate the test value of the field of view angle of the camera to be detected according to the virtual distance between two landmark points on the captured image that are on the same diagonal of the test chart, the actual distance between these two landmark points on the test chart, and the length of the diagonal on which these two landmark points are located on the test chart, reducing the error caused by manual measurement or data reading, and improving the test accuracy of the field of view angle of the camera.
[0150] Figure 5 It is a schematic structural diagram of a device for testing the field of view angle of a camera in an embodiment. As Figure 5 shown, the device 400 for testing the field of view angle of a camera further includes a receiving module 404 in addition to the image acquisition module 401, the landmark point recognition module 402, and the field of view angle determination module 403.
[0151] In some embodiments, the receiving module 404 may be configured to receive the second distance input by the tester or receive the diagonal length input by the tester.
[0152] In some embodiments, the landmark point recognition module 402 is further configured to identify each landmark point included in the captured image, determine the first image coordinate of the first landmark point in the captured image, and the second image coordinate of the second landmark point in the captured image; and determine the first distance between the first landmark point and the second landmark point on the captured image according to the first image coordinate, the second image coordinate, and the pixel size corresponding to the camera to be detected.
[0153] In some embodiments, the field of view angle determination module 403 is further configured to determine the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance, the second distance, and the focal length corresponding to the camera to be detected, including determining the third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected; and determining the first field of view angle corresponding to the first landmark point and the second landmark point according to the first distance and the third distance.
[0154] In some embodiments, the field of view angle determination module 403 is further configured to determine a first ratio between the second distance and the diagonal length; and determine a second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle, wherein a second ratio between the first field of view angle and the second field of view angle is equal to the first ratio.
[0155] In some examples, the field of view angle determination module 403 is further configured to determine the second distance according to the positions of the first fiducial point and the second fiducial point on the test chart, or determine the diagonal length according to the size of the test chart.
[0156] It should be noted that for the specific implementation process of this embodiment, reference may be made to the specific implementation process of the above method embodiment, which will not be described herein again.
[0157] It can be seen that by implementing the above embodiments, the shooting distance between the camera to be detected and the test chart can be determined first according to the virtual distances and actual distances of two fiducial points on the same diagonal in the captured image and the test chart, in combination with the focal length corresponding to the camera to be detected; then the field of view angles corresponding to the first fiducial point and the second fiducial point can be calculated according to the virtual distance and the shooting distance; furthermore, according to the ratio between the field of view angle and the actual distance between two fiducial points on the same diagonal in the test chart and the diagonal length, the field of view angle corresponding to the camera to be detected can be automatically calculated, without the need to manually read the field of view angle values corresponding to the four corners of the image frame in the captured image to obtain the field of view angle value of the camera, nor the need to manually measure the distance between the camera to be detected and the test chart, which can reduce the error in the camera field of view angle test caused by manual operation and improve the reliability of the camera field of view angle test result.
[0158] In one embodiment, the present application provides a terminal device, and its internal structure diagram can be as Figure 6As shown. The terminal device includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the terminal device is used to communicate with external devices in a wired or wireless manner. The wireless manner can be achieved through WIFI, a carrier network, near-field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a method for testing the field of view angle of a camera. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen. The input device of the terminal device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the outer shell of the terminal device, or an external keyboard, touchpad, or mouse, etc.
[0159] Those skilled in the art can understand that Figure 6 the structure shown in
[0160] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the terminal device to which the solution of this application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout. Figure 6 In one embodiment, the method for testing the field of view angle of a camera provided by this application can be implemented in the form of a computer program, and the computer program can run on a terminal device such as Figure 4 shown. Each program module that composes the device for testing the field of view angle of a camera can be stored in the memory of the terminal device. For example,
[0161] For example, Figure 6 the terminal device shown in Figure 4 can execute step 201 through the image acquisition module shown in
[0162] In one embodiment, the processor in the terminal device executes the computer program stored in the memory, and can implement the method for testing the field of view angle of a camera described in the above embodiments.
[0163] In one embodiment, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for testing the field of view angle of a camera described in the above embodiments is implemented.
[0164] It should be understood that in various embodiments of the present application, it should be understood that the magnitudes of the serial numbers of the above processes do not necessarily mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0165] In the embodiments provided by the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0166] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium, and the storage medium includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc memories, magnetic disk memories, tape memories, or any other computer-readable medium that can be used to carry or store data.
[0167] The above has introduced in detail a method, device, terminal device, and storage medium for testing the field of view angle of a camera disclosed in the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for testing the field of view angle of a camera, characterized in that, Applied to a terminal device, the method includes: Obtaining a captured image obtained by a camera to be detected capturing a test chart, where the test chart includes a plurality of fiducial points; Identifying each of the fiducial points included in the captured image, and determining a first distance on the captured image between a first fiducial point and a second fiducial point, where the first fiducial point and the second fiducial point are on the same diagonal line of the test chart; Determining a first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and a second distance, where the second distance is the distance between the first fiducial point and the second fiducial point on the test chart; Determining a second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, where the diagonal length is the length of the diagonal line where the first fiducial point and the second fiducial point are located in the test chart; The step of determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance includes: Determining a third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected; Determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the third distance; The step of determining the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length includes: Determining a first ratio between the second distance and the diagonal length; Determining the second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle, where a second ratio between the first field of view angle and the second field of view angle is equal to the first ratio.
2. The method according to claim 1, wherein The step of identifying each of the fiducial points included in the captured image and determining the first distance on the captured image between the first fiducial point and the second fiducial point includes: Identifying each of the fiducial points included in the captured image, determining a first image coordinate of the first fiducial point in the captured image, and a second image coordinate of the second fiducial point in the captured image; Determining the first distance on the captured image between the first fiducial point and the second fiducial point according to the first image coordinate, the second image coordinate, and the pixel size corresponding to the camera to be detected.
3. The method according to claim 1, wherein Before the step of determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance, the method further includes: Receiving a second distance input by a tester, or determining the second distance according to the positions of the first fiducial point and the second fiducial point on the test chart; Before the step of determining the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, the method further includes: Receiving a diagonal length input by a tester, or determining the diagonal length according to the size of the test chart.
4. The method according to any one of claims 1 to 3, wherein The test chart is fixed and vertically located directly in front of the transmissive light box, where the transmissive light box is used to irradiate light onto the test chart; The optical axis center of the camera to be detected is perpendicular to the plane where the test chart is located. The test chart is rectangular, and the image frame of the captured image of the camera to be detected is aligned with the four corners of the test chart.
5. A device for testing the field of view angle of a camera, characterized in that, The device includes: An image acquisition module, configured to acquire a captured image obtained by the camera to be detected when photographing the test chart, where the test chart includes a plurality of fiducial points; A fiducial point recognition module, configured to recognize each of the fiducial points included in the captured image, and determine a first distance between a first fiducial point and a second fiducial point on the captured image, where the first fiducial point and the second fiducial point are on the same diagonal line of the test chart; A field of view angle determination module, configured to determine a first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and a second distance, where the second distance is the distance between the first fiducial point and the second fiducial point on the test chart; determine a second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length, where the diagonal length is the length of the diagonal line on which the first fiducial point and the second fiducial point are located in the test chart; the determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the second distance includes: determining a third distance between the camera to be detected and the test chart according to the first distance, the second distance, and the focal length corresponding to the camera to be detected; determining the first field of view angle corresponding to the first fiducial point and the second fiducial point according to the first distance and the third distance; the determining the second field of view angle corresponding to the camera to be detected according to the first field of view angle, the second distance, and the diagonal length includes: determining a first ratio between the second distance and the diagonal length; determining the second field of view angle corresponding to the camera to be detected according to the first ratio and the first field of view angle, where a second ratio between the first field of view angle and the second field of view angle is equal to the first ratio.
6. A terminal device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Camera field angle measuring method
CN110987375A
Lens photosensitive chip offset detection method and device
CN113432554A