Brightness adjusting method and device, equipment and medium
By automatically adjusting the brightness of the drone landing area, the problem of difficulty in judging drone landing in night or low-light environments is solved, the accuracy and safety of landing are improved, and the energy consumption and area clarity of lighting equipment are optimized.
Patent Information
- Application Number
- CN202510403822.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-01
- Publication Date
- 2025-05-13
Smart Images

Figure CN119997296A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a brightness adjustment method, device, equipment and medium. Background Art
[0002] During the landing process, the drone needs to clearly and accurately identify the environment and obstacles in the landing area. However, at night or in low-light environments, insufficient natural light may cause the image captured by the drone's gimbal camera to be too dark, affecting the drone's landing judgment.
[0003] Although traditional fill lights in hangars can provide additional lighting, they often lack automatic adjustment functions and cannot be intelligently adjusted according to the brightness of the picture, which may lead to problems such as over-lighting or under-lighting. Summary of the invention
[0004] In view of this, the present disclosure provides a brightness adjustment method, device, equipment and medium to solve the lighting problem of the aircraft landing area.
[0005] In a first aspect, the present disclosure provides a brightness adjustment method, the method comprising:
[0006] When the first signal is received, a first brightness value of the first area is obtained, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified in which the target aircraft is allowed to land;
[0007] The first brightness value is compared with the endpoint value of the first threshold interval. When it is determined that the first brightness value is not included in the first threshold interval, a first comparison result is obtained. The second brightness value of the target device is adjusted based on the first comparison result to obtain an adjusted third brightness value. The process is repeated starting from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, the brightness adjustment is stopped, and the target brightness value of the first area is obtained, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
[0008] In the embodiment of the present disclosure, when a first signal is received, a first brightness value of a first area is obtained; the first brightness value is compared with an endpoint value of a first threshold interval, and when it is determined that the first brightness value is not included in the first threshold interval, a first comparison result is obtained, and the second brightness value of the target device is adjusted based on the first comparison result to obtain an adjusted third brightness value, and the process is repeated from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, and the brightness adjustment is stopped to obtain the target brightness value of the first area. Since the embodiment of the present disclosure compares the first brightness value of the first area with the first threshold interval and adjusts the second brightness value of the target device accordingly, the accuracy and safety of the landing of the target aircraft can be improved.
[0009] In an optional implementation, adjusting the second brightness value of the target device based on the first comparison result includes:
[0010] When the first comparison result is a first result, lowering the second brightness value, wherein the first result is that the first brightness value is greater than a first endpoint value of a first threshold interval;
[0011] When the first comparison result is the second result, the second brightness value is increased, wherein the second result is that the first brightness value is less than the second endpoint value of the first threshold interval.
[0012] In the embodiment of the present disclosure, by reducing the second brightness value when the first brightness value is greater than the first endpoint value of the first threshold interval, the energy consumption of the target device can be reduced. By increasing the second brightness value when the first brightness value is less than the second endpoint value of the first threshold interval, the target area can be kept clear.
[0013] In an optional implementation, comparing the first brightness value with an endpoint value of the first threshold interval further includes:
[0014] When the first brightness value is included in the first threshold interval, the second brightness value is kept unchanged.
[0015] In the embodiment of the present disclosure, by keeping the second brightness value unchanged when the first brightness value is included in the first threshold interval, the energy consumption of the target device can be reduced, so that the target area remains clear.
[0016] In an optional embodiment, the method further includes:
[0017] When receiving the second signal, obtaining a fourth brightness value of the second area, wherein the second signal is used to indicate that the target aircraft has entered a preset area, the preset area is used to indicate that the target aircraft is in a state of preparing to land, and the second area is a landing area of the target aircraft;
[0018] Compare the fourth brightness value with the second threshold value to obtain a second comparison result, wherein the second threshold value is used to represent the minimum value of the brightness value of the second area;
[0019] It is determined whether to perform a turn-on operation on the target device based on the second comparison result.
[0020] In the embodiment of the present disclosure, by comparing the fourth brightness value of the second area with the second threshold and determining whether to perform a start operation on the target device, automatic control of the target device is achieved.
[0021] In an optional implementation, determining whether to perform a start operation on the target device based on the second comparison result includes:
[0022] When the second comparison result is a third result, turning on the target device, wherein the third result is that the fourth brightness value is less than the second threshold value;
[0023] When the second comparison result is a fourth result, the target device is not turned on, wherein the fourth result is that the fourth brightness value is greater than or equal to the second threshold.
[0024] In the embodiment of the present disclosure, by turning on the target device when the fourth brightness value is less than the second threshold, the brightness of the target area can be supplemented so that the target area remains clear. By not turning on the target device when the fourth brightness value is greater than or equal to the second threshold, the energy consumption of the target device can be reduced.
[0025] In an optional embodiment, the method further includes:
[0026] When the target aircraft is allowed to land or the second comparison result is the fourth result, the second brightness value is not adjusted.
[0027] In the embodiment of the present disclosure, by not adjusting the second brightness value when the target aircraft is allowed to land or the fourth brightness value is greater than or equal to the second threshold, the energy consumption of the target device can be reduced.
[0028] In an optional implementation, obtaining a first brightness value of a first area includes:
[0029] Obtain a fifth brightness value of each pixel in the first area;
[0030] The fifth brightness value is fused to obtain the first brightness value.
[0031] In the embodiment of the present disclosure, by fusing the fifth brightness value of each pixel in the first area, the first brightness value of the first area can be obtained, so as to determine whether the second brightness value of the target device needs to be adjusted.
[0032] In a second aspect, the present disclosure provides a brightness adjustment device, the device comprising:
[0033] A first acquisition module is used to acquire a first brightness value of a first area when a first signal is received, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified in which the target aircraft is allowed to land;
[0034] The first obtaining module is used to compare the first brightness value with the endpoint value of the first threshold interval, obtain a first comparison result when it is determined that the first brightness value is not included in the first threshold interval, adjust the second brightness value of the target device based on the first comparison result to obtain an adjusted third brightness value, and repeat the process starting from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, stop brightness adjustment, and obtain a target brightness value of the first area, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
[0035] In a third aspect, the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the brightness adjustment method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0036] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the brightness adjustment method of the first aspect or any corresponding embodiment thereof.
[0037] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the brightness adjustment method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 is a flow chart of a brightness adjustment method according to an embodiment of the present disclosure;
[0040] Figure 2 is an architecture diagram of an adaptive fill light adjustment system based on the brightness of a drone gimbal camera image according to an embodiment of the present disclosure;
[0041] Figure 3 is a flowchart of another brightness adjustment method according to an embodiment of the present disclosure;
[0042] Figure 4 is a structural block diagram of a brightness adjustment device according to an embodiment of the present disclosure;
[0043] Figure 5 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0045] During the landing process, the drone needs to clearly and accurately identify the environment and obstacles in the landing area. However, at night or in low-light environments, insufficient natural light may cause the image captured by the drone's gimbal camera to be too dark, affecting the drone's landing judgment.
[0046] Although traditional fill lights in hangars can provide additional lighting, they often lack automatic adjustment functions and cannot be intelligently adjusted according to the brightness of the picture, which may lead to problems such as over-lighting or under-lighting.
[0047] In order to solve the above problems, according to an embodiment of the present disclosure, a brightness adjustment method embodiment 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 the 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.
[0048] In this embodiment, a brightness adjustment method is provided. Figure 1 As shown, Figure 1 : is a flow chart of a brightness adjustment method according to an embodiment of the present disclosure, and the flow chart can be applied to an adaptive fill light adjustment system based on the brightness of a drone gimbal camera screen, and includes the following steps:
[0049] Step S101, when a first signal is received, a first brightness value of a first area is obtained, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified where the target aircraft is allowed to land.
[0050] Optionally, in the embodiment of the present disclosure, the first area may be an area with an identification such as a QR code, a specific pattern, etc., and the first brightness value refers to the brightness value of the first area.
[0051] like Figure 2 As shown, Figure 2 This is an architecture diagram of an adaptive fill light adjustment system based on the brightness of the drone gimbal camera screen according to an embodiment of the present disclosure. The system includes a target aircraft (such as a drone, a helicopter, etc.), a remote control, a 5G router, a control center, etc. The control center includes target devices (such as fill lights, lighting strips, searchlights, luminous signs, etc.), environmental sensors, power modules, etc.
[0052] Among them, the target aircraft is equipped with a gimbal camera. The target aircraft lands by identifying the first area and transmits the first brightness value to the remote control through a private protocol; the remote control transmits the first brightness value to the 5G router through WiFi, and cooperates with the target aircraft to realize the execution and monitoring of the precise landing algorithm; the 5G router transmits the first brightness value to the control center through WiFi; the control center controls the brightness of the target device for adaptive adjustment according to the data sent back by the target aircraft; the environmental sensor is used to detect the brightness of the external environment; the power module is used to power the target aircraft, remote control, 5G router, target device and environmental sensor in the system.
[0053] First, upon receiving the landing command (including the GPS location information of the apron, identification information of the first area, etc.), the target aircraft arrives at the pre-set apron detection area (such as the airspace with a radius of 3 to 10 meters above the apron) to prepare for landing, and uses the gimbal camera to capture real-time images of the ground.
[0054] Then, the target aircraft can perform image preprocessing on these images: grayscale processing on the images, converting color images into grayscale images, using filtering algorithms (such as Gaussian filtering, etc.) to remove image noise, obtaining edge information of the images through edge detection algorithms (such as Canny edge detection algorithm, etc.), and using the edge information to extract the contour of the image to obtain the contour features of the image.
[0055] Next, the target aircraft uses the edge information and contour features of the image to obtain multiple candidate areas to be identified, and detects and verifies these candidate areas. The identification information in the candidate areas is read through a decoding algorithm to verify whether the identification information of the candidate areas is consistent with the identification information of the first area. If they are consistent, it is determined as the first area.
[0056] After that, the target aircraft tracks the first area. During the landing process of the target aircraft, the position of the first area in the image will change continuously due to its own movement and environmental factors. The system calculates the position and attitude information of the target aircraft relative to the first area, including translation and rotation angles, through real-time posture estimation, and controls the flight attitude of the target aircraft based on this information, so that it is aligned with the first area and gradually approaches the landing point.
[0057] At this time, if the target aircraft has not landed and the target device is in the on state, the target aircraft solves the first brightness value of the first area based on the image of the first area, and transmits the first brightness value to the control center through the remote control and the 5G router in turn, so that the system obtains the first brightness value of the first area.
[0058] Step S102, compare the first brightness value with the endpoint value of the first threshold interval, and obtain a first comparison result when it is determined that the first brightness value is not included in the first threshold interval, adjust the second brightness value of the target device based on the first comparison result, and obtain an adjusted third brightness value, and repeat the process starting from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, stop brightness adjustment, and obtain the target brightness value of the first area, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
[0059] Optionally, in the embodiment of the present disclosure, the first threshold interval refers to the brightness required to identify the first area, such as [115, 131], and the first threshold interval includes two endpoint values, namely the maximum value and the minimum value of the first threshold interval, such as 131 and 115. The second brightness value refers to the brightness value of the second area. The third brightness value refers to the adjusted brightness value of the second area. The target brightness value refers to the final brightness value of the first area.
[0060] Specifically, the system compares the first brightness value with the endpoint value of the first threshold interval to determine whether the first brightness value is included in the first threshold interval. If the first brightness value is not included in the first threshold interval, the second brightness value of the target device is adjusted according to the first comparison result of the first brightness value and the first threshold interval to obtain the adjusted brightness value of the second area, that is, the third brightness value. After that, the system repeats the process from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, stops brightness adjustment, and obtains the target brightness value of the first area.
[0061] In the embodiment of the present disclosure, when a first signal is received, a first brightness value of a first area is obtained; the first brightness value is compared with an endpoint value of a first threshold interval, and when it is determined that the first brightness value is not included in the first threshold interval, a first comparison result is obtained, and the second brightness value of the target device is adjusted based on the first comparison result to obtain an adjusted third brightness value, and the process is repeated from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, and the brightness adjustment is stopped to obtain the target brightness value of the first area. Since the embodiment of the present disclosure compares the first brightness value of the first area with the first threshold interval and adjusts the second brightness value of the target device accordingly, the accuracy and safety of the landing of the target aircraft can be improved.
[0062] In some optional implementations, adjusting the second brightness value of the target device based on the first comparison result includes:
[0063] When the first comparison result is a first result, lowering the second brightness value, wherein the first result is that the first brightness value is greater than a first endpoint value of a first threshold interval;
[0064] When the first comparison result is the second result, the second brightness value is increased, wherein the second result is that the first brightness value is less than the second endpoint value of the first threshold interval.
[0065] Optionally, in the embodiment of the present disclosure, the first threshold interval includes a first endpoint value and a second endpoint value, wherein the first endpoint value is the maximum value (such as 131) of the first threshold interval (such as [115, 131]), and the second endpoint value is the minimum value (such as 115) of the first threshold interval (such as [115, 131]). The first comparison result includes a first result and a second result, wherein the first result is that the first brightness value is greater than the first endpoint value of the first threshold interval, and the second result is that the first brightness value is less than the second endpoint value of the first threshold interval.
[0066] Specifically, when the first brightness value is not included in the first threshold interval, the system adjusts the second brightness value of the target device according to a first comparison result between the first brightness value and the first threshold interval:
[0067] If the first comparison result is the first result, that is, the first brightness value is greater than the first endpoint value (such as 131) of the first threshold interval (such as [115, 131]), it means that the brightness of the target device is too bright for the gimbal camera of the target aircraft, and the system reduces the second brightness value of the target device;
[0068] If the first comparison result is the second result, that is, the first brightness value is less than the second endpoint value (such as 115) of the first threshold interval (such as [115,131]), it means that the brightness of the target device is too dim for the gimbal camera of the target aircraft, and the system increases the second brightness value of the target device.
[0069] In the embodiment of the present disclosure, by reducing the second brightness value when the first brightness value is greater than the first endpoint value of the first threshold interval, the energy consumption of the target device can be reduced. By increasing the second brightness value when the first brightness value is less than the second endpoint value of the first threshold interval, the target area can be kept clear.
[0070] In some optional implementations, comparing the first brightness value with an endpoint value of a first threshold interval further includes:
[0071] When the first brightness value is included in the first threshold interval, the second brightness value is kept unchanged.
[0072] Optionally, in an embodiment of the present disclosure, if the first brightness value is included in the first threshold interval, it means that the brightness of the target device is suitable for the gimbal camera of the target aircraft, and therefore the inability of the target aircraft to land has nothing to do with the brightness of the target device, and the system maintains the second brightness value of the target device unchanged.
[0073] In the embodiment of the present disclosure, by keeping the second brightness value unchanged when the first brightness value is included in the first threshold interval, the energy consumption of the target device can be reduced, so that the target area remains clear.
[0074] In some optional embodiments, the method further comprises:
[0075] When receiving the second signal, obtaining a fourth brightness value of the second area, wherein the second signal is used to indicate that the target aircraft has entered a preset area, the preset area is used to indicate that the target aircraft is in a state of preparing to land, and the second area is a landing area of the target aircraft;
[0076] Compare the fourth brightness value with the second threshold value to obtain a second comparison result, wherein the second threshold value is used to represent the minimum value of the brightness value of the second area;
[0077] It is determined whether to perform a turn-on operation on the target device based on the second comparison result.
[0078] Optionally, in the embodiment of the present disclosure, the preset area refers to a pre-set apron discovery area (such as an airspace with a radius of 3 to 10 meters above the apron), and the target aircraft entering the preset area indicates that the target aircraft is in a state of preparing to land. The second area is the landing area of the target aircraft, the fourth brightness value refers to the brightness value of the second area, and the second threshold refers to the minimum brightness value of the second area.
[0079] Specifically, when the system receives a landing signal from the target aircraft (i.e., the target aircraft enters the preset area), it obtains the fourth brightness value of the landing area (i.e., the second area) of the target aircraft through the environmental sensor, compares the fourth brightness value with the second threshold, obtains a second comparison result of the fourth brightness value and the second threshold, and determines whether to turn on the target device or not based on the second comparison result.
[0080] In the embodiment of the present disclosure, by comparing the fourth brightness value of the second area with the second threshold and determining whether to perform a start operation on the target device, automatic control of the target device is achieved.
[0081] In some optional implementations, determining whether to perform a start operation on the target device based on the second comparison result includes:
[0082] When the second comparison result is a third result, turning on the target device, wherein the third result is that the fourth brightness value is less than the second threshold value;
[0083] When the second comparison result is a fourth result, the target device is not turned on, wherein the fourth result is that the fourth brightness value is greater than or equal to the second threshold.
[0084] Optionally, in an embodiment of the present disclosure, the second comparison result includes a third result and a fourth result, wherein the third result is that the fourth brightness value is less than the second threshold value, and the fourth result is that the fourth brightness value is greater than or equal to the second threshold value.
[0085] Specifically, the system determines whether to turn on the target device or not according to the second comparison result:
[0086] If the second comparison result is the third result, that is, the fourth brightness value is less than the second threshold value, it means that the ambient brightness of the landing area of the target aircraft is too low, and the system turns on the target device;
[0087] If the second comparison result is the fourth result, that is, the fourth brightness value is greater than or equal to the second threshold, it means that the ambient brightness of the landing area of the target aircraft is appropriate, and the system does not turn on the target device.
[0088] In addition, when the target device is turned on, the system transmits a signal of turning on the target device to the target aircraft. When the target aircraft completes landing, the system turns off the target device.
[0089] In the embodiment of the present disclosure, by turning on the target device when the fourth brightness value is less than the second threshold, the brightness of the target area can be supplemented so that the target area remains clear. By not turning on the target device when the fourth brightness value is greater than or equal to the second threshold, the energy consumption of the target device can be reduced.
[0090] In some optional embodiments, the method further comprises:
[0091] When the target aircraft is allowed to land or the second comparison result is the fourth result, the second brightness value is not adjusted.
[0092] Optionally, in the embodiment of the present disclosure, if the target aircraft is allowed to land, it means that the target device does not need to supplement the brightness of the first area, and the system does not adjust the second brightness value; if the second comparison result is the fourth result, it means that the target device is not turned on, so the inability of the target aircraft to land has nothing to do with the brightness of the target device, and the system does not adjust the second brightness value.
[0093] In the embodiment of the present disclosure, by not adjusting the second brightness value when the target aircraft is allowed to land or the fourth brightness value is greater than or equal to the second threshold, the energy consumption of the target device can be reduced.
[0094] In some optional implementations, obtaining a first brightness value of the first area includes:
[0095] Obtain a fifth brightness value of each pixel in the first area;
[0096] The fifth brightness value is fused to obtain the first brightness value.
[0097] Optionally, in the embodiment of the present disclosure, the fifth brightness value refers to the brightness value of each pixel in the first area.
[0098] Specifically, the target aircraft uses a gimbal camera to capture real-time images of the ground, and can perform image preprocessing on these images, including grayscale processing, filtering, edge detection, contour extraction, etc., and then use the edge information and contour features of the image to obtain multiple candidate areas to be identified, and detect and verify these candidate areas to obtain the first area.
[0099] Afterwards, the target aircraft traverses each pixel in the image of the first area, obtains the grayscale value of each pixel, that is, the fifth brightness value, and then fuses the fifth brightness values by calculating the arithmetic mean or weighted mean of the fifth brightness values to obtain the first brightness value of the first area.
[0100] Finally, the target aircraft transmits the first brightness value to the remote controller through a private protocol, the remote controller transmits the first brightness value to the 5G router through WiFi, and the 5G router transmits the first brightness value to the control center through WiFi, so that the system obtains the first brightness value of the first area.
[0101] In the embodiment of the present disclosure, by fusing the fifth brightness value of each pixel in the first area, the first brightness value of the first area can be obtained, so as to determine whether the second brightness value of the target device needs to be adjusted.
[0102] In an optional embodiment, if Figure 3 As shown, Figure 3 is a flow chart of another brightness adjustment method according to an embodiment of the present disclosure, Figure 3 The process is as follows:
[0103] First, the target aircraft uses a gimbal camera to capture real-time images of the ground and performs image preprocessing on these images. The preprocessed images are used to obtain multiple candidate areas to be identified. These candidate areas are detected and verified to obtain the first area, and the first area is tracked, aligned with the first area and gradually approached to the landing point.
[0104] Then, the system determines whether the target aircraft can land. If the target aircraft can land, the loop ends. If the target aircraft cannot land, the system determines whether the target device is turned on. If the target device is not turned on, the loop ends. If the target device is turned on, the target aircraft calculates the average brightness of the first area and transmits the calculated brightness value to the control center. The control center determines whether the brightness value is equal to the first threshold interval (such as Figure 3 [115,131] in , if the brightness value is included in the first threshold interval (such as Figure 3 [115,131] in , the brightness of the target device is kept unchanged and the loop ends; if the brightness value is greater than the first endpoint value of the first threshold interval (such as 131), the control center reduces the brightness of the target device; if the brightness value is less than the second endpoint value of the first threshold interval (such as 115), the control center increases the brightness of the target device, and the system repeats the above steps until the brightness value of the first area is included in the first threshold interval, and the loop ends.
[0105] In this embodiment, a brightness adjustment device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0106] This embodiment provides a brightness adjustment device, such as Figure 4 As shown, including:
[0107] A first acquisition module 401 is used to acquire a first brightness value of a first area when a first signal is received, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified in which the target aircraft is allowed to land;
[0108] The first obtaining module 402 is used to compare the first brightness value with the endpoint value of the first threshold interval, and obtain a first comparison result when it is determined that the first brightness value is not included in the first threshold interval, adjust the second brightness value of the target device based on the first comparison result to obtain an adjusted third brightness value, and repeat the process starting from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, stop brightness adjustment, and obtain the target brightness value of the first area, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
[0109] In the embodiment of the present disclosure, when a first signal is received, a first brightness value of a first area is obtained; the first brightness value is compared with an endpoint value of a first threshold interval, and when it is determined that the first brightness value is not included in the first threshold interval, a first comparison result is obtained, and the second brightness value of the target device is adjusted based on the first comparison result to obtain an adjusted third brightness value, and the process is repeated from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, and the brightness adjustment is stopped to obtain the target brightness value of the first area. Since the embodiment of the present disclosure compares the first brightness value of the first area with the first threshold interval and adjusts the second brightness value of the target device accordingly, the accuracy and safety of the landing of the target aircraft can be improved.
[0110] In some optional implementations, the first obtaining module 402 includes:
[0111] a reducing submodule, configured to reduce the second brightness value when the first comparison result is a first result, wherein the first result is that the first brightness value is greater than a first endpoint value of a first threshold interval;
[0112] The adding submodule is used to increase the second brightness value when the first comparison result is the second result, wherein the second result is that the first brightness value is less than the second endpoint value of the first threshold interval.
[0113] In some optional embodiments, the device further comprises:
[0114] The maintaining module is used to maintain the second brightness value unchanged when the first brightness value is included in the first threshold interval.
[0115] In some optional embodiments, the device further comprises:
[0116] A second acquisition module is used to acquire a fourth brightness value of the second area when receiving a second signal, wherein the second signal is used to indicate that the target aircraft has entered a preset area, the preset area is used to indicate that the target aircraft is in a state of preparing to land, and the second area is a landing area of the target aircraft;
[0117] a second obtaining module, configured to compare the fourth brightness value with a second threshold value to obtain a second comparison result, wherein the second threshold value is used to represent a minimum value of the brightness value of the second area;
[0118] The determination module is used to determine whether to perform a start operation on the target device based on the second comparison result.
[0119] In some optional implementations, the determining module includes:
[0120] an enabling submodule, configured to enable the target device when the second comparison result is a third result, wherein the third result is that the fourth brightness value is less than the second threshold value;
[0121] The non-enabling submodule is used to disable the target device when the second comparison result is a fourth result, wherein the fourth result is that the fourth brightness value is greater than or equal to the second threshold value.
[0122] In some optional embodiments, the device further comprises:
[0123] The non-adjustment module is used for not adjusting the second brightness value when the target aircraft is allowed to land or the second comparison result is the fourth result.
[0124] In some optional implementations, the first acquisition module 401 includes:
[0125] An acquisition submodule, used to acquire a fifth brightness value of each pixel in the first area;
[0126] A submodule is obtained, which is used to fuse the fifth brightness value to obtain the first brightness value.
[0127] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0128] The brightness adjustment device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0129] The present disclosure also provides a computer device having the above Figure 4The brightness adjustment device shown.
[0130] See also Figure 5 , Figure 5 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0131] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0132] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0133] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device 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.
[0134] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0135] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0136] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0137] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0138] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A brightness adjustment method, characterized in that: The method comprises: When a first signal is received, a first brightness value of a first area is acquired, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified in which the target aircraft is allowed to land; The first brightness value is compared with the endpoint value of the first threshold interval, and when it is determined that the first brightness value is not included in the first threshold interval, a first comparison result is obtained, and the second brightness value of the target device is adjusted based on the first comparison result to obtain an adjusted third brightness value, and the process is repeated from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, and the brightness adjustment is stopped to obtain the target brightness value of the first area, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
2. The method according to claim 1, characterized in that The adjusting the second brightness value of the target device based on the first comparison result includes: When the first comparison result is a first result, reducing the second brightness value, wherein the first result is that the first brightness value is greater than a first endpoint value of the first threshold interval; When the first comparison result is a second result, the second brightness value is increased, wherein the second result is that the first brightness value is less than a second endpoint value of the first threshold range.
3. The method according to claim 1, characterized in that The comparing the first brightness value with an endpoint value of a first threshold interval further includes: When the first brightness value is included in the first threshold interval, the second brightness value is kept unchanged.
4. The method according to claim 1, characterized in that: The method further comprises: When a second signal is received, a fourth brightness value of the second area is obtained, wherein the second signal is used to indicate that the target aircraft has entered a preset area, the preset area is used to indicate that the target aircraft is in a state of preparing to land, and the second area is a landing area of the target aircraft; Compare the fourth brightness value with a second threshold value to obtain a second comparison result, wherein the second threshold value is used to represent a minimum value of the brightness value of the second area; It is determined whether to perform a power-on operation on the target device based on the second comparison result.
5. The method according to claim 4, characterized in that The determining whether to perform a start operation on the target device based on the second comparison result includes: When the second comparison result is a third result, turning on the target device, wherein the third result is that the fourth brightness value is less than the second threshold value; When the second comparison result is a fourth result, the target device is not turned on, wherein the fourth result is that the fourth brightness value is greater than or equal to the second threshold.
6. The method according to claim 5, characterized in that The method further comprises: When the target aircraft is allowed to land or the second comparison result is the fourth result, the second brightness value is not adjusted.
7. The method according to claim 1, characterized in that The obtaining of a first brightness value of the first area includes: Obtain a fifth brightness value of each pixel in the first area; The fifth brightness value is merged to obtain the first brightness value.
8. A brightness adjustment device, characterized in that: The device comprises: A first acquisition module, configured to acquire a first brightness value of a first area when a first signal is received, wherein the first signal is used to indicate that the target aircraft has not landed and the target device is in an on state, and the first area is an area to be identified in which the target aircraft is allowed to land; The first obtaining module is used to compare the first brightness value with the endpoint value of the first threshold interval, obtain a first comparison result when it is determined that the first brightness value is not included in the first threshold interval, adjust the second brightness value of the target device based on the first comparison result to obtain an adjusted third brightness value, and repeat the process starting from obtaining the first brightness value of the first area until the third brightness value is included in the first threshold interval, stop brightness adjustment, and obtain a target brightness value of the first area, wherein the first threshold interval is used to characterize the brightness required to identify the first area.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the brightness adjustment method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the brightness adjustment method according to any one of claims 1 to 7.