CN111508034A - Lens field angle occlusion detection method and system, terminal device and storage medium - Google Patents

Lens field angle occlusion detection method and system, terminal device and storage medium Download PDF

Info

Publication number
CN111508034A
CN111508034A CN202010326690.5A CN202010326690A CN111508034A CN 111508034 A CN111508034 A CN 111508034A CN 202010326690 A CN202010326690 A CN 202010326690A CN 111508034 A CN111508034 A CN 111508034A
Authority
CN
China
Prior art keywords
lens
distance
detected
angle
foam
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.)
Granted
Application number
CN202010326690.5A
Other languages
Chinese (zh)
Other versions
CN111508034B (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

Images

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 lens field angle occlusion detection method, a system, a terminal device and a storage medium, 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 original point, the central axis as a first coordinate axis and the diameter direction of the lens to be detected as a second coordinate axis; and performing viewing angle equation calculation according to the viewing angle, the foam inner diameter value and the viewpoint distance to obtain the maximum non-shielding distance, and judging that the foam can shield the viewing angle of the lens to be detected if the total length of the lens is greater than the maximum non-shielding distance. The optical path 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 field angle occlusion detection method and system, terminal device and storage medium
Technical Field
The present application belongs to the field of lens field angle detection, and in particular, to a lens field angle occlusion detection method, system, terminal device, and storage medium.
Background
In the field of security monitoring or electronic products with cameras, attention needs to be paid to whether the field angle of a lens can be shielded by a structure or not during structural design. For a network camera (IPC), different focal lengths can share the same shell, in order to ensure that the foam in the designed shell can be compatible with lenses with different lengths and different field angles, a structural engineer needs to detect whether the field angles of the different lenses can be shielded by the foam, so as to ensure that the mounted lens cannot be shielded in the working process.
In the existing lens field angle occlusion detection process, after a 3D structure chart of an installation structure between a lens and foam is drawn, the field angle occlusion detection is performed in an optical route simulation mode, but the drawing of the 3D structure chart is complicated, so that the operation of workers is complicated, the detection time is long, people with a structure professional or optical professional knowledge background are required to perform detection, the detection threshold is high, and the lens field angle detection efficiency is low.
Disclosure of Invention
The embodiment of the application provides a method, a system, a terminal device and a storage medium for detecting the shielding of a lens field angle, and aims to solve the problem of low detection efficiency of the shielding of the lens field angle caused by the fact that a 3D structure diagram is established for simulating an optical route in the existing detection process of the shielding of the lens field angle.
In a first aspect, an embodiment of the present application provides a method for detecting occlusion of a field angle of a lens, where the method includes:
acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises 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 surface in the lens to be detected;
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 viewing angle equation calculation according to the viewing angle, the foam inner diameter value and the viewpoint distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is a maximum safe distance between the imaging surface and a front lens in the lens to be detected;
and if the total length of the lens is greater than the maximum non-shielding distance, judging that the foam can shield the field angle of the lens to be detected.
Compared with the prior art, the embodiment of the application has the advantages that: by adopting a mathematical modeling mode, the problem of optical path simulation is converted into a simple and general mathematical equation solving problem, so that drawing of a 3D structure and optical path simulation are not required, the operation of workers is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professional personnel, and the lens field angle detection efficiency is effectively improved.
Further, the angle of view equation used for calculating the angle of view equation according to the angle of view, the foam inner diameter value and the viewpoint distance is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is a half of the inner diameter value of the foam, theta is the field angle of the lens, theta/2 is a half of the field angle, Xmax is the maximum non-shielding distance, and XView is the viewpoint distance.
Further, after the step of calculating a viewing angle equation according to the viewing angle, the foam inner diameter value and the viewpoint distance to obtain the maximum non-occlusion distance, the method further includes:
acquiring a minimum safety interval between the end face of the lens to be detected and the frontmost 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, it is determined that the foam can shield the field angle of the lens to be detected, specifically:
and if the corrected lens length distance is larger than the maximum non-shielding distance, judging that the foam can shield the field angle of the lens to be detected.
Further, the method further comprises:
acquiring the height distance between the structural brim on the lens to be detected and the viewpoint, and calculating a view angle equation according to the height distance, a half view angle and the viewpoint distance to obtain the maximum extension distance from the structural brim to the imaging surface;
and acquiring 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, wherein the distance difference is the longest distance of the structural brim extending out of the foremost lens.
Further, the angle of view equation calculation is performed according to the height distance, the half field angle and the viewpoint distance, and the angle of view equation used for obtaining the maximum extension distance from the structural visor to the imaging surface is as follows:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, theta is the lens field angle, theta/2 is a half field angle, h is the height distance, and XView is the viewpoint distance.
Further, after the step of determining that the foam blocks the field angle of the lens to be detected, the method further includes:
and setting the foam to be of a double-layer structure, and increasing the inner diameter value of a second-layer structure on the foam to increase the maximum non-shielding distance so as to prevent the foam from shielding the field angle of the lens to be detected.
In a second aspect, an embodiment of the present application provides a lens field angle occlusion detection system, including:
the system comprises a lens parameter acquisition module, a lens parameter acquisition module and a control module, wherein the lens parameter acquisition module is used for acquiring lens parameter information of a lens to be detected, the lens parameter information comprises the total lens length, the lens field angle and the viewpoint distance, and the viewpoint distance is the distance between the lens viewpoint and an imaging surface in the lens to be detected;
the coordinate system establishing module is used for 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, 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 viewpoint 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 greater than the maximum non-shielding distance.
Further, the lens view angle occlusion detection system further includes:
the structural brim distance calculation module is used for acquiring the height distance between the structural brim on the lens to be detected and the viewpoint, and performing viewing angle equation calculation according to the height distance, the half viewing angle and the viewpoint distance to obtain the maximum extension distance from the structural brim to the imaging surface;
and acquiring 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, wherein the distance difference is the longest distance of the structural brim extending out of the foremost lens.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the method described above.
In a fourth aspect, the present application provides a storage medium storing a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the lens view angle occlusion detection method according to any one of the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a flowchart of a lens field angle occlusion detection method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a lens to be detected according to a first embodiment of the present application;
fig. 3 is a flowchart of a lens view angle occlusion 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 detected according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of a lens field angle occlusion 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 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 and includes any and all possible combinations of one or more of the associated listed items.
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 expressly specified otherwise.
Example one
Please refer to fig. 1, which is a flowchart of a lens view angle occlusion detection method according to a first embodiment of the present application, including the steps of:
step S10, acquiring lens parameter information of the lens to be detected;
the lens parameter information includes a total lens length, a lens field angle and a viewpoint distance, where the viewpoint distance is a distance between a lens viewpoint and an imaging surface in the lens to be detected, for example, a lens of type YT1028 has a total lens length of 22.47mm, a lens field angle of 62 °, and a viewpoint distance from the imaging surface of 15.08 mm.
Step S20, 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;
referring to fig. 2, in the present embodiment, a central axis of the lens to be detected is taken as an X axis, a diameter direction of the lens is taken as a Y axis, and an intersection point between the central axis and the imaging plane is taken as an origin O.
Step S30, calculating a 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 maximum non-blocking distance is the maximum safe distance between the imaging surface and the front lens in the lens to be detected, namely the maximum non-blocking distance indicates that the field angle cannot be blocked by foam when the distance between the imaging surface and the front lens is smaller than or equal to the maximum non-blocking distance.
Preferably, before the step of calculating a viewing angle equation according to the viewing angle, the foam inner diameter value and the viewpoint distance to obtain the maximum non-occlusion distance, the method further includes:
obtaining a viewpoint coordinate according to the viewpoint distance;
here, the point P is the viewpoint coordinate, and since the viewpoint distance is 15.08mm, the viewpoint coordinate obtained is (15.08, 0).
In the step, when the inner edge of the side, away from the lens, of the foam falls on the field line of the lens, the obtained X is the maximum non-shielding distance, namely, the connecting line between the P point and the inner edge of the side, away from the lens, of the foam is the field line when the foam is just not shielded, the included angle theta/2 between the P point and the X axis is the half field angle, namely theta is the field angle of the lens.
Specifically, in this step, the view angle equation used for calculating the view angle equation according to the view angle, the foam inner diameter value, and the viewpoint distance is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is a half of the inner diameter value of the foam, theta is the field angle of the lens, theta/2 is a half field angle, Xmax is the maximum non-shielding distance, and XView is the field angle distance;
taking a lens of model YT1028 as an example, the diameter of the lens is 14mm, the inner diameter value of the foam is generally consistent with the outer diameter value of the lens, and 14mm is taken, so that the vertical distance from the inner circle of the foam to the center of the lens to be detected is 7mm, and y is 7:
7=tan(62°/2)*Xmax-tan(62°/2)*15.08;
therefore, the value of Xmax is calculated to be 26.7292mm, that is, the angle of view of the lens to be detected is not blocked when the distance of the imaging surface from the foremost lens is 26.7292 mm.
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, it is determined that the field angle of the lens to be detected is not shielded by foam, that is, since the total length 22.47mm of the lens of the YT1028 lens is smaller than 26.7292mm, the field angle of the lens of the YT1028 lens is not shielded by foam.
If the total length of the lens is greater than the maximum non-shielding distance, executing step S50;
and step S50, judging that the foam can block the field angle of the lens to be detected.
In the embodiment, the problem of optical path simulation is converted into a simple and general mathematical equation solving problem by adopting a mathematical modeling mode, so that drawing of a 3D structure and optical path simulation are not required, the operation of workers is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, and the lens field angle detection efficiency is effectively improved.
Example two
Please refer to fig. 3, which is a flowchart of a lens view angle occlusion detection method according to a second embodiment of the present application, including the steps of:
step S11, acquiring lens parameter information of the lens to be detected;
the lens parameter information comprises the total lens length, the lens field angle and the viewpoint distance, and the viewpoint distance is the distance between the lens viewpoint and the imaging surface in the lens to be detected.
Step S21, establishing a coordinate system by taking the 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;
step S31, obtaining a viewpoint coordinate according to the viewpoint distance, and calculating a 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 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 used for calculating the view angle equation according to the view angle, the foam inner diameter value, and the viewpoint distance is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
y is a half of the inner diameter value of the foam, namely y is the vertical distance from the inner circle of the foam to the center of the lens to be detected, theta is the angle of view of the lens, theta/2 is a half angle of view, Xmax is the maximum non-shielding distance, and Xview is the distance of the viewpoint.
Taking a SYC7091B lens as an example, the total lens length (TT L) is 22.5mm, the viewing angle is 146 °, the viewpoint distance is 20.5mm, and when the inner diameter value of the foam is equal to the outer diameter value of the lens, 14mm, and y is equal to 7, then:
7=tan(146°/2)*Xmax-tan(146°/2)*20.5;
therefore, the value of Xmax is calculated to be 22.6401mm, that is, the angle of view of the lens to be detected is not blocked when the distance of the imaging surface from the foremost lens is 22.6401 mm.
Step S41, acquiring the minimum safe interval between the end surface of the lens to be detected and the frontmost lens, and calculating the sum of the minimum safe interval and the total length of the lens to obtain the corrected length distance of the lens;
wherein, because there is a safe interval distance between the lens and the frontmost lens to prevent the interference between the lens and the frontmost lens, the step corrects the total length of the lens to be detected by calculating the sum of the minimum safe interval and the total length of the lens.
Preferably, the safety separation distance may be 0.5mm, and thus, for a lens of SYC7091B, the corrected lens length distance is 23.5 mm.
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-occlusion distance, performing step S61;
step S61, judging that the foam can shield the field angle of the lens to be detected;
for the SYC7091B lens, the corrected lens length distance 23.5mm is greater than the maximum non-blocking distance 22.6401mm, so that it is determined that the SYC7091B lens is blocked by foam, and for the YT1028 lens, the corrected lens length distance 22.47+1 is 23.47mm which is smaller 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 blocks the field angle of the lens to be detected, the method further includes:
setting the foam to be a double-layer structure, and increasing the inner diameter value of a second layer structure on the foam to increase the maximum non-shielding distance so as to prevent the foam from shielding the field angle of the lens to be detected;
specifically, under the general condition, the cotton internal diameter of bubble is unanimous with the camera lens external diameter, uses the cotton internal diameter of bubble to obtain the biggest distance of not sheltering from in essence, if sheltering from consequently appearing, can be through using double-deck bubble cotton, increased the cotton internal diameter of second floor bubble promptly to make the biggest distance of not sheltering from increase, realize that the angle of vision is not sheltered from.
In this step, the inner diameter value of the second layer structure on the foam is increased according to a preset increase value, the viewing angle and the viewpoint distance are calculated again according to the increased inner diameter value of the second layer structure on the foam to obtain the maximum non-shielding distance, the step S51 is returned to judge whether the corrected lens length distance is larger than the currently calculated maximum non-shielding distance again, when the corrected lens length distance is judged to be still larger 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, 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 recalculated maximum non-shielding distance is larger than or equal to the total lens length, stopping the increase of the inner diameter value of the second layer structure on the foam, preferably, setting the value of the preset increase value of the inner diameter value of the second layer structure on the foam according to the user requirement.
For example, referring to fig. 5, for a SYC7091B lens, since the corrected lens length distance 23.5mm is greater than the maximum non-occlusion distance 22.6401mm, it is determined that the SYC7091B lens is occluded by foam, and therefore, when the foam is modified into a double-layer foam and the inner diameter value of the second-layer foam is 22mm, the maximum non-occlusion distance Xmax calculated between the second-layer foam and the SYC7091B lens is 25.0836mm and Xmax is greater than 23.5mm, and therefore, by modifying the foam into the double-layer foam, the occlusion of the foam on the field angle of the lens is effectively prevented, that is, in the embodiment, the foam is set to be a double-layer structure and the inner diameter value of the second-layer structure on the foam is increased, so that the maximum non-occlusion distance is increased, so as to prevent the foam from occluding the field angle of the lens to be detected. Step S71, acquiring the height distance between the structural brim and the viewpoint on the lens to be detected, and calculating a view angle equation according to the height distance, the half view angle and the viewpoint distance to obtain the maximum extension distance from the structural brim to an imaging surface;
specifically, referring to fig. 4, in this step, the angle of view equation calculation is performed according to the height distance, the half angle of view, and the viewpoint distance, and the angle of view equation used to obtain the maximum extending distance from the structural visor to the imaging plane is as follows:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, theta is the lens field angle, theta/2 is a half field angle, h is the height distance, XView is the viewpoint distance, h, theta/2, XView are known, and the found x is the maximum extension distance.
Step S81, acquiring 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;
wherein the distance difference is the longest distance that the structural visor extends out of the foremost lens.
In this embodiment, through adopting the mathematical modeling mode, convert the optical path simulation problem into simple general mathematical equation and solve the problem, make need not to carry out drawing and the optical path simulation of 3D structure, the operation of staff has been simplified, the evaluation personnel professional threshold has been reduced, be applicable to personnel of non-optics and structure specialty, the effectual efficiency that improves the camera lens angle of vision and detect, through calculating the design of maximum extension distance, can effectual calculation correspond the extensible distance of structure brim of a hat, the effectual installation design that has made things convenient for the last structure brim of a hat of waiting to detect the camera lens.
EXAMPLE III
Fig. 6 shows a schematic structural diagram of a lens field angle occlusion detection system 100 provided in the third embodiment of the present application, corresponding to the lens field angle occlusion detection method described in the foregoing embodiments, and only shows portions related to the embodiments of the present application for convenience of description.
Referring to fig. 6, the system includes: the system comprises a lens parameter acquisition module 10, a coordinate system establishment module 11, a shielding distance calculation module 12 and a visual angle shielding judgment module 13, wherein:
the system comprises a lens parameter acquiring module 10, a lens parameter acquiring module and a control module, wherein the lens parameter acquiring module is used for acquiring lens parameter information of a lens to be detected, the lens parameter information comprises a total lens length, a lens field angle and a viewpoint distance, and the viewpoint distance is a distance between a lens viewpoint and an imaging surface in the lens to be detected;
a coordinate system establishing module 11, configured to establish a coordinate system with an intersection point between a central axis of the to-be-detected lens and the imaging plane as an origin, the central axis as a first coordinate axis, and a diameter direction of the to-be-detected lens 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 perform viewing angle equation calculation according to the viewing angle, the foam inner diameter value, and the viewpoint distance 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-most lens in the to-be-detected lens.
In the occlusion distance calculation module 12, the view angle equation is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is a half of the inner diameter value of the foam, theta is the field angle of the lens, theta/2 is a half of the field angle, Xmax is the maximum non-shielding distance, and XView is the viewpoint distance.
And the visual angle shielding judging module 13 is configured to judge that the foam shields the visual 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 shielding judgment module 13 is further configured to: acquiring a minimum safety interval between the end face of the lens to be detected and the frontmost 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;
if the lens length correction distance is larger than the maximum non-shielding distance, judging that the foam can shield the field angle of the lens to be detected;
and if the lens length correction distance is smaller than or equal to the maximum non-shielding distance, judging that the foam does not shield the field angle of the lens to be detected.
In addition, in this embodiment, the lens view angle occlusion detection system 100 further includes:
the foam modification prompting module 14 is configured to, when it is determined that the foam blocks the field angle of the lens to be detected, set the foam to be a double-layer structure, increase an inner diameter value of a second-layer structure on the foam according to a preset increase value, and send the increased inner diameter value of the second-layer structure on the foam to the blocking distance calculation module 12, so that the blocking distance calculation module 12 performs viewing angle equation calculation again according to the increased inner diameter value of the second-layer structure, the field angle, and the viewpoint distance to obtain a maximum non-blocking distance, and sends the maximum non-blocking distance obtained by recalculation to the viewing angle blocking determination module 13 for numerical determination, until the viewing angle blocking determination module 13 determines that the maximum non-blocking distance obtained by recalculation is greater than or equal to the total length of the lens, stop increasing the inner diameter value of the second-layer structure on the foam, 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 requirement.
The structural brim distance calculating module 15 is configured to obtain a height distance between a structural brim on the lens to be detected and the viewpoint, and perform view angle equation calculation according to the height distance, a half view angle and the viewpoint distance to obtain a maximum extending distance from the structural brim to the imaging surface;
and acquiring 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, wherein the distance difference is the longest distance of the structural brim extending out of the foremost lens.
In the structural visor distance calculation module 15, the view angle equation is as follows:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, theta is the lens field angle, theta/2 is a half field angle, h is the height distance, XView is the viewpoint distance, h, theta/2, XView are known, and the found x is the maximum extension distance.
In the embodiment, the problem of optical path simulation is converted into a simple and general mathematical equation solving problem by adopting a mathematical modeling mode, so that drawing of a 3D structure and optical path simulation are not required, the operation of workers is simplified, the professional threshold of an evaluator is reduced, the method is suitable for non-optical and structural professionals, and the lens field angle detection efficiency is effectively improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/modules, 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 reference may be made to the part of the embodiment of the method specifically, and details are not described here.
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 steps of any of the various method embodiments described above being implemented when the computer program 22 is executed by the processor 20.
The terminal device 2 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 20, a memory 21. Those skilled in the art will appreciate that fig. 7 is only an example of the terminal device 2, and does not constitute a limitation to the terminal device 2, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 20 may be a Central Processing Unit (CPU), and the Processor 20 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, 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), etc. further, the memory 21 may also comprise 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, applications, a Boot loader (Boot L loader), data and other programs, such as program codes of the computer program, etc. the memory 21 may also be used for temporarily storing data that has been or will be output.
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 implementation. 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 substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A lens field angle occlusion detection method, the method comprising:
acquiring lens parameter information of a lens to be detected, wherein the lens parameter information comprises 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 surface in the lens to be detected;
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 viewing angle equation calculation according to the viewing angle, the foam inner diameter value and the viewpoint distance to obtain a maximum non-shielding distance, wherein the maximum non-shielding distance is a maximum safe distance between the imaging surface and a front lens in the lens to be detected;
and if the total length of the lens is greater than the maximum non-shielding distance, judging that the foam can shield the field angle of the lens to be detected.
2. The lens view angle occlusion detection method according to claim 1, wherein the view angle equation used for the calculation of the view angle equation according to the view angle, the foam inner diameter value and the viewpoint distance is as follows:
y=tan(θ/2)*Xmax-tan(θ/2)*Xview
wherein y is a half of the inner diameter value of the foam, theta is the field angle of the lens, theta/2 is a half of the field angle, Xmax is the maximum non-shielding distance, and XView is the viewpoint distance.
3. The lens field angle occlusion detection method of claim 1, wherein after the step of performing a view angle equation calculation according to 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 frontmost 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, it is determined that the foam can shield the field angle of the lens to be detected, specifically:
and if the corrected lens length distance is larger than the maximum non-shielding distance, judging that the foam can shield the field angle of the lens to be detected.
4. The lens field angle occlusion detection method of claim 1, further comprising:
acquiring the height distance between the structural brim on the lens to be detected and the viewpoint, and calculating a view angle equation according to the height distance, a half view angle and the viewpoint distance to obtain the maximum extension distance from the structural brim to the imaging surface;
and acquiring 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, wherein the distance difference is the longest distance of the structural brim extending out of the foremost lens.
5. The lens field angle occlusion detection method according to claim 4, wherein the angle of view equation calculation is performed according to the height distance, the half field angle and the viewpoint distance, and the angle of view equation used to obtain the maximum extension distance from the structural visor to the imaging plane is as follows:
h=tan(θ/2)*x-tan(θ/2)*Xview;
wherein x is the maximum extension distance, theta is the lens field angle, theta/2 is a half field angle, h is the height distance, and XView is the viewpoint distance.
6. The method for detecting occlusion of an angle of view of a lens according to claim 1, wherein after the step of determining that the foam blocks the angle of view of the lens to be detected, the method further comprises:
and setting the foam to be of a double-layer structure, and increasing the inner diameter value of a second-layer structure on the foam to increase the maximum non-shielding distance so as to prevent the foam from shielding the field angle of the lens to be detected.
7. A lens field angle occlusion detection system, comprising:
the system comprises a lens parameter acquisition module, a lens parameter acquisition module and a control module, wherein the lens parameter acquisition module is used for acquiring lens parameter information of a lens to be detected, the lens parameter information comprises the total lens length, the lens field angle and the viewpoint distance, and the viewpoint distance is the distance between the lens viewpoint and an imaging surface in the lens to be detected;
the coordinate system establishing module is used for 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, 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 viewpoint 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 greater than the maximum non-shielding distance.
8. The lens field occlusion detection system of claim 7, further comprising:
the structural brim distance calculation module is used for acquiring the height distance between the structural brim on the lens to be detected and the viewpoint, and performing viewing angle equation calculation according to the height distance, the half viewing angle and the viewpoint distance to obtain the maximum extension distance from the structural brim to the imaging surface;
and acquiring 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, wherein the distance difference is the longest distance of the structural brim extending out of the foremost lens.
9. 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 6 when executing the computer program.
10. A storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.
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 true CN111508034A (en) 2020-08-07
CN111508034B 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
CN111508034B (en) 2023-11-24

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
WO2014106445A1 (en) Method and apparatus for detecting backlight
CN111127497B (en) Robot and stair climbing control method and device thereof
WO2017206444A1 (en) Method and device for detecting imaging difference, and computer storage medium
CN110489015B (en) Touch point determining method and device, touch screen and display
US20210056710A1 (en) Video object detection
CN110738078A (en) face recognition method and terminal equipment
CN112330715A (en) Tracking method, tracking device, terminal equipment and readable storage medium
CN107748882B (en) Lane line detection method and device
CN105809117A (en) Information prompt method and user terminal
US11017557B2 (en) Detection method and device thereof
CN113469021A (en) Video processing apparatus, electronic device, and computer-readable storage medium
US10965858B2 (en) Image processing apparatus, control method thereof, and non-transitory computer-readable storage medium for detecting moving object in captured image
CN109886864B (en) Privacy mask processing method and device
CN107563338B (en) Face detection method and related product
CN111508034A (en) Lens field angle occlusion detection method and system, terminal device and storage medium
CN113286086A (en) Camera use control method and device, electronic equipment and storage medium
CN107111757B (en) Lane line detection method and device
CN114943805B (en) Parking shielding determination method, device, equipment, storage medium and program product
CN113033456B (en) Method and device for determining grounding point of vehicle wheel, road side equipment and cloud control platform
EP4068151A1 (en) Linear processing method and apparatus in face image, terminal device, and storage medium
CN112629828B (en) Optical information detection method, device and equipment
CN111045026B (en) Method and device for identifying pose of charging pile
CN114252886A (en) Obstacle contour determination method, device, equipment 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