Illuminance detection method, device and system and nonvolatile storage medium

After obtaining images and dividing areas, based on the method of lighting and regional weights, the existing light illumination detection technology is susceptible to interference and cannot meet the needs of user needs, and the lighting detection effect that is more accurate and more suitable for user needs is achieved.

CN119354330APending Publication Date: 2025-01-24GUANGDONG MURORA INTELLIGENT LIGHTING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411143854.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

Existing illuminance detection technologies are susceptible to interference from other factors and cannot determine illuminance based on actual needs.

Method used

By obtaining the light degree of lightness in the images and images in the area to be detected, divide the image into multiple regions, determine the lightness of each area based on the light degree of multiple pixels, and determine the test to be tested according to the preset area weight The lightness of the area.

Benefits of technology

It achieves technical effects that make illumination detection results more accurate and more suitable for user needs, and avoids inaccurate results caused by interference from other factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119354330A_ABST
    Figure CN119354330A_ABST
Patent Text Reader

Abstract

The invention discloses an illuminance detection method, device and system and a nonvolatile storage medium. The method comprises the following steps: acquiring an image of a to-be-detected area and illuminance corresponding to a plurality of pixel points in the image; the image is divided into a plurality of areas, and any area in the plurality of areas comprises a plurality of pixel points; based on the illuminance corresponding to each of the plurality of pixel points, determining the illuminance corresponding to each of the plurality of areas; and determining the illuminance of the to-be-detected area according to the illuminance corresponding to each of the plurality of areas and a preset area weight. According to the invention, the technical problems that the illuminance detection is easily interfered by other factors and the illuminance cannot be determined according to actual demands in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of light intensity detection, and in particular to a light intensity detection method, device, system and non-volatile storage medium. Background Art

[0002] The common point of the current illuminance detection technology solutions is that they all detect illuminance by passive reception. The sensors need to be placed in the environment or irradiation surface to be detected in order to accurately obtain the illuminance data of the target object, which is easily interfered by other factors. Moreover, due to the limitation of sensor size, it is impossible to obtain the illuminance of a large area. And it is impossible to detect illuminance according to user needs.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, system and non-volatile storage medium for detecting illuminance, so as to at least solve the technical problem in the related art that illuminance detection is easily interfered by other factors and illuminance cannot be determined according to actual needs.

[0005] According to one aspect of an embodiment of the present invention, a method for detecting illuminance is provided, including: acquiring an image of an area to be detected and the illuminances corresponding to each of a plurality of pixel points in the image; dividing the image into a plurality of areas, wherein any one of the plurality of areas includes a plurality of pixel points; determining the illuminances corresponding to each of the plurality of areas based on the illuminances corresponding to each of the plurality of pixel points; determining the illuminance of the area to be detected according to the illuminances corresponding to each of the plurality of areas and preset area weights.

[0006] Optionally, dividing the image into a plurality of regions, wherein one region among the plurality of regions includes a plurality of pixel points, comprises: acquiring a region division accuracy; and dividing the image into the plurality of regions based on the region division accuracy.

[0007] Optionally, based on the illuminances corresponding to multiple pixels, the illuminances corresponding to multiple areas are determined, including: determining the illuminance of the target area according to the illuminances corresponding to multiple pixels, wherein the target area is any one of the multiple areas, and the steps are as follows: sorting the illuminances corresponding to multiple pixels corresponding to the target area to obtain an illuminance sequence; removing the illuminance at a preset position in the illuminance sequence to obtain a target illuminance sequence; and calculating the average illuminance in the target illuminance sequence as the illuminance of the target area.

[0008] Optionally, before determining the illumination of the area to be detected based on the illumination corresponding to each of the multiple areas and the preset area weights, it includes: receiving a scene corresponding to the area to be detected selected based on the target account; and selecting the area weight corresponding to the scene corresponding to the area to be detected based on the correspondence between the preset scenes and the area weights.

[0009] Optionally, the illumination of the area to be detected is determined according to the illumination corresponding to each of the multiple areas and the preset area weights, including: determining the weight coefficient corresponding to each of the multiple areas according to the area weights; multiplying the illumination corresponding to each of the multiple areas by the corresponding weight coefficient to obtain the illumination proportion corresponding to each of the multiple areas; determining the illumination of the area to be detected according to the sum of the illumination proportions corresponding to each of the multiple areas.

[0010] According to another aspect of an embodiment of the present invention, a light intensity detection device is also provided, including: an acquisition module, used to acquire an image of an area to be detected and the light intensity corresponding to each of multiple pixel points in the image; a division module, used to divide the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; a first determination module, used to determine the light intensity corresponding to each of the multiple areas based on the light intensity corresponding to each of the multiple pixel points; and a second determination module, used to determine the light intensity of the area to be detected based on the light intensity corresponding to each of the multiple areas and a preset area weight.

[0011] According to another aspect of an embodiment of the present invention, a light intensity detection system is also provided, including: a light intensity sensor, used to obtain the light intensity corresponding to each of multiple pixel points in an image of an area to be detected; a communication module, used to transmit the light intensity corresponding to each of the multiple pixel points to a host computer terminal; the host computer terminal is used to divide the image into multiple areas, wherein one area of ​​the multiple areas includes multiple pixel points, and based on the light intensity corresponding to each of the multiple pixel points, the light intensity corresponding to each of the multiple areas is determined, and the light intensity of the area to be detected is determined according to a preset area weight.

[0012] Optionally, the light illumination sensor in the above system includes a lens unit for acquiring an image of the area to be detected; a sensor unit for converting the image of the area to be detected into image information corresponding to each of the multiple pixel points; and a data processing unit for determining the light illumination corresponding to each of the multiple pixel points based on the image information corresponding to each of the multiple pixel points.

[0013] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned illumination detection methods.

[0014] According to another aspect of the embodiments of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above-mentioned illumination detection methods is executed.

[0015] According to yet another aspect of the embodiments of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above-mentioned illumination detection methods is implemented.

[0016] In an embodiment of the present invention, an illuminance detection method is adopted, by obtaining an image of the area to be detected and the illuminances corresponding to each of multiple pixel points in the image; dividing the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; based on the illuminances corresponding to each of the multiple pixel points, determining the illuminances corresponding to each of the multiple areas; determining the illuminance of the area to be detected according to the illuminances corresponding to each of the multiple areas and preset area weights, thereby achieving the purpose of determining the illuminance of the area to be detected according to the area weight, thereby achieving the technical effect that the result of illuminance detection is more accurate and more suitable for user needs, thereby solving the technical problem in the related art that illuminance detection is easily interfered by other factors and the illuminance cannot be determined according to actual needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 A hardware structure block diagram of a computer terminal for implementing a light intensity detection method is shown;

[0019] Figure 2 is a flow chart of a method for detecting light intensity according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of partitions in a method for detecting light intensity according to an optional embodiment of the present invention;

[0021] Figure 4 is a structural block diagram of a light intensity detection device provided according to an embodiment of the present invention;

[0022] Figure 5 is an architecture diagram of a light intensity detection system provided according to an embodiment of the present invention;

[0023] Figure 6 is an architectural diagram of a light sensor in a light intensity detection system provided according to an optional embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to an embodiment of the present invention, a method embodiment of a light intensity detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0027] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a light intensity detection method. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1Different configurations shown.

[0028] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0029] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the illuminance detection method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the illuminance detection method of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0030] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0031] Figure 2 is a flow chart of a method for detecting light intensity according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0032] Step S202, obtaining an image of the area to be detected and the illumination corresponding to each of a plurality of pixel points in the image.

[0033] In this step, a sensor or a camera or other equipment can be used to collect an image of the area to be detected, and collect the illuminance corresponding to each of the multiple pixels in the image. Among them, illuminance refers to the process of measuring the luminous flux received per unit area, usually in lux (Lux, symbolized as lx), which reflects the intensity of light irradiated by a light source on a certain surface. The illuminance corresponding to each of the multiple pixels can be obtained by using a target surface illuminance (Target Surface Illumination Measurement abbreviated as TSIM) sensor. By taking an image of the area to be detected and then detecting it, it can be avoided that the area to be detected is interfered by other factors, resulting in the illuminance obtained being inaccurate, thereby achieving the technical effect of improving the accuracy of the illuminance result.

[0034] Step S204: divide the image into a plurality of regions, wherein any one of the plurality of regions includes a plurality of pixels.

[0035] In this step, the image can be divided into multiple regions, such as 2x2, 4x4, etc. The specific number of multiple regions can be adjusted. The more regions there are, the higher the precision of the corresponding detection. The image can be divided into multiple regions equally, or the multiple regions can be divided into multiple regions of different sizes. The specific number can be determined according to the actual situation of the image to be detected. Figure 3 Schematic diagram of partitioning in a method for detecting light intensity according to an optional embodiment of the present invention. Figure 3 Shown is an image of the area to be inspected divided into 2x2 partitions.

[0036] Step S206, based on the illuminations corresponding to the plurality of pixel points, the illuminations corresponding to the plurality of regions are determined.

[0037] In this step, the illumination corresponding to each of the multiple regions can be determined according to the illumination of the pixels in each region. For example, the average illumination of the pixels in each region can be used as the illumination of the corresponding region. Alternatively, a truncated average algorithm can be selected to remove the highest and lowest illumination values ​​in the region and take the average of the remaining illumination values ​​as the illumination of the corresponding region.

[0038] Step S208, determining the illumination of the area to be detected according to the illuminations corresponding to the multiple areas and the preset area weights.

[0039] In this step, the weight of the area can be set by the user. The user can manually set the weight of different areas, or the corresponding relationship between different scenes and regional weights can be stored in advance. The user only needs to select the scene to automatically match the regional weight. The illumination of the area to be detected can be determined based on the regional weight and the illumination corresponding to each of the multiple areas. By setting the regional weight, the obtained illumination can be more in line with the user's needs. For example, for the area to be detected, the user may only use one of the areas. If the average illumination of all pixels in the area to be detected is taken as the illumination of the area to be detected, it may happen that even if the illumination is very high, the illumination of the area used by the user is low, that is, the illumination result obtained cannot meet the user's needs well. Therefore, setting the regional weight can enable users to better understand the illumination that meets their needs and improve the user experience.

[0040] Among them, the above-mentioned illuminance detection can be applied in multiple scenarios. For example, in the detection of the switch state of a TV, it is necessary to obtain the illuminance of the TV screen to determine the switch state of the TV. However, in actual measurement, the area that may be obtained may include not only the area of ​​the TV screen, but also the surrounding area. Therefore, the weight of the TV area can be set to be higher and the weight of the surrounding area can be set to be lower to calculate the target illuminance, so as to determine the switch state of the TV.

[0041] Through the above steps, the purpose of determining the illuminance of the area to be detected according to the area weight is achieved, thereby achieving the technical effect that the result of illuminance detection is more accurate and more suitable for user needs, thereby solving the technical problem in the related technology that illuminance detection is easily interfered by other factors and cannot determine the illuminance according to actual needs.

[0042] As an optional embodiment, the image is divided into multiple regions, wherein one region among the multiple regions includes multiple pixel points, including: obtaining region division accuracy; and dividing the image into multiple regions based on the region division accuracy.

[0043] Optionally, the region division accuracy can be obtained before dividing the region, wherein a default division accuracy can be set, for example, the image is divided into multiple regions of 10x10. If the user does not make a selection, the region division is performed according to the default region division accuracy. The user can also select the required region division accuracy. The higher the region division accuracy, the more partitions there are, and the more the illumination can meet the user's needs.

[0044] As an optional embodiment, based on the illuminances corresponding to multiple pixels, the illuminances corresponding to multiple areas are determined, including: determining the illuminance of the target area according to the illuminances corresponding to multiple pixels, wherein the target area is any one of the multiple areas, and the steps are as follows: sorting the illuminances corresponding to multiple pixels corresponding to the target area to obtain an illuminance sequence; removing the illuminances at a preset position in the illuminance sequence to obtain a target illuminance sequence; and calculating the average illuminance in the target illuminance sequence as the illuminance of the target area.

[0045] Optionally, the illuminance corresponding to each of the multiple regions can be determined by using a truncated average algorithm, that is, removing the smallest part of the data and the largest part of the data in the data set, and this part of the data is the illuminance at a preset position in the illuminance sequence. Among them, the truncated average algorithm can be a 10% truncated average algorithm, a 15% truncated average algorithm, a 20% truncated average algorithm, etc., wherein the 10% truncated average algorithm is relatively more accurate in the final illuminance obtained. The 10% truncated average algorithm is used, that is, the smallest 10% of the data and the largest 10% of the data in the data set are removed, and the average value of the remaining 80% of the data is calculated as the final result. Specifically, the illuminance of the pixels in each region can be arranged in order of size to obtain an illuminance sequence. The first 10% of the illuminance and the last 10% of the illuminance in the illuminance sequence are removed to obtain a target illuminance sequence composed of the remaining data. The average value of the illuminance in the target illuminance sequence is calculated as the illuminance of the corresponding region. For example, the obtained illuminance sequence (in lux) is 1000, 1000, 900, 800, 800, 700, 700, 600, 500, 400. After removing the first 10% and the last 10% of the data, the target illuminance sequence is 1000, 900, 800, 800, 700, 700, 600, 500. The average illuminance of 750lux in the target illuminance sequence is calculated as the illuminance corresponding to the area. Removing extremely low values ​​and extremely high values ​​can avoid abnormal illuminance corresponding to certain pixels in the image due to some interference during image acquisition, which affects the illuminance of the image to be detected. Specifically, when the number of pixels in the area is large, you can also choose to remove the first 20% and the last 20% of the data. The illuminance calculation of each area can be performed according to the actual situation.

[0046] As an optional embodiment, before determining the illumination of the area to be detected based on the illumination corresponding to each of multiple areas and the preset area weights, it includes: receiving a scene corresponding to the area to be detected selected based on a target account; and selecting the area weight corresponding to the scene corresponding to the area to be detected based on the correspondence between the preset scenes and the area weights.

[0047] Optionally, the regional weight can be determined according to the scene corresponding to the area to be detected. The regional weight can feedback the user's attention to different areas. The higher the regional weight corresponding to the area, the higher the user's attention to the area. For example, in the case where the scene of the area to be detected is a desk, the area with a higher weight coefficient should be a commonly used area on the desktop, for example, the weight coefficient corresponding to the middle area is higher, and the weight coefficient corresponding to the edge area of ​​the desk is lower. For example, in the case where the scene corresponding to the area to be detected is reading lighting, it can be considered that each area should be equally important for reading book lighting, so the weight coefficients corresponding to different areas can be set to be the same. The scene corresponding to the area to be detected selected by the user based on the target account can be received. Then, according to the correspondence between the pre-stored scene and the regional weight, the corresponding regional weight is selected. In addition to selecting from the pre-stored scenes and regional weights, the weight coefficients corresponding to different areas can also be manually configured. For example, the user can input the weight coefficients set for different areas based on the target account. By setting the regional weight, the illumination of the area to be detected can be made more in line with the actual needs of the user and improve the user's experience.

[0048] As an optional embodiment, the illumination of the area to be detected is determined according to the illumination corresponding to each of the multiple areas and the preset area weights, including: determining the weight coefficients corresponding to each of the multiple areas according to the area weights; multiplying the illumination corresponding to each of the multiple areas by the corresponding weight coefficients to obtain the illumination proportions corresponding to each of the multiple areas; and determining the illumination of the area to be detected according to the sum of the illumination proportions corresponding to each of the multiple areas.

[0049] Optionally, the weight coefficients corresponding to each of the multiple areas are determined according to the area weights. For example, in the scenario where the area to be detected is a desk, for a 2x2 partition, the illuminance corresponding to area A is La=600lux, the illuminance corresponding to area B is Lb=700lux, the illuminance corresponding to area C is Lc=900lux, and the illuminance corresponding to area D is Ld=800lux. If the user is reading in area C, then in accordance with the principle that the illuminance domain weights of the key areas are greater, a weight coefficient of 55% is assigned to area C, and an average weight coefficient of 15% is assigned to the other three areas. The illuminance of the area to be detected is L=0.15*La+0.15*Lb+0.55*Lc+0.15*Ld=90+105+495+120=810lux.

[0050] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0051] Through the description of the above implementation methods, those skilled in the art can clearly understand that the illuminance detection method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0052] According to an embodiment of the present invention, a light intensity detection device for implementing the above light intensity detection method is also provided. Figure 4 is a structural block diagram of a light intensity detection device provided according to an embodiment of the present invention. Figure 4 As shown, the light intensity detection device includes: an acquisition module 42, a division module 44, a first determination module 46 and a second determination module 48. The light intensity detection device is described below.

[0053] The acquisition module 42 is used to acquire the image of the area to be detected and the illuminance corresponding to each of the plurality of pixel points in the image.

[0054] The division module 44 is connected to the acquisition module 42 and is used to divide the image into a plurality of regions, wherein any one of the plurality of regions includes a plurality of pixels.

[0055] The first determination module 46 is connected to the division module 44 and is used to determine the illuminances corresponding to the plurality of regions based on the illuminances corresponding to the plurality of pixel points.

[0056] The second determination module 48 is connected to the first determination module 46 and is used to determine the illumination of the area to be detected according to the illuminations corresponding to the multiple areas and the preset area weights.

[0057] It should be noted that the acquisition module 42, the division module 44, the first determination module 46 and the second determination module 48 correspond to steps S202 to S208 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.

[0058] According to another aspect of the embodiment of the present invention, a light intensity detection system is also provided. Figure 5 is an architecture diagram of a light intensity detection system provided according to an embodiment of the present invention, such as Figure 5 As shown, it includes: a light intensity sensor, used to obtain the light intensity corresponding to each of multiple pixel points in the image of the area to be detected; a communication module, used to transmit the light intensity corresponding to each of the multiple pixel points to the host computer terminal; the host computer terminal is used to divide the image into multiple areas, wherein one area of ​​the multiple areas includes multiple pixel points, based on the light intensity corresponding to each of the multiple pixel points, determine the light intensity corresponding to each of the multiple areas, and determine the light intensity of the area to be detected according to a preset area weight.

[0059] The system mainly consists of a target surface illumination measurement (TSIM, which will not be described in detail later) sensor, a communication module and a host computer terminal. The TSIM sensor and the communication module are connected via a UART (asynchronous communication interface) bus, and the connection medium is a 6-wire FPC (a flexible printed circuit board with 6 conductive lines). The communication module and the host computer terminal are wirelessly connected via BLE MESH (Bluetooth Low Energy Mesh).

[0060] Figure 6 is a schematic diagram of a light sensor in a light intensity detection system according to an optional embodiment of the present invention. Figure 6 As shown, the light illumination sensor includes a lens unit for acquiring an image of the area to be detected; a sensor unit for converting the image of the area to be detected into image information corresponding to each of the multiple pixel points; and a data processing unit for determining the light illumination corresponding to each of the multiple pixel points based on the image information corresponding to each of the multiple pixel points.

[0061] The sensor unit may be a CMOS sensor, which is a sensor used for image capture. The lens collects and transmits images within a specified angle range to the CMOS sensor. After the photoelectric conversion is completed in the CMOS sensor, the information is transmitted to the DPU (data processing unit) in units of pixels. The DPU then processes the raw data into illuminance and transmits the illuminance corresponding to each of the multiple pixels to the host computer terminal.

[0062] Since the illumination information is collected by shooting the target image with a lens, the TSIM sensor itself can be kept away from the target surface being measured. Moreover, due to the protection of the lens, the TSIM sensor is not easily interfered by other light sources near its own position.

[0063] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.

[0064] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the illuminance detection method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned illuminance detection method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0065] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain an image of the area to be detected and the illuminance corresponding to each of the multiple pixel points in the image; divide the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; based on the illuminance corresponding to each of the multiple pixel points, determine the illuminance corresponding to each of the multiple areas; determine the illuminance of the area to be detected according to the illuminance corresponding to each of the multiple areas and the preset area weights.

[0066] Optionally, the processor may also execute program code of the following steps: dividing the image into multiple regions, wherein one region among the multiple regions includes multiple pixel points, including: obtaining region division accuracy; and dividing the image into multiple regions based on the region division accuracy.

[0067] Optionally, the processor may also execute program code for the following steps: determining the illuminances corresponding to multiple areas based on the illuminances corresponding to multiple pixel points, including: determining the illuminance of the target area according to the illuminances corresponding to multiple pixel points corresponding to the target area, wherein the target area is any one of the multiple areas, and the steps are as follows: sorting the illuminances corresponding to multiple pixel points corresponding to the target area to obtain an illuminance sequence; removing the illuminances at a preset position in the illuminance sequence to obtain a target illuminance sequence; and calculating the average illuminance in the target illuminance sequence as the illuminance of the target area.

[0068] Optionally, the processor may also execute program code for the following steps: before determining the illumination of the area to be detected based on the illumination corresponding to each of the multiple areas and the preset area weights, the steps include: receiving a scene corresponding to the area to be detected selected based on the target account; and selecting the area weight corresponding to the scene corresponding to the area to be detected based on the correspondence between the preset scenes and the area weights.

[0069] Optionally, the processor may also execute program code of the following steps: determining the illuminance of the area to be detected based on the illuminance corresponding to each of the multiple areas and the preset area weights, including: determining the weight coefficients corresponding to each of the multiple areas based on the area weights; multiplying the illuminance corresponding to each of the multiple areas by the corresponding weight coefficients to obtain the illuminance proportions corresponding to each of the multiple areas; determining the illuminance of the area to be detected based on the sum of the illuminance proportions corresponding to each of the multiple areas.

[0070] By adopting the embodiment of the present invention, a method for detecting illuminance is provided, which obtains an image of an area to be detected and the illuminances corresponding to each of multiple pixel points in the image; divides the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; based on the illuminances corresponding to each of the multiple pixel points, determines the illuminances corresponding to each of the multiple areas; determines the illuminance of the area to be detected according to the illuminances corresponding to each of the multiple areas and preset area weights, thereby achieving the purpose of determining the illuminance of the area to be detected according to the area weight, thereby achieving the technical effect that the result of illuminance detection is more accurate and more suitable for user needs, thereby solving the technical problem in the related art that illuminance detection is easily interfered by other factors and the illuminance cannot be determined according to actual needs.

[0071] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0072] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the light intensity detection method provided in the above embodiment.

[0073] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0074] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: obtaining an image of the area to be detected and the illuminance corresponding to each of multiple pixel points in the image; dividing the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; determining the illuminance corresponding to each of the multiple areas based on the illuminance corresponding to each of the multiple pixel points; determining the illuminance of the area to be detected based on the illuminance corresponding to each of the multiple areas and preset area weights.

[0075] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: dividing an image into multiple regions, wherein one region among the multiple regions includes multiple pixel points, including: obtaining region division accuracy; and dividing the image into multiple regions based on the region division accuracy.

[0076] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the illuminances corresponding to multiple pixels, determining the illuminances corresponding to multiple areas, including: determining the illuminance of the target area according to the illuminances corresponding to multiple pixels corresponding to the target area, wherein the target area is any one of the multiple areas, and the steps are as follows: sorting the illuminances corresponding to the multiple pixels corresponding to the target area to obtain an illuminance sequence; removing the illuminance at a preset position in the illuminance sequence to obtain a target illuminance sequence; calculating the average illuminance in the target illuminance sequence as the illuminance of the target area.

[0077] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before determining the illuminance of the area to be detected based on the illuminance corresponding to each of the multiple areas and the preset area weights, including: receiving a scene corresponding to the area to be detected selected based on the target account; based on the correspondence between the preset scenes and the area weights, selecting the area weight corresponding to the scene corresponding to the area to be detected.

[0078] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining the illuminance of the area to be detected based on the illuminances corresponding to each of the multiple areas and preset area weights, including: determining the weight coefficients corresponding to each of the multiple areas based on the area weights; multiplying the illuminances corresponding to each of the multiple areas by the corresponding weight coefficients to obtain the illuminance proportions corresponding to each of the multiple areas; determining the illuminance of the area to be detected based on the sum of the illuminance proportions corresponding to each of the multiple areas.

[0079] An embodiment of the present invention also provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can achieve: obtaining an image of the area to be detected and the illuminance corresponding to each of multiple pixel points in the image; dividing the image into multiple areas, wherein any one of the multiple areas includes multiple pixel points; based on the illuminance corresponding to each of the multiple pixel points, determining the illuminance corresponding to each of the multiple areas; determining the illuminance of the area to be detected according to the illuminance corresponding to each of the multiple areas and preset area weights.

[0080] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0081] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0082] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0084] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0086] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for detecting light intensity, characterized in that: include: Acquire an image of the area to be detected and the illuminances corresponding to a plurality of pixel points in the image; Dividing the image into a plurality of regions, wherein any one of the plurality of regions includes a plurality of pixel points; Determining the illuminances corresponding to the plurality of regions based on the illuminances corresponding to the plurality of pixel points; The illumination of the area to be detected is determined according to the illuminations corresponding to the multiple areas and the preset area weights.

2. The method according to claim 1, characterized in that The step of dividing the image into a plurality of regions, wherein one of the plurality of regions includes a plurality of pixel points, comprises: Get the area division accuracy; Based on the region division accuracy, the image is divided into the plurality of regions.

3. The method according to claim 1, characterized in that The determining, based on the illuminations corresponding to the plurality of pixels, the illuminations corresponding to the plurality of regions respectively, comprises: Determine the illuminance of the target area according to the illuminances corresponding to the plurality of pixel points corresponding to the target area, wherein the target area is any one of the plurality of areas, and the steps are as follows: Sorting the illuminations corresponding to the plurality of pixel points corresponding to the target area to obtain an illumination sequence; Removing the illuminance at a preset position in the illuminance sequence to obtain a target illuminance sequence; An average value of the illumination in the target illumination sequence is calculated as the illumination of the target area.

4. The method according to claim 1, characterized in that: Before determining the illumination of the area to be detected according to the illuminations corresponding to the multiple areas and the preset area weights, the method includes: Receiving a scene corresponding to the area to be detected based on a target account selection; Based on the preset correspondence between scenes and area weights, an area weight corresponding to the scene corresponding to the area to be detected is selected.

5. The method according to claim 1, characterized in that The step of determining the illumination of the area to be detected according to the illuminations corresponding to the multiple areas and the preset area weights includes: Determining weight coefficients corresponding to each of the plurality of regions according to the region weights; Multiplying the illuminance corresponding to each of the multiple regions by the corresponding weight coefficient to obtain the illuminance proportion corresponding to each of the multiple regions; The illuminance of the area to be detected is determined according to the sum of the illuminance proportions corresponding to the multiple areas.

6. A light intensity detection device, characterized in that: include: An acquisition module, used to acquire an image of the area to be detected and the illuminances corresponding to a plurality of pixel points in the image; A division module, used for dividing the image into a plurality of regions, wherein any one of the plurality of regions includes a plurality of pixels; A first determining module, configured to determine the illuminances corresponding to each of the plurality of regions based on the illuminances corresponding to each of the plurality of pixel points; The second determination module is used to determine the illuminance of the area to be detected according to the illuminances corresponding to the multiple areas and the preset area weights.

7. A light intensity detection system, characterized in that: include: A light intensity sensor is used to obtain the light intensity corresponding to each of a plurality of pixel points in the image of the area to be detected; A communication module, used for transmitting the light illumination corresponding to each of the plurality of pixel points to a host computer terminal; The host computer terminal is used to divide the image into multiple areas, wherein one area among the multiple areas includes multiple pixel points, and based on the illuminances corresponding to the multiple pixel points, the illuminances corresponding to the multiple areas are determined, and the illuminance of the area to be detected is determined according to a preset area weight.

8. The system according to claim 7, characterized in that The light intensity sensor comprises: A lens unit, used for acquiring an image of the area to be detected; A sensor unit, used for converting the image of the area to be detected into image information corresponding to each of the plurality of pixel points; The data processing unit is used to determine the illuminance corresponding to each of the plurality of pixel points according to the image information corresponding to each of the plurality of pixel points.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the light illumination detection method according to any one of claims 1 to 5.

10. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the light illumination detection method according to any one of claims 1 to 5.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the illuminance detection method described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • LED intelligent control method and system

    CN111315071A

  • Lighting system

    JP1998335071A

  • Illuminance detector

    JP2001281054A

  • Self-adjusting sensor for sensing daylight

    US20160345404A1

  • Light-measuring method and device, exposure method and device, and unmanned aerial vehicle

    WO2018119590A1