CN113552766A - 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 PDF

Info

Publication number
CN113552766A
CN113552766A CN202010263782.3A CN202010263782A CN113552766A CN 113552766 A CN113552766 A CN 113552766A CN 202010263782 A CN202010263782 A CN 202010263782A CN 113552766 A CN113552766 A CN 113552766A
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.)
Granted
Application number
CN202010263782.3A
Other languages
Chinese (zh)
Other versions
CN113552766B (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202010263782.3A priority Critical patent/CN113552766B/en
Publication of CN113552766A publication Critical patent/CN113552766A/en
Application granted granted Critical
Publication of CN113552766B publication Critical patent/CN113552766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS 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/00Testing correct operation of photographic apparatus or parts thereof
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/957Light-field or plenoptic cameras or camera modules

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (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. Only need comparison initial coding data and target coding data, can confirm whether to have the hourglass to dodge, compare in the mode of confirming whether to leak the sudden strain of a muscle through the manual observation photo, realized the automation that the flashing light was leaked and is dodged and detect, be favorable to promoting efficiency and the accuracy that the flashing light was leaked and is dodged and detect.

Description

Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium
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 common method for detecting the flash leakage at present is to utilize a camera to shoot the process of flashing of the flashing light, and further judge whether the flashing light has the 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 flashing leakage according to the comparison result.
In a second aspect, an embodiment of the present invention further provides a device for detecting a flash leakage of an explosion flash 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 a flash leakage of a flashing lamp according to a first embodiment of the invention;
FIG. 2 is a schematic flow chart illustrating a method for detecting a missing flash 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). The target coding data which represent the actual flashing process of the flashing lamp are obtained, namely, the actual flashing condition of the flashing lamp is restored to the corresponding coding data, so that subsequent flashing leakage detection is facilitated, wherein the target coding data records the effective flashing times and the ineffective flashing times of the flashing lamp in the actual flashing process. 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 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.
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 starting with code 1, e.g., "1010010001000010," whereby the detection of a flash miss can be initiated in sequence after the first detection of a flash burst. It should be noted that, if the first coded value of the start code pattern cannot trigger the flashing light to perform effective flashing (for example, the first coded value is 0), the start code pattern is "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 delayed, and the detection result is inaccurate. The test pattern is encoded data that is actually used to test whether a flashing light is missing. 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 type, for example "0101010101010101", is used for testing the performance of the flashing light during high-frequency flashing, and the high-frequency test code type is used for carrying out the flash leakage test, so that the performance of the flashing light during the fastest flashing in the environment with large traffic flow (such as a peak of commuting to and from work) is simulated, 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 type, namely, the performance of the capacitor charging is verified. The intermediate frequency test pattern, for example, "0001000100010001", is used for testing the performance of the flashing light when flashing according to the intermediate frequency, and the performance of the flashing light when flashing is carried out under the appropriate environment of the traffic flow is simulated by utilizing the intermediate frequency test pattern to carry out the leakage flashing test. The low-frequency test pattern, such as '0000000100000001', is used for testing the performance of the flashing light in low-frequency flashing, 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 flash).
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, in order to facilitate the subsequent comparison, after the detected optical signal is encoded, the resulting encoded data is grouped into one encoding group every 16 bits, and thus, the resulting 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 pattern and the first code group are subjected to a logical operation, and whether the start 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 have 1, the two are the same, and the flashing light has no leakage flashing; 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 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 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 the first coding value of the starting code type.
Optionally, the initial encoding 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 the 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 flash 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 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.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
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.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a flashing light and flash leakage detection method provided by the embodiment of the present invention, 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.
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 also 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. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A flashing light leakage detection method 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;
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.
2. The method of claim 1, wherein triggering a strobe light to strobe 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 initial 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;
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.
9. An electronic device, comprising:
one or more processors;
a storage device for storing 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.
CN202010263782.3A 2020-04-07 2020-04-07 Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium Active CN113552766B (en)

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 true CN113552766A (en) 2021-10-26
CN113552766B 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988602A (en) * 2005-12-22 2007-06-27 比亚迪股份有限公司 Flash detecting method and flash detecting device
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
US20160014311A1 (en) * 2014-07-08 2016-01-14 International Business Machines Corporation Peer to peer lighting communication
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
US9923638B1 (en) * 2016-12-22 2018-03-20 Intel Corporation Clock tracking algorithm for twinkle VPPM in optical camera communication systems
CN207263906U (en) * 2017-10-09 2018-04-20 福建成达兴智能科技股份有限公司 A kind of flashing light tester
CN207460369U (en) * 2017-06-12 2018-06-05 临海市第四建筑工程公司 A kind of road traffic flashing light
CN108880682A (en) * 2018-07-25 2018-11-23 中国人民解放军战略支援部队信息工程大学 A kind of visible light communication dimming controlling method and system based on coding
CN109218711A (en) * 2018-09-14 2019-01-15 Oppo(重庆)智能科技有限公司 Detection method, system and the electronic equipment of flash lamp
CN110505013A (en) * 2019-08-26 2019-11-26 宁波方太厨具有限公司 Control method, system, electronic equipment and storage medium without screen equipment distribution

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988602A (en) * 2005-12-22 2007-06-27 比亚迪股份有限公司 Flash detecting method and flash detecting device
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
US20160014311A1 (en) * 2014-07-08 2016-01-14 International Business Machines Corporation Peer to peer lighting communication
CN106454044A (en) * 2016-10-25 2017-02-22 浙江宇视科技有限公司 Explosion flash light supplementing device and method
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
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
CN108880682A (en) * 2018-07-25 2018-11-23 中国人民解放军战略支援部队信息工程大学 A kind of visible light communication dimming controlling method and system based on coding
CN109218711A (en) * 2018-09-14 2019-01-15 Oppo(重庆)智能科技有限公司 Detection method, system and the electronic equipment of flash lamp
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
CN113552766B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN109035831B (en) Traffic indicator light identification method, device, equipment, storage medium and vehicle
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
CN101740132A (en) Early warning method for life service of solid state disc, solid state disc and early warning system
KR102011589B1 (en) Method and apparatus for identifying wind turbine blade icing state
CN112798951A (en) Fault processing method and device, electronic equipment and storage medium
CN112235924A (en) Sensor fault processing method and related device
JP2017132451A (en) Aeronautical message monitor
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
CN108959031A (en) A kind of NVME backboard lighting control method thereof, system, medium and equipment
CN113552766B (en) Flash-missing detection method and device for flash-explosion lamp, electronic equipment and storage medium
CN106872983B (en) Distance measurement method, device and system
CN109597389B (en) Test system of embedded control system
CN111654405B (en) Method, device, equipment and storage medium for fault node of communication link
CN113807209A (en) Parking space detection method and device, electronic equipment and storage medium
CN108037942B (en) Adaptive data recovery and update method and device for embedded equipment
CN112381386A (en) Vehicle inspection and control method and device, electronic equipment and storage medium
CN113743769B (en) Data security detection method and device, electronic equipment and storage medium
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
CN116434576B (en) Traffic light timing scheme determining method, device, system and equipment
CN115604018B (en) Network security monitoring method, system, equipment and storage medium
CN115080958A (en) Vehicle-mounted computing platform management method and related equipment
CN113807635B (en) Service operation data monitoring method and device, electronic equipment and storage medium
CN113192227B (en) Community patrol service platform based on Internet of things

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