CN107885828B - Method and device for searching matching object, storage medium and electronic equipment - Google Patents

Method and device for searching matching object, storage medium and electronic equipment Download PDF

Info

Publication number
CN107885828B
CN107885828B CN201711087243.3A CN201711087243A CN107885828B CN 107885828 B CN107885828 B CN 107885828B CN 201711087243 A CN201711087243 A CN 201711087243A CN 107885828 B CN107885828 B CN 107885828B
Authority
CN
China
Prior art keywords
multimedia file
preset
sample
target
storage space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711087243.3A
Other languages
Chinese (zh)
Other versions
CN107885828A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses matching object searching methods, devices, storage media and electronic equipment.

Description

Method and device for searching matching object, storage medium and electronic equipment
Technical Field
The application belongs to the technical field of terminals, and particularly relates to matching object searching methods, devices, storage media and electronic equipment.
Background
The point reading device can identify and position the point reading object according to the coordinate or code of the point reading object. The coding mode is to print codes on a book, identify the codes by using a reading pen to determine contents, and play corresponding audio according to the contents. The coordinate mode is that the position of the point reading machine is clicked by the point reading pen to determine the coordinate, and after the coordinate is confirmed, the corresponding audio is played in combination with the current page of the point reading equipment.
Disclosure of Invention
The embodiment of the application provides methods and devices for searching for a matching object, a storage medium and an electronic device, which can improve the efficiency of searching for the matching object by a terminal.
The embodiment of the application provides methods for searching for a matching object, which include:
when a target click-to-read object needing to be matched is obtained, searching a target sample matched with the target click-to-read object in a preset storage space, wherein the preset storage space stores a matching sample associated with a multimedia file of which the playing progress meets a preset condition;
if a target sample matched with the target click-to-read object exists in the preset storage space, acquiring a target multimedia file associated with the target sample;
and playing the target multimedia file.
The embodiment of the present application provides apparatuses for finding a matching object, including:
the searching module is used for searching a target sample matched with a target point reading object in a preset storage space when the target point reading object needing matching is obtained, wherein the preset storage space stores a matching sample associated with a multimedia file of which the playing progress meets a preset condition;
the acquisition module is used for acquiring a target multimedia file associated with the target sample if the target sample matched with the target click-to-read object exists in the preset storage space;
and the playing module is used for playing the target multimedia file.
The embodiment of the present application provides storage media, on which a computer program is stored, which, when executed on a computer, causes the computer to execute the steps in the method for finding a matching object provided in the embodiment of the present application.
The embodiment of the present application further provides electronic devices, which include a memory and a processor, where the processor is configured to execute the steps in the method for finding a matching object provided in the embodiment of the present application by calling the computer program stored in the memory.
When the point reading is realized through the mobile terminal, after the target point reading object needing to be matched is obtained, the terminal can preferentially search the target sample matched with the target point reading object in the preset storage space. And the playing progress of the multimedia file related to the sample stored in the preset storage space meets a preset condition. Since the multimedia file with the playing progress meeting the preset condition is likely to need to be played again, the efficiency of searching the matching object by the terminal can be improved.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a scene schematic diagram of implementing a point-to-read function on a terminal according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a method for searching for a matching object according to an embodiment of the present application.
Fig. 3 is another flowchart illustrating a method for finding a matching object according to an embodiment of the present application.
Fig. 4A to 4D are scene schematic diagrams of a method for finding a matching object according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an apparatus for finding a matching object according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of another of the apparatus for finding a matching object according to the embodiment of the present application.
Fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of another of the mobile terminal provided in the embodiment of the present application.
Detailed Description
The principles of the present invention are illustrated in an appropriate computing environment , which is based on illustrated embodiments of the invention and should not be construed as limiting the invention to other embodiments not described in detail herein.
As will be described in detail below.
In embodiments, the terminal may first obtain a click-to-read sample, which may be a picture, a photograph, or a code, etc. after obtaining the click-to-read sample, the terminal may obtain a multimedia sample, which may be an audio file or a video file, etc. the terminal may then associate the obtained click-to-read sample with the multimedia sample.
It can be understood that, in embodiments, the click-to-read sample and the multimedia sample may be in a corresponding relationship of , may also be in a relationship of to multiple, or in a relationship of multiple pairs of , and the like, which is not specifically limited in this embodiment.
When the click-to-read function is used, a user can shoot photos by using the mobile terminal, or select photos from an album, or scan a certain code, the photos shot by the user, the selected photos or the scanned codes are objects needing to be clicked and read, after the objects needing to be clicked and read are obtained, the terminal can search photos or codes matched with the objects needing to be clicked and read in a preset database, and if the photos or the codes matched with the objects needing to be clicked and read exist in the preset database, the terminal can search multimedia files related to the multimedia files and play the multimedia files.
In embodiments, for example, the click-to-read sample is a photo a, which contains three paragraphs of text, each paragraph of text is associated with paragraphs of audio, then, when the photo a taken by the user matches the photo a in the preset database, since the photo a contains three paragraphs of text, and each paragraph of text is associated with a corresponding paragraph of audio, the user may select to play the audio corresponding to a certain paragraph of text in the photo a by specifically selecting the audio corresponding to the paragraph of text.
Referring to fig. 1, for example, a user uses a terminal to take photos X, and the terminal finds out that the photos a and the photos a matched with the photos X include three sections of characters in a preset database, where the th section of characters is associated with an audio a, the second section of characters is associated with an audio b, and the third section of characters is associated with an audio c.
It can be understood that the embodiment can implement a function of reading a text in an object (such as a photo) on the mobile terminal, and this way has the effects of low cost, good convenience, and the like.
It is understood that the execution subject of the embodiment of the present application may be a mobile terminal device such as a smart phone or a tablet computer.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for searching for a matching object according to an embodiment of the present application, where the flowchart may include:
in step S101, when a target click-to-read object to be matched is acquired, a target sample matched with the target click-to-read object is searched in a preset storage space, where a matching sample associated with a multimedia file whose play progress satisfies a preset condition is stored in the preset storage space.
Before the point reading function is realized on the mobile terminal, the mobile terminal needs to obtain a point reading sample (such as a photo or a code) and a multimedia file sample (such as an audio or a video), then, the point reading sample and the multimedia file sample are associated at , and the point reading sample and the multimedia sample are stored in a preset database.
The mobile terminal can play the multimedia file associated with the matched sample if the sample matched with the target click-to-read object exists in the preset database.
In step S101 in this embodiment of the application, when a target click-to-read object that needs to be matched is obtained, the terminal may first search for a target sample that matches the target click-to-read object in a preset storage space. The preset storage space stores a matching sample associated with the multimedia file, the playing progress of which meets the preset condition.
For example, a user uses the terminal to take photos M whose contents need to be read, i.e., target reading objects, then the terminal can obtain the photos M.
In this embodiment, preset databases and preset storage spaces may be preset in the terminal, it should be noted that the preset storage spaces are different from the preset databases and are storage spaces independent from the preset databases.
If the sample matched with the target click-to-read object is not found in the preset storage space, the terminal can perform other operations.
If the sample matched with the target click-to-read object is found in the preset storage space, the step S102 is performed.
In step S102, if a target sample matching the target point-reading object exists in the preset storage space, a target multimedia file associated with the target sample is obtained.
For example, the terminal finds a sample photo N matching the photo M to be read in a preset folder. In this case, the terminal may acquire the multimedia file associated with the photograph N, i.e. the target multimedia file, for example audio N.
In step S103, the target multimedia file is played.
For example, after the audio n is acquired, the terminal may play the audio n.
It can be understood that, in the embodiment of the present application, after the target click-to-read object to be matched is obtained, the terminal may preferentially search the target sample matched with the target click-to-read object in the preset storage space. And the playing progress of the multimedia file related to the sample stored in the preset storage space meets a preset condition. If the target sample is found, the terminal can acquire the multimedia file associated with the target sample and play the multimedia file. Since the multimedia file with the playing progress meeting the preset condition is likely to need to be played again, the efficiency of searching the matching object by the terminal can be improved.
Referring to fig. 3, fig. 3 is another kinds of flow diagrams of the method for finding a matching object according to the embodiment of the present application, where the flow diagrams may include:
in step S201, after the playing of the multimedia file is finished, the terminal obtains the playing progress of the multimedia file.
For example, after the playing of the multimedia file clicked and read by the user is finished, the terminal may first obtain the playing progress of the multimedia file. It should be noted that ending playing the multimedia file is different from pausing playing the multimedia file.
For example, the terminal has previously taken photos Y whose contents need to be read by a click, and then the terminal finds a photo B matching the photo Y in a matching sample (click sample) of the preset database, where the photo B is associated with segments of audio B.
After obtaining the playing progress of the audio b, the terminal may detect whether the playing progress satisfies a preset condition, in , the preset condition may be to indicate whether the user needs to play the part of the audio b that has not been played next.
If it is detected that the playing progress does not satisfy the preset condition, it can be considered that the user does not need to play the unplayed part of the audio b next time, and at this time, the terminal can perform other operations.
If it is detected that the playing schedule satisfies the predetermined condition, the process proceeds to step S202.
In step S202, if it is detected that the playing progress of the multimedia file satisfies a preset condition, the terminal obtains a sample associated with the multimedia file.
For example, when the terminal detects that the playing progress of the audio b meets the preset condition, the terminal may obtain a sample associated with the audio b. That is, the terminal can acquire the photograph B.
In step S203, the terminal saves the sample associated with the multimedia file to a preset storage space.
For example, the terminal may copy copies of the photo B from the preset database into the preset folder.
In this embodiment, preset databases and preset storage spaces may be preset in the terminal, it should be noted that the preset storage spaces are different from the preset databases and are storage spaces independent from the preset databases.
In embodiments, the terminal detecting whether the playing progress of the multimedia file satisfies the predetermined condition may include the terminal detecting whether the playing progress of the multimedia file is less than or equal to a predetermined progress, for example, the predetermined progress may be 95%, and so on, and it is understood that this example does not limit this embodiment.
That is, when the terminal executes to acquire the sample associated with the multimedia file if it is detected that the playing progress of the multimedia file satisfies the preset condition, the method may include:
and if the playing progress of the multimedia file is detected to be smaller than or equal to the preset progress, obtaining a sample associated with the multimedia file.
For example, if it is detected that the playing progress of the audio b is greater than the preset progress, it may be determined that the audio b has been substantially played. For example, the playing progress of the audio b is 97%, that is, it can be considered that the user does not need to play the unplayed part of the audio b next time, and at this time, the terminal may perform other operations.
If the playing progress of the audio B is detected to be less than or equal to the preset progress, for example, the terminal detects that the playing progress of the audio B is 70% and is less than the preset progress 95%, that is, a large part of the audio B is not played yet.
In , when the terminal performs the step of obtaining the sample associated with the multimedia file if it is detected that the playing progress of the multimedia file is less than or equal to the preset progress, the method may include:
if the playing progress of the multimedia file is detected to be smaller than or equal to the preset progress, the terminal detects whether the multimedia file is selected and played by the user for the first time;
and if so, the terminal acquires a sample associated with the multimedia file.
For example, the terminal detects that the playing progress of the audio b is 70% and is less than the preset progress 95%, at this time, the terminal may first detect whether the audio b is selected to be played by the user for the first time. For example, the terminal may detect whether the audio b is first clicked.
If it is detected that the audio b is selected and played by the user for the first time, it can be considered that when the user uses the click-to-read function for the next time, there is a great probability that the audio part which is not played in the audio b needs to be played next. In this case, the terminal may be triggered to obtain the target matching sample photograph B associated with the audio B.
If the audio B is detected not to be selected and played by the user for the first time, for example, when the click-to-read function is used before, the picture taken by the user is successfully matched with the picture B in the preset database, and the audio B is played. In this case, the user may be considered to have heard the content of the audio B, and at this time, the terminal may not have to acquire the target matching sample photograph B associated with the audio B.
In another embodiment, the terminal may further detect whether audio B was played in its entirety if it is detected that audio B was not selected for playback for the first time by the user.
It is understood that the above steps S201 to S203 are processes in which the terminal saves the matching samples associated with the multimedia files whose playing progress satisfies the preset condition to the preset storage space, the process is performed when the user uses the mobile terminal to implement the point-and-read function, and through the process, the mobile terminal constructs the preset storage space and stores the matching samples satisfying the condition in the preset storage space.
In step S204, when a target click-to-read object to be matched is acquired, the terminal searches for a target sample matched with the target click-to-read object in a preset storage space, where a matching sample associated with a multimedia file whose play progress satisfies a preset condition is stored in the preset storage space.
For example, when a target click-to-read object to be matched is obtained, the terminal may first search for a target sample matched with the target click-to-read object in a preset storage space. The preset storage space stores a matching sample associated with the multimedia file, the playing progress of which meets the preset condition.
For example, photos M of which the contents need to be read by clicking are shot by the user through the terminal, namely, target reading objects.
If the sample matched with the target click-to-read object is not found in the preset storage space, the terminal can perform other operations. For example, the terminal may continue to search for a sample matching the target click-to-read object in the preset database.
If the sample matching the target click-to-read object is found in the preset storage space, the process proceeds to step S205.
In step S205, if a target sample matching the target point-reading object exists in the preset storage space, the terminal obtains a target multimedia file associated with the target sample.
For example, the terminal finds a sample photo N matching the photo M to be read in a preset folder. In this case, the terminal may acquire the multimedia file associated with the photograph N, i.e. the target multimedia file, for example audio N.
In step S206, the terminal plays the target multimedia file.
For example, after the audio n is acquired, the terminal may play the audio n.
In step S207, if it is detected that the number of samples for matching stored in the preset storage space reaches a preset value, the terminal obtains a time when each sample is stored in the preset storage space.
For example, the terminal may periodically or in real time detect whether the number of samples for matching stored in the preset storage space reaches a preset value.
If it is detected that the number of samples for matching saved in the preset storage space does not reach the preset value, the terminal may perform other operations.
If it is detected that the number of samples for matching saved in the preset storage space reaches a preset value, the preset storage space may be considered to be full. In this case, the terminal may obtain a time when each sample is saved to the preset storage space.
For example, in embodiments, when new added samples are received by the preset storage space, the terminal can record the point in time when the new added samples are saved to the preset storage space.
In step S208, the terminal deletes the sample that is stored in the preset storage space and has the earliest time from the preset storage space.
For example, after the time when each sample is saved in the preset storage space is obtained, the terminal may delete the sample with the earliest time when the sample is saved in the preset storage space from the preset storage space.
By the deletion operation, partial space can be saved in the preset storage space for saving other samples later.
It can be understood that, in relative terms, the probability that the matching sample stored in the preset storage space at the earlier time is selected again by the user and the multimedia file part which is not played is played continuously is relatively low, so that the matching sample stored in the preset storage space at the earlier time can be deleted.
For example, the terminal may delete the matching samples which have been saved in the preset storage space for more than 24 hours.
Referring to fig. 4A to 4D, fig. 4A to 4D are scene diagrams illustrating a method for searching for a matching object according to an embodiment of the present disclosure.
For example, a user uses the terminal to make a plurality of click-to-read samples (e.g., photos) and multimedia file samples (e.g., audio or video) associated with the click-to-read samples in advance, and then the terminal associates the click-to-read samples with the multimedia file samples at and stores the click-to-read samples and the multimedia samples in a preset database.
In addition, the terminal is also preset with preset folders for storing the click-to-read samples meeting preset conditions determined by .
The user first takes photos F1 using the terminal, which require reading the content, as shown in fig. 4A.
After the photo F1 is obtained, since the click-to-read sample is not temporarily stored in the preset folder, the terminal may first detect whether there is a matching sample matching the photo F1 in the preset database.
For example, the terminal finds the photograph G matching the photograph F1 in a preset database. After that, the terminal acquires the audio G associated with the photograph G. After finding the audio g, the terminal may play the audio g, as shown in fig. 4B.
In the process of playing the audio g, as shown in fig. 4C, when the audio g is played for 3 minutes, the terminal detects that the user clicks a button for ending playing the audio g on the terminal. At this time, the terminal may obtain the playing progress of the audio g. For example, if the total duration of the audio g is 4 minutes, the playing progress of the audio g is 75%.
After the playing progress of the audio g is obtained, the terminal may detect whether the playing progress is less than or equal to a preset progress. For example, the preset schedule may be 95%.
Since the terminal detects that the playing progress of the audio g is 75% less than the preset progress 95%, in this case, it can be considered that the user most likely needs to play the unplayed audio part of the audio g next time the click-to-read function is used.
At this time, the terminal may be triggered to acquire the photo G associated with the audio G and copy copies of the photo G from the preset database into the preset folder.
For example, as shown in fig. 4D, the user takes photos F2 whose contents need to be read, and at this time, since the number of the read samples stored in the preset folder is not zero, the terminal can preferentially search the preset folder for whether there is a sample matching the photo F2.
For example, the terminal detects that the sample matching the photo F2 in the preset folder is photo G, and at this time, the terminal may acquire the audio G associated with the photo G and start playing the content of the audio G.
Thereafter, the terminal may delete the photograph G that has been successfully matched with the photograph F2 that needs to be read from the preset folder.
It can be understood that, since a large number of matching samples are stored in the preset database, it takes a lot of time to search for a sample matching an object in the preset data, i.e. the speed of searching for a matching object is slow and the searching efficiency is low, and only the matching samples associated with multimedia files whose playing progress is less than or equal to the preset progress are stored in the preset folder, so the number of matching samples in the preset folder is less than the preset database.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus for searching for a matching object according to an embodiment of the present disclosure. The apparatus 300 for finding a matching object may comprise: a search module 301, an acquisition module 302, and a play module 303.
The searching module 301 is configured to search, when a target click-to-read object to be matched is obtained, a target sample matched with the target click-to-read object in a preset storage space, where a matching sample associated with a multimedia file whose playing progress meets a preset condition is stored in the preset storage space.
For example, when a target click-to-read object to be matched is obtained, the searching module 301 may first search for a target sample matched with the target click-to-read object in a preset storage space. The preset storage space stores a matching sample associated with the multimedia file, the playing progress of which meets the preset condition.
For example, a user uses a terminal to take photos M whose contents need to be read, that is, target reading objects, then the search module 301 may obtain the photos M, and then the search module 301 may preferentially search for photos (that is, target samples) matching the photos M in a preset folder (that is, a preset storage space), where a matching sample associated with a multimedia file whose playing progress meets a preset condition is stored in the preset storage space.
In this embodiment, preset databases and preset storage spaces can be preset in the terminal, it should be noted that the preset storage spaces are different from the preset databases and are storage spaces independent of the preset databases.
If the sample matched with the target click-to-read object is not found in the preset storage space, the terminal can perform other operations. For example, the terminal may continue to search a preset database for a sample matching the target click-to-read object.
An obtaining module 302, configured to obtain a target multimedia file associated with a target sample if the target sample matching the target click-to-read object exists in the preset storage space.
For example, the searching module 301 searches a sample photo N matching the photo M to be read in a preset folder. In this case, the obtaining module 302 may obtain the multimedia file associated with the photo N, i.e. the target multimedia file, for example, audio N.
A playing module 303, configured to play the target multimedia file.
For example, after the obtaining module 302 obtains the audio n, the playing module 303 may play the audio n.
It can be understood that, in the embodiment of the present application, after the target click-to-read object to be matched is obtained, the terminal may preferentially search the target sample matched with the target click-to-read object in the preset storage space. And the playing progress of the multimedia file related to the sample stored in the preset storage space meets a preset condition. If the target sample is found, the terminal can acquire the multimedia file associated with the target sample and play the multimedia file. Since the multimedia file with the playing progress meeting the preset condition is likely to need to be played again, the efficiency of searching the matching object by the terminal can be improved.
Please , referring to fig. 6, fig. 6 is a schematic view of another structure of the apparatus for finding a matching object according to the present embodiment, in , the apparatus 300 for finding a matching object may further include a saving module 304 and a deleting module 305.
The saving module 304 is configured to obtain a playing progress of the multimedia file after the playing of the multimedia file is finished; if the fact that the playing progress of the multimedia file meets a preset condition is detected, obtaining a sample associated with the multimedia file; and saving the sample associated with the multimedia file to a preset storage space.
For example, after the playing of the multimedia file clicked and read by the user is finished, the saving module 304 may first obtain the playing progress of the multimedia file. It should be noted that ending playing the multimedia file is different from pausing playing the multimedia file.
For example, the terminal has previously taken photos Y whose contents need to be read by a click, and then the terminal finds a photo B matching the photo Y in a matching sample (click sample) of the preset database, where the photo B is associated with segments of audio B.
After obtaining the playing progress of the audio b, the terminal may detect whether the playing progress satisfies a preset condition, in , the preset condition may be to indicate whether the user needs to play the part of the audio b that has not been played next.
If it is detected that the playing progress does not satisfy the preset condition, it can be considered that the user does not need to play the unplayed part of the audio b next time, and at this time, the terminal can perform other operations.
If the terminal detects that the playing progress of the audio b meets the preset condition, at this time, the saving module 304 may obtain a sample associated with the audio b. That is, the save module 304 may obtain the photograph B.
After taking photo B, the saving module 304 may save photo B to a preset storage space, for example, the preset storage space may be preset folder.
In , the saving module 304 may be configured to obtain a sample associated with the multimedia file if it is detected that the playing progress of the multimedia file is less than or equal to a preset progress.
For example, if it is detected that the playing progress of the audio b is greater than the preset progress, it may be determined that the audio b has been basically played. For example, the playing progress of the audio b is 97%, that is, it can be considered that the user does not need to play the unplayed part of the audio b next time, and at this time, the terminal may perform other operations.
If it is detected that the playing rate of the audio B is less than or equal to the predetermined rate, for example, the saving module 304 detects that the playing rate of the audio B is 70% and is less than the predetermined rate of 95%, that is, the audio B still has a large portion that has not been played.
In , the saving module 304 may be configured to detect whether the multimedia file is selected to be played by the user for the first time if it is detected that the playing progress of the multimedia file is less than or equal to a preset progress, and obtain a sample associated with the multimedia file if it is detected that the multimedia file is selected to be played by the user for the first time.
For example, the storage module 304 detects that the playing progress of the audio b is 70% and is less than the preset progress 95%, at this time, the storage module 304 may detect whether the audio b is selected to be played by the user for the first time. For example, the saving module 304 may detect whether the audio b is the first click-to-read.
If it is detected that the audio b is selected and played by the user for the first time, it can be considered that when the user uses the click-to-read function for the next time, there is a great probability that the audio part which is not played in the audio b needs to be played next. In this case, the saving module 304 may be triggered to obtain the target matching sample photograph B associated with the audio B.
If the audio B is detected not to be selected and played by the user for the first time, for example, when the click-to-read function is used before, the picture taken by the user is successfully matched with the picture B in the preset database, and the audio B is played. In this case, the user may be considered to have heard the content of the audio B, and at this time, the terminal may not have to acquire the target matching sample photograph B associated with the audio B.
A deleting module 305, configured to, if it is detected that the number of samples for matching stored in the preset storage space reaches a preset value, obtain a time when each sample is stored in the preset storage space; and deleting the sample which is stored to the preset storage space and has the earliest time from the preset storage space.
For example, the deleting module 305 may periodically or in real time detect whether the number of samples stored in the preset storage space for matching reaches a preset value.
If it is detected that the number of samples for matching saved in the preset storage space does not reach the preset value, the terminal may perform other operations.
If it is detected that the number of samples for matching saved in the preset storage space reaches a preset value, the preset storage space may be considered to be full. In this case, the deleting module 305 may obtain the time when each sample is saved to the preset storage space.
For example, in embodiments, when new added samples are received by the preset storage space, the deletion module 305 can record the time point when the new added samples are saved to the preset storage space.
After the time when each sample is saved to the preset storage space is obtained, the deleting module 305 may delete the sample which is saved to the preset storage space at the earliest time from the preset storage space.
The present embodiment provides computer-readable storage media, on which a computer program is stored, which, when executed on a computer, causes the computer to execute the steps in the method for finding a matching object as provided in this embodiment.
The embodiment of the present application further provides electronic devices, which include a memory and a processor, where the processor is used to execute the steps in the method for finding a matching object provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The mobile terminal 400 may include components such as a speaker 401, memory 402, processor 403, display unit 404, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The speaker 401 may be used to play audio files and the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the mobile terminal.
The display unit 404 may be a display screen of the terminal, may display a video file, and the like.
In this embodiment, the processor 403 in the mobile terminal loads executable codes corresponding to the processes of or or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, thereby implementing the steps:
when a target click-to-read object needing to be matched is obtained, searching a target sample matched with the target click-to-read object in a preset storage space, wherein the preset storage space stores a matching sample associated with a multimedia file of which the playing progress meets a preset condition;
if a target sample matched with the target click-to-read object exists in the preset storage space, acquiring a target multimedia file associated with the target sample;
and playing the target multimedia file.
Referring to fig. 8, the mobile terminal 500 may include a speaker 501, a memory 502, a processor 503, a display unit 504, an output unit 505, an input unit 506, a microphone 507, and the like.
The speaker 501 may be used to play audio files, etc.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 503 executes various functional applications and data processing by running an application program stored in the memory 502.
The processor 503 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the mobile terminal.
The display unit 504 may be a display screen of the terminal, may display a video file, and the like.
The output unit 505 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
The input unit 506 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control.
Microphone 507 may be used to pick up speech uttered by the user.
In this embodiment, the processor 503 in the mobile terminal loads the executable code corresponding to the processes of or or more application programs into the memory 502 according to the following instructions, and the processor 503 runs the application programs stored in the memory 502, thereby implementing the steps:
when a target click-to-read object needing to be matched is obtained, searching a target sample matched with the target click-to-read object in a preset storage space, wherein the preset storage space stores a matching sample associated with a multimedia file of which the playing progress meets a preset condition;
if a target sample matched with the target click-to-read object exists in the preset storage space, acquiring a target multimedia file associated with the target sample;
and playing the target multimedia file.
In , the processor 503 may further execute obtaining a playing progress of the multimedia file after the playing of the multimedia file is finished, obtaining a sample associated with the multimedia file if it is detected that the playing progress of the multimedia file satisfies a preset condition, and saving the sample associated with the multimedia file in a preset storage space.
In , when the processor 503 executes the obtaining of the sample associated with the multimedia file if it is detected that the playing progress of the multimedia file satisfies the predetermined condition, it may execute the obtaining of the sample associated with the multimedia file if it is detected that the playing progress of the multimedia file is less than or equal to a predetermined progress.
In , when the processor 503 executes the step of obtaining the sample associated with the multimedia file if the playing progress of the multimedia file is detected to be less than or equal to the preset progress, it may execute the step of detecting whether the multimedia file is selected and played by the user for the first time if the playing progress of the multimedia file is detected to be less than or equal to the preset progress, and obtain the sample associated with the multimedia file if the multimedia file is detected to be selected and played by the user for the first time.
In , the processor 503 may further execute the steps of obtaining a time when each sample is saved in the preset storage space if it is detected that the number of samples saved in the preset storage space for matching reaches a preset value, and deleting the sample that is saved in the preset storage space with the earliest time from the preset storage space.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the method for finding a matching object, which is not described herein again.
The apparatus for searching for a matching object provided in the embodiment of the present application and the method for searching for a matching object in the foregoing embodiments belong to the same concept of , and any method provided in the method for searching for a matching object may be run on the apparatus for searching for a matching object, and a specific implementation process thereof is described in the embodiment of the method for searching for a matching object, and is not described herein again.
It should be noted that, for the method for finding a matching object described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the method for finding a matching object described in the embodiment of the present application can be implemented by controlling the relevant hardware through a computer program, where the computer program can be stored in computer-readable storage media, such as a Memory, and executed by at least processors, and during the execution process, the process of the embodiment of the method for finding a matching object can be included.
For the apparatus for searching for a matching object in the embodiment of the present application, each functional module may be integrated into processing chips, or each module may exist alone physically, or two or more modules may be integrated into modules.
The methods, apparatuses, storage media, and electronic devices for finding matching objects provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present invention, and the description of the embodiments above is only used to help understand the method and its core ideas of the present invention, and meanwhile, for those skilled in the art, there are variations on the specific implementations and application scopes according to the ideas of the present invention, and in conclusion, the contents of the present description should not be construed as limiting the present invention.

