CN113552766B - Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium - Google Patents
Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113552766B CN113552766B CN202010263782.3A CN202010263782A CN113552766B CN 113552766 B CN113552766 B CN 113552766B CN 202010263782 A CN202010263782 A CN 202010263782A CN 113552766 B CN113552766 B CN 113552766B
- Authority
- CN
- China
- Prior art keywords
- flashing
- coding
- flash
- data
- initial
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B43/00—Testing correct operation of photographic apparatus or parts thereof
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M11/00—Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/957—Light-field or plenoptic cameras or camera modules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the invention discloses a method and a device for detecting flash leakage of a flash explosion lamp, electronic equipment and a storage medium, wherein the method comprises the following steps: determining initial coding data, and triggering a flashing lamp to flash according to the initial coding data; monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data; and comparing the initial coding data with the target coding data, and determining whether the flashing light has the flash leakage according to the comparison result. The embodiment of the invention compares the initial coding data for controlling the flashing of the flashing light with the obtained target coding data for representing the actual flashing process of the flashing light, and determines whether the flashing light has flashing leakage according to the comparison result. Whether the flash leakage exists can be determined only by comparing the initial coding data with the target coding data, whether the flash leakage exists is determined by comparing the mode of manually observing the picture, the automation of flash leakage detection of the flash lamp is realized, and the efficiency and the accuracy of flash leakage detection of the flash lamp are favorably improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of monitoring, in particular to a method and a device for detecting flash leakage of an explosion flash lamp, electronic equipment and a storage medium.
Background
At present, an electronic police system is widely applied to the field of intelligent traffic, and front-end equipment in the electronic police system mainly comprises a bayonet camera and light supplementing equipment. When the bayonet camera takes a candid photograph license plate and the interior scene of car that remove at a high speed under night and the adverse light condition, need the light filling equipment of high strength to carry out the light filling usually, the light filling equipment that uses most often is xenon and explodes the flashing light, because xenon explodes the flashing light and can send the light of high strength in the twinkling of an eye, can clearly illuminate the condition in the door window under night and the adverse light condition, satisfies the light filling requirement of bayonet camera.
And in order to guarantee that the flashing light after the installation can normally fill light in the service life range of the flashing light, the flashing light is required to be subjected to flashing leakage detection before the flashing light leaves a factory. The most commonly used method for detecting flash leakage at present is to utilize a camera to shoot the process of flash of the flash lamp, and then judge whether the flash lamp has flash leakage or not by manually observing a photo shot by the camera. However, this approach has certain disadvantages: the manual observation is adopted for judging time and labor waste, and the detection efficiency and the result accuracy are lower.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting flash leakage of a flash explosion lamp, electronic equipment and a storage medium, and aims to improve the efficiency and the accuracy of flash leakage detection of the flash explosion lamp.
In a first aspect, an embodiment of the present invention provides a method for detecting a flash leakage of a flash burst lamp, where the method includes:
determining initial coding data, and triggering a flashing lamp to flash according to the initial coding data;
monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data;
and comparing the initial coding data with the target coding data, and determining whether the flashing light has flash leakage according to a comparison result.
In a second aspect, an embodiment of the present invention further provides a device for detecting flash leakage of a flashing lamp, where the device includes:
the flashing control module is used for determining initial coding data and triggering a flashing lamp to flash according to the initial coding data;
the optical detection coding module is used for monitoring an optical signal generated in the flashing process of the flashing light and coding the optical signal to obtain target coding data;
and the flash leakage determining module is used for comparing the initial coding data with the target coding data and determining whether the flash explosion lamp has flash leakage or not according to a comparison result.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the flashing light and flash leakage detection method according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the flashing light and missing flash detection method according to any embodiment of the present invention.
In the embodiment of the invention, the initial coding data for controlling the flashing of the flashing light is compared with the obtained target coding data for representing the actual flashing process of the flashing light, and whether the flashing light leaks or not is determined according to the comparison result. Because only need compare initial coding data and target coding data, can confirm whether there is the hourglass flashing of flashing light, compare in the tradition through the artifical mode of observing the photo in order to confirm whether the hourglass is flashed, be favorable to realizing the automation that the flashing light hourglass was flashed and is detected to promote the efficiency and the detection accuracy that the flashing light hourglass was flashed and is detected.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for detecting flash leakage of a flashing lamp according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for detecting a flash leakage of a flashing lamp according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a flashing light leakage detection device in a third embodiment of the invention;
fig. 4 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for detecting a flash leakage of a flash burst lamp according to an embodiment of the present invention, where the method is applicable to a situation where a flash leakage of a flash burst lamp is detected before the flash burst lamp leaves a factory.
As shown in fig. 1, the method for detecting flash leakage of the flashing lamp specifically comprises the following steps:
s101, determining initial coding data, and triggering a flashing light to flash according to the initial coding data.
In the embodiment of the invention, because the design circuit and the flashing characteristics of the flashing light have great influence on the duration and the brightness of the flashing light, the design circuit and the flashing characteristics of the flashing light to be detected at present need to be considered when the initial coding data for controlling the flashing light to carry out flashing is determined. Optionally, according to the design circuit and the flashing characteristics of the flashing light, a flashing duration parameter t and a brightness parameter k are preset. Illustratively, the determined initial encoding data is "1001001000100001", where the code 1 indicates that the flashing light is controlled to perform effective flashing (i.e., the duration of the flashing is greater than or equal to t, and the brightness is greater than or equal to k), and the code 0 indicates that the flashing light is controlled to perform ineffective flashing (i.e., the time interval of the flashing is less than t, and the brightness is less than k). It should be noted that the initial encoding data may be input in advance, and the encoding bit number may be set according to the actual detection requirement.
Furthermore, after the initial coding data is obtained, a flashing light can be triggered to flash according to the initial coding data. Specifically, only need with initial coding data conversion is to explode and dodges trigger signal cluster, and based on explode and dodge trigger signal cluster control explode the flashing lamp and explode and dodge, for example, can adopt to explode and dodge the flashing trigger signal value in the flashing trigger signal cluster and control exploding the flashing lamp. For example, the initial encoding data may be converted into a PWM pulse signal, where the code 1 corresponds to a high level, the code 0 corresponds to a low level, and the pulse width corresponds to a flashing duration, so that the flashing light may be triggered to flash by the high level of the PWM pulse signal.
S102, monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data.
In an optional implementation manner, the brightness and the duration of an optical signal generated in the flashing process of the flashing light are detected, and encoding is performed according to whether the brightness and the duration of the optical signal meet preset conditions, so as to obtain target encoded data. Illustratively, if the brightness of the light signal is greater than or equal to k and the duration is greater than or equal to t, the light signal is encoded as 1 (i.e., an active burst); if the brightness of the light signal is less than k or the duration is less than t, the light signal is encoded as 0 (i.e., an invalid flash). Therefore, the target coding data which represents the actual flashing process of the flashing lamp is obtained, namely, the actual flashing condition of the flashing lamp is restored into the corresponding coding data, so that the subsequent flashing leakage detection is facilitated, wherein the times of effective flashing and the times of ineffective flashing of the flashing lamp in the actual flashing process are recorded in the target coding data. It should be noted here that the target encoded data and the initial encoded data have the same number of bits.
S103, comparing the initial coding data with the target coding data, and determining whether the flashing light has flashing leakage according to the comparison result.
Optionally, the initial coded data and the target coded data are compared, that is, the initial coded data and the target coded data are compared according to bits, if the initial coded data and the target coded data are the same, it is determined that the flashing leakage does not exist in the flashing process of the flashing lamp, if the data on one or more coded bits are different, it is determined that the flashing leakage exists, and according to the number and the position of the coded bits with different values, the number and the position of the flashing leakage can also be determined. Illustratively, the initial encoding data is "1001001000100001", the target encoding data is "1000001000100001", and the comparison shows that only the fourth encoding bit value is different, so that there is one flash leakage.
In the embodiment of the invention, the initial coding data for controlling the flashing of the flashing light is compared with the obtained target coding data for representing the actual flashing process of the flashing light, and whether the flashing light leaks or not is determined according to the comparison result. Only need compare initial coding data and target coding data, can confirm whether to have the flashing leakage of flashing lamp, compare in through the mode of artifical observation photo in order to confirm whether to leak the flashing, realized the automation that the flashing leakage of flashing lamp detected, be favorable to promoting efficiency and the accuracy that the flashing leakage of flashing lamp detected.
Example two
Fig. 2 is a schematic flow chart of the method for detecting a missing flash of a flashing lamp according to an embodiment of the present invention, and in the second embodiment, optimization is performed on the basis of the first embodiment, referring to fig. 2, the method includes:
s201, determining initial coding data, and triggering a flashing light to flash according to the initial coding data.
In the embodiment of the invention, in order to ensure the accuracy of the detection of the flash leakage of the flashing lamp, the initial coding data is divided into three parts, specifically comprising a start code pattern, a test code pattern and an end code pattern. In the embodiment of the present invention, the same number of coding bits of the start code pattern, the test code pattern, and the end code pattern is taken as an example to explain, for example, all are 16 bits.
The initial code type is used for indicating the coding data that begin the hourglass detection of dodging, in order to guarantee follow-up in time to leak the detection of dodging, need guarantee that the initial code value of initial code type can trigger the flashing light carries out effective flashing, also regards as the sign that begins the hourglass detection of dodging with exploding the flashing for the first time. Illustratively, the start pattern is a set of data beginning with code 1, such as "1010010001000010," whereby flash loss detection can be initiated sequentially after a flash burst is first detected. It should be noted that, if the first code value of the start code pattern cannot trigger the flashing light to perform effective flashing (for example, the first code value is 0), the start code pattern is exemplarily "0010010001000010", and if the first flashing is detected as the sign for starting the detection of the flashing leakage, the time for detecting the flashing leakage is inevitably delayed, and the detection result is inaccurate. The test pattern is encoded data actually used to test whether the strobe light is missed. An end pattern, such as "1000010001001010," is used to indicate the encoded data that ends a complete missed flash detection.
Further, the test pattern can be divided into a first test pattern, a second test pattern and a third test pattern based on the designated parameters, and optionally, based on the frequency of triggering the flashing light to flash, the test pattern is divided into a high-frequency test pattern (i.e., the first test pattern), a medium-frequency test pattern (i.e., the second test pattern) and a low-frequency test pattern (i.e., the third test pattern). For example, two burst frequency thresholds (e.g., a first frequency threshold and a second frequency threshold) are preset, and a test pattern with a burst frequency smaller than the first frequency threshold may be used as a low-frequency test pattern, a test pattern with a burst frequency between the first frequency threshold and the second frequency threshold may be used as an intermediate-frequency test pattern, and a test pattern with a burst frequency greater than the second frequency threshold may be used as a high-frequency test pattern. The high-frequency test code pattern, for example "0101010101010101", is used for testing the performance of the flashing light during high-frequency flashing, and the high-frequency test code pattern is used for carrying out a flashing leakage test, so that the performance of the flashing light during the fastest flashing is simulated in the environment with large traffic flow (such as commuting peak), specifically, whether the continuous quick charging and discharging of the capacitor in the hardware single board of the flashing light are problematic is mainly verified through the high-frequency test code pattern, namely, the performance of the capacitor charging is verified. The intermediate frequency test pattern, such as '0001000100010001', is used for testing the performance of the flashing lamp in the flashing process according to the intermediate frequency, and the intermediate frequency test pattern is used for carrying out the flash leakage test, so that the performance of the flashing lamp in the flashing process in the proper traffic flow environment is simulated. The low-frequency test pattern, such as '0000000100000001', is used for testing the performance of the flashing light in the flashing process according to the low frequency, and the low-frequency test pattern is used for carrying out the flashing leakage test, so that the flashing performance of the flashing light under the environment with small traffic flow is simulated. It should be noted that the intermediate frequency test pattern and the low frequency test pattern are both used to verify the reliability and trigger stability of the design of the burst flashing light circuit.
Further, since the test pattern includes patterns of three different frequencies, there are three corresponding initial encoded data of different trigger frequencies. Specifically, if the test pattern is a high-frequency test pattern (i.e., a first test pattern), the initial encoded data is high-frequency encoded data including a start pattern, a high-frequency test pattern, and an end pattern; if the test pattern is an intermediate frequency test pattern (i.e., a second test pattern), the initial encoded data is intermediate frequency encoded data including a start pattern, an intermediate frequency test pattern, and an end pattern; if the test pattern is a low-frequency test pattern (i.e., a third test pattern), the initial encoded data is low-frequency encoded data including a start pattern, a low-frequency test pattern, and an end pattern.
In actual detection, optionally, after the high-frequency coded data is used for completing one detection, the intermediate-frequency coded data or the low-frequency coded data is used for detection, and the specific detection times and the coded data used for each detection can be preset. It should be noted here that, because the flashing interval of the flashing light is short, the testing period is long, and if the high-frequency coded data is used for detection, the flashing light is easy to be damaged due to excessive heat accumulation, so that the coded data with different frequencies are used for detection in the embodiment of the present invention, and the coded data with different frequencies can simulate the actual traffic flow condition, so that the maximum problem of the flashing light can be exposed in the shortest time, the flashing times can be reduced, and the light pollution can be reduced.
S202, detecting the brightness and the duration of an optical signal generated in the flashing process of the flashing lamp, and coding according to whether the brightness and the duration of the optical signal meet preset conditions to obtain target coded data.
Illustratively, if the brightness of the light signal is greater than or equal to k and the duration is greater than or equal to t, the light signal is encoded as 1 (i.e., an active burst); if the brightness of the light signal is less than k or the duration is less than t, the light signal is encoded as 0 (i.e., an invalid burst).
Specifically, since the initial encoded data is composed of a start pattern + a high frequency test pattern or an intermediate frequency test pattern or a low frequency test pattern + an end pattern, each pattern includes 16 bits of encoded data. Therefore, for the convenience of subsequent comparison, after the detected optical signal is encoded, the obtained encoded data is grouped into one encoding group every 16 bits, and thus, the finally obtained target encoded data includes the first encoding group, the second encoding group, and the third encoding group. Moreover, the first code group corresponds to the start code pattern, the second code group corresponds to the test code pattern, and the third code group corresponds to the end code pattern. It should be noted that, no matter whether the encoding bits of the start code pattern, the test code pattern, and the end code pattern in the initial encoding data are the same, it is only necessary to ensure that the encoding bits of the first encoding group and the start code pattern are the same, the encoding bits of the second encoding group and the test code pattern are the same, and the encoding bits of the third encoding group and the end code pattern are the same.
S203, determining whether the start code pattern is the same as the first code group, if not, performing S204, and if so, performing S205.
Since the start code pattern and the first code group are both arrays of 0 and 1, in order to improve the comparison efficiency, the start code pattern and the first code group are compared bit by bit, and whether the start code pattern is the same as the first code group is determined according to the comparison result. As an optional implementation manner, the start code pattern and the first code group are subjected to a logical operation process, and whether the start code pattern is the same as the first code group is determined according to an operation result. For example, the start code pattern and the first code group are subjected to xor operation, and the principle of xor operation is that the two code bits have the same value, and the result is 0, and the result is 1, so that whether the start code pattern and the first code group are the same or not can be determined only according to the number of 1 included in the xor operation result, for example, if there is no 1 in the operation result, it is determined that the two are the same, and otherwise, they are different.
It should be noted that, when determining whether the start code pattern and the first code group are the same, other feasible operation manners may also be adopted, such as performing an exclusive nor operation, and according to the exclusive nor operation principle (that is, the values on the two code bits are the same, the operation result is 1, otherwise, the operation result is 0), whether the start code pattern and the first code group are the same may be determined based on the number of 0 in the operation result, for example, if there is no 0 in the operation result, it is determined that the two are the same, otherwise, they are different.
And S204, uploading the judgment result to a management system, and indicating that the flash leakage detection is continued by adopting new initial coding data.
In the embodiment of the invention, if the initial code type is different from the first coding group, the problem of the initial code type test is shown, namely the problem occurs just after the flashing of the flashing lamp begins, so that the internal circuit of the flashing lamp has a larger problem inevitably, the flashing is unstable, the judgment result needs to be uploaded to a management system, and the management system outputs a warning signal so as to inform related technicians to carry out professional detection on the flashing lamp to determine the specific fault and maintain the flashing lamp. In addition to this, it may also be instructed to continue with the missing flash detection with the new initial encoded data.
S205, judging whether the test code pattern is the same as the second coding group, and determining whether the flashing light has flash leakage according to the judgment result.
Optionally, comparing whether the test pattern is the same as the second code group, comparing the test pattern with the second code group according to bits, and determining whether the test pattern is the same as the second code group according to a comparison result. As an optional implementation manner, the test pattern and the second coding group are subjected to logic operation, for example, the test pattern and the second coding group are subjected to xor operation, and whether the test pattern and the second coding group are the same is determined according to the operation result, that is, according to the number of 1 in the xor operation result, whether the test pattern and the second coding group are the same can be determined. If the operation result does not contain 1, the two are the same, and the flash lamp does not have flash leakage; if the operation result has 1, the two are different, and the encoding bit corresponding to the value 1 in the operation result has flash leakage. In addition, the number, the flashing leakage rate and the flashing leakage position of the current detection can be determined according to the number and the position of the 1 in the operation result. Furthermore, after the number of times of flash leakage, the flash leakage rate and the flash leakage position are obtained, the flash leakage times, the flash leakage rate and the flash leakage position can be uploaded to a management system and processed by the management system.
In addition, it is also possible to determine whether the test pattern is the same as the second code group, or to use other feasible operation manners, such as performing an exclusive nor operation, and determine whether the test pattern is the same as the second code group according to the number of 0 in the operation result, for example, if there is no 0 in the operation result, the test pattern is the same as the second code group, otherwise, the test pattern is different from the second code group, and further, the number of times of flash leakage, the rate of flash leakage, the position of flash leakage, and the like can be determined according to the number and the position of 0.
In the embodiment of the invention, the coded data with different frequencies are adopted to simulate the actual traffic flow environment and carry out the leakage flash detection, so that the problems of the flash lamp can be detected in the shortest time, and the flash times and the light pollution are reduced; and carry out the uniformity comparison through the first coding group, the second coding group that obtain with the code respectively with initial code pattern, test code pattern, be favorable to promoting the hourglass and dodge statistical efficiency, and can accurately obtain whether the flashing lamp takes place to leak and dodge.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for detecting a flash leakage of a flashing light in a third embodiment of the present invention, where the device is used for detecting a flash leakage of a flashing light before the flashing light leaves a factory, and the device includes:
the flashing control module 301 is configured to determine initial encoded data, and trigger a flashing light to flash according to the initial encoded data;
the optical detection coding module 302 is configured to monitor an optical signal generated in the flashing process of the flashing light, and code the optical signal to obtain target coded data;
and the flash leakage determining module 303 is configured to compare the initial encoded data with the target encoded data, and determine whether the flashing light has flash leakage according to a comparison result.
In the embodiment of the invention, the initial coding data for controlling the flashing of the flashing lamp is compared with the obtained target coding data for representing the actual flashing process of the flashing lamp, and whether the flashing lamp has flash leakage or not is determined according to the comparison result. Only need comparison initial coding data and target coding data, can confirm whether there is the hourglass flashing of flashing light, compare in through the mode of artifical observation photo in order to confirm whether to leak the flashing, realized the automation that the flashing light leaks to dodge and detects, be favorable to promoting efficiency and the accuracy that the flashing light leaks to dodge and detects.
Optionally, the flashing control module is configured to:
and converting the initial coding data into a flashing triggering signal string, and controlling the flashing light to flash based on the flashing triggering signal string.
Optionally, the initial encoding data includes a start code pattern; and triggering the flashing light to effectively flash by using the first coding value of the start code pattern.
Optionally, the initial coding data further includes a test pattern and an end pattern, where the test pattern includes a first test pattern, a second test pattern and a third test pattern;
correspondingly, if the test code pattern is a first test code pattern, the initial coding data is first coding data comprising a start code pattern, a first test code pattern and an end code pattern;
if the test code pattern is a second test code pattern, the initial coding data is second coding data comprising a start code pattern, a second test code pattern and an end code pattern;
and if the test code pattern is a third test code pattern, the initial coding data is third coding data comprising a start code pattern, a third test code pattern and an end code pattern.
Optionally, the light detection encoding module includes:
a timer for detecting a duration of the optical signal;
a brightness detector for detecting brightness of the optical signal;
the encoder is used for encoding according to whether the brightness and the duration time of the optical signal meet preset conditions or not to obtain target encoded data;
the target coding data comprises a first coding group, a second coding group and a third coding group, the first coding group has the same coding bit number as the starting code pattern, the second coding group has the same coding bit number as the testing code pattern, and the third coding group has the same coding bit number as the ending code pattern.
Optionally, the apparatus further comprises:
and the clock module is used for providing a common clock signal for the burst control module and the light detection coding module so as to ensure the accuracy of the duration time detected by the time timer in the light detection coding module.
Optionally, the flash leakage determining module includes:
a first judging unit, configured to judge whether the start code pattern is the same as the first coding group;
the uploading and indicating unit is used for uploading the judgment result to the management system and indicating that the flash missing detection is continued by adopting new initial coding data when the judgment result of the first judging unit is negative;
and the second judgment unit is used for judging whether the test code pattern is the same as the second code group or not when the judgment result of the first judgment unit is yes, and determining whether the flashing light has flashing leakage or not according to the judgment result.
Optionally, the first determining unit is specifically configured to:
and comparing the initial code pattern with the first coding group according to bits, and judging whether the initial code pattern is the same as the first coding group according to a comparison result.
Correspondingly, the second determining unit is specifically configured to:
and comparing the test code pattern with the second code group according to bits, and judging whether the test code pattern is the same as the second code number according to a comparison result.
The device for detecting the flashing leakage of the flashing lamp provided by the embodiment of the invention can execute the method for detecting the flashing leakage of the flashing lamp provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to implement a method for detecting a flash lamp flash leakage provided by an embodiment of the present invention, the method including:
determining initial coding data, and triggering a flashing lamp to flash according to the initial coding data;
monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data;
and comparing the initial coding data with the target coding data, and determining whether the flashing light has flashing leakage according to the comparison result.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium, in particular a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for detecting flash leakage of a flashing lamp, where the method includes:
determining initial coding data, and triggering a flashing lamp to flash according to the initial coding data;
monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data;
and comparing the initial coding data with the target coding data, and determining whether the flashing light has flashing leakage according to the comparison result.
Storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. A method for detecting flash leakage of a flashing lamp is characterized by comprising the following steps:
determining initial coding data, and triggering a flashing lamp to flash according to the initial coding data;
monitoring an optical signal generated in the flashing process of the flashing lamp, and coding the optical signal to obtain target coded data;
comparing the initial coding data with the target coding data, and determining whether the flashing light has flash leakage according to the comparison result;
wherein, the comparing the initial coding data and the target coding data, and determining whether the flashing light has the flash leakage according to the comparing result comprises:
comparing the initial coding data with the target coding data according to bits, and if the initial coding data and the target coding data are the same, determining that the flashing light has no flash leakage in the flashing process; and if the data of the two codes on one or more coding bits are different, determining that the flashing leakage exists in the flashing process of the flashing lamp, and determining the flashing leakage times and positions according to the number and positions of the coding bits with different values.
2. The method of claim 1, wherein triggering a flashing light to flash based on the initially encoded data comprises:
and converting the initial coding data into a flashing triggering signal string, and controlling the flashing light to flash based on the flashing triggering signal string.
3. A method according to claim 1 or 2, wherein the initially encoded data comprises a start pattern; and triggering the flashing light to effectively flash by the first coding value of the starting code type.
4. The method of claim 3, wherein the initial encoded data further comprises a test pattern and an end pattern, the test pattern comprising a first test pattern, a second test pattern, and a third test pattern;
correspondingly, if the test code pattern is a first test code pattern, the initial coding data is first coding data comprising a start code pattern, a first test code pattern and an end code pattern;
if the test code pattern is a second test code pattern, the initial coding data is second coding data comprising a start code pattern, a second test code pattern and an end code pattern;
and if the test code pattern is a third test code pattern, the initial coding data is third coding data comprising a start code pattern, a third test code pattern and an end code pattern.
5. The method of claim 4, wherein monitoring an optical signal generated during the flashing process of the flashing light, and encoding the optical signal to obtain target encoded data comprises:
detecting the brightness and the duration of the optical signal, and coding according to whether the brightness and the duration of the optical signal meet preset conditions to obtain target coded data;
the target coding data comprises a first coding group, a second coding group and a third coding group, the first coding group has the same coding bit number as the starting code pattern, the second coding group has the same coding bit number as the testing code pattern, and the third coding group has the same coding bit number as the ending code pattern.
6. The method of claim 5, wherein comparing the initial coded data to the target coded data and determining whether the flashing light has a missed flashing based on the comparison comprises:
judging whether the start code pattern is the same as the first coding group;
if not, uploading the judgment result to a management system, and indicating to adopt new initial coding data to continue to carry out flash leakage detection;
if yes, judging whether the test code pattern is the same as the second coding group, and determining whether the flashing light has flash leakage according to the judgment result.
7. The method of claim 6, wherein determining whether the start pattern and the first coding group are the same comprises:
comparing the initial code pattern with the first coding group according to bits, and judging whether the initial code pattern is the same as the first coding group according to a comparison result;
correspondingly, the determining whether the test pattern is the same as the second code group includes:
and comparing the test code pattern with the second code group according to bits, and judging whether the test code pattern is the same as the second code number according to a comparison result.
8. The utility model provides a flashing light leaks and dodges detection device which characterized in that, the device includes:
the flashing control module is used for determining initial coding data and triggering a flashing lamp to flash according to the initial coding data;
the optical detection coding module is used for monitoring an optical signal generated in the flashing process of the flashing light and coding the optical signal to obtain target coding data;
the flash leakage determining module is used for comparing the initial coding data with the target coding data and determining whether the flash explosion lamp has flash leakage or not according to a comparison result;
the flash leakage determining module is specifically configured to perform bit-wise comparison on the initial encoded data and the target encoded data, and if the initial encoded data and the target encoded data are the same, determine that flash leakage does not exist in the flash explosion process of the flash explosion lamp; and if the data of the two codes on one or more coding bits are different, determining that the flashing leakage exists in the flashing process of the flashing lamp, and determining the flashing leakage times and positions according to the number and positions of the coding bits with different values.
9. An electronic device, comprising:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the flashing light missed-flashing detection method of any of claims 1-7.
10. A storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, implements the deflagration lamp flash leak detection method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010263782.3A CN113552766B (en) | 2020-04-07 | 2020-04-07 | Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010263782.3A CN113552766B (en) | 2020-04-07 | 2020-04-07 | Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113552766A CN113552766A (en) | 2021-10-26 |
CN113552766B true CN113552766B (en) | 2023-02-17 |
Family
ID=78129257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010263782.3A Active CN113552766B (en) | 2020-04-07 | 2020-04-07 | Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113552766B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203069768U (en) * | 2013-01-31 | 2013-07-17 | 福州柏灵影像器材有限公司 | Device for testing service life and missed flashing rate of electronic flash lamp |
JP2015014497A (en) * | 2013-07-04 | 2015-01-22 | パナソニック株式会社 | Inspection apparatus of flash discharge tube and inspection method thereof |
CN106454044A (en) * | 2016-10-25 | 2017-02-22 | 浙江宇视科技有限公司 | Explosion flash light supplementing device and method |
CN107765194A (en) * | 2017-10-09 | 2018-03-06 | 福建成达兴智能科技股份有限公司 | A kind of flashing light tester |
CN207263906U (en) * | 2017-10-09 | 2018-04-20 | 福建成达兴智能科技股份有限公司 | A kind of flashing light tester |
CN110505013A (en) * | 2019-08-26 | 2019-11-26 | 宁波方太厨具有限公司 | Control method, system, electronic equipment and storage medium without screen equipment distribution |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100450153C (en) * | 2005-12-22 | 2009-01-07 | 比亚迪股份有限公司 | Flash detecting method and flash detecting device |
GB2528059A (en) * | 2014-07-08 | 2016-01-13 | Ibm | Peer to peer camera lighting communication |
US9923638B1 (en) * | 2016-12-22 | 2018-03-20 | Intel Corporation | Clock tracking algorithm for twinkle VPPM in optical camera communication systems |
CN207460369U (en) * | 2017-06-12 | 2018-06-05 | 临海市第四建筑工程公司 | A kind of road traffic flashing light |
CN108880682B (en) * | 2018-07-25 | 2020-02-07 | 中国人民解放军战略支援部队信息工程大学 | Coding-based visible light communication dimming control method and system |
CN109218711A (en) * | 2018-09-14 | 2019-01-15 | Oppo(重庆)智能科技有限公司 | Detection method, system and the electronic equipment of flash lamp |
-
2020
- 2020-04-07 CN CN202010263782.3A patent/CN113552766B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203069768U (en) * | 2013-01-31 | 2013-07-17 | 福州柏灵影像器材有限公司 | Device for testing service life and missed flashing rate of electronic flash lamp |
JP2015014497A (en) * | 2013-07-04 | 2015-01-22 | パナソニック株式会社 | Inspection apparatus of flash discharge tube and inspection method thereof |
CN106454044A (en) * | 2016-10-25 | 2017-02-22 | 浙江宇视科技有限公司 | Explosion flash light supplementing device and method |
CN107765194A (en) * | 2017-10-09 | 2018-03-06 | 福建成达兴智能科技股份有限公司 | A kind of flashing light tester |
CN207263906U (en) * | 2017-10-09 | 2018-04-20 | 福建成达兴智能科技股份有限公司 | A kind of flashing light tester |
CN110505013A (en) * | 2019-08-26 | 2019-11-26 | 宁波方太厨具有限公司 | Control method, system, electronic equipment and storage medium without screen equipment distribution |
Also Published As
Publication number | Publication date |
---|---|
CN113552766A (en) | 2021-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109035831B (en) | Traffic indicator light identification method, device, equipment, storage medium and vehicle | |
CN110300285A (en) | Panoramic video acquisition method and system based on unmanned platform | |
CN105261329A (en) | Multi-LED display module management method | |
JP2017132451A (en) | Aeronautical message monitor | |
CN108415817A (en) | BMC obtains the method, apparatus of time, equipment and can storage medium | |
CN111723646A (en) | Method and device for remotely assisting in maintaining equipment | |
CN113552766B (en) | Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium | |
CN109273045A (en) | Store equipment on-line detection method, device, equipment and readable storage medium storing program for executing | |
CN109579914A (en) | A kind of operation conditions determination method, device, equipment and the medium of transmission line of electricity | |
US20170351788A1 (en) | Automated checker generation | |
CN113807209B (en) | Parking space detection method and device, electronic equipment and storage medium | |
US20120131290A1 (en) | Backup Memory Administration | |
CN115695261A (en) | Switch testing method and related equipment | |
CN108037942B (en) | Adaptive data recovery and update method and device for embedded equipment | |
CN112135087B (en) | Screen information monitoring method and device, network camera and storage medium | |
CN109474478B (en) | Method, device and system for monitoring transmission data abnormity | |
CN112381386A (en) | Vehicle inspection and control method and device, electronic equipment and storage medium | |
CN112069041B (en) | Physical isolation data transmission teaching method and system based on hard disk indicator lamp | |
CN116625166B (en) | Structure unwinding method and device for laser semi-active guide head | |
CN117241440B (en) | Data transmission method and device, storage medium and electronic device | |
CN113743769B (en) | Data security detection method and device, electronic equipment and storage medium | |
CN113192227B (en) | Community patrol service platform based on Internet of things | |
CN116434576B (en) | Traffic light timing scheme determining method, device, system and equipment | |
CN109656580B (en) | Serial-port NAND FLASH data zero clearing processing method and system | |
EP4075734A1 (en) | Service detection method and apparatus, device, 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 |