CN107885827B - File acquisition method and device, storage medium and electronic equipment - Google Patents

File acquisition method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107885827B
CN107885827B CN201711087225.5A CN201711087225A CN107885827B CN 107885827 B CN107885827 B CN 107885827B CN 201711087225 A CN201711087225 A CN 201711087225A CN 107885827 B CN107885827 B CN 107885827B
Authority
CN
China
Prior art keywords
file
acquisition
target
matched
history
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
CN201711087225.5A
Other languages
Chinese (zh)
Other versions
CN107885827A (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 CN201711087225.5A priority Critical patent/CN107885827B/en
Publication of CN107885827A publication Critical patent/CN107885827A/en
Application granted granted Critical
Publication of CN107885827B publication Critical patent/CN107885827B/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/435Filtering based on additional data, e.g. user or group profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a file acquisition method, a file acquisition device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a file acquisition instruction is received, acquiring a pre-stored history acquisition record; according to the history acquisition files in the history acquisition records, determining a target file set where the history acquisition files are located in a preset file set library; and acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction. According to the embodiment of the application, the file searching efficiency of the system can be greatly improved under the scene that the file needs to be continuously obtained, time consumption for searching the file is reduced, and therefore power consumption of the electronic equipment is reduced.

Description

File acquisition method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a file acquisition method, an apparatus, a storage medium, and an electronic device.
Background
In the process of working or reading, people easily encounter articles or sentences with uncommon words or other articles or sentences which do not know the correct pronunciation of the words, and the normal life and work of people are influenced.
When these sentences are encountered, they can generally be known only by asking the people who know the correct pronunciation of the sentence, or by means of the electronic device, obtaining the multimedia file of the correct pronunciation of the sentence content from the network, and playing the multimedia file through the electronic device.
However, in the process of searching for the multimedia file corresponding to the statement content, the electronic device needs to search in the database, and if the amount of data stored in the database is large and the number of times of searching is large, the operating efficiency of the electronic device is affected, which results in long time required for searching, and further causes the power consumption of the device to be large.
Disclosure of Invention
The embodiment of the application provides a file acquisition method, a file acquisition device, a storage medium and electronic equipment, which can improve the efficiency of acquiring files and further reduce the power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides a file obtaining method, an application and an electronic device, where the method includes:
when a file acquisition instruction is received, acquiring a pre-stored history acquisition record;
according to the history acquisition files in the history acquisition records, determining a target file set where the history acquisition files are located in a preset file set library;
and acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
In a second aspect, an embodiment of the present application further provides a file acquiring apparatus, including:
the record acquisition module is used for acquiring a pre-stored history acquisition record when a file acquisition instruction is received;
the set determining module is used for determining a target file set where the history acquisition files are located in a preset file set library according to the history acquisition files in the history acquisition records; and
and the acquisition module is used for acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
In a third aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to, when executed on a computer, cause the computer to execute the file obtaining method described above.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor is configured to execute the file obtaining method as described above by loading the instructions in the memory.
According to the file acquisition method provided by the embodiment of the application, the pre-stored history acquisition record is acquired, the target file set where the history acquisition file is located is determined according to the history acquisition record, and the required target acquisition file is preferentially searched in the file set, so that the file searching efficiency of a system can be greatly improved in a scene where the file needs to be continuously acquired, the time consumption for searching the file is reduced, and the power consumption of electronic equipment is reduced.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of a file acquisition method according to an embodiment of the present application.
Fig. 2 is a flowchart of an implementation of a file obtaining method according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating an implementation of obtaining a target obtaining file according to an embodiment of the present application.
Fig. 4 is a flowchart of another implementation of obtaining a target obtaining file according to an embodiment of the present application.
Fig. 5 is a schematic view of another application scenario of the file acquisition method according to the embodiment of the present application.
Fig. 6 is a flowchart of an implementation of determining a target file set according to an embodiment of the present application.
Fig. 7 is a schematic view of another application scenario of the file acquisition method according to the embodiment of the present application.
Fig. 8 is a flowchart of another implementation of the file obtaining method according to the embodiment of the present application.
Fig. 9 is a schematic structural diagram of a file acquiring apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an acquisition module according to an embodiment of the present application.
Fig. 11 is another schematic structural diagram of an acquisition module according to an embodiment of the present application.
Fig. 12 is another schematic structural diagram of a file acquiring apparatus according to an embodiment of the present application.
Fig. 13 is a schematic view of another structure of the document acquiring apparatus according to the embodiment of the present application.
Fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 15 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be a software object that executes on the computing system. The different components, modules, engines, and services described herein may be implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In an embodiment, the electronic device may first acquire a reading file, where the reading file may be a picture, a photo, or a code. After the click-to-read file is acquired, the electronic device may acquire a multimedia file, where the multimedia file may be an audio file or a video file. The electronic device may then associate the retrieved click-to-read file with the multimedia file. For example, the electronic device associates photo a with audio a, photo B with audio B, and photo C with video C. After associating the click-to-read file with the multimedia file, the electronic device may save the file data in a preset database.
It can be understood that, in some embodiments, the click-to-read file and the multimedia file may have a one-to-one correspondence relationship, a one-to-many relationship, a many-to-one relationship, or the like, which is not specifically limited in this embodiment.
When using the point-and-read function, a user may first take a picture using the mobile electronic device or select a picture from an album or scan a code. The picture taken by the user or the selected picture or the code obtained by scanning is the object needing to be read. After the object needing to be read is acquired, the electronic device can search a photo or a code matched with the object needing to be read in a preset database. If the photo or the code matched with the object needing to be read exists in the preset database, the electronic equipment can search the multimedia file associated with the photo or the code, and the multimedia file is played.
In one embodiment, for example, the sample is a photograph a containing three text segments, each of which is associated with a segment of audio. Then, when the photo shot by the user is matched with the photo a in the preset database, since the photo a contains three sections of characters and each section of character is associated with a corresponding section of audio, the user can select to play the corresponding audio by specifically selecting a certain section of character in the photo a. Or, the user may not make a specific selection, and then the electronic device may sequentially play the audio corresponding to the three paragraphs of text.
Referring to fig. 1, for example, a user uses an electronic device to take a picture X, and the electronic device finds that the picture X matches the picture a in a preset database. The photo A comprises three sections of characters, wherein the first section of characters is associated with the audio A, the second section of characters is associated with the audio B, and the third section of characters is associated with the audio C. For example, as shown in fig. 1, if the user circles the area of the second text on the screen, the electronic device may play audio b correspondingly.
It can be understood that the embodiment can realize the function of reading the text in a certain object (such as a photo) on the electronic device, and the mode has the advantages of low cost, good convenience and the like.
The application scenario in the embodiments of the present application, in which the electronic device may include a mobile phone (or referred to as a "cellular" phone, such as a smart phone) or a computer with a wireless communication module, for example, a tablet computer, may also be a portable, pocket, or hand-held vehicle-mounted computer, which exchange language and/or data with a wireless access network. For example, the devices include, but are not limited to, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs). The electronic device is provided with an image acquisition module, such as a camera, and the electronic device can acquire a required image through the camera.
When the method is applied to the electronic device, the electronic device may include, but is not limited to, a terminal such as a smart phone, a tablet computer, a notebook computer, a palm computer, and a smart band. The file obtaining method may be run in an operating system of the electronic device, and may include, but is not limited to, a Windows operating system, a Mac OS operating system, an Android operating system, an IOS operating system, a Symbian operating system, a Windows Phone operating system, and the like.
Referring to fig. 2, an implementation flow of a file acquisition method in the embodiment of the present application is shown, and for convenience of description, only a part related to the content of the present application is shown in the figure.
As shown in fig. 2, a file acquiring method includes the following steps:
101. when a file acquisition instruction is received, acquiring a pre-stored history acquisition record;
herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
In some embodiments, a user needs to query whether certain content exists on the electronic device, for example, query whether "file a" exists, at this time, the user may input the content "file a" that needs to be queried on the electronic device, and perform a confirmation operation on the content; after the electronic device receives the confirmation operation, a file acquisition instruction about the content is generated and sent, so that the system is instructed to inquire and acquire the content on the electronic device.
The history acquisition record is a record file of specific contents in the acquisition operation generated after the electronic equipment completes the acquisition operation of the file.
In some embodiments, the history acquisition record may record file information of the history acquisition file acquired in one or more acquisition operations in the history, such as a file name, a file address, and/or an acquisition time of the history acquisition file.
102. And determining a target file set where the history acquisition file is located in a preset file set library according to the history acquisition file in the history acquisition record.
The history acquisition file is a file that has been acquired in an electronic device or a network, for example, a multimedia file that has been played within a set time period (for example, 1 day ago).
The file collection library may include one or more file collections, each file collection is a collection composed of a plurality of files, and the files in the file collection are files which are related through some preset rules and have common characteristics. For example, a book has a plurality of chapters, and all multimedia files corresponding to the chapters may constitute a file set related to the book. The file collection library may include a plurality of file collections.
In some embodiments, the history acquisition file recorded in the history acquisition record and the file set to which the history acquisition file belongs may be obtained according to the history acquisition record, and the file set in which the history acquisition file is located is used as the target file set.
Specifically, in the process of determining the file set to which the history acquisition file belongs, the file set to which the history acquisition file belongs may be determined by acquiring the file attribute corresponding to the history acquisition file, or the file set to which the history acquisition file belongs may be directly determined from the history acquisition record. It can be understood that the obtaining manner of the file set to which the specific history acquisition file belongs may be determined according to the actual situation, and the present application does not limit this.
For example, a file attribute of the history acquisition file "primary school 6 grade-audio a" is recorded in the history acquisition record, and it can be determined from the file attribute that the "primary school 6 grade-audio a" belongs to a file set named "primary school 6 grade", and therefore, it can be determined that the "primary school 6 grade" is a target file set of "primary school 6 grade-audio a".
103. And acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
Herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
In some embodiments, the process of obtaining the target obtaining file in the target file set may include the following steps:
searching whether a target acquisition file exists in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction;
and if the target acquisition file does not exist in the target file set, searching in the residual file set.
The file acquisition instruction generally carries characteristic information of a file to be acquired. For example, if the user needs to query whether an article containing a certain piece of content exists in the electronic device, the file obtaining instruction may associate the piece of content as feature information to the file obtaining instruction.
In some embodiments, when it is required to search whether a target acquisition file exists in the target file set, the characteristic information of the target acquisition file carried by the file acquisition instruction may be used to match the characteristic information with file information in the file set, and the file successfully matched is used as the target acquisition file.
And the rest file sets are file sets in the file set library except the target file set.
In some embodiments, when retrieving the remaining file sets, the retrieving may be performed according to a preset rule, for example, the retrieving may be performed according to the sequence of the storage time, or according to the sequence of the initials, the numerical sizes, and the like of the remaining file sets. It can be understood that the specific retrieval manner of the remaining file sets can be set according to actual situations.
When the files in the target file set do not have the target acquisition files, the files in the remaining file set are retrieved, so that the retrieval process has a priority order, and the system retrieval efficiency is improved.
In the prior art, if a user acquires data in a certain file set, it is still possible to acquire other files in the same file set. For example, there is a file set related to a certain book, and after a user has translated or played a certain part of contents in the book in the last use, there may be a need to translate or play a multimedia file related to the contents in other parts of the book in the future reading process of the book. At the moment, according to the history acquisition record, the file set where the files acquired once are located is used as a target file set for preferential retrieval, and when a user needs to retrieve the files located in the same file set as the history acquisition files, the user can quickly find the required files.
The file acquisition method provided by the embodiment of the application can greatly improve the file searching efficiency of the system, reduce the time consumption for searching the file and further reduce the power consumption of the electronic equipment.
Referring to fig. 3, a flow of implementing obtaining the target obtaining file in the embodiment of the present application is shown, and for convenience of explanation, only a part related to the content of the present application is shown in the figure.
In some embodiments, when the retrieval needs to be performed through the acquired text information, the file acquisition instruction may carry text information to be matched, and at the same time, each file in the file set is associated with corresponding preset text information.
The preset text information is related to the content of the file. For example, the speaking content in an audio file can use the text corresponding to the speaking content as the preset text information.
As shown in fig. 3, retrieving whether a target acquisition file exists in the target file set may include the following steps:
201. and acquiring character information to be matched carried by the file acquisition instruction, and matching the character information to be matched with preset character information.
When a file acquisition instruction is generated, the text information to be matched is associated with the file acquisition instruction. When a target acquisition file required to be retrieved is required, whether the target acquisition file exists is determined by matching the text information to be matched with the preset text information associated with each file in the target file set.
202. Judging whether preset character information matched with the character information to be matched exists or not; and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
In the matching process of the character information to be matched and the preset character information, the matching degree and the repetition rate of the character information to be matched and the preset character information can be judged by calculating indexes such as the matching degree and the repetition rate of the character information to be matched and the preset character information through a preset formula, and the matching degree and the repetition rate can be specific parameters.
In some embodiments, a preset threshold may be set, and when the matching degree or the repetition rate of the text information to be matched and the preset text information is greater than the preset threshold, the text information to be matched and the preset text information may be considered to be matched.
For example, if a certain text message to be matched is "duck swimming", when there is a text message containing "duck swimming" in the preset text message, the matching can be considered to be successful.
203. And taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
In some embodiments, when it is determined that the preset text information is successfully matched with the text information to be matched, the file corresponding to the associated information may be used as a target acquisition file, and the step of acquiring the target acquisition file is performed.
When the file is a multimedia file, such as an audio file or a video file, the multimedia file in the prior art cannot be directly matched with the text information. According to the method and the device, the preset text information associated with the file is set, the text information to be matched carried by the acquired file acquisition instruction is matched with the preset text information associated with the file, so that the system can retrieve and acquire the required multimedia file more easily, and the file acquisition efficiency is improved.
Referring to fig. 4, another implementation flow of obtaining a target acquisition file in the embodiment of the present application is shown, and for convenience of explanation, only a part related to the content of the present application is shown in the figure.
If the number of files in the file set is large, in order to further increase the retrieval speed of the target acquisition file, as shown in fig. 4, whether the target acquisition file exists in the retrieval target file set or not may include the following steps:
301. and acquiring a sequence mark corresponding to the history acquisition file.
The file set comprises a plurality of files, and each file is provided with a sequence mark. The sequence mark is used for embodying the sequence relation of the files in the file set, such as numbers with size sequence relation, letters with sequence relation and the like.
In some embodiments, the sequence badge may be a file name using numbers, letters, or a combination of numbers and letters, such as a file with a file name of "11, 12, 13", or a file with a file name of "a, b, c"; the sequence flag may also be set in an attribute of a file, and the sequence flag of the file may be acquired by acquiring the attribute of the file. It should be noted that the sequence flag may uniquely correspond to the file.
302. And obtaining the sequence mark corresponding to the file according to the history, and determining the file to be retrieved in the file set.
The file to be retrieved is a file which is positioned in the target file set and behind the sequence of the history acquisition files.
In some embodiments, the files to be retrieved in the target file set are determined, the sequence tags of all the files in the target file set may be obtained first, the sequence tag range of the target file set is determined according to the sequence tags of all the files, and the files located after the sequence of the history obtained files in the target file set are taken as the files to be retrieved.
Referring to fig. 5, for example, in the target file set, files with sequence marks in the range of "1 to 12" are included, and when the sequence mark corresponding to the acquired history acquisition file is "8", the files with sequence marks in the range of "9 to 12" may be used as the files to be retrieved.
303. And sequentially searching and acquiring the target acquisition file in the file to be searched.
For example, after the files marked in the order in the range of "9-12" are used as the files to be retrieved, the files to be retrieved can be directly retrieved, and the target acquisition file is acquired after the target acquisition file is retrieved.
Therefore, the file to be retrieved in the target file set is determined by setting the sequence marks on the files and acquiring the sequence marks of the files according to the history, so that the range of the files to be retrieved can be narrowed, and the file retrieval and acquisition speed of the electronic equipment is further improved.
Referring to fig. 6, an implementation flow of determining a target file set in the embodiment of the present application is shown, and for convenience of explanation, only a part related to the content of the present application is shown in the figure.
In some cases, taking the process of performing a point-reading operation on a book by a user as an example, if a file that the user needs to acquire at this time is in the same chapter as a file acquired at the previous time, if a file set where the file is still acquired from the history acquired at the previous time is searched, a large amount of search time is consumed. At this time, the history acquisition record may be a record of acquisition of the file which has been acquired a plurality of times in the past, and a plurality of history acquisition files may be formed.
When the history acquisition records include acquisition records of a plurality of history acquisition files and the file acquisition instruction carries text information to be matched, as shown in fig. 6, before acquiring a pre-stored history acquisition record, the method may include the following steps:
401. and extracting content keywords in the history acquisition file, and associating the content keywords with the history acquisition file.
In some embodiments, the content keywords in the history acquisition file may be manually preset keywords, or keywords in preset text information may be extracted by a machine, and the specific implementation manner may be determined according to actual conditions.
For example, words with high frequency of occurrence in a certain session are extracted to obtain keywords such as "duck swimming", and then "duck swimming" is associated with the history acquisition file.
After associating the content keyword with the history acquisition file, step 402 is performed:
402. and when a file acquisition instruction is received, acquiring a pre-stored history acquisition record.
Herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
After the history acquisition record is acquired, determining a target file set where the history acquisition file is located in a preset file set library according to the history acquisition file in the history acquisition record, which may include the following steps:
403. and matching the character information to be matched with the content keywords in the plurality of history acquisition files.
In the matching process of the text information to be matched and the content keywords, the matching degree and the repetition rate of the text information to be matched and the content keywords can be judged by calculating indexes such as the matching degree and the repetition rate of the text information to be matched and the content keywords through a preset formula, and the matching degree and the repetition rate can be specific parameters.
In some embodiments, a preset threshold may be set, and when the matching or repetition rate of the text information to be matched and the content keyword is greater than the preset threshold, the text information to be matched and the preset text information may be considered to be matched.
Referring to fig. 7, the text information to be matched is: the horse wants to find the mother. He went where he touched the duck, and went to the next step: aunt, do you be my mom? ". And the history acquisition record comprises a history acquisition file A, a history acquisition file B and a history acquisition file C, wherein the history acquisition file A comprises content keywords of 'pony, looking for mother and duck', the history acquisition file B comprises content keywords of 'crow, drinking and stone', and the history acquisition file C comprises content keywords of 'red hat and wolves wife'. At this time, the text information to be matched can be matched with the content keywords of the three history acquisition files to obtain a matching result.
Obviously, the text information to be matched includes the keywords "horse, mom, duck" in the history acquisition file a, and in this example, the text information to be matched may be considered to be matched with the history acquisition file a.
404. And if the content keywords successfully matched with the character information to be matched exist, taking the history acquisition file corresponding to the successfully matched content keywords as a target history acquisition file.
Referring to fig. 7, the text information to be matched includes a keyword "horse, search for mom, duck" in the history acquisition file a, and in this example, the text information to be matched may be considered to be matched with the history acquisition file a, and then the history acquisition file a may be used as the target history acquisition file.
405. And determining a target file set where the target history acquisition file is located in a preset file set library.
In some embodiments, the target history acquisition file recorded in the history acquisition record and the file set to which the target history acquisition file belongs may be obtained according to the history acquisition record, and the file set in which the target history acquisition file is located is used as the target file set.
Specifically, in the process of determining the file set to which the target history acquisition file belongs, the file set to which the target history acquisition file belongs may be determined by acquiring the file attribute corresponding to the target history acquisition file, or the file set to which the target history acquisition file belongs may be directly determined from the history acquisition record. It can be understood that the obtaining manner of the file set to which the specific history acquisition file belongs may be determined according to the actual situation, and the present application does not limit this.
Therefore, in the embodiment described in fig. 6 of the present application, when the history acquisition record includes a plurality of history acquisition files, by associating content keywords related to the content in the history acquisition files, and acquiring the target history acquisition file with the closest content by matching the text information to be matched with the content keywords, the file can be positioned more quickly and accurately, and the retrieval and acquisition efficiency of the target acquisition file is further improved.
Referring to fig. 8, a flowchart of another implementation flow of the file acquiring method in the embodiment of the present application is shown, and for convenience of description, only a part related to the content of the present application is shown in the figure.
As shown in fig. 8, in an embodiment, the file acquiring method includes the following steps:
501. and receiving an image acquisition instruction, and acquiring a target image according to the image acquisition instruction.
In some embodiments, the image acquisition instruction may be generated by triggering the user after the electronic device inputs a certain operation instruction, or generated by triggering the electronic device after a certain preset condition is met. The target image can be acquired by adopting a camera of the electronic equipment.
For example, a user needs to acquire an image of a page of content in a book, and may first align a camera of the electronic device with the page of content and click a graphical button for triggering image acquisition on an operation interface of the electronic device. When the system receives the triggering instruction of the graphic button, a camera on the electronic equipment is called to acquire a certain page of content on the book as a target image.
502. And identifying the target image to obtain the character information in the target image.
In some embodiments, the target image may be identified by a method known in the art, such as converting a text image in the image by using a matching algorithm.
503. And taking the character information as character information to be matched, and generating a file acquisition instruction according to the character information to be matched.
For example, the following segments are displayed in the image: the horse wants to find the mother. He went where he touched the duck, and went to the next step: aunt, do you be my mom? After the image contents are converted into corresponding text messages, the section of the text can be used as a text message to be matched to generate a file acquisition instruction, or keywords in the section of the text message can be extracted to be used as the text message to be matched to generate the file acquisition instruction.
504. And when a file acquisition instruction is received, acquiring a pre-stored history acquisition record.
505. And determining a target file set where the history acquisition file is located in a preset file set library according to the history acquisition file in the history acquisition record.
506. And searching whether a target acquisition file exists in the file set.
507. And searching the file sets except the target file set in the file set library.
508. And when the target acquisition file is retrieved, acquiring the target acquisition file.
The content in 504-508 can refer to the content explained and described in the content part of the above steps in other embodiments in the present application, and is not described herein again.
In the embodiment shown in fig. 8, the text information in the image is acquired, and the file set where the file that has been acquired is located is used as the target file set for preferential retrieval according to the history acquisition record, so that when a user needs to retrieve a file that is located in the same file set as the history acquisition file, the user can quickly find the desired file.
Referring to fig. 9, the structure of the document acquiring apparatus in the embodiment of the present application is shown, and for convenience of explanation, only the part related to the content of the present application is shown in the figure.
As shown in fig. 9, a file acquiring apparatus 600 includes a record acquiring module 601, a set determining module 602, and an acquiring module 603, where:
a record obtaining module 601, configured to obtain a pre-stored history obtaining record when a file obtaining instruction is received;
herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
In some embodiments, a user needs to query whether certain content exists on the electronic device, for example, query whether "file a" exists, at this time, the user may input the content "file a" that needs to be queried on the electronic device, and perform a confirmation operation on the content; after the electronic device receives the confirmation operation, a file acquisition instruction about the content is generated and sent, so that the system is instructed to inquire and acquire the content on the electronic device.
The history acquisition record is a record file of specific contents in the acquisition operation generated after the electronic equipment completes the acquisition operation of the file.
In some embodiments, the history acquisition record may record file information of the history acquisition file acquired in one or more acquisition operations in the history, such as a file name, a file address, and/or an acquisition time of the history acquisition file.
The set determining module 602 is configured to determine, according to a history acquisition file in the history acquisition record, a target file set where the history acquisition file is located in a preset file set library.
The history acquisition file is a file that has been acquired in the electronic device or the network, for example, a multimedia file that has been played before 1 day.
The file collection library may include one or more file collections, each file collection is a collection composed of a plurality of files, and the files in the file collection are files which are related through some preset rules and have common characteristics. For example, a book has a plurality of chapters, and all multimedia files corresponding to the chapters may constitute a file set related to the book. The file collection library may include a plurality of file collections.
In some embodiments, the history acquisition file recorded in the history acquisition record and the file set to which the history acquisition file belongs may be obtained according to the history acquisition record, and the file set in which the history acquisition file is located is used as the target file set.
Specifically, in the process of determining the file set to which the history acquisition file belongs, the file set to which the history acquisition file belongs may be determined by acquiring the file attribute corresponding to the history acquisition file, or the file set to which the history acquisition file belongs may be directly determined from the history acquisition record. It can be understood that the obtaining manner of the file set to which the specific history acquisition file belongs may be determined according to the actual situation, and the present application does not limit this.
For example, a file attribute of the history acquisition file "primary school 6 grade-audio a" is recorded in the history acquisition record, and it can be determined from the file attribute that the "primary school 6 grade-audio a" belongs to a file set named "primary school 6 grade", and therefore, it can be determined that the "primary school 6 grade" is a target file set of "primary school 6 grade-audio a".
The obtaining module 603 is configured to obtain a target obtaining file in the target file set, where the target obtaining file is a file obtained by the file obtaining instruction.
Herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
In some embodiments, the obtaining module 603 is specifically configured to:
searching whether a target acquisition file exists in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction;
and if the target acquisition file does not exist in the target file set, searching in the residual file set.
The file acquisition instruction generally carries characteristic information of a file to be acquired. For example, if the user needs to query whether an article containing a certain piece of content exists in the electronic device, the file obtaining instruction may associate the piece of content as feature information to the file obtaining instruction.
In some embodiments, when it is required to search whether a target acquisition file exists in the target file set, the characteristic information of the target acquisition file carried by the file acquisition instruction may be used to match the characteristic information with file information in the file set, and the file successfully matched is used as the target acquisition file.
And the rest file sets are file sets in the file set library except the target file set.
In some embodiments, when retrieving the remaining file sets, the retrieving may be performed according to a preset rule, for example, the retrieving may be performed according to the sequence of the storage time, or according to the sequence of the initials, the numerical sizes, and the like of the remaining file sets. It can be understood that the specific retrieval manner of the remaining file sets can be set according to actual situations.
When the files in the target file set do not have the target acquisition files, the files in the remaining file set are retrieved, so that the retrieval process has a priority order, and the system retrieval efficiency is improved.
In the prior art, if a user acquires data in a certain file set, it is still possible to acquire other files in the same file set. For example, there is a file set related to a certain book, and after a user has translated or played a certain part of contents in the book in the last use, there may be a need to translate or play a multimedia file related to the contents in other parts of the book in the future reading process of the book. At the moment, according to the history acquisition record, the file set where the files acquired once are located is used as a target file set for preferential retrieval, and when a user needs to retrieve the files located in the same file set as the history acquisition files, the user can quickly find the required files.
The file acquisition device 600 provided by the embodiment of the application can greatly improve the file searching efficiency of the system, reduce the time consumption for searching the file, and further reduce the power consumption of the electronic equipment.
Referring to fig. 10, the structure of the acquisition module in the embodiment of the present application is shown, and for convenience of explanation, only the part related to the content of the present application is shown in the figure.
In some embodiments, when the retrieval needs to be performed through the acquired text information, the file acquisition instruction may carry text information to be matched, and at the same time, each file in the file set is associated with corresponding preset text information.
The preset text information is related to the content of the file. For example, the speaking content in an audio file can use the text corresponding to the speaking content as the preset text information.
As shown in fig. 10, the obtaining module 603 may include a first matching sub-module 6031 and a first obtaining sub-module 6032, where:
and the first matching sub-module 6031 is configured to acquire the text information to be matched carried by the file acquisition instruction, and match the text information to be matched with the preset text information.
When a file acquisition instruction is generated, the text information to be matched is associated with the file acquisition instruction. When a target acquisition file required to be retrieved is required, whether the target acquisition file exists is determined by matching the text information to be matched with the preset text information associated with each file in the target file set.
A first obtaining sub-module 6032, configured to determine whether there is preset text information that matches text information to be matched; and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
In the matching process of the character information to be matched and the preset character information, the matching degree and the repetition rate of the character information to be matched and the preset character information can be judged by calculating indexes such as the matching degree and the repetition rate of the character information to be matched and the preset character information through a preset formula, and the matching degree and the repetition rate can be specific parameters.
In some embodiments, a preset threshold may be set, and when the matching degree or the repetition rate of the text information to be matched and the preset text information is greater than the preset threshold, the text information to be matched and the preset text information may be considered to be matched.
In some embodiments, when it is determined that the preset text information is successfully matched with the text information to be matched, the file corresponding to the associated information may be used as a target acquisition file, and the step of acquiring the target acquisition file is performed.
When the file is a multimedia file, such as an audio file or a video file, the multimedia file in the prior art cannot be directly matched with the text information. According to the method and the device, the preset text information associated with the file is set, the text information to be matched carried by the acquired file acquisition instruction is matched with the preset text information associated with the file, so that the system can retrieve and acquire the required multimedia file more easily, and the file acquisition efficiency is improved.
Referring to fig. 11, another structure of the acquisition module in the embodiment of the present application is shown, and for convenience of explanation, only the part related to the content of the present application is shown in the figure.
In order to further increase the retrieval speed of the target acquired file if the number of files in the file set is large, as shown in fig. 11, the acquiring module 603 may include a mark acquiring sub-module 6033, a first determining sub-module 6034, and a second acquiring sub-module 6035:
and a mark obtaining sub-module 6033, configured to obtain a sequence mark corresponding to the history obtaining file.
The file set comprises a plurality of files, and each file is provided with a sequence mark. The sequence mark is used for embodying the sequence relation of the files in the file set, such as numbers with size sequence relation, letters with sequence relation and the like.
In some embodiments, the sequence badge may be a file name using numbers, letters, or a combination of numbers and letters, such as a file with a file name of "11, 12, 13", or a file with a file name of "a, b, c"; the sequence flag may also be set in an attribute of a file, and the sequence flag of the file may be acquired by acquiring the attribute of the file. It should be noted that the sequence flag may uniquely correspond to the file.
The first determining sub-module 6034 is configured to determine a file to be retrieved in the file set according to the sequence flag corresponding to the history acquisition file.
The file to be retrieved is a file which is positioned in the target file set and behind the sequence of the history acquisition files.
In some embodiments, the files to be retrieved in the target file set are determined, the sequence tags of all the files in the target file set may be obtained first, the sequence tag range of the target file set is determined according to the sequence tags of all the files, and the files located after the sequence of the history obtained files in the target file set are taken as the files to be retrieved.
And the second obtaining sub-module 6035 is configured to sequentially retrieve and obtain the target obtaining file from the files to be retrieved.
For example, after the files marked in the order in the range of "9-12" are used as the files to be retrieved, the files to be retrieved can be directly retrieved, and the target acquisition file is acquired after the target acquisition file is retrieved.
Therefore, the sequence marks are arranged on the files, the files to be retrieved in the target file set are determined according to the sequence marks of the history acquisition files, the file range needing to be retrieved can be narrowed, and the retrieval speed of the electronic equipment is further improved.
Referring to fig. 12, another structure of the document acquiring apparatus in the embodiment of the present application is shown, and for convenience of explanation, only the part related to the content of the present application is shown in the drawing.
In some cases, taking the process of performing a point-reading operation on a book by a user as an example, if a file that the user needs to acquire at this time is in the same chapter as a file acquired at the previous time, if a file set where the file is still acquired from the history acquired at the previous time is searched, a large amount of search time is consumed. At this time, the history acquisition record may be a record of acquisition of the file which has been acquired a plurality of times in the past, and a plurality of history acquisition files may be formed.
When the history acquisition records include acquisition records of a plurality of history acquisition files and the file acquisition instruction carries text information to be matched, as shown in fig. 12, before acquiring a pre-stored history acquisition record, the history acquisition record may include an association module 606, a record acquisition module 601, a set determination module 602, and an acquisition module 603, where:
the association module 606 is configured to extract content keywords in the history acquisition file, and associate the content keywords with the history acquisition file.
In some embodiments, the content keywords in the history acquisition file may be manually preset keywords, or keywords in preset text information may be extracted by a machine, and the specific implementation manner may be determined according to actual conditions.
For example, words with high frequency of occurrence in a certain session are extracted to obtain keywords such as "duck swimming", and then "duck swimming" is associated with the history acquisition file.
The record obtaining module 601 is configured to obtain a pre-stored history obtaining record when a file obtaining instruction is received.
Herein, "obtaining" refers to obtaining data of the file, so that the system can perform some specific operation with the data, such as opening, copying, etc. the file. The file acquisition instruction is an action instruction sent by the electronic equipment for acquiring a specific file in the equipment or the network after receiving certain operation or reaching certain conditions.
After obtaining the history acquisition record, the set determining module 602 may include:
a second matching sub-module 6021, configured to match the text information to be matched with the content keywords in the history acquisition files; and if the content keywords successfully matched with the character information to be matched exist, taking the history acquisition file corresponding to the successfully matched content keywords as a target history acquisition file.
In the matching process of the text information to be matched and the content keywords, the matching degree and the repetition rate of the text information to be matched and the content keywords can be judged by calculating indexes such as the matching degree and the repetition rate of the text information to be matched and the content keywords through a preset formula, and the matching degree and the repetition rate can be specific parameters.
In some embodiments, a preset threshold may be set, and when the matching or repetition rate of the text information to be matched and the content keyword is greater than the preset threshold, the text information to be matched and the preset text information may be considered to be matched.
The second determining sub-module 6022 is configured to determine, in a preset file set library, a target file set where the target history acquisition file is located.
In some embodiments, the target history acquisition file recorded in the history acquisition record and the file set to which the target history acquisition file belongs may be obtained according to the history acquisition record, and the file set in which the target history acquisition file is located is used as the target file set.
Specifically, in the process of determining the file set to which the target history acquisition file belongs, the file set to which the target history acquisition file belongs may be determined by acquiring the file attribute corresponding to the target history acquisition file, or the file set to which the target history acquisition file belongs may be directly determined from the history acquisition record. It can be understood that the obtaining manner of the file set to which the specific history acquisition file belongs may be determined according to the actual situation, and the present application does not limit this.
An obtaining module 603, configured to obtain, in the target file set, a target obtaining file, where the target obtaining file is a file that is obtained by the file obtaining instruction.
Therefore, in the embodiment described in fig. 12 of the present application, when the history acquisition record includes a plurality of history acquisition files, by associating content keywords related to the content in the history acquisition files, and acquiring the target history acquisition file with the closest content by matching the text information to be matched with the content keywords, the file can be positioned more quickly and accurately, and the retrieval and acquisition efficiency of the target acquisition file is further improved.
Referring to fig. 13, a further structure of the document acquiring apparatus in the embodiment of the present application is shown, and for convenience of explanation, only the part related to the content of the present application is shown in the figure.
As shown in fig. 13, in one embodiment, the file acquiring apparatus 600 includes an image acquiring module 607, an information identifying module 608, an instruction generating module 609, a record acquiring module 601, a set determining module 602, and an acquiring module 603, wherein:
the image obtaining module 607 is configured to receive an image obtaining instruction, and obtain a target image according to the image obtaining instruction.
In some embodiments, the image acquisition instruction may be generated by triggering the user after the electronic device inputs a certain operation instruction, or generated by triggering the electronic device after a certain preset condition is met. The target image can be acquired by adopting a camera of the electronic equipment.
For example, a user needs to acquire an image of a page of content in a book, and may first align a camera of the electronic device with the page of content and click a graphical button for triggering image acquisition on an operation interface of the electronic device. When the system receives the triggering instruction of the graphic button, a camera on the electronic equipment is called to acquire a certain page of content on the book as a target image.
The information identifying module 608 is configured to identify the target image to obtain the text information in the target image.
In some embodiments, the target image may be identified by a method known in the art, such as converting a text image in the image by using a matching algorithm.
And the instruction generating module 609 is configured to use the text information as text information to be matched, and generate a file obtaining instruction according to the text information to be matched.
For example, the following segments are displayed in the image: the horse wants to find the mother. He went where he touched the duck, and went to the next step: aunt, do you be my mom? After the image contents are converted into corresponding text messages, the section of the text can be used as a text message to be matched to generate a file acquisition instruction, or keywords in the section of the text message can be extracted to be used as the text message to be matched to generate the file acquisition instruction.
The record obtaining module 601 is configured to obtain a pre-stored history obtaining record when a file obtaining instruction is received.
The set determining module 602 is configured to determine, according to a history acquisition file in the history acquisition record, a target file set where the history acquisition file is located in a preset file set library.
An obtaining module 603, configured to obtain, in the target file set, a target obtaining file, where the target obtaining file is a file that is obtained by the file obtaining instruction.
The contents of the record obtaining module 601, the set determining module 602, and the obtaining module 603 may refer to the contents of the explanation and description of the content parts of the above steps in other embodiments in the present application, and are not described herein again.
In the embodiment shown in fig. 13, the text information in the image is acquired, and the file set where the file that has been acquired is located is used as the target file set for preferential search according to the history acquisition record, so that when the user needs to search for the file that is located in the same file set as the history acquisition file, the user can quickly find the desired file.
In this embodiment, the file obtaining apparatus and the file obtaining method in the above embodiments belong to the same concept, and any method provided in the file obtaining method embodiment may be run on the file obtaining apparatus, and a specific implementation process of the method is described in detail in the file obtaining method embodiment, and any combination of the method and the method may be adopted to form an optional embodiment of the application, which is not described herein again.
The embodiment of the application also provides electronic equipment which can be equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer and a palm computer. Referring to fig. 14, an electronic device 700 includes a processor 701 and a memory 702. The processor 701 is electrically connected to the memory 702.
The processor 700 is a control center of the electronic device 700, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device 700 by running or loading an application program stored in the memory 702 and calling data stored in the memory 702, and processes the data, thereby performing overall monitoring of the electronic device 700.
The memory 702 may be used to store software programs and modules, and the processor 701 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
In this embodiment of the application, the processor 701 in the electronic device 700 loads instructions corresponding to processes of one or more application programs into the memory 702, and the processor 701 executes the application programs stored in the memory 702, so as to implement various functions as follows:
when a file acquisition instruction is received, acquiring a pre-stored history acquisition record; according to the history acquisition files in the history acquisition records, determining a target file set where the history acquisition files are located in a preset file set library; and acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
In some embodiments, the file acquisition instruction carries text information to be matched, and each file in the file set is associated with corresponding preset text information; the processor 701 may be further configured to:
acquiring character information to be matched carried by the file acquisition instruction, and matching the character information to be matched with the preset character information; judging whether preset character information matched with the character information to be matched exists or not; and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
In some embodiments, the file collection includes a plurality of files, each file has a sequence flag, and the sequence flag is used to represent a sequence relationship of the file in the file collection; the processor 701 may be further configured to:
acquiring character information to be matched carried by the file acquisition instruction, and matching the character information to be matched with the preset character information; judging whether preset character information matched with the character information to be matched exists or not; and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
In some embodiments, the processor 701 may be further configured to:
acquiring a sequence mark corresponding to the history acquisition file; determining a file to be retrieved in the target file set according to a sequence mark corresponding to the history acquisition file, wherein the file to be retrieved is a file which is positioned behind the sequence of the history acquisition file in the target file set; and sequentially retrieving and acquiring the target acquisition file in the file to be retrieved.
In some embodiments, the file acquisition instruction carries text information to be matched, and the history acquisition record includes acquisition records of a plurality of history acquisition files; the processor 701 may be further configured to:
extracting content keywords in the history acquisition file, and associating the content keywords with the history acquisition file;
matching the character information to be matched with the content keywords in the plurality of history acquisition files; if the content keywords successfully matched with the character information to be matched exist, taking the history acquisition file corresponding to the successfully matched content keywords as a target history acquisition file; and determining a target file set where the target history acquisition file is located in a preset file set library.
In some embodiments, the processor 701 may be further configured to:
receiving an image acquisition instruction, and acquiring a target image according to the image acquisition instruction; identifying the target image to obtain character information in the target image; and taking the text information as text information to be matched, and generating a file acquisition instruction according to the text information to be matched.
According to the electronic device provided by the embodiment of the application, the pre-stored history acquisition record is acquired, the target file set where the history acquisition file is located is determined according to the history acquisition record, and the required target acquisition file is preferentially searched in the file set, so that the file searching efficiency of a system can be greatly improved under the scene that the file needs to be continuously acquired, the time consumption for searching the file is reduced, and the power consumption of the electronic device is reduced.
Referring to fig. 15, in some embodiments, the electronic device 700 may further include: a display 703, a radio frequency circuit 704, an audio circuit 705, a wireless fidelity module 706, and a power supply 707. The display 703, the rf circuit 704, the audio circuit 705, the wireless fidelity module 706, and the power source 707 are electrically connected to the processor 701, respectively.
The display 703 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be comprised of graphics, text, icons, video, and any combination thereof. The Display 703 may include a Display panel, which may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like in some embodiments.
The radio frequency circuit 704 may be used for transceiving radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and to transceive signals with the network device or other electronic devices.
The camera 705 may be used to acquire images.
The acoustic-to-electrical conversion module 706 may be used to convert sound into electrical signals that may be recognized by the electronic device, such that the electronic device may process the electrical signals to form an audio file.
The power supply 707 may be used to power various components of the electronic device 700. In some embodiments, the power supply 707 may be logically coupled to the processor 701 through a power management system to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in fig. 12, the electronic device 700 may further include a bluetooth module or the like, which is not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, where the plurality of instructions are suitable for being loaded by a processor to perform the file obtaining method in the foregoing embodiment, for example: when a file acquisition instruction is received, acquiring a pre-stored history acquisition record; according to the history acquisition files in the history acquisition records, determining a target file set where the history acquisition files are located in a preset file set library; and acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable medium, which may include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method, the apparatus, the storage medium, and the electronic device for acquiring files provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and the embodiments of the present application, and the description of the embodiments above is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A file acquisition method is applied to electronic equipment and is characterized by comprising the following steps:
when the point reading function is used, receiving an image acquisition instruction, and acquiring a target image according to the image acquisition instruction;
identifying the target image to obtain character information in the target image;
taking the text information as text information to be matched, and generating a file acquisition instruction according to the text information to be matched;
when a file acquisition instruction is received, extracting content keywords in a history acquisition file, associating the content keywords with the history acquisition file, and acquiring a pre-stored history acquisition record, wherein the history acquisition record comprises a plurality of acquisition records of the history acquisition file;
matching the character information to be matched with the content keywords in the plurality of history acquisition files;
if the content keywords successfully matched with the character information to be matched exist, taking the history acquisition file corresponding to the successfully matched content keywords as a target history acquisition file;
determining a target file set where the target history acquisition file is located in a preset file set library;
and acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
2. The file acquisition method according to claim 1, wherein the file acquisition instruction carries text information to be matched, and each file in the file set is associated with corresponding preset text information;
in the target file set, acquiring a target acquisition file includes:
acquiring character information to be matched carried by the file acquisition instruction, and matching the character information to be matched with the preset character information;
judging whether preset character information matched with the character information to be matched exists or not;
and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
3. The file acquisition method according to claim 1 or 2, wherein the file collection includes a plurality of files, each file is provided with a sequence mark, and the sequence marks are used for embodying a sequence relationship of the files in the file collection;
in the target file set, acquiring a target acquisition file includes:
acquiring a sequence mark corresponding to the history acquisition file;
determining a file to be retrieved in the target file set according to a sequence mark corresponding to the history acquisition file, wherein the file to be retrieved is a file which is positioned behind the sequence of the history acquisition file in the target file set;
and sequentially retrieving and acquiring the target acquisition file in the file to be retrieved.
4. A file acquisition apparatus, characterized by comprising:
the image acquisition module is used for receiving an image acquisition instruction when a point reading function is used and acquiring a target image according to the image acquisition instruction;
the information identification module is used for identifying the target image to obtain the character information in the target image;
the instruction generating module is used for taking the character information as character information to be matched and generating a file acquiring instruction according to the character information to be matched;
the association module is used for extracting content keywords in a history acquisition file and associating the content keywords with the history acquisition file;
the record acquisition module is used for acquiring a pre-stored history acquisition record when a file acquisition instruction is received, wherein the history acquisition record comprises a plurality of acquisition records of the history acquisition file;
the second matching sub-module is used for matching the text information to be matched with the content keywords in the plurality of history acquisition files; if the content keywords successfully matched with the character information to be matched exist, taking the history acquisition file corresponding to the successfully matched content keywords as a target history acquisition file; and
the second determining submodule is used for determining a target file set in which the target history acquisition file is located in a preset file set library;
and the acquisition module is used for acquiring a target acquisition file in the target file set, wherein the target acquisition file is the file acquired by the file acquisition instruction.
5. The file acquisition device according to claim 4, wherein the file acquisition instruction carries text information to be matched, and each file in the file set is associated with corresponding preset text information;
the acquisition module includes:
the first matching sub-module is used for acquiring the character information to be matched carried by the file acquisition instruction and matching the character information to be matched with the preset character information;
the first acquisition sub-module is used for judging whether preset character information matched with the character information to be matched exists or not; and if so, taking the file corresponding to the associated character information as a target acquisition file and acquiring the target acquisition file.
6. The file acquisition apparatus according to claim 4 or 5, wherein the file set includes a plurality of files, each of the files is provided with a sequence marker, and the sequence markers are used for representing a sequence relationship of the files in the file set;
the acquisition module includes:
the mark acquisition submodule is used for acquiring a sequence mark corresponding to the history acquisition file;
the first determining submodule is used for determining a file to be retrieved in the target file set according to the sequence mark corresponding to the history acquisition file, wherein the file to be retrieved is a file which is positioned in the target file set and behind the sequence of the history acquisition file; and
and the second obtaining submodule is used for sequentially retrieving and obtaining the target obtaining file in the file to be retrieved.
7. A storage medium storing a plurality of instructions adapted to cause a computer to perform the file acquisition method according to any one of claims 1 to 3 when the computer runs on the storage medium.
8. An electronic device comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to execute the file acquisition method according to any one of claims 1 to 3 by loading the instructions in the memory.
CN201711087225.5A 2017-11-07 2017-11-07 File acquisition method and device, storage medium and electronic equipment Active CN107885827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711087225.5A CN107885827B (en) 2017-11-07 2017-11-07 File acquisition method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711087225.5A CN107885827B (en) 2017-11-07 2017-11-07 File acquisition method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107885827A CN107885827A (en) 2018-04-06
CN107885827B true CN107885827B (en) 2021-06-01

