CN107885828A - Search method, apparatus, storage medium and the electronic equipment of matching object - Google Patents

Search method, apparatus, storage medium and the electronic equipment of matching object Download PDF

Info

Publication number
CN107885828A
CN107885828A CN201711087243.3A CN201711087243A CN107885828A CN 107885828 A CN107885828 A CN 107885828A CN 201711087243 A CN201711087243 A CN 201711087243A CN 107885828 A CN107885828 A CN 107885828A
Authority
CN
China
Prior art keywords
sample
multimedia file
memory space
default
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711087243.3A
Other languages
Chinese (zh)
Other versions
CN107885828B (en
Inventor
王君龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711087243.3A priority Critical patent/CN107885828B/en
Publication of CN107885828A publication Critical patent/CN107885828A/en
Application granted granted Critical
Publication of CN107885828B publication Critical patent/CN107885828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results

Abstract

This application discloses a kind of method, apparatus, storage medium and electronic equipment for searching matching object.This method includes:When getting the target point reading object for needing to be matched, the target sample that object matching is read with the target point is searched in default memory space, this presets the matched sample that the multimedia file association that playing progress rate meets preparatory condition is stored with memory space;If the target sample that object matching is read with the target point be present in the default memory space, the destination multimedia file associated with the target sample is obtained;The destination multimedia file is played out.The application can improve the efficiency that terminal searches matching object.

Description

Search method, apparatus, storage medium and the electronic equipment of matching object
Technical field
The application belongs to field of terminal technology, more particularly to a kind of method, apparatus for searching matching object, storage medium and Electronic equipment.
Background technology
Point is read equipment and a reading object can be identified and be determined according to modes such as a coordinate of reading object or codings Position.Wherein, coded system is the printed codes on books, then using talking pen identification coding to determine content, further according to interior Hold audio corresponding to playing.Coordinated manner is to be tied using the position of talking pen click point reader with determining coordinate after confirmation coordinate Chalaza reads audio corresponding to the broadcasting of equipment current page.
The content of the invention
The embodiment of the present application provides a kind of method, apparatus, storage medium and electronic equipment for searching matching object, Ke Yiti High terminal searches the efficiency of matching object.
The embodiment of the present application provides a kind of method for searching matching object, including:
When getting the target point reading object for needing to be matched, searched and the target point in default memory space The target sample of object matching is read, the multimedia file that playing progress rate meets preparatory condition is stored with the default memory space The matched sample of association;
If in the default memory space exist with the target point read object matching target sample, obtain with it is described The destination multimedia file of target sample association;
The destination multimedia file is played out.
The embodiment of the present application provides a kind of device for searching matching object, including:
Searching modul, for when getting the target point reading object for needing to be matched, being looked into default memory space The target sample that object matching is read with the target point is looked for, playing progress rate is stored with the default memory space and meets default bar The matched sample of the multimedia file association of part;
Acquisition module, if for the target sample that object matching is read with the target point in the default memory space be present This, then obtain the destination multimedia file associated with the target sample;
Playing module, for being played out to the destination multimedia file.
The embodiment of the present application provides a kind of storage medium, computer program is stored thereon with, when the computer program exists When being performed on computer so that the computer performs the step in the method for the lookup matching object of the embodiment of the present application offer Suddenly.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling The computer program stored in memory is stated, for the step in the method for the lookup matching object for performing the embodiment of the present application offer Suddenly.
When the application realizes that point is read by mobile terminal, after the target point reading object for needing to be matched is got, eventually End can preferentially search the target sample that object matching is read with the target point in default memory space.Wherein, the default storage The playing progress rate of the multimedia file of its association of the sample preserved in space meets preparatory condition.Because playing progress rate meets to preset The multimedia file of condition very likely needs to play again, therefore the embodiment of the present application can improve terminal and search matching object Efficiency.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the present invention is described in detail, technical scheme will be made And its advantage is apparent.
Fig. 1 is the schematic diagram of a scenario that read-on-command function is realized in terminal that the embodiment of the present application provides.
Fig. 2 is the schematic flow sheet of the method for the lookup matching object that the embodiment of the present application provides.
Fig. 3 is another schematic flow sheet of the method for the lookup matching object that the embodiment of the present application provides.
Fig. 4 A to Fig. 4 D are the schematic diagram of a scenario of the method for the lookup matching object that the embodiment of the present application provides.
Fig. 5 is the structural representation of the device for the lookup matching object that the embodiment of the present application provides.
Fig. 6 is another structural representation of the device for the lookup matching object that the embodiment of the present application provides.
Fig. 7 is the structural representation for the mobile terminal that the embodiment of the present application provides.
Fig. 8 is another structural representation for the mobile terminal that the embodiment of the present application provides.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
It will be detailed below.
In one embodiment, terminal can first obtain a reading sample, and it can be picture, photo or volume that point, which reads sample, Code etc..After getting and to read sample, terminal can obtain multimedia sample, multimedia sample can be audio file or Video file etc..Then, the point got can be read sample and multimedia sample by terminal is associated.For example, terminal is by picture A Associated with audio a, photo B is associated with audio b, photo C is associated with video c.Closed by a reading sample and multimedia sample After connection, these sample datas can be stored in presetting database by terminal.
It is understood that in some embodiments, point is read be to correspond between sample and multimedia sample Relation or one-to-many relation, or many-to-one relation etc., the present embodiment is not specifically limited to this.
When using read-on-command function, user first can shoot a photo using mobile terminal, or be chosen from photograph album One photo, or scan some coding.The photo that user shoots the to obtain coding that either photo of selection or scanning obtain Exactly need to carry out an object read.After getting needs and carrying out an object read, terminal can be in presetting database Search and carry out a photo or coding for the object matching read with the needs.Carried out if existing in presetting database with the needs The photo or coding for the object matching that point is read, then terminal can searches the multimedia file being associated, and it is more to play this Media file.
In one embodiment, such as point reading sample is picture A, three sections of words is included in the photo, per passage All it is associated with a section audio.So, when the photo that user shoots to obtain matches with the picture A in presetting database, due to shining Include three sections of words in piece A, and every section of word is associated with a corresponding section audio, then user can be by specifically choosing The mode of certain section of word in picture A, selection play its corresponding audio.Or user can not also specifically select, that Terminal can be with audio corresponding to three sections of words of played in order.
Referring to Fig. 1, for example, user's using terminal shoots to obtain a photo X, terminal is found in presetting database Matched with photo X for picture A.Three sections of words, wherein first paragraph character associative audio first, second segment word are included in picture A Associated audio second, the 3rd section of character associative audio third.For example, as shown in figure 1, user encloses on screen has selected second segment word institute Region, then terminal can correspond to play audio second.
The text in a certain object (such as photo) is entered it is understood that the present embodiment can be realized on mobile terminals The function that row point is read, this mode have that cost is low, convenience is good and other effects.
It is understood that the executive agent of the embodiment of the present application can be the shifting of smart mobile phone or tablet personal computer etc. Dynamic terminal device.
Referring to Fig. 2, the schematic flow sheet of the method for the lookup matching object that Fig. 2, which is the embodiment of the present application, to be provided, flow It can include:
In step S101, when getting the target point reading object for needing to be matched, looked into default memory space The target sample that object matching is read with the target point is looked for, being stored with playing progress rate in the default memory space meets preparatory condition The matched sample of multimedia file association.
Before realizing read-on-command function on mobile terminals, mobile terminal need first to obtain read sample (such as photo or coding) with And multimedia file sample (such as audio or video).Then, a reading sample and multimedia file sample are associated together, and will Point reads sample and multimedia sample is stored in presetting database.Wherein, point, which reads sample, can also be referred to as matched sample, be used for When mobile terminal realizes read-on-command function and needs that user shoots to obtain carry out a photo read or coding is matched.It is newborn Into matched sample can be saved in presetting database.
So, when realizing read-on-command function on mobile terminals, terminal, which can first shoot one, to be needed to carry out a photograph read Piece, i.e. target point read object.Afterwards, mobile terminal can search the sample that object matching is read with the target point in presetting database This.If the sample that object matching is read with the target point in presetting database be present, then mobile terminal can plays and phase The multimedia file for the sample association matched somebody with somebody.However, in correlation technique, because the sample size preserved in presetting database is more, Cause mobile terminal searched in presetting database with target point read object matching sample when, its matching efficiency is relatively low.
In the step S101 of the embodiment of the present application, when getting the target point reading object for needing to be matched, terminal The target sample that object matching is read with the target point can be first searched in default memory space.Wherein, the default memory space In be stored with playing progress rate meet preparatory condition multimedia file association matched sample.
Need to carry out its content a photo M read for example, user's using terminal have taken one, i.e. target point reading pair As.So, terminal can gets photo M.Afterwards, terminal can be preferentially at default file folder (i.e. default memory space) It is middle to search the photo (i.e. target sample) matched with photo M.Wherein, playing progress rate satisfaction is preserved in the default memory space The matched sample of the multimedia file association of preparatory condition.
In the present embodiment, terminal can pre-set a presetting database and default memory space.Need what is illustrated It is that above-mentioned default memory space is different from above-mentioned presetting database, and is independently of a memory space of presetting database.In advance If database can be used for preserving newly-generated matched sample.That is, newly-generated matched sample can be saved in default first In database, therefore the matched sample quantity preserved in presetting database is larger.And default memory space (such as default file folder) The playing progress rate of its association multimedia file of the matched sample of middle preservation meets preparatory condition.Therefore preserved in default memory space Matched sample quantity it is smaller.
If the sample that object matching is read with target point is not found in default memory space, then terminal can perform Other operations.
If the sample that object matching is read with target point is found in default memory space, then into step S102.
In step s 102, if the target sample that object matching is read with the target point be present in the default memory space, Obtain the destination multimedia file associated with the target sample.
For example terminal finds the sample photo N for carrying out a photo M read with needs and matching in default file folder. In this case, terminal can obtain the multimedia file associated with photo N, i.e. destination multimedia file, for example, audio n。
In step s 103, the destination multimedia file is played out.
For example after audio n is got, terminal can play out to audio n.
It is understood that in the embodiment of the present application, after the target point reading object for needing to be matched is got, terminal The target sample that object matching is read with the target point can be preferentially searched in default memory space.Wherein, the default storage is empty Between the playing progress rate of multimedia file of the sample of middle preservation its association meet preparatory condition.If find target sample, then Terminal can obtain the multimedia file associated with the target sample and play out.Because playing progress rate meets preparatory condition Multimedia file very likely needs to play again, therefore the embodiment of the present application can improve the effect that terminal searches matching object Rate.
Referring to Fig. 3, another flow signal of the method for the lookup matching object that Fig. 3, which is the embodiment of the present application, to be provided Figure, flow can include:
In step s 201, after terminating to play multimedia file, terminal obtains the playing progress rate of the multimedia file.
For example after terminating to play the multimedia file that user's point is read, terminal can first obtain broadcasting for the multimedia file Degree of putting into.It should be noted that terminate to play multimedia file different from pause broadcasting multimedia file.
For example, user's using terminal have taken one and need to carry out its content a photo Y read before.Then, terminal The photo B to match with photo Y is found in the matched sample (point reads sample) of presetting database.Wherein, photo B is associated with One section audio b.During audio b is played, user, which has exited, uses read-on-command function.That is, terminal can detect that end is broadcast Playback frequency b.In this case, terminal can first obtain audio b playing progress rate.
After audio b playing progress rate is got, terminal can detect whether the playing progress rate meets preparatory condition.One In kind embodiment, the preparatory condition can be intended to indicate that whether user needs then to play what is do not finished in audio b Part.
If detecting, the playing progress rate is unsatisfactory for preparatory condition, then it is considered that user need not then play sound next time Part not broadcast in frequency b, now terminal can perform other operations.
If detecting, the playing progress rate meets preparatory condition, then into step S202.
In step S202, if detecting, the playing progress rate of the multimedia file meets preparatory condition, terminal obtain with The sample of multimedia file association.
For example terminal detects that audio b playing progress rate meets preparatory condition, now terminal can obtain and audio b The sample of association.That is, terminal can obtain photo B.
In step S203, terminal by with the Sample preservation that the multimedia file associates to default memory space.
For example after photo B is got, photo B can be saved in default memory space by terminal.It is for example, default Memory space can be that a default file presss from both sides.For example, photo B can be replicated portion to default text by terminal from presetting database In part folder.
In the present embodiment, terminal can pre-set a presetting database and default memory space.Need what is illustrated It is that above-mentioned default memory space is different from above-mentioned presetting database, and is independently of a memory space of presetting database.In advance If database can be used for preserving newly-generated matched sample.That is, newly-generated matched sample can be saved in default first In database, therefore the matched sample quantity preserved in presetting database is larger.And default memory space (such as default file folder) The playing progress rate of its association multimedia file of the matched sample of middle preservation meets preparatory condition.Therefore preserved in default memory space Matched sample quantity it is smaller.
In one embodiment, whether the playing progress rate of terminal detection multimedia file meets that preparatory condition can wrap Include:Whether terminal detection multimedia file playing progress rate is less than or equal to default progress.For example, default progress can with 95%, etc. Deng, it is to be understood that the restriction not formed to the present embodiment of illustrating herein.
That is, if terminal detects that the playing progress rate of the multimedia file meets preparatory condition in execution, obtain more with this During the sample of media file association, it can include:
If detecting, the playing progress rate of the multimedia file is less than or equal to default progress, obtains and the multimedia file The sample of association.
If for example, detect that audio b playing progress rate is more than default progress, then it is considered that audio b is broadcast substantially Discharge complete.Such as audio b playing progress rate is 97%, you can is not broadcast with thinking that user need not be then played in audio b next time The part put, now terminal can perform other operations.
If detecting, audio b playing progress rate is less than or equal to default progress, such as terminal detects that audio b broadcasting is entered Spend for 70%, less than default progress 95%.That is, audio b also has a big chunk audio not yet to finish.In such case Under, it is believed that user very likely needs then to play in audio b when using read-on-command function next time does not play part.This When, the photo B associated with audio b can be obtained with triggering terminal, and photo B is saved in default file folder.
In one embodiment, if terminal is performing the playing progress rate for detecting the multimedia file less than or equal to pre- If progress, then when obtaining the sample associated with the multimedia file, can include:
If detecting, the playing progress rate of the multimedia file is less than or equal to default progress, and terminal detects multimedia text Whether part is to be chosen to play first by user;
If so, then terminal obtains the sample associated with the multimedia file.
For example terminal detects that audio b playing progress rate is 70%, less than default progress 95%, now terminal can be first Detect whether audio b is to be chosen to play first by user.For example, terminal can detect whether audio b is to be read for the first time by.
If detecting, audio b plays to be chosen first by user, then it is considered that when user uses read-on-command function next time When, there is great probability to need then to play the audio-frequency unit not finished in audio b.In such a case, it is possible to trigger Terminal obtains the object matching sample photo B associated with audio b.
If it is not to be chosen to play by user first to detect audio b, such as when using read-on-command function before, user's shooting Photo and presetting database in photo B the match is successful, and broadcasting was carried out to audio b.In such a case, it is possible to think User had listened audio b content, and now terminal may not necessarily obtain the object matching sample photo associated with audio b B。
In another embodiment, if detecting, audio b is not to be chosen to play by user first, and terminal can also be further Whether detection audio b was completely played.If detecting, audio b was completely played, then terminal may not necessarily be obtained with being somebody's turn to do The object matching sample photo B of audio b associations.If detecting, audio b was not played completely, then terminal still can obtain The object matching sample photo B associated with audio b.
It is understood that above-mentioned steps S201 to S203 is the multimedia text that terminal meets playing progress rate preparatory condition The matched sample of part association is saved in a process of default memory space.This process is to be realized in user using mobile terminal Carried out during read-on-command function.By this process, mobile terminal constructs default memory space and in default memory space Store the matched sample for meeting certain condition.
In step S204, when getting the target point reading object for needing to be matched, terminal is in default memory space The target sample of object matching is read in middle lookup with the target point, and being stored with playing progress rate in the default memory space meets default bar The matched sample of the multimedia file association of part.
For example when getting the target point reading object for needing to be matched, terminal can be first in default memory space Search the target sample that object matching is read with the target point.Wherein, playing progress rate is stored with the default memory space to meet in advance If the matched sample of the multimedia file association of condition.
Need to carry out its content a photo M read for example, user's using terminal have taken one, i.e. target point reading pair As.So, terminal can gets photo M.Afterwards, terminal can be preferentially at default file folder (i.e. default memory space) It is middle to search the photo (i.e. target sample) matched with photo M.Wherein, playing progress rate is preserved in the default memory space to be less than Or the matched sample of the multimedia file association equal to default progress.
If the sample that object matching is read with target point is not found in default memory space, then terminal can perform Other operations.For example, terminal can continue to search for reading the sample of object matching with target point into presetting database.
If the sample that object matching is read with target point is found in default memory space, then into step S205.
In step S205, if the target sample that object matching is read with the target point be present in the default memory space, Terminal obtains the destination multimedia file associated with the target sample.
For example terminal finds the sample photo N for carrying out a photo M read with needs and matching in default file folder. In this case, terminal can obtain the multimedia file associated with photo N, i.e. destination multimedia file, for example, audio n。
In step S206, the terminal-pair destination multimedia file plays out.
For example after audio n is got, terminal can play out to audio n.
In step S207, if detecting, the quantity of the sample for being used to match preserved in default memory space reaches default Numerical value, then at the time of terminal obtains each Sample preservation to default memory space.
For example terminal can detect the quantity of the sample for being used to match preserved in default memory space periodically or in real time Whether default value is reached.
If detect that the quantity of the sample for being used to match preserved in default memory space is not up to default value, then Terminal can perform other operations.
If detect that the quantity of the sample for being used to match preserved in default memory space reaches default value, then can To think that default memory space is full.In this case, terminal can obtain each Sample preservation to default memory space when Carve.
For example, in one embodiment, when default memory space receives the sample that one newly adds, terminal can be remembered The Sample preservation of the new addition is recorded to the time point of default memory space.
In step S208, terminal will preserve sample earliest at the time of to default memory space from default memory space Delete.
Such as at the time of each Sample preservation to default memory space is got after, terminal will can be preserved to default Earliest sample is deleted from default memory space at the time of memory space.
By above-mentioned deletion action, it is other for subsequently preserving a part of space can be saved in default memory space Sample.
It is understood that comparatively, preserve at the time of default memory space earlier matched sample by user again It is secondary to choose and to continue to play the probability of multimedia file portions not finished smaller, therefore will can preserve to default storage Matched sample is deleted earlier at the time of space.
In another embodiment, terminal can also exceed the holding time in default memory space of preset duration Deleted with sample.For example, terminal can delete the matched sample being saved in default memory space more than 24 hours.Can be with Understand, the matched sample that the holding time in default memory space can also be exceeded to preset duration is considered by user again The probability chosen and continue to play the multimedia file portions not finished is smaller, therefore can delete them.
Fig. 4 A to Fig. 4 D are referred to, Fig. 4 A to Fig. 4 D are the field of the method for the lookup matching object that the embodiment of the present application provides Scape schematic diagram.
For example user has made multiple points using terminal and read sample (such as photo) in advance, and read sample with each point and associate Multimedia file sample (such as audio or video).Then, a reading sample and multimedia file sample are associated together by terminal, And a reading sample and multimedia sample are stored in presetting database.Wherein, point, which reads sample, can also be referred to as matched sample, For when terminal realizes read-on-command function and needs that user shoots to obtain carry out a photo read or coding is matched.
In addition, terminal also pre-sets default file folder, meet that the point of certain preparatory condition reads sample for storing This.For example, the quantity that the point stored in current preset file reads sample is zero.
Afterwards, user's using terminal realizes read-on-command function.Using terminal have taken one and needs to its content user before this A photo F1 read is carried out, as shown in Figure 4 A.
A reading sample is not stored temporarily after photo F1 is got, in being pressed from both sides due to default file, therefore terminal can first exist In presetting database, detect whether the matched sample matched with photo F1 be present.
For example, terminal finds the photo G matched with photo F1 in presetting database.Afterwards, terminal gets and shone The audio g of piece G associations.After audio g is found, terminal can play audio g, as shown in Figure 4 B.
During audio g is played, as shown in Figure 4 C, when audio g has played 3 minutes, terminal detects that user exists The button for terminating to play audio g is clicked in terminal.Now, terminal can obtain audio g playing progress rate.For example, audio g Total duration be 4 minutes, then audio g playing progress rate is 75%.
After audio g playing progress rate is got, terminal can detect the playing progress rate whether be less than or equal to preset into Degree.For example, default progress can be with 95%.
, can because terminal detects that audio g playing progress rate 75% is less than default progress 95%, therefore in this case Very likely to need then to play the audio-frequency unit not played in audio g when thinking that user uses read-on-command function next time.
At this point it is possible to which triggering terminal obtains the photo G associated with audio g, and photo G is replicated into portion by presetting database In being pressed from both sides to default file.
After a few hours, user reuses read-on-command function.For example, as shown in Figure 4 D, user, which have taken one, to be needed to it Content carries out a photo F2 read, and the quantity that the point stored in now being pressed from both sides due to default file reads sample is not zero, therefore terminal It can preferentially search whether there is the sample matched with photo F2 in default file folder.
For example, terminal detects that the sample matched in default file folder with photo F2 is photo G, now terminal can obtain The audio g associated with photo G, and commence play out audio g content.
Afterwards, terminal can be by with needing to carry out a photo F2 photo G that the match is successful read from default file folder Middle deletion.
It is understood that due to preserving substantial amounts of matched sample in presetting database, if therefore in preset data The sample with a certain object matching is searched, it is necessary to consume the plenty of time, i.e. the speed of lookup matching object is slower, and searches effect Rate is relatively low.And what is preserved in default file folder is only that playing progress rate is less than or equal to that the multimedia file of default progress associates Quantity with sample, therefore the matched sample in default file folder is less than presetting database.Also, because playing progress rate is less than Or very likely put reading again by user equal to the multimedia file of default progress, so when user reuses read-on-command function When, by way of preferentially searching and treating a sample for reading object matching in default file folder, lookup matching pair can be improved The speed of elephant, and improve matching efficiency.
Referring to Fig. 5, the structural representation of the device for the lookup matching object that Fig. 5, which is the embodiment of the present application, to be provided.Search The device 300 of matching object can include:Searching modul 301, acquisition module 302, and playing module 303.
Searching modul 301, for when get need the target point that is matched to read object when, in default memory space The target sample that object matching is read with the target point is searched, playing progress rate is stored with the default memory space and meets to preset The matched sample of the multimedia file association of condition.
For example when getting the target point reading object for needing to be matched, searching modul 301 can be first in default storage The target sample that object matching is read with the target point is searched in space.Wherein, it is stored with playing progress rate in the default memory space Meet the matched sample of the multimedia file association of preparatory condition.
Need to carry out its content a photo M read for example, user's using terminal have taken one, i.e. target point reading pair As.So, the can of searching modul 301 gets photo M.Afterwards, searching modul 301 can be pressed from both sides preferentially in default file The photo (i.e. target sample) matched with photo M is searched in (i.e. default memory space).Wherein, protected in the default memory space There is the matched sample that playing progress rate meets the multimedia file association of preparatory condition.
In the present embodiment, terminal can pre-set a presetting database and default memory space.Need what is illustrated It is that above-mentioned default memory space is different from presetting database, and is independently of a memory space of presetting database.Present count It can be used for preserving newly-generated matched sample according to storehouse.That is, newly-generated matched sample can be saved in preset data first In storehouse, therefore the matched sample quantity preserved in presetting database is larger.And protected in default memory space (such as default file folder) The playing progress rate of its association multimedia file of the matched sample deposited meets preparatory condition.Therefore preserved in default memory space Quantity with sample is smaller.
If the sample that object matching is read with target point is not found in default memory space, then terminal can perform Other operations.For example, terminal can continue to search the sample for reading object matching with the target point in presetting database.
Acquisition module 302, if for the target that object matching is read with the target point in the default memory space be present Sample, then obtain the destination multimedia file associated with the target sample.
For example searching modul 301 finds the sample photograph for carrying out a photo M read with needs and matching in default file folder Piece N.In this case, acquisition module 302 can obtain the multimedia file associated with photo N, i.e. destination multimedia text Part, for example, audio n.
Playing module 303, for being played out to the destination multimedia file.
For example after acquisition module 302 gets audio n, playing module 303 can play out to audio n.
It is understood that in the embodiment of the present application, after the target point reading object for needing to be matched is got, terminal The target sample that object matching is read with the target point can be preferentially searched in default memory space.Wherein, the default storage is empty Between the playing progress rate of multimedia file of the sample of middle preservation its association meet preparatory condition.If find target sample, then Terminal can obtain the multimedia file associated with the target sample and play out.Because playing progress rate meets preparatory condition Multimedia file very likely needs to play again, therefore the embodiment of the present application can improve the effect that terminal searches matching object Rate.
Also referring to Fig. 6, Fig. 6 is another structural representation of the device for the lookup matching object that the embodiment of the present application provides Figure.In one embodiment, searching the device 300 of matching object can also include:Preserving module 304 and removing module 305.
Preserving module 304, for after terminating to play multimedia file, obtaining the playing progress rate of the multimedia file; If detecting, the playing progress rate of the multimedia file meets preparatory condition, obtains the sample associated with the multimedia file This;By with the Sample preservation that the multimedia file associates to default memory space.
For example after terminating to play the multimedia file that user's point is read, preserving module 304 can first obtain multimedia text The playing progress rate of part.It should be noted that terminate to play multimedia file different from pause broadcasting multimedia file.
For example, user's using terminal have taken one and need to carry out its content a photo Y read before.Then, terminal The photo B to match with photo Y is found in the matched sample (point reads sample) of presetting database.Wherein, photo B is associated with One section audio b.During audio b is played, user, which has exited, uses read-on-command function.That is, terminal can detect that end is broadcast Playback frequency b.In this case, terminal can first obtain audio b playing progress rate.
After audio b playing progress rate is got, terminal can detect whether the playing progress rate meets preparatory condition.One In kind embodiment, the preparatory condition can be intended to indicate that whether user needs then to play what is do not finished in audio b Part.
If detecting, the playing progress rate is unsatisfactory for preparatory condition, then it is considered that user need not then play sound next time Part not broadcast in frequency b, now terminal can perform other operations.
If terminal detects that audio b playing progress rate meets preparatory condition, now preserving module 304 can obtain and the sound The sample of frequency b associations.That is, preserving module 304 can obtain photo B.
After photo B is got, photo B can be saved in default memory space by preserving module 304.It is for example, pre- Pressed from both sides if memory space can be a default file.For example, photo B can be replicated one by preserving module 304 from presetting database During part is pressed from both sides to default file.
In one embodiment, the preserving module 304 can be used for:If detect the broadcasting of the multimedia file Progress is less than or equal to default progress, then obtains the sample associated with the multimedia file.
For example audio b playing progress rate is more than default progress if detecting, then it is considered that audio b is broadcast substantially Discharge complete.Such as audio b playing progress rate is 97%, you can is not broadcast with thinking that user need not be then played in audio b next time The part put, now terminal can perform other operations.
If detecting, audio b playing progress rate is less than or equal to default progress, such as preserving module 304 detects audio b Playing progress rate be 70%, less than default progress 95%.That is, audio b also has a big chunk audio not yet to finish.At this In the case of kind, it is believed that user very likely needs then to play the non-playback unit in audio b when using read-on-command function next time Point.At this point it is possible to which triggering preserving module 304 obtains the photo B associated with audio b, and photo B is saved in default file folder In.
In one embodiment, the preserving module 304 can be used for:If detect the broadcasting of the multimedia file Progress is less than or equal to default progress, then detects whether the multimedia file is to be chosen to play first by user;If detect The multimedia file plays to be chosen first by user, then obtains the sample associated with the multimedia file.
For example preserving module 304 detects that audio b playing progress rate is 70%, less than default progress 95%, now preserves Module 304 can detect whether audio b is to be chosen to play first by user again.For example, preserving module 304 can detect the sound Whether frequency b is to be read for the first time by.
If detecting, audio b plays to be chosen first by user, then it is considered that when user uses read-on-command function next time When, there is great probability to need then to play the audio-frequency unit not finished in audio b.In such a case, it is possible to trigger Preserving module 304 obtains the object matching sample photo B associated with audio b.
If it is not to be chosen to play by user first to detect audio b, such as when using read-on-command function before, user's shooting Photo and presetting database in photo B the match is successful, and broadcasting was carried out to audio b.In such a case, it is possible to think User had listened audio b content, and now terminal may not necessarily obtain the object matching sample photo associated with audio b B。
Removing module 305, if for detecting that the quantity of the sample for being used to match preserved in default memory space reaches Default value, then at the time of obtaining each Sample preservation to default memory space;It is earliest at the time of preserving to default memory space Sample deleted from default memory space.
For example removing module 305 can detect the sample for being used to match preserved in default memory space periodically or in real time Whether this quantity reaches default value.
If detect that the quantity of the sample for being used to match preserved in default memory space is not up to default value, then Terminal can perform other operations.
If detect that the quantity of the sample for being used to match preserved in default memory space reaches default value, then can To think that default memory space is full.In this case, it is empty to default storage can to obtain each Sample preservation for removing module 305 Between at the time of.
For example, in one embodiment, when default memory space receives the sample that one newly adds, removing module 305 can record the Sample preservation of the new addition to the time point of default memory space.
After at the time of each Sample preservation to default memory space is got, removing module 305 will can be preserved to pre- If earliest sample is deleted from default memory space at the time of memory space.
The embodiment of the present application provides a kind of computer-readable storage medium, computer program is stored thereon with, when described When computer program performs on computers so that the computer performs the side of the lookup matching object provided such as the present embodiment Step in method.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling The computer program stored in memory is stated, for the step in the method for the lookup matching object for performing the present embodiment offer.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet personal computer or smart mobile phone.Referring to Fig. 7, Fig. 7 is the structural representation for the mobile terminal that the embodiment of the present application provides.
The mobile terminal 400 can include the parts such as loudspeaker 401, memory 402, processor 403, display unit 404. It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 7 does not form the restriction to mobile terminal, can wrap Include than illustrating more or less parts, either combine some parts or different parts arrangement.
Loudspeaker 401 can be used for playing audio file etc..
Memory 402 can be used for storage application program and data.Include and can hold in the application program that memory 402 stores Line code.Application program can form various functions module.Processor 403 is stored in the application journey of memory 402 by operation Sequence, so as to perform various function application and data processing.
Processor 403 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the application program being stored in memory 402, and call and be stored in memory 402 Data, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.
Display unit 404 can be the display screen of terminal, can show video file etc..
In the present embodiment, the processor 403 in mobile terminal can be according to following instruction, will be one or more Executable code corresponding to the process of application program is loaded into memory 402, and is stored in storage by processor 403 to run Application program in device 402, so as to realize step:
When getting the target point reading object for needing to be matched, searched and the target point in default memory space The target sample of object matching is read, the multimedia file that playing progress rate meets preparatory condition is stored with the default memory space The matched sample of association;
If in the default memory space exist with the target point read object matching target sample, obtain with it is described The destination multimedia file of target sample association;
The destination multimedia file is played out.
Referring to Fig. 8, mobile terminal 500 can include loudspeaker 501, memory 502, processor 503, display unit 504th, the part such as output unit 505, input block 506, microphone 507.
Loudspeaker 501 can be used for playing audio file etc..
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 503 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the application program being stored in memory 502, and call and be stored in memory 502 Data, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.
Display unit 504 can be the display screen of terminal, can show video file etc..
Output unit 505 can be used for display by the information of user's input or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Output unit may include display panel.
Input block 506 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.
Microphone 507 can be used for picking up the voice that user sends.
In the present embodiment, the processor 503 in mobile terminal can be according to following instruction, will be one or more Executable code corresponding to the process of application program is loaded into memory 502, and is stored in storage by processor 503 to run Application program in device 502, so as to realize step:
When getting the target point reading object for needing to be matched, searched and the target point in default memory space The target sample of object matching is read, the multimedia file that playing progress rate meets preparatory condition is stored with the default memory space The matched sample of association;
If in the default memory space exist with the target point read object matching target sample, obtain with it is described The destination multimedia file of target sample association;
The destination multimedia file is played out.
In one embodiment, processor 503 can also carry out:After terminating to play multimedia file, described in acquisition The playing progress rate of multimedia file;If detecting, the playing progress rate of the multimedia file meets preparatory condition, acquisition and institute State the sample of multimedia file association;By with the Sample preservation that the multimedia file associates to default memory space.
In one embodiment, if processor 503 is detecting the playing progress rate of the multimedia file described in execution Meet preparatory condition, then when obtaining the sample associated with the multimedia file, can perform:If detect the multimedia text The playing progress rate of part is less than or equal to default progress, then obtains the sample associated with the multimedia file.
In one embodiment, if processor 503 performs and described detects that the playing progress rate of the multimedia file is small In or equal to default progress, then when obtaining the sample associated with the multimedia file, can perform:If detect more matchmakers The playing progress rate of body file is less than or equal to default progress, then detects whether the multimedia file is to be chosen to broadcast first by user Put;If detecting, the multimedia file plays to be chosen first by user, obtains the sample associated with the multimedia file This.
In one embodiment, processor 503 can also carry out:If detecting, what is preserved in default memory space is used for The quantity of the sample of matching reaches default value, then at the time of obtaining each Sample preservation to default memory space;It will preserve to pre- If earliest sample is deleted from default memory space at the time of memory space.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description above with respect to the method for searching matching object is may refer to, here is omitted.
The device for the lookup matching object that the embodiment of the present application provides matches object with the lookup in foregoing embodiments Method belong to same design, it is real that the method for searching matching object can be run on the device for searching matching object The either method provided in example is applied, its specific implementation process refers to the embodiment of the method for searching matching object, herein no longer Repeat.
It should be noted that for the method for matching object is searched described in the embodiment of the present application, ordinary skill Personnel are appreciated that to realize all or part of flow for the method that matching object is searched described in the embodiment of the present application, are to pass through Computer program controls the hardware of correlation to complete, and the computer program can be stored in a computer read/write memory medium In, such as storage in memory, and by least one computing device, may include to search matching pair as described in the process of implementation The flow of the embodiment of the method for elephant.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the device of lookup matching object to the embodiment of the present application, its each functional module can be integrated in one In process chip or modules are individually physically present, can also two or more modules be integrated in a mould In block.Above-mentioned integrated module can both be realized in the form of hardware, can also be realized in the form of software function module. If the integrated module is realized in the form of software function module and is used as independent production marketing or in use, can also It is stored in a computer read/write memory medium, the storage medium is for example read-only storage, disk or CD etc..
Method, apparatus, storage medium and the electricity of a kind of lookup matching object provided above the embodiment of the present application Sub- equipment is described in detail, and specific case used herein is set forth to the principle and embodiment of the present invention, The explanation of above example is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the skill of this area Art personnel, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this Description should not be construed as limiting the invention.

Claims (10)

  1. A kind of 1. method for searching matching object, it is characterised in that including:
    When getting the target point reading object that needs are matched, searched in default memory space and target point reading pair As the target sample of matching, the multimedia file association that playing progress rate meets preparatory condition is stored with the default memory space Matched sample;
    If the target sample that object matching is read with the target point in the default memory space be present, obtain and the target The destination multimedia file of sample association;
    The destination multimedia file is played out.
  2. 2. the method according to claim 1 for searching matching object, it is characterised in that methods described also includes:
    After terminating to play multimedia file, the playing progress rate of the multimedia file is obtained;
    If detecting, the playing progress rate of the multimedia file meets preparatory condition, obtains what is associated with the multimedia file Sample;
    By with the Sample preservation that the multimedia file associates to the default memory space.
  3. 3. the method according to claim 2 for searching matching object, it is characterised in that if described detect the multimedia The playing progress rate of file meets preparatory condition, then obtains the sample associated with the multimedia file, including:
    If detecting, the playing progress rate of the multimedia file is less than or equal to default progress, obtains and the multimedia file The sample of association.
  4. 4. the method according to claim 3 for searching matching object, it is characterised in that if described detect the multimedia The playing progress rate of file is less than or equal to default progress, then obtains the sample associated with the multimedia file, including:
    If detecting, the playing progress rate of the multimedia file is less than or equal to default progress, and detecting the multimedia file is It is no to be played to be chosen first by user;
    If so, then obtain the sample associated with the multimedia file.
  5. 5. the method according to claim 2 for searching matching object, it is characterised in that methods described also includes:
    If detecting, the quantity of the sample for being used to match preserved in default memory space reaches default value, obtains each sample At the time of preservation to default memory space;
    The sample for preserving earliest at the time of to default memory space is deleted from default memory space.
  6. A kind of 6. device for searching matching object, it is characterised in that including:
    Searching modul, for when get need the target point that is matched to read object when, searched in default memory space with The target point reads the target sample of object matching, and being stored with playing progress rate in the default memory space meets preparatory condition The matched sample of multimedia file association;
    Acquisition module, if for the target sample that object matching is read with the target point in the default memory space be present, Obtain the destination multimedia file associated with the target sample;
    Playing module, for being played out to the destination multimedia file.
  7. 7. the device according to claim 6 for searching matching object, it is characterised in that described device also includes:Preserve mould Block, it is used for
    After terminating to play multimedia file, the playing progress rate of the multimedia file is obtained;
    If detecting, the playing progress rate of the multimedia file meets preparatory condition, obtains what is associated with the multimedia file Sample;
    By with the Sample preservation that the multimedia file associates to the default memory space.
  8. 8. the device according to claim 7 for searching matching object, it is characterised in that the preserving module is used for:
    If detecting, the playing progress rate of the multimedia file is less than or equal to default progress, obtains and the multimedia file The sample of association.
  9. 9. a kind of storage medium, is stored thereon with computer program, it is characterised in that when the computer program on computers During execution so that the method that the computer performs the lookup matching object as any one of claim 1 to 5.
  10. 10. a kind of electronic equipment, including memory, processor, it is characterised in that the processor is by calling the memory The computer program of middle storage, the method for performing the lookup matching object as any one of claim 1 to 5.
CN201711087243.3A 2017-11-07 2017-11-07 Method and device for searching matching object, storage medium and electronic equipment Active CN107885828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711087243.3A CN107885828B (en) 2017-11-07 2017-11-07 Method and device for searching matching object, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711087243.3A CN107885828B (en) 2017-11-07 2017-11-07 Method and device for searching matching object, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107885828A true CN107885828A (en) 2018-04-06
CN107885828B CN107885828B (en) 2020-01-31

Family

ID=61779228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711087243.3A Active CN107885828B (en) 2017-11-07 2017-11-07 Method and device for searching matching object, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107885828B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322874A (en) * 1999-05-10 2000-11-24 Sony Corp Information/data processing apparatus, information/data reproducing method, video editting apparatus, computer readable recording medium, and system-on-chip type integrated device
CN101916302A (en) * 2010-09-01 2010-12-15 中国地质大学(武汉) Three-dimensional spatial data adaptive cache management method and system based on Hash table
CN102081625A (en) * 2009-11-30 2011-06-01 中国移动通信集团北京有限公司 Data query method and query server
CN103475914A (en) * 2013-08-28 2013-12-25 小米科技有限责任公司 Video playing method, video playing device, terminal equipment and server
CN107085592A (en) * 2017-03-02 2017-08-22 深圳市创想天空科技股份有限公司 Early education method and device based on cognitive card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322874A (en) * 1999-05-10 2000-11-24 Sony Corp Information/data processing apparatus, information/data reproducing method, video editting apparatus, computer readable recording medium, and system-on-chip type integrated device
CN102081625A (en) * 2009-11-30 2011-06-01 中国移动通信集团北京有限公司 Data query method and query server
CN101916302A (en) * 2010-09-01 2010-12-15 中国地质大学(武汉) Three-dimensional spatial data adaptive cache management method and system based on Hash table
CN103475914A (en) * 2013-08-28 2013-12-25 小米科技有限责任公司 Video playing method, video playing device, terminal equipment and server
CN107085592A (en) * 2017-03-02 2017-08-22 深圳市创想天空科技股份有限公司 Early education method and device based on cognitive card

Also Published As

Publication number Publication date
CN107885828B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN106610790B (en) Method and device for deleting repeated data
US10664443B2 (en) Method and apparatus for presenting to-be-cleaned data, and electronic device
CN108062760B (en) Video editing method and device and intelligent mobile terminal
CN110457235B (en) Memory compression method, device, terminal and storage medium
CN104199913B (en) Terminal resource cleaning method and device and terminal
CN107864405B (en) Viewing behavior type prediction method, device and computer readable medium
CN107948730B (en) Method, device and equipment for generating video based on picture and storage medium
CN104599692A (en) Recording method and device and recording content searching method and device
US20170171334A1 (en) Single-account multiple-preference recommendation method for video website and electronic device
CN110874358B (en) Multi-attribute column storage and retrieval method and device and electronic equipment
CN107748615A (en) Control method, device, storage medium and the electronic equipment of screen
CN105760483A (en) Saving method, retrieval method and retrieval system for multi-media files
CN106777170A (en) Strengthen the medical information document handling system and method for server access speed
CN103310001A (en) Method and device for setting video list
CN101547303A (en) Imaging apparatus, character information association method and character information association program
CN108093311B (en) Multimedia file processing method and device, storage medium and electronic equipment
CN105337845A (en) Voice commenting server and method
CN113241097A (en) Recording method, recording device, electronic equipment and readable storage medium
CN107885828A (en) Search method, apparatus, storage medium and the electronic equipment of matching object
CN107766563A (en) Method, apparatus, storage medium and the electronic equipment updated the data
CN105528344A (en) Method and apparatus for determining media information of read data in storage device
CN111586329A (en) Information display method and device and electronic equipment
CN116017043A (en) Video generation method, device, electronic equipment and storage medium
WO2018177414A1 (en) Data processing method, data processing device, computing device, and storage medium
CN109040848A (en) Barrage is put upside down method, apparatus, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant