CN107734324B - Method and system for measuring illumination uniformity of flash lamp and terminal equipment - Google Patents

Method and system for measuring illumination uniformity of flash lamp and terminal equipment Download PDF

Info

Publication number
CN107734324B
CN107734324B CN201710939467.6A CN201710939467A CN107734324B CN 107734324 B CN107734324 B CN 107734324B CN 201710939467 A CN201710939467 A CN 201710939467A CN 107734324 B CN107734324 B CN 107734324B
Authority
CN
China
Prior art keywords
camera
flash lamp
measuring
point
determining
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
CN201710939467.6A
Other languages
Chinese (zh)
Other versions
CN107734324A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710939467.6A priority Critical patent/CN107734324B/en
Publication of CN107734324A publication Critical patent/CN107734324A/en
Application granted granted Critical
Publication of CN107734324B publication Critical patent/CN107734324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The invention is suitable for the technical field of communication, and provides a method, a system and a terminal device for measuring the illumination uniformity of a flash lamp, wherein the method comprises the following steps: determining a virtual measuring point of the illumination of the flash lamp to be measured on a designated picture according to the viewing distance of the camera corresponding to the flash lamp to be measured; acquiring a view field of the camera, and determining a measuring point corresponding to the virtual measuring point in the view field of the camera; and acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance. In the process, the virtual measuring point in the appointed picture can be determined according to the framing distance of the camera, and the measuring point of the illumination uniformity of the flash lamp can be determined according to the virtual measuring point, so that the illumination uniformity of the flash lamp can be detected.

Description

Method and system for measuring illumination uniformity of flash lamp and terminal equipment
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method and a system for measuring illumination uniformity of a flash lamp and terminal equipment.
Background
With the continuous development of communication technology, the photographing function has become a common application function of the intelligent terminal. At present, the cameras are mostly arranged in the intelligent terminals, so that the photographing function of the intelligent terminals is realized. Generally speaking, the intelligent terminal provided with the camera can be provided with a flash lamp, and the flash lamp is used for assisting the camera to shoot pictures when the light is poor. The uniformity of the illumination of the flash lamp is an important parameter for evaluating the effect of the flash lamp, when the intelligent terminal leaves a factory, manufacturers often measure the uniformity of the illumination of the flash lamp, and the uniformity test of the illumination of the flash lamp is used for testing the difference degree of the relative illumination of the flash lamp in the center and four corners of a Field of View (FOV) area of a camera. At present, when the uniformity of the illumination of a flash lamp is measured, the position of a camera is often adjusted manually, the relative illumination of the center and four corner areas of a camera FOV area can be detected, the process is complicated, and the accuracy of position determination is low.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, a system, and a terminal device for measuring uniformity of flash lamp illumination, so as to solve the problems in the prior art that when the uniformity of flash lamp illumination is measured, a search process of a determination position is complicated, and accuracy is low.
A first aspect of an embodiment of the present invention provides a method for measuring uniformity of flash lamp illuminance, where the method includes:
determining a virtual measuring point of the illumination of the flash lamp to be measured on a designated picture according to the viewing distance of the camera corresponding to the flash lamp to be measured;
acquiring a view field of the camera, and determining measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
and acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance.
A second aspect of an embodiment of the present invention provides a system for measuring illuminance uniformity of a flash lamp, including:
the virtual measurement point determining unit is used for determining a virtual measurement point of the illumination of the flash lamp to be measured on the appointed picture according to the framing distance of the camera corresponding to the flash lamp to be measured;
the measuring point determining unit is used for acquiring a view field of the camera and determining measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
and the illumination obtaining unit is used for obtaining the illumination of the flash lamp to be measured at the measuring point and determining the uniformity of the illumination of the flash lamp according to the illumination.
A third aspect of embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as any one of the methods for measuring uniformity of flash illuminance when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as in any one of the methods of measuring uniformity of flash illuminance.
In the embodiment provided by the application, a virtual measurement point of the illumination of the flash lamp to be measured on a designated picture is determined according to the framing distance of the camera corresponding to the flash lamp to be measured; acquiring a view field of the camera, and determining a measuring point corresponding to the virtual measuring point in the view field of the camera; and acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance. In the process, the virtual measuring point in the appointed picture can be determined according to the framing distance of the camera, and the measuring point of the illumination uniformity of the flash lamp can be determined according to the virtual measuring point, so that the illumination uniformity of the flash lamp can be detected.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for measuring illuminance uniformity of a flash lamp according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a designated picture in a method for measuring uniformity of flash lamp illuminance according to an embodiment of the present invention;
fig. 3 is a block diagram of a system for measuring illuminance uniformity of a flash lamp according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to a third embodiment of the present invention.
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 invention. It will be apparent, however, to one skilled in the art that the present invention 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 invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
fig. 1 shows a schematic implementation process diagram of a method for measuring illuminance uniformity of a flash lamp provided in an embodiment of the present application, which is detailed as follows:
step S11, determining a virtual measuring point of the illumination of the flash lamp to be measured on a designated picture according to the framing distance of the camera corresponding to the flash lamp to be measured;
in the embodiment provided by the application, when the illuminance uniformity of a flash lamp in a terminal is measured, the framing distance of a camera corresponding to the flash lamp to be measured is called first, wherein the framing distance refers to the distance between the framing position and the central point of the field of view of the camera.
Alternatively, the viewing distance may be set to be plural in order to accurately measure the uniformity of the illuminance of the flash to be measured at different distances. For example, for a camera with a 90 ° field of view, the viewing distances are set to 0.5m, 1m, 1.5m, and the like, respectively.
When a virtual measuring point on a designated picture is determined, the designated picture is placed at an equal distance from the view finding distance of a camera, the light in the preset range of the designated picture is adjusted to a preset value, and then an image of the designated picture is acquired through a preview interface of the camera, wherein the designated picture is square; and acquiring points on the diagonal of the specified picture, which are the same as the viewing distance from the intersection point of the diagonal, and taking two points on the same diagonal as virtual measurement points.
Preferably, the designated picture comprises a picture in a Chinese character 'mi', as shown in fig. 2.
Preferably, the virtual measurement points may be 2 or 4 or other numerical values of multiples of 2.
Optionally, before determining a virtual measurement point of the illuminance of the flash lamp on a preset image according to the viewing distance of the camera corresponding to the flash lamp to be measured, the method includes:
and acquiring relevant information of a camera corresponding to the flash lamp to be detected, wherein the relevant information comprises the framing distance of the camera.
Specifically, before determining the virtual measurement point, first, relevant information of a camera corresponding to a flash to be measured is acquired, where the relevant information includes: the viewing distance of the camera, the field of view of the camera and the like; the viewing distance is a viewing distance preset by a user when the viewing distance is used for testing the illuminance uniformity of a flash lamp corresponding to the camera. The field of view of the camera is used for subsequently determining the position or/and the number of the measuring points of the flash lamp illumination in the field of view of the camera.
Preferably, the determining a virtual measurement point of the illuminance of the flash to be measured on the designated picture according to the viewing distance of the camera corresponding to the flash to be measured includes:
acquiring a central point of the designated picture;
acquiring a circumference formed by taking the central point as a circle center and taking the length of the framing distance of the camera corresponding to the flash lamp to be measured as a radius;
acquiring intersection points of the circumference and preset characters in the designated picture, wherein the number of the intersection points is more than or equal to 2;
and taking paired intersection points in the intersection points as the virtual measurement points, wherein the paired intersection points and the central point are on the same straight line.
Specifically, when determining the uniformity of the illuminance of the flash lamp to be measured, a preset specified picture for determining the virtual measurement point is obtained first, and preferably, the specified picture includes preset characters, such as a "meter" character or a "cross" character. When the preset characters are in a shape of Chinese character 'mi', setting the 'Chinese character' in the central position of the appointed picture so as to enable the appointed picture to be in central symmetry; at the moment, the intersection point of each stroke of the Chinese character 'mi' is the central point of the appointed picture; as shown in fig. 2, a point O in the diagram is a center point of the designated picture. And marking the intersection points of the circumference and the preset characters by taking the central point as the center of a circle and the framing distance of the camera as a radius, wherein two or more intersection points can be marked according to measurement requirements during marking, such as A, B, C, D four intersection points in fig. 2.
Alternatively, since the viewing distance may be a plurality of different values, a scale may be provided on the designated picture starting from the center point, and the length of the scale changes with the change of the viewing distance and is kept as long as the viewing distance. At this time, when the viewing distances are different, the central point can be used as the circle center, the length of the scale is used as the radius, and different circumferences are formed to be intersected with the preset characters.
When the virtual measuring point is selected, in order to better determine the uniformity of the illuminance of the flash lamp to be measured, a pair of intersection points forming a straight line with the central point are taken as the virtual measuring points, such as the intersection points A, C or B, D in fig. 2. At least one pair of the selected virtual measuring points is selected, namely the virtual measuring points at least comprise two.
Optionally, the number of the virtual measurement points may be determined by the size of the field of view of the camera, and the number of the virtual measurement points selected when the field of view of the camera is large is correspondingly increased.
Step S12, acquiring the view field of the camera, and determining the measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
acquiring a view field of a camera, and determining the relative coordinates of the virtual measuring points by taking the central point of the specified picture as a coordinate origin; and adjusting the range of the camera view field to coincide with the circumference formed in the designated picture, and determining the relative coordinates of the measuring points corresponding to the virtual measuring points in the camera view field according to the position relationship between the designated picture and the camera and the relative coordinates of the virtual measuring points so as to finally determine the positions of the measuring points.
Optionally, in order to quickly determine the position of the measurement point, the central point of the field of view of the camera and the central point of the designated picture may be adjusted to be at the same height, and at this time, a connection line between the central point of the field of view and the central point of the designated picture is parallel to the ground plane.
Preferably, the acquiring the field of view of the camera and determining the measurement point corresponding to the virtual measurement point in the field of view of the camera includes:
adjusting the position of the camera so that a preset graph in a preview interface of the camera is superposed with the specified picture;
and determining the position of the measuring point in the preset graph according to the position of the virtual measuring point in the appointed picture.
Specifically, when a measurement point in the field of view of the camera is determined according to the virtual measurement point, the position of the camera is adjusted, a preset graph preset in a preview interface of the camera is called, and when the position of the camera is adjusted, the preset graph and the specified picture are overlapped.
Optionally, in order to accurately position the measurement point, the preset graph may be the same as a preset character in the designated picture; when the position of the camera is adjusted, the preview interface of the camera displays the preset characters, and the preset characters in the camera are adjusted to be overlapped with the preset characters in the appointed picture.
And then determining the position of the corresponding measuring point in the camera view field according to the coordinate of the virtual measuring point of the designated picture or the relative position relation between the designated picture and the camera.
And step S13, acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance.
In the embodiment provided by the application, after the measuring points of the flash lamp to be measured in the view field corresponding to the camera are determined, the illumination of each measuring point is obtained according to the coordinates of the measuring points; when acquiring the illuminance, an illuminance acquisition designation may be sent to a preset illuminance meter so that the illuminance meter acquires the corresponding illuminance according to the position of each measurement point. Meanwhile, the illumination at the central point of the visual field of the camera is obtained, the illumination of each measuring point is compared with the illumination at the central point, and the level of the illumination uniformity of the flash lamp to be measured is determined according to the relationship between the difference of the illumination of each measuring point and the illumination at the central point and the preset value. The range of the preset value corresponding to the level of the illuminance uniformity of the flash lamp to be detected can be preset by a user according to the application scene of the camera and the performance of the camera.
Preferably, the acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance includes:
determining relative position coordinates of the measuring points, and detecting the illumination of each measuring point according to the relative position coordinates;
and calculating the difference degree of the illumination of any two measuring points, and determining the uniformity of the illumination of the flash lamp to be measured according to the difference degree.
Specifically, when determining the illuminance of each measurement point, the relative position coordinates of each measurement point may also be transmitted to a preset illuminance meter, so that the illuminance meter detects the illuminance of the corresponding position according to the coordinate information of each measurement point. And calculating the illuminance of any two measuring points, and determining the uniformity grade of the illuminance of the flash lamp to be measured according to a preset difference interval in which the difference of any two measuring points is located.
In the embodiment provided by the application, a virtual measurement point of the illumination of the flash lamp to be measured on a designated picture is determined according to the framing distance of the camera corresponding to the flash lamp to be measured; acquiring a view field of the camera, and determining a measuring point corresponding to the virtual measuring point in the view field of the camera; and acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance. In the process, the virtual measuring point in the appointed picture can be determined according to the framing distance of the camera, and the measuring point of the illumination uniformity of the flash lamp can be determined according to the virtual measuring point, so that the illumination uniformity of the flash lamp can be detected.
Example two:
fig. 3 shows a block diagram of a measurement system for measuring uniformity of flash lamp illuminance according to an embodiment of the present invention, which corresponds to the measurement method for uniformity of flash lamp illuminance described in the above embodiments, and only shows parts related to the embodiment of the present invention for convenience of description.
Referring to fig. 3, the system for measuring uniformity of illuminance of flash lamps includes: a virtual measurement point determining unit 31, a measurement point determining unit 32, and an illuminance acquiring unit 33, wherein:
a virtual measurement point determining unit 31, configured to determine a virtual measurement point of the illuminance of the flash to be measured on a specified picture according to the viewing distance of the camera corresponding to the flash to be measured;
in the embodiment provided by the application, when the illuminance uniformity of a flash lamp in a terminal is measured, the framing distance of a camera corresponding to the flash lamp to be measured is called first, wherein the framing distance refers to the distance between the framing position and the central point of the field of view of the camera.
Alternatively, the viewing distance may be set to be plural in order to accurately measure the uniformity of the illuminance of the flash to be measured at different distances.
When a virtual measuring point on a designated picture is determined, the designated picture is placed at an equal distance from the view finding distance of a camera, the light in the preset range of the designated picture is adjusted to a preset value, and then an image of the designated picture is acquired through a preview interface of the camera, wherein the designated picture is square; and acquiring points on the diagonal of the specified picture, which are the same as the viewing distance from the intersection point of the diagonal, and taking two points on the same diagonal as virtual measurement points.
Preferably, the designated picture comprises a picture in a Chinese character 'mi', as shown in fig. 2.
Preferably, the virtual measurement points may be 2 or 4 or other numerical values of multiples of 2.
Optionally, the system for measuring uniformity of flash lamp illuminance further includes:
and the related information unit is used for acquiring related information of a camera corresponding to the flash lamp to be detected, wherein the related information comprises the framing distance of the camera.
Specifically, before determining the virtual measurement point, first, relevant information of a camera corresponding to a flash to be measured is acquired, where the relevant information includes: the view finding distance of the camera or the field of view size of the camera and the like; the viewing distance is a viewing distance preset by a user when the viewing distance is used for testing the illuminance uniformity of a flash lamp corresponding to the camera. The field of view of the camera is used for subsequently determining the position or/and the number of the measuring points of the flash lamp illumination in the field of view of the camera.
Preferably, the virtual measurement point determining unit 31 includes:
the central point acquisition module is used for acquiring the central point of the specified picture;
the circumference acquisition module is used for acquiring a circumference formed by taking the central point as a circle center and taking the length of the framing distance of the camera corresponding to the flash lamp to be measured as a radius;
the intersection point obtaining module is used for obtaining intersection points of the circumference and preset characters in the appointed picture, and the number of the intersection points is more than or equal to 2;
and the virtual measuring point selecting module is used for taking paired intersection points in the intersection points as the virtual measuring points, wherein the paired intersection points and the central point are on the same straight line.
Specifically, when determining the uniformity of the illuminance of the flash lamp to be measured, a preset specified picture for determining the virtual measurement point is obtained first, and preferably, the specified picture includes preset characters, such as a "meter" character or a "cross" character. When the preset characters are in a shape of Chinese character 'mi', setting the 'Chinese character' in the central position of the appointed picture so as to enable the appointed picture to be in central symmetry; at the moment, the intersection point of each stroke of the Chinese character 'mi' is the central point of the appointed picture; as shown in fig. 2, a point O in the diagram is a center point of the designated picture. And marking the intersection points of the circumference and the preset characters by taking the central point as the center of a circle and the framing distance of the camera as a radius, wherein two or more intersection points can be marked according to measurement requirements during marking, such as A, B, C, D four intersection points in fig. 2.
Alternatively, since the viewing distance may be a plurality of different values, a scale may be provided on the designated picture starting from the center point, and the length of the scale changes with the change of the viewing distance and is kept as long as the viewing distance. At this time, when the viewing distances are different, the central point can be used as the circle center, the length of the scale is used as the radius, and different circumferences are formed to be intersected with the preset characters.
When the virtual measuring point is selected, in order to better determine the uniformity of the illuminance of the flash lamp to be measured, a pair of intersection points forming a straight line with the central point are taken as the virtual measuring points, such as the intersection points A, C or B, D in fig. 2. At least one pair of the selected virtual measuring points is selected, namely the virtual measuring points at least comprise two.
Optionally, the number of the virtual measurement points may be determined by the size of the field of view of the camera, and the number of the virtual measurement points selected when the field of view of the camera is large is correspondingly increased.
A measurement point determining unit 32, configured to acquire a field of view of the camera, and determine at least two measurement points corresponding to the virtual measurement point in the field of view of the camera;
acquiring a view field of a camera, and determining the relative coordinates of the virtual measuring points by taking the central point of the specified picture as a coordinate origin; and adjusting the range of the camera view field to coincide with the circumference formed in the designated picture, and determining the relative coordinates of the measuring points corresponding to the virtual measuring points in the camera view field according to the position relationship between the designated picture and the camera and the relative coordinates of the virtual measuring points so as to finally determine the positions of the measuring points.
Optionally, in order to quickly determine the position of the measurement point, the central point of the field of view of the camera and the central point of the designated picture may be adjusted to be at the same height, and at this time, a connection line between the central point of the field of view and the central point of the designated picture is parallel to the ground plane.
Preferably, the measurement point determination unit 32 includes:
the adjusting module is used for adjusting the position of the camera so as to enable a preset graph in a preview interface of the camera to be overlapped with the specified picture;
and the position determining module is used for determining the position of the measuring point in the preset graph according to the position of the virtual measuring point in the appointed picture.
Specifically, when a measurement point in the field of view of the camera is determined according to the virtual measurement point, the position of the camera is adjusted, a preset graph preset in a preview interface of the camera is called, and when the position of the camera is adjusted, the preset graph and the specified picture are overlapped.
Optionally, in order to accurately position the measurement point, the preset graph may be the same as a preset character in the designated picture; when the position of the camera is adjusted, the preview interface of the camera displays the preset characters, and the preset characters in the camera are adjusted to be overlapped with the preset characters in the appointed picture.
And then determining the position of the corresponding measuring point in the camera view field according to the coordinate of the virtual measuring point of the designated picture or the relative position relation between the designated picture and the camera.
And an illuminance acquisition unit 33, configured to acquire illuminance of the flash lamp to be measured at the measurement point, and determine uniformity of the flash lamp illuminance according to the illuminance.
In the embodiment provided by the application, after the measuring points of the flash lamp to be measured in the view field corresponding to the camera are determined, the illumination of each measuring point is obtained according to the coordinates of the measuring points; when acquiring the illuminance, an illuminance acquisition designation may be sent to a preset illuminance meter so that the illuminance meter acquires the corresponding illuminance according to the position of each measurement point. Meanwhile, the illumination at the central point of the visual field of the camera is obtained, the illumination of each measuring point is compared with the illumination at the central point, and the level of the illumination uniformity of the flash lamp to be measured is determined according to the relationship between the difference of the illumination of each measuring point and the illumination at the central point and the preset value. The range of the preset value corresponding to the level of the illuminance uniformity of the flash lamp to be detected can be preset by a user according to the application scene of the camera and the performance of the camera.
Preferably, the illuminance acquisition unit 33 includes:
the coordinate acquisition module is used for determining the relative position coordinates of the measuring points and detecting the illumination of each measuring point according to the relative position coordinates;
and the difference degree calculation module is used for calculating the difference degree of the illumination of any two measurement points and determining the uniformity of the illumination of the flash lamp to be measured according to the difference degree.
Specifically, when determining the illuminance of each measurement point, the relative position coordinates of each measurement point may also be transmitted to a preset illuminance meter, so that the illuminance meter detects the illuminance of the corresponding position according to the coordinate information of each measurement point. And calculating the illuminance of any two measuring points, and determining the uniformity grade of the illuminance of the flash lamp to be measured according to a preset difference interval in which the difference of any two measuring points is located.
In the embodiment provided by the application, a virtual measurement point of the illumination of the flash lamp to be measured on a designated picture is determined according to the framing distance of the camera corresponding to the flash lamp to be measured; acquiring a view field of the camera, and determining a measuring point corresponding to the virtual measuring point in the view field of the camera; and acquiring the illuminance of the flash lamp to be measured at the measuring point, and determining the uniformity of the illuminance of the flash lamp according to the illuminance. In the process, the virtual measuring point in the appointed picture can be determined according to the framing distance of the camera, and the measuring point of the illumination uniformity of the flash lamp can be determined according to the virtual measuring point, so that the illumination uniformity of the flash lamp can be detected.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example three:
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the above-described embodiments of the method for measuring uniformity of illuminance of a flash, such as the steps S11 to S13 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the units 21 to 23 shown in fig. 2.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into a virtual measurement point determining unit, a measurement point determining unit, and an illuminance acquiring unit, and each unit specifically functions as follows:
the virtual measurement point determining unit is used for determining a virtual measurement point of the illumination of the flash lamp to be measured on the appointed picture according to the framing distance of the camera corresponding to the flash lamp to be measured;
the measuring point determining unit is used for acquiring a view field of the camera and determining measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
and the illumination obtaining unit is used for obtaining the illumination of the flash lamp to be measured at the measuring point and determining the uniformity of the illumination of the flash lamp according to the illumination.
Further, the virtual measurement point determination unit includes:
the central point acquisition module is used for acquiring the central point of the specified picture;
the circumference acquisition module is used for acquiring a circumference formed by taking the central point as a circle center and taking the length of the framing distance of the camera corresponding to the flash lamp to be measured as a radius;
the intersection point obtaining module is used for obtaining intersection points of the circumference and preset characters in the appointed picture, and the number of the intersection points is more than or equal to 2;
and the virtual measuring point selecting module is used for taking paired intersection points in the intersection points as the virtual measuring points, wherein the paired intersection points and the central point are on the same straight line.
Further, the measurement point determination unit includes:
the adjusting module is used for adjusting the position of the camera so as to enable a preset graph in a preview interface of the camera to be overlapped with the specified picture;
and the position determining module is used for determining the position of the measuring point in the preset graph according to the position of the virtual measuring point in the appointed picture.
Further, the illuminance acquisition unit includes:
the coordinate acquisition module is used for determining the relative position coordinates of the measuring points and detecting the illumination of each measuring point according to the relative position coordinates;
and the difference degree calculation module is used for calculating the difference degree of the illumination of any two measurement points and determining the uniformity of the illumination of the flash lamp to be measured according to the difference degree.
Further, the system for measuring the illuminance uniformity of the flash lamp further comprises:
and the related information unit is used for acquiring related information of a camera corresponding to the flash lamp to be detected, wherein the related information comprises the framing distance of the camera.
The terminal device 4 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 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store 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-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.
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 invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device 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 implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. 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.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . 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: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention 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 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 invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A method for measuring the uniformity of flash lamp illumination is characterized by comprising the following steps:
determining a virtual measuring point of the illumination of the flash lamp to be measured on a designated picture according to the viewing distance of the camera corresponding to the flash lamp to be measured;
acquiring a view field of the camera, and determining measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
acquiring the illumination of the flash lamp to be measured at the measuring point, and determining the uniformity of the illumination of the flash lamp according to the illumination;
the method for determining the virtual measurement point of the illuminance of the flash lamp to be measured on the appointed picture according to the framing distance of the camera corresponding to the flash lamp to be measured comprises the following steps:
acquiring a central point of the designated picture;
acquiring a circumference formed by taking the central point as a circle center and taking the length of the framing distance of the camera corresponding to the flash lamp to be measured as a radius;
acquiring intersection points of the circumference and preset characters in the designated picture, wherein the number of the intersection points is more than or equal to 2;
taking paired intersection points in the intersection points as the virtual measurement points, wherein the paired intersection points and the central point are on the same straight line;
or:
placing the specified picture at an equal distance from the framing distance of the camera, and adjusting the light in a preset range of the specified picture to a preset value;
acquiring an image of the specified picture by a preview interface of the camera, wherein the specified picture is square;
and acquiring points on the diagonal of the specified picture, which are the same as the viewing distance from the intersection point of the diagonal, and taking two points on the same diagonal as virtual measurement points.
2. The method of measuring uniformity of flash illumination according to claim 1, wherein said acquiring a field of view of said camera, determining a measurement point in said field of view of said camera corresponding to said virtual measurement point, comprises:
adjusting the position of the camera so that a preset graph in a preview interface of the camera is superposed with the specified picture;
and determining the position of the measuring point in the preset graph according to the position of the virtual measuring point in the appointed picture.
3. The method for measuring the illuminance uniformity of the flash lamp according to claim 1, wherein the acquiring the illuminance of the flash lamp to be measured at the measuring point and determining the illuminance uniformity of the flash lamp according to the illuminance comprises:
determining relative position coordinates of the measuring points, and detecting the illumination of each measuring point according to the relative position coordinates;
and calculating the difference degree of the illumination of any two measuring points, and determining the uniformity of the illumination of the flash lamp to be measured according to the difference degree.
4. The method for measuring illuminance uniformity of a flash according to claim 1, wherein before determining the virtual measurement point of the illuminance of the flash on a preset image according to the viewing distance of the camera corresponding to the flash to be measured, the method comprises:
and acquiring relevant information of a camera corresponding to the flash lamp to be detected, wherein the relevant information comprises the framing distance of the camera.
5. A flash lamp illuminance uniformity measurement system, comprising:
the virtual measurement point determining unit is used for determining a virtual measurement point of the illumination of the flash lamp to be measured on the appointed picture according to the framing distance of the camera corresponding to the flash lamp to be measured;
the measuring point determining unit is used for acquiring a view field of the camera and determining measuring points corresponding to the virtual measuring points in the view field of the camera, wherein the number of the measuring points is at least two;
the illuminance acquisition unit is used for acquiring the illuminance of the flash lamp to be measured at the measuring point and determining the uniformity of the illuminance of the flash lamp according to the illuminance;
wherein the virtual measurement point determination unit includes:
the central point acquisition module is used for acquiring the central point of the specified picture;
the circumference acquisition module is used for acquiring a circumference formed by taking the central point as a circle center and taking the length of the framing distance of the camera corresponding to the flash lamp to be measured as a radius;
the intersection point obtaining module is used for obtaining intersection points of the circumference and preset characters in the appointed picture, and the number of the intersection points is more than or equal to 2;
the virtual measuring point selecting module is used for taking paired intersection points in the intersection points as the virtual measuring points, wherein the paired intersection points and the central point are on the same straight line;
or the virtual measurement point determination unit is specifically configured to:
placing the specified picture at an equal distance from the framing distance of the camera, and adjusting the light in a preset range of the specified picture to a preset value;
acquiring an image of the specified picture by a preview interface of the camera, wherein the specified picture is square;
and acquiring points on the diagonal of the specified picture, which are the same as the viewing distance from the intersection point of the diagonal, and taking two points on the same diagonal as virtual measurement points.
6. The system for measuring illuminance uniformity of a flash lamp according to claim 5, wherein the measurement point determination unit includes:
the adjusting module is used for adjusting the position of the camera so as to enable a preset graph in a preview interface of the camera to be overlapped with the specified picture;
and the position determining module is used for determining the position of the measuring point in the preset graph according to the position of the virtual measuring point in the appointed picture.
7. 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 steps of the method according to any of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201710939467.6A 2017-10-11 2017-10-11 Method and system for measuring illumination uniformity of flash lamp and terminal equipment Active CN107734324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710939467.6A CN107734324B (en) 2017-10-11 2017-10-11 Method and system for measuring illumination uniformity of flash lamp and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710939467.6A CN107734324B (en) 2017-10-11 2017-10-11 Method and system for measuring illumination uniformity of flash lamp and terminal equipment

Publications (2)

Publication Number Publication Date
CN107734324A CN107734324A (en) 2018-02-23
CN107734324B true CN107734324B (en) 2020-01-03

Family

ID=61210174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710939467.6A Active CN107734324B (en) 2017-10-11 2017-10-11 Method and system for measuring illumination uniformity of flash lamp and terminal equipment

Country Status (1)

Country Link
CN (1) CN107734324B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10706298B2 (en) * 2018-08-21 2020-07-07 GM Global Technology Operations LLC Method to automate detection of vehicle lamp degradation
CN109375232B (en) * 2018-10-17 2021-01-26 维沃移动通信(杭州)有限公司 Distance measuring method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793441A (en) * 1995-06-07 1998-08-11 Hughes-Jvc Technology Corporation Method and apparatus for measuring illumination uniformity of a liquid crystal light valve projector
CN101725891B (en) * 2008-10-24 2013-01-09 鸿富锦精密工业(深圳)有限公司 Optical lens
CN104581135A (en) * 2013-10-28 2015-04-29 鸿富锦精密工业(深圳)有限公司 Light source brightness detection method and system
CN103630332B (en) * 2013-11-15 2017-01-11 南京中电熊猫照明有限公司 Backlight brightness uniformity measuring device and method
CN104154991B (en) * 2014-08-06 2016-08-24 东莞市万德光电科技有限公司 A kind of illuminance measuring method for testing and this illuminance measuring electricity testing device
CN106657708B (en) * 2016-11-23 2018-06-08 北京恒通安泰科技有限公司 Lighting device and image capturing system as line source

Also Published As

Publication number Publication date
CN107734324A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN109559349B (en) Method and device for calibration
CN111179358A (en) Calibration method, device, equipment and storage medium
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
CN109754427A (en) A kind of method and apparatus for calibration
CN108182708B (en) Calibration method and calibration device of binocular camera and terminal equipment
CN108364313A (en) A kind of method of automatic aligning, system and terminal device
CN108955901B (en) Infrared temperature measurement method and system and terminal equipment
CN112085771B (en) Image registration method, device, terminal equipment and computer readable storage medium
CN112991459A (en) Camera calibration method, device, equipment and storage medium
CN111311671B (en) Workpiece measuring method and device, electronic equipment and storage medium
CN107734324B (en) Method and system for measuring illumination uniformity of flash lamp and terminal equipment
CN112102378B (en) Image registration method, device, terminal equipment and computer readable storage medium
CN110673114B (en) Method and device for calibrating depth of three-dimensional camera, computer device and storage medium
CN113050022B (en) Image positioning method and device based on rotary antenna and terminal equipment
CN107527323B (en) Calibration method and device for lens distortion
CN108427110A (en) Distance measuring method, device and electronic equipment
CN111336938A (en) Robot and object distance detection method and device thereof
CN112200002A (en) Body temperature measuring method and device, terminal equipment and storage medium
CN109600604B (en) Contrast testing method, device and computer readable storage medium
CN108564571B (en) Image area selection method and terminal equipment
CN107657663B (en) Method and device for displaying information
CN111982468B (en) Method, device and system for measuring field angle and computer storage medium
CN111551346B (en) Method, device and system for measuring field angle and computer storage medium
CN108257087B (en) Method and device for testing splicing effect of binocular camera and terminal equipment
CN114170319A (en) Method and device for adjusting test target

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