Building facade lamplight picture correction method and system and storage medium
By adjusting the width ratio and brightness of the lighting screen on the facade of the building, the lateral compression problem caused by differences in the shape of the building and the viewing angle is solved, which improves the audience's impression and enhances the image of the city's light and shadow night scene.
Patent Information
- Application Number
- CN202411279868.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-09-12
AI Technical Summary
The lighting pictures on the facade of the building at different viewing points lead to horizontal compression due to the differences in the shape and viewing angle of the building, which affects the audience's viewing experience.
By obtaining the overview contour curve and visible contour curve of the building facade, defining the coordinate system of the building and ornamental point, establishing a Taylor expansion, calculating the observation angle and distance variables, and adjusting the width ratio and brightness of the lighting screen according to the experience table.
It improves the viewing experience of most viewers, solves the problem of poor viewing effects caused by the inherent poor building orientation, and improves the image of the city's light and shadow night scene.
Smart Images

Figure CN119446092A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to lighting control technology, and in particular to a building facade lighting picture correction method and system, and a storage medium. Background Art
[0002] With the development of urban modernization, in order to show the spiritual outlook and vitality of a city, landscape lights will be installed on the facades of various high-rise buildings to form display arrays for playing various light shows, advertisements, etc. However, sometimes due to the shape of the building itself, as well as the inherent location and orientation of the city streets, the best viewing orientation of the building is often not facing the crowded viewing area. For example, when a square column building with a circular chamfer faces the most crowded viewing area on the side of the circular chamfer, for the audience, some of the picture elements in the light works played on the building facade will be horizontally compressed into abnormal pictures, resulting in poor viewing effects.
[0003] For example Figure 1 As shown in the figure, the numbers "0" and "4" displayed on the building facade will have obvious horizontal compression under the current viewing angle of the audience, while the number "2" also has a certain horizontal compression, but it is relatively unnoticeable. It can be seen that for different facade shapes, at different crowded viewing points, the images observed by the audience are also different.
[0004] Therefore, there is an urgent need in the art for a solution to adjust the lighting image of the building facade correspondingly for crowded viewing areas, thereby improving the viewing experience of most viewers. Summary of the invention
[0005] To this end, the main purpose of the present invention is to provide a method and system for correcting the lighting image of a building facade, and a storage medium, so as to adjust the building lighting image according to the shape of the building facade and the position of the corresponding crowded viewing point, so as to improve the viewing experience.
[0006] In order to achieve the above object, according to one aspect of the present invention, a method for correcting a building facade lighting image is provided, the steps comprising:
[0007] Obtain the top view contour curve of the building facade, and determine the visible contour curve of the building based on the known locations of crowded viewing points and viewing angles;
[0008] Define the building coordinate system and the coordinate system of crowded viewing points;
[0009] Establish a Taylor expansion that approximately fits the visible contour curve, and obtain the best fitting Taylor expansion , determine the conversion relationship between the coordinate system of the crowded viewing point and the building coordinate system;
[0010] according to Function, calculate the derivative function in the coordinate system of the densely populated viewing point ;
[0011] according to The angle variable of the observation angle γ in the coordinate system of the densely populated viewing point is calculated, so as to adjust the light screen width ratio and screen brightness accordingly according to the empirical table.
[0012] In a possible preferred implementation, the building facade lighting image correction method further includes the following steps:
[0013] according to Function, calculate the distance function in the coordinate system of the densely populated viewing point ;
[0014] according to Calculate the distance variable of the observation angle γ in the coordinate system of the densely populated viewing point, and adjust the picture brightness accordingly based on the empirical table.
[0015] In a possible preferred implementation, the steps of defining the building coordinate system and the crowd-dense viewing point coordinate system include:
[0016] With the crowded viewing point as the center of the circle, a straight line intersecting the visible contour curve is established towards the visible contour curve, which serves as the s-axis of the crowded viewing point coordinate system and the y-axis of the building coordinate system;
[0017] A t-axis perpendicular to the s-axis is established through the crowded viewing point to define the crowded viewing point coordinate system [t, s];
[0018] A straight line perpendicular to the y-axis of the building coordinate system and making the origin of the building coordinate system located within the enclosed area of the top-view contour curve is established as the x-axis to define the building coordinate system [x, y].
[0019] In a possible preferred implementation, the conversion relationship between the coordinate system of the crowded viewing point and the building coordinate system is:
[0020] ;
[0021] ;
[0022] in is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system, It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system.
[0023] In a possible preferred embodiment, the derivative function in the coordinate system of the densely populated viewing point is calculated The steps include:
[0024] right The function is derived once to obtain the required first derivative function ;
[0025] Calculate the derivative function in the coordinate system of the densely populated viewing point,
[0026]
[0027] in , It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system. When the x-axis is taken as the basis, β is a positive value when the t-axis rotates clockwise.
[0028] In a possible preferred embodiment, according to The steps of calculating the angle variable of the observation angle γ in the coordinate system of the densely populated viewing point include:
[0029] Obtain the angle between the viewing field of view at the crowded viewing point and the center line connecting the coordinate system of the crowded viewing point and the building coordinate system as the observation angle γ;
[0030] Calculate the angle variable of the observation angle γ for:
[0031]
[0032] =
[0033] =
[0034] In a possible preferred embodiment, the distance function in the coordinate system of the densely populated viewing point is calculated. The steps include:
[0035] Calculate the distance function in the coordinate system of the crowded viewing point for:
[0036]
[0037] in is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system, It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system.
[0038] In a possible preferred embodiment, according to The steps of calculating the distance variable of the observation angle γ in the coordinate system of the densely populated viewing point include:
[0039] The distance variable in the coordinate system of the densely populated viewing point is calculated as:
[0040]
[0041] in It is the reference distance between the coordinate system of the crowded viewing point and the origin of the building coordinate system. is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system, It is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system.
[0042] In order to achieve the above-mentioned purpose, corresponding to the above-mentioned method example, according to another aspect of the present invention, a building facade lighting image correction system is also provided, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the building facade lighting image correction method as described in any one of the above items.
[0043] In order to achieve the above-mentioned purpose, corresponding to the above-mentioned method example, according to another aspect of the present invention, a computer-readable storage medium is further provided, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of the building facade lighting image correction method as described in any of the above items are implemented.
[0044] Through the building facade light picture correction method and system, and storage medium provided by the present invention, a solution is cleverly designed to adjust the width ratio and picture brightness of the building facade light picture according to the densely populated viewing area and the building facade shape, thereby improving the viewing experience of most viewers, thereby solving the problem that some buildings have poor inherent conditions for orientation and the viewing effect is too poor, thus missing out on the viewing experience of dense crowds, thereby better attracting the attention of the crowds and improving the image of the city's light and shadow night scene as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0046] Figure 1 This is an example diagram of viewing the lighting image of a building facade from a crowded area in the background technology;
[0047] Figure 2 It is a schematic diagram of the steps of the building facade lighting picture correction method of the present invention;
[0048] Figure 3The schematic diagram of the building facade lighting picture correction method of the present invention is a schematic diagram of a top-down contour curve of the building facade, the location of a crowded viewing point, and determining a visible contour curve of the building according to a viewing angle;
[0049] Figure 4 A schematic diagram of a visible contour curve of a building in the building facade lighting picture correction method of the present invention;
[0050] Figure 5 It is a schematic diagram of the Taylor expansion process of obtaining the best approximate fitting visible contour curve in the building facade lighting picture correction method of the present invention;
[0051] Figure 6 In the method for correcting the lighting image of the building facade of the present invention, the deflection angles of the densely populated viewing point and the secondary viewing point with respect to the building coordinate system are , to calculate the schematic diagram of the distance function,;
[0052] Figure 7 It is a schematic diagram of the derivative function of the example of the crowded viewing point and the secondary viewing point in the building facade lighting picture correction method of the present invention;
[0053] Figure 8 A schematic diagram of calculating the corresponding distance variables for a crowd-dense viewing point and a secondary viewing point in the building facade lighting image correction method of the present invention;
[0054] Fig. 9 It is a schematic diagram of calculating the angle variables of the corresponding observation angle γ corresponding to the crowded viewing point and the secondary viewing point in the building facade lighting picture correction method of the present invention;
[0055] Fig.10 It is a comparative schematic diagram of the building light picture width ratio and picture brightness before and after adjustment in the building facade light picture correction method of the present invention;
[0056] Fig.11 It is a schematic diagram of the structure of the building facade lighting picture correction system of the present invention. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the technical solution of the present invention, the specific technical solution of the present invention will be clearly and completely described in conjunction with the embodiments below to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, not all of the embodiments. It should be pointed out that for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained without creative work by those of ordinary skill in the art should belong to the disclosure and protection scope of the present invention.
[0058] In addition, the terms "first", "second", "S100", "S200", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the features used in this way can be interchanged where appropriate, so that the embodiments of the present invention described here can be implemented in an order other than those described here. At the same time, the stages recorded in each step are not mandatory to be implemented in the same step. It should be understood that the implementation order of the contents in each step stage can be adjusted and interchanged without violating the inventive concept, so that the step embodiments of the present invention described here can be implemented in an order other than those described here. In addition, the terms "including" and "having" and any of their variations in the present invention are intended to cover non-exclusive inclusions. Unless otherwise clearly specified and limited, the terms "set", "layout", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood according to specific circumstances and in combination with the prior art.
[0059] In order to adjust the lighting image of the building facade accordingly for crowded viewing areas to improve the viewing experience of most viewers, this solution takes into account that for the audience, the viewing distance relative to the building and the inclination angle of the building facade will cause the lighting image to present different distortions in the eyes of the audience. This method attempts to improve the viewing experience of the image by changing the image width ratio and the image brightness.
[0060] For this reason Figures 1 to 9 As shown, the present invention provides a method for correcting a building facade lighting image, and its exemplary steps include:
[0061] Step S100 obtains the top view contour curve of the building facade, and determines the visible contour curve of the building according to the known locations of crowded viewing points and viewing angles.
[0062] Specifically, Figure 3 As shown, according to the outline plane drawing of the building facade, the top view outline curve of the building facade can be obtained accordingly, and the position of the densely populated viewing point can be set according to the actual situation. For the densely populated viewing point, according to the viewing angle of the naked eye, the building facade area that the audience can view here can be delineated, thereby determining the visible outline curve of the building, such as Figure 4 shown.
[0063] Step S200 defines the building coordinate system and the crowd-dense viewing point coordinate system.
[0064] Specifically, after the visible contour curve and the crowded viewing points are determined, Figure 3 As shown, in this example, it is preferred to use the crowded viewing point as the reference point (generally, the reference point is the point with the most people), take it as the center of the circle, and establish a straight line that intersects with the visible contour curve as the s-axis of the coordinate system of the crowded viewing point (the direction of the s-axis is from the origin of the building coordinate system to the origin of the crowded viewing point), and the y-axis of the building coordinate system, that is, the s and y-axes of the building coordinate system and the coordinate system of the crowded viewing point are coaxial.
[0065] Then, a t-axis perpendicular to the s-axis is established through the crowded viewing point to define the densely populated viewing point coordinate system [t, s].
[0066] At the same time, a straight line perpendicular to the y-axis of the building coordinate system is established, and the origin of the building coordinate system is located within the enclosed area of the top-view contour curve as the x-axis to define the building coordinate system [x, y].
[0067] Step S300: Establishing a Taylor expansion that approximately fits the visual contour curve, and obtaining the best fitting Taylor expansion , determine the conversion relationship between the coordinate system of crowded viewing points and the building coordinate system.
[0068] Specifically, once the architectural coordinate system is established, the coordinate set of the visible contour curve can be obtained. For example, the architectural coordinate system takes (x0, y0) as the origin, and the coordinate set of the visible contour curve is {… (xi, yi) …}, and its characterization function is defined as , and the Taylor expansion that approximately fits the above visible contour curve is defined as , we can know that:
[0069]
[0070] because Can be approximated as , so in order to find That is, by calculating , ,… ,…
[0071] Since the above set {… (xi,yi) …} based on the building coordinate system (with (x0,y0) as the origin) is known, such as Figure 5 As shown, select one of the typical elements as , so the computer is used to write the calculation equation group as follows:
[0072] =
[0073]
[0074] …
[0075]
[0076] …
[0077] in , , … , are all known values in the set {… (xi,yi) …}, and this can be used to calculate , ,… ,…. It should be noted that:
[0078] First, the choice In the optional example, the coordinate value point is preferably selected from the coordinate value point of the longer straight line portion of the visible contour curve of the effective building facade (that is, the center point of a long segment of a line with the same slope is preferably selected, such as Figure 4 As shown); if there is no such coordinate value point, the intersection of the visible contour curve of the effective building facade and the y-axis of the building coordinate system can be selected.
[0079] Second, it is preferred not to use Taylor expansion with infinite higher-order terms. Since the visible contour curve of the building facade is usually relatively simple, this method example selects Taylor expansion with n=20, that is, omitting higher-order terms.
[0080] Second, since the number of known coordinate points far exceeds the actual required 20 , ,… , and choose different It will also result in 20 actual desired , ,… There are differences, so for many of them, including:
[0081] The collection is { ,… , …},
[0082] The collection is { ,… , …},
[0083] …
[0084] The collection is { ,… ,…}.
[0085] Therefore, Figure 5 As shown, it must be redrawn Each curve should be compared with the visible contour curve of the effective building facade, and the maximum fitting effect should be achieved for the oblique line segments (with the same derivative) in the visible contour curve.
[0086] The example method is to manually mark the coordinates of the oblique line segment as: , , , ..., first satisfy the above-mentioned maximum matching slope of the oblique line segment in the oblique line segment group. , ,… Collection, that is, what you need The first derivative to be obtained on the oblique line segment has the smallest error compared with the slope of the oblique line segment. The method used in the example is to select 20 to 50 coordinate points of the oblique line segment and obtain the smallest difference between the average value of all first derivatives and the slope of the oblique line segment.
[0087] Secondly, it should be ensured In other curved sections, the curve should be placed on one side of the visible contour curve as much as possible (rather than crossing both sides of the curve contour repeatedly), as shown in the following example: Figure 5 The final fitting results in the actual best ,use Indicates that we get the best set of , ,… ,Right now: .
[0088] Afterwards, if Figure 7 As shown, once the building coordinate system is established, it is unique. If there are other densely populated viewing points (generally, their population density is lower than that of the reference point), as long as the viewing angle of the point can correspond to the visible contour curve, it can still participate in subsequent calculations.
[0089] To this end, the coordinate system of the densely populated viewing points in each densely populated viewing area is derived, and the conversion relationship between it and the building coordinate system is: ; ; like Figure 7 As shown, it is verified by both t3 and t'3 that: It is the horizontal coordinate of the coordinate system of the densely populated viewing point, and is positive on the right side of the current densely populated viewing point coordinate system and negative on the left side; It is the ordinate of the coordinate system of the densely populated viewing point, and the direction toward the building coordinate system is the negative direction; The distance between the coordinate system of the current crowded viewing point and the building coordinate system, and the value is greater than 0; Taking the x-axis as the basis, β is a positive value when the t-axis rotates clockwise, that is, the deflection angle between the coordinate system of the current crowded viewing point and the building coordinate system.
[0090] Further:
[0091] Coming Soon As an independent variable, As the dependent variable. However, no formula derivation is required for actual use function, but Perform all effective Value and correspondence The values can be enumerated one by one (for ease of description, the following still uses function form).
[0092] Step S400 is based on Function, calculate the derivative function in the coordinate system of the densely populated viewing point .
[0093] For details, please refer to Figure 7 , for the derivative function of the reference point in the coordinate system of the densely populated viewing point, first use the above The function is differentiated once, and the required first derivative function is obtained Since the horizontal center line of the area is parallel to the horizontal axis of the building coordinate system, t = x, but since the s-axis is exactly opposite to the y-axis, the derivative function of the most densely populated viewing area of the reference point is for:
[0094] =
[0095] Compared with the derivative function of other crowded viewing points, it has a certain slope angle relationship with the building coordinate system, and the derivative function of this area involves the horizontal coordinate of the crowded viewing point coordinate system and the building coordinate system (the horizontal axis angle of the two coordinate systems is recorded as The conversion relationship of angle (taking the x-axis as the basis, β is a positive value when the t-axis rotates clockwise).
[0096] Therefore, the derivative function of other crowded viewing points with t as the horizontal coordinate is for:
[0097] ;
[0098] That is, in fact, all crowded viewing spots can obtain the derivative function in the following way:
[0099] ;
[0100] in (The relationship between t and x can be exhaustively listed and calculated).
[0101] is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system, Taking the x-axis as the basis, β is positive when the t-axis rotates clockwise;
[0102] The derivative function of the above-mentioned personnel viewing coordinate system and the derivative function of the building coordinate system The relationship between β and β is universal (regardless of whether β is positive or negative or the derivative function of the building coordinate system positive or negative).
[0103] Step S500 is based on The angle variable of the observation angle γ in the coordinate system of the densely populated viewing point is calculated, so as to adjust the light screen width ratio and screen brightness accordingly according to the empirical table.
[0104] Specifically, the observation angle γ is the angle between the viewing field at the crowded viewing point and the center line connecting the coordinate system of the crowded viewing point and the building coordinate system. That is:
[0105] .
[0106] like Figures 8 to 9 As shown:
[0107] t is the horizontal coordinate of the coordinate system of the densely populated viewing point, and is positive on the right side of the current densely populated viewing point coordinate system and negative on the left side;
[0108] s is the ordinate of the densely populated viewing point coordinate system, and the direction toward the building coordinate system is the negative direction;
[0109] d is the distance between the coordinate system of the current crowded viewing point and the building coordinate system, which is greater than 0;
[0110] The γ angle is based on the center line connecting the coordinate system of the crowded viewing point and the building coordinate system, and the angle rotated clockwise is a negative value.
[0111] The distance function for the crowded viewing point , because it has a certain slope angle relationship with the building coordinate system (the horizontal axis angle of the two coordinate systems is recorded as Angle) An example of which is:
[0112] .
[0113] in is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system, is the deflection angle between the coordinate system of the current crowded viewing point and the building coordinate system. As mentioned above, the relationship between t and x can be exhaustively listed and calculated without derivation. function.
[0114] Based on the above derivation, the following two types of variables are finally required, one of which is the angle variable , that is, the angle between the tangent line at any point on the building outline with the γ angle as the independent variable and the line connecting the origin and the building outline point in the coordinate system of the densely populated viewing point (the final angle is less than 90°). This variable represents the inclination angle of a certain point on the building outline viewed by the current person.
[0115] For the angle variable of the crowded viewing point, since the head or body of a person can rotate, the derivative inclination angle of the building outline viewed by the person needs to be further solved. Since the horizontal center line of the area is parallel to the horizontal axis of the building coordinate system (note that what is needed at this time is the angle value, not the slope value), Figures 8 to 9 As shown, Angle as an example (such as Fig. 9 As shown, at this time is a negative value, is a positive value), its angle variable is:
[0116]
[0117] Therefore, according to the distance function obtained above , we can get:
[0118] and =|s|=| | Lianli, also uses , will soon As the independent variable, t as the dependent variable. However, in actual use, no formula derivation is required function, but all valid The values and corresponding t values can be enumerated one by one (for the convenience of description, the following method adopts function form).
[0119] By reasoning, the same formula can be derived for other crowded viewing spots, so we can conclude:
[0120]
[0121] =
[0122] =
[0123] in It is the angle between the tangent of the current point on the building's outer contour and the line connecting the current crowded viewing direction (the angle is in the range of 0°~180°).
[0124] Based on the above The angle function can be used to calculate the angle variable under any observation angle γ for the current crowded viewing point.
[0125] Finally, according to the display effects of the existing lighting facades of various types of buildings, the accumulated and summarized data sets of experience in adjusting the horizontal widening ratio and brightness enhancement ratio corresponding to the angle variables based on different viewing angles γ are used to adjust the lighting screen widening ratio and screen brightness accordingly, as shown in Table 1 below.
[0126] Observation angle γ angle variable Recommended value of horizontal width ratio Picture brightness increase ratio 90° 0% 0% 85° 0% 1% 80° 5% 2% 75° 8% 3% 70° 16% 4% 65° 24% 5% 60° 32% 6% 55° 40% 6.50% 50° 47% 7% 45° 55% 7.50% 40° 62% 8% 35° 70% 8.50% 30° 78% 9% 25° The width is invalid, take 0% 10% 20° The width is invalid, take 0% 10% 15° The width is invalid, take 0% 10% 10° The width is invalid, take 0% 10% 5° The width is invalid, take 0% 10%
[0127] Table 1
[0128] Furthermore, in an optional example, the method for correcting the lighting image of a building facade further includes the following steps:
[0129] Step S600 is based on Function, calculate the distance function in the coordinate system of the densely populated viewing point ,according to Calculate the distance variable of the observation angle γ in the coordinate system of the densely populated viewing point, and adjust the picture brightness accordingly based on the empirical table.
[0130] Specifically, in order to more reasonably adjust the building facade lighting image adaptively, in this example, a distance variable condition is further added, where the distance function Please refer to the example of step S500.
[0131] The formula for the relative value of the distance function for crowded viewing spots can be derived as follows:
[0132]
[0133] Among them The value is the ratio value of the benchmark, which is generally based on the distance between the coordinate system of the benchmark point with densely populated viewing points and the origin of the building coordinate system, and the value is greater than 0; The angle is based on the center line connecting the coordinate system of the crowded viewing point and the building coordinate system, and the clockwise angle is negative.
[0134]
[0135] , combined, unify different viewing areas to get:
[0136] Based on the above distance function, we can find the distance relative to The proportional value of the distance variable.
[0137] Finally, according to the display effects of the existing lighting facades of various buildings, an empirical adjustment data set of brightness enhancement ratios corresponding to distance variables based on different observation angles γ is accumulated and summarized, and the screen brightness is adjusted accordingly, as shown in Table 2 below.
[0138] Distance variable Overlay screen brightness 100% 0% 120% 5% 140% 10% 160% 18% 180% 28% 200% 42% 220% 57% 240% 75% 260% 90% 280% 105% 300% 120% >300% The distance is too far and the value is no longer changed to 120%.
[0139] Table 2
[0140] Through this design, if Fig.10 As shown, in the above example, according to the angle variable of the observation angle γ, the horizontal widening of the light picture can be corrected + the brightness of the picture can be improved according to the inclination of the building facade, while the distance variable of the observation angle γ can be corrected according to the building observation distance on the basis of the angle variable correction, the brightness of the light picture can be corrected superimposed, thereby improving the overall perception of the lighting picture of the building facade for the audience located at the crowded viewing point.
[0141] On the other hand, corresponding to the above method example, Fig.11 As shown, the present invention also provides a building facade lighting image correction system, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the building facade lighting image correction method described in any of the above examples.
[0142] On the other hand, corresponding to the above method examples, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of the building facade lighting image correction method described in any of the above examples are implemented.
[0143] In summary, through the building facade lighting image correction method, system and storage medium provided by the present invention, a solution is cleverly designed to adjust the width ratio and image brightness of the building facade lighting image according to the densely populated viewing area and the shape of the building facade, thereby improving the viewing experience of most viewers, thereby solving the problem that some buildings have poor inherent orientation conditions and the viewing effect is too poor, thus missing out on the viewing experience of dense crowds of people, thereby better attracting the attention of people and improving the image of the city's night light and shadow as a whole.
[0144] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0145] Those skilled in the art can understand that, in addition to implementing the system, device, unit and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be regarded as structures within the hardware component; the modules for implementing various functions can also be regarded as both software programs for implementing the method and structures within the hardware component.
[0146] In addition, all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.
[0147] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.
Claims
1. A method for correcting a building facade lighting image, comprising the steps of: Obtain the top view contour curve of the building facade, and determine the visible contour curve of the building based on the known locations of crowded viewing points and viewing angles; Define the building coordinate system and the coordinate system of crowded viewing points; Establish a Taylor expansion that approximately fits the visible contour curve, and obtain the best fitting Taylor expansion , determine the conversion relationship between the coordinate system of the crowded viewing point and the building coordinate system; according to Function, calculate the derivative function in the coordinate system of the densely populated viewing point ; according to The angle variable of the observation angle γ in the coordinate system of the densely populated viewing point is calculated, so as to adjust the light screen width ratio and screen brightness accordingly according to the empirical table.
2. The method for correcting the building facade lighting image according to claim 1, further comprising: according to Function, calculate the distance function in the coordinate system of the densely populated viewing point ; according to Calculate the distance variable of the observation angle γ in the coordinate system of the densely populated viewing point, and adjust the picture brightness accordingly based on the empirical table.
3. The method for correcting the lighting image of a building facade according to claim 1, wherein the step of defining the building coordinate system and the coordinate system of the crowded viewing point comprises: With the crowded viewing point as the center of the circle, a straight line intersecting the visible contour curve is established towards the visible contour curve, which serves as the s-axis of the crowded viewing point coordinate system and the y-axis of the building coordinate system; A t-axis perpendicular to the s-axis is established through the crowded viewing point to define the crowded viewing point coordinate system [t, s]; A straight line perpendicular to the y-axis of the building coordinate system and making the origin of the building coordinate system located within the enclosed area of the top-view contour curve is established as the x-axis to define the building coordinate system [x, y].
4. The method for correcting the lighting image of a building facade according to claim 1, wherein the conversion relationship between the coordinate system of the crowded viewing point and the building coordinate system is: ; ; in is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system, It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system.
5. The method for correcting the lighting image of a building facade according to claim 1, wherein the derivative function of the coordinate system of the densely populated viewing point is calculated The steps include: right The function is derived once to obtain the required first derivative function ; Calculate the derivative function in the coordinate system of the densely populated viewing point, ; in , It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system.
6. The building facade lighting image correction method according to claim 1, wherein The steps of calculating the angle variable of the observation angle γ in the coordinate system of the densely populated viewing point include: Obtain the angle between the viewing field of view at the crowded viewing point and the center line connecting the coordinate system of the crowded viewing point and the building coordinate system as the observation angle γ; Calculate the angle variable of the observation angle γ for: ; = ; = 。 7. The method for correcting the lighting image of a building facade according to claim 2, wherein the distance function in the coordinate system of the densely populated viewing point is calculated The steps include: Calculate the distance function in the coordinate system of the crowded viewing point for: ; in is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system, It is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system.
8. The building facade lighting image correction method according to claim 7, wherein according to The steps of calculating the distance variable of the observation angle γ in the coordinate system of the densely populated viewing point include: The distance variable in the coordinate system of the densely populated viewing point is calculated as: ; in It is the reference distance between the coordinate system of the crowded viewing point and the origin of the building coordinate system. is the deflection angle between the coordinate system of the crowded viewing point and the building coordinate system, It is the distance between the coordinate system of the current crowded viewing point and the origin of the building coordinate system.
9. A building facade lighting image correction system, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the building facade lighting picture correction method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed, the steps of the building facade lighting image correction method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Display method and device
CN107102836A
Sight line tracking system and method based on 3D space model
CN107861625A
Adjusting method and system for screen brightness
CN108519820A
Distortion correction method for ultra-wide viewing angle image
CN112634142A
Distortion removing method and device for transparent A-column curved screen and storage medium
CN113918024A