CN111272393A - Flash lamp detection method and device - Google Patents

Flash lamp detection method and device Download PDF

Info

Publication number
CN111272393A
CN111272393A CN202010072295.9A CN202010072295A CN111272393A CN 111272393 A CN111272393 A CN 111272393A CN 202010072295 A CN202010072295 A CN 202010072295A CN 111272393 A CN111272393 A CN 111272393A
Authority
CN
China
Prior art keywords
value
flash lamp
brightness value
judging
environment
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.)
Pending
Application number
CN202010072295.9A
Other languages
Chinese (zh)
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.)
Shanghai Yueyi Network Information Technology Co Ltd
Original Assignee
Shanghai Yueyi Network Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yueyi Network Information Technology Co Ltd filed Critical Shanghai Yueyi Network Information Technology Co Ltd
Priority to CN202010072295.9A priority Critical patent/CN111272393A/en
Publication of CN111272393A publication Critical patent/CN111272393A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G01M11/02Testing optical properties

Abstract

The invention aims to provide a method and equipment for detecting a flash lamp, wherein a first brightness value of an environment where the flash lamp is closed and a second brightness value of the environment where the flash lamp is opened are respectively collected, then a difference value of the first brightness value is subtracted from the second brightness value, if the difference value is larger than or equal to a preset threshold value, the performance of the flash lamp in the opened state is good and normal, and if the difference value is not larger than the preset threshold value, the performance of the flash lamp in the opened state is abnormal.

Description

Flash lamp detection method and device
Technical Field
The invention relates to the field of computers, in particular to a flash lamp detection method and device.
Background
When the intelligent terminals such as the mobile phone are recycled, the performance of the flash lamp of the intelligent terminals such as the mobile phone needs to be detected so as to accurately estimate the recycled intelligent terminals such as the mobile phone.
The existing flash lamp performance detection of intelligent terminals such as mobile phones is realized in a manual detection mode, so that the detection cost is high, and the detection efficiency is low.
Disclosure of Invention
An object of the present invention is to provide a flash lamp detection method and apparatus.
According to an aspect of the present invention, there is provided a flash detection method, including:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
Further, in the above method, after controlling the flash lamp of the smart device to be turned off, acquiring a first brightness value of an environment where the flash lamp is located through the optical sensor, including:
placing the intelligent equipment in a closed box body;
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of a closed box body environment where the flash lamp is located through a light sensor;
after the flash lamp of control smart machine opened, gather through the light sensor the second luminance value of flash lamp place environment includes:
and after the flash lamp of the intelligent device is controlled to be opened, acquiring a second brightness value of the environment of the closed box body where the flash lamp is located through the optical sensor.
Further, in the above method, after controlling the flash lamp of the smart device to be turned on, acquiring, by the light sensor, a second brightness value of an environment where the flash lamp is located includes:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is greater than or equal to a preset threshold value at least once, and if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
Further, in the above method, after controlling the flash lamp of the smart device to be turned on, acquiring, by the light sensor, a second brightness value of an environment where the flash lamp is located includes:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating the average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
According to another aspect of the present invention, there is also provided a flash detection apparatus, wherein the apparatus includes:
the intelligent device comprises a first device, a second device and a control module, wherein the first device is used for collecting a first brightness value of the environment where a flash lamp of the intelligent device is located through a light sensor after the flash lamp is controlled to be turned off;
the second device is used for controlling a flash lamp of the intelligent equipment to be turned on and then acquiring a second brightness value of the environment where the flash lamp is located through the optical sensor;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value or not, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
Further, in the above device, the first device is configured to place the intelligent device in a closed box, and after controlling a flash lamp of the intelligent device to be turned off, collect, by using a light sensor, a first brightness value of an environment of the closed box where the flash lamp is located;
and the second device is used for controlling a second brightness value of the environment of the closed box body where the flash lamp is located to be collected through the optical sensor after the flash lamp of the intelligent equipment is opened.
Further, in the above device, the second device is configured to collect, by using the light sensor, a second brightness value of an environment where a flash lamp of the smart device is located for more than 2 times after the flash lamp is turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is at least once greater than or equal to a preset threshold value, and if the calculated difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
Further, in the above device, the second device is configured to collect, by using the light sensor, a second brightness value of an environment where a flash lamp of the smart device is located for more than 2 times after the flash lamp is turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating an average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
Compared with the prior art, the method and the device have the advantages that the first brightness value of the environment where the flash lamp is closed and the second brightness value of the environment where the flash lamp is opened are respectively collected, then the difference value of the first brightness value is subtracted from the second brightness value, if the difference value is larger than or equal to the preset threshold value, the performance of the flash lamp in the opened state is good and normal, and if the difference value is not larger than the preset threshold value, the performance of the flash lamp in the opened state is abnormal.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 shows a flowchart of a flash detection method according to an embodiment of the invention.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, the present invention provides a flash detection method, including:
step S1, after controlling the flash lamp of the intelligent device to be closed, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
step S2, after a flash lamp of the intelligent device is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
step S3, calculating a difference value obtained by subtracting the first brightness value from the second brightness value, and judging whether the difference value is greater than or equal to a preset threshold value, if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
The invention can realize simple and efficient detection of the performance of the flash lamp and provide reliable basis for accurate evaluation of subsequent intelligent equipment by respectively acquiring a first brightness value of the environment in which the flash lamp is closed and a second brightness value of the environment in which the flash lamp is opened, then subtracting the difference value of the first brightness value from the second brightness value, if the difference value is greater than or equal to a preset threshold value, the performance of the flash lamp in the opened state is good and normal, and if the difference value is not greater than the preset threshold value, the performance of the flash lamp in the opened state is abnormal.
In an embodiment of the method for detecting a flash lamp, in step S1, after controlling the flash lamp of the smart device to be turned off, acquiring a first brightness value of an environment where the flash lamp is located through a light sensor, including:
step S11, placing the intelligent equipment in a closed box;
step S12, after controlling the flash lamp of the intelligent device to be closed, acquiring a first brightness value of the environment of the closed box body where the flash lamp is located through a light sensor;
step S2, after the flash lamp of the intelligent device is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through the optical sensor, wherein the step S includes the following steps:
and after the flash lamp of the intelligent device is controlled to be opened, acquiring a second brightness value of the environment of the closed box body where the flash lamp is located through the optical sensor.
Here, in this embodiment, through placing the smart machine in the closed box, guarantee that the closed box environment under the flash light closed state is the dark environment basically, can guarantee that the difference between first luminance value and the second luminance value is enough big, and then guarantee whether follow-up difference is more than or equal to the interpretation of presetting the threshold value more accurate.
In an embodiment of the method for detecting a flash lamp, in step S2, after controlling the flash lamp of the smart device to be turned on, acquiring, by the optical sensor, a second brightness value of an environment where the flash lamp is located includes:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
step S3, calculating a difference value obtained by subtracting the first brightness value from the second brightness value, and judging whether the difference value is greater than or equal to a preset threshold value, if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is greater than or equal to a preset threshold value at least once, and if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
In the situation that some intelligent devices can be automatically turned off after the flash lamps are turned on, the second brightness value of the environment where the flash lamps are located can be acquired for more than 2 times through the optical sensor, the second brightness value of the flash lamps in the flashing state can be ensured to the greatest extent, the difference value obtained through at least one subsequent calculation is larger than or equal to the preset threshold value, and the flash lamps are accurately judged to be normal.
In an embodiment of the method for detecting a flash lamp, in step S2, after controlling the flash lamp of the smart device to be turned on, acquiring, by the optical sensor, a second brightness value of an environment where the flash lamp is located includes:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
step S3, calculating a difference value obtained by subtracting the first brightness value from the second brightness value, and judging whether the difference value is greater than or equal to a preset threshold value, if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating the average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
In the situation that some intelligent devices can be automatically turned off after the flash lamps are turned on, the second brightness value of the environment where the flash lamps are located can be acquired for more than 2 times through the optical sensor, the second brightness value of the flash lamps in the flashing state can be ensured to the greatest extent, and whether the flash lamps are normal or not can be accurately judged based on the average difference value.
The present invention provides a flash detection apparatus, the apparatus comprising:
the intelligent device comprises a first device, a second device and a control module, wherein the first device is used for collecting a first brightness value of the environment where a flash lamp of the intelligent device is located through a light sensor after the flash lamp is controlled to be turned off;
the second device is used for controlling a flash lamp of the intelligent equipment to be turned on and then acquiring a second brightness value of the environment where the flash lamp is located through the optical sensor;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value or not, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
The invention can realize simple and efficient detection of the performance of the flash lamp and provide reliable basis for accurate evaluation of subsequent intelligent equipment by respectively acquiring a first brightness value of the environment in which the flash lamp is closed and a second brightness value of the environment in which the flash lamp is opened, then subtracting the difference value of the first brightness value from the second brightness value, if the difference value is greater than or equal to a preset threshold value, the performance of the flash lamp in the opened state is good and normal, and if the difference value is not greater than the preset threshold value, the performance of the flash lamp in the opened state is abnormal.
In an embodiment of the method for detecting the flash lamp, the first device is used for placing the intelligent device in a closed box body, and acquiring a first brightness value of an environment of the closed box body where the flash lamp is located through a light sensor after the flash lamp of the intelligent device is controlled to be turned off;
and the second device is used for controlling a second brightness value of the environment of the closed box body where the flash lamp is located to be collected through the optical sensor after the flash lamp of the intelligent equipment is opened.
Here, in this embodiment, through placing the smart machine in the closed box, guarantee that the closed box environment under the flash light closed state is the dark environment basically, can guarantee that the difference between first luminance value and the second luminance value is enough big, and then guarantee whether follow-up difference is more than or equal to the interpretation of presetting the threshold value more accurate.
In an embodiment of the method for detecting the flash lamp, the second device is used for acquiring a second brightness value of an environment where the flash lamp is located for more than 2 times through the optical sensor after the flash lamp of the intelligent device is controlled to be turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is at least once greater than or equal to a preset threshold value, and if the calculated difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
In the situation that some intelligent devices can be automatically turned off after the flash lamps are turned on, the second brightness value of the environment where the flash lamps are located can be acquired for more than 2 times through the optical sensor, the second brightness value of the flash lamps in the flashing state can be ensured to the greatest extent, the difference value obtained through at least one subsequent calculation is larger than or equal to the preset threshold value, and the flash lamps are accurately judged to be normal.
In an embodiment of the method for detecting the flash lamp, the second device is used for acquiring a second brightness value of an environment where the flash lamp is located for more than 2 times through the optical sensor after the flash lamp of the intelligent device is controlled to be turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating an average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
In the situation that some intelligent devices can be automatically turned off after the flash lamps are turned on, the second brightness value of the environment where the flash lamps are located can be acquired for more than 2 times through the optical sensor, the second brightness value of the flash lamps in the flashing state can be ensured to the greatest extent, and whether the flash lamps are normal or not can be accurately judged based on the average difference value.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
For details of embodiments of each device and storage medium of the present invention, reference may be made to corresponding parts of each method embodiment, and details are not described herein again.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Also, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A flash detection method, wherein the method comprises:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
2. The method of claim 1, wherein controlling a flash of a smart device to turn off and then acquiring a first brightness value of an environment in which the flash is located through a light sensor comprises:
placing the intelligent equipment in a closed box body;
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of a closed box body environment where the flash lamp is located through a light sensor;
after the flash lamp of control smart machine opened, gather through the light sensor the second luminance value of flash lamp place environment includes:
and after the flash lamp of the intelligent device is controlled to be opened, acquiring a second brightness value of the environment of the closed box body where the flash lamp is located through the optical sensor.
3. The method of claim 1, wherein controlling a flash of the smart device to turn on and then acquiring a second brightness value of an environment in which the flash is located by a light sensor comprises:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is greater than or equal to a preset threshold value at least once, and if so, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
4. The method of claim 1, wherein controlling a flash of the smart device to turn on and then acquiring a second brightness value of an environment in which the flash is located by a light sensor comprises:
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located for more than 2 times through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal, comprising the following steps:
calculating the difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating the average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
5. A flash detection device, wherein the device comprises:
the intelligent device comprises a first device, a second device and a control module, wherein the first device is used for collecting a first brightness value of the environment where a flash lamp of the intelligent device is located through a light sensor after the flash lamp is controlled to be turned off;
the second device is used for controlling a flash lamp of the intelligent equipment to be turned on and then acquiring a second brightness value of the environment where the flash lamp is located through the optical sensor;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value or not, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
6. The device according to claim 5, wherein the first means is configured to place the smart device in a closed box, and after controlling a flash lamp of the smart device to be turned off, collect, by a light sensor, a first brightness value of an environment of the closed box where the flash lamp is located;
and the second device is used for controlling a second brightness value of the environment of the closed box body where the flash lamp is located to be collected through the optical sensor after the flash lamp of the intelligent equipment is opened.
7. The device according to claim 6, wherein the second means is configured to collect, by the light sensor, a second brightness value of an environment where a flash of the smart device is located more than 2 times after the flash is turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, judging whether the calculated difference value is at least once greater than or equal to a preset threshold value, and if the calculated difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
8. The device according to claim 6, wherein the second means is configured to collect, by the light sensor, a second brightness value of an environment where a flash of the smart device is located more than 2 times after the flash is turned on;
the third device is used for calculating a difference value obtained by subtracting the first brightness value from the second brightness value acquired each time, calculating an average difference value of all the difference values, judging whether the average difference value is greater than or equal to a preset threshold value, and if the average difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
9. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
10. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
after a flash lamp of the intelligent equipment is controlled to be turned off, acquiring a first brightness value of the environment where the flash lamp is located through a light sensor;
after a flash lamp of the intelligent equipment is controlled to be turned on, acquiring a second brightness value of the environment where the flash lamp is located through a light sensor;
calculating a difference value obtained by subtracting the first brightness value from the second brightness value, judging whether the difference value is greater than or equal to a preset threshold value, and if the difference value is greater than or equal to the preset threshold value, judging that the flash lamp is normal; if the value is less than the preset value, judging that the flash lamp is abnormal.
CN202010072295.9A 2020-01-21 2020-01-21 Flash lamp detection method and device Pending CN111272393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010072295.9A CN111272393A (en) 2020-01-21 2020-01-21 Flash lamp detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072295.9A CN111272393A (en) 2020-01-21 2020-01-21 Flash lamp detection method and device

Publications (1)

Publication Number Publication Date
CN111272393A true CN111272393A (en) 2020-06-12

Family

ID=70999143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072295.9A Pending CN111272393A (en) 2020-01-21 2020-01-21 Flash lamp detection method and device

Country Status (1)

Country Link
CN (1) CN111272393A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112101586A (en) * 2020-08-19 2020-12-18 江苏中州科技有限公司 Operation and maintenance management system for light supplement lamp of traffic monitoring camera
US11798250B2 (en) 2019-02-18 2023-10-24 Ecoatm, Llc Neural network based physical condition evaluation of electronic devices, and associated systems and methods
US11843206B2 (en) 2019-02-12 2023-12-12 Ecoatm, Llc Connector carrier for electronic device kiosk
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203672594U (en) * 2013-11-27 2014-06-25 杭州照相机械研究所 Flash lamp automatic test system device
CN205879498U (en) * 2016-08-11 2017-01-11 上海研端信息科技有限公司 Flash light tester and flash light test system
CN106647110A (en) * 2017-03-06 2017-05-10 广东欧珀移动通信有限公司 Flash lamp module detection method and flash lamp module detection device
CN106840607A (en) * 2016-12-20 2017-06-13 捷开通讯(深圳)有限公司 The method of testing and test system of terminal flash lamp illumination
CN109100118A (en) * 2018-07-24 2018-12-28 广州柏曼光电科技有限公司 Test of light source method and system
CN109218711A (en) * 2018-09-14 2019-01-15 Oppo(重庆)智能科技有限公司 Detection method, system and the electronic equipment of flash lamp

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203672594U (en) * 2013-11-27 2014-06-25 杭州照相机械研究所 Flash lamp automatic test system device
CN205879498U (en) * 2016-08-11 2017-01-11 上海研端信息科技有限公司 Flash light tester and flash light test system
CN106840607A (en) * 2016-12-20 2017-06-13 捷开通讯(深圳)有限公司 The method of testing and test system of terminal flash lamp illumination
CN106647110A (en) * 2017-03-06 2017-05-10 广东欧珀移动通信有限公司 Flash lamp module detection method and flash lamp module detection device
CN109100118A (en) * 2018-07-24 2018-12-28 广州柏曼光电科技有限公司 Test of light source method and system
CN109218711A (en) * 2018-09-14 2019-01-15 Oppo(重庆)智能科技有限公司 Detection method, system and the electronic equipment of flash lamp

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11843206B2 (en) 2019-02-12 2023-12-12 Ecoatm, Llc Connector carrier for electronic device kiosk
US11798250B2 (en) 2019-02-18 2023-10-24 Ecoatm, Llc Neural network based physical condition evaluation of electronic devices, and associated systems and methods
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition
CN112101586A (en) * 2020-08-19 2020-12-18 江苏中州科技有限公司 Operation and maintenance management system for light supplement lamp of traffic monitoring camera

Similar Documents

Publication Publication Date Title
CN111272393A (en) Flash lamp detection method and device
CN109544166B (en) Risk identification method and risk identification device
CN111294459B (en) Method, device and storage medium for detecting privacy of android mobile phone
CN111325715A (en) Camera color spot detection method and device
CN114415973B (en) Slow disk detection method and device, electronic equipment and storage medium
CN111651041B (en) Lifting awakening method and system for mobile equipment
CN111272388A (en) Method and device for detecting camera flash lamp
CN111272067A (en) Mobile phone detection method and equipment
CN111325901A (en) Method and device for identifying mobile phone
CN111277659B (en) Method and device for detecting display state of transverse screen and vertical screen of mobile phone
CN110827248A (en) Method and device for identifying screen area of electronic device
CN111277696A (en) Method and device for detecting privacy of apple mobile phone
CN111314445A (en) Method and device for controlling recycling machine to open door by mobile phone
CN112181830B (en) Memory leak detection method, device, terminal and medium
CN111342513A (en) Charging method and device based on temperature monitoring
CN113012653A (en) Method and equipment for automatically controlling brightness of intelligent electric vehicle
CN111294453B (en) Mobile phone key test method and equipment
CN113051105A (en) Data processing method, device, equipment and storage medium
CN112616013A (en) Method and apparatus for implementing automatic HDR
CN111880078A (en) Method and equipment for automated instruction testing
CN111447086A (en) Service processing method and device and electronic equipment
CN112163436A (en) Information identification system, method and device
CN113964796B (en) Drive system control method
CN114885404B (en) Method and equipment for reducing communication power consumption of smart watch
CN111610849B (en) Method and equipment for preventing association starting between applications

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant after: Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd.

Address before: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant before: SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612