Image display method, device, electronic device and computer readable storage medium
By obtaining the characteristics of the three-dimensional urban market scene and determining the light source information based on the characteristics, efficient and beautiful lighting is performed on the three-dimensional urban areas, the problem of time-consuming and labor-consuming manual lighting distribution in the existing technology is solved, and the lighting effect that is flexible to adapt to different geographical space ranges and scene contents is achieved.
Patent Information
- Application Number
- CN202010623866.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-06-30
AI Technical Summary
The prior art is difficult to perform efficient and beautiful lighting on three-dimensional cities based on different geographical space scopes and different scene contents, and requires manual lighting, which is time-consuming and labor-intensive and difficult to achieve satisfactory lighting effects.
By obtaining the characteristics of the target object, determining the light source information for illuminating the target object based on the characteristics, and using the corresponding light source to render the image of the target object to achieve efficient and beautiful lighting. The specific method includes determining the type and position of the light source according to the aspect ratio of the external pattern of the target object on the horizontal plane, such as arranging a spotlight light source or a parallel light source, and illuminating the entire illumination IBL light source based on the image.
It realizes efficient and beautiful lighting of the target object as a whole and/or part according to different geographical space scope and different scene content, avoids the time-consuming and labor-consuming problem of manual lighting deployment, and can flexibly adjust the light source combination to meet the needs of different scenarios.
Smart Images

Figure CN113870407B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an image display method, device, electronic device, and computer-readable storage medium. Background Art
[0002] With the development of big data technology, users will use large display screens, namely data screens, to display or interact with data, so as to share or disseminate information in application scenarios such as brand promotion, government reception, business communication, and data monitoring. In the process of displaying three-dimensional digital city scenes on current data screens, the size and shape of the geographical space range displayed each time are different. The existing technology cannot efficiently and beautifully illuminate the three-dimensional city parts in the scene according to different geographical space ranges and different scene contents. Manual lighting is required, which is time-consuming and labor-intensive, and it is difficult to achieve satisfactory lighting effects. Summary of the invention
[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide an image display method, device, electronic device and computer-readable storage medium.
[0004] In a first aspect, an image display method is provided in an embodiment of the present disclosure.
[0005] Specifically, the image display method includes:
[0006] Get the characteristics of the target object;
[0007] Determining light source information for illuminating the target object according to the characteristics of the target object;
[0008] Rendering the image of the target object according to the light source information to obtain a target image;
[0009] The target image is displayed.
[0010] In combination with the first aspect, in a first implementation of the first aspect of the present disclosure, the target object includes a three-dimensional image of a scene in a preset spatial area; and / or
[0011] The characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: the shape topological characteristics of the target object in a preset direction, the shape topological characteristics of the sub-objects contained in the target object, and the spatial distribution characteristics of the sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: the color of the sub-objects contained in the target object, the texture of the sub-objects contained in the target object, and the reflectivity and / or transmittance of the sub-objects contained in the target object.
[0012] In combination with the first implementation of the first aspect, in a second implementation of the first aspect of the present disclosure, the preset spatial area includes a preset geographical range; and / or
[0013] The topological features of the target object in a preset direction, including the external graphics of the target object on a horizontal plane; and / or
[0014] The topological features of the sub-objects contained in the target object, including the height of the sub-objects; and / or
[0015] The spatial distribution characteristics of the sub-objects contained in the target object include the distances between the sub-objects.
[0016] In combination with the second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present disclosure, determining, according to the characteristics of the target object, the light source information for illuminating the target object includes:
[0017] The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
[0018] In combination with the third implementation of the first aspect, in a fourth implementation of the first aspect of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0019] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following:
[0020] Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object;
[0021] Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object;
[0022] Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object;
[0023] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0024] The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
[0025] In combination with the fourth implementation method of the first aspect, in a fifth implementation method of the first aspect of the present disclosure, an imaging device for imaging the target image is located at a fourth position, and a projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0026] In combination with the third implementation manner of the first aspect, in a sixth implementation manner of the first aspect of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0027] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following:
[0028] Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside a first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side;
[0029] Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side;
[0030] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0031] The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
[0032] In combination with the sixth implementation method of the first aspect, in the seventh implementation method of the first aspect of the present disclosure, an imaging device for imaging the target image is located at a seventh position, and a projection of the seventh position on the horizontal plane is located above the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0033] In combination with the second implementation manner of the first aspect, in an eighth implementation manner of the first aspect of the present disclosure, determining, according to the characteristics of the target object, the light source information for illuminating the target object includes:
[0034] When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
[0035] In combination with the second implementation manner of the first aspect, in a ninth implementation manner of the first aspect of the present disclosure, determining, according to the characteristics of the target object, the light source information for illuminating the target object includes:
[0036] When the distance between sub-objects contained in the target object is smaller than a third threshold, at least one spotlight light source is arranged next to the sub-objects.
[0037] In a second aspect, an image display device is provided in an embodiment of the present disclosure.
[0038] A first acquisition module is configured to acquire features of a target object;
[0039] A determination module, configured to determine light source information for illuminating the target object according to the characteristics of the target object;
[0040] A second acquisition module is configured to render the image of the target object according to the light source information to obtain a target image;
[0041] The display module is configured to display the target image.
[0042] In combination with the second aspect, in a first implementation manner of the second aspect of the present disclosure, the target object includes a three-dimensional image of a scene in a preset spatial area; and / or
[0043] The characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: the shape topological characteristics of the target object in a preset direction, the shape topological characteristics of the sub-objects contained in the target object, and the spatial distribution characteristics of the sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: the color of the sub-objects contained in the target object, the texture of the sub-objects contained in the target object, and the reflectivity and / or transmittance of the sub-objects contained in the target object.
[0044] In combination with the first implementation manner of the second aspect, in a second implementation manner of the second aspect of the present disclosure, the preset spatial area includes a preset geographical range; and / or
[0045] The topological features of the target object in a preset direction, including the external graphics of the target object on a horizontal plane; and / or
[0046] The topological features of the sub-objects contained in the target object, including the height of the sub-objects; and / or
[0047] The spatial distribution characteristics of the sub-objects contained in the target object include the distances between the sub-objects.
[0048] In combination with the second implementation manner of the second aspect, in a third implementation manner of the second aspect of the present disclosure, determining the light source information for illuminating the target object according to the characteristics of the target object includes:
[0049] The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
[0050] In combination with the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0051] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following:
[0052] Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object;
[0053] Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object;
[0054] Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object;
[0055] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0056] The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
[0057] In combination with the fourth implementation method of the second aspect, in a fifth implementation method of the second aspect of the present disclosure, an imaging device for imaging the target image is located at a fourth position, and a projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0058] In combination with the third implementation manner of the second aspect, in a sixth implementation manner of the second aspect of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0059] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following:
[0060] Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside a first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side;
[0061] Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side;
[0062] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0063] The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
[0064] In combination with the sixth implementation method of the second aspect, in the seventh implementation method of the second aspect of the present disclosure, an imaging device for imaging the target image is located at a seventh position, and a projection of the seventh position on the horizontal plane is located above the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0065] In combination with the second implementation manner of the second aspect, in an eighth implementation manner of the second aspect of the present disclosure, determining, according to the characteristics of the target object, the light source information for illuminating the target object includes:
[0066] When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
[0067] In combination with the second implementation manner of the second aspect, in a ninth implementation manner of the second aspect of the present disclosure, determining, according to the characteristics of the target object, the light source information for illuminating the target object includes:
[0068] When the distance between sub-objects contained in the target object is smaller than a third threshold, at least one spotlight light source is arranged next to the sub-objects.
[0069] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement a method as described in the first aspect or any one of the first to ninth implementations of the first aspect.
[0070] In a fourth aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, on which computer instructions are stored, and the computer instructions are executed by a processor to implement the method as described in the first aspect and any one of the first to ninth implementations of the first aspect.
[0071] According to the technical solution provided by the embodiment of the present disclosure, the characteristics of the target object are obtained, and the light source information for illuminating the target object is determined according to the characteristics of the target object, and the image of the target object is rendered according to the light source information to obtain the target image, and the target image is displayed. The embodiment of the present disclosure The embodiment of the present disclosure obtains the characteristics of the target object and uses the light source information corresponding to the characteristics to illuminate the target object, thereby realizing efficient and beautiful lighting of the entire and / or part of the target object according to different geographic space ranges and different scene contents, avoiding the time-consuming and labor-intensive problems caused by manual lighting.
[0072] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0074] Figure 1 A flowchart showing an image display method according to an embodiment of the present disclosure is shown;
[0075] Figure 2 A schematic diagram showing a circumscribed graphic of a target object on a horizontal plane according to an embodiment of the present disclosure;
[0076] Figure 3 A schematic diagram showing how to determine the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane according to an embodiment of the present disclosure;
[0077] Figure 4 A schematic diagram showing how to determine the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane according to an embodiment of the present disclosure;
[0078] Figure 5 A schematic diagram showing how to determine light source information for illuminating the target object according to the characteristics of the target object according to an embodiment of the present disclosure;
[0079] Figure 6 A schematic diagram showing how to determine light source information for illuminating the target object according to the characteristics of the target object according to an embodiment of the present disclosure;
[0080] Figure 7 A schematic diagram showing an application scenario of the image display method according to an embodiment of the present disclosure;
[0081] Figure 8 A structural block diagram of an image display device according to an embodiment of the present disclosure is shown;
[0082] Fig. 9 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0083] Fig.10 A schematic diagram showing the structure of a computer system suitable for implementing the image display method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0084] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0085] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0086] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0087] As shown above, in the process of displaying three-dimensional digital city scenes on the current data screen, since the size and shape of the geographical space range displayed each time are different, the existing technology cannot efficiently and beautifully illuminate the three-dimensional city parts in the scene according to different geographical space ranges and different scene contents. Manual lighting is required, which is time-consuming and labor-intensive, and it is difficult to achieve satisfactory lighting effects.
[0088] The present disclosure is proposed to solve the problems in the prior art discovered by the inventors.
[0089] According to the technical solution provided by the embodiment of the present disclosure, the characteristics of the target object are obtained, and the light source information for illuminating the target object is determined according to the characteristics of the target object, and the image of the target object is rendered according to the light source information to obtain the target image, and the target image is displayed. The embodiment of the present disclosure obtains the characteristics of the target object and uses the light source information corresponding to the characteristics to illuminate the target object, thereby achieving efficient and beautiful lighting of the entire and / or part of the target object according to different geographic space ranges and different scene contents, avoiding the time-consuming and labor-intensive problems caused by manual lighting.
[0090] The image display method according to the embodiment of the present disclosure is applicable to application scenarios of digital large-screen display, and is also applicable to application scenarios such as the display of game images, movie images, television images, virtual reality images, and enhanced display images.
[0091] Figure 1 FIG. 1 is a flow chart showing an image display method according to an embodiment of the present disclosure. Figure 1 As shown, the image display method includes the following steps S101-S104:
[0092] In step S101, the characteristics of the target object are obtained;
[0093] In step S102, light source information for illuminating the target object is determined according to the characteristics of the target object;
[0094] In step S103, the image of the target object is rendered according to the light source information to obtain a target image;
[0095] In step S104, the target image is displayed.
[0096] According to an embodiment of the present disclosure, the target object includes a three-dimensional image of a scene in a preset spatial area, and the preset spatial area includes a preset geographical range.
[0097] According to an embodiment of the present disclosure, a target object can be determined, wherein the target object can include a three-dimensional image of a scene in a preset spatial area, and the preset spatial area can include a preset geographical range. The present disclosure does not specifically limit the preset geographical range and scene, and can be selected according to actual needs. The preset geographical range can include, for example, a geographical area (such as a country, province, city or district, etc.) or a specific building (such as a business district, community, library, shopping mall, computer room, etc.); the scene can include all or part of the objects within the preset geographical range, such as an urban scene in XX city, or a real estate scene in XXX community. After determining the target object, the characteristics of the target object can be obtained.
[0098] According to an embodiment of the present disclosure, the characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: shape topological characteristics of the target object in a preset direction, shape topological characteristics of sub-objects contained in the target object, and spatial distribution characteristics of sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: color of the sub-objects contained in the target object, texture of the sub-objects contained in the target object, and reflectivity and / or transmittance of the sub-objects contained in the target object.
[0099] According to an embodiment of the present disclosure, the shape topological features of the target object in a preset direction include the external graphics of the target object on the horizontal plane; the shape topological features of the sub-objects contained in the target object include the height of the sub-objects; and the spatial distribution features of the sub-objects contained in the target object include the distance between the sub-objects.
[0100] According to the embodiments of the present disclosure, the shape topological features of the target object in a preset direction can be obtained. When the preset direction is a horizontal plane, the shape topological features can be external graphics. The present disclosure does not specifically limit the external graphics, which can be selected according to actual needs. For example, it can include regular graphics (such as matrices, squares, circles, etc.) or irregular graphics (such as irregular polygons, etc.).
[0101] According to an embodiment of the present disclosure, a target object may include multiple sub-objects, and a sub-object may be a three-dimensional image of all or part of an object within a preset geographical range. The appearance topological features of the sub-object may be obtained, and the appearance topological features of the sub-object may include the height or width of the sub-object, etc. For example, assuming that the target object is a three-dimensional image of a city scene, the sub-object may include a three-dimensional image of a building in the city scene, and the appearance topological features of the sub-object may include the height of the three-dimensional image of the building. For another example, assuming that the target object is a three-dimensional image of a building scene in a community, the sub-object may include a three-dimensional image of a building in the community, and the appearance topological features of the sub-object may include the height of the three-dimensional image of the building.
[0102] According to an embodiment of the present disclosure, the spatial distribution characteristics of the sub-objects can be obtained, and the spatial distribution characteristics of the sub-objects can include the distance between the sub-objects, so as to obtain the density between multiple sub-objects. For example, assuming that the target object is a three-dimensional image of an urban scene, the sub-objects may include the three-dimensional images of buildings in the urban scene, and the spatial distribution characteristics of the sub-objects may include the distance between the three-dimensional images of the buildings. For another example, assuming that the target object is a three-dimensional image of a real estate scene in a residential area, the sub-objects may include the three-dimensional images of buildings in the residential area, and the spatial distribution characteristics of the sub-objects may include the distance between the three-dimensional images of the buildings.
[0103] According to an embodiment of the present disclosure, light source information for illuminating a target object can be determined based on the characteristics of the target object, wherein the light source information can include a light source type, and the light source type can include one or more of the following light sources: an IBL light source, a spotlight light source, a parallel light source, a point light source, etc. Specifically, the light source information for illuminating a target object can be determined based on the shape topological features of the target object in a preset direction, such as an external graphic of the target object on a horizontal plane, so that the target object as a whole can be efficiently and beautifully illuminated according to different geographic space ranges. The light source information for illuminating a target object can be determined based on the shape topological features of the sub-objects contained in the target object, such as the height of the sub-objects contained in the target object, or based on the spatial distribution features of the sub-objects contained in the target object, such as the distance between the sub-objects contained in the target object, so that the target object can be locally efficiently and beautifully illuminated according to different scene contents. According to an embodiment of the present disclosure, light source information for illuminating a target object may be determined based on the color of a sub-object contained in the target object. For example, when the sub-object is darker in color, more spotlights or point light sources may be deployed near the sub-object to clearly display the sub-object, and when the sub-object is lighter in color, fewer spotlights or point light sources may be deployed near the sub-object. According to an embodiment of the present disclosure, light source information for illuminating a target object may be determined based on the texture of a sub-object contained in the target object. For example, when the sub-object texture is more complex, more spotlights or point light sources may be deployed near the sub-object to clearly display the texture, and when the sub-object texture is simpler, fewer spotlights or point light sources may be deployed near the sub-object. According to an embodiment of the present disclosure, light source information for illuminating a target object can be determined based on the reflectivity and / or transmittance of sub-objects contained in the target object. For example, when the reflectivity of the sub-object is higher (i.e., the transmittance is lower), fewer spotlights or point light sources can be deployed near the sub-object to avoid the sub-object being too bright; when the reflectivity of the sub-object is lower (or the transmittance is higher), fewer spotlights or point light sources can be deployed near the sub-object to avoid the sub-object being too dark.
[0104] According to an embodiment of the present disclosure, the image of the target object can be rendered according to the above light source information to obtain the target image, wherein the target image can include a three-dimensional image of the target object obtained after illumination rendering. The three-dimensional target image corresponding to the target object can be displayed on a two-dimensional data large screen.
[0105] According to the technical solution provided by the embodiment of the present disclosure, the characteristics of the target object are obtained, and the light source information for illuminating the target object is determined according to the characteristics of the target object, and the image of the target object is rendered according to the light source information to obtain the target image, and the target image is displayed. The embodiment of the present disclosure The embodiment of the present disclosure obtains the characteristics of the target object and uses the light source information corresponding to the characteristics to illuminate the target object, thereby realizing efficient and beautiful lighting of the entire and / or part of the target object according to different geographic space ranges and different scene contents, avoiding the time-consuming and labor-intensive problems caused by manual lighting.
[0106] According to an embodiment of the present disclosure, the step S102, i.e., determining light source information for illuminating the target object according to the characteristics of the target object, includes:
[0107] The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
[0108] In the following, the embodiments of the present disclosure will be described by taking the circumscribed figure of the target object on the horizontal plane as a rectangle as an example. It should be understood that this example is only used for illustration and is not a limitation of the present disclosure.
[0109] Figure 2 A schematic diagram showing a circumscribed graphic of a target object on a horizontal plane according to an embodiment of the present disclosure.
[0110] like Figure 2 As shown, the topological type of the external graphic can be determined according to the aspect ratio of the external graphic of the target object on the horizontal plane. The aspect ratio of the external graphic can be compared with the first threshold. When the aspect ratio of the external graphic is less than or equal to the first threshold, for example, the first external graphic 201 and the second external graphic 202, the external graphic can be determined as the first topological type (for example, the conventional topological type); when the aspect ratio of the external graphic is greater than the first threshold, for example, the third external graphic 203 and the fourth external graphic 204, the external graphic can be determined as the second topological type (for example, the extreme topological type). The present disclosure does not specifically limit the first threshold, and it can be selected according to actual needs, for example, it can be 2 to 4, and specifically can be 3. Different light source information can be determined according to different topological types of the external graphics.
[0111] In the process of proposing the present disclosure, the inventors found that the prior art generally adopts the following lighting methods:
[0112] Global Illumination (GI) is the general name for a set of algorithms used in 3D computer graphics, which aims to add more realistic lighting effects to 3D scenes. However, due to the large amount of calculation required for global illumination, it is usually only used in offline rendering of 3D software. When rendering a 3D digital city scene in real time through a data screen, global illumination cannot be used due to frame rate limitations.
[0113] Image Based Lighting (IBL) calculates indirect lighting from the surrounding environment. However, IBL lighting is a lighting mode similar to ambient light, which cannot illuminate a specific direction or a specific part. Therefore, it cannot achieve shadow generation or highlight a specific part.
[0114] The three-point lighting method is a basic method of 3D lighting, which is simple and easy to use and is generally used for scene lighting in a smaller range, such as indoor photography or portrait photography. However, for scene lighting within a dynamic geographical range, there will be problems such as insufficient light intensity or misaligned light angles.
[0115] From the above description, it can be seen that the existing technology that uses global illumination, IBL illumination or three-point lighting alone will cause problems such as high lighting rendering performance overhead, inflexible lighting, insufficient lighting intensity or misaligned lighting angles.
[0116] According to an embodiment of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0117] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following:
[0118] Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object;
[0119] Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object;
[0120] Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object;
[0121] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0122] The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
[0123] Figure 3 A schematic diagram is shown of determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane according to an embodiment of the present disclosure.
[0124] like Figure 3 As shown, when the aspect ratio of the fifth circumscribed graphic 300A of the target object on the horizontal plane is less than or equal to the first threshold, the topological type of the fifth circumscribed graphic 300A is the first topological type (conventional topological type). The corresponding light source information may include at least one or more of the following:
[0125] An image-based lighting IBL light source 304 is arranged for the target object as a whole, wherein the IBL light source 304 can be used for global illumination.
[0126] A first spotlight light source 301 is located at a first position, wherein the first spotlight light source 301 can be used as the main lighting, the projection of the first position on the horizontal plane is located on the first short side of the fifth circumscribed figure 300A or outside the first short side, and / or the projection of the first position on the horizontal plane is located on the perpendicular bisector of the first short side of the fifth circumscribed figure 300A. The reference light of the first spotlight light source 301 points to the geometric center of the target object, wherein the reference light of the first spotlight light source 301 may include the light emitted from the geometric center of the first spotlight light source 301, and other light emitted by the first spotlight light source 301 is distributed around the reference light of the first spotlight light source 301, so that the light emitted by the first spotlight light source 301 can cover the target object.
[0127] A second spotlight light source 302 is located at a second position, wherein the second spotlight light source 302 can be used as background lighting, and the projection of the second position on the horizontal plane is located on the first long side of the fifth circumscribed figure 300A or outside the first long side, and / or the projection of the second position on the horizontal plane is located on the perpendicular bisector of the first long side of the fifth circumscribed figure 300A. The reference light of the second spotlight light source 302 points to the geometric center of the target object, wherein the reference light of the second spotlight light source 302 may include the light emitted from the geometric center of the second spotlight light source 302, and other light emitted by the second spotlight light source 302 is distributed around the reference light of the second spotlight light source 302, so that the light emitted by the second spotlight light source 302 can cover the target object.
[0128] A third spotlight light source 303 is located at a third position, wherein the third spotlight light source 303 can be used as auxiliary lighting, and the projection of the third position on the horizontal plane is located on the extended diagonal line from the intersection of the first long side and the first short side to the intersection of the second long side and the second short side of the fifth circumscribed figure 300A. The reference light of the third spotlight light source 303 points to the geometric center of the target object, wherein the reference light of the third spotlight light source 303 may include the light emitted from the geometric center of the third spotlight light source 303, and other light emitted by the third spotlight light source 303 is distributed around the reference light of the third spotlight light source 303, so that the light emitted by the third spotlight light source 303 can cover the target object.
[0129] Since the reference light of the first spotlight light source 301, the reference light of the second spotlight light source 302, and the reference light of the third spotlight light source 303 are all three-dimensional space vectors, there will be an angle between them and the horizontal plane where the target object is located. According to the embodiment of the present disclosure, the angle between the reference light of the first spotlight light source 301, the reference light of the second spotlight light source 302, and the reference light of the third spotlight light source 303 and the horizontal plane can be a first preset angle. The present disclosure does not make any specific restrictions on the first preset angle, and it can be selected according to actual needs, for example, it can include 30 degrees to 60 degrees, and specifically, for example, it can be 45 degrees. At the same time, the first preset angles between the reference light of the first spotlight light source 301, the reference light of the second spotlight light source 302, and the reference light of the third spotlight light source 303 and the horizontal plane can be the same or different. The present disclosure does not make any specific restrictions on it, and it can be selected according to actual needs.
[0130] According to an embodiment of the present disclosure, an imaging device for imaging the target image is located at a fourth position, and a projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0131] like Figure 3 As shown, the first imaging device 300B for imaging the target image is located at the fourth position, wherein the first imaging device 300B is similar to a virtual camera or a virtual camera, and is used to represent the viewing angle of the execution subject of the image display method of the embodiment of the present disclosure when acquiring the target image. For example, when the projection of the fourth position on the horizontal plane is located on the second long side of the fifth circumscribed figure 300A or outside the second long side and / or located on the perpendicular bisector of the second long side of the fifth circumscribed figure 300A, it can be characterized that the execution subject of the image display method of the embodiment of the present disclosure acquires the target image from the second long side of the fifth circumscribed figure 300A to the first long side of the fifth circumscribed figure 300A, and the first imaging device 300B points to the geometric center of the target object.
[0132] According to an embodiment of the present disclosure, the position is located on an edge of the circumscribed figure or outside the circumscribed figure.
[0133] like Figure 3 As shown, any one or more of the first position, the second position, the third position, and the fourth position may be located on the edge of the fifth circumscribed figure 300A. Alternatively, any one or more of the first position, the second position, the third position, and the fourth position may be located outside the fifth circumscribed figure 300A, for example, the distance between the first position and the first short side is the first preset distance, the distance between the second position and the first long side is the second preset distance, the distance between the first position and the intersection of the second long side and the second short side is the third preset distance, and the distance between the fourth position and the second long side is the fourth preset distance. The present disclosure does not specifically limit the first preset distance, the second preset distance, the third preset distance, and the fourth preset distance, and they can be selected according to actual needs, wherein the first preset distance, the second preset distance, the third preset distance, and the fourth preset distance may be the same or different.
[0134] According to an embodiment of the present disclosure, the step S102, i.e., determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane, includes:
[0135] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following:
[0136] Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside a first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side;
[0137] Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side;
[0138] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0139] The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
[0140] Figure 4 A schematic diagram is shown of determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane according to an embodiment of the present disclosure.
[0141] like Figure 4 As shown, when the aspect ratio of the sixth circumscribed graphic 400A of the target object on the horizontal plane is greater than the first threshold, the topological type of the sixth circumscribed graphic 400A is the second topological type (extreme topological type). The corresponding light source information may include at least one or more of the following:
[0142] Arrange an image-based lighting IBL light source 403 for the target object as a whole, wherein the IBL light source 403 can be used for global illumination;
[0143] The first parallel light source 401 is located at the fifth position, wherein the first parallel light source 401 can be used as the main illumination, and the projection of the fifth position on the horizontal plane is located on the first long side of the sixth circumscribed figure 400A or outside the first long side. The projection of the reference light of the first parallel light source 401 on the horizontal plane forms a second preset angle with the first long side, wherein the reference light of the first parallel light source 401 can include the light emitted from the geometric center of the first parallel light source 401, and the other light emitted by the first parallel light source 401 is parallel to the reference light of the first parallel light source 401, so that the light emitted by the first parallel light source 401 can cover the target object. The present disclosure does not specifically limit the second preset angle, and it can be selected according to actual needs, for example, it can include 30 degrees to 60 degrees, etc., for example, it can be 45 degrees.
[0144] A second parallel light source 402 is located at the sixth position, wherein the second parallel light source 402 can be used as auxiliary lighting, and the projection of the sixth position on the horizontal plane is located on the second short side of the sixth circumscribed figure 400A or outside the second short side. The projection of the reference light of the second parallel light source 402 on the horizontal plane forms a third preset angle with the first long side, wherein the reference light of the second parallel light source 402 may include the light emitted from the geometric center of the second parallel light source 402, and other light emitted by the second parallel light source 402 is parallel to the reference light of the second parallel light source 402, so that the light emitted by the second parallel light source 402 can cover the target object. The present disclosure does not specifically limit the third preset angle, and it can be selected according to actual needs, for example, it can include 0 degrees to 10 degrees, etc., for example, it can be 0 degrees.
[0145] Since the reference light of the first parallel light source 401 and the reference light of the second parallel light source 402 are both three-dimensional space vectors, there will be an angle between them and the horizontal plane where the target object is located. According to the embodiment of the present disclosure, the angle between the reference light of the first parallel light source 401 and the reference light of the second parallel light source 402 and the horizontal plane can be a fourth preset angle. The present disclosure does not make any specific restrictions on the fourth preset angle, and it can be selected according to actual needs. For example, it can include 30 degrees to 60 degrees, for example, it can be 45 degrees. At the same time, the respective fourth preset angles between the reference light of the first parallel light source 401 and the reference light of the second parallel light source 402 and the horizontal plane can be the same or different. The present disclosure does not make any specific restrictions on it, and it can be selected according to actual needs.
[0146] According to an embodiment of the present disclosure, the imaging device for imaging the target image is located at a seventh position, and the projection of the seventh position on the horizontal plane is located above the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0147] like Figure 4 As shown, the second imaging device 400B for imaging the target image is located at the seventh position, wherein the second imaging device 400B is similar to a virtual camera or a virtual camera, and is used to represent the viewing angle of the execution subject of the image display method of the embodiment of the present disclosure when acquiring the target image. For example, when the projection of the seventh position on the horizontal plane is located on the second long side of the sixth circumscribed figure 400A or outside the second long side and / or located on the perpendicular midline of the second long side of the sixth circumscribed figure 400A, it can be characterized that the execution subject of the image display method of the embodiment of the present disclosure acquires the target image from the second long side of the sixth circumscribed figure 400A to the first long side of the sixth circumscribed figure 400A, and the second imaging device 400B points to the geometric center of the target object.
[0148] According to an embodiment of the present disclosure, the position is located on an edge of the circumscribed figure or outside the circumscribed figure.
[0149] like Figure 4 As shown, any one or more of the fifth position, the sixth position, and the seventh position may be located on the edge of the sixth circumscribed figure 400A. Alternatively, any one or more of the fifth position, the sixth position, and the seventh position may be located outside the sixth circumscribed figure 400A, for example, the distance between the fifth position and the first long side is the fifth preset distance, the distance between the sixth position and the second short side is the sixth preset distance, and the distance between the seventh position and the second long side is the seventh preset distance. The present disclosure does not specifically limit the fifth preset distance, the sixth preset distance, and the seventh preset distance, and they may be selected according to actual needs, wherein the fifth preset distance, the sixth preset distance, and the seventh preset distance may be the same or different.
[0150] According to the technical solution provided by the embodiment of the present disclosure, the topological type of the external graphics is determined by the aspect ratio of the external graphics of the target object on the horizontal plane, and the light source information including different light source combinations is determined according to the different topological types of the external graphics, so that the corresponding light sources can be flexibly arranged according to different geographic space ranges to illuminate the target object efficiently and beautifully. The problems of high lighting rendering performance overhead, inflexible lighting, insufficient lighting intensity or misaligned lighting angles that occur in the prior art using global illumination, IBL lighting or three-point lighting methods alone are solved.
[0151] According to an embodiment of the present disclosure, the step S102, i.e., determining light source information for illuminating the target object according to the characteristics of the target object, includes:
[0152] When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
[0153] Figure 5 A schematic diagram showing how to determine light source information for illuminating a target object based on features of the target object according to an embodiment of the present disclosure.
[0154] It should be understood that the embodiment of the present disclosure will be described by taking two sub-objects (first sub-object 501 and second sub-object 502) contained in the target object and the sub-objects are buildings as an example. It should be understood that this example is only used as an example and is not a limitation of the present disclosure.
[0155] like Figure 5As shown, the heights of the first sub-object 501 and the second sub-object 502 can be compared with the second threshold value, respectively. The second threshold value is not specifically limited in the present disclosure and can be selected according to actual needs. Since the height of the first sub-object 501 is greater than the second threshold value, at least one fourth spotlight light source 503 can be arranged next to the first sub-object 501. The position, direction, quantity, and distance between the fourth spotlight light source 503 and the first sub-object 501 are not specifically limited in the present disclosure and can be selected according to actual needs. Since the height of the second sub-object 502 is less than the second threshold value, the fourth spotlight light source 503 does not need to be arranged next to the second sub-object 502.
[0156] According to the technical solution provided by the embodiment of the present disclosure, by comparing the height of the sub-object with the second threshold and determining whether it is necessary to arrange a spotlight light source next to the sub-object, flexible lighting is achieved. It is also possible to highlight some sub-objects included in the target object according to actual needs and avoid the problem of generating shadows due to the excessive height of the sub-object.
[0157] According to an embodiment of the present disclosure, the step S102, i.e., determining light source information for illuminating the target object according to the characteristics of the target object, includes:
[0158] When the distance between sub-objects contained in the target object is smaller than a third threshold, at least one spotlight light source is arranged next to the sub-objects.
[0159] Figure 6 A schematic diagram showing how to determine light source information for illuminating a target object based on features of the target object according to an embodiment of the present disclosure.
[0160] It should be understood that the embodiment of the present disclosure will be described using an example in which four sub-objects (third sub-object 601, fourth sub-object 602, fifth sub-object 603, and sixth sub-object 604) are included in the target object and the sub-object is a building. It should be understood that this example is only used for illustration and is not a limitation of the present disclosure.
[0161] like Figure 6As shown, the spacing between the third sub-object 601 and the fourth sub-object 602, and the spacing between the fifth sub-object 603 and the sixth sub-object 604 can be compared with the third threshold value, respectively. The present disclosure does not specifically limit the third threshold value, and it can be selected according to actual needs. Since the spacing between the third sub-object 601 and the fourth sub-object 602 is greater than the third threshold value, it is not necessary to arrange the fifth spotlight light source 605 next to the third sub-object 601 and the fourth sub-object 602. Since the spacing between the fifth sub-object 603 and the sixth sub-object 604 is less than the third threshold value, at least one fifth spotlight light source 605 can be arranged next to the fifth sub-object 603 or the sixth sub-object 604. The present disclosure does not specifically limit the position, direction, quantity, and distance between the fifth spotlight light source 605 and the fifth sub-object 603 or the sixth sub-object 604, and it can be selected according to actual needs.
[0162] According to the technical solution provided in the embodiment of the present disclosure, by comparing the distance between sub-objects with the third threshold and determining whether it is necessary to arrange a spotlight light source next to the sub-object, flexible lighting is achieved. It is also possible to highlight some sub-objects contained in the target object according to actual needs and avoid the problem of shadow generation caused by the close distance between sub-objects.
[0163] Figure 7 A schematic diagram of an application scenario of the image display method according to an embodiment of the present disclosure is shown. Figure 7 As shown, the application scenario includes a server 700. For the convenience of description, Figure 7 Only one server 700 is drawn in the application scenario. It should be understood that this example is only used for example and is not a limitation of the present disclosure. The number of servers 700 in the present disclosure can be set according to actual needs, and the present disclosure does not make specific limitations on this.
[0164] like Figure 7 As shown, the server 700 can obtain the characteristics of the target object 701. The characteristics of the target object 701 may include at least one or more of the following: the external figure of the target object 701 on the horizontal plane, the height of the sub-object, and the distance between the sub-objects. The light source information for illuminating the target object 701 can be determined according to the external figure of the target object 701 on the horizontal plane, the height of the sub-object, or the distance between the sub-objects.
[0165] When the feature of the target object 701 includes a circumscribed figure of the target object 701 on a horizontal plane, the aspect ratio of the circumscribed figure may be compared with a first threshold.
[0166] When the aspect ratio of the external graphic is less than or equal to a first threshold, the light source information includes at least one or more of the following: an IBL light source is used for global illumination, a first spotlight light source is arranged at a first position for main lighting, a second spotlight light source is arranged at a second position for background lighting, and a third spotlight light source is arranged at a third position for auxiliary lighting.
[0167] When the aspect ratio of the circumscribed graphic is greater than the first threshold, the light source information includes at least one or more of the following: an IBL light source is used for global illumination, a first parallel light source is arranged at the fifth position for main lighting, and a second parallel light source is arranged at the sixth position for auxiliary lighting.
[0168] When the feature of the target object 701 includes the height of the sub-object, the height of the sub-object may be compared with a second threshold value. When the height of the sub-object is greater than the second threshold value, at least one spotlight source is arranged next to the sub-object.
[0169] When the feature of the target object 701 includes the distance between sub-objects, the distance between the sub-objects may be compared with a third threshold value. When the distance between the sub-objects is less than the third threshold value, at least one spotlight source is arranged next to the sub-objects.
[0170] After the light source information is determined, the image of the target object 701 can be rendered according to the light source information to obtain a target image 702, which can be displayed on a large data screen.
[0171] According to the technical solution provided by the embodiment of the present disclosure, the target object is illuminated by acquiring the features of the target object and using the light source information corresponding to the features. Specifically, when the features include the external graphics of the target object on the horizontal plane, the topological type of the external graphics is determined by the aspect ratio of the external graphics of the target object on the horizontal plane, and the light source information including different light source combinations is determined according to the different topological types of the external graphics, so that the corresponding light sources can be flexibly arranged according to different geographical space ranges to illuminate the target object efficiently and beautifully; when the features include the height of the sub-object or the spacing between the sub-objects, by comparing the height of the sub-object with the second threshold, or by comparing the spacing between the sub-objects with the third threshold, it is determined whether it is necessary to arrange a spotlight light source next to the sub-object, thereby achieving flexible lighting, and according to actual needs, some of the sub-objects contained in the target object can be highlighted, and the problem of generating shadows due to the height of the sub-object being too high or the spacing between the sub-objects being too close is avoided.
[0172] Figure 8 The structural block diagram of the image display device according to the embodiment of the present disclosure is shown. The device can be implemented as part or all of the electronic device through software, hardware or a combination of both.
[0173] like Figure 8 As shown, the image display device 800 includes a first acquisition module 810 , a determination module 820 , a second acquisition module 830 and a display module 840 .
[0174] The first acquisition module 810 is configured to acquire features of a target object;
[0175] The determination module 820 is configured to determine light source information for illuminating the target object according to the characteristics of the target object;
[0176] The second acquisition module 830 is configured to render the image of the target object according to the light source information to obtain a target image;
[0177] The display module 840 is configured to display the target image.
[0178] According to the technical solution provided in the embodiments of the present disclosure, by acquiring the characteristics of the target object and using the light source information corresponding to the characteristics to illuminate the target object, efficient and beautiful lighting of the target object as a whole and / or in part can be achieved according to different geographic space ranges and different scene contents, thus avoiding the time-consuming and labor-intensive problems caused by manual lighting.
[0179] According to an embodiment of the present disclosure, the target object includes a three-dimensional image of a scene in a preset spatial area; and / or
[0180] The characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: the shape topological characteristics of the target object in a preset direction, the shape topological characteristics of the sub-objects contained in the target object, and the spatial distribution characteristics of the sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: the color of the sub-objects contained in the target object, the texture of the sub-objects contained in the target object, and the reflectivity and / or transmittance of the sub-objects contained in the target object.
[0181] According to an embodiment of the present disclosure, the preset spatial area includes a preset geographical range; and / or
[0182] The topological features of the target object in a preset direction, including the external graphics of the target object on a horizontal plane; and / or
[0183] The topological features of the sub-objects contained in the target object, including the height of the sub-objects; and / or
[0184] The spatial distribution characteristics of the sub-objects contained in the target object include the distances between the sub-objects.
[0185] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0186] The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
[0187] According to an embodiment of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0188] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following:
[0189] Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object;
[0190] Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object;
[0191] Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object;
[0192] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0193] The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
[0194] According to an embodiment of the present disclosure, an imaging device for imaging the target image is located at a fourth position, and a projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0195] According to an embodiment of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0196] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following:
[0197] Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside a first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side;
[0198] Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side;
[0199] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0200] The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
[0201] According to an embodiment of the present disclosure, the imaging device for imaging the target image is located at a seventh position, and the projection of the seventh position on the horizontal plane is located above the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0202] According to the technical solution provided by the embodiment of the present disclosure, the topological type of the external graphics is determined by the aspect ratio of the external graphics of the target object on the horizontal plane, and the light source information including different light source combinations is determined according to the different topological types of the external graphics, so that the corresponding light sources can be flexibly arranged according to different geographic space ranges to illuminate the target object efficiently and beautifully. The problems of high lighting rendering performance overhead, inflexible lighting, insufficient lighting intensity or misaligned lighting angles that occur in the prior art using global illumination, IBL lighting or three-point lighting methods alone are solved.
[0203] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0204] When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
[0205] According to the technical solution provided by the embodiment of the present disclosure, by comparing the height of the sub-object with the second threshold and determining whether it is necessary to arrange a spotlight light source next to the sub-object, flexible lighting is achieved. It is also possible to highlight some sub-objects included in the target object according to actual needs and avoid the problem of generating shadows due to the excessive height of the sub-object.
[0206] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0207] When the distance between sub-objects contained in the target object is smaller than a third threshold, at least one spotlight light source is arranged next to the sub-objects.
[0208] According to the technical solution provided in the embodiment of the present disclosure, by comparing the distance between sub-objects with the third threshold and determining whether it is necessary to arrange a spotlight light source next to the sub-object, flexible lighting is achieved. It is also possible to highlight some sub-objects contained in the target object according to actual needs and avoid the problem of shadow generation caused by the close distance between sub-objects.
[0209] The present disclosure also discloses an electronic device, Fig. 9 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0210] like Fig. 9 As shown, the electronic device 900 includes a memory 901 and a processor 902, wherein the memory 901 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 902 to implement the method according to an embodiment of the present disclosure:
[0211] Get the characteristics of the target object;
[0212] Determining light source information for illuminating the target object according to the characteristics of the target object;
[0213] Rendering the image of the target object according to the light source information to obtain a target image;
[0214] The target image is displayed.
[0215] According to an embodiment of the present disclosure, the target object includes a three-dimensional image of a scene in a preset spatial area; and / or
[0216] The characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: the shape topological characteristics of the target object in a preset direction, the shape topological characteristics of the sub-objects contained in the target object, and the spatial distribution characteristics of the sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: the color of the sub-objects contained in the target object, the texture of the sub-objects contained in the target object, and the reflectivity and / or transmittance of the sub-objects contained in the target object.
[0217] According to an embodiment of the present disclosure, the preset spatial area includes a preset geographical range; and / or
[0218] The topological features of the target object in a preset direction, including the external graphics of the target object on a horizontal plane; and / or
[0219] The topological features of the sub-objects contained in the target object, including the height of the sub-objects; and / or
[0220] The spatial distribution characteristics of the sub-objects contained in the target object include the distances between the sub-objects.
[0221] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0222] The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
[0223] According to an embodiment of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0224] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following:
[0225] Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object;
[0226] Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object;
[0227] Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object;
[0228] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0229] The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
[0230] According to an embodiment of the present disclosure, an imaging device for imaging the target image is located at a fourth position, and a projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0231] According to an embodiment of the present disclosure, determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes:
[0232] When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following:
[0233] Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside a first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side;
[0234] Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side;
[0235] Arranging an image-based lighting (IBL) light source for the target object as a whole;
[0236] The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
[0237] According to an embodiment of the present disclosure, the imaging device for imaging the target image is located at a seventh position, and the projection of the seventh position on the horizontal plane is located above the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
[0238] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0239] When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
[0240] According to an embodiment of the present disclosure, determining light source information for illuminating the target object according to the characteristics of the target object includes:
[0241] When the distance between sub-objects contained in the target object is smaller than a third threshold, at least one spotlight light source is arranged next to the sub-objects.
[0242] Fig.10 A schematic diagram showing the structure of a computer system suitable for implementing image display according to an embodiment of the present disclosure is shown.
[0243] like Fig.10 As shown, the computer system 1000 includes a processing unit 1001, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The processing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0244] The following components are connected to the I / O interface 1005: an input part 1006 including a keyboard, a mouse, etc.; an output part 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 1008 including a hard disk, etc.; and a communication part 1009 including a network interface card such as a LAN card, a modem, etc. The communication part 1009 performs communication processing via a network such as the Internet. The drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that the computer program read therefrom is installed into the storage part 1008 as needed. Among them, the processing unit 1001 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0245] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from the removable medium 1011.
[0246] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0247] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0248] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.
[0249] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. An image display method, characterized in that: include: Acquire a feature of a target object, wherein the feature includes a distance between sub-objects contained in the target object; Determining light source information for illuminating the target object according to the characteristics of the target object, the light source information comprising arranging at least one spotlight light source next to the sub-objects when the distance between the sub-objects contained in the target object is less than a third threshold; Rendering the image of the target object according to the light source information to obtain a target image; The target image is displayed.
2. The method according to claim 1, characterized in that: The target object includes a three-dimensional image of a scene in a preset spatial area; and / or The characteristics of the target object include the geospatial characteristics of the target object and / or the visual characteristics of the target object. The geospatial characteristics of the target object include at least one or more of the following: the shape topological characteristics of the target object in a preset direction, the shape topological characteristics of the sub-objects contained in the target object. The visual characteristics of the target object include at least one or more of the following: the color of the sub-objects contained in the target object, the texture of the sub-objects contained in the target object, and the reflectivity and / or transmittance of the sub-objects contained in the target object.
3. The method according to claim 2, characterized in that: The preset spatial area includes a preset geographical range; and / or The topological features of the target object in a preset direction, including the external graphics of the target object on a horizontal plane; and / or The topological features of the sub-objects contained in the target object include the height of the sub-objects.
4. The method according to claim 3, characterized in that The step of determining light source information for illuminating the target object according to the characteristics of the target object includes: The information of the light source is determined according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane.
5. The method according to claim 4, characterized in that Determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes: When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is less than or equal to a first threshold, the light source information includes at least one or more of the following: Arranging a first spotlight light source at a first position, wherein a projection of the first position on the horizontal plane is located on a first short side of the circumscribed figure or outside the first short side and / or on a perpendicular bisector of the first short side of the circumscribed figure, and a reference light of the first spotlight light source points to a geometric center of the target object; Arranging a second spotlight light source at a second position, wherein a projection of the second position on the horizontal plane is located on the first long side of the circumscribed figure or outside the first long side and / or on the perpendicular bisector of the first long side of the circumscribed figure, and a reference light of the second spotlight light source points to the geometric center of the target object; Arranging a third spotlight light source at a third position, wherein the projection of the third position on the horizontal plane is located on the extension line of the diagonal line from the intersection point of the first long side and the first short side of the circumscribed figure to the intersection point of the second long side and the second short side, and the reference light of the second spotlight light source points to the geometric center of the target object; Arranging an image-based lighting (IBL) light source for the target object as a whole; The angle between the reference light of the spotlight light source and the horizontal plane is a first preset angle.
6. The method according to claim 5, characterized in that The imaging device for imaging the target image is located at a fourth position, and the projection of the fourth position on the horizontal plane is located on the second long side of the circumscribed figure or outside the second long side and / or on the perpendicular bisector of the second long side of the circumscribed figure.
7. The method according to claim 4, characterized in that Determining the information of the light source according to the aspect ratio of the circumscribed figure of the target object on the horizontal plane includes: When the aspect ratio of the circumscribed figure of the target object on the horizontal plane is greater than a first threshold, the light source information includes at least one or more of the following: Arranging a first parallel light source at a fifth position, wherein a projection of the fifth position on the horizontal plane is located on or outside the first long side of the circumscribed figure, and a projection of a reference light of the first parallel light source on the horizontal plane forms a second preset angle with the first long side; Arranging a second parallel light source at a sixth position, wherein a projection of the sixth position on the horizontal plane is located on or outside the second short side of the circumscribed figure, and a projection of a reference light of the second parallel light source on the horizontal plane forms a third preset angle with the first long side; Arranging an image-based lighting (IBL) light source for the target object as a whole; The angle between the reference light of the light source and the horizontal plane is a fourth preset angle.
8. The method according to claim 7, characterized in that The imaging device for imaging the target image is located at a seventh position, and the projection of the seventh position on the horizontal plane is located on or outside the second long side of the circumscribed figure and / or on the perpendicular bisector of the second long side of the circumscribed figure.
9. The method according to claim 3, characterized in that: The step of determining light source information for illuminating the target object according to the characteristics of the target object includes: When the height of the sub-object contained in the target object is greater than a second threshold, at least one spotlight light source is arranged next to the sub-object.
10. An image display device, characterized in that: include: A first acquisition module is configured to acquire features of a target object, wherein the features include spacing between sub-objects contained in the target object; a determination module configured to determine light source information for illuminating the target object according to the characteristics of the target object, the light source information comprising arranging at least one spotlight light source next to the sub-objects when the spacing between the sub-objects contained in the target object is less than a third threshold; A second acquisition module is configured to render the image of the target object according to the light source information to obtain a target image; The display module is configured to display the target image.
11. An electronic device, characterized in that: The method comprises a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1-9.
12. A readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Real-time rendering method and mobile terminal
CN105869205A
Method and system for representing virtual object in view of real environment
CN106133796A