CN111508034B - Lens angle shielding detection method, system, terminal equipment and storage medium - Google Patents

Lens angle shielding detection method, system, terminal equipment and storage medium Download PDF

Info

Publication number
CN111508034B
CN111508034B CN202010326690.5A CN202010326690A CN111508034B CN 111508034 B CN111508034 B CN 111508034B CN 202010326690 A CN202010326690 A CN 202010326690A CN 111508034 B CN111508034 B CN 111508034B
Authority
CN
China
Prior art keywords
lens
distance
angle
view
detected
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
Application number
CN202010326690.5A
Other languages
Chinese (zh)
Other versions
CN111508034A (en
Inventor
卢招庆
李祥云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202010326690.5A priority Critical patent/CN111508034B/en
Publication of CN111508034A publication Critical patent/CN111508034A/en
Application granted granted Critical
Publication of CN111508034B publication Critical patent/CN111508034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Abstract

The application provides a method, a system, a terminal device and a storage medium for detecting the shielding of a lens angle of view, wherein the method comprises the following steps: establishing a coordinate system by taking an intersection point between a central axis of the lens to be detected and an imaging surface as an origin, taking the central axis as a first coordinate axis and taking the diameter direction of the lens to be detected as a second coordinate axis; and calculating a view angle equation according to the view angle, the inner diameter value of the foam and the viewpoint distance to obtain a maximum non-shielding distance, and judging that the foam shields the view angle of the lens to be detected if the total length of the lens is larger than the maximum non-shielding distance. According to the application, the optical route simulation problem is converted into the mathematical equation solving problem by adopting a mathematical modeling mode, so that the professional threshold of an evaluator is reduced, and the method is suitable for non-optical and structural professionals.

Description

Lens angle shielding detection method, system, terminal equipment and storage medium
Technical Field
The application belongs to the field of lens angle detection, and particularly relates to a lens angle shielding detection method, a system, terminal equipment and a storage medium.
Background
In the field of security monitoring or electronic products with cameras, attention needs to be paid to whether the angle of view of a lens is shielded by a structure during structural design. For a network camera (IPC), generally, different focal lengths can share the same shell, in order to ensure that foam in the designed shell can be compatible with lenses with different lengths and different view angles, structural engineers need to detect whether the view angles of the different lenses can be shielded by the foam or not, so that the phenomenon that the mounted lenses cannot be shielded in the working process is guaranteed.
In the existing lens view angle shielding detection process, after a 3D structure diagram of an installation structure between a lens and foam is drawn, the view angle shielding detection is carried out in an optical route simulation mode, but because the 3D structure diagram is complicated to draw, the operation of a worker is complicated, the detection time is long, a person with a structural specialty or optical expertise background is required to detect, the detection threshold is high, and then the detection efficiency of the lens view angle is low.
Disclosure of Invention
The embodiment of the application provides a method, a system, terminal equipment and a storage medium for detecting lens angle shielding, which aim to solve the problem of low lens angle shielding detection efficiency caused by adopting a 3D structure diagram to simulate an optical route in the existing lens angle shielding detection process.
In a first aspect, an embodiment of the present application provides a method for detecting occlusion of a lens angle, where the method includes:
acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises total length of the lens, field angle of view of the lens and viewpoint distance, and the viewpoint distance is the distance between the viewpoint of the lens in the lens to be detected and an imaging surface;
establishing a coordinate system by taking an intersection point between the central axis of the lens to be detected and the imaging surface as an origin, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis;
performing view equation calculation according to the view angle, the foam inner diameter value and the view point distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected;
if the total length of the lens is larger than the maximum non-shielding distance, the foam is judged to shield the angle of view of the lens to be detected.
Compared with the prior art, the embodiment of the application has the beneficial effects that: by adopting a mathematical modeling mode, the optical route simulation problem is converted into a simple and universal mathematical equation solution problem, so that the drawing of a 3D structure and the optical route simulation are not required, the operation of staff is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, and the efficiency of detecting the lens angle of view is effectively improved.
Further, the view angle equation adopted for performing the view angle equation calculation according to the view angle, the foam inner diameter value and the view point distance is:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is the inner diameter value of the foam in half, θ is the lens angle of view, θ/2 is the half angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance.
Further, after the step of calculating the view angle equation according to the view angle, the foam inner diameter value and the viewpoint distance to obtain the maximum non-shielding distance, the method further includes:
acquiring a minimum safety interval between the end face of the lens to be detected and the forefront lens, and calculating the sum of the minimum safety interval and the total length of the lens to obtain a corrected lens length distance;
correspondingly, if the total length of the lens is greater than the maximum non-shielding distance, determining that the foam can shield the angle of view of the lens to be detected, specifically:
if the corrected lens length distance is larger than the maximum non-shielding distance, the foam is judged to shield the angle of view of the lens to be detected.
Further, the method further comprises:
acquiring the height distance between the structural hat brim on the lens to be detected and the view point, and performing view angle equation calculation according to the height distance, half of the view angle and the view point distance to obtain the maximum extension distance from the structural hat brim to the imaging surface;
and acquiring the length distance between the outer edge of the foremost lens and the imaging surface, and calculating a distance difference value between the maximum extension distance and the length distance, wherein the distance difference value is the longest distance of the structural cap peak extending out of the foremost lens.
Further, the view angle equation calculation is performed according to the height distance, the half view angle and the view point distance, and the view angle equation adopted to obtain the maximum extension distance from the structural cap peak to the imaging surface is:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, θ is the lens angle, θ/2 is one half of the lens angle, h is the height distance, and Xview is the viewpoint distance.
Further, after the step of determining that the foam may block the angle of view of the lens to be detected, the method further includes:
and setting the foam into a double-layer structure, and increasing the inner diameter value of a second layer structure on the foam, so that the maximum non-shielding distance is increased, and shielding of the foam to the field angle of the lens to be detected is prevented.
In a second aspect, an embodiment of the present application provides a lens angle of view shielding detection system, including:
the lens parameter acquisition module is used for acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises total length of the lens, view angle of the lens and view point distance, and the view point distance is the distance between the view point of the lens in the lens to be detected and an imaging surface;
the coordinate system establishing module is used for establishing a coordinate system by taking an intersection point between the central axis of the lens to be detected and the imaging surface as an origin, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis;
the shielding distance calculation module is used for calculating a view angle equation according to the view angle, the foam inner diameter value and the view point distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected;
and the visual angle shielding judging module is used for judging that the foam can shield the visual angle of the lens to be detected if the total length of the lens is larger than the maximum non-shielding distance.
Further, the lens angle of view shielding detection system further includes:
the structural cap peak distance calculation module is used for obtaining the height distance between the structural cap peak on the lens to be detected and the view point, and calculating a view angle equation according to the height distance, the half view angle and the view point distance to obtain the maximum extension distance from the structural cap peak to the imaging surface;
and acquiring the length distance between the outer edge of the foremost lens and the imaging surface, and calculating a distance difference value between the maximum extension distance and the length distance, wherein the distance difference value is the longest distance of the structural cap peak extending out of the foremost lens.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method as described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a storage medium storing a computer program which, when executed by a processor, implements a method as described above.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the lens angle of view occlusion detection method of any of the first aspects above.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a lens angle of view shielding detection method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a lens to be inspected according to a first embodiment of the present application;
fig. 3 is a flowchart of a lens angle of view shielding detection method according to a second embodiment of the present application;
fig. 4 and fig. 5 are schematic structural diagrams of a lens to be inspected according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of a lens angle shielding detection system according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to a fourth 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 the particular system architecture, 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 should 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 the present 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 the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the 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 application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Example 1
Referring to fig. 1, a flowchart of a method for detecting a lens angle shielding in accordance with a first embodiment of the present application includes the steps of:
step S10, acquiring lens parameter information of a lens to be detected;
the lens parameter information includes total lens length, lens angle of view and viewpoint distance, wherein the viewpoint distance is the distance between the viewpoint of the lens and the imaging surface in the lens to be detected, for example, the lens model number YT1028, the total lens length is 22.47mm, the lens angle of view is 62 degrees, and the distance between the viewpoint and the imaging surface is 15.08mm.
Step S20, a coordinate system is established by taking an intersection point between the central axis of the lens to be detected and the imaging surface as an origin, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis;
in the embodiment, referring to fig. 2, the central axis of the lens to be detected is taken as the X axis, the diameter direction of the lens is taken as the Y axis, and the intersection point between the central axis and the imaging plane is taken as the origin O.
Step S30, calculating a view angle equation according to the view angle, the foam inner diameter value and the view point distance to obtain a maximum non-shielding distance;
the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected, namely, the maximum non-shielding distance indicates that when the distance between the imaging surface and the foremost lens is smaller than or equal to the maximum non-shielding distance, the view angle is not shielded by foam.
Preferably, before the step of calculating the view angle equation according to the view angle, the foam inner diameter value and the viewpoint distance to obtain the maximum non-shielding distance, the method further includes:
obtaining viewpoint coordinates according to the viewpoint distance;
since the point P is the viewpoint coordinate and the viewpoint distance is 15.08mm, the obtained viewpoint coordinate is (15.08,0).
In the step, when the inner edge of the foam far away from the lens falls on the view field line of the lens, the obtained X is the maximum non-shielding distance, namely, the connection line between the P point and the inner edge of the foam far away from the lens is the view field line just when the connection line is not shielded, and the included angle theta/2 between the P point and the X axis is one half of the view field angle, namely, theta is the view field angle of the lens.
Specifically, in this step, the view angle equation adopted for performing the view angle equation calculation according to the view angle, the foam inner diameter value and the viewpoint distance is:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is one half of the inner diameter value of the foam, θ is the lens angle of view, θ/2 is one half of the angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance;
taking a lens with a model YT1028 as an example, the diameter of the lens is 14mm, and under the general condition, the inner diameter value of foam is consistent with the outer diameter value of the lens, and the diameter is 14mm, so that the vertical distance from the inner circle of foam to the center of the lens to be detected is one half of the inner diameter value of foam, and when y=7, the following steps are:
7=tan(62°/2)*Xmax-tan(62°/2)*15.08;
therefore, the value of Xmax is 26.7292mm, that is, the angle of view of the lens to be detected is not blocked when the imaging plane is within 26.7292mm of the front-most lens.
Step S40, judging whether the total length of the lens is larger than the maximum non-shielding distance;
if the total length of the lens is smaller than or equal to the maximum non-shielding distance, the lens to be detected is judged to have the view angle not shielded by the foam, namely, the view angle of the YT1028 lens is not shielded by the foam because the total length 22.47mm of the lens of the YT1028 lens is smaller than 26.7292 mm.
If the total length of the lens is greater than the maximum non-shielding distance, executing step S50;
step S50, judging that the foam can block the view angle of the lens to be detected.
In this embodiment, by adopting a mathematical modeling manner, the optical route simulation problem is converted into a simple and general mathematical equation solution problem, so that drawing of a 3D structure and optical route simulation are not required, the operation of staff is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, and the efficiency of lens angle detection is effectively improved.
Example two
Referring to fig. 3, a flowchart of a method for detecting a lens angle shielding according to a second embodiment of the present application includes the steps of:
step S11, acquiring lens parameter information of a lens to be detected;
the lens parameter information comprises total lens length, lens view angle and viewpoint distance, wherein the viewpoint distance is the distance between the lens viewpoint and an imaging surface in the lens to be detected.
S21, establishing a coordinate system by taking an intersection point between a central axis of the lens to be detected and an imaging surface as an origin, taking the central axis as a first coordinate axis and taking the diameter direction of the lens to be detected as a second coordinate axis;
s31, obtaining a viewpoint coordinate according to the viewpoint distance, and performing view equation calculation according to the view angle, the foam inner diameter value and the viewpoint distance to obtain a maximum non-shielding distance;
the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected.
Specifically, in this step, the view angle equation adopted for performing the view angle equation calculation according to the view angle, the foam inner diameter value and the viewpoint distance is:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is one half of the inner diameter value of the foam, i.e. y is the vertical distance from the inner circle of the foam to the center of the lens to be detected, θ is the lens angle of view, θ/2 is one half of the angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance.
Taking a SYC7091B lens as an example, the Total Length (TTL) of the lens is 22.5mm, the angle of view is 146 °, the viewpoint distance is 20.5mm, when the inner diameter value of the foam is equal to the outer diameter value of the lens by 14mm, let y=7, then:
7=tan(146°/2)*Xmax-tan(146°/2)*20.5;
therefore, the value of Xmax is 22.6401mm, that is, the angle of view of the lens to be detected is not blocked when the imaging plane is within 22.6401mm of the front-most lens.
Step S41, obtaining the minimum safety interval between the end face of the lens to be detected and the front lens, and calculating the sum of the minimum safety interval and the total length of the lens to obtain the corrected lens length distance;
wherein, since there is a safety interval distance between the lens and the front-most lens to prevent interference between the lens and the front-most lens, this step corrects the total length of the lens to be detected by calculating the sum between the minimum safety interval and the total length of the lens.
Preferably, the safety separation distance may be 0.5mm, so for a SYC7091B lens, the corrected lens length distance is 23.5mm.
Step S51, judging whether the corrected lens length distance is larger than the maximum non-shielding distance;
if the corrected lens length distance is greater than the maximum non-shielding distance, executing step S61;
step S61, judging that foam can block the angle of view of a lens to be detected;
for the SYC7091B lens, the corrected lens length distance is 23.5mm greater than the maximum non-blocking distance 22.6401mm, so that it is determined that the SYC7091B lens is blocked by foam, while for the YT1028 lens, the corrected lens length distance 22.47+1=23.47 mm is less than 26.7292mm, so that the YT1028 lens is not blocked by foam.
Preferably, in this embodiment, after the step of determining that the foam may block the angle of view of the lens to be detected, the method further includes:
setting the foam into a double-layer structure, and increasing the inner diameter value of a second layer structure on the foam, so that the maximum non-shielding distance is increased, and shielding of the foam to the view angle of the lens to be detected is prevented;
specifically, under general circumstances, the inner diameter of the foam is consistent with the outer diameter of the lens, and the maximum non-shielding distance is obtained by essentially using the inner diameter of the foam, so that if shielding occurs, the inner diameter of the second layer of foam can be increased by using the double-layer foam, thereby increasing the maximum non-shielding distance and realizing that the angle of view is not shielded.
In this step, the inner diameter value of the second layer structure on the foam is increased according to a preset increase value, and the view angle and the viewpoint distance are calculated again according to the increased inner diameter value of the second layer structure on the foam, so as to obtain a maximum non-shielding distance, and the step S51 is returned to again judge whether the corrected lens length distance is greater than the currently calculated maximum non-shielding distance, when it is judged that the corrected lens length distance is still greater than the currently calculated maximum non-shielding distance, the inner diameter value of the second layer structure on the foam is increased again according to the preset increase value, and the judgment between the maximum non-shielding distance and the corrected lens length distance is recalculated according to the increased inner diameter value of the second layer structure until the calculated maximum non-shielding distance is greater than or equal to the total lens length, preferably, the preset increase value of the inner diameter value of the second layer structure on the foam can be set according to the user' S needs each time.
For example, referring to fig. 5, for a SYC7091B lens, since the corrected lens length distance 23.5mm is greater than the maximum non-shielding distance 22.6401mm, it is determined that the SYC7091B lens is shielded by foam, so when foam is modified into double-layer foam and the inner diameter value of the second-layer foam is 22mm, the calculated maximum non-shielding distance Xmax between the second-layer foam and the SYC7091B lens is 25.0836mm, and Xmax is greater than 23.5mm, and therefore, by modifying foam into double-layer foam, shielding of the foam to the lens angle of view is effectively prevented, that is, in this embodiment, by setting the foam into a double-layer structure and increasing the inner diameter value of the second-layer structure on the foam, the maximum non-shielding distance is increased, so as to prevent shielding of the foam to the lens angle of view to be detected. Step S71, obtaining the height distance between the structural cap peak and the view point on the lens to be detected, and carrying out view angle equation calculation according to the height distance, half of the view angle and the view point distance to obtain the maximum extension distance from the structural cap peak to the imaging surface;
specifically, referring to fig. 4, in this step, the view angle equation is calculated according to the height distance, the half view angle and the view point distance, and the view angle equation adopted to obtain the maximum extension distance from the structural cap peak to the imaging surface is:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, θ is the lens angle, θ/2 is the half angle, h is the height distance, xview is the viewpoint distance, h, θ/2, xview are known, and x is the maximum extension distance.
Step S81, obtaining the length distance between the outer edge of the foremost lens and the imaging surface, and calculating the distance difference between the maximum extension distance and the length distance;
the distance difference is the longest distance that the structural cap peak extends out of the foremost lens.
In this embodiment, by adopting a mathematical modeling manner, the optical route simulation problem is converted into a simple and general mathematical equation solution problem, so that the drawing of a 3D structure and the optical route simulation are not required, the operation of staff is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, the efficiency of detecting the lens angle of view is effectively improved, the extensible distance of the corresponding structural cap peak can be effectively calculated by calculating the design of the maximum extension distance, and the installation design of the structural cap peak on the lens to be detected is effectively facilitated.
Example III
Fig. 6 is a schematic diagram illustrating a configuration of a lens angle shielding detection system 100 according to a third embodiment of the present application, corresponding to the lens angle shielding detection method described in the above embodiments, and only the portions related to the embodiments of the present application are illustrated for convenience of explanation.
Referring to fig. 6, the system includes: a lens parameter obtaining module 10, a coordinate system establishing module 11, an occlusion distance calculating module 12 and a view angle occlusion judging module 13, wherein:
the lens parameter obtaining module 10 is configured to obtain lens parameter information of a lens to be detected, where the lens parameter information includes a total lens length, a lens view angle, and a viewpoint distance, and the viewpoint distance is a distance between a lens viewpoint and an imaging plane in the lens to be detected;
the coordinate system establishing module 11 is configured to establish a coordinate system with an intersection point between a central axis of the lens to be detected and an imaging surface as an origin, the central axis as a first coordinate axis, and a diameter direction of the lens to be detected as a second coordinate axis;
and the shielding distance calculation module 12 is configured to obtain a viewpoint coordinate according to the viewpoint distance, and calculate a viewing angle equation according to the viewing angle, the foam inner diameter value and the viewpoint distance, so as to obtain a maximum non-shielding distance, where the maximum non-shielding distance is a maximum safe distance between the imaging surface and a front lens in the lens to be detected.
Wherein, in the occlusion distance calculation module 12, the adopted view angle equation is:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is the inner diameter value of the foam in half, θ is the lens angle of view, θ/2 is the half angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance.
And the view angle shielding judging module 13 is configured to judge that the foam can cause shielding to the view angle of the lens to be detected if the total length of the lens is greater than the maximum non-shielding distance.
Wherein, the view angle shielding judging module 13 is further configured to: acquiring a minimum safety interval between the end face of the lens to be detected and the front-most lens, and calculating the sum of the minimum safety interval and the total length of the lens to obtain a lens length correction distance;
judging whether the lens length correction distance is larger than the maximum non-shielding distance or not;
if the lens length correction distance is larger than the maximum non-shielding distance, judging that the foam can shield the angle of view of the lens to be detected;
if the lens length correction distance is smaller than or equal to the maximum non-shielding distance, judging that the foam cannot shield the angle of view of the lens to be detected.
In addition, in this embodiment, the lens angle of view shielding detection system 100 further includes:
the foam modification prompting module 14 is configured to, when it is determined that the foam will block the view angle of the lens to be detected, set the foam to a double-layer structure, increase the inner diameter value of the second layer structure on the foam according to a preset increase value, send the increased inner diameter value of the second layer structure on the foam to the blocking distance calculating module 12, so that the blocking distance calculating module 12 performs view angle equation calculation again according to the increased inner diameter value of the second layer structure, the view angle and the view point distance to obtain a maximum non-blocking distance, and send the calculated maximum non-blocking distance to the view angle blocking judging module 13 for performing numerical judgment until the viewing angle blocking judging module 13 judges that the calculated maximum non-blocking distance is greater than or equal to the total length of the lens, and preferably, the preset increase value of the inner diameter value of the second layer structure on the foam can be set according to the user's needs each time.
The structural cap peak distance calculation module 15 is configured to obtain a height distance between the structural cap peak on the lens to be detected and the viewpoint, and calculate a view angle equation according to the height distance, a half view angle and the viewpoint distance, so as to obtain a maximum extension distance from the structural cap peak to the imaging plane;
and acquiring the length distance between the outer edge of the foremost lens and the imaging surface, and calculating a distance difference value between the maximum extension distance and the length distance, wherein the distance difference value is the longest distance of the structural cap peak extending out of the foremost lens.
In the structural cap peak distance calculating module 15, the adopted view angle equation is as follows:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, θ is the lens angle, θ/2 is the half angle, h is the height distance, xview is the viewpoint distance, h, θ/2, xview are known, and x is the maximum extension distance.
In this embodiment, by adopting a mathematical modeling manner, the optical route simulation problem is converted into a simple and general mathematical equation solution problem, so that drawing of a 3D structure and optical route simulation are not required, the operation of staff is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, and the efficiency of lens angle detection is effectively improved.
It should be noted that, because the content of information interaction and execution process between the above devices/modules is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Fig. 7 is a schematic structural diagram of a terminal device 2 according to a fourth embodiment of the present application. As shown in fig. 7, the terminal device 2 of this embodiment includes: at least one processor 20 (only one processor is shown in fig. 7), a memory 21 and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, the processor 20 implementing the steps in any of the various method embodiments described above when executing the computer program 22.
The terminal device 2 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 20, a memory 21. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the terminal device 2 and does not constitute a limitation of the terminal device 2, and may include more or less components than illustrated, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 20 may be a central processing unit (Central Processing Unit, CPU), and the processor 20 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 21 may in some embodiments be an internal storage unit of the terminal device 2, such as a hard disk or a memory of the terminal device 2. The memory 21 may in other embodiments also be an external storage device of the terminal device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the terminal device 2. The memory 21 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 21 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, 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 device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 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 manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method for detecting occlusion of a field angle of a lens, the method comprising:
acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises total length of the lens, field angle of view of the lens and viewpoint distance, and the viewpoint distance is the distance between the viewpoint of the lens in the lens to be detected and an imaging surface;
establishing a coordinate system by taking an intersection point between the central axis of the lens to be detected and the imaging surface as an origin, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis;
performing view equation calculation according to the view angle, the foam inner diameter value and the view point distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected;
if the total length of the lens is larger than the maximum non-shielding distance, judging that the foam can shield the angle of view of the lens to be detected;
the visual angle equation adopted for calculating the visual angle equation according to the visual angle, the foam inner diameter value and the visual point distance is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is the inner diameter value of the foam in half, θ is the lens angle of view, θ/2 is the half angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance.
2. The method for detecting occlusion of a field angle of a lens of claim 1, wherein after the step of calculating a view angle equation based on the field angle, the foam inside diameter value, and the viewpoint distance to obtain a maximum non-occlusion distance, the method further comprises:
acquiring a minimum safety interval between the end face of the lens to be detected and the forefront lens, and calculating the sum of the minimum safety interval and the total length of the lens to obtain a corrected lens length distance;
correspondingly, if the total length of the lens is greater than the maximum non-shielding distance, determining that the foam can shield the angle of view of the lens to be detected, specifically:
if the corrected lens length distance is larger than the maximum non-shielding distance, the foam is judged to shield the angle of view of the lens to be detected.
3. The lens angle of view shielding detection method according to claim 1, wherein the method further comprises:
acquiring the height distance between the structural hat brim on the lens to be detected and the view point, and performing view angle equation calculation according to the height distance, half of the view angle and the view point distance to obtain the maximum extension distance from the structural hat brim to the imaging surface;
and acquiring the length distance between the outer edge of the foremost lens and the imaging surface, and calculating a distance difference value between the maximum extension distance and the length distance, wherein the distance difference value is the longest distance of the structural cap peak extending out of the foremost lens.
4. The method for detecting shielding of angle of view of lens according to claim 3, wherein the angle of view equation is calculated according to the height distance, half angle of view and the viewpoint distance, and the angle of view equation adopted to obtain the maximum extension distance from the structural visor to the imaging surface is:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, θ is the lens angle, θ/2 is one half of the lens angle, h is the height distance, and Xview is the viewpoint distance.
5. The method for detecting the occlusion of the angle of view of a lens as set forth in claim 1, wherein after said step of determining that said foam is to occlude the angle of view of the lens to be detected, said method further comprises:
and setting the foam into a double-layer structure, and increasing the inner diameter value of a second layer structure on the foam, so that the maximum non-shielding distance is increased, and shielding of the foam to the field angle of the lens to be detected is prevented.
6. A lens angle of view occlusion detection system, comprising:
the lens parameter acquisition module is used for acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises total length of the lens, view angle of the lens and view point distance, and the view point distance is the distance between the view point of the lens in the lens to be detected and an imaging surface;
the coordinate system establishing module is used for establishing a coordinate system by taking an intersection point between the central axis of the lens to be detected and the imaging surface as an origin, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis;
the shielding distance calculation module is used for calculating a view angle equation according to the view angle, the foam inner diameter value and the view point distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is the maximum safe distance between the imaging surface and the foremost lens in the lens to be detected;
the visual angle shielding judging module is used for judging that the foam can shield the visual angle of the lens to be detected if the total length of the lens is larger than the maximum non-shielding distance;
in the shielding distance calculation module, the adopted view angle equation is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is the inner diameter value of the foam in half, θ is the lens angle of view, θ/2 is the half angle of view, xmax is the maximum non-shielding distance, and Xview is the viewpoint distance.
7. The lens angle of view occlusion detection system of claim 6, further comprising:
the structural cap peak distance calculation module is used for obtaining the height distance between the structural cap peak on the lens to be detected and the view point, and calculating a view angle equation according to the height distance, the half view angle and the view point distance to obtain the maximum extension distance from the structural cap peak to the imaging surface;
and acquiring the length distance between the outer edge of the foremost lens and the imaging surface, and calculating a distance difference value between the maximum extension distance and the length distance, wherein the distance difference value is the longest distance of the structural cap peak extending out of the foremost lens.
8. A terminal device 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 5 when executing the computer program.
9. A storage medium storing a computer program which, when executed by a processor, implements the method of any one of claims 1 to 5.
CN202010326690.5A 2020-04-23 2020-04-23 Lens angle shielding detection method, system, terminal equipment and storage medium Active CN111508034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010326690.5A CN111508034B (en) 2020-04-23 2020-04-23 Lens angle shielding detection method, system, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010326690.5A CN111508034B (en) 2020-04-23 2020-04-23 Lens angle shielding detection method, system, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111508034A CN111508034A (en) 2020-08-07
CN111508034B true CN111508034B (en) 2023-11-24

Family

ID=71870075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010326690.5A Active CN111508034B (en) 2020-04-23 2020-04-23 Lens angle shielding detection method, system, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111508034B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006145955A (en) * 2004-11-22 2006-06-08 Nikon Corp Lens hood and light shielding part adjustment member for the lens hood
CN204100990U (en) * 2014-07-03 2015-01-14 冯晓锋 A kind of Structure Precision of Single Camera Stereo Vision sensor device based on mirror imaging
CN206506590U (en) * 2017-02-27 2017-09-19 浙江宇视科技有限公司 Camera lens light-shielding structure and video camera
CN107368656A (en) * 2017-07-24 2017-11-21 北京芘苜信息技术有限公司 Method based on the simulation of BIM+ safety monitorings and blind Range Analysis
CN108737721A (en) * 2018-04-11 2018-11-02 浙江大华技术股份有限公司 A kind of video camera limit adjusting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006145955A (en) * 2004-11-22 2006-06-08 Nikon Corp Lens hood and light shielding part adjustment member for the lens hood
CN204100990U (en) * 2014-07-03 2015-01-14 冯晓锋 A kind of Structure Precision of Single Camera Stereo Vision sensor device based on mirror imaging
CN206506590U (en) * 2017-02-27 2017-09-19 浙江宇视科技有限公司 Camera lens light-shielding structure and video camera
CN107368656A (en) * 2017-07-24 2017-11-21 北京芘苜信息技术有限公司 Method based on the simulation of BIM+ safety monitorings and blind Range Analysis
CN108737721A (en) * 2018-04-11 2018-11-02 浙江大华技术股份有限公司 A kind of video camera limit adjusting method and device

Also Published As

Publication number Publication date
CN111508034A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN111830049B (en) Brake disc wear area identification method and wear identification system
CN111695429B (en) Video image target association method and device and terminal equipment
CN110489015B (en) Touch point determining method and device, touch screen and display
CN110648296B (en) Pupil color correction method, correction device, terminal device and storage medium
CN112689221B (en) Recording method, recording device, electronic equipment and computer readable storage medium
CN112330715A (en) Tracking method, tracking device, terminal equipment and readable storage medium
CN111126257B (en) Behavior detection method and device
CN110472561B (en) Football goal type identification method, device, system and storage medium
CN111508034B (en) Lens angle shielding detection method, system, terminal equipment and storage medium
CN105809117A (en) Information prompt method and user terminal
CN112001883A (en) Method and device for optimizing vehicle target image and computer equipment
CN107526955B (en) Screen-off unlocking method and device
CN113469021A (en) Video processing apparatus, electronic device, and computer-readable storage medium
CN112629828B (en) Optical information detection method, device and equipment
CN112217992A (en) Image blurring method, image blurring device, mobile terminal, and storage medium
CN114943805B (en) Parking shielding determination method, device, equipment, storage medium and program product
EP4261781A1 (en) Optical center determination method and apparatus, electronic device, and medium
CN111045026B (en) Method and device for identifying pose of charging pile
CN112416128B (en) Gesture recognition method and terminal equipment
CN113870292A (en) Edge detection method and device for depth image and electronic equipment
CN112214135B (en) Multi-touch identification method, device and equipment for infrared touch screen
EP4068151A1 (en) Linear processing method and apparatus in face image, terminal device, and storage medium
CN111429399B (en) Linear detection method and device
CN113674217A (en) Glare detection method, device, equipment and storage medium
CN113313968A (en) Parking space detection method and storage medium

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