Claims (6)

1, A method for finding a matching object, comprising:
after the multimedia file is played, acquiring the playing progress of the multimedia file;
if the playing progress of the multimedia file is detected to be smaller than or equal to the preset progress, obtaining a sample associated with the multimedia file;
storing the sample associated with the multimedia file to a preset storage space;
when a target click-to-read object needing to be matched is obtained, searching a target sample matched with the target click-to-read object in a preset storage space;
if a target sample matched with the target click-to-read object exists in the preset storage space, acquiring a target multimedia file associated with the target sample;
and playing the target multimedia file.
2. The method of claim 1, wherein if it is detected that the playing progress of the multimedia file is less than or equal to a preset progress, obtaining a sample associated with the multimedia file comprises:
if the playing progress of the multimedia file is detected to be smaller than or equal to the preset progress, whether the multimedia file is selected and played by a user for the first time is detected;
and if so, acquiring a sample associated with the multimedia file.
3. The method of finding a matching object according to claim 1, further comprising:
if the number of the samples for matching stored in the preset storage space is detected to reach a preset value, acquiring the time when each sample is stored in the preset storage space;
and deleting the sample which is stored to the preset storage space and has the earliest time from the preset storage space.
An apparatus for finding a matching object of , comprising:
the searching module is used for acquiring the playing progress of the multimedia file after the multimedia file is played; if the playing progress of the multimedia file is detected to be smaller than or equal to the preset progress, obtaining a sample associated with the multimedia file; storing the sample associated with the multimedia file to a preset storage space; when a target click-to-read object needing to be matched is obtained, searching a target sample matched with the target click-to-read object in a preset storage space;
the acquisition module is used for acquiring a target multimedia file associated with the target sample if the target sample matched with the target click-to-read object exists in the preset storage space;
and the playing module is used for playing the target multimedia file.
storage medium having stored thereon a computer program, characterized in that when the computer program is executed on a computer, it causes the computer to execute the method of finding a matching object according to any of claims 1 to 3.
electronic device comprising a memory, a processor, characterized in that said processor is adapted to execute the method of finding a matching object according to any of claims 1 to 3 by invoking a computer program stored in said memory.
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 CN107885828A (en) 2018-04-06
CN107885828B true 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)

Family Cites Families (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
CN102081625B (en) * 2009-11-30 2012-12-26 中国移动通信集团北京有限公司 Data query method and query server
CN101916302B (en) * 2010-09-01 2012-11-21 中国地质大学(武汉) Three-dimensional spatial data adaptive cache management method and system based on Hash table
CN103475914B (en) * 2013-08-28 2017-02-08 小米科技有限责任公司 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
CN107885828A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
US9659278B2 (en) Methods, systems, and computer program products for displaying tag words for selection by users engaged in social tagging of content
GB2554515A (en) Providing relevant video scenes in response to a video search query
US20130019176A1 (en) Information processing apparatus, information processing method, and program
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
US10664443B2 (en) Method and apparatus for presenting to-be-cleaned data, and electronic device
WO2016091095A1 (en) Searching method and system based on touch operation on terminal interface
EP3005055B1 (en) Apparatus and method for representing and manipulating metadata
CN106991179B (en) Data deleting method and device and mobile terminal
CN107247722B (en) File scanning method and device and intelligent terminal
CN107748615B (en) Screen control method and device, storage medium and electronic equipment
US10049114B2 (en) Electronic device, method and storage medium
US20210027007A1 (en) Online document commenting method and apparatus
CN112652302B (en) Voice control method, device, terminal and storage medium
CN105760483A (en) Saving method, retrieval method and retrieval system for multi-media files
CN108256071B (en) Method and device for generating screen recording file, terminal and storage medium
CN106557570A (en) File management method and device under a kind of Android system
CN116017043A (en) Video generation method, device, electronic equipment and storage medium
US20190042600A1 (en) Image presenting method and apparatus, and electronic device
CN104808995B (en) A kind of method and apparatus for across application collection application content
CN108093311B (en) Multimedia file processing method and device, storage medium and electronic equipment
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
CN107766563B (en) Method and device for updating data, storage medium and electronic equipment
WO2017107887A1 (en) Method and apparatus for switching group picture on mobile terminal
CN107885828B (en) Method and device for searching matching object, storage medium and electronic equipment
WO2017076027A1 (en) Wallpaper processing method and apparatus

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
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.

GR01 Patent grant
GR01 Patent grant