Movatterモバイル変換


[0]ホーム

URL:


CN109640186A - Picture playing method, equipment, storage medium and device - Google Patents

Picture playing method, equipment, storage medium and device
Download PDF

Info

Publication number
CN109640186A
CN109640186ACN201811254573.1ACN201811254573ACN109640186ACN 109640186 ACN109640186 ACN 109640186ACN 201811254573 ACN201811254573 ACN 201811254573ACN 109640186 ACN109640186 ACN 109640186A
Authority
CN
China
Prior art keywords
picture
playing
played
currently playing
time
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.)
Pending
Application number
CN201811254573.1A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co LtdfiledCriticalPing An Technology Shenzhen Co Ltd
Priority to CN201811254573.1ApriorityCriticalpatent/CN109640186A/en
Publication of CN109640186ApublicationCriticalpatent/CN109640186A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of picture playing method, equipment, storage medium and devices, this method comprises: obtaining currently playing serial number N, currently playing picture corresponding with currently playing serial number N is searched from preset group;Currently playing picture is played, record starts playing time;N obtain next broadcasting sequence number N+1 from adding one, next playing pictures corresponding with next broadcasting sequence number N+1 are searched from preset group;Judge whether currently playing picture with next playing pictures is to be associated with picture;According to judging result, the playing interval time is set;Current time is obtained, when the time difference between current time and beginning playing time is more than or equal to the playing interval time, plays next playing pictures.The relevance between picture is obtained based on image recognition, the corresponding playing interval time is arranged according to relevance, the strong picture of relevance is more consistently played, and realizes one group of picture dynamic play effect corresponding with relevance.

Description