Family

ID=61779200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711087225.5A Active CN107885827B (en) 2017-11-07 2017-11-07 File acquisition method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107885827B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078915B (en) * 2019-06-09 2024-02-23 广东小天才科技有限公司 Click-to-read content acquisition method in click-to-read mode and electronic equipment
CN113946853B (en) * 2021-10-29 2024-01-30 苏州浪潮智能科技有限公司 File filtering method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838866A (en) * 2014-03-20 2014-06-04 广东小天才科技有限公司 Text transformation method and device
CN104050838A (en) * 2014-07-15 2014-09-17 北京网梯科技发展有限公司 Reading system, device and method capable of recognizing and reading common printed matter
CN104253904A (en) * 2014-09-04 2014-12-31 广东小天才科技有限公司 Method and smartphone for implementing reading learning
CN106294657A (en) * 2016-08-04 2017-01-04 深圳市奇米教育科技有限公司 Based on books recognition methods and the device of painting this page

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978369B (en) * 2014-04-14 2020-02-18 腾讯科技(深圳)有限公司 File searching method and device
CN104462307A (en) * 2014-11-28 2015-03-25 深圳市中兴移动通信有限公司 Searching method and device for object in terminal
CN104794180B (en) * 2015-04-09 2018-06-15 广东小天才科技有限公司 A kind of point reader scanning obtains the method and device of learning materials
CN105574062A (en) * 2015-07-01 2016-05-11 宇龙计算机通信科技(深圳)有限公司 File retrieval method and apparatus and terminal
CN105138586A (en) * 2015-07-30 2015-12-09 魅族科技(中国)有限公司 File searching method and apparatus
CN105354318A (en) * 2015-11-13 2016-02-24 北京金山安全软件有限公司 File searching method and device
US11314791B2 (en) * 2016-03-23 2022-04-26 Ebay Inc. Smart match autocomplete system
CN106682243A (en) * 2017-02-28 2017-05-17 深圳天珑无线科技有限公司 Browsing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838866A (en) * 2014-03-20 2014-06-04 广东小天才科技有限公司 Text transformation method and device
CN104050838A (en) * 2014-07-15 2014-09-17 北京网梯科技发展有限公司 Reading system, device and method capable of recognizing and reading common printed matter
CN104253904A (en) * 2014-09-04 2014-12-31 广东小天才科技有限公司 Method and smartphone for implementing reading learning
CN106294657A (en) * 2016-08-04 2017-01-04 深圳市奇米教育科技有限公司 Based on books recognition methods and the device of painting this page

Also Published As

Publication number Publication date
CN107885827A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
US20130019176A1 (en) Information processing apparatus, information processing method, and program
US20150262583A1 (en) Information terminal and voice operation method
CN107885826B (en) Multimedia file playing method and device, storage medium and electronic equipment
CN105094760A (en) Picture marking method and device
JP2006527870A (en) Configurable information identification system and method
CN107436948B (en) File searching method and device and terminal
CN105956008A (en) Picture management method and terminal
CN107885483B (en) Audio information verification method and device, storage medium and electronic equipment
US20160092421A1 (en) Text Editing Method and Apparatus, and Server
CN110347866B (en) Information processing method, information processing device, storage medium and electronic equipment
CN108228776B (en) Data processing method, data processing device, storage medium and electronic equipment
KR20110000679A (en) Method, apparatus and computer program product for providing an information model-based user interface
CN104599692A (en) Recording method and device and recording content searching method and device
CN108174270B (en) Data processing method, data processing device, storage medium and electronic equipment
CN107885827B (en) File acquisition method and device, storage medium and electronic equipment
CN107679128B (en) Information display method and device, electronic equipment and storage medium
CN112181253A (en) Information display method and device and electronic equipment
CN111160029A (en) Information processing method and device, electronic equipment and computer readable storage medium
CN107885482B (en) Audio playing method and device, storage medium and electronic equipment
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113055529B (en) Recording control method and recording control device
CN108052525B (en) Method and device for acquiring audio information, storage medium and electronic equipment
KR100914130B1 (en) Multimedia Processing Appartatus Capable of Retrieving Different Kinds of Multimedia Contents and Method for Retrieving Different Kinds of Multimedia Contents Using Tag
CN106959970B (en) Word bank, processing method and device of word bank and device for processing word bank
CN111382367B (en) Search result ordering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant