Invention content
In view of this, an embodiment of the present invention provides the optimization method, device and equipment of the video playing of massager, with solution
Massage stimulation certainly of the prior art, it is general simple according to massage part adjustment massager working condition, it is impossible to provide more
The problem of effective massage stimulation.
The first aspect of the embodiment of the present invention provides a kind of optimization method of the video playing of massager, the massager
The optimization method of video playing includes:
Different video clips is obtained with massaging the correspondence of rhythm characteristic;
According to the current sign information of preset massage duration and/or user, lookup current time institute is matched to press
Rub rhythm characteristic;
According to acquired video clip and the correspondence of massage rhythm characteristic, search the massage rhythm characteristic and correspond to
Video clip play out.
With reference to first aspect, it is described to obtain different video clips in the first possible realization method of first aspect
With massage rhythm characteristic correspondence the step of include:
Obtain the personage that includes of video clip or object motion frequency and/or, obtain the people that video clip includes
The sound frequency of object;
According to the motion frequency and/or the sound frequency, determine that the massage rhythm corresponding to the video clip is special
Sign.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect, institute
State the motion frequency that obtains the personage that includes of video clip or object and/or, obtain the sound of personage that video clip includes
The step of voice frequency, includes:
The frequency tag included by reading video obtains the corresponding motion frequency of the video clip and/or sound
Frequency;
Alternatively, the body-sensing data included by reading video frame, obtain the corresponding motion frequency of the video clip and/
Or sound frequency;
Alternatively, being identified to the image of the video clip or the sound of the video clip being identified, obtain
The corresponding motion frequency of the video clip and/or sound frequency.
With reference to first aspect, it is described according to preset massage in the third possible realization method of first aspect
Duration is searched current time institute and is included matched the step of massaging rhythm characteristic:
According to preset massage duration, the massage rhythm characteristic in the massage duration and massage time point are determined
Correspondence;
Corresponding massage rhythm characteristic is searched according to current time.
With reference to first aspect, the possible realization method of the first of first aspect, second of first aspect may realization side
The possible realization method of the third of formula or first aspect, in the 4th kind of possible realization method of first aspect, it is described according to
The current sign information in family is searched current time institute and is included matched the step of massaging rhythm characteristic:
Obtain the physical sign parameters value in the current sign information of user;
According to preset physical sign parameters value and the correspondence of massage rhythm characteristic, current sign information institute is searched
Corresponding massage rhythm characteristic.
The second aspect of the embodiment of the present invention provides a kind of optimization device of the video playing of massager, the massager
The optimization device of video playing includes:
Correspondence acquiring unit, for the correspondence for obtaining different video clips with massaging rhythm characteristic;
Rhythm searching unit is massaged, for according to the current sign information of preset massage duration and/or user, looking into
Look for the matched massage rhythm characteristic of current time institute;
Video clip searching unit, for according to acquired video clip and the correspondence of massage rhythm characteristic, looking into
The corresponding video clip of the massage rhythm characteristic is looked for play out.
With reference to second aspect, in the first possible realization method of second aspect, the correspondence acquiring unit packet
It includes:
Frequency information obtains subelement, for obtain the motion frequency of personage that video clip includes or object and/
Or, obtain the sound frequency of personage that video clip includes;
Rhythm characteristic determination subelement is massaged, for according to the motion frequency and/or the sound frequency, determining institute
State the massage rhythm characteristic corresponding to video clip.
With reference to the first possible realization method of second aspect, in second of possible realization method of second aspect, institute
Frequency information acquisition subelement is stated to include:
Frequency tag read module for passing through the frequency tag for reading video and including, obtains the video clip pair
The motion frequency and/or sound frequency answered;
Alternatively, body-sensing data read module, for passing through the body-sensing data for reading video frame and including, obtains the video
The corresponding motion frequency of segment and/or sound frequency;
Alternatively, identification module, it is identified for the image to the video clip or the sound to the video clip
It is identified, obtains the corresponding motion frequency of the video clip and/or sound frequency.
The third aspect of the embodiment of the present invention provides a kind of optimization equipment of the video playing of massager, including storage
Device, processor and it is stored in the computer program that can be run in the memory and on the processor, which is characterized in that
The processor realizes the optimization of the video playing of massager as described in any one of first aspect when performing the computer program
The step of method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, which is characterized in that realizes that first aspect such as is appointed when the computer program is executed by processor
The step of optimization method of the video playing of one massager.
Existing advantageous effect is the embodiment of the present invention compared with prior art:By being multiple segments by Video segmentation,
And the massage rhythm characteristic corresponding to different video clips is obtained, according to preset massage duration or according to user
Current sign information searches corresponding massage rhythm, according to the massage rhythm of lookup, obtains corresponding video clip and is broadcast
It puts, so that the user that the video clip played is capable of significantly more efficient adaptation currently massages state, improves massager
Using effect.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
As shown in Figure 1, the realization flow of the optimization method of the video playing of massager described in the embodiment of the present application, is described in detail
It is as follows:
In step S101, different video clips is obtained with massaging the correspondence of rhythm characteristic;
Specifically, the massager in the application, it can be by way of playing video, to improve massage effect.Wherein, institute
The video content of broadcasting is related to massage part, and the video played includes different massage rhythm characteristics, by playing not
Same massage rhythm characteristic, can be by way of visual stimulus user, to improve massage effect.As preferred embodiment party
Formula, the video played can be associated with the massaging action of massager.Associated mode can be in the video played
Personage or the motion frequency of object, it is corresponding with the massage frequency of massager.
The video clip can be multiple segments that the matched video of massager is divided.The division of the video,
Different segments can be divided into according to the motion frequency of the personage in video, it can also be according to the movement frequency of the object in video
Rate divides different segments, and the sound that can also be included according to video is different segments according to the frequency partition of sound.Its
In, the frequency of the sound in the video can refer to the sounding interval of sound.It can be obtained entire before video clip generation
Then the massage rhythm characteristic of video divides different video clips according to massage rhythm.
The massage rhythm characteristic, can be corresponding with the frequency of the massage motion of massager.Certainly, it is not limited to this, also
It can be corresponding with the features such as the frequency of the massage intensity of massager.The correspondence of the massage rhythm characteristic and video clip,
The number such as the motion frequency of personage or object or the frequency of sound can be obtained by calculating the video content in video clip
According to determining corresponding massage rhythm characteristic.
Wherein, the motion frequency of the personage of the video clip or object, can be by adding body in the video frame in advance
The mode of information is felt, by reading the body-sensing information in video frame, so as to obtain the personage in the video or the movement of object
Frequency.It is, of course, also possible to frequency tag is added in video, by directly reading the frequency tag, you can obtain in video
Personage or the motion frequency of object.In addition, as optionally a kind of embodiment of the application, it can also be by carrying out intelligence to image
The identification of energy, it is described to determine with reference to the broadcasting speed of video by identifying the variation of the personage in image or the position of object
The motion frequency of personage or object in video.
The frequency of the sound of personage or object in the video clip can be obtained by analyzing the audio-frequency information of video
It takes or can also be by way of intelligent recognition, to determine the personage in video or the sound frequency of object.
In step s 102, according to preset massage duration and/or the current sign information of user, when searching current
Between the matched massage rhythm characteristic of institute;
Can the massage section corresponding to current point in time be determined according to massage duration and the correspondence for massaging rhythm characteristic
Play feature or can also be according to the current sign information of user, to determine the massage rhythm characteristic corresponding to current point in time.
Or can also according to massage duration, with reference to the current sign information of user, to determine corresponding massage rhythm characteristic.Specifically
Correspondence is specifically further illustrated in figure 2 and figure 3.
In step s 103, it according to acquired video clip and the correspondence of massage rhythm characteristic, presses described in lookup
The corresponding video clip of the rhythm characteristic that rubs plays out.
According to current time massage progress corresponding in the massage duration of setting, determine corresponding to current time by
Rub rhythm characteristic or can also determine corresponding massage rhythm characteristic according to the sign information of active user.According to acquisition
Rhythm characteristic and the correspondence of video clip are massaged, searches the video clip corresponding to current time.
Since different video clips may have identical massage rhythm characteristic, the video clip searched can
It can include multiple.It, can be according to the number that user selects to identical in order to which the orderly video clip to lookup plays out
The video clip of massage rhythm characteristic is ranked up, the more video clip of preferential recommendation selection number.
Due to the application by Video segmentation be multiple segments, and obtain the massage rhythm corresponding to different video clips spy
Sign according to preset massage duration or according to the current sign information of user, searches corresponding massage rhythm, according to
The massage rhythm of lookup obtains corresponding video clip and plays out, so that the video clip played can be more
The user effectively adapted to currently massages state, improves the using effect of massager.
It is illustrated in figure 2 a kind of video of massager according to the massage duration for combining setting provided by the embodiments of the present application
The optimization method of broadcasting, the method includes:
In step s 201, different video clips is obtained with massaging the correspondence of rhythm characteristic;
In step S202, according to preset massage duration, determine that the massage rhythm in the massage duration is special
Sign and the correspondence at massage time point;
Specifically, it is described massage duration set by user, such as massage when a length of 15 minutes or massage when it is a length of
It 20 minutes, can be adjusted flexibly according to the needs of user.But in order to improve massage effect, can be pressed with recommended user specific
It rubs and is selected in the range of duration.
Correspondence of the massage rhythm characteristic with massaging time point in the massage duration, can be by way of statistics
It obtains.For example, it can obtain that score value is higher to be pressed with the satisfaction score value of massage durations different used in counting user
Correspondence of the massage time point with massaging rhythm characteristic during rubbing, by largely counting, you can obtain preset
It massages in duration, correspondence of the corresponding preferable massage time point with massaging rhythm characteristic.
For example, the massage time point can be with the correspondence for massaging rhythm characteristic:When starting to be massaged into first
Between point, corresponding massage rhythm characteristic be F1, in first time point to the second time point, corresponding massage rhythm characteristic is
F2, at the second time point to third time point, corresponding massage rhythm characteristic is F3, is terminated at N time points to massage, institute
Corresponding massage rhythm characteristic is Fn.
In addition, statistics in scheduled massage duration, when massaging correspondence of the rhythm characteristic with massaging time point, may be used also
It with the characteristic information according to different user, is counted respectively, you can obtain different user in different preset durations, massage section
Feature is played with massaging the correspondence at time point.
In step S203, corresponding massage rhythm characteristic is searched according to current time;
After massage duration is set, in massage processes, for arbitrarily massaging time point, correspondence can be searched accordingly
Massage rhythm characteristic.
In order to preferably ensure that multiple video clips continuously play, after massage duration is determined, you can during according to massage
Time slice in length, the multiple video clips played required for determining, and each video clip is spliced, it is spelled
Video after connecing, so that more smooth when playing.
Furthermore it is also possible to spliced video is established with massaging the correspondence of duration, after user determines massage duration,
Corresponding spliced video can be found directly to play out.
Alternatively, spliced video can also be established with massaging the correspondence of duration and user characteristics, according to current institute
The relevant user characteristics for the user to be massaged, with reference to set massage duration, find matched spliced video into
Row plays.So as to improve the speed of video playing, system resource is saved.
In step S204, according to acquired video clip and the correspondence of massage rhythm characteristic, pressed described in lookup
The corresponding video clip of the rhythm characteristic that rubs plays out.
The optimization method of video playing described in Fig. 2 has been described in detail and is played according to preset duration to optimize video clip
Method, and correspondence or spliced video and user by storing spliced video and preset duration are special
The correspondence of sign, preset duration, directly searches spliced video and plays out, in the accuracy rate for improving video playing
Meanwhile be conducive to further improve the playing efficiency of video.
Fig. 3 a kind of optimizes the video broadcasting method of massager to be provided by the embodiments of the present application based on user's sign information
Realization flow, details are as follows:
In step S301, different video clips is obtained with massaging the correspondence of rhythm characteristic;
In step s 302, the physical sign parameters value in the current sign information of user is obtained;
The body piece parameter of the sign information can include the temperature, humidity, redness degree or hard of the massage part of user
The features such as degree, determine the massage rhythm characteristic corresponding to sign information.
The massage rhythm characteristic and the correspondence of physical sign parameters value can be made with counting user using rear scoring is higher
With in the process, physical sign parameters value and the correspondence of massage rhythm characteristic.According to multiple appraisal results, preferable sign ginseng is determined
The correspondence of numerical value and massage rhythm characteristic.
It certainly, as an alternative embodiment, can also be by appearance knot when sign information and massage set by user
It closes, determines corresponding massage rhythm characteristic jointly by the two, so as to further improve the accuracy of massage rhythm characteristic.
In step S303, according to preset physical sign parameters value and the correspondence of massage rhythm characteristic, search and work as
Massage rhythm characteristic corresponding to preceding sign information;
Furthermore it is also possible to according to the other feature information of user, classify to user.It such as can be according to the year of user
Age, body physical efficiency are classified, and further according to different classes of user, count sign information respectively with massaging the corresponding of rhythm characteristic
Relationship, so as to first determine the classification belonging to user, further according to the physical sign parameters value in the sign information under classification and massage
The correspondence of rhythm characteristic determines the massage rhythm characteristic corresponding to the current sign information of user.
In step s 304, it according to acquired video clip and the correspondence of massage rhythm characteristic, presses described in lookup
The corresponding video clip of the rhythm characteristic that rubs plays out.
Equally, the application can also determine the correspondence or different classes of of sign information and spliced video
The correspondence of the sign information of user and spliced video by the sign information of user or passes through corresponding classification
The sign information of user searches corresponding spliced video, improves the fluency of video playing.
In addition, the duration of setting can also be combined by the application with the sign information of user, corresponding press is determined jointly
Rub rhythm characteristic, can advanced optimize the correspondence of massage rhythm characteristic.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic
It is fixed.
Fig. 4 is the structure diagram of the optimization device of the video playing of massager provided by the embodiments of the present application, is described in detail such as
Under:
The optimization device of the video playing of herein described massager, including:
Correspondence acquiring unit 401, for the correspondence for obtaining different video clips with massaging rhythm characteristic;
Rhythm searching unit 402 is massaged, for believing according to the current sign of preset massage duration and/or user
Breath searches the matched massage rhythm characteristic of current time institute;
Video clip searching unit 403, for according to acquired video clip with massage rhythm characteristic correspondence,
The corresponding video clip of the massage rhythm characteristic is searched to play out.
Preferably, the correspondence acquiring unit includes:
Frequency information obtains subelement, for obtain the motion frequency of personage that video clip includes or object and/
Or, obtain the sound frequency of personage that video clip includes;
Rhythm characteristic determination subelement is massaged, for according to the motion frequency and/or the sound frequency, determining institute
State the massage rhythm characteristic corresponding to video clip.
Preferably, the frequency information obtains subelement and includes:
Frequency tag read module for passing through the frequency tag for reading video and including, obtains the video clip pair
The motion frequency and/or sound frequency answered;
Alternatively, body-sensing data read module, for passing through the body-sensing data for reading video frame and including, obtains the video
The corresponding motion frequency of segment and/or sound frequency;
Alternatively, identification module, it is identified for the image to the video clip or the sound to the video clip
It is identified, obtains the corresponding motion frequency of the video clip and/or sound frequency.
The optimization device of the video playing of massager described in Fig. 4, the optimization with the video playing of the massager described in Fig. 1-3
Method corresponds to.
Fig. 5 is the schematic diagram of the optimization equipment of the video playing for the massager that one embodiment of the invention provides.Such as Fig. 5 institutes
Show, the optimization equipment 5 of the video playing of the massager of the embodiment includes:It processor 50, memory 51 and is stored in described
In memory 51 and the computer program 52 that can be run on the processor 50, such as the optimization journey of the video playing of massager
Sequence.The processor 50 realizes that the optimization method of the video playing of above-mentioned each massager is real when performing the computer program 52
Apply the step in example, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 50 performs the computer program 52
The function of each module/unit in the above-mentioned each device embodiments of Shi Shixian, such as the function of module 401 to 403 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure in the optimization equipment 5 of video playing of the computer program 52 in the massager is described.For example, the meter
Calculation machine program 52 can be divided into correspondence acquiring unit, massage rhythm searching unit and video clip searching unit, respectively
Unit concrete function is as follows:
Correspondence acquiring unit, for the correspondence for obtaining different video clips with massaging rhythm characteristic;
Rhythm searching unit is massaged, for according to the current sign information of preset massage duration and/or user, looking into
Look for the matched massage rhythm characteristic of current time institute;
Video clip searching unit, for according to acquired video clip and the correspondence of massage rhythm characteristic, looking into
The corresponding video clip of the massage rhythm characteristic is looked for play out.
The optimization equipment 5 of the video playing of the massager can be desktop PC, notebook, palm PC and cloud
Hold the computing devices such as server.The optimization equipment of the video playing of the massager may include, but be not limited only to, processor 50,
Memory 51.It will be understood by those skilled in the art that Fig. 5 is only the example of the optimization equipment 5 of the video playing of massager, and
Do not form the restriction to the optimization equipment 5 of the video playing of massager, can include than illustrate more or fewer components or
Certain components or different components are combined, such as the optimization equipment of the video playing of the massager can also include input
Output equipment, network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the optimization equipment 5 of the video playing of the massager, such as
The hard disk or memory of the optimization equipment 5 of the video playing of massager.The memory 51 can also be the video of the massager
The External memory equipment of the optimization equipment 5 of broadcasting, such as the grafting being equipped in the optimization equipment 5 of the video playing of the massager
Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, the optimization of video playing that the memory 51 can also both include the massager is set
Standby 5 internal storage unit also includes External memory equipment.The memory 51 is used to store the computer program and institute
State other programs and the data needed for the optimization equipment of the video playing of massager.The memory 51 can be also used for temporarily
Store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system
The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function can have other dividing mode in actual implementation, such as
Multiple units or component may be combined or can be integrated into another system or some features can be ignored or does not perform.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and be independent product sale or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter can include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described
The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.