CN113438541A - Viewpoint animation generation method, device, equipment and storage medium - Google Patents

Viewpoint animation generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113438541A
CN113438541A CN202110823670.3A CN202110823670A CN113438541A CN 113438541 A CN113438541 A CN 113438541A CN 202110823670 A CN202110823670 A CN 202110823670A CN 113438541 A CN113438541 A CN 113438541A
Authority
CN
China
Prior art keywords
information
viewpoint
json file
current
storing
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.)
Granted
Application number
CN202110823670.3A
Other languages
Chinese (zh)
Other versions
CN113438541B (en
Inventor
陈傲寒
魏新征
李鉴
王胡进
张赛飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youhao Technology Co ltd
Original Assignee
Beijing Younuo Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Younuo Technology Co ltd filed Critical Beijing Younuo Technology Co ltd
Priority to CN202110823670.3A priority Critical patent/CN113438541B/en
Publication of CN113438541A publication Critical patent/CN113438541A/en
Application granted granted Critical
Publication of CN113438541B publication Critical patent/CN113438541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440227Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by decomposing into layers, e.g. base layer and one or more enhancement layers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/816Monomedia components thereof involving special video data, e.g 3D video
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a viewpoint animation generating method, which comprises the steps of acquiring corresponding viewpoint information through a Rest interface according to a viewpoint animation to be generated, processing the viewpoint information, storing the viewpoint information into a JSON file, and storing a path of the JSON file into a database; and acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played. The invention does not need professional technicians to make the animation, simultaneously, the making process is simple, convenient and quick, and in addition, the video animation can change along with the modification of the scene, thereby improving the making efficiency. The invention also relates to a viewpoint animation generating device, equipment and a storage medium.

Description

Viewpoint animation generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a viewpoint animation.
Background
With the development of computer technology, three-dimensional animation is widely applied in the industries of product display, advertisement, film and television entertainment and the like, is not limited by time, space, place, condition and objects, represents complex and abstract program content, scientific principles, abstract concepts and the like in a centralized, simplified, visual and vivid manner by using various representation forms, and is a useful tool in a manner of simulating real objects by the three-dimensional animation technology, because of the accuracy, authenticity and operability, the three-dimensional animation technology is widely applied to various fields of medicine, education, military, entertainment and the like, and along with the continuous development of the three-dimensional image technology of a computer, the three-dimensional graphic technology is more and more emphasized by people, and the three-dimensional animation is more intuitive than a plane graph and can provide a sense of being personally on the scene for an observer,
the existing three-dimensional animation is applied to various industries, and in the existing three-dimensional animation production process, the production is complex, and professional personnel are required to operate, so that the production efficiency is influenced.
Disclosure of Invention
The invention aims to solve the technical problem of the prior art and provides a viewpoint animation generation method, a viewpoint animation generation device, viewpoint animation generation equipment and a storage medium.
The technical scheme for solving the technical problems is as follows:
a viewpoint animation generation method, the method comprising:
acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information, storing the viewpoint information into a JSON file, and storing a path of the JSON file into a database;
and acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the processing and saving the viewpoint information into a JSON file specifically includes:
intercepting and storing a view angle picture in the current view point information into a view point screenshot, and storing a storage address of the view point screenshot into the JSON file as a picture loading address;
storing the information of the current hierarchy in the current viewpoint information and the information of the current view camera in the 3D view angle into the JSON file;
determining operation information of panel information and operation information of layer information in the current viewpoint information, and storing the operation information of the panel information and the operation information of the layer information into the JSON file;
determining operation information of alarm information in the current viewpoint information, and storing the operation information of the alarm information into the JSON file;
determining a storage path of a sound file in the current viewpoint information, and storing the storage path of the sound file into the JSON file, wherein the sound playing time of the current viewpoint is the sum of the staying time and the flight time in the current viewpoint information;
and acquiring the playing sequence numbers of all the viewpoint information according to the saving sequence of the viewpoints in the page, and saving the playing sequence numbers to the JSON file.
Further, the acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played includes:
acquiring a path of the JSON file from the database according to the viewpoint animation name, and reading data in the JSON file through a Rest interface;
sequentially acquiring the current level of each viewpoint according to the playing sequence number, flying into each viewpoint picture, sequentially displaying the current layer, panel information, alarm information and inspection description information according to each viewpoint information stored in the JSON file, and playing the sound file;
and after comparing the played current viewpoint information with the next viewpoint information in the playing sequence number, playing the next viewpoint information until all the viewpoint information is played.
Further, after comparing the played current viewpoint information with the next viewpoint information in the playing sequence number, playing the next viewpoint information until all the viewpoint information is played, specifically including:
comparing the current hierarchy, the 3D view angle, the layer information, the panel information, and the warning information in the current viewpoint information with the current hierarchy, the 3D view angle, the layer information, the panel information, and the warning information in the next viewpoint information, respectively;
if the comparison result shows that different items exist, the next viewpoint information is played after the page information is modified;
otherwise, directly playing the next viewpoint information.
Further, the determining operation information of panel information and operation information of layer information in the current viewpoint information, and storing the operation information of the panel information and the operation information of the layer information into the JSON file specifically includes:
if the layer in the current viewpoint information needs to be opened, recording all layer information in the current viewpoint information, and storing all the layer information into the JSON file;
and if the object panel needs to be opened in the panel information, recording the object panel corresponding to the object, and storing the object panel into the JSON file.
Further, the determining operation information of the alarm information in the current viewpoint information and storing the operation information of the alarm information into the JSON file specifically includes:
and if the current viewpoint information needs to open an alarm switch, recording the alarm information corresponding to the object into the JSON file.
Further, the method further comprises:
when the data in the viewpoint animation is modified, modifying the corresponding data in the JSON file through a Rest interface;
and when the data in the viewpoint animation is deleted, deleting the corresponding data in the JSON file through a Rest interface.
The invention provides a viewpoint animation generation method, which comprises the steps of acquiring corresponding viewpoint information through a Rest interface according to a viewpoint animation to be generated, processing the viewpoint information, storing the viewpoint information into a JSON file, and storing a path of the JSON file into a database; and acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played. The invention does not need professional technicians to make the animation, simultaneously, the making process is simple, convenient and quick, and in addition, the video animation can change along with the modification of the scene, thereby improving the making efficiency.
The invention also solves another technical scheme of the technical problems as follows:
a viewpoint animation generation apparatus, the apparatus comprising:
the acquisition module is used for acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information and storing the viewpoint information into a JSON file, and then storing the path of the JSON file into a database;
and the playing module is used for acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file for playing until all the viewpoint information is played.
The invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores program instructions, and the processor executes the program instructions to execute the steps of the viewpoint animation generation method according to any one of the above technical solutions.
Furthermore, the present invention also provides a storage medium, in which computer program instructions are stored, and when the computer program instructions are executed by a processor, the steps in the viewpoint animation generation method according to any one of the above technical solutions are executed.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention or in the description of the prior art will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a viewpoint animation generation method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a viewpoint animation generation apparatus according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
Fig. 1 illustrates a viewpoint animation generating method according to an embodiment of the present invention, which includes the following steps:
110. and acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information, storing the processed viewpoint information into a JSON file, and storing the path of the JSON file into a database.
120. And acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played.
It should be understood that an RSET (resource representational state transfer) interface is used as an interface for interaction between the client and the server. Wherein, the resource refers to data; the expression form can be JSON, XML, JPEG and the like; state transitions may be implemented via HTTP. The REST interface accesses a certain service by using a client/server mode through an HTTP protocol, a URL (uniform resource locator) and parameters, completes a series of service requests, and performs operations such as addition, reading, updating, deletion, and the like. The REST interface can provide services for different platforms (e.g., android platform, apple platform). In addition, for platforms such as micro blogs and micro messages which do not need to be displayed at the front end, the REST interface can also provide services for the platforms.
A JSON (JavaScript Object Notation) format file is a lightweight data exchange format file, and is widely applied to a front end, a back end, a client end, and the like because of its characteristics of simple format, support of multiple development languages, small size, and the like. In the development process, related information such as resources, data and the like is configured in a JSON file and stored in a server. When the method is used, the JSON file of the server is pulled, and corresponding functions are performed according to the JSON content.
Specifically, the viewpoint animation data is obtained by collecting data through a Rest interface mode and performing warehousing processing, the collected data is stored in a JSON file, a JSON file storage path is stored in a database, and the collected data comprises animation information and viewpoint information. The collected animation information includes: animation ID, animation name, type. And the viewpoint information comprises a current viewpoint screenshot, a viewpoint ID, a viewpoint name, a scene to which the viewpoint belongs, a current level, a 3D visual angle, layer information, panel information, alarm information, dwell time, flight time, routing inspection instructions, a sound file and a playing sequence.
Further, the step 110 of processing the viewpoint information and then saving the viewpoint information into a JSON file specifically includes:
111. and intercepting and storing a view angle picture in the current view point information into a view point screenshot, and storing a storage address of the view point screenshot into the JSON file as a picture loading address.
112. And storing the information of the current hierarchy in the current viewpoint information and the information of the current view camera in the 3D view angle into the JSON file.
113. And determining operation information of panel information and operation information of layer information in the current viewpoint information, and storing the operation information of the panel information and the operation information of the layer information into the JSON file.
114. And determining operation information of the alarm information in the current viewpoint information, and storing the operation information of the alarm information into the JSON file.
115. And determining a storage path of the sound file in the current viewpoint information, and storing the storage path of the sound file into the JSON file, wherein the sound playing time of the current viewpoint is the sum of the staying time and the flight time in the current viewpoint information.
116. And acquiring the playing sequence numbers of all the viewpoint information according to the saving sequence of the viewpoints in the page, and saving the playing sequence numbers to the JSON file.
Further, step 120 specifically includes:
121. and acquiring the path of the JSON file from the database according to the viewpoint animation name, and reading the data in the JSON file through a Rest interface.
122. And sequentially acquiring the current level of each viewpoint according to the playing sequence number, flying into each viewpoint picture, sequentially displaying the current layer, panel information, alarm information and inspection description information according to each viewpoint information stored in the JSON file, and playing the sound file.
123. And after comparing the played current viewpoint information with the next viewpoint information in the playing sequence number, playing the next viewpoint information until all the viewpoint information is played.
Further, step 123 specifically includes:
comparing the current level, the 3D visual angle, the layer information, the panel information and the alarm information in the current viewpoint information with the current level, the 3D visual angle, the layer information, the panel information and the alarm information in the next viewpoint information respectively.
And if the comparison result shows that different items exist, the next viewpoint information is played after the page information is modified.
Otherwise, directly playing the next viewpoint information.
Further, step 113 specifically includes:
if the layer in the current viewpoint information needs to be opened, recording all layer information in the current viewpoint information, and storing all the layer information into the JSON file.
And if the object panel needs to be opened in the panel information, recording the object panel corresponding to the object, and storing the object panel into the JSON file.
Further, step 114 specifically includes:
and if the current viewpoint information needs to open an alarm switch, recording the alarm information corresponding to the object into the JSON file.
Further, the method further comprises:
and when the data in the viewpoint animation is modified, modifying the corresponding data in the JSON file through a Rest interface.
And when the data in the viewpoint animation is deleted, deleting the corresponding data in the JSON file through a Rest interface.
It should be appreciated that collecting multiple viewpoint information, for example, would be appended to JSON, where: the current viewpoint screenshot is to call a Rest interface, intercept an image64 format picture of a current viewpoint, store the picture in a server, finally store a picture loading address in a JSON file, and use the stored picture as a thumbnail display picture of the viewpoint.
The viewpoint ID and the viewpoint name are the ID and the page creation name which are automatically generated by the system when the viewpoint is created; the scene is the project name of the current viewpoint; the current level is a picture of the current viewpoint; the 3D visual angle is information of a current visual camera and comprises camera position parameters, a visual angle range and a distance range; and acquiring data through a Rest interface and saving the data into a JSON file.
The layer information is obtained by judging whether the layers under the current viewpoint are opened or not, and if the layers are opened, which layers are included are recorded into the JSON file. The panel information is recorded in the JSON file by judging whether the object panel is opened at the current viewpoint or not, and if the object panel is opened, which panel information of which object is opened. The warning information is recorded into the JSON file by judging whether a warning switch is turned on at the current viewpoint or not, and if the warning switch is turned on, displaying the warning information of which object and which level. And the retention time, the flight time and the inspection specification acquire information configured on the page through a Rest interface and store the information into a JSON file. And sound acquires a sound file path uploaded on the page through a Rest interface, and stores the sound file path into a JSON file, wherein the playing sound duration is the sum of the stay time and the flight time. And the playing sequence obtains the saving sequence of the page viewpoint through a Rest interface and records the saving sequence into a JSON file. And modifying the viewpoint animation data, and modifying animation information or saving viewpoint information, namely modifying data in the JSON file generated in the point 2 through a Rest interface. Deleting the viewpoint animation data, deleting animation information or saving viewpoint information, namely deleting data in the JSON file generated in the point 2 through a Rest interface.
For example, in the viewpoint animation data display, firstly, a path for generating the JSON file in the point 2 is acquired from the database according to the viewpoint animation name, and the data in the JSON file generated in the point 2 is read through the Rest interface. Firstly, judging whether a viewpoint exists in the current animation or not, and if not, giving prompt information; if the viewpoint exists, the current level of the first viewpoint is obtained firstly, the current level flies into the first viewpoint picture, and the picture layer, the panel, the alarm, the inspection description and the sound are displayed in sequence according to the first viewpoint information stored in the JSON file. After the first viewpoint is played, a second viewpoint is played, and according to second viewpoint information stored in the JSON file, the second viewpoint information is compared with the first viewpoint information to judge whether a next level, a 3D (three-dimensional) view angle, a layer, a panel and alarm data are changed or not, and if the second viewpoint information is not changed, the page is not changed; if a change occurs, only the modified page information is updated. And repeating the steps until the last viewpoint is played.
The viewpoint animation generation method provided based on the above embodiment includes acquiring, according to a viewpoint animation to be generated, corresponding viewpoint information through a Rest interface, processing the viewpoint information, storing the processed viewpoint information into a JSON file, and storing a path of the JSON file into a database; and acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played. The invention does not need professional technicians to make the animation, simultaneously, the making process is simple, convenient and quick, and in addition, the video animation can change along with the modification of the scene, thereby improving the making efficiency.
As shown in fig. 2, the viewpoint animation generation apparatus includes:
the acquisition module is used for acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information and storing the viewpoint information into a JSON file, and then storing the path of the JSON file into a database;
and the playing module is used for acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file for playing until all the viewpoint information is played.
The invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores program instructions, and the processor executes the program instructions to execute the steps of the viewpoint animation generation method according to any one of the above technical solutions.
Furthermore, the present invention also provides a storage medium, in which computer program instructions are stored, and when the computer program instructions are executed by a processor, the steps in the viewpoint animation generation method according to any one of the above technical solutions are executed.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A viewpoint animation generation method, characterized by comprising:
acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information, storing the viewpoint information into a JSON file, and storing a path of the JSON file into a database;
and acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file to play until all the viewpoint information is played.
2. The viewpoint animation generation method according to claim 1, wherein the storing the viewpoint information into a JSON file after processing specifically includes:
intercepting and storing a view angle picture in the current view point information into a view point screenshot, and storing a storage address of the view point screenshot into the JSON file as a picture loading address;
storing the information of the current hierarchy in the current viewpoint information and the information of the current view camera in the 3D view angle into the JSON file;
determining operation information of panel information and operation information of layer information in the current viewpoint information, and storing the operation information of the panel information and the operation information of the layer information into the JSON file;
determining operation information of alarm information in the current viewpoint information, and storing the operation information of the alarm information into the JSON file;
determining a storage path of a sound file in the current viewpoint information, and storing the storage path of the sound file into the JSON file, wherein the sound playing time of the current viewpoint is the sum of the staying time and the flight time in the current viewpoint information;
and acquiring the playing sequence numbers of all the viewpoint information according to the saving sequence of the viewpoints in the page, and saving the playing sequence numbers to the JSON file.
3. The viewpoint animation generation method according to claim 2, wherein the acquiring a path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring viewpoint information in the JSON file to play until all the viewpoint information is played includes:
acquiring a path of the JSON file from the database according to the viewpoint animation name, and reading data in the JSON file through a Rest interface;
sequentially acquiring the current level of each viewpoint according to the playing sequence number, flying into each viewpoint picture, sequentially displaying the current layer, panel information, alarm information and inspection description information according to each viewpoint information stored in the JSON file, and playing the sound file;
and after comparing the played current viewpoint information with the next viewpoint information in the playing sequence number, playing the next viewpoint information until all the viewpoint information is played.
4. The viewpoint animation generating method according to claim 3, wherein the step of playing the next viewpoint information after comparing the played current viewpoint information with the next viewpoint information in the playing sequence number until all the viewpoint information is played includes:
comparing the current hierarchy, the 3D view angle, the layer information, the panel information, and the warning information in the current viewpoint information with the current hierarchy, the 3D view angle, the layer information, the panel information, and the warning information in the next viewpoint information, respectively;
if the comparison result shows that different items exist, the next viewpoint information is played after the page information is modified;
otherwise, directly playing the next viewpoint information.
5. The viewpoint animation generation method according to any one of claims 2 to 4, wherein the determining operation information of panel information and operation information of layer information in the current viewpoint information, and saving the operation information of the panel information and the operation information of the layer information in the JSON file specifically includes:
if the layer in the current viewpoint information needs to be opened, recording all layer information in the current viewpoint information, and storing all the layer information into the JSON file;
and if the object panel needs to be opened in the panel information, recording the object panel corresponding to the object, and storing the object panel into the JSON file.
6. The viewpoint animation generating method according to claim 5, wherein the determining operation information of the warning information in the current viewpoint information and storing the operation information of the warning information in the JSON file specifically includes:
and if the current viewpoint information needs to open an alarm switch, recording the alarm information corresponding to the object into the JSON file.
7. The viewpoint animation generation method according to claim 6, further comprising:
when the data in the viewpoint animation is modified, modifying the corresponding data in the JSON file through a Rest interface;
and when the data in the viewpoint animation is deleted, deleting the corresponding data in the JSON file through a Rest interface.
8. A viewpoint animation generation apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring corresponding viewpoint information through a Rest interface according to the viewpoint animation to be generated, processing the viewpoint information and storing the viewpoint information into a JSON file, and then storing the path of the JSON file into a database;
and the playing module is used for acquiring the path of the JSON file from the database, reading the JSON file according to the path of the JSON file, and sequentially acquiring the viewpoint information in the JSON file for playing until all the viewpoint information is played.
9. An electronic device, comprising a memory having program instructions stored therein and a processor that, when executed, performs the steps of the viewpoint animation generation method according to any one of claims 1 to 7.
10. A storage medium having stored therein computer program instructions which, when executed by a processor, perform the steps of the viewpoint animation generation method as claimed in any one of claims 1 to 7.
CN202110823670.3A 2021-07-21 2021-07-21 Viewpoint animation generation method, device, equipment and storage medium Active CN113438541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110823670.3A CN113438541B (en) 2021-07-21 2021-07-21 Viewpoint animation generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110823670.3A CN113438541B (en) 2021-07-21 2021-07-21 Viewpoint animation generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113438541A true CN113438541A (en) 2021-09-24
CN113438541B CN113438541B (en) 2022-10-11

Family

ID=77761192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110823670.3A Active CN113438541B (en) 2021-07-21 2021-07-21 Viewpoint animation generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113438541B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5577175A (en) * 1993-08-06 1996-11-19 Matsushita Electric Industrial Co., Ltd. 3-dimensional animation generating apparatus and a method for generating a 3-dimensional animation
CN104700444A (en) * 2015-03-10 2015-06-10 上海鸿利数码科技有限公司 Achievement method of picture animation
CN108449409A (en) * 2018-03-16 2018-08-24 五八有限公司 Animation method for pushing, device, equipment and storage medium
CN112053420A (en) * 2020-09-04 2020-12-08 北京优锘科技有限公司 Method and system for generating dynamic editing viewpoint animation report

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5577175A (en) * 1993-08-06 1996-11-19 Matsushita Electric Industrial Co., Ltd. 3-dimensional animation generating apparatus and a method for generating a 3-dimensional animation
CN104700444A (en) * 2015-03-10 2015-06-10 上海鸿利数码科技有限公司 Achievement method of picture animation
CN108449409A (en) * 2018-03-16 2018-08-24 五八有限公司 Animation method for pushing, device, equipment and storage medium
CN112053420A (en) * 2020-09-04 2020-12-08 北京优锘科技有限公司 Method and system for generating dynamic editing viewpoint animation report

Also Published As

Publication number Publication date
CN113438541B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN110458918B (en) Method and device for outputting information
CN104219559B (en) Unobvious superposition is launched in video content
CN106846497B (en) Method and device for presenting three-dimensional map applied to terminal
CN108833787B (en) Method and apparatus for generating short video
CN108876887B (en) Rendering method and device
CN112954450B (en) Video processing method and device, electronic equipment and storage medium
CN105635712A (en) Augmented-reality-based real-time video recording method and recording equipment
CN108776917B (en) Synchronous processing method and device for virtual three-dimensional space
CN114373047B (en) Method, device and storage medium for monitoring physical world based on digital twin
CN108880983B (en) Real-time voice processing method and device for virtual three-dimensional space
CN110120087B (en) Label marking method and device for three-dimensional virtual sand table and terminal equipment
CN108765084B (en) Synchronous processing method and device for virtual three-dimensional space
CN112287168A (en) Method and apparatus for generating video
CN108597034B (en) Method and apparatus for generating information
CN108604389A (en) continuous depth ordering image synthesis
CN113178017A (en) AR data display method and device, electronic equipment and storage medium
CN111951385A (en) Enterprise display method and device
CN113438541B (en) Viewpoint animation generation method, device, equipment and storage medium
CN109816791B (en) Method and apparatus for generating information
CN113254000B (en) Method, device, storage medium and equipment for generating 2D scene based on JSON data
CN110119721B (en) Method and apparatus for processing information
CN111580809A (en) Visual webgl framework construction method and device and computer equipment
CN115640044B (en) Unity-based three-dimensional software development method, device, equipment and medium
CN110662099A (en) Method and device for displaying bullet screen
CN114707680B (en) Aircraft 3D model generation method and device, electronic equipment and readable medium

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 105, first floor, building 82, No. 10, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Youhao Technology Co.,Ltd.

Country or region after: China

Address before: Room 105, first floor, building 82, No. 10, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before: BEIJING YOUNUO TECHNOLOGY Co.,Ltd.

Country or region before: China