CN111982468B - Method, device and system for measuring field angle and computer storage medium - Google Patents
Method, device and system for measuring field angle and computer storage medium Download PDFInfo
- Publication number
- CN111982468B CN111982468B CN202010747314.3A CN202010747314A CN111982468B CN 111982468 B CN111982468 B CN 111982468B CN 202010747314 A CN202010747314 A CN 202010747314A CN 111982468 B CN111982468 B CN 111982468B
- Authority
- CN
- China
- Prior art keywords
- test image
- angle
- size
- circular area
- diameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012360 testing method Methods 0.000 claims abstract description 132
- 238000004590 computer program Methods 0.000 claims description 27
- 238000005259 measurement Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 5
- 239000007787 solid Substances 0.000 claims description 3
- 230000006870 function Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M11/00—Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
- G01M11/02—Testing optical properties
- G01M11/0242—Testing optical properties by measuring geometrical properties or aberrations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
Landscapes
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Image Analysis (AREA)
Abstract
The application is applicable to the technical field of computers, and provides a method for measuring an angle of view, which comprises the following steps: acquiring a to-be-tested graphic card which is acquired by a camera and displayed by the virtual reality display equipment, and acquiring a test image, wherein the test image comprises a circular area; determining a diameter of the circular region based on the test image; and determining the field angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image. By applying the technical scheme of the invention, the problem of the field angle of the virtual reality display equipment for displaying the circular picture can be measured.
Description
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for measuring a field angle.
Background
With the development of integrated circuit technology, electronic devices are gradually developing towards function diversification and miniaturization, and with the development and application of Virtual Reality (VR) technology and Augmented Reality (AR) Mixed Reality (MR) technology, various Display devices based on these technologies gradually appear in the field of vision of the public, which generally have a shape similar to a helmet, and present pictures in front of the eyes of users with special Display screens and signal sources, such as VR Head-mounted Display devices, AR Head-mounted Display devices, head-up Display devices (HUDs), and the like. The Field angle (Field of View) refers to an angle at which the edge of the image is visible to the human eye and a line connecting the observation point (the center of the pupil of the human eye) in the image formed by these virtual image display devices described above. The size of the field angle directly affects the size of the picture viewed by the user of the head mounted display device.
The existing method for determining the field angle is to display a rectangular pure color chart card through a display device, capture the chart card area displayed by the display device through a camera with a known field angle, and then calculate the field angle of the display device by using a trigonometric function or a ratio relation according to the size of the image captured by the camera and the size of the pure color chart card area in the image captured by the camera.
The method can conveniently measure the field angle of the display equipment. However, the above method is only suitable for a display module (generally, an AR display device) which has a small viewing angle and displays a rectangular screen, and cannot be directly used for a virtual reality display device (VR display device) which has a large viewing angle and displays a circular screen and is generally available on the market today. Therefore, a method for measuring the field angle of a virtual reality display device is needed in the prior art.
Disclosure of Invention
The embodiment of the application provides a method, equipment and system for measuring a field angle and a computer storage medium, which can measure the field angle of virtual reality display equipment displaying a circular picture.
In a first aspect, an embodiment of the present application provides a method for measuring a field angle, where the method is used for measuring the field angle of a virtual reality display device, and the method includes:
acquiring a to-be-tested graphic card which is acquired by a camera and displayed by the testing virtual reality display equipment, and acquiring a testing image, wherein the testing image comprises a circular area;
determining a diameter of the circular region based on the test image;
and determining the field angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image.
Further, the test image further comprises a background area, the background area is arranged around the circular area, and the background area and the circular area are both pure color areas and have obvious contrast.
Further, said determining a diameter of said circular region based on said test image comprises:
identifying a diameter of the circular region based on a contrast between the background region and the circular region.
Further, the image pixels of the test image comprise binary pixels; the determining a diameter of the circular region based on the test image comprises:
traversing the test image from any direction in a straight line mode, and obtaining at least one pixel value I for identifying the pixel point of the background area and/or a pixel value II for identifying the pixel point of the circular area on any straight line;
determining a straight line which identifies the pixel value two of the pixel points in the circular area to be the most;
and in the straight line with the maximum pixel value two of the pixels in the identified circular area, taking the connection line of the pixels with the pixel value two as the diameter of the circular area.
Further, determining a field angle of the virtual reality display device based on the diameter of the circular area, the size of the test image, and the preset camera field angle corresponding to the size of the test image, includes:
calculating the field angle of the virtual reality display equipment according to a first formula on the basis of the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image; wherein, the first formula is:
wherein, P VR Is the diameter of said circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam And the preset camera angle of view corresponding to the size of the test image is obtained.
Further, determining a view angle of the virtual reality display device based on the diameter of the circular area, the size of the test image, and the preset camera view angle corresponding to the size of the test image, includes:
calculating the field angle of the virtual reality display equipment according to a formula II based on the diameter of the circular area, the size of the test image and the preset field angle of the camera corresponding to the size of the test image; wherein, the formula two is:
wherein, P VR Is the diameter of said circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam And setting the preset visual angle of the camera corresponding to the size of the test image.
In a second aspect, an embodiment of the present application provides a device for measuring an angle of view, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for measuring an angle of view according to the first aspect when executing the computer program.
In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for measuring the angle of view according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a system for measuring an angle of view of a virtual reality display device, where the system includes: a camera with a preset field angle and the measuring device of the second aspect, wherein the measuring device is connected with the camera in a communication way.
In a fifth aspect, an embodiment of the present application provides a system for measuring an angle of view of a virtual reality display device, including: the device comprises a processing unit and a camera unit with a preset field angle;
the camera shooting unit is used for collecting a graphic card to be tested displayed by the testing virtual reality display equipment to obtain a testing image, and the testing image comprises a circular area;
the processing unit is used for determining the diameter of the circular area based on the test image acquired by the camera shooting unit; and determining the field angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image.
In the embodiment of the application, a to-be-tested graphic card acquired by a camera and displayed by the testing virtual reality display equipment is acquired to obtain a testing image, wherein the testing image comprises a circular area; determining a diameter of the circular region based on the test image; and determining the field angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image. According to the scheme, the measurement of the field angle of the virtual reality display equipment can be realized by testing the diameter of the circular area in the graph card to be tested.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for measuring an angle of view according to a first embodiment of the present application;
fig. 2 is a schematic diagram of hardware devices required by a method for measuring an angle of view according to a first embodiment of the present application;
fig. 3 is a schematic diagram of a test image in a method for measuring an angle of field according to a first embodiment of the present application;
FIG. 4 is a schematic diagram of an embodiment of step S102 in FIG. 1;
FIG. 5 is a schematic illustration of the test image of FIG. 4;
FIG. 6 is a schematic view of a measurement image provided in the first embodiment of the present application;
FIG. 7 is a schematic diagram of an embodiment of a measurement image provided by a first embodiment of the present application;
fig. 8 is a schematic view of a device for measuring an angle of view according to a second embodiment of the present application;
fig. 9 is a schematic view of a device for measuring an angle of view according to a third embodiment of the present application;
FIG. 10 is a schematic view of a system for measuring field of view angle provided in accordance with a fourth embodiment of the present application;
fig. 11 is a schematic view of a system for measuring an angle of field according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for measuring an angle of view according to a first embodiment of the present application. The method for measuring the angle of view provided by the present application is used for measuring the angle of view of a virtual reality display device, and in the present embodiment, an execution subject of the method for measuring the angle of view is a device having a function of measuring the angle of view, and the device includes, but is not limited to, a desktop computer, a server, and the like. The method for measuring the field angle as shown in fig. 1 may include:
s101: and acquiring a to-be-tested graphic card which is acquired by a camera and displayed by the testing virtual reality display equipment.
As shown in fig. 2, fig. 2 is a schematic diagram of hardware devices required for performing the angle of field measurement in the present embodiment. The virtual reality display device 3 displays the graphic card to be tested, the camera 2 collects the graphic card to be tested displayed by the virtual reality display device 3 to obtain a test image, the camera 2 sends the collected test image to the device 1 with the angle of view measuring function, and the device 1 with the angle of view measuring function obtains the angle of view according to the method in the embodiment.
As shown in fig. 3, it is a schematic diagram of the test image acquired by the camera 2. The test image comprises a background area (a black area in fig. 3) and a circular area (a white area in fig. 3), both the background area and the circular area are pure color areas, the background area is arranged around the circular area, and the two areas have obvious large contrast difference, which requires that the background area and the circular area of the to-be-tested card have obvious contrast. The purpose is as follows: when image recognition is carried out subsequently, the circular area and the background area can be distinguished through an algorithm.
The field angle of the camera 2 is known, and specifically, the preset camera field angle includes: the camera has a diagonal angle of view, a transverse angle of view and a longitudinal angle of view. However, since the virtual reality display device displays a circular image, the diagonal angle of view, the lateral angle of view of the camera, and the longitudinal angle of view of the camera are not distinguished.
S102: based on the test image, a diameter of the circular region is determined.
The device 1 determines the diameter of the circular area based on the acquired test image. Since the background region and the circular region are both solid color regions and have significant contrast, the circular region can be identified from the test image, resulting in the diameter of the circular region.
In identifying the diameter of a circular area, there are two methods, one is: identifying the diameter of the circular area according to the contrast between the background area and the circular area; the other is that: and acquiring the diameter of the circular area by traversing the test image. Hereinafter, the above two methods will be described separately.
The first method comprises the following steps: according to the contrast between the background area and the circular area, a pure color circular area is directly identified by a software algorithm, and then the diameter AB of the circular area is calculated. Because the circle is not sensitive to direction, the diameter of the circular area may be transverse, longitudinal, or other direction through the center of the circle, as shown in FIG. 6.
The second method comprises the following steps: the diameter of the circular area is obtained by traversing the test image, and the specific operation method is shown in fig. 4.
As shown in fig. 4, a schematic flow chart of a method for obtaining a diameter of a circular region by traversing a test image includes:
s401, traversing the test image from any direction in a straight line mode, and obtaining at least one pixel point for marking a first pixel value of a background area and/or at least one pixel point for marking a second pixel value of a circular area on any straight line.
S402, determining a straight line which identifies the maximum pixel point of the second pixel value of the circular area.
And S403, in a straight line which identifies the maximum pixel points of the second pixel value in the circular area, connecting lines of the pixel points of the second pixel value are used as the diameter of the circular area.
It is known that a test image comprises many pixels. For a test image comprising a background region and a circular region, both of which are solid color regions, it is actually an image of binary pixel values, i.e. the image pixels of the test image comprise binary pixels. For example, a pixel of a background region may be identified by a pixel value of one (e.g., 0), and a pixel of a circular region may be identified by a pixel value of two (e.g., 1). Thus, in step S401, the test image may be traversed in a straight line from either direction. On any straight line, a pixel point for identifying a first pixel value of the background area may be obtained (at this time, the straight line only belongs to the background area), a pixel point for identifying a second pixel value of the circular area may be obtained (at this time, the straight line only belongs to the circular area), or one or more pixel points for identifying a first pixel value of the background area and one or more pixel points for identifying a second pixel value of the circular area may be obtained (at this time, the straight line spans the circular area and the background area).
After step S401 is performed, a plurality of straight lines may be obtained simultaneously across the circular region and the background region, as shown in fig. 5. Among the plurality of straight lines, there is a straight line K, and the number of pixels belonging to the circular area is larger than that of the other straight lines, so that the straight line K needs to be found in step S402. Because the number of pixels of the straight line K belonging to the circular area is more than that of other straight lines, based on the circular characteristic, the straight line K can be known to penetrate through the circle center of the circular area. Therefore, in step S403, the diameter AB of the circular area can be obtained by connecting the connecting lines of the pixels of all the pixel values two in the straight line.
After the diameter of the circular area is obtained according to the first or second manner, step S103 may be executed.
S103: and determining the field angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image.
Wherein the size of the test image, the preset camera view angle corresponding to the size of the test image is pre-stored in the device or is retrievable. Wherein, camera angle of vision also includes: diagonal angle of view, lateral angle of view, and longitudinal angle of view. When the size of the test image is a diagonal size, the preset camera view angle corresponding to the size is a diagonal view angle, and when the size of the test image is a transverse size, the preset camera view angle corresponding to the size is a transverse view angle; when the size of the test image is a longitudinal size, the preset camera view angle corresponding to the size is specifically a longitudinal view angle.
The device needs to acquire the size of the test image, and after the size is acquired, the field angle of the virtual reality display device can be determined according to the acquired size, the preset camera field angle corresponding to the size and the diameter of the circular area.
Further, in order to accurately calculate the angle of view of the virtual reality display device, there may be two methods, that is, in step S103, S1031 or S1032 may be specifically included, and S1031 or S1032 is specifically as follows:
s1031: calculating the field angle of the virtual reality display equipment according to a formula I based on the diameter of the circular area, the size of the test image and a preset camera field angle corresponding to the size of the test image; wherein, the first formula is:
wherein, P VR Is the diameter of a circular area, F VR Is the angle of view, P, of the virtual reality display device cam As a size of the test image, F cam Is preset withAnd testing the field angle of the camera corresponding to the size of the image.
In the present embodiment, the ratio of the diameter of the circular area to the angle of view of the virtual reality display device, the size of the test image, and the ratio of the angle of view of the camera corresponding to the size are equal. Therefore, the field angle of the virtual reality display device can be obtained through a simple ratio relation, and can be calculated through a formula I. For example, as shown in FIG. 7, P AB Is the diameter of the circular area, P cam To test the size of the image, P is measured AB And P cam And substituting the formula I to obtain the field angle of the virtual reality display equipment.
S1032: calculating the field angle of the virtual reality display equipment according to a formula II based on the diameter of the circular area and the ratio of the size of the test image to the preset field angle of the camera corresponding to the size; wherein the second formula is:
in this embodiment, the first ratio of the diameter of the circular area to the tangent function of the field of view of the virtual reality display device, the size of the test image, and the second ratio of the tangent function of the camera field of view are equal. Therefore, the field angle of the virtual reality display device can be obtained through the trigonometric function, and can be specifically obtained through calculation of formula two, wherein P is VR Is the diameter of a circular area, F VR Is the field angle, P, of the virtual reality display device cam To test the size of the image, F cam The preset camera view angle corresponding to the size. For example, as shown in FIG. 7, P AB Is the diameter of the circular area, P cam To test the size of the image, P is measured AB And P cam And substituting the two formulas to obtain the field angle of the virtual reality display equipment.
According to the method for testing the field angle, the field angle of the virtual reality display device can be measured through the pure color chart card comprising the circular area, and the problem that the field angle of the virtual reality display device cannot be measured through the method for measuring the field angle in the prior art is solved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 8, fig. 8 is a schematic view of a device for measuring an angle of view according to a second embodiment of the present application. The units are included for executing the steps in the embodiments corresponding to fig. 1 and 4. Please refer to fig. 1 and fig. 4 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 8, the angle of view measuring apparatus 8 includes:
the obtaining unit 810 obtains a to-be-tested graphic card which is acquired by a camera and displayed by virtual reality display equipment to obtain a test image, wherein the test image comprises a circular area;
a first determination unit 820 that determines a diameter of the circular region based on the test image;
a second determination unit 830 that determines an angle of view of the virtual reality display apparatus based on the diameter of the circular area, the size of the test image, and the preset camera angle of view corresponding to the size of the test image.
Further, the test image further comprises a background area, the background area is arranged around the circular area, and the background area and the circular area are both pure color areas and have obvious contrast.
Further, the first determining unit 820 is specifically configured to: identifying a diameter of the circular region based on a contrast between the background region and the circular region. Or, the first determining unit 820 is specifically configured to traverse the test image from any direction in a straight line, and obtain at least one pixel point for identifying the first background area pixel value and/or one pixel point for identifying the second circular area pixel value on any straight line; determining a straight line which identifies the largest pixel point of the second pixel value of the circular area; and in the straight line which identifies the maximum pixel points of the second pixel value of the circular area, taking the connection line of the pixel points of the second pixel value as the diameter of the circular area.
Further, the second determining unit 830 may be specifically configured to: calculating the field angle of the virtual reality display equipment according to a first formula on the basis of the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image; wherein, the first formula is:
wherein, P VR Is the diameter of said circular area, F VR Is the angle of view, P, of the virtual reality display device cam For the size of the test image, F cam And setting the preset visual angle of the camera corresponding to the size of the test image.
Alternatively, the second determining unit 830 may be further specifically configured to: calculating the field angle of the virtual reality display equipment according to a formula II based on the diameter of the circular area, the size of the test image and the preset field angle of the camera corresponding to the size of the test image; wherein, the formula two is:
wherein, P VR Is the diameter of said circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam And the preset camera angle of view corresponding to the size of the test image is obtained.
The measuring equipment in the embodiment of the application can measure the field angle of the virtual reality display equipment through the pure color chart card comprising the circular area, and solves the problem that the field angle of the virtual reality display equipment cannot be measured in the field angle measurement in the prior art.
Fig. 9 is a schematic view of a device for measuring an angle of view according to a third embodiment of the present application. As shown in fig. 9, the angle-of-view measuring apparatus 10 of this embodiment includes: a processor 100, a memory 101 and a computer program 102, such as a measurement program of the field of view, stored in the memory 101 and executable on the processor 100. The processor 100 executes the computer program 102 to implement the steps in the above-described embodiments of the method for measuring the angle of field, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 100, when executing the computer program 102, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 810 to 830 shown in fig. 8.
Illustratively, the computer program 102 may be partitioned into one or more modules/units that are stored in the memory 101 and executed by the processor 100 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution process of the computer program 102 in the viewing angle measuring apparatus 10. For example, the computer program 102 may be divided into a first obtaining unit, a first determining unit, and a second determining unit, and each unit has the following specific functions:
the first acquisition unit is used for acquiring a to-be-tested graphic card which is acquired by a camera and displayed by the virtual reality display equipment to obtain a test image, and the test image comprises a circular area;
a first determination unit that determines a diameter of the circular region based on the test image;
and the second determining unit is used for determining the visual angle of the virtual reality display equipment based on the diameter of the circular area, the size of the test image and the preset visual angle of the camera corresponding to the size of the test image.
The device for measuring the field angle may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that fig. 9 is merely an example of the field angle measuring device 10, and does not constitute a limitation of the field angle measuring device 10, and may include more or fewer components than those shown, or some components in combination, or different components, for example, the field angle measuring device may also include an input-output device, a network access device, a bus, etc.
The Processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 101 may be an internal storage unit of the viewing angle measuring apparatus 10, such as a hard disk or a memory of the viewing angle measuring apparatus 10. The memory 101 may also be an external storage device of the viewing angle measuring device 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the viewing angle measuring device 10. Further, the measurement apparatus 10 of the angle of view may also include both an internal storage unit and an external storage apparatus of the measurement apparatus 10 of the angle of view. The memory 101 is used to store the computer program and other programs and data required for the viewing angle measuring device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
Fig. 10 is a schematic view of a system for measuring an angle of view according to a fourth embodiment of the present application. The measuring system of the angle of field is used for measuring the angle of field of virtual reality display device, and the measuring system includes: a camera 111 for presetting an angle of view and a measuring device 112 for the angle of view, wherein the measuring device 112 for the angle of view is connected with the camera 111 in a communication way.
Fig. 11 is a schematic view of a system for measuring an angle of view according to a fifth embodiment of the present application. A viewing angle measuring system for measuring a viewing angle of a virtual reality display device, the viewing angle measuring system 12 comprising: a processing unit 121 and an image pickup unit 122 with a preset field angle;
the camera unit 121 is configured to acquire a to-be-tested graphic card displayed by the testing virtual reality display device to obtain a testing image, where the testing image includes a circular region;
the processing unit 122 is configured to determine a diameter of the circular region based on the test image acquired by the camera unit; and determining the field angle of the virtual reality display device based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.
Claims (8)
1. A method of measuring an angle of view, for measuring an angle of view of a virtual reality display device, the method comprising:
acquiring a to-be-tested graphic card which is acquired by a camera and displayed by the virtual reality display equipment, and acquiring a test image, wherein the test image comprises a circular area;
determining a diameter of the circular region based on the test image;
calculating the field angle of the virtual reality display equipment according to a first formula on the basis of the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image; wherein, the first formula is:
wherein, P VR Is the diameter of said circular area, F VR Is the angle of view, P, of the virtual reality display device cam As a size of the test image, F cam The preset camera view angle corresponding to the size of the test image is set; or,
calculating the field angle of the virtual reality display equipment according to a formula II based on the diameter of the circular area, the size of the test image and the preset field angle of the camera corresponding to the size of the test image; wherein, the formula two is:
wherein, P VR Is the diameter of the circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam And the preset camera angle of view corresponding to the size of the test image is obtained.
2. The method for measuring an angle of field according to claim 1, wherein the test image further includes a background region disposed around the circular region, and the background region and the circular region are both solid color regions and have a distinct contrast.
3. The method of measuring an angle of view of claim 2, wherein said determining a diameter of the circular area based on the test image comprises:
identifying a diameter of the circular region based on a contrast between the background region and the circular region.
4. The method of measuring an angle of view according to claim 2, wherein the image pixels of the test image include binary pixels; the determining a diameter of the circular region based on the test image comprises:
traversing the test image from any direction in a straight line manner, and obtaining at least one pixel point for identifying the first pixel value of the background area and/or one pixel point for identifying the second pixel value of the circular area on any straight line;
determining a straight line which identifies the largest pixel point of the second pixel value of the circular area;
and in the straight line which identifies the maximum pixel points of the second pixel value of the circular area, taking the connecting line of the pixel points of the second pixel value as the diameter of the circular area.
5. An apparatus for measuring an angle of view, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
7. A measurement system of an angle of view for measuring an angle of view of a virtual reality display device, the measurement system comprising: a camera with a preset field angle and a measuring device according to claim 5, which is connected in communication with the camera.
8. A system for measuring an angle of view of a virtual reality display device, comprising: the device comprises a processing unit and a camera unit with a preset field angle;
the camera shooting unit is used for collecting a graphic card to be tested displayed by the testing virtual reality display equipment to obtain a testing image, and the testing image comprises a circular area;
the processing unit is used for determining the diameter of the circular area based on the test image acquired by the camera shooting unit; calculating the field angle of the virtual reality display equipment according to a first formula on the basis of the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image; wherein, the first formula is:
wherein, P VR Is the diameter of the circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam To prepareSetting the camera view angle corresponding to the size of the test image; or,
calculating the field angle of the virtual reality display equipment according to a formula II based on the diameter of the circular area, the size of the test image and the preset camera field angle corresponding to the size of the test image; wherein, the formula two is:
wherein, P VR Is the diameter of the circular area, F VR Is the field angle, P, of the virtual reality display device cam For the size of the test image, F cam And the preset camera angle of view corresponding to the size of the test image is obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010747314.3A CN111982468B (en) | 2020-07-29 | 2020-07-29 | Method, device and system for measuring field angle and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010747314.3A CN111982468B (en) | 2020-07-29 | 2020-07-29 | Method, device and system for measuring field angle and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111982468A CN111982468A (en) | 2020-11-24 |
CN111982468B true CN111982468B (en) | 2022-12-09 |
Family
ID=73444387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010747314.3A Active CN111982468B (en) | 2020-07-29 | 2020-07-29 | Method, device and system for measuring field angle and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111982468B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114323636A (en) * | 2021-12-29 | 2022-04-12 | 中汽检测技术有限公司 | Monitoring method and device for gear fatigue test, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106017867A (en) * | 2015-03-24 | 2016-10-12 | 北京威斯顿亚太光电仪器有限公司 | Method for detecting field angle of hard tube endoscope |
CN208297099U (en) * | 2018-06-08 | 2018-12-28 | 中山联合光电科技股份有限公司 | Angle of view measuring device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9292973B2 (en) * | 2010-11-08 | 2016-03-22 | Microsoft Technology Licensing, Llc | Automatic variable virtual focus for augmented reality displays |
CN105681644A (en) * | 2014-11-20 | 2016-06-15 | 中兴通讯股份有限公司 | Focal distance adjusting method and device and terminal |
CN106124169A (en) * | 2016-06-29 | 2016-11-16 | 南京睿悦信息技术有限公司 | A kind of VR helmet equipment angle of visual field measuring method |
CN106441212B (en) * | 2016-09-18 | 2020-07-28 | 京东方科技集团股份有限公司 | Device and method for detecting field angle of optical instrument |
CN107607295A (en) * | 2017-09-30 | 2018-01-19 | 华勤通讯技术有限公司 | A kind of visual field angle measuring device and method |
CN109862345B (en) * | 2017-11-30 | 2022-09-30 | 京东方科技集团股份有限公司 | Method and system for testing field angle |
CN109752168A (en) * | 2019-01-03 | 2019-05-14 | 深圳市亿境虚拟现实技术有限公司 | A kind of optical mirror slip detection device for virtual reality device |
CN110006634B (en) * | 2019-04-15 | 2020-12-18 | 北京京东方光电科技有限公司 | Viewing field angle measuring method, viewing field angle measuring device, display method and display equipment |
-
2020
- 2020-07-29 CN CN202010747314.3A patent/CN111982468B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106017867A (en) * | 2015-03-24 | 2016-10-12 | 北京威斯顿亚太光电仪器有限公司 | Method for detecting field angle of hard tube endoscope |
CN208297099U (en) * | 2018-06-08 | 2018-12-28 | 中山联合光电科技股份有限公司 | Angle of view measuring device |
Also Published As
Publication number | Publication date |
---|---|
CN111982468A (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109064390B (en) | Image processing method, image processing device and mobile terminal | |
CN109166156B (en) | Camera calibration image generation method, mobile terminal and storage medium | |
CN108965835B (en) | Image processing method, image processing device and terminal equipment | |
CN110766679A (en) | Lens contamination detection method and device and terminal equipment | |
CN113240630B (en) | Speckle image quality evaluation method and device, terminal equipment and readable storage medium | |
CN110211518A (en) | Circuit device and electronic equipment | |
US12131490B2 (en) | Image processing method and image processing apparatus, and electronic device using same | |
JP2008529189A (en) | Real-time image detection using polarization data | |
CN111982468B (en) | Method, device and system for measuring field angle and computer storage medium | |
CN116958908B (en) | Monitoring data processing method and system | |
CN111551346B (en) | Method, device and system for measuring field angle and computer storage medium | |
CN112200842B (en) | Image registration method, device, terminal equipment and storage medium | |
CN111800579B (en) | Lens focusing method and system and related equipment | |
CN111340722B (en) | Image processing method, processing device, terminal equipment and readable storage medium | |
CN105427315B (en) | Digital instrument image position testing method and device | |
CN107734324B (en) | Method and system for measuring illumination uniformity of flash lamp and terminal equipment | |
CN109600604B (en) | Contrast testing method, device and computer readable storage medium | |
CN112200002A (en) | Body temperature measuring method and device, terminal equipment and storage medium | |
CN110610178A (en) | Image recognition method, device, terminal and computer readable storage medium | |
CN116246558A (en) | Display performance detection method and device for display, terminal equipment and storage medium | |
CN107657663B (en) | Method and device for displaying information | |
CN114972526A (en) | Method and device for measuring angle of field, computer device and medium | |
CN113406429B (en) | Electronic metering device detection method and device, storage medium and electronic equipment | |
CN111986144B (en) | Image blurring judging method, device, terminal equipment and medium | |
US11676265B2 (en) | Method and image processing device for mura detection on display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |