A smart street lamp control method, terminal device and storage medium

By monitoring the brightness distribution of the lighting area in real time and adjusting the direction and brightness of the street lamp, the problem of uneven lighting in the lighting area in the prior art is solved, and uniform lighting and effective lighting utilization are achieved.

CN118632418BActive Publication Date: 2025-02-11GUANGDONG HUIXU CONSTR ENG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410906850.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2025-02-11
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing adjustable street lights are difficult to ensure the uniformity of the lighting area in the entire lighting area, resulting in excessive lighting in some areas and insufficient lighting in other areas.

Method used

By obtaining the map and monitoring images of the lighting area, determine the lighting brightness of each location, form an annotated map, and compare it with the preset standard brightness distribution map, adjust the lighting direction and brightness of the street lights in real time until the insufficient lighting and over-illuminated areas are converted into Well-lit area.

Benefits of technology

The light uniformity of the entire lighting area is achieved, the lighting effect and the effective utilization of light are ensured, and the environmental light changes can be monitored in real time and adjusted to continuously ensure uniform lighting effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632418B_ABST
    Figure CN118632418B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of image processing technology, and more particularly to a smart street lamp control method, terminal equipment and storage medium, wherein the method realizes real-time monitoring of the lighting brightness of each position in the entire lighting area, defines clear boundary adjustments, and coordinately adjusts the lighting direction and brightness of each street lamp accordingly, and can convert both insufficiently lit areas and excessively lit areas into sufficiently lit areas, thereby achieving uniformity of lighting, ensuring lighting effects and effective use of lights; and can monitor in real time the changes in ambient light that affect the lighting brightness of each position, and make corresponding adjustments to the street lamps based on these changes in real time, thereby ensuring a continuous uniform lighting effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and in particular, relates to a smart street lamp control method, terminal equipment and storage medium. Background Art

[0002] Adjustable street lights can achieve energy conservation and environmental protection, improve the level of urban intelligence, better meet the lighting needs in different scenarios, and are gradually being used more and more widely.

[0003] Existing adjustable street lamps often have the function of adjusting the lighting direction and the brightness of the light, and can be adjusted by remote control of the staff; the existing technology for adjusting the illumination direction and brightness of adjustable street lamps is mainly that the staff adjusts the street lamps to a specific direction and a specific brightness based on their experience. Such an adjustment method is highly subjective and it is difficult to take into account the lighting impact of other ambient light on the lighting area, so that after adjustment, some areas will be over-illuminated and other areas will be under-illuminated, that is, it is difficult to ensure the uniformity of lighting in the entire lighting area. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a smart street lamp control method, terminal device and storage medium, which can solve the problem that the prior art is difficult to ensure the uniformity of lighting in the entire lighting area.

[0005] A first aspect of an embodiment of the present application provides a smart street light control method, the smart street light control method comprising:

[0006] S1: Get a map of the lighting area;

[0007] S2: Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness on the corresponding position on the map according to the lighting brightness of the position, and form a marked map;

[0008] S3: comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and excessively lit areas in the real-time brightness distribution map, thereby forming a real-time brightness distribution map;

[0009] S4: adjusting the lighting direction and / or light brightness of the street lamp, executing steps S2 to S3 to update the real-time brightness distribution map, and repeating this step until the insufficiently lit area and the excessively lit area in the real-time brightness distribution map are converted into the adequately lit area;

[0010] S5: After the adjustment is completed, execute steps S2 to S3 to determine whether the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas. If the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas, execute step S4 and repeat this step until the street lights are turned off.

[0011] A second aspect of an embodiment of the present application provides a terminal device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the smart street light control method.

[0012] A third aspect of an embodiment of the present application provides a terminal-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the steps of the smart street light control method.

[0013] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the method provided by the present invention includes obtaining a map of the lighting area; obtaining a monitoring image including each position of the lighting area, and then determining the lighting brightness of each position of the lighting area, and for each position of the lighting area, performing corresponding lighting brightness according to the lighting brightness of the position at the corresponding position on the map to form a marked map; comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and over-lit areas in the real-time brightness distribution map to form a real-time brightness distribution map; adjusting the lighting direction and / or light brightness of the street lamp while updating the real-time brightness distribution map until the insufficiently lit areas and over-lit areas in the real-time brightness distribution map are converted into adequately lit areas; after the adjustment is completed , update the real-time brightness distribution map to determine whether the real-time brightness distribution map has added insufficient lighting areas and / or excessive lighting areas. If the real-time brightness distribution map has added insufficient lighting areas and / or excessive lighting areas, adjust the street lights and repeat this step until the street lights are off; in the present application, real-time monitoring of the lighting brightness of each position in the entire lighting area is achieved, and clear boundary adjustments are defined. The lighting direction and brightness of each street light are coordinated and adjusted accordingly, and both insufficient lighting areas and excessive lighting areas can be converted into sufficient lighting areas, thereby achieving uniform lighting and ensuring lighting effects and effective use of light; and it is possible to monitor in real time the changes in ambient light that affect the lighting brightness of each position, and make corresponding adjustments to the street lights based on these changes in real time, thereby ensuring a continuous uniform lighting effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0015] Figure 1 This is a schematic diagram of the implementation process of the smart street light control method provided in the embodiment of the present application;

[0016] Figure 2 It is a schematic diagram of the application environment of the smart street lamp control method provided in the embodiment of the present application;

[0017] Figure 3 It is a real-time lighting brightness distribution diagram of the smart street light control method provided in the embodiment of the present application;

[0018] Figure 4 It is a schematic diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0020] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0021] Figure 1 A smart street light control method provided in the first embodiment of the present application is shown, and the smart street light control method includes:

[0022] S1: Get a map of the lighting area;

[0023] S2: Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness on the corresponding position on the map according to the lighting brightness of the position, and form a marked map;

[0024] S3: comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and excessively lit areas in the real-time brightness distribution map, thereby forming a real-time brightness distribution map;

[0025] S4: adjusting the lighting direction and / or light brightness of the street lamp, executing steps S2 to S3 to update the real-time brightness distribution map, and repeating this step until the insufficiently lit area and the excessively lit area in the real-time brightness distribution map are converted into the adequately lit area;

[0026] S5: After the adjustment is completed, execute steps S2 to S3 to determine whether the real-time brightness distribution map has added insufficient lighting areas and / or excessive lighting areas. If the real-time brightness distribution map has added insufficient lighting areas and / or excessive lighting areas, execute step S4 and repeat this step until the street light is turned off.

[0027] In this embodiment, if Figure 2 As shown, the lighting area is a ground area that needs to be illuminated as preset by the staff when carrying out street planning. A number of street lamps are installed in the lighting area, and the street lamps have adjustable light direction (adjustable by controlling the lamp head of the street lamp to rotate) and brightness; a number of cameras are arranged in the lighting area, and the cameras can be set on the street lamps or at other positions, so that the sum of the ground range in the field of view image of each camera covers the entire lighting area; the method is executed in a terminal device, and the terminal device can be an independent physical server or terminal, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage and CDN; the terminal device communicates with each street lamp and camera, and can obtain corresponding monitoring images from the camera, and adjust each camera accordingly.

[0028] In this embodiment, each position in the lighting area refers to an area of ​​a specific size, such as a square area with a length and width of 10 cm respectively, which is a component unit of the lighting area. When demarcating the lighting area, the staff divides the lighting area into several positions that constitute the lighting area; the corresponding positions are also divided on the map of the lighting area to form a grid map; at the same time, the staff first formulates a standard brightness distribution map according to the actual use needs of the lighting area (representing the same area as the map of the lighting area, and divided into grids with the same corresponding positions), and the standard brightness distribution map is divided into multiple sub-areas according to the use needs (each sub-area consists of several positions), and each sub-area is for a purpose, such as a road area and an entertainment area; a lighting brightness range is preset for different sub-areas to meet the lighting brightness requirements of the area; the annotated map is a map formed by annotating the real-time lighting brightness of each position on the map, and it can be compared with the standard brightness distribution map to determine the insufficiently lit area, the sufficiently lit area and the over-lit area, and these three areas are all composed of several positions.

[0029] In the present application, real-time monitoring of the lighting brightness at each location in the entire lighting area is achieved, and clear boundary adjustments are defined, based on which the lighting direction and brightness of each street lamp are coordinated and adjusted, so that both insufficiently lit areas and over-lit areas can be converted into sufficiently lit areas, thereby achieving uniformity of illumination, ensuring lighting effects and effective use of light; and being able to monitor in real time the changes in ambient light (such as lights from businesses, lights from residents, etc.) that affect the lighting brightness at each location, and making corresponding adjustments to the street lamps based on these changes in real time, thereby ensuring continuous uniform lighting effects; in addition, at a set time, such as at 5 a.m., all street lamps are turned off, and this method is repeatedly executed at night until the street lamps are turned off, thereby achieving an adjustment effect within the entire working time range of the street lamps.

[0030] As a preferred embodiment, a plurality of cameras are arranged in the lighting area, and the sum of the ground ranges in the field of view images of the various cameras covers the entire lighting area; the lighting brightness at each position in the lighting area is represented by the grayscale value of the position in the field of view image of the camera;

[0031] Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness analysis on the corresponding position on the map according to the lighting brightness of the position, including:

[0032] S21: Get a field of view image of a camera;

[0033] S22: Identify the ground range in the field of view image, and then determine the map range corresponding to the ground range on the map;

[0034] S23: grayscale processing of the visual field image;

[0035] S24: for each position in the ground range, identifying the grayscale value of the position point, and marking the grayscale value at the corresponding position in the map range;

[0036] S25: Get the field of view image of another camera, and execute steps S21 to S25 until the corresponding grayscale value is marked at each position on the map.

[0037] Identifying the ground range in the field of view image and then determining the map range corresponding to the ground range on the map includes:

[0038] S221: identifying a ground reference object in the ground range of the field of view image, taking the position of the ground reference object as a first position, and determining a second position corresponding to the first position on the map;

[0039] S222: Select another position within the ground range as a comparison position;

[0040] S223: Identify the relative position between the comparison position and the first position;

[0041] S224: determining a target position corresponding to the comparison position on the map according to the identified relative orientation and the second position;

[0042] S225: Repeat steps S221 to S224 until a target position corresponding to each other position in the field of view image is obtained, and each target position and the second position constitute a map range corresponding to the ground range on the map.

[0043] In this embodiment, in a night environment, the grayscale value (0 to 255) of a position can represent the lighting brightness of the position, and the higher the grayscale value, the higher the lighting brightness; for each position, the average grayscale value of all pixels in the position can be taken as the grayscale value of the position; in this embodiment, the ground range in the field of view image of each camera is a local range of the lighting area, and the map range corresponding to the ground range in each lighting area is spliced ​​together to obtain a map of the entire lighting area; the ground reference object is an object recorded on the map, such as a street lamp or a telephone pole, and the position corresponding to the bottom center of the ground reference object is taken as the first position, and then the second position can be locked on the map; the relative orientation of the comparison position and the first position, that is, the direction and distance of the comparison position compared to the first position, can be identified according to the existing image depth of field recognition algorithm (such as the OpenCV algorithm); this embodiment realizes the one-to-one correspondence between the actual area in the monitoring video and the position on the map, and marks the lighting brightness of each position, so as to facilitate further division of the map according to the lighting brightness.

[0044] As a preferred embodiment, the standard brightness distribution map is divided into several sub-areas, and each sub-area is pre-marked with a standard grayscale value range; the grayscale value range of each position in the standard brightness distribution map is the standard grayscale value range of the sub-area where the position is located; the marked map is compared with the preset standard brightness distribution map of the lighting area to determine the insufficient lighting area, the sufficient lighting area and the excessive lighting area in the real-time brightness distribution map, and the real-time brightness distribution map is formed, including:

[0045] Overlay the standard brightness distribution map with the annotated map;

[0046] For each position of the annotated map, determine whether the grayscale value of the position falls within the standard grayscale value range of the position of the standard brightness distribution map corresponding to the position, and if so, render the position point as the first color on the annotated map;

[0047] If not, determine whether the grayscale value at the position is greater than the maximum value of the corresponding standard grayscale value range or less than the minimum value of the corresponding standard grayscale value range;

[0048] If the grayscale value of the location is greater than the maximum value of the corresponding standard grayscale value range, the location is rendered as a second color on the annotated map;

[0049] If the grayscale value of the location is less than the minimum value of the corresponding standard grayscale value range, the location is rendered as a third color on the annotated map;

[0050] On the annotated map, the area composed of positions rendered in the first color is regarded as a well-lit area, the area composed of positions rendered in the second color is regarded as an over-lit area, and the area composed of positions rendered in the third color is regarded as an under-lit area, thereby forming a real-time brightness distribution map.

[0051] A number of street lamps are arranged in the lighting area; the lighting direction and / or light brightness of the street lamps are adjusted, that is, the street lamps are coordinated and the lighting direction and / or light brightness of each street lamp is adjusted when the street lamp is adjusted.

[0052] In this embodiment, if Figure 3 As shown, the standard grayscale value ranges of positions in different sub-areas are different. This is an implementation method determined by the specific settings of the staff and is not limited here. The standard brightness distribution map is superimposed on the annotated map, that is, the two maps are completely overlapped, so that each group of corresponding positions overlaps for easy comparison. The first color, the second color and the third color can be green, red, blue, or other color combinations, respectively, which are not limited here. For the second color and the third color, the depth of the color can be adjusted according to the specific value of the position. For example, the closer to the standard grayscale value range, the lighter the color condition, and vice versa, the darker the color; when adjusting, the terminal device coordinates to control each street lamp to perform ergodic adjustment, which takes the set boundary adjustment as the goal (converting the insufficiently illuminated area and the over-illuminated area into the fully illuminated area), and converts various lighting states (lighting direction and brightness) of each street lamp. The adjustment method includes but is not limited to adjusting the brightness, adjusting the direction, illuminating a certain area together with other street lamps, separating the street lamp lights that jointly illuminate a certain area, etc., and finally stops adjusting after achieving the adjustment target; the terminal device can refer to the changes in the real-time brightness distribution map in real time when performing each step of adjustment, which has higher adjustment efficiency.

[0053] As a preferred embodiment, during the process of executing step S4, the following steps are further included:

[0054] Storing each updated real-time brightness distribution map and the lighting direction and light brightness of each street lamp corresponding to the real-time brightness distribution map;

[0055] If the insufficiently lit area and the over-lit area are still not completely converted into the well-lit area after adjusting the preset duration of the street lamp, the proportion of the insufficiently lit area in each stored real-time brightness distribution map is calculated;

[0056] Filter out the real-time brightness distribution map with the smallest proportion of insufficiently lit areas;

[0057] The lighting direction and light brightness of each street lamp are adjusted to the lighting direction and light brightness of the street lamp corresponding to the screened real-time brightness distribution map.

[0058] The proportion of insufficient lighting area is calculated by the following formula:

[0059]

[0060] Among them, P is the proportion of insufficient lighting area, S 3 is the area of ​​the insufficiently illuminated area, S t is the area of ​​the real-time brightness distribution map.

[0061] In this embodiment, the preset duration can be 2 minutes, 5 minutes or other durations, which are not limited here; sometimes the adjustment target cannot be achieved. In order to avoid endless adjustment, the maximum adjustment time is limited by setting a preset duration; furthermore, during the adjustment process, the real-time brightness distribution diagram after each step of adjustment and the corresponding lighting status of each street lamp can be recorded to select the currently known best lighting state and adjust each street lamp to this lighting state.

[0062] As a preferred embodiment, it is determined whether the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas, that is, the latest real-time brightness distribution map is compared with the real-time brightness distribution map when the last adjustment was completed, so as to determine whether the latest real-time brightness distribution map has newly added under-lit areas and / or over-lit areas compared with the real-time brightness distribution map when the last adjustment was completed.

[0063] In this embodiment, the ambient light may change, such as when a business closes and turns off the lights, opens the door and turns on the lights, or when residents on the floor turn on the lights, etc. This embodiment realizes real-time adjustment of each street lamp according to the changes in the ambient light to ensure the lighting effect of the lighting area under various ambient light conditions; in this embodiment, when a new area that needs to be adjusted is added, the terminal device can first determine whether it is a temporary addition or a continuous addition. The judgment standard can be whether the maintenance time of the newly added area that needs to be adjusted exceeds a set time (such as 30 seconds), thereby reducing unnecessary adjustments.

[0064] A terminal device provided in the second embodiment of the present application includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the smart street light control method, specifically including:

[0065] S1: Get a map of the lighting area;

[0066] S2: Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness on the corresponding position on the map according to the lighting brightness of the position, and form a marked map;

[0067] S3: comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and excessively lit areas in the real-time brightness distribution map, thereby forming a real-time brightness distribution map;

[0068] S4: adjusting the lighting direction and / or light brightness of the street lamp, executing steps S2 to S3 to update the real-time brightness distribution map, and repeating this step until the insufficiently lit area and the excessively lit area in the real-time brightness distribution map are converted into the adequately lit area;

[0069] S5: After the adjustment is completed, execute steps S2 to S3 to determine whether the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas. If the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas, execute step S4 and repeat this step until the street lights are turned off.

[0070] A terminal-readable storage medium is provided in the third embodiment of the present application. A computer program is stored on the terminal-readable storage medium. When the computer program is executed by a processor, the processor executes the steps of the smart street light control method, specifically including:

[0071] S1: Get a map of the lighting area;

[0072] S2: Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness on the corresponding position on the map according to the lighting brightness of the position, and form a marked map;

[0073] S3: comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and excessively lit areas in the real-time brightness distribution map, thereby forming a real-time brightness distribution map;

[0074] S4: adjusting the lighting direction and / or light brightness of the street lamp, executing steps S2 to S3 to update the real-time brightness distribution map, and repeating this step until the insufficiently lit area and the excessively lit area in the real-time brightness distribution map are converted into the adequately lit area;

[0075] S5: After the adjustment is completed, execute steps S2 to S3 to determine whether the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas. If the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas, execute step S4 and repeat this step until the street lights are turned off.

[0076] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0077] It should be understood that when used in the present application specification, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0078] It should also be understood that the term “and / or” used in the specification of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0079] As used in the present specification, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.

[0080] In addition, in the description of the present specification, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance. It should also be understood that although the terms "first", "second", etc. are used to describe various elements in some embodiments of the present application in the text, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first table can be named as the second table, and similarly, the second table can be named as the first table, without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.

[0081] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0082] The smart street light control method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.

[0083] For example, the terminal device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set top box (STB), a customer premises equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network, etc.

[0084] As an example but not limitation, when the terminal device is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0085] Figure 4 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Figure 4 As shown, the terminal device of this embodiment includes: at least one processor ( Figure 4 Only one is shown in the figure), a memory, wherein the memory stores a computer program that can be run on the processor. When the processor executes the computer program, the steps in the above-mentioned various potential customer identification method embodiments are implemented, such as Figure 1 Steps S1 to S5 are shown.

[0086] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 4 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include an input sending device, a network access device, a bus, etc.

[0087] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0088] In some embodiments, the memory may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been sent or is to be sent.

[0089] In addition, each functional unit in each embodiment of the present application 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.

[0090] An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal device, the mobile terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0091] If the integrated module / 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 computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

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

[0093] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0094] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A smart street lamp control method, characterized in that: The smart street lamp control method comprises: S1: Get a map of the lighting area; S2: Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness on the corresponding position on the map according to the lighting brightness of the position, and form a marked map; S3: comparing the marked map with a preset standard brightness distribution map of the lighting area to determine insufficiently lit areas, adequately lit areas, and excessively lit areas in the real-time brightness distribution map, thereby forming a real-time brightness distribution map; S4: adjusting the lighting direction and / or light brightness of the street lamp, executing steps S2 to S3 to update the real-time brightness distribution map, and repeating this step until the insufficiently lit area and the excessively lit area in the real-time brightness distribution map are converted into the adequately lit area; S5: After the adjustment is completed, execute steps S2 to S3 to determine whether the real-time brightness distribution map has newly added insufficient lighting areas and / or excessive lighting areas. If the real-time brightness distribution map has newly added insufficient lighting areas and / or excessive lighting areas, execute step S4 and repeat this step until the street light is turned off. The standard brightness distribution map is divided into several sub-areas, and each sub-area is pre-marked with a standard grayscale value range; the grayscale value range of each position in the standard brightness distribution map is the standard grayscale value range of the sub-area where the position is located; the marked map is compared with the preset standard brightness distribution map of the lighting area to determine the insufficient lighting area, the sufficient lighting area and the excessive lighting area in the real-time brightness distribution map, and the real-time brightness distribution map is formed, including: Overlay the standard brightness distribution map with the annotated map; For each position of the annotated map, determine whether the grayscale value of the position falls within the standard grayscale value range of the position of the standard brightness distribution map corresponding to the position, and if so, render the position point as the first color on the annotated map; If not, determine whether the grayscale value at the position is greater than the maximum value of the corresponding standard grayscale value range or less than the minimum value of the corresponding standard grayscale value range; If the grayscale value of the location is greater than the maximum value of the corresponding standard grayscale value range, the location is rendered as a second color on the annotated map; If the grayscale value of the location is less than the minimum value of the corresponding standard grayscale value range, the location is rendered as a third color on the annotated map; On the annotated map, the area composed of the positions rendered in the first color is regarded as a well-lit area, the area composed of the positions rendered in the second color is regarded as an over-lit area, and the area composed of the positions rendered in the third color is regarded as an under-lit area, thereby forming a real-time brightness distribution map; A plurality of street lamps are arranged in the lighting area; the lighting direction and / or the light brightness of the street lamps are adjusted, that is, the lighting direction and / or the light brightness of each street lamp are adjusted in a coordinated manner; The process of executing step S4 also includes: Storing each updated real-time brightness distribution map and the lighting direction and light brightness of each street lamp corresponding to the real-time brightness distribution map; If the insufficiently lit area and the over-lit area are still not completely converted into the well-lit area after adjusting the preset duration of the street lamp, the proportion of the insufficiently lit area in each stored real-time brightness distribution map is calculated; Filter out the real-time brightness distribution map with the smallest proportion of insufficiently lit areas; The lighting direction and light brightness of each street lamp are adjusted to the lighting direction and light brightness of the street lamp corresponding to the screened real-time brightness distribution map.

2. The method according to claim 1, characterized in that Several cameras are arranged in the lighting area, and the sum of the ground range in the field of view images of the various cameras covers the entire lighting area; the lighting brightness of each position in the lighting area is represented by the grayscale value of the position in the field of view image of the camera; Acquire monitoring images including each position of the lighting area, and then determine the lighting brightness of each position of the lighting area. For each position of the lighting area, perform corresponding lighting brightness analysis on the corresponding position on the map according to the lighting brightness of the position, including: S21: Get a field of view image of a camera; S22: Identify the ground range in the field of view image, and then determine the map range corresponding to the ground range on the map; S23: grayscale processing of the visual field image; S24: for each position in the ground range, identifying the grayscale value of the position point, and marking the grayscale value at the corresponding position in the map range; S25: Get the field of view image of another camera, and execute steps S21 to S25 until the corresponding grayscale value is marked at each position on the map.

3. The method according to claim 2, characterized in that Identifying the ground range in the field of view image and then determining the map range corresponding to the ground range on the map includes: S221: identifying a ground reference object in the ground range of the field of view image, taking the position of the ground reference object as a first position, and determining a second position corresponding to the first position on the map; S222: Select another position within the ground range as a comparison position; S223: Identify the relative position between the comparison position and the first position; S224: determining a target position corresponding to the comparison position on the map according to the identified relative orientation and the second position; S225: Repeat steps S221 to S224 until a target position corresponding to each other position in the field of view image is obtained, and each target position and the second position constitute a map range corresponding to the ground range on the map.

4. The method according to claim 1, characterized in that: The proportion of insufficient lighting area is calculated by the following formula: Among them, P is the proportion of insufficient lighting area, S3 is the area of ​​insufficient lighting area, S t is the area of ​​the real-time brightness distribution map.

5. The method according to claim 1, characterized in that Determine whether the real-time brightness distribution map has newly added under-lit areas and / or over-lit areas, that is, compare the latest real-time brightness distribution map with the real-time brightness distribution map when the last adjustment was completed, so as to determine whether the latest real-time brightness distribution map has newly added under-lit areas and / or over-lit areas compared with the real-time brightness distribution map when the last adjustment was completed.

6. A terminal device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the smart street lamp control method according to any one of claims 1 to 5.

7. A terminal-readable storage medium, characterized in that: A computer program is stored on the terminal-readable storage medium. When the computer program is executed by the processor, the processor executes the steps of the smart street light control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Control method and device of LED projection lamp

    CN111479357A

  • Internet of Things street lamp illumination compensation method and system

    CN116056289A