CN110310375B - Method and system for editing object in panoramic image and computer readable storage medium - Google Patents
Method and system for editing object in panoramic image and computer readable storage medium Download PDFInfo
- Publication number
- CN110310375B CN110310375B CN201910799475.4A CN201910799475A CN110310375B CN 110310375 B CN110310375 B CN 110310375B CN 201910799475 A CN201910799475 A CN 201910799475A CN 110310375 B CN110310375 B CN 110310375B
- Authority
- CN
- China
- Prior art keywords
- display board
- exhibit
- adjusting
- parameter
- creating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Architecture (AREA)
- Processing Or Creating Images (AREA)
Abstract
A method, a system and a computer readable storage medium for editing an object in a panoramic image, the method comprising: acquiring position coordinates of a display board to be created in the panoramic image, and acquiring display board type parameters selected by a user through a display board creation window, wherein the display board types comprise a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a view center point; creating a display board according to the type and the position coordinates of the display board; acquiring a first adjusting parameter aiming at the display board, and adjusting the display board according to the first adjusting parameter; creating an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, wherein the exhibit is any one of a text, an animation, a video and a model; and acquiring a second adjusting parameter aiming at the exhibit, and adjusting the exhibit according to the second adjusting parameter, wherein the first adjusting parameter and the second adjusting parameter respectively comprise at least one of width, height, horizontal offset and vertical offset.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and a system for editing an object in a panoramic image, and a computer-readable storage medium.
Background
The panoramic image simulation technology stands out in the rapid development of the VR (Virtual Reality) technology, which provides the reproduction of the real world in the Virtual world with the best sense of Reality and presence.
With the panoramic picture as a background, the arrangement of interactive multimedia elements becomes a complex, high-repeatability and tedious and difficult task. A panoramic roaming editing engine in the prior art is, for example, a krpano engine, and a user may create a panoramic view based on the panoramic roaming editing engine and edit multimedia elements on the panoramic view, such as dynamically generating, arranging, and editing multimedia elements in a panoramic space, such as text, pictures, animations, videos, three-dimensional models, and interactive hotspots. However, the existing method for arranging multimedia elements in a panoramic space mainly has the following two defects:
the existing panoramic roaming editing engine uses a spherical coordinate system as a positioning coordinate system, a default local coordinate system of multimedia elements is synchronous with a panoramic spherical tangent plane at the position, the panoramic spherical tangent plane is not a common arrangement plane (such as a horizontal plane like a desktop, a vertical plane like a wall surface and the like) of a daily scene, the arrangement operation is unnatural, and natural adjustment and matching are difficult to achieve on the spatial position and the posture of arranging articles on objects such as the ground, the wall or the desktop and the like which can be seen in a panoramic picture;
when the position of an object is adjusted, the position and the state of the object are adjusted by taking a panorama sphere cutting plane as a reference, the adjustment is troublesome, ten parameters such as a horizontal azimuth angle ath, a vertical azimuth angle atv, three attitude angles (rx, ry and rz), a scaling scale, width and height dimensions (width and height), offset positions (ox, oy and oz) and the like need to be adjusted, the reference plane for parameter adjustment is also a non-daily arrangement plane of the panorama sphere cutting plane, the operation effect is checked after the parameter adjustment is repeatedly performed, the operation is repeated, the workload is huge, the position is not accurately adjusted, and the posture is not flexibly adjusted.
Therefore, in the prior art, how to arrange and edit multimedia elements in a panoramic VR environment is very tedious and complex, resulting in low efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a method, a system and a computer readable storage medium for editing an object in a panoramic image, aiming at the problem of inefficient layout and editing of multimedia elements in a panoramic VR environment in the prior art.
A method of editing an object in a panoramic image, comprising:
acquiring a display board type parameter selected by a user through a display board creation window, and acquiring the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a view center point;
creating a display board according to the display board type and the position coordinates;
acquiring a first adjusting parameter aiming at the display board, and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset;
creating an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, wherein the exhibit is any one of a text, an animation, a video and a model;
and acquiring a second adjusting parameter aiming at the exhibit, and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
Further, in the editing method, the step of creating a display board according to the display board type parameter and the position coordinate includes:
determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters;
and creating a surface patch with a preset size according to the visual angle position and the position coordinate to be used as a display board.
Further, in the editing method, when the first adjustment parameter is a width parameter, the step of adjusting the display board according to the first adjustment parameter includes:
scaling the width of the display board according to the width parameter;
when the first adjusting parameter is a height parameter, the step of adjusting the display board according to the first adjusting parameter comprises:
scaling the height of the display board according to the height parameter; when the first adjusting parameter is a horizontal offset, the step of adjusting the display board according to the first adjusting parameter comprises:
shifting the display board in the horizontal direction by the horizontal offset amount;
when the first adjusting parameter is a vertical offset, the step of adjusting the display board according to the first adjusting parameter includes:
and shifting the display board by the vertical offset in the vertical direction.
Further, the above editing method, wherein the step of creating the exhibit on a target exhibit board selected by the user through the exhibit layout window includes:
acquiring a target display board selected by a user, and acquiring the type of an exhibit selected by the user through an exhibit arrangement window;
when the exhibit is a text, acquiring the text background, posture setting and text setting information selected by a user through a text creating window, and creating the text on the target exhibit according to the acquired information, or,
when the exhibit is animation, the animation style and the posture setting information selected by the user are obtained through the animation establishing window, animation is established on the target exhibit according to the obtained information, or,
when the exhibit is a video, acquiring a video file selected by a user, a display scale parameter of the video and posture setting information through a video creating window, creating the video on the target exhibition board according to the acquired information, or,
and when the exhibit is the model, obtaining the model file and the model display size information selected by the user through the model creation window, and creating the model on the target display board according to the obtained information.
Further, the above editing method, wherein, after the step of creating the exhibit on a target exhibit board selected by the user through the exhibit layout window, further includes:
and acquiring a target exhibit selected by a user through the exhibit interaction window, acquiring a hot spot editing parameter, and creating a hot spot for the target exhibit according to the acquired hot spot editing parameter.
The embodiment of the invention also provides an editing system of the object in the panoramic image, which comprises the following steps:
the acquisition module is used for acquiring a display board type parameter selected by a user through a display board creation window and acquiring the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a view center point;
the display board creating module is used for creating a display board according to the display board type and the position coordinate;
the first adjusting module is used for acquiring a first adjusting parameter aiming at the display board and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset;
the system comprises an exhibit creating module, a display setting module and a display setting module, wherein the exhibit creating module is used for creating an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, and the exhibit is any one of text, animation, video and models;
and the second adjusting module is used for acquiring a second adjusting parameter aiming at the exhibit and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
Further, in the editing system, the panel creating module is specifically configured to:
determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters;
and creating a surface patch with a preset size according to the visual angle position and the position coordinate to be used as a display board.
Further, in the editing system, when the first adjustment parameter is a width parameter, the step of adjusting the display board according to the first adjustment parameter includes:
scaling the width of the display board according to the width parameter;
when the first adjusting parameter is a height parameter, the step of adjusting the display board according to the first adjusting parameter comprises:
scaling the height of the display board according to the height parameter; when the first adjusting parameter is a horizontal offset, the step of adjusting the display board according to the first adjusting parameter comprises:
shifting the display board in the horizontal direction by the horizontal offset amount;
when the first adjusting parameter is a vertical offset, the step of adjusting the display board according to the first adjusting parameter includes:
and shifting the display board by the vertical offset in the vertical direction.
Further, the editing system further includes:
and the hot spot creation module is used for acquiring a target exhibit selected by a user through the exhibit interaction window, acquiring hot spot editing parameters and creating a hot spot for the target exhibit according to the acquired hot spot editing parameters.
An embodiment of the present invention further provides a computer-readable storage medium, on which a program is stored, where the program, when executed by a processor, implements any of the methods described above.
Although the panoramic image of the existing editing engine (such as krpano) is arranged on the three-dimensional sphere, the original three-dimensional characteristic is lost, and all the panoramic image falls on the sphere with the specified depth. When the krpan o arranges an object to set the posture, the adjustment is also carried out on the spherical tangent plane based on the arrangement points, the adjustment is complex and difficult to be in place, for example, a circular area on a ceiling needs to be dynamically displayed with the effect of lamp decoration, a front circular special effect image file needs to be inserted, the height of the circular area in a panoramic image is required to be consistent and not dislocated, an editor provided according to the krpan needs to spend great effort to adjust the posture value to approach the target state, and the perfect realization cannot be realized.
In the embodiment of the invention, program development is carried out based on the existing editing engine, and the original spherical coordinate system adjustment is converted into the adjustment on the display board with three dimensional surfaces so as to carry out adjustment on a two-dimensional plane. According to the type of the display board, the display board is established, the exhibits are arranged above, a proper offset distance is set, a proper size is set finally, and the adjusting process is very simple and clear. Also, the posture adjustment of the exhibit also becomes very easy in the conventional case, and if only the front arrangement, the horizontal arrangement, and the side arrangement of the exhibit are considered, the posture can be adjusted without using a specified constant value.
In the implementation of the invention, the display board is created based on three-dimensional planes under a three-dimensional rectangular coordinate system, namely a horizontal display board, a front display board and a side display board. And an exhibit may be created on the created display board. In addition, the positions of the display board and the exhibits can be adjusted under a rectangular coordinate system, and the natural posture adjustment and matching can be realized by arranging the exhibits on the object in the panoramic image. The embodiment of the invention creates a novel multimedia element spatial position arrangement method, simplifies the adjustment of attitude parameters according to the requirements of display pictures, realizes simple and convenient adjustment, and realizes a method for dynamically generating and arranging multimedia elements by utilizing a series of methods and steps.
Drawings
Fig. 1 is a flowchart of an editing method of an object in a panoramic image according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for editing an object in a panoramic image according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a horizontal surface display board, a front display board and a side display board created in a panoramic image according to an embodiment of the present invention;
fig. 4 is a block diagram showing a configuration of an editing system for an object in a panoramic image according to a third embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
These and other aspects of embodiments of the invention will be apparent with reference to the following description and attached drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the ways in which the principles of the embodiments of the invention may be practiced, but it is understood that the scope of the embodiments of the invention is not limited correspondingly. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Referring to fig. 1, a method for editing an object in a panoramic image according to a first embodiment of the present invention is applied to editing an object in a panoramic image, where the object in the panoramic image includes a display board and an exhibit, and a user of the display board carries the exhibit, i.e., the exhibit is disposed on the display board.
And step S11, obtaining a display board type parameter selected by a user through a display board creation window, and obtaining the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of the local three-dimensional rectangular coordinate model of the view center point.
The user of the embodiment can arrange the display board through the display board creation window provided by the computer system. For example, when a user needs to set a panoramic VR scene, the display board creation window is displayed in the middle of the left side of the working area after a "display board layout" button on an interface toolbar of the display board creation window is clicked through an input device, three display board type options are set on the display board creation window, namely a horizontal display board, a front display board and a side display board, which correspond to three dimensions of a local three-dimensional rectangular coordinate model of a view center point, namely three planes determined by three coordinate axes. The viewing angle orientation of the observer in the three-dimensional space can be determined through the three types of display boards, for example, a horizontal display board refers to a plane piece below or above the observer and parallel to a horizontal plane; the front panel is a surface patch on the plumb bob surface which is right in front of the sight of an observer and is vertical to the horizontal projection of the sight of the observer; the viewer's line of sight and a perpendicular line perpendicular to the viewer's line of sight form a side, and the side panel is a facet parallel to the side.
The user may select any point in the panoramic image and create one of the types of panels at that point. In a specific implementation, a user may select a location point for creating a display board on the panoramic image through an input device such as a mouse or a touch display screen.
And step S12, creating a display board according to the display board type parameters and the position coordinates.
In this embodiment, the display board is set by the three-dimensional plane of the three-dimensional stereo model, and when the user selects one type of display board, the viewing direction of the display board is determined. When the system acquires the type parameters and the position coordinates input by the user in the operation, the display board in the visual angle direction is established on the position coordinate point. The coordinate system adopted in the panoramic image is generally a spherical coordinate system, and three types of display boards in the rectangular coordinate system are established in the embodiment for the convenience of arrangement and adjustment of the display boards in the embodiment. The adjustment for each type of board may only require adjustment in the corresponding two-dimensional plane.
In the above step, the specific step of creating the display board according to the display board type and the position coordinates includes:
step S121, determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters;
and S122, creating a surface patch with a preset size according to the visual angle direction and the position coordinates to serve as a display board.
And establishing a surface patch on the visual angle direction at the position coordinate point, and taking the established surface patch as the created display board. The size of the patch is preset, for example, the square size is 2cm × 3cm, the effect of the patch is rendered based on the sphere coordinate and rectangular coordinate transformation model, the color of the patch filling can be preset, for example, gray, and a certain transparency can also be set.
Step S13, obtaining a first adjusting parameter for the display board, and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
The display board size created in step S12 is preset, which may not meet the user' S requirements. Therefore, the display board creation window in the present embodiment is provided with buttons for adjusting the width, height, horizontal offset, and vertical offset of the display board. The button is, for example, an adjusting bar, and the size of the display board is adjusted by moving an adjusting block on the adjusting bar. It is understood that in other embodiments of the present invention, the width, height, horizontal offset and vertical offset of the display board can be adjusted by setting up add-subtract buttons.
The width and height of the display board refer to the width and height of the surface patch in the corresponding view angle orientation of the display board. When the user needs to adjust the width of the display board, the adjusting block on the width adjusting strip can be moved to adjust the width of the display board in a scaling mode. At the moment, the system obtains that the first adjusting parameter is the width parameter, the system zooms the width of the display board according to the width parameter, meanwhile, the width of the surface patch corresponding to the display board in the panoramic image is correspondingly changed, and a user can visually see the adjusted size of the display board.
When the user needs to adjust the height of the display board, the adjusting block on the height adjusting strip can be moved to adjust the height of the display board in a scaling mode. At the moment, the system acquires that the first adjusting parameter is the height parameter, the system zooms the height of the display board according to the acquired height parameter, meanwhile, the height pair of the surface patch corresponding to the display board in the panoramic image changes, and a user can visually see the adjusted size of the display board.
When a user needs to adjust the display board in the three-dimensional space in the horizontal direction, the adjusting block on the horizontal offset adjusting strip can be moved. At this time, the first adjustment parameter acquired by the system is a horizontal offset, and the system offsets the display board by the horizontal offset in the horizontal direction, so that the display board moves by the distance of the horizontal offset in the horizontal direction.
When a user needs to adjust the display board in the vertical direction in the three-dimensional space, the adjusting block on the vertical offset adjusting strip can be moved. At this time, the first adjustment parameter acquired by the system is a vertical offset, and the system vertically offsets the display board by the vertical offset, so that the display board moves by the distance of the vertical offset in the vertical direction.
The horizontal direction and the vertical direction are two coordinate axis directions of a local plane rectangular coordinate system of the display board plane, for the front display board and the side display board, the horizontal direction is an in-plane horizontal straight line, and the vertical direction is an in-plane vertical line; for a horizontal display board, the horizontal direction is the left-right direction, and the vertical direction is the forward-backward direction.
And step S14, creating an exhibit on a target exhibit board selected by the user through the exhibit arrangement window, wherein the exhibit is any one of text, animation, video and model.
The user can create a plurality of display boards through the display board creation window, and can create an exhibit on any one of the display boards. The creation of the exhibit can be performed through an exhibit arrangement window provided by the system, for example, the exhibit arrangement window is displayed in the left center of the working area after a toolbar "exhibit trial exhibition" button is clicked, and meanwhile, the exhibition plate creation window is hidden.
The user can select a target display board by means of a mouse or a touch display screen, and when the system receives a selection signal of the user, the system marks the target display board selected by the user (for example, the selected display board is represented by a white line frame) to create an exhibit on the selected target display board according to the type of the exhibit provided in the exhibit layout window.
Step S15, obtaining a second adjusting parameter aiming at the exhibit, and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
The user can adjust the width, height, horizontal offset and vertical offset of the created exhibit through the exhibit arrangement window. The exhibit is placed on the panel, and the coordinate calculation of exhibit can be formed by the coordinate and the level of panel, the vertical offset combination, and when the second parameter that the system obtained the exhibit to adjust, the size and the offset position of adjustment exhibit, the regulation mode of exhibit is based on the regulation of panel, promptly in panel local coordinate system, realizes the readjustment to the exhibit position state through the regulation to each item parameter.
The embodiment of the invention can edit the objects in the panoramic image and can be divided into two links of the creation of the display board and the arrangement of the exhibits. The two stages can respectively finish different operation contents, clearly define the operation boundaries of two work types of display position customization and exhibit parameter editing, and the two operation links can be distributed to two batches of operators with different authorities to finish the two work types, so that the complexity of generating, arranging and editing the multimedia elements is reduced.
The exhibit arrangement stage can create exhibits on the display board, such as creating text content, picture content, animation content, video content or three-dimensional model content, and the like, and set interactive click actions of the multimedia element hot spots, such as opening a new window or popping up a detail window.
The display board is created based on three-dimensional planes under a three-dimensional rectangular coordinate system, namely a horizontal display board, a front display board and a side display board. The user can adjust the width, height, horizontal offset and vertical offset of each display board. According to the embodiment of the invention, the positions of the display board and the exhibits can be adjusted under the rectangular coordinate system, and the natural posture adjustment and matching can be realized by arranging the exhibits on the object in the panoramic image.
The embodiment creates a new multimedia element spatial position arrangement method, simplifies the adjustment of the attitude parameters according to the requirements of the display picture, realizes simple and light adjustment, and realizes a method for dynamically generating and arranging multimedia elements by using a series of methods and steps.
Referring to fig. 2, a method for editing an object in a panoramic image according to a second embodiment of the present invention includes steps S21 ~ S30.
And step S21, obtaining a display board type parameter selected by a user through a display board creation window, and obtaining the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of the local three-dimensional rectangular coordinate model of the view center point.
The display board is arranged through a display board creation window provided by a computer system. When a user needs to set a panoramic VR scene, the user opens a display board creation window, and three functional items are displayed on the window and are respectively used for creating a display board, editing the display board and managing the display board. The display board creating function is provided with three types of display boards which can be created, namely a horizontal display board creating function, a front display board creating function and a side display board creating function, and the window is further provided with an option for closing the creating function. The editing display board is used for adjusting the width, height, horizontal displacement and vertical displacement of the display board. The management panel function comprises panel deletion, panel emptying, panel loading test and panel storage, and the management panel function is respectively used for deleting the selected panel, emptying all panels, loading the panels, testing and storing the created panels.
The horizontal plane display board, the front display board and the side display board respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a central point of a visual field, and the visual angle direction of an observer in a three-dimensional space can be determined through the three types of display boards, for example, the horizontal plane display board refers to a surface sheet parallel to a horizontal plane below or above the observer; the front panel is a surface patch on the plumb bob surface which is right in front of the sight of an observer and is vertical to the horizontal projection of the sight of the observer; the viewer's line of sight and a perpendicular line perpendicular to the viewer's line of sight form a side, and the side panel is a facet parallel to the side. The user may select a location in the panoramic image to create one of the types of panels.
Step S22, determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters, and creating a patch with a preset size according to the view angle position and the position coordinates to serve as the display board.
Step S23, obtaining a first adjusting parameter for the display board, and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
When the system obtains a position point selected by a user and a panel type parameter, a panel in the visual angle direction is established on the position coordinate point, and the established panel is used as the established panel. In particular, the user can click on the panoramic image through a mouse to determine the position point created by the display board. The size of the patch is preset, for example, the patch can be square, and the size is 2cm by 3cm, the effect of the patch is rendered based on the sphere coordinate and rectangular coordinate transformation model, the color of the patch filling can be preset, for example, gray, and a certain transparency can also be set. For example, as shown in fig. 3, a horizontal surface display board, a front display board, and a side display board are created at position A, B, C in the panorama, respectively.
And step S24, acquiring the target display board selected by the user, and acquiring the type of the exhibit selected by the user through the exhibit arrangement window.
The user can select one display board from the created display boards as a target display board for bearing the exhibits. And creating an exhibit on an exhibit placement window provided by the system, the type of the exhibit in this embodiment may include text, animation, video, and model. The system provides a creation operation window for each type of exhibit, and a user can create a corresponding exhibit from one operation window.
And step S25, when the exhibit is a text, acquiring the text background, posture setting and text setting information selected by the user through the text creation window, and creating the text on the target exhibit according to the acquired information.
In the text creation window, the system may provide a plurality of default text contexts, one of which is selected by the user, and which may also be uploaded by the user at his or her discretion. Gesture settings are interactive actions that set the text, such as an animated gesture of erecting or zooming, wiggling, etc. when displayed. The text setting comprises the setting of content and format, and the text in the embodiment supports the html format, so that the user can watch the text conveniently. And after the system acquires the information set by the user from the text creation window, generating a text on the target display board.
And step S26, when the exhibit is animation, acquiring the animation style and the posture setting information selected by the user through the animation creating window, and creating animation on the target exhibit according to the acquired information.
In the animation creation window, animation styles can also be provided through the system, and the user can select one of the animation styles or upload the animation styles from other storage addresses. Gesture settings are interactive actions that set the text, such as an animated gesture of erecting or zooming, wiggling, etc. when displayed. And after the system acquires the information set by the user from the animation creating window, generating the animation on the target display board.
And step S27, when the exhibit is a video, acquiring a video file selected by a user, a display scale parameter of the video and posture setting information through a video creating window, and creating the video on the target display board according to the acquired information.
In the video creation window, the video file can be a default video file provided by the system, and can also be uploaded from other storage addresses. In addition, the video creation window provides an adjustment button of a video display scale parameter, by which a user can adjust the display size of the video file.
And step S28, when the exhibit is the model, obtaining the model file and the model display size information selected by the user through the model creating window, and creating the model on the target display board according to the obtained information.
Under the model creating window, the system provides a plurality of default three-dimensional models and an interface for uploading three-dimensional model files, so that a user can upload the three-dimensional model files by himself. In addition, the model creation window provides an adjustment button for the thumbnail display scale, and an adjustment button for the model display size.
Step S29, obtaining a second adjusting parameter aiming at the exhibit, and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
The button of width, height, horizontal offset and vertical offset on the window is arranged to the showpiece accessible showpiece to adjust the size and the position of showpiece. The adjustment method is the same as that of the display board, and is not described herein.
Step S30, a target exhibit selected by a user is obtained through the exhibit interaction window, a hot spot editing parameter is obtained, and a hot spot is created for the target exhibit according to the obtained hot spot editing parameter.
In this embodiment, the hot spot refers to an exhibit to which interactive operations such as clicking and the like are bound, and the clicking action can be set to change the position and color of the exhibit, start an animation, and even jump to a new page. The system provides an exhibit interaction window, and a user can create a hot spot for any exhibit from the window and set hot spot editing parameters through a parameter editing button. And when the system acquires the exhibit selected by the user and the hot spot editing parameters, creating a hot spot on the exhibit.
Referring to fig. 4, a system for editing an object in a panoramic image according to a third embodiment of the present invention includes:
the acquisition module 10 is configured to acquire a parameter of a display board type selected by a user through a display board creation window, and acquire a position coordinate of a display board to be created in the panoramic image, where the display board type includes a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of the local three-dimensional rectangular coordinate model of the view center point;
a display board creating module 20, configured to create a display board according to the display board type and the position coordinates;
the first adjusting module 30 is configured to obtain a first adjusting parameter for the display board, and adjust the display board according to the first adjusting parameter, where the first adjusting parameter includes at least one of a width, a height, a horizontal offset, and a vertical offset;
the exhibit creating module 40 is configured to create an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, where the exhibit is any one of a text, an animation, a video, and a model;
and the second adjusting module 50 is configured to obtain a second adjusting parameter for the exhibit, and adjust the exhibit according to the second adjusting parameter, where the second adjusting parameter includes at least one of a width, a height, a horizontal offset, and a vertical offset.
Further, in the editing system, the panel creating module is specifically configured to:
determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters;
and creating a surface patch with a preset size according to the visual angle position and the position coordinate to be used as a display board.
Further, in the editing system, when the first adjustment parameter is a width parameter, the step of adjusting the display board according to the first adjustment parameter includes:
scaling the width of the display board according to the width parameter;
when the first adjusting parameter is a height parameter, the step of adjusting the display board according to the first adjusting parameter comprises:
scaling the height of the display board according to the height parameter; when the first adjusting parameter is a horizontal offset, the step of adjusting the display board according to the first adjusting parameter comprises:
shifting the display board in the horizontal direction by the horizontal offset amount;
when the first adjusting parameter is a vertical offset, the step of adjusting the display board according to the first adjusting parameter includes:
and shifting the display board by the vertical offset in the vertical direction.
Further, the editing system further includes:
and the hot spot creation module 60 is configured to obtain a target exhibit selected by a user through the exhibit interaction window, obtain a hot spot editing parameter, and create a hot spot for the target exhibit according to the obtained hot spot editing parameter.
The editing system provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for brief description, reference may be made to corresponding contents in the method embodiments for the fact that no part of the system embodiments is mentioned.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the editing method described above.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (8)
1. A method for editing an object in a panoramic image, comprising:
acquiring a display board type parameter selected by a user through a display board creation window, and acquiring the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a view center point;
determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters;
creating a surface patch with a preset size according to the visual angle position and the position coordinate to serve as a display board;
acquiring a first adjusting parameter aiming at the display board, and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset;
creating an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, wherein the exhibit is any one of a text, an animation, a video and a model;
and acquiring a second adjusting parameter aiming at the exhibit, and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
2. The editing method of claim 1, wherein when the first adjustment parameter is a width parameter, the step of adjusting the display board according to the first adjustment parameter comprises:
scaling the width of the display board according to the width parameter;
when the first adjusting parameter is a height parameter, the step of adjusting the display board according to the first adjusting parameter comprises:
scaling the height of the display board according to the height parameter;
when the first adjusting parameter is a horizontal offset, the step of adjusting the display board according to the first adjusting parameter comprises:
shifting the display board in the horizontal direction by the horizontal offset amount;
when the first adjusting parameter is a vertical offset, the step of adjusting the display board according to the first adjusting parameter includes:
and shifting the display board by the vertical offset in the vertical direction.
3. The editing method of claim 1, wherein the step of creating an exhibit on a target exhibit selected by a user through the exhibit layout window comprises:
acquiring a target display board selected by a user, and acquiring the type of an exhibit selected by the user through an exhibit arrangement window;
when the exhibit is a text, acquiring the text background, posture setting and text setting information selected by a user through a text creating window, and creating the text on the target exhibit according to the acquired information, or,
when the exhibit is animation, the animation style and the posture setting information selected by the user are obtained through the animation establishing window, animation is established on the target exhibit according to the obtained information, or,
when the exhibit is a video, acquiring a video file selected by a user, a display scale parameter of the video and posture setting information through a video creating window, creating the video on the target exhibition board according to the acquired information, or,
and when the exhibit is the model, obtaining the model file and the model display size information selected by the user through the model creation window, and creating the model on the target display board according to the obtained information.
4. The editing method of claim 1, wherein the step of creating an exhibit on a target exhibit selected by a user through the exhibit layout window further comprises, after the step of:
and acquiring a target exhibit selected by a user through the exhibit interaction window, acquiring a hot spot editing parameter, and creating a hot spot for the target exhibit according to the acquired hot spot editing parameter.
5. A system for editing an object in a panoramic image, comprising:
the acquisition module is used for acquiring a display board type parameter selected by a user through a display board creation window and acquiring the position coordinate of a display board to be created in the panoramic image, wherein the display board type comprises a horizontal display board, a front display board and a side display board, and the display board types respectively correspond to three dimensional surfaces of a local three-dimensional rectangular coordinate model of a view center point;
the display board creating module is used for determining the view angle position of the display board to be created in the panoramic image according to the display board type parameters and creating a patch with a preset size according to the view angle position and the position coordinates to serve as a display board;
the first adjusting module is used for acquiring a first adjusting parameter aiming at the display board and adjusting the display board according to the first adjusting parameter, wherein the first adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset;
the system comprises an exhibit creating module, a display setting module and a display setting module, wherein the exhibit creating module is used for creating an exhibit on a target exhibit board selected by a user through an exhibit arrangement window, and the exhibit is any one of text, animation, video and models;
and the second adjusting module is used for acquiring a second adjusting parameter aiming at the exhibit and adjusting the exhibit according to the second adjusting parameter, wherein the second adjusting parameter comprises at least one of width, height, horizontal offset and vertical offset.
6. The editing system of claim 5, wherein when the first adjustment parameter is a width parameter, the step of adjusting the board according to the first adjustment parameter comprises:
scaling the width of the display board according to the width parameter;
when the first adjusting parameter is a height parameter, the step of adjusting the display board according to the first adjusting parameter comprises:
scaling the height of the display board according to the height parameter; when the first adjusting parameter is a horizontal offset, the step of adjusting the display board according to the first adjusting parameter comprises:
shifting the display board in the horizontal direction by the horizontal offset amount;
when the first adjusting parameter is a vertical offset, the step of adjusting the display board according to the first adjusting parameter includes:
and shifting the display board by the vertical offset in the vertical direction.
7. The editing system of claim 6, further comprising:
and the hot spot creation module is used for acquiring a target exhibit selected by a user through the exhibit interaction window, acquiring hot spot editing parameters and creating a hot spot for the target exhibit according to the acquired hot spot editing parameters.
8. A computer-readable storage medium, on which a program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910799475.4A CN110310375B (en) | 2019-08-28 | 2019-08-28 | Method and system for editing object in panoramic image and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910799475.4A CN110310375B (en) | 2019-08-28 | 2019-08-28 | Method and system for editing object in panoramic image and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110310375A CN110310375A (en) | 2019-10-08 |
CN110310375B true CN110310375B (en) | 2019-12-27 |
Family
ID=68083687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910799475.4A Active CN110310375B (en) | 2019-08-28 | 2019-08-28 | Method and system for editing object in panoramic image and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110310375B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833277A (en) * | 2017-10-16 | 2018-03-23 | 华南理工大学 | A kind of Panoramic Warping scene edit methods based on unity3D |
CN108961418A (en) * | 2018-06-06 | 2018-12-07 | 杭州亿间科技有限公司 | A kind of Knowledge Visualization interface system and method based on virtual three-dimensional space |
-
2019
- 2019-08-28 CN CN201910799475.4A patent/CN110310375B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833277A (en) * | 2017-10-16 | 2018-03-23 | 华南理工大学 | A kind of Panoramic Warping scene edit methods based on unity3D |
CN108961418A (en) * | 2018-06-06 | 2018-12-07 | 杭州亿间科技有限公司 | A kind of Knowledge Visualization interface system and method based on virtual three-dimensional space |
Also Published As
Publication number | Publication date |
---|---|
CN110310375A (en) | 2019-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10755485B2 (en) | Augmented reality product preview | |
US12079942B2 (en) | Augmented and virtual reality | |
US11257233B2 (en) | Volumetric depth video recording and playback | |
KR102638526B1 (en) | Modifying scenes in augmented reality using parameterized markers | |
US7965304B2 (en) | Image processing method and image processing apparatus | |
US10049493B1 (en) | System and methods for providing interaction with elements in a virtual architectural visualization | |
US8970586B2 (en) | Building controllable clairvoyance device in virtual world | |
US20140282220A1 (en) | Presenting object models in augmented reality images | |
US7068269B2 (en) | System and method for presenting three-dimensional data | |
CN109584295A (en) | The method, apparatus and system of automatic marking are carried out to target object in image | |
US10334221B2 (en) | Methods circuits devices systems and associated computer executable code for rendering a hybrid image frame | |
KR20120037400A (en) | Viewer-centric user interface for stereoscopic cinema | |
US10803630B2 (en) | Image processing system, method, and program | |
CN106683177A (en) | Data interactive method and device based on interactive roaming house decoration | |
EP2936442A1 (en) | Method and apparatus for adding annotations to a plenoptic light field | |
CN109741431B (en) | Two-dimensional and three-dimensional integrated electronic map frame | |
JP2018005499A (en) | Virtual space control device, control method of the same, and program | |
KR101875047B1 (en) | System and method for 3d modelling using photogrammetry | |
CN111311759B (en) | Mobile augmented reality video editing system | |
CN112800511B (en) | Home decoration material adjusting method and device, computer equipment and storage medium | |
CN110310375B (en) | Method and system for editing object in panoramic image and computer readable storage medium | |
EP2816521A1 (en) | Editing method of the three-dimensional shopping platform display interface for users | |
KR102622709B1 (en) | Method and Apparatus for generating 360 degree image including 3-dimensional virtual object based on 2-dimensional image | |
CN115904192A (en) | Interface display method and device, electronic equipment and readable storage medium | |
JP2024112624A (en) | Information processing device, method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |