CN113688341B - Dynamic picture decomposition method and device, electronic equipment and readable storage medium - Google Patents

Dynamic picture decomposition method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113688341B
CN113688341B CN202111237303.1A CN202111237303A CN113688341B CN 113688341 B CN113688341 B CN 113688341B CN 202111237303 A CN202111237303 A CN 202111237303A CN 113688341 B CN113688341 B CN 113688341B
Authority
CN
China
Prior art keywords
picture
dynamic picture
decomposed
dynamic
decomposition
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
Application number
CN202111237303.1A
Other languages
Chinese (zh)
Other versions
CN113688341A (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.)
Shenzhen Mingyuanyun Space E Commerce Co ltd
Original Assignee
Shenzhen Mingyuanyun Space E Commerce 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 Shenzhen Mingyuanyun Space E Commerce Co ltd filed Critical Shenzhen Mingyuanyun Space E Commerce Co ltd
Priority to CN202111237303.1A priority Critical patent/CN113688341B/en
Publication of CN113688341A publication Critical patent/CN113688341A/en
Application granted granted Critical
Publication of CN113688341B publication Critical patent/CN113688341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a dynamic picture decomposition method, a dynamic picture decomposition device, an electronic device and a readable storage medium, wherein the dynamic picture decomposition method comprises the following steps: when a dynamic picture decomposition request is received, displaying an extended program operation panel according to the dynamic picture decomposition request; acquiring a dynamic picture to be decomposed, which is loaded into the extended program operation panel by the browser; acquiring a dynamic picture to be decomposed loaded by a browser; decomposing the dynamic picture to be decomposed into a picture array set; and traversing the picture array set and generating a single-frame static picture set. The technical problem that the dynamic picture decomposition operation process is complex in the prior art is solved.

Description

Dynamic picture decomposition method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a dynamic image decomposition method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid development of the internet, a dynamic picture gradually becomes a new artistic form, and is more and more popular, with the higher visual requirement and sensory experience of people on the dynamic picture, the stronger and stronger demand for creating the dynamic picture is achieved, and then a lot of websites, application software, application programs and the like for making the dynamic picture are developed, when secondary creation is performed on the favorite dynamic picture or a certain frame of picture is required to be obtained as a material or personalized application, the dynamic picture is often required to be decomposed, but in the prior art, a series of operations such as picture downloading, picture uploading, website logging, software downloading and the like are required, so that the operation process for decomposing the dynamic picture by applying the prior art is complicated.
Disclosure of Invention
The present application mainly aims to provide a dynamic picture decomposition method, an apparatus, an electronic device, and a readable storage medium, and aims to solve the technical problem in the prior art that the dynamic picture decomposition operation process is complicated.
In order to achieve the above object, the present application provides a dynamic picture decomposition method, including:
when a dynamic picture decomposition request is received, displaying an extended program operation panel according to the dynamic picture decomposition request;
acquiring a dynamic picture to be decomposed, which is loaded into the extended program operation panel by the browser;
decomposing the dynamic picture to be decomposed into a picture array set;
and traversing the picture array set and generating a single-frame static picture set.
The present application further provides a dynamic picture decomposition device, which is applied to a dynamic picture decomposition apparatus, the dynamic picture decomposition device including:
the extended program operation panel display module is used for displaying an extended program operation panel according to the dynamic picture decomposition request when the dynamic picture decomposition request is received;
the dynamic picture to be decomposed acquiring module is used for acquiring the dynamic picture to be decomposed loaded into the extended program operation panel by the browser;
the to-be-decomposed dynamic picture decomposition module is used for decomposing the to-be-decomposed dynamic picture into a picture array set;
and the single-frame static picture generating module is used for traversing the picture array set and generating a single-frame static picture set.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the motion picture decomposition method stored on the memory and executable on the processor, which program, when executed by the processor, is capable of implementing the steps of the motion picture decomposition method as described above.
The present application further provides a readable storage medium, which is a computer readable storage medium, on which a program for implementing a motion picture decomposition method is stored, and when executed by a processor, the program for implementing the motion picture decomposition method implements the steps of the motion picture decomposition method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the motion picture decomposition method as described above.
The application provides a dynamic picture decomposition method, a dynamic picture decomposition device, an electronic device and a readable storage medium, which are characterized in that firstly, when a dynamic picture decomposition request is received, an extended program operation panel is displayed according to the dynamic picture decomposition request to obtain a dynamic picture to be decomposed loaded by a browser, so that the dynamic picture to be decomposed in a webpage opened by the browser is directly loaded into the extended program operation panel according to the dynamic picture decomposition requirement of a user detected by the browser, a series of operation steps of obtaining the dynamic picture to be decomposed, such as downloading the dynamic picture to be decomposed, storing the dynamic picture to be decomposed and uploading the dynamic picture to be decomposed in the prior art, are simplified, and the dynamic picture to be decomposed is decomposed into a picture array set, so that the dynamic picture to be decomposed is decomposed under the condition of not depending on a network, and the phenomenon that the dynamic picture decomposition process is blocked due to a large amount of network interaction is avoided, The operation time and the operation steps of decomposing the dynamic picture by the user are increased under the conditions of delay or failure and the like, and then the single-frame static picture is generated by traversing the picture array set, so that the conversion from the dynamic picture to be decomposed to the single-frame static picture is realized, the technical problem of complicated operation process of decomposing the dynamic picture in the prior art is solved, and the operation process of decomposing the dynamic picture by the user is effectively simplified.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart illustrating a first embodiment of a motion picture decomposition method according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a motion picture decomposition method according to the present application;
FIG. 3 is a flowchart illustrating a dynamic picture decomposition method according to a third embodiment of the present application;
fig. 4 is a schematic device structure diagram of a hardware operating environment related to a motion picture decomposition method in the embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
With the rapid development of the internet, a dynamic picture gradually becomes a new artistic form, and is more and more popular, with the visual requirement and the sensory experience of people on the dynamic picture being higher and higher, the demand of people on the creation of the dynamic picture is stronger and stronger, and a lot of websites, application software, application programs and the like for making the dynamic picture are further developed, when secondary creation is performed on the favorite dynamic picture or one frame of picture is required to be obtained as a material or personalized application, the dynamic picture is often required to be decomposed, but if the application software or the application program is used for decomposition, the corresponding application software or the application program is required to be downloaded firstly, if the decomposition is performed through the website, a specific website is required to be opened every time, and no matter what kind of the prior art is, a series of operations of downloading the dynamic picture to be decomposed, uploading the dynamic picture to be decomposed, and even possibly uploading a server and the like are required to be executed, the operation process of decomposing the dynamic picture by applying the prior art is more complicated.
In a first embodiment of the dynamic picture decomposition method according to the present application, referring to fig. 1, the dynamic picture decomposition method includes:
step S10, when a dynamic picture decomposition request is received, displaying an extended program operation panel according to the dynamic picture decomposition request;
in this embodiment, it should be noted that the execution main body of this embodiment is a dynamic picture decomposition plug-in, and is mounted on the browser end in a plug-in form, which not only utilizes the characteristic that the browser plug-in can execute a JavaScript script, but also realizes dynamic picture decomposition without a network, effectively reduces the dependence on the network, and can directly acquire a dynamic picture to be decomposed through the browser, thereby reducing the manual operation processes of uploading and downloading and the picture transmission process, greatly reducing network interaction, and simplifying the operation process of decomposing the dynamic picture by a user.
Specifically, the browser sends a dynamic picture decomposition request to the dynamic picture decomposition plug-in by detecting trigger operation of a related control on a browser interface, the dynamic picture decomposition plug-in sends an enabling instruction of an extended program panel of the dynamic picture decomposition plug-in to the browser according to the dynamic picture decomposition request, and the browser displays the extended program operation panel according to the enabling instruction, wherein the extended program operation panel is an operation interface of the dynamic picture decomposition plug-in and is used for obtaining target operation (such as decomposing the dynamic picture, selecting a storage address, selecting a decomposed single-frame static picture, editing the decomposed single-frame static picture and/or storing the decomposed single-frame static picture and the like) of the dynamic picture loaded in the plug-in by a user and/or displaying the completion condition of each target operation (such as displaying a progress bar for decomposing the dynamic picture, displaying a progress bar for displaying the dynamic picture, and displaying the progress bar, Display the selected saved address and/or highlight the selected decomposed single-frame still picture, etc.), and the like.
Preferably, before the step of displaying the extended program operation panel according to the motion picture decomposition request when the motion picture decomposition request is received, the method further includes:
and generating an enabling control in the browser, and receiving a dynamic picture decomposition request which is generated and sent by the browser when the browser detects that a user triggers the enabling control.
In this embodiment, specifically, after the dynamic picture splitting plug-in is installed, an enabling control may be added in a toolbar of the browser or in an associated control of the dynamic picture, and the browser sends a dynamic picture splitting request to the dynamic picture tapping plug-in by detecting operations such as clicking or selecting the control, where the enabling control is used to open the extended program operation panel and may be in the form of a button control, a line operation control, a hidden button control, or the like.
Step S20, acquiring the dynamic picture to be decomposed loaded on the operation panel of the extension program by the browser;
specifically, a user selects a to-be-decomposed dynamic picture from a webpage opened by a browser or a local file address associated with the browser, the browser acquires the to-be-decomposed dynamic picture selected by the user through detecting user operation and loads the to-be-decomposed dynamic picture into an extension program operation panel of a dynamic picture decomposition plug-in, so that the user can perform subsequent decomposition, editing and/or storage on the to-be-decomposed dynamic picture through the extension program operation panel, and the plug-in acquires the to-be-decomposed dynamic picture loaded into the extension program operation panel by the browser, wherein the to-be-decomposed dynamic picture refers to a picture which generates a certain dynamic effect when a group of specific static pictures are switched at a specified frequency, and includes GIF (Graphics Interchange Format) pictures or f (shock wave flash) animations and the like, and the user selects the to-be-decomposed dynamic picture from the webpage opened by the browser, the browser can directly acquire URL (uniform resource locator) and HTML (Hyper Text Markup Language) elements of the browser, and further determine specific picture information, and the mode of selecting a dynamic picture to be decomposed by a user includes but is not limited to: when detecting that a mouse moves to a first dynamic picture, displaying a dynamic picture decomposition icon, and when a user clicks the dynamic picture decomposition icon, taking the first dynamic picture as a to-be-decomposed dynamic picture selected by the user; when detecting the right click operation of a second dynamic picture, adding a dynamic picture decomposition line operation in a displayed drop-down frame, and when a user clicks the dynamic picture decomposition line operation, taking the second dynamic picture as a dynamic picture to be decomposed selected by the user; and when detecting that a user selects a third dynamic picture from the local file address by dragging, clicking or selecting and the like in an extended program operation panel of the dynamic picture decomposition plug-in, taking the third dynamic picture as the dynamic picture to be decomposed selected by the user.
Step S30, decomposing the dynamic picture to be decomposed into a picture array set;
in this embodiment, specifically, a certain number of static pictures may be obtained by playing the to-be-decomposed dynamic picture and capturing the static pictures at preset times, so as to generate a picture array set composed of image data of the static pictures, or the to-be-decomposed dynamic picture may be converted into an image file, so as to perform re-encoding on the image file to obtain the picture array set including each frame of picture data, where the image file is an image sequence composed of a plurality of frames of correlated static images, and the static images are continuously played to form a group of animations, and are usually used to complete simple dynamic process demonstration, including a GIF file, a Flash file, and the picture array set is composed of image data of the static pictures at different times in the to-be-decomposed dynamic picture.
And step S40, traversing the picture array set and generating a single-frame static picture set.
In this embodiment, specifically, the picture array set is traversed to obtain image data of a still picture of each frame in a to-be-decomposed dynamic picture, and a single-frame still picture set composed of all single-frame still pictures is generated according to the image data, where the picture array set is composed of image data of still pictures at different times, the image data of each still picture has its own data structure, and the image data of the still pictures at different times in the picture array set can be decomposed by identifying feature data of the data structure.
Preferably, the step of generating a single-frame still picture set further comprises:
step A10, carrying out similarity calculation on any two single-frame static pictures in the single-frame static picture set;
in this embodiment, specifically, each single-frame still picture in the single-frame still picture set is subjected to similarity calculation with all other single-frame still pictures except for the single-frame still picture set, where the similarity calculation may be performed by resolution comparison, local feature extraction comparison, or an image processing technique based on deep learning, and the present embodiment is not limited in this embodiment.
Step A20, dividing the single-frame static pictures with similarity higher than a preset value into the same single-frame static picture group;
in this embodiment, specifically, all the single-frame static pictures in the single-frame static picture set are grouped according to the similarity, two single-frame static pictures with the similarity higher than a preset value are divided into a first single-frame static picture group, and other single-frame static pictures with the similarity higher than the preset value are also divided into the first single-frame static picture group, and after the grouping of the first single-frame static picture group is completed, the remaining single-frame static pictures are grouped according to the same method until all the single-frame static pictures in the single-frame static picture set have the single-frame static picture group to which the two single-frame static pictures belong.
Step A30, the single-frame static pictures are grouped, arranged and displayed according to the single-frame static picture group.
In this embodiment, specifically, all the single-frame still picture groups are displayed in the extended program operation panel, and the single-frame still pictures belonging to different single-frame still picture groups are respectively arranged in the display areas of the corresponding single-frame still picture groups, where the arrangement and display manners include, but are not limited to: arranging single-frame static picture groups according to rows, and arranging single-frame static pictures of the same single-frame static picture group in the same row for display; arranging the single-frame static pictures of the same single-frame static picture group in a secondary menu, wherein the primary menu only selects one single-frame static picture in the group to display.
Preferably, the step of generating a single-frame still picture set further comprises:
and when a storage instruction is received, acquiring a target single-frame static picture selected from the single-frame static picture set by a user, and storing the target single-frame static picture.
In this embodiment, specifically, in this embodiment, when receiving a saving instruction sent according to a detected user operation, acquiring one or more target single-frame still pictures selected by a user from the single-frame still picture set and a saving address corresponding to the target single-frame still picture selected by the user or defaulted by the system, and further saving the target single-frame still pictures to the saving address, where the user operation used for the sent saving instruction includes an operation on a browser interface or an operation on an extended program operation panel, for example: clicking a save button according to the popup content of the browser or clicking the save button in an operation panel of the extension program, and the like; the single-frame static picture can be displayed in the modes of pictures or characters (such as serial numbers, intercepting time, description of characters and the like) and the like for a user to select, and the user further selects a target single-frame static picture through the operations of checking, full selection, deletion and the like; the default storage address is preset by the system, and the selection and/or modification of the storage address can be prompted to the user through a popup window or an extended program operation panel.
In another practical way, the target single-frame still picture may be saved in a copy form, that is, the target single-frame still picture is saved in the clipboard, and then the single-frame still picture in the clipboard is directly pasted and used, for example, pasted to a document, a picture, an application program, and the like.
In this embodiment, by obtaining the target single-frame still picture selected by the user in advance, the storage amount can be effectively reduced, the storage space is saved, unnecessary clearing operation on the unnecessary still picture after storage can be reduced, and the operation process of decomposing the dynamic picture by the user is effectively simplified.
In the embodiment, the characteristic that the browser plug-in can execute the JavaScript is utilized, the dynamic picture disassembly under the condition of no network is realized, the dependence on the network is effectively reduced, the dynamic picture to be disassembled can be directly obtained through the browser, the manual operation process of uploading and downloading and the picture transmission process are reduced, the network interaction is greatly reduced, the dynamic picture to be disassembled loaded in the browser is obtained by displaying the extended program operation panel according to the dynamic picture disassembly request when the dynamic picture disassembly request is received, the dynamic picture to be disassembled in the webpage opened by the browser is directly loaded into the extended program operation panel according to the dynamic picture disassembly requirement of the user detected by the browser, and a series of operation steps of obtaining the dynamic picture to be disassembled, such as downloading the dynamic picture to be disassembled, saving the dynamic picture to be disassembled and uploading the dynamic picture to be disassembled in the prior art are simplified, and then through will wait to decompose the dynamic picture and decompose into the picture array set, realized not relying on the network the dynamic picture to decompose under the circumstances, avoided because a large amount of network interaction lead to dynamic picture decomposition process appear card pause, delay or fail the situation such as increase user decompose the operating time and the operation step of dynamic picture, and then through traversing the picture array set, and generate the single frame static picture, realized waiting to decompose the conversion of dynamic picture to the single frame static picture, overcome the loaded down with trivial details technical problem of dynamic picture decomposition operation process among the prior art, effectively simplified the operation process that the user decomposed the dynamic picture.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, the step of decomposing the dynamic picture to be decomposed into a picture array set comprises:
step S311, acquiring the data stream of the dynamic picture to be decomposed;
in this embodiment, specifically, the data stream of the to-be-decomposed moving picture is obtained by a method of Uint8 clipped Array or Uint8Array, where the data stream is a set of ordered data sequences having starting and ending bytes, and includes a logical screen identifier, an image block, an extension block, and the like.
Step S312, determining the frame number and the frame rate of the dynamic picture to be decomposed according to the data stream;
in this embodiment, specifically, byte information of a preset number of bits of a data stream is obtained by a charCodeAt () & 0xFF method, and then the byte information is operated by < 8-bit operation, so as to determine the frame number and the frame rate of the to-be-decomposed dynamic picture.
And step 313, decomposing the dynamic picture to be decomposed into a picture array set according to the frame rate and the frame number.
In this embodiment, specifically, a certain number of static pictures may be obtained in a manner of playing the to-be-decomposed dynamic picture and capturing the static pictures at a preset time according to the frame rate and the frame number, so as to generate a picture array set composed of image data of the static pictures, or the to-be-decomposed dynamic picture may be drawn on a canvas through a picture tag, and then the first to-be-decomposed dynamic picture instance is traversed according to the frame rate and the frame rate to obtain the picture array set, where the canvas is a tag newly added in HTML5, and is used for generating an image in real time on a web page, and may operate image content, and is basically a bitmap which may be operated by JavaScript, and after being drawn on the canvas, the bitmap may be rendered on an interface or may be only run in the background.
Preferably, the step of decomposing the to-be-decomposed dynamic picture into a picture array set according to the play speed and the frame number includes:
step S3131, generating a first picture label of the dynamic picture to be decomposed, and drawing the dynamic picture to be decomposed into a canvas according to the first picture label to obtain a first dynamic picture example to be decomposed;
in this embodiment, specifically, the length and width of the to-be-decomposed dynamic picture are determined according to the resolution or size information of the to-be-decomposed dynamic picture, a first picture tag of the to-be-decomposed dynamic picture is generated according to the length and width of the to-be-decomposed dynamic picture, and the to-be-decomposed dynamic picture is drawn into a canvas through the first picture tag, so as to obtain a first to-be-decomposed dynamic picture instance, where the first picture tag is a canvas tag and the canvas is a canvas.
Step S3132, taking the frame number as a total number of traversal, and traversing the first to-be-decomposed dynamic picture instance according to an interval time corresponding to the frame rate to obtain a picture array set.
In this embodiment, specifically, the interval time of the for loop is determined according to the frame rate and the length and width of the canvas tag, the number of the for loop is determined according to the frame number, the first to-be-decomposed dynamic picture instance is traversed according to the determined for loop, the image data of each frame of static picture is obtained by the getImageData method, and then the picture array set formed by the image data of each frame of static picture is obtained.
In this embodiment, the number of frames and the frame rate of the to-be-decomposed dynamic picture can be more accurately determined by acquiring the data stream, the to-be-decomposed dynamic picture is decomposed according to the number of frames and the frame rate, and the finally obtained single-frame static picture is closest to the material picture used for initially synthesizing the to-be-decomposed dynamic picture, so that the picture texture and the presentation effect of the finally obtained single-frame static picture are ensured, and the user experience is improved.
EXAMPLE III
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, the step of decomposing the dynamic picture to be decomposed into a picture array set comprises:
step S221, generating a second picture label of the dynamic picture to be decomposed;
in this embodiment, specifically, the length and width of the dynamic picture to be decomposed are determined according to the resolution or size information of the dynamic picture to be decomposed, and a second picture tag of the dynamic picture to be decomposed is generated according to the length and width of the dynamic picture to be decomposed, where the second picture tag is an img tag, and in an implementable manner, after the step of generating the second picture tag of the dynamic picture to be decomposed, the picture may be rendered into a preset interface according to the second picture tag, where the preset interface includes a display interface of a browser or a display interface of an extended program operation panel.
Step S322, adding the resource position attribute and the automatic playing attribute to the second picture tag to obtain a third picture tag;
in this embodiment, specifically, a resource position of the to-be-decomposed dynamic picture is obtained, a resource position attribute is generated according to the resource position, an automatic play attribute is generated according to a preset starting frame number, the resource position attribute and the automatic play attribute are added to the second picture tag, and a third picture tag is obtained, where the resource position includes a URL or a local file address, the resource position attribute includes rel: analyzed _ src, and the automatic play attribute includes rel: auto _ play.
Step S323, generating a second dynamic picture example to be decomposed according to the third picture label;
in this embodiment, specifically, a new dynamic picture instance is created according to the third picture tag, so as to obtain a second-generation decomposed dynamic picture instance.
In step S324, the motion picture decomposition script is called to decompose the second to-be-decomposed motion picture instance into a picture array set.
In this embodiment, specifically, a dynamic picture splitting script in a preset programming language library is called to split the second to-be-split dynamic picture instance into a picture array set, where the preset programming language library is a set of scripts required for processing a dynamic picture, and includes a giflib library, a gifView library, and/or a Glide library.
In this embodiment, by using the characteristic that the browser plug-in can execute the JavaScript script, the dynamic picture is decomposed by directly calling the script in the plug-in, and the existing script is effectively combined with the dynamic picture decomposition by the plug-in.
Example four
The embodiment of the present application further provides a dynamic picture decomposition device, where the dynamic picture decomposition device is applied to a dynamic picture decomposition device, and the dynamic picture decomposition device includes:
the extended program operation panel display module is used for displaying an extended program operation panel according to the dynamic picture decomposition request when the dynamic picture decomposition request is received;
the dynamic picture to be decomposed acquiring module is used for acquiring the dynamic picture to be decomposed loaded into the extended program operation panel by the browser;
the to-be-decomposed dynamic picture decomposition module is used for decomposing the to-be-decomposed dynamic picture into a picture array set;
and the single-frame static picture generating module is used for traversing the picture array set and generating a single-frame static picture set.
Optionally, the to-be-decomposed dynamic picture decomposition module is further configured to:
acquiring a data stream of the dynamic picture to be decomposed;
determining the frame number and the frame rate of the dynamic picture to be decomposed according to the data stream;
and decomposing the dynamic picture to be decomposed into a picture array set according to the frame rate and the frame number.
Optionally, the to-be-decomposed dynamic picture decomposition module is further configured to:
generating a first picture label of the dynamic picture to be decomposed, and drawing the dynamic picture to be decomposed into a canvas according to the first picture label to obtain a first dynamic picture example to be decomposed;
and traversing the first dynamic picture example to be decomposed according to the interval time corresponding to the frame rate by taking the frame number as the total traversal times to obtain a picture array set.
Optionally, the to-be-decomposed dynamic picture decomposition module is further configured to:
generating a second picture label of the dynamic picture to be decomposed;
adding the resource position attribute and the automatic playing attribute to the second picture tag to obtain a third picture tag;
generating a second dynamic picture example to be decomposed according to the third picture label;
and calling a dynamic picture decomposition script to decompose the second dynamic picture example to be decomposed into a picture array set.
Optionally, the single-frame still picture generation module is further configured to:
carrying out similarity calculation on any two single-frame static pictures in the single-frame static picture set;
dividing the single-frame static pictures with the similarity higher than a preset value into the same single-frame static picture group;
and grouping, arranging and displaying the single-frame static pictures according to the single-frame static picture group.
Optionally, the extended program operation panel display module is further configured to:
and generating an enabling control in the browser, and receiving a dynamic picture decomposition request which is generated and sent by the browser when the browser detects that a user triggers the enabling control.
Optionally, the single-frame still picture generation module is further configured to:
and when a storage instruction is received, acquiring a target single-frame static picture selected from the single-frame static picture set by a user, and storing the target single-frame static picture.
The dynamic picture decomposition device provided by the invention adopts the dynamic picture decomposition method in the first embodiment or the second embodiment, and solves the technical problem that the dynamic picture decomposition operation process in the prior art is complicated. Compared with the prior art, the advantageous effects of the dynamic picture decomposition device provided by the embodiment of the present invention are the same as the advantageous effects of the dynamic picture decomposition method provided by the above embodiment, and other technical features of the dynamic picture decomposition device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
EXAMPLE five
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the motion picture decomposition method according to the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the dynamic picture decomposition method in the first embodiment or the second embodiment, so that the technical problem that the dynamic picture decomposition operation process is complicated in the prior art is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture decomposition method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of motion picture decomposition in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instruction for executing the dynamic picture decomposition method, and solves the technical problem that the dynamic picture decomposition operation process is complicated in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture decomposition method provided in the first embodiment or the second embodiment, and are not described herein again.
EXAMPLE seven
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the motion picture decomposition method as described above.
The computer program product solves the technical problem that the dynamic picture decomposition operation process is complex in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture decomposition method provided by the first embodiment or the second embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (7)

1. A dynamic picture decomposition method is characterized in that the dynamic picture decomposition method is applied to a dynamic picture decomposition plug-in, and the dynamic picture decomposition plug-in is mounted on a browser end so as to call a JavaScript script of the dynamic picture decomposition method to realize dynamic picture decomposition in a network-free communication state;
the dynamic picture decomposition method comprises the following steps:
when a dynamic picture decomposition request is received, displaying an extended program operation panel according to the dynamic picture decomposition request;
acquiring a to-be-decomposed dynamic picture loaded into the extended program operation panel by a browser, wherein the to-be-decomposed dynamic picture is acquired by the browser from a webpage opened by the browser through detecting user operation;
acquiring a data stream of the dynamic picture to be decomposed;
determining the frame number and the frame rate of the dynamic picture to be decomposed according to the data stream;
determining the length and the width of the dynamic picture to be decomposed according to the size information of the dynamic picture to be decomposed;
generating a first picture label of the dynamic picture to be decomposed according to the length and the width of the dynamic picture to be decomposed, and drawing the dynamic picture to be decomposed into a canvas according to the first picture label to obtain a first dynamic picture example to be decomposed;
determining interval time according to the frame rate and the length and width of the dynamic picture to be decomposed, traversing the first dynamic picture example to be decomposed according to the interval time by taking the frame number as the total number of traversal times, and obtaining a picture array set;
and traversing the picture array set and generating a single-frame static picture set.
2. The motion picture decomposition method as set forth in claim 1, wherein the step of generating the set of single-frame still pictures is followed by further comprising:
carrying out similarity calculation on any two single-frame static pictures in the single-frame static picture set;
dividing the single-frame static pictures with the similarity higher than a preset value into the same single-frame static picture group;
and grouping, arranging and displaying the single-frame static pictures according to the single-frame static picture group.
3. The motion picture decomposition method according to claim 1, wherein, when receiving the motion picture decomposition request, before the step of displaying the extended program operation panel according to the motion picture decomposition request, the method further comprises:
and generating an enabling control in the browser, and receiving a dynamic picture decomposition request which is generated and sent by the browser when the browser detects that a user triggers the enabling control.
4. The motion picture decomposition method as set forth in claim 1, wherein the step of generating the set of single-frame still pictures is followed by further comprising:
and when a storage instruction is received, acquiring a target single-frame static picture selected from the single-frame static picture set by a user, and storing the target single-frame static picture.
5. A motion picture decomposition apparatus for implementing the motion picture decomposition method according to claim 1, the motion picture decomposition apparatus comprising:
the extended program operation panel display module is used for displaying an extended program operation panel according to the dynamic picture decomposition request when the dynamic picture decomposition request is received;
the dynamic picture to be decomposed acquiring module is used for acquiring a dynamic picture to be decomposed loaded into the extended program operation panel by a browser, wherein the dynamic picture to be decomposed is acquired from a webpage opened by the browser by detecting user operation;
the dynamic picture to be decomposed decomposition module is used for acquiring a data stream of the dynamic picture to be decomposed, determining the frame number and the frame rate of the dynamic picture to be decomposed according to the data stream, determining the length and the width of the dynamic picture to be decomposed according to the size information of the dynamic picture to be decomposed, generating a first picture label of the dynamic picture to be decomposed according to the length and the width of the dynamic picture to be decomposed, drawing the dynamic picture to be decomposed into a canvas according to the first picture label to obtain a first dynamic picture example to be decomposed, determining interval time according to the frame rate and the length and the width of the dynamic picture to be decomposed, traversing the first dynamic picture example to be decomposed by taking the frame number as the total number of traversal times, and traversing the first dynamic picture example to be decomposed according to the interval time to obtain a picture array set;
and the single-frame static picture generating module is used for traversing the picture array set and generating a single-frame static picture set.
6. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the motion picture decomposition method according to any one of claims 1 to 4.
7. A readable storage medium having stored thereon a program for implementing a moving picture decomposition method, the program being executed by a processor to implement the steps of the moving picture decomposition method according to any one of claims 1 to 4.
CN202111237303.1A 2021-10-25 2021-10-25 Dynamic picture decomposition method and device, electronic equipment and readable storage medium Active CN113688341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111237303.1A CN113688341B (en) 2021-10-25 2021-10-25 Dynamic picture decomposition method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111237303.1A CN113688341B (en) 2021-10-25 2021-10-25 Dynamic picture decomposition method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113688341A CN113688341A (en) 2021-11-23
CN113688341B true CN113688341B (en) 2022-02-08

Family

ID=78587764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111237303.1A Active CN113688341B (en) 2021-10-25 2021-10-25 Dynamic picture decomposition method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113688341B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546231A (en) * 2022-02-24 2022-05-27 特赞(上海)信息科技有限公司 Image data collection method and device based on browser plug-in and storage medium
CN114942820A (en) * 2022-07-26 2022-08-26 深圳市明源云空间电子商务有限公司 Method and device for generating Sprite map, electronic equipment and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4300443B2 (en) * 2000-02-24 2009-07-22 ソニー株式会社 Imaging apparatus and method, and recording medium
KR100909669B1 (en) * 2009-05-13 2009-07-29 (주)디지탈아리아 How to Play Flash-based Video Content in Web Browsers of Mobile and Embedded Devices
CN102368196B (en) * 2011-10-02 2016-05-04 上海量明科技发展有限公司 Method, terminal and the system of customer end contents transmission window inediting dynamic picture
CN107436879A (en) * 2016-05-25 2017-12-05 广州市动景计算机科技有限公司 The loading method and loading system of a kind of dynamic picture
CN107610206A (en) * 2017-09-29 2018-01-19 北京金山安全软件有限公司 Dynamic picture processing method and device, storage medium and electronic equipment
US11418806B2 (en) * 2019-11-27 2022-08-16 Sony Interactive Entertainment Inc. Systems and methods for decoding and displaying image frames
CN112489183A (en) * 2020-11-26 2021-03-12 北京邮电大学 Unity 3D-based skeletal animation rendering method and system

Also Published As

Publication number Publication date
CN113688341A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11170159B1 (en) System and method for using a dynamic webpage editor
US9612715B2 (en) Real-time preview of uniform resource identifier addressable dynamic content
US9772978B2 (en) Touch input visualizations based on user interface context
CN104995601B (en) It is switched to the machine Web page application program and is switched away from from the machine Web page application program
CN113688341B (en) Dynamic picture decomposition method and device, electronic equipment and readable storage medium
US10878175B2 (en) Portlet display on portable computing devices
CN109918604A (en) Page drawing method, apparatus, equipment and storage medium
US20090085921A1 (en) Populate Web-Based Content Based on Space Availability
WO2020220773A1 (en) Method and apparatus for displaying picture preview information, electronic device and computer-readable storage medium
US20140282176A1 (en) Method and system of visualizing rendering data
CN106033361A (en) Method and device for showing application page, and method and device for updating application page data
CN110766772A (en) Flatter-based cross-platform poster manufacturing method, device and equipment
CN114357345A (en) Picture processing method and device, electronic equipment and computer readable storage medium
US9430808B2 (en) Synchronization points for state information
US9646362B2 (en) Algorithm for improved zooming in data visualization components
CN103942202A (en) High self-adaptation zooming method and device for webpage text field
CN104156421A (en) Method, device and system for displaying page
CN113676677B (en) Dynamic picture synthesis method and device, electronic equipment and readable storage medium
EP3008697B1 (en) Coalescing graphics operations
CN111428452B (en) Annotation data storage method and device
CN112492399B (en) Information display method and device and electronic equipment
CN109992698B (en) Data processing method and device, electronic equipment and readable storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
WO2023202361A1 (en) Video generation method and apparatus, medium, and electronic device
CN109669589B (en) Document editing method and device

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