Image display method and device, equipment and medium
By acquiring the stereoscopic projection model of the irregularly shaped screen and generating a matching tunnel path, and using geometric modeling algorithms to process and map the image using a mapping relationship set, the problem of poor display effect and quality of irregularly shaped screens in the existing technology is solved, and high-quality image display is achieved.
Patent Information
- Application Number
- CN202511008974.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-11-04
AI Technical Summary
Existing image display methods have poor display effects and quality when dealing with complex irregularly shaped screens, such as tunnel-shaped LED screens, making it difficult to fully utilize the display advantages of irregularly shaped LED screens.
By acquiring the stereoscopic projection model of the target screen, a matching tunnel path is generated, and a geometric modeling algorithm is used to process the tunnel path. A mapping relationship set is calculated, and finally, the target image is mapped based on the mapping relationship set to generate an image display result that matches the target screen.
It improves the quality and effect of image display, ensuring that images are not stretched or distorted on irregularly shaped screens, and that the content is complete and fits the screen shape.
Smart Images

Figure CN120892005A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of image display, in particular to an image display method, device, equipment and medium. BACKGROUND
[0002] In the field of display technology today, LED special-shaped screens have been widely used in many scenes such as stage performances, advertisement displays, science museums, etc. due to their unique shapes and display effects. For LED special-shaped screen projects, the key is to achieve an accurate mapping relationship between the video source and the special-shaped screen to ensure that the picture can be correctly and perfectly output to the special-shaped screen.
[0003] The existing processing method usually uses creative display to process the mapping relationship, that is, by selecting regions on the video source and the actual screen respectively, and then performing operations such as moving, scaling, rotating, etc. on the video source region to make it match the screen region. There are also methods of using 3D model data of LED special-shaped screens combined with generation algorithms to automatically generate mapping relationships, among which the perspective projection algorithm is commonly used. However, the existing technology has certain limitations. For example, when using the perspective projection algorithm to generate a mapping relationship for a complex 3D model of a tunnel-shaped LED special-shaped screen, the picture effect is often poor, it is difficult to meet the expected display requirements, and it cannot fully exert the display advantages of the LED special-shaped screen, which to some extent limits the application and development of LED special-shaped screens in more fields.
[0004] In summary, the existing image display method has the problem of poor display effect and display quality. SUMMARY
[0005] The present application provides an image display method, device, equipment and medium, which can solve the problem of poor display effect and display quality of the existing image display method.
[0006] In a first aspect, the present application provides an image display method, which comprises:
[0007] Obtaining a stereographic projection model of a target screen, and generating a tunnel path matching the stereographic projection model based on the stereographic projection model;
[0008] Processing the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matching the tunnel path;
[0009] Calculating a mapping relationship set between the stereographic projection model and the target path model based on the tunnel path;
[0010] Obtaining a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matching the target screen.
[0011] In a second aspect, an embodiment of the present application provides a display device of an image, the device comprising:
[0012] a tunnel path generation module configured to obtain a stereographic projection model of a target screen, and generate a tunnel path matching the stereographic projection model based on the stereographic projection model;
[0013] a geometric modeling module configured to process the tunnel path by a preconfigured geometric modeling algorithm to obtain a target path model matching the tunnel path;
[0014] a mapping relationship calculation module configured to calculate a mapping relationship set between the stereographic projection model and the target path model based on the tunnel path;
[0015] a display result generation module configured to obtain a target image, and map the target image based on the mapping relationship set to obtain an image display result matching the target screen.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory in communication with the at least one processor; wherein
[0019] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the display method of an image according to any one of the embodiments of the present application.
[0020] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing computer instructions, the computer instructions being configured to enable a processor to implement the display method of an image according to any one of the embodiments of the present application when executed by the processor.
[0021] The technical scheme of the embodiment of the present application obtains a stereographic projection model of a target screen, generates a tunnel path matching the stereographic projection model based on the stereographic projection model, then processes the tunnel path by a preconfigured geometric modeling algorithm to obtain a target path model matching the tunnel path, then calculates a mapping relationship set between the stereographic projection model and the target path model based on the tunnel path, finally obtains a target image, and maps the target image based on the mapping relationship set to obtain an image display result matching the target screen, thereby solving the problem of poor display effect and display quality of the existing image display method, realizing image display for the target screen, and improving the display quality and display effect of the image.
[0022] It should be understood that nothing in this section is intended to limit the scope of the embodiments of the present application nor are they intended to represent key or essential features of the embodiments of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort based on these drawings.
[0024] Figure 1 is a flow chart of an image display method according to an embodiment of the present application;
[0025] Figure 2 is a flow chart of an image display method according to an embodiment of the present application;
[0026] Figure 3 is a structural schematic diagram of an image display device according to an embodiment of the present application;
[0027] Figure 4 is a structural schematic diagram of an electronic device implementing an image display method according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the technical personnel in the art better understand the present application scheme, the following will combine the drawings in the embodiments of the present application, and the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only some embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort should belong to the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", and the like in the description and in the claims of the present application and above-described accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment one
[0031] Figure 1 A flowchart of an image display method provided for the first embodiment of the present application, the present embodiment can be applied to the case of displaying an image using a target screen, the method can be executed by an image display device which can be realized in the form of hardware and / or software, and the image display device can be configured in a terminal or a server having an image display function.
[0032] As Figure 1 shown, the method comprises:
[0033] S110, obtaining a stereographic projection model of a target screen, and generating a tunnel path matched with the stereographic projection model based on the stereographic projection model.
[0034] Wherein, the target screen can be a special-shaped LED display screen, and the stereographic projection model is a three-dimensional digital model of the special-shaped LED display screen, which can accurately reflect the stereographic structure, size and morphological characteristics of the screen, for example, a 3D model of a tunnel-shaped LED special-shaped screen added in the GrandMapping software model library, which can be imported into a 3D view for subsequent processing.
[0035] Further, the tunnel path refers to a path that matches the stereographic structure of the tunnel-shaped LED special-shaped screen, which is used to generate a mapping relationship subsequently, such as a path drawn in the overhead view of the tunnel LED screen 3D model that matches the actual tunnel path.
[0036] Further, the tunnel path matching the stereoscopic projection model is generated based on the stereoscopic projection model, including: obtaining three views of the stereoscopic projection model, the three views including an orthographic view, a top view and a side view; in response to a selection operation of a user, selecting one of the three views as a construction image; inputting the construction image into a pre-trained tunnel path generation algorithm to process the construction image to obtain the tunnel path matching the stereoscopic projection model.
[0037] For example, the tunnel path matching the stereoscopic projection model is generated based on the stereoscopic projection model, and the specific process is as follows: first, obtain three views of the stereoscopic projection model, the three views being plane figures obtained by projecting the stereoscopic projection model from three mutually perpendicular directions. Then, in response to a selection operation of a user, select one of the three views as a construction image, the construction image being a view selected from the three views and best reflecting the characteristics of the tunnel path, for example, the user finds that the top view best shows the direction of the tunnel according to the actual structure of the tunnel shape LED screen, and therefore selects the top view as the construction image. Finally, input the construction image into a pre-trained tunnel path generation algorithm to process the construction image to obtain the tunnel path matching the stereoscopic projection model. The pre-trained tunnel path generation algorithm here refers to an algorithm trained by a large number of three views of tunnel shape LED screens and corresponding manually drawn tunnel path data, which is used to automatically identify the structural characteristics of the tunnel in the construction image and generate a matching path. For example, input the selected tunnel top view into the algorithm, and the algorithm will identify the direction and curvature of the tunnel in the top view and other characteristics to automatically generate a tunnel path matching the structure of the tunnel.
[0038] Optionally, the tunnel path generation algorithm can be specifically a Hough transform algorithm, an edge detection algorithm combined with a region growing algorithm, an active contour model algorithm, etc.
[0039] S120, processing the tunnel path by a pre-configured geometric modeling algorithm to obtain a target path model matching the tunnel path.
[0040] The target path model is a stereoscopic model with a circular cross section. Further, the stereoscopic model with a circular cross section refers to a stereoscopic structure in which the cross section at any point on the path is circular with the generated tunnel path as the central axis, for example, the cross section at each point is circular along the tunnel path, forming a cylindrical-like stereoscopic model.
[0041] In this embodiment, the target path model matched with the tunnel path obtained after processing by the geometric modeling algorithm is specifically: taking the tunnel path as the central axis, generating a circular cross section along each point of the path, and finally forming an overall three-dimensional model. Specifically, the geometric modeling algorithm will sequentially take multiple points along the tunnel path, and make a circular cross section at each point. The size of these circular cross sections can be set according to actual needs, and the centers of all circular cross sections are located on the tunnel path. By sequentially connecting these circular cross sections, a three-dimensional model with a circular cross section is formed, which is the target path model. For example, if the tunnel path is a curved line, the geometric modeling algorithm will generate a circular cross section at each point along the curved path, and finally form a three-dimensional structure similar to a curved cylinder. This structure is the target path model matched with the tunnel path, which will be used for subsequent mapping processing with the 3D model of the tunnel-shaped LED irregular screen.
[0042] The geometric modeling algorithm is an algorithm for generating a specific three-dimensional structure according to the tunnel path. Its function is to generate cross sections of uniform shape at various positions along the tunnel path, and then combine them into a complete three-dimensional model. In this embodiment, the geometric modeling algorithm can be specifically based on graphics-based geometric modeling algorithms, sweep algorithms, lofting algorithms, and spline curve fitting algorithms, etc.
[0043] Those skilled in the art should understand that the method of generating a model matched with a known path by a geometric algorithm is a mature existing technology, and the generation process and principle thereof will not be described in detail in this embodiment.
[0044] S130, calculating a mapping relationship set of the three-dimensional projection model and the target path model based on the tunnel path.
[0045] S140, obtaining a target image and mapping the target image based on the mapping relationship set to obtain an image display result matched with the target screen.
[0046] The target image is an original image or video frame that needs to be displayed on the target screen, such as an advertisement picture to be played, an animation segment, etc. These images are the original materials for subsequent mapping processing. Further, the mapping relationship set is a one-to-one correspondence relationship set between input slices and output slices. The input slice is a grid set formed after the target path model is unfolded into a plane, and the output slice is a grid set formed based on UV data by the three-dimensional projection model. Each grid constituting the input slice corresponds to a grid constituting the output slice, such as a grid of a certain input slice of the target path model corresponding to a grid at a specific position of the tunnel LED screen in the output slice. The set of such correspondence relationships is the mapping relationship set.
[0047] The target image is obtained and mapped based on the mapping relationship set to obtain an image display result matched with the target screen, including: mapping the target image to the target path model to obtain a target mapping image matched with the target image; and mapping the target mapping image to the stereoscopic projection model based on the mapping relationship set to obtain the image display result matched with the target screen.
[0048] Specifically, the target image is obtained and mapped based on the mapping relationship set to obtain an image display result matched with the target screen, including the following process: first, the target image is mapped to the target path model to obtain a target mapping image matched with the target image. Then, during the mapping, the target mapping image is first divided into small picture blocks corresponding to the input slices according to the grid of the input slices, and each small picture block fills exactly one grid of the input slice. Since the plane (the plane after the target path model is unfolded) where the grid of the input slice is located and the stereoscopic surface (the surface of the stereoscopic projection model) where the grid of the output slice is located have different shapes (for example, the grid of the input slice is a regular square, while the grid of the output slice may be a trapezoidal or irregular polygon due to the curvature of the tunnel), the corresponding rule in the mapping relationship set needs to be found to find the output slice grid corresponding to each input slice grid. Then, the small picture blocks in the input slice grid are deformed, and the deformation mode includes moving, shrinking, enlarging, rotating, etc., so that the shape is completely matched with the corresponding output slice grid. For example, if a certain input slice grid is a square with a side length of 10 pixels, and the corresponding output slice grid is a trapezoidal grid with an upper base of 8 pixels and a lower base of 12 pixels due to the curvature of the tunnel, then the picture in the square grid will be stretched and deformed into the corresponding trapezoidal shape to adapt to the shape of the output slice grid. Finally, each small picture block that has been deformed is mapped one by one to the corresponding output slice grid. When the picture blocks of all input slice grids are deformed and mapped to the corresponding output slice grids, the pictures of these output slice grids are combined to form a complete image matched with the stereoscopic projection model. Through the correspondence between the stereoscopic projection model and the target screen, the image ultimately presents an image display result that conforms to the stereoscopic structure and viewing angle of the target screen, such as an animation picture that is not stretched or distorted when displayed on a tunnel LED screen, and the content is complete and conforms to the screen shape.
[0049] The technical scheme of the embodiment of the present application obtains a stereoscopic projection model of a target screen, generates a tunnel path matched with the stereoscopic projection model based on the stereoscopic projection model, processes the tunnel path through a preconfigured geometric modeling algorithm, obtains a target path model matched with the tunnel path, calculates a mapping relationship set of the stereoscopic projection model and the target path model based on the tunnel path, obtains a target image, and maps the target image based on the mapping relationship set to obtain an image display result matched with the target screen, thereby realizing image display for the target screen and improving the display quality and display effect of the image.
[0050] Embodiment Two
[0051] Figure 2 A flowchart of an image display method provided by Embodiment Two of the present application is based on the above-described embodiment and is refined in this embodiment. In this embodiment, the method of calculating a mapping relationship set of the stereoscopic projection model and the target path model based on the tunnel path is refined.
[0052] As shown in Figure 2 , the method comprises the following steps.
[0053] S210, a stereoscopic projection model of a target screen is obtained, and a tunnel path matched with the stereoscopic projection model is generated based on the stereoscopic projection model.
[0054] S220, the tunnel path is processed through a preconfigured geometric modeling algorithm to obtain a target path model matched with the tunnel path.
[0055] S230, each target cross section of a preset number of target path models is obtained according to the tunnel path, and a stereoscopic projection cross section matched with each target cross section is obtained according to the stereoscopic projection model.
[0056] The method of obtaining each target cross section of a preset number of target path models according to the tunnel path and obtaining a stereoscopic projection cross section matched with each target cross section according to the stereoscopic projection model comprises the following steps: obtaining a target point on the tunnel path; performing cross section operation on the target path model based on the target point to obtain a target cross section matched with the target point; performing cross section operation on the stereoscopic projection model based on the target point to obtain a stereoscopic projection cross section matched with the target cross section; returning to the operation of obtaining a target point on the tunnel path until the number of target cross sections meets the preset number.
[0057] Further, the cross-section operation refers to taking a target point as the center, making a plane perpendicular to the tunnel path at the point, and cutting the target path model with the plane to obtain a cross-section. Since the cross-section of the target path model is circular, the obtained target cross-section is a circle. For example, cutting the curved cylindrical target path model at the target point to obtain a circular cross-section is the target cross-section corresponding to the target point.
[0058] In one specific implementation scenario of the embodiment, first, any point on the tunnel path is taken as a target point. Then, the target path model is subjected to a cross-section operation based on the target point to obtain a target cross-section matching the target point. Next, the stereographic projection model is subjected to a cross-section operation based on the target point to obtain a stereographic projection cross-section matching the target cross-section. Since the stereographic projection model is a tunnel-shaped LED irregular screen 3D model, its cross-section is a polygon, so the obtained stereographic projection cross-section is a polygon. For example, cutting the tunnel LED screen 3D model at the same target point to obtain a polygonal cross-section is the stereographic projection cross-section matching the above-mentioned circular target cross-section. Finally, the operation of taking any point on the tunnel path as a target point is returned to be performed until the number of target cross-sections meets a preset number. For example, if the preset number is 80, the above-mentioned operations of taking a point, cutting the target path model to obtain a target cross-section, and cutting the stereographic projection model to obtain a stereographic projection cross-section need to be repeated until 80 target cross-sections and corresponding 80 stereographic projection cross-sections are obtained.
[0059] S240, obtaining a mapping relationship set of the stereographic projection model and the target path model according to each target cross-section and the stereographic projection cross-section respectively matching each target cross-section.
[0060] In the embodiment, obtaining a mapping relationship set of the stereographic projection model and the target path model according to each target cross-section and the stereographic projection cross-section respectively matching each target cross-section includes: overlapping the target cross-section and the stereographic projection cross-section matching the target cross-section in a center point coinciding manner, and constructing a coordinate system matching the target cross-section based on the center point; obtaining each vertex of the stereographic projection cross-section as a projection vertex, and connecting each projection vertex and the center of the target cross-section to obtain a projection extension line respectively matching each projection vertex; obtaining each mapping point respectively matching each projection vertex according to each projection extension line and the target cross-section, the mapping point being the intersection of the projection extension line of the projection vertex and the target cross-section; obtaining mapping coordinates of each mapping point and vertex coordinates of each projection vertex based on the coordinate system; and obtaining the mapping relationship set of the stereographic projection model and the target path model according to the vertex coordinates of each projection vertex and the mapping coordinates of the mapping point respectively matching each projection vertex.
[0061] Specifically, the specific process of obtaining the mapping relationship set of the stereographic projection model and the target path model according to each target section and the stereographic projection section matched with each target section includes: first, the target section and the stereographic projection section matched with the target section are overlapped in a manner of center point coincidence. The center point is the center of the circle for the target section, and is the geometric center corresponding to the center of the circle for the stereographic projection section. The purpose of the overlapping operation is to ensure that the positions of the two sections in space correspond. Then, a coordinate system matched with the target section is constructed based on the center point. Then, each vertex of the stereographic projection section is obtained as a projection vertex, for example, the octagonal stereographic projection section has 8 vertices, each vertex corresponds to a corner position of the edge of the tunnel LED screen, and is recorded as vertex A1, A2, …, A8. Then, each projection vertex and the center of the target section are connected respectively, and the intersection of the obtained line segment after extension and the target section is the mapping point matched with each projection vertex respectively, for example, the line segment connecting vertex A1 and the center of the circle is extended, and the intersection of the extended line segment and the edge of the circular target section is point B1, then B1 is the mapping point of A1. Next, the mapping coordinates of each mapping point and the vertex coordinates of each projection vertex are obtained based on the coordinate system. Finally, the mapping relationship set of the stereographic projection model and the target path model is obtained according to the vertex coordinates of each projection vertex and the mapping coordinates of the mapping points matched with each projection vertex respectively.
[0062] On the basis of the above steps, the mapping relationship set between the stereographic projection model and the target path model is obtained according to the vertex coordinates of each projection vertex and the mapping coordinates of the mapping points respectively matched with each projection vertex, which can include the following steps: first, for a stereographic projection section, adjacent projection vertices will form a grid boundary of the stereographic projection section through connecting lines, and these connecting lines will divide the stereographic projection section into a plurality of small areas, each of which is a grid in the output slice. For example, among the 8 vertices A1 to A8 of an octagonal stereographic projection section, the connecting lines between adjacent vertices such as A1 and A2, A2 and A3, etc. will divide the octagon into 8 triangular grids, each of which corresponds to a specific area on the surface of the stereographic projection model, i.e. a component unit of the output slice. Correspondingly, in the target section, the mapping points (such as B1 to B8) corresponding to the above projection vertices will also form a grid boundary through adjacent connecting lines. The connecting lines between adjacent mapping points (such as B1 and B2, B2 and B3, etc.) will divide the circular target section into a plurality of small areas with the same number as the stereographic projection section, each of which is a grid in the input slice. For example, the adjacent connecting lines of B1 to B8 will divide the circle into 8 sector grids corresponding to the triangular grids in the above octagon, and these grids are the component units of the input slice after the target path model is unfolded into a plane. Since there is a clear point-to-point mapping relationship between each projection vertex and the corresponding mapping point, the boundary of the output slice grid surrounded by adjacent projection vertices also has a one-to-one mapping relationship with the boundary of the input slice grid surrounded by adjacent mapping points. For example, the three edges of the triangular output grid surrounded by A1-A2-A3 correspond to the three edges of the sector input grid surrounded by B1-B2, B2-B3, B3-B1, and these two grids form a grid-to-grid mapping. When the connecting lines of all adjacent points complete the grid division, each output slice grid in the stereographic projection section will find the unique corresponding input slice grid in the target section through the mapping point boundary corresponding to the boundary vertex of the output slice grid. With the point-to-point mapping and grid division of the preset number of target sections on the tunnel path being completed, the output slice of the entire stereographic projection model and the input slice of the target path model form a complete grid-to-grid mapping relationship, i.e. the mapping relationship set.
[0063] S250, obtaining a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matched with the target screen.
[0064] The technical scheme of the embodiment of the present application comprises the following steps: obtaining a stereographic projection model of a target screen, generating a tunnel path matched with the stereographic projection model based on the stereographic projection model, processing the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matched with the tunnel path, obtaining each target cross section of a preset number of target path models according to the tunnel path, obtaining a stereographic projection cross section matched with each target cross section according to the stereographic projection model, obtaining a mapping relationship set of the stereographic projection model and the target path model according to each target cross section and the stereographic projection cross section matched with each target cross section respectively, obtaining a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matched with the target screen, thereby realizing image display for the target screen and improving the display quality and display effect of the image.
[0065] Embodiment three
[0066] Figure 3 A structural schematic diagram of an image display device provided by the third embodiment of the present application is shown in FIG. 3. As shown in FIG. 3, the device comprises: Figure 3
[0067] a tunnel path generation module 310 configured to obtain a stereographic projection model of a target screen and generate a tunnel path matched with the stereographic projection model based on the stereographic projection model;
[0068] a geometric modeling module 320 configured to process the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matched with the tunnel path;
[0069] a mapping relationship calculation module 330 configured to calculate a mapping relationship set of the stereographic projection model and the target path model based on the tunnel path;
[0070] a display result generation module 340 configured to obtain a target image and map the target image based on the mapping relationship set to obtain an image display result matched with the target screen.
[0071] The technical scheme of the embodiment of the present application comprises the following steps: obtaining a stereographic projection model of a target screen, generating a tunnel path matched with the stereographic projection model based on the stereographic projection model, processing the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matched with the tunnel path, obtaining a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matched with the target screen, thereby realizing image display for the target screen and improving the display quality and display effect of the image.
[0072] On the basis of the above-mentioned embodiments, the mapping relationship calculation module 330 comprises:
[0073] A cross-section acquisition unit is configured to acquire a preset number of target cross-sections of the target path model according to the tunnel path, and acquire a stereoscopic projection cross-section matched with each target cross-section according to the stereoscopic projection model respectively;
[0074] A mapping calculation unit is configured to obtain a mapping relationship set of the stereoscopic projection model and the target path model according to each target cross-section and the stereoscopic projection cross-section matched with each target cross-section respectively.
[0075] On the basis of the above-mentioned embodiments, the cross-section acquisition unit comprises:
[0076] A target point determination unit is configured to acquire a random point on the tunnel path as a target point;
[0077] A target cross-section operation unit is configured to perform a cross-section operation on the target path model based on the target point to obtain a target cross-section matched with the target point;
[0078] A stereoscopic cross-section operation unit is configured to perform a cross-section operation on the stereoscopic projection model based on the target point to obtain a stereoscopic projection cross-section matched with the target cross-section;
[0079] A return execution unit is configured to return to execute the operation of acquiring a random point on the tunnel path as a target point until the number of target cross-sections meets the preset number.
[0080] On the basis of the above-mentioned embodiments, the mapping calculation unit comprises:
[0081] A cross-section overlapping unit is configured to perform an overlapping operation on the target cross-section and the stereoscopic projection cross-section matched with the target cross-section in a manner that the center points coincide, and construct a coordinate system matched with the target cross-section based on the center points;
[0082] An extension line generation unit is configured to acquire each vertex of the stereoscopic projection cross-section as a projection vertex, connect each projection vertex and the center of the target cross-section respectively to obtain a projection extension line matched with each projection vertex respectively;
[0083] A mapping point determination unit is configured to obtain each mapping point matched with each projection vertex respectively according to each projection extension line and the target cross-section respectively, the mapping point being an intersection point of the projection extension line of the projection vertex and the target cross-section;
[0084] A coordinate acquisition unit is configured to obtain mapping coordinates of each mapping point and vertex coordinates of each projection vertex based on the coordinate system;
[0085] A relationship set construction unit is configured to obtain a mapping relationship set between the stereoscopic projection model and the target path model according to vertex coordinates of each projection vertex and mapping coordinates of a mapping point respectively matched with each projection vertex.
[0086] On the basis of the above-mentioned embodiments, the display result generation module 340 comprises:
[0087] An image mapping unit is configured to map the target image onto the target path model to obtain a target mapping image matched with the target image.
[0088] A display result generation unit is configured to map the target mapping image onto the stereoscopic projection model based on the mapping relationship set to obtain an image display result matched with the target screen.
[0089] On the basis of the above-mentioned embodiments, the tunnel path generation module 310 comprises:
[0090] A three-view acquisition unit is configured to acquire a three-view of the stereoscopic projection model, the three-view comprising an orthographic view, a top view and a side view.
[0091] An image selection unit is configured to select one of the three-views as a construction image in response to a selection operation of a user.
[0092] A tunnel path generation unit is configured to input the construction image into a pre-trained tunnel path generation algorithm to process the construction image to obtain a tunnel path matched with the stereoscopic projection model.
[0093] The display device for an image provided by the embodiments of the present application can execute the display method for an image provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0094] Embodiment Four
[0095] Figure 4 A structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.
[0096] As Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0097] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, a loudspeaker, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0098] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as a display method of an image.
[0099] Correspondingly, the method includes:
[0100] Obtaining a stereographic projection model of a target screen, and generating a tunnel path matching the stereographic projection model based on the stereographic projection model;
[0101] Processing the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matching the tunnel path;
[0102] Calculating a mapping relationship set between the stereographic projection model and the target path model based on the tunnel path;
[0103] Obtaining a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matching the target screen.
[0104] In some embodiments, a display method of an image can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 18. In some embodiments, part or all of the computer program can be loaded onto electronic device 10 via, e.g., ROM 12 and / or communication unit 19. When the computer program is loaded onto RAM 13 and executed by processor 11, one or more steps of a display method of an image as described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform a display method of an image by other any suitable means, e.g., by way of firmware.
[0105] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0106] Computer programs used to implement the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0107] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0108] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0109] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0110] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0111] It should be understood that the various forms of flow shown above can be reordered, additional steps added, or steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which are not limited herein.
Claims
1. A display method of an image, characterized by, The method comprises the following steps: acquiring a stereographic projection model of a target screen, and generating a tunnel path matching the stereographic projection model based on the stereographic projection model; processing the tunnel path through a pre-configured geometric modeling algorithm to obtain a target path model matching the tunnel path; calculating a mapping relationship set of the stereographic projection model and the target path model based on the tunnel path; acquiring a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matching the target screen.
2. The method of claim 1, wherein, The target path model is a stereographic model with a circular cross section.
3. The method of claim 1, wherein, The method of calculating the mapping relationship set of the stereographic projection model and the target path model based on the tunnel path comprises the following steps: acquiring a plurality of target cross sections of the target path model according to the tunnel path, and acquiring a plurality of stereographic projection cross sections matching the target cross sections respectively according to the stereographic projection model; obtaining the mapping relationship set of the stereographic projection model and the target path model according to the target cross sections and the stereographic projection cross sections matching the target cross sections respectively.
4. The method of claim 3, wherein, The method of acquiring a plurality of target cross sections of the target path model according to the tunnel path, and acquiring a plurality of stereographic projection cross sections matching the target cross sections respectively according to the stereographic projection model comprises the following steps: acquiring a target point on the tunnel path; performing cross section operation on the target path model based on the target point to obtain a target cross section matching the target point; performing cross section operation on the stereographic projection model based on the target point to obtain a stereographic projection cross section matching the target cross section; returning to the operation of acquiring a target point on the tunnel path until the number of target cross sections meets a preset number.
5. The method according to any one of claims 2-3, characterized in that, The method of obtaining the mapping relationship set of the stereographic projection model and the target path model according to the target cross sections and the stereographic projection cross sections matching the target cross sections respectively comprises the following steps: performing overlapping operation on the target cross sections and the stereographic projection cross sections matching the target cross sections in a manner of center point coincidence, and constructing a coordinate system matching the target cross sections based on the center point; acquiring each vertex of the stereographic projection cross section as a projection vertex, and connecting each projection vertex and a center of the target cross section respectively to obtain a projection extension line matching each projection vertex; obtaining each mapping point matching each projection vertex respectively according to each projection extension line and the target cross section, the mapping point being an intersection point of the projection extension line of the projection vertex and the target cross section; obtaining mapping coordinates of each mapping point and vertex coordinates of each projection vertex based on the coordinate system; obtaining the mapping relationship set of the stereographic projection model and the target path model according to the vertex coordinates of each projection vertex and the mapping coordinates of each mapping point matching each projection vertex respectively.
6. The method of claim 1, wherein, The method of acquiring a target image, and mapping the target image based on the mapping relationship set to obtain an image display result matching the target screen comprises the following steps: mapping the target image to the target path model to obtain a target mapping image matching the target image; Map the target mapping image to the stereoscopic projection model based on the mapping relationship set, to obtain an image display result matched with the target screen.
7. The method of claim 1, wherein, Generating a tunnel path matched with the stereoscopic projection model based on the stereoscopic projection model, comprising: Obtaining a three-view of the stereoscopic projection model, the three-view comprising an orthographic view, a top view and a side view; In response to a selection operation of a user, selecting one of the three-views as a construction image; Inputting the construction image to a pre-trained tunnel path generation algorithm to process the construction image, to obtain a tunnel path matched with the stereoscopic projection model.
8. An image display device, characterized by comprising: Comprising: A tunnel path generation module, configured to obtain a stereoscopic projection model of a target screen, and generate a tunnel path matched with the stereoscopic projection model based on the stereoscopic projection model; A geometric modeling module, configured to process the tunnel path by a pre-configured geometric modeling algorithm, to obtain a target path model matched with the tunnel path; A mapping relationship calculation module, configured to calculate a mapping relationship set between the stereoscopic projection model and the target path model based on the tunnel path; A display result generation module, configured to obtain a target image, and map the target image based on the mapping relationship set, to obtain an image display result matched with the target screen.
9. An electronic device, comprising: The electronic device comprises: At least one processor; and A memory connected in communication with the at least one processor; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the image display method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to execute the image display method of any one of claims 1-7 when executed.
Citation Information
Patent Citations
Large screen fusion projection method
CN106067160A
Virtual exhibition hall generation method and device based on arc-shaped screen
CN119722443A
Automatic mapping projection method and device for LED special-shaped screen
CN120186312A