Picture playing method, equipment, storage medium and device
Technical field
The present invention relates to technical field of image processing more particularly to a kind of picture playing method, equipment, storage medium and dressesIt sets.
Background technique
Currently, resource and cooperating management platform (Cooperation Management Platform, CMP) on networkUpper many pictures, if picture all shown, not sufficiently large position is shown, if selected part picture intoRow is shown, may miss some pictures with information, and usually picture only carries out static display, bandwagon effect is notIt is good.Therefore, how rationally show being urgently to be resolved to one group of picture in the resource and cooperating management platform on networkTechnical problem.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skillArt.
Summary of the invention
The main purpose of the present invention is to provide a kind of picture playing method, equipment, storage medium and devices, it is intended to solveThe bad technical problem of one group of picture bandwagon effect in the prior art in the resource and cooperating management platform on network.
To achieve the above object, the present invention provides a kind of picture playing method, and the picture playing method includes following stepIt is rapid:
Currently playing serial number N is obtained, it is to be played that corresponding with the currently playing serial number N first is searched from preset groupPicture, and using the described first picture to be played as currently playing picture, the N is the integer more than or equal to 0;
The currently playing picture is played, and records beginning playing time;
To N carry out from plus one, obtain next broadcasting sequence number N+1, from the preset group search with it is described nextCorresponding second picture to be played of broadcasting sequence number N+1, and using the described second picture to be played as next playing pictures;
Judge whether the currently playing picture with next playing pictures is to be associated with picture, obtains judging result;
According to the judging result, the playing interval time is set;
Current time is obtained, is more than or equal to when the time difference between the current time and the beginning playing timeWhen the playing interval time, next playing pictures are played.
Preferably, described to judge that whether the currently playing picture with next playing pictures is to be associated with picture, is obtainedObtain judging result, comprising:
Feature extraction is carried out to the currently playing picture and next playing pictures respectively, is obtained corresponding currentPicture feature and next picture feature;
According to the current image feature and next picture feature judge the currently playing picture with it is described underWhether one playing pictures is association picture, obtains judging result.
It is preferably, described that the playing interval time is arranged according to the judging result, comprising:
If the judging result is to be associated with picture with next playing pictures for the currently playing picture, it is arrangedThe playing interval time was the first interval time;
If the judging result is not to be associated with picture with next playing pictures for the currently playing picture, setSetting the playing interval time was the second interval time;
Wherein, first interval time is less than second interval time.
Preferably, described to play the currently playing picture, and record before starting playing time, the picture playing sideMethod further include:
It obtains a playing pictures and is playing the last time play position in the page;
The current size of the currently playing picture is calculated, and calculates a upper size for a upper playing pictures,Compare the current size and whether a upper size is consistent, obtains comparison result;
The currently playing picture is set in the broadcasting page according to the comparison result and the last time play positionIn current play position;
It is described to play the currently playing picture, and record beginning playing time, comprising:
The current play position in the broadcasting page plays the currently playing picture, and records and start to playMoment.
Preferably, described that the currently playing picture is arranged in institute according to the comparison result and the last time play positionState the current play position played in the page, comprising:
If the comparison result is that the current size and a upper size are inconsistent, according to the current sizePicture playing container size is adjusted, currently playing container size is obtained;
The currently playing picture is set described according to the last time play position and the currently playing container sizePlay the current play position in the page.
Preferably, described according to the last time play position and currently playing container size setting is described currently playingCurrent play position of the picture in the broadcasting page, comprising:
The central point for calculating the last time play position, using the central point of the last time play position as currently playing positionThe central point set;
According to the central point of the current play position and the currently playing container size, the currently playing figure is setThe current play position of the piece in the broadcasting page.
Preferably, described to obtain currently playing serial number N, it is searched from preset group corresponding with the currently playing serial number NThe first picture to be played, and using the described first picture to be played as currently playing picture before, the picture playing methodFurther include:
Creation plays the preset group of the page, the picture path of multiple pictures to be played is obtained, by each picture to be playedIt stores to the preset group in picture path;
Feature extraction is carried out to each picture to be played respectively, obtains corresponding picture feature to be played;
The relevance between each picture to be played is established according to the picture feature to be played;
The broadcasting sequence number of each picture to be played in the preset group is set according to the relevance between each picture to be played.
In addition, to achieve the above object, the present invention also proposes that a kind of picture playing equipment, the picture playing equipment includeMemory, processor and it is stored in the picture playing program that can be run on the memory and on the processor, the figurePiece playing program is arranged for carrying out the step of picture playing method as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, picture is stored on the storage mediumThe step of playing program, the picture playing program realizes picture playing method as described above when being executed by processor.
In addition, to achieve the above object, the present invention also proposes a kind of picture playing device, the picture playing device packetIt includes:
Module is obtained, for obtaining currently playing serial number N, is searched and N pairs of the currently playing serial number from preset groupFirst answered picture to be played, and using the described first picture to be played as currently playing picture, the N be more than or equal to0 integer;
Playing module for playing the currently playing picture, and records beginning playing time;
Searching module, for obtain next broadcasting sequence number N+1 from adding one, search from the preset group to NThe second picture to be played corresponding with the next broadcasting sequence number N+1, and using the described second picture to be played as nextPlaying pictures;
Whether judgment module is to be associated with picture for judging the currently playing picture with next playing pictures,Obtain judging result;
Setup module, for the playing interval time to be arranged according to the judging result;
The playing module is also used to obtain current time, when between the current time and the beginning playing timeTime difference when being more than or equal to the playing interval time, play next playing pictures.
In the present invention, by obtaining currently playing serial number N, searched and N pairs of the currently playing serial number from preset groupFirst answered picture to be played, and using the described first picture to be played as currently playing picture, play the currently playing figurePiece, and beginning playing time is recorded, N obtain next broadcasting sequence number N+1 from adding one, look into from the preset groupThe second picture to be played corresponding with the next broadcasting sequence number N+1 is looked for, and using the described second picture to be played as nextA playing pictures judge whether the currently playing picture with next playing pictures is to be associated with picture, obtain judgement knotFruit, is arranged the playing interval time according to the judging result, the relevance between picture is obtained based on image recognition, according to associationProperty setting corresponding playing interval time, picture stronger for relevance is arranged shorter interval time, more connected with realizingIt plays with passing through;Current time is obtained, when the time difference between the current time and the beginning playing time is greater than or waitsWhen the playing interval time, next playing pictures are played, play next picture automatically according to time interval, fromAnd realize one group of picture dynamic play effect corresponding with relevance.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the picture playing equipment for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of picture playing method first embodiment of the present invention;
Fig. 3 is the flow diagram of picture playing method second embodiment of the present invention;
Fig. 4 is the flow diagram of picture playing method 3rd embodiment of the present invention;
Fig. 5 is the structural block diagram of picture playing device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the picture playing device structure signal for the hardware running environment that the embodiment of the present invention is related toFigure.
As shown in Figure 1, the picture playing equipment may include: processor 1001, such as central processing unit (CentralProcessing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein,Communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen(Display), optional user interface 1003 can also include standard wireline interface and wireless interface, for user interface 1003Wireline interface in the present invention can be USB interface.Network interface 1004 optionally may include the wireline interface, wireless of standardInterface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the arbitrary access of high speedMemory (Random Access Memory, RAM) memory, is also possible to stable memory (Non-volatileMemory, NVM), such as magnetic disk storage.Memory 1005 optionally can also be the storage independently of aforementioned processor 1001Device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to picture playing equipment, it canTo include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage mediumBelieve module, Subscriber Interface Module SIM and picture playing program.
In picture playing equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, after describedPlatform server carries out data communication;User interface 1003 is mainly used for connecting user equipment;The picture playing equipment passes through placeReason device 1001 calls the picture playing program stored in memory 1005, and executes picture playing side provided in an embodiment of the present inventionMethod.
Based on above-mentioned hardware configuration, the embodiment of picture playing method of the present invention is proposed.
It is the flow diagram of picture playing method first embodiment of the present invention referring to Fig. 2, Fig. 2, proposes picture of the present inventionPlayback method first embodiment.
In the first embodiment, the picture playing method the following steps are included:
Step S10: obtaining currently playing serial number N, and corresponding with the currently playing serial number N the is searched from preset groupOne picture to be played, and using the described first picture to be played as currently playing picture, the N is whole more than or equal to 0Number.
It should be understood that the executing subject of the present embodiment is the picture playing equipment, wherein the picture playing equipmentIt can be the electronic equipments such as PC or server.A usually newly-built component is used to realize the effect of the broadcasting of picture, such asVue component, the component also can be applied in other frame, and other page can also be by transmitting the picture path to be playedTo the component, it was both able to achieve the effect of the broadcasting of picture.A preset group is defined in the page of the component, than in fullGroup imgList for putting picture path, while defining a label (mark) as currently playing serial number, usually can also determineAn adopted broadcasting speed, the picture path of the currently playing picture are that currently playing serial number described in the preset group is correspondingPicture path realize and play by the change combination timing function of mark value, the timing function realizes that control picture is broadcastSpeed is put, can be realized by the play time interval between setting picture.Each picture to be played is respectively provided with corresponding broadcastingSerial number, and being sequentially stored in the preset group according to the broadcasting sequence number by the picture path of the picture to be played,At the end of a upper playing pictures play, it can work as described in acquisition by the broadcasting sequence number of a upper playing pictures from adding onePreceding broadcasting sequence number N, the N are integer more than or equal to 0, then can be by the currently playing serial number N from the present countThe picture path that corresponding currently playing picture is found in group gets institute according to the picture path of the currently playing pictureState currently playing picture.Directly each picture to be played can also be directly deposited according to the sequence of the broadcasting sequence number described pre-If in array, then corresponding first picture to be played can be found from the preset group according to the currently playing serial number N,And using the described first picture to be played as the currently playing picture.
Step S20: the currently playing picture is played, and records beginning playing time.
It will be appreciated that get the currently playing picture, then it can be according to described in the broadcasting of pre-set broadcasting speedCurrently playing picture, the broadcasting speed can be realized by setting interval, for example, broadcasting speed is 1s/, can led toIt crosses when the currently playing picture starts to play, record starts playing time, when the play time of the currently playing pictureWhen difference with the beginning playing time is 1s, next playing pictures are played.
Step S30: N is carried out to obtain next broadcasting sequence number N+1 from adding one, lookup and institute from the preset groupCorresponding second picture to be played of next broadcasting sequence number N+1 is stated, and using the described second picture to be played as next broadcastingPicture.
It should be noted that the broadcasting sequence number initial value can be set as 0, every broadcasting in order to realize the effect continuously playedA complete picture carries out an automatic plus operation, obtains next broadcasting sequence number.For example, the currently playing serial number 0,To N carry out from plus one, obtaining next broadcasting sequence number is 1, then corresponding with serial number 1 the is searched from the preset groupTwo pictures to be played, and using the described second picture to be played as next playing pictures, when the currently playing pictureAt the end of broadcasting, obtains next playing pictures and play out.
Step S40: judge that whether the currently playing picture with next playing pictures is to be associated with picture, is sentencedDisconnected result.
It will be appreciated that the coherent broadcasting in order to realize association picture, need to usually judge the currently playing picture and instituteState next playing pictures whether be mutually related to be associated with picture, if so, can by the currently playing picture and it is described underTime interval between one playing pictures is set as the short period, that is, faster broadcasting speed, such as 0.5s/ is arrangedIt opens or shorter, the image content of associated association picture is inherently relatively coherent, by being provided with shorter playing intervalTime, so that the broadcasting of association picture has preferable dynamic play effect as playing animation piece.
It should be understood that it is corresponding that each picture to be played can be obtained by carrying out feature extraction to each picture to be played in advancePicture feature, according to the picture feature judge each picture to be played whether be association picture, if association picture, can be rightThe label of association picture is done on the picture answered, for example, the picture of broadcasting sequence number 1 is to be associated with picture with the picture of broadcasting sequence number 2,The picture of broadcasting sequence number 1 and the picture of broadcasting sequence number 2 can all be done to upper identical connective marker A, in the figure for judging broadcasting sequence number 1Whether piece is that need to only judge them with the presence or absence of identical connective marker when being associated with picture with the picture of broadcasting sequence number 2.
In the present embodiment, before the step S10, further includes:
Creation plays the preset group of the page, the picture path of multiple pictures to be played is obtained, by each picture to be playedIt stores to the preset group in picture path;
Feature extraction is carried out to each picture to be played respectively, obtains corresponding picture feature to be played;
The relevance between each picture to be played is established according to the picture feature to be played;
The broadcasting sequence number of each picture to be played in the preset group is set according to the relevance between each picture to be played.
It should be noted that the page that plays is the page where when the picture to be played plays out, in order to saveMemory space is saved, the preset group for playing the page can be created, obtains the figure of the picture to be played for playing the pagePiece path is stored in the preset group, then the picture path of picture to be played, root can be found from the preset groupIt obtains corresponding picture to be played according to the picture path to play out, the picture to be played is usually multiple pictures.
It will be appreciated that there is better result of broadcast in order to enable the broadcasting of the picture to be played is coherent, it will usuallyThe stronger picture of relevance in the picture to be played is put together, broadcasting when can link up broadcasting.Can by instituteIt states picture to be played and carries out feature extraction, obtain corresponding picture feature to be played, it can be by convolutional neural networks model to instituteState picture feature to be played to be identified, identify the relevance between each picture to be played, then by each picture to be played according toRelevance is arranged corresponding broadcasting sequence number, and the corresponding broadcasting sequence number of the stronger picture to be played of relevance is continuous.
Step S50: the playing interval time is arranged according to the judging result.
In the concrete realization, if the judging result is the currently playing picture and next playing pictures are to closeJoin picture, then shorter interval time is set as the playing interval time, so that the broadcasting of association picture is more coherent, asPlaying animation piece is the same, realizes preferable dynamic play effect.If the judging result be the currently playing picture with it is describedNext playing pictures are not association pictures, then longer interval time is arranged as the playing interval time, so that associationProperty little picture it is opposite exist to play distinguish, allow users to the sufficient reaction time to watch in different picturesHold.
Step S60: obtaining current time, is greater than when the time difference between the current time and the beginning playing timeOr when being equal to the playing interval time, next playing pictures are played.
It should be understood that broadcasting speed is usually arranged to play every picture to be played, by controlling between every picturePlay time interval time, realize the supervision of the broadcasting speed of different pictures, current time obtained, if the current timeTime difference between the beginning playing time is more than or equal to the playing interval time, that is to say, that described currentPlaying pictures finish playing according to pre-set velocity, can obtain next playing pictures and play out, to realize continuous playDynamic effect.
In the present embodiment, by obtaining currently playing serial number N, searched and the currently playing serial number N from preset groupCorresponding first picture to be played, and using the described first picture to be played as currently playing picture, it plays described currently playingPicture, and beginning playing time is recorded, N is carried out next broadcasting sequence number N+1 to be obtained, from the preset group from adding oneThe second picture to be played corresponding with the next broadcasting sequence number N+1 is searched, and using the described second picture to be played as underOne playing pictures judges that whether the currently playing picture with next playing pictures is to be associated with picture, is judgedAs a result, the playing interval time is arranged according to the judging result, the relevance between picture is obtained based on image recognition, according to passShorter interval time is arranged in connection property setting corresponding playing interval time, picture stronger for relevance, to realize moreConsistently play;Obtain current time, when the current time and it is described start playing time between time difference be greater than orWhen equal to the playing interval times, next playing pictures are played, play next picture automatically according to time interval,To realize one group of picture dynamic play effect corresponding with relevance.
It is the flow diagram of picture playing method second embodiment of the present invention referring to Fig. 3, Fig. 3, based on shown in above-mentioned Fig. 2First embodiment, propose the second embodiment of picture playing method of the present invention.
In a second embodiment, the step S40, comprising:
Step S401: carrying out feature extraction to the currently playing picture and next playing pictures respectively, obtainsCorresponding current image feature and next picture feature.
It will be appreciated that can be by carrying out direction ladder respectively to the currently playing picture and next playing picturesHistogram (Histogram of Oriented Gradient, HOG) feature extraction is spent, is currently broadcast by calculating and counting describedThe gradient orientation histogram for putting the regional area of picture and next playing pictures carrys out constitutive characteristic, obtains and described currentThe corresponding current image feature of playing pictures and next picture corresponding with the next playing pictures are specialSign.Also feature extraction can be carried out to the currently playing picture and next playing pictures by other means, such as:Fourier converter technique, Wavelet transforms (Gabor), Wavelet Transform, least square method, edge direction histogram method orTexture feature extraction etc. of the person based on Tamura textural characteristics.
Step S402: the currently playing picture is judged according to the current image feature and next picture featureWhether it is to be associated with picture with next playing pictures, obtains judging result.
It should be understood that by the way that the picture feature is compared with next picture feature, if the pictureSimilarity between feature and next picture feature is higher, for example similarity is more than 60%, then it is believed that described currentPicture feature and next picture feature are Relating Characteristic, then the judging result is the currently playing picture and instituteStating next playing pictures is association picture.If similarity between the picture feature and next picture feature compared withIt is low, for example similarity is lower than 60%, then it is believed that the current image feature and next picture feature are not relevancesFeature, then the judging result is not to be associated with picture with next playing pictures for the currently playing picture.
In the present embodiment, the step S50, comprising:
If the judging result is to be associated with picture with next playing pictures for the currently playing picture, it is arrangedThe playing interval time was the first interval time;
If the judging result is not to be associated with picture with next playing pictures for the currently playing picture, setSetting the playing interval time was the second interval time;
Wherein, first interval time is less than second interval time.
It should be noted that if the judging result is the currently playing picture and next playing pictures are to closeJoin picture, then shorter first interval time is set as the playing interval time, so that the broadcasting of association picture is moreAdd coherent, as playing animation piece, realizes preferable dynamic play effect.If the judging result is the currently playing figurePiece is not to be associated with picture with next playing pictures, then longer second interval time is arranged as between the broadcastingEvery the time so that relevance it is little picture it is opposite exist to play distinguish, allow users to the sufficient reaction time to seeSee different image contents.Button can be equipped with by usually playing on the page, such as: the buttons such as 1s, 2s or 3s.It is pressed by clickingValue is transferred to the timing function by button, i.e., using value as the time interval of picture playing, to change the broadcasting speed of picture.Also the timing letter of above-mentioned setting exactly can be removed by cancelling timer (clearTimeout) by clicking stop buttonNumber.First interval time be less than second interval time so that relevance it is strong picture playing interval time it is short, playIt is more coherent, promote user's viewing experience.
In the present embodiment, feature extraction is carried out to the currently playing picture and next playing pictures respectively, is obtainedCorresponding current image feature and next picture feature are obtained, according to the current image feature and next picture featureJudge whether the currently playing picture with next playing pictures is to be associated with picture, judging result is obtained, if described work asPreceding playing pictures are to be associated with picture with next playing pictures, then the first shorter interval time is arranged as the broadcastingInterval time as playing animation piece, realizes preferable dynamic play effect so that the broadcasting of association picture is more coherent.
It is the flow diagram of picture playing method 3rd embodiment of the present invention referring to Fig. 4, Fig. 4, based on shown in above-mentioned Fig. 3Second embodiment, propose the 3rd embodiment of picture playing method of the present invention.
In the third embodiment, before the step S20, further includes:
Step S101: a upper playing pictures are obtained and are playing the last time play position in the page.
It should be understood that in order to allow one group of picture to appear to play, firstly, the position of every picture, it is necessary to be weightFolded, it only shows that currently playing picture, other pictures stash, by absolute fix, makes the position of each picture to be playedUnanimously.Secondly, need to judge whether the size of a upper playing pictures is consistent with the currently playing picture size, if unanimously,The previous position information of the picture of a broadcasting can be then obtained, absolute fix is carried out, by the currently playing picture describedIt is played out at previous position information;If the sizes of a upper playing pictures and the size of the currently playing picture are notUnanimously, after being positioned with absolute fix, the broadcast button below picture may be with the currently playing overlaying graphics, thisWhen need to calculate the size of the currently playing picture, the big of picture container is adjusted by the size of the currently playing pictureIt is small, to the broadcast button spacing of lower section.Finally, if to have chosen when choosing content coherent for the content of each picture to be played,Result of broadcast is similar to playing animation piece when then playing each picture to be played, and it is relatively continuous for often detecing picture.Find out one group1s or shorter can be set first is that length cannot be arranged in the playing interval time in the dynamic change effect of picture to be played,Second is that choosing the relatively coherent picture of image content when carrying out the selection of picture to be played.
Step S102: the current size of the currently playing picture is calculated, and calculates the upper of a upper playing picturesOne size, whether the current size and a upper size are consistent, obtain comparison result.
It will be appreciated that the coherent broadcasting in order to realize each picture to be played, the position of every picture to be played, it is necessary to beOverlapping, but every the not of uniform size of picture to be played is identical surely, in order to enable when playing next picture withThe relative superposition of the position of the currently playing picture, need to calculate the currently playing picture current size and it is described onThe current size is compared by a upper size for one playing pictures with a upper size, if the two is consistent,It can be using the current play position of the currently playing picture as the play position of a upper playing pictures, if the two is differentCause, then picture playing container size is adjusted so that the picture playing container size can meet it is described currently playingThe size of picture.
Step S103: the currently playing picture is arranged described according to the comparison result and the last time play positionPlay the current play position in the page.
It should be noted that if the comparison result is that the current size is consistent with a upper size, then can obtainThe previous position information of the picture of a broadcasting is taken, absolute fix is carried out, by the currently playing picture in the last time positionIt is played out at confidence breath.If the comparison result is that the current size and a upper size are inconsistent, with absoluteAfter being positioned, the broadcast button below picture may need to calculate at this time with the currently playing overlaying graphicsThe size of the currently playing picture adjusts the big of picture container by the current size of the currently playing pictureIt is small, to the broadcast button spacing of lower section.
In the present embodiment, the step S103, comprising:
If the comparison result is that the current size and a upper size are inconsistent, according to the current sizePicture playing container size is adjusted, currently playing container size is obtained;
The currently playing picture is set described according to the last time play position and the currently playing container sizePlay the current play position in the page.
If should be understood that the current size and the picture of a upper broadcasting of the currently playing pictureA upper size is inconsistent, and after being positioned with absolute fix, the broadcast button below picture may be with picture weightIt is folded, need to calculate the current size of the currently playing picture at this time, according to the described current of the currently playing pictureSize adjusts the size of picture container, can be using the center of the last time play position as the current location informationCenter adjusts the marginal position of the picture playing container according to the current size of the currently playing picture,So that the currently playing container size obtained can accommodate the currently playing picture, and stayed to the broadcast button of lower sectionSpace.
Further, in the present embodiment, described according to the last time play position and the currently playing container sizeCurrent play position of the currently playing picture in the broadcasting page is set, comprising:
The central point for calculating the last time play position, using the central point of the last time play position as currently playing positionThe central point set;
According to the central point of the current play position and the currently playing container size, the currently playing figure is setThe current play position of the piece in the broadcasting page.
In the concrete realization, in order to realize the play position and the upper playing pictures of the currently playing pictureThe overlapping of play position, can be by the central point of the calculating last time play position, by the central point of the last time play positionAs the central point of current play position, if the then currently playing picture and a upper playing pictures is in the same size,It then can be directly using the last time play position of a upper playing pictures as the described currently playing of the currently playing picturePosition.If not of uniform size, the picture playing container size of the currently playing picture and a upper playing picturesIt is adjusted according to the current size, the currently playing container size of acquisition and the currently playing picture oneIt causes, it is big in conjunction with the currently playing container using the central point of the last time play position as the central point of current play positionIt is small, obtain the current play position of the currently playing picture in the broadcasting page.
In the present embodiment, the step S20, comprising:
Step S201: the current play position in the broadcasting page plays the currently playing picture, and remembersRecord starts playing time.
It should be understood that the corresponding current play position of the currently playing picture has been determined, it will be described currentThe current play position of the playing pictures in the broadcasting page plays out, and realizes broadcasting for the currently playing pictureIt is overlapping with the play position of a upper playing pictures to put position, there is preferable result of broadcast.It records and described starts to broadcastThe moment is put, so that between the current time and the time difference started between playing time are more than or equal to the broadcastingWhen the time, next playing pictures are played, realize the coherent broadcasting of each picture to be played.
In the present embodiment, the last time play position in the page is being played by obtaining upper playing pictures, described in calculatingThe current size of currently playing picture, and calculate a upper size for a upper playing pictures, the current sizeIt is whether consistent with a upper size, comparison result is obtained, is arranged according to the comparison result and the last time play positionCurrent play position of the currently playing picture in the broadcasting page, so that the play position of the currently playing pictureIt is overlapping with the play position of a upper playing pictures, realize the coherent result of broadcast of picture.
In addition, the embodiment of the present invention also proposes a kind of storage medium, picture playing program is stored on the storage medium,The step of picture playing program realizes picture playing method as described above when being executed by processor.
In addition, the embodiment of the present invention also proposes that a kind of picture playing device, the picture playing device include: referring to Fig. 5
Module 10 is obtained, for obtaining currently playing serial number N, is searched and the currently playing serial number N from preset groupCorresponding first picture to be played, and using the described first picture to be played as currently playing picture, the N is to be greater than or waitIn 0 integer;
Playing module 20 for playing the currently playing picture, and records beginning playing time;
Searching module 30, for obtain next broadcasting sequence number N+1 from adding one, look into from the preset group to NThe second picture to be played corresponding with the next broadcasting sequence number N+1 is looked for, and using the described second picture to be played as nextA playing pictures;
Judgment module 40, for judging whether the currently playing picture and next playing pictures are associated diagramPiece obtains judging result;
Setup module 50, for the playing interval time to be arranged according to the judging result;
The playing module 20, is also used to obtain current time, when the current time and the beginning playing time itBetween time difference when being more than or equal to the playing interval time, play next playing pictures.
It should be understood that a usually newly-built component is used to realize the effect of the broadcasting of picture, such as Vue component, the groupPart also can be applied in other frame, and the picture path to be played can also be by being transmitted to the component, both by other pageIt is able to achieve the effect of the broadcasting of picture.A preset group, such as array imgList are defined in the page of the component,For putting picture path, while a label (mark) is defined as currently playing serial number, usually also can define a broadcastingSpeed, the picture path of the currently playing picture are the corresponding picture roads of currently playing serial number described in the preset groupDiameter realizes broadcasting by the change combination timing function of mark value, and the timing function realizes control picture broadcasting speed,It can be realized by the play time interval between setting picture.Each picture to be played is respectively provided with corresponding broadcasting sequence number, andBy the picture path of the picture to be played being sequentially stored in the preset group according to the broadcasting sequence number, at upper oneAt the end of playing pictures play, the currently playing sequence can be obtained by the broadcasting sequence number of a upper playing pictures from adding oneNumber N, the N are the integer more than or equal to 0, then can be searched from the preset group by the currently playing serial number NTo the picture path of corresponding currently playing picture, is got and described currently broadcast according to the picture path of the currently playing picturePut picture.Each picture to be played directly can also be directly deposited in the preset group according to the sequence of the broadcasting sequence numberIn, then it can find corresponding first picture to be played from the preset group according to the currently playing serial number N, and by instituteThe first picture to be played is stated as the currently playing picture.
It will be appreciated that get the currently playing picture, then it can be according to described in the broadcasting of pre-set broadcasting speedCurrently playing picture, the broadcasting speed can be realized by setting interval, for example, broadcasting speed is 1s/, can led toIt crosses when the currently playing picture starts to play, record starts playing time, when the play time of the currently playing pictureWhen difference with the beginning playing time is 1s, next playing pictures are played.
It should be noted that the broadcasting sequence number initial value can be set as 0, every broadcasting in order to realize the effect continuously playedA complete picture carries out an automatic plus operation, obtains next broadcasting sequence number.For example, the currently playing serial number 0,To N carry out from plus one, obtaining next broadcasting sequence number is 1, then corresponding with serial number 1 the is searched from the preset groupTwo pictures to be played, and using the described second picture to be played as next playing pictures, when the currently playing pictureAt the end of broadcasting, obtains next playing pictures and play out.
It will be appreciated that the coherent broadcasting in order to realize association picture, need to usually judge the currently playing picture and instituteState next playing pictures whether be mutually related to be associated with picture, if so, can by the currently playing picture and it is described underTime interval between one playing pictures is set as the short period, that is, faster broadcasting speed, such as 0.5s/ is arrangedIt opens or shorter, the image content of associated association picture is inherently relatively coherent, by being provided with shorter playing intervalTime, so that the broadcasting of association picture has preferable dynamic play effect as playing animation piece.
It should be understood that it is corresponding that each picture to be played can be obtained by carrying out feature extraction to each picture to be played in advancePicture feature, according to the picture feature judge each picture to be played whether be association picture, if association picture, can be rightThe label of association picture is done on the picture answered, for example, the picture of broadcasting sequence number 1 is to be associated with picture with the picture of broadcasting sequence number 2,The picture of broadcasting sequence number 1 and the picture of broadcasting sequence number 2 can all be done to upper identical connective marker A, in the figure for judging broadcasting sequence number 1Whether piece is that need to only judge them with the presence or absence of identical connective marker when being associated with picture with the picture of broadcasting sequence number 2.
In the present embodiment, described to obtain currently playing serial number N, it is searched and the currently playing serial number from preset groupBefore the corresponding picture to be played of N is as currently playing picture, further includes:
Creation plays the preset group of the page, the picture path of multiple pictures to be played is obtained, by each picture to be playedIt stores to the preset group in picture path;
Feature extraction is carried out to each picture to be played respectively, obtains corresponding picture feature to be played;
The relevance between each picture to be played is established according to the picture feature to be played;
The broadcasting sequence number of each picture to be played in the preset group is set according to the relevance between each picture to be played.
It should be noted that the page that plays is the page where when the picture to be played plays out, in order to saveMemory space is saved, the preset group for playing the page can be created, obtains the figure of the picture to be played for playing the pagePiece path is stored in the preset group, then the picture path of picture to be played, root can be found from the preset groupIt obtains corresponding picture to be played according to the picture path to play out, the picture to be played is usually multiple pictures.
It will be appreciated that there is better result of broadcast in order to enable the broadcasting of the picture to be played is coherent, it will usuallyThe stronger picture of relevance in the picture to be played is put together, broadcasting when can link up broadcasting.Can by instituteIt states picture to be played and carries out feature extraction, obtain corresponding picture feature to be played, it can be by convolutional neural networks model to instituteState picture feature to be played to be identified, identify the relevance between each picture to be played, then by each picture to be played according toRelevance is arranged corresponding broadcasting sequence number, and the corresponding broadcasting sequence number of the stronger picture to be played of relevance is continuous.
In the concrete realization, if the judging result is the currently playing picture and next playing pictures are to closeJoin picture, then shorter interval time is set as the playing interval time, so that the broadcasting of association picture is more coherent, asPlaying animation piece is the same, realizes preferable dynamic play effect.If the judging result be the currently playing picture with it is describedNext playing pictures are not association pictures, then longer interval time is arranged as the playing interval time, so that associationProperty little picture it is opposite exist to play distinguish, allow users to the sufficient reaction time to watch in different picturesHold.
It should be understood that broadcasting speed is usually arranged to play every picture to be played, by controlling between every picturePlay time interval time, realize the supervision of the broadcasting speed of different pictures, current time obtained, if the current timeTime difference between the beginning playing time is more than or equal to the playing interval time, that is to say, that described currentPlaying pictures finish playing according to pre-set velocity, can obtain next playing pictures and play out, to realize continuous playDynamic effect.
In the present embodiment, by obtaining currently playing serial number N, searched and the currently playing serial number N from preset groupCorresponding first picture to be played, and using the described first picture to be played as currently playing picture, it plays described currently playingPicture, and beginning playing time is recorded, N is carried out next broadcasting sequence number N+1 to be obtained, from the preset group from adding oneThe second picture to be played corresponding with the next broadcasting sequence number N+1 is searched, and using the described second picture to be played as underOne playing pictures judges that whether the currently playing picture with next playing pictures is to be associated with picture, is judgedAs a result, the playing interval time is arranged according to the judging result, the relevance between picture is obtained based on image recognition, according to passShorter interval time is arranged in connection property setting corresponding playing interval time, picture stronger for relevance, to realize moreConsistently play;Obtain current time, when the current time and it is described start playing time between time difference be greater than orWhen equal to the playing interval times, next playing pictures are played, play next picture automatically according to time interval,To realize one group of picture dynamic play effect corresponding with relevance.
In one embodiment, the picture playing device further include:
Extraction module, for carrying out feature extraction respectively to the currently playing picture and next playing pictures,Obtain corresponding current image feature and next picture feature;
The judgment module 40 is also used to according to the current image feature and next picture feature judgementWhether currently playing picture is to be associated with picture with next playing pictures, obtains judging result.
In one embodiment, the setup module 50, if be also used to the judging result be the currently playing picture withNext playing pictures are association pictures, then it was the first interval time that the playing interval time, which is arranged,;
The setup module 50, if being also used to the judging result is the currently playing picture and next broadcastingPicture is not association picture, then it was the second interval time that the playing interval time, which is arranged,;
Wherein, first interval time is less than second interval time.
In one embodiment, it is upper in the broadcasting page to be also used to obtain a playing pictures for the acquisition module 10Secondary play position;
The picture playing device further include:
Computing module for calculating the current size of the currently playing picture, and calculates a upper playing picturesA upper size, whether the current size and a upper size consistent, obtain comparison result;
The setup module 50 is also used to described currently be broadcast according to the comparison result and last time play position settingPut current play position of the picture in the broadcasting page;
The playing module 20 is also used to the current play position in the broadcasting page and plays described currently broadcastPicture is put, and records beginning playing time.
In one embodiment, the picture playing device further include:
Module is adjusted, if being that the current size and a upper size are inconsistent for the comparison result, rootPicture playing container size is adjusted according to the current size, obtains currently playing container size;
The setup module 50 is also used to according to the last time play position and the currently playing container size setting instituteState current play position of the currently playing picture in the broadcasting page.
In one embodiment, the computing module is also used to calculate the central point of the last time play position, on describedCentral point of the central point of secondary play position as current play position;
The setup module 50 is also used to big according to the central point of the current play position and the currently playing containerThe current play position of the small setting currently playing picture in the broadcasting page.
In one embodiment, the picture playing device further include:
Storage module, for creating the preset group for playing the page, the picture path of the multiple pictures to be played of acquisition will be eachIt stores to the preset group in the picture path of picture to be played;
The extraction module is also used to carry out each picture to be played respectively feature extraction, obtains corresponding figure to be playedPiece feature;
Module is established, for establishing the relevance between each picture to be played according to the picture feature to be played;
The setup module 50 is also used to be arranged according to the relevance between each picture to be played each in the preset groupThe broadcasting sequence number of picture to be played.
The other embodiments or specific implementation of picture playing device of the present invention can refer to above-mentioned each method and implementExample, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the system that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.If listing equipment for dryingUnit claim in, several in these devices, which can be, to be embodied by the same item of hardware.Word first,Second and the use of third etc. do not indicate any sequence, can be mark by these word explanations.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage medium(such as read-only memory mirror image (Read Only Memory image, ROM)/random access memory (Random AccessMemory, RAM), magnetic disk, CD) in, including some instructions are used so that terminal device (can be mobile phone, computer,Server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (10)

CN201811254573.1A2018-10-252018-10-25Picture playing method, equipment, storage medium and devicePendingCN109640186A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811254573.1ACN109640186A (en)2018-10-252018-10-25Picture playing method, equipment, storage medium and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811254573.1ACN109640186A (en)2018-10-252018-10-25Picture playing method, equipment, storage medium and device

Publications (1)

Publication NumberPublication Date
CN109640186Atrue CN109640186A (en)2019-04-16

Family

ID=66066683

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811254573.1APendingCN109640186A (en)2018-10-252018-10-25Picture playing method, equipment, storage medium and device

Country Status (1)

CountryLink
CN (1)CN109640186A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20010053273A1 (en)*2000-06-082001-12-20Sony CorporationPicture image outputting apparatus
JP2004086384A (en)*2002-08-232004-03-18Make Softwear:KkImage editing method, image editing device, computer program and recording medium
CN103543925A (en)*2013-10-182014-01-29北京搜狗科技发展有限公司Method and device for operating pictures
CN105528427A (en)*2015-12-082016-04-27腾讯科技(深圳)有限公司Media file processing method, and sharing method and device in social application
CN105550251A (en)*2015-12-082016-05-04小米科技有限责任公司Picture play method and device
CN106792149A (en)*2016-12-142017-05-31广州视源电子科技股份有限公司picture playing method and device
CN107480176A (en)*2017-07-012017-12-15珠海格力电器股份有限公司Picture management method and device and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20010053273A1 (en)*2000-06-082001-12-20Sony CorporationPicture image outputting apparatus
JP2004086384A (en)*2002-08-232004-03-18Make Softwear:KkImage editing method, image editing device, computer program and recording medium
CN103543925A (en)*2013-10-182014-01-29北京搜狗科技发展有限公司Method and device for operating pictures
CN105528427A (en)*2015-12-082016-04-27腾讯科技(深圳)有限公司Media file processing method, and sharing method and device in social application
CN105550251A (en)*2015-12-082016-05-04小米科技有限责任公司Picture play method and device
CN106792149A (en)*2016-12-142017-05-31广州视源电子科技股份有限公司picture playing method and device
CN107480176A (en)*2017-07-012017-12-15珠海格力电器股份有限公司Picture management method and device and terminal equipment

Similar Documents

PublicationPublication DateTitle
US11317139B2 (en)Control method and apparatus
US5535321A (en)Method and apparatus for variable complexity user interface in a data processing system
CN106570157B (en)Picture pushing method and device and electronic equipment
CN110297996A (en)Cartoon display method, device, equipment and storage medium based on the H5 page
EP1719064B1 (en)An image processing system and method
CN106802803A (en)The method and apparatus of application data treatment
CN108921918B (en)Video creation method and related device
CN105867714A (en)Application downloading method, apparatus and system
CN110209879A (en)A kind of video broadcasting method, device, equipment and storage medium
CN104954872B (en)video downloading method, video playing device, mobile terminal and storage medium
CN109933681A (en)Image searching method, device and computer readable storage medium
CN111359201A (en)Jigsaw puzzle type game method, system and equipment
CN110446104A (en)Method for processing video frequency, device and storage medium
CN110287464A (en) Display method, device, computer equipment and computer storage medium for option data in form
CN109511019A (en)A kind of video summarization method, terminal and computer readable storage medium
CN110032310A (en)A kind of application program image target display methods, device and equipment
CN110072138A (en)Video broadcasting method, equipment and computer readable storage medium
CN104636152A (en)Floating-layer-based application program calling method and device
CN111586329A (en)Information display method and device and electronic equipment
CN110705242A (en)Method and device for manufacturing slide template and electronic equipment
CN109640186A (en)Picture playing method, equipment, storage medium and device
CN109948072A (en)Processing method, device and the equipment of shop search information
CN109359203A (en)The processing method and processing device of motion profile video
CN110673910B (en)Control method and control device for controlling popup window display in app system
CN113905188B (en)Video stitching dynamic adjustment method, system, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190416

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp