CN104462294B - A kind of image searching method, device and terminal - Google Patents

A kind of image searching method, device and terminal Download PDF

Info

Publication number
CN104462294B
CN104462294B CN201410708216.3A CN201410708216A CN104462294B CN 104462294 B CN104462294 B CN 104462294B CN 201410708216 A CN201410708216 A CN 201410708216A CN 104462294 B CN104462294 B CN 104462294B
Authority
CN
China
Prior art keywords
file
root
party software
root file
picture
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.)
Expired - Fee Related
Application number
CN201410708216.3A
Other languages
Chinese (zh)
Other versions
CN104462294A (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 CN201410708216.3A priority Critical patent/CN104462294B/en
Publication of CN104462294A publication Critical patent/CN104462294A/en
Application granted granted Critical
Publication of CN104462294B publication Critical patent/CN104462294B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The embodiment of the invention discloses a kind of image searching method, including:When the root file on traversal search terminal internal memory is to obtain the picture file of needs, judge to whether there is the root file in preset database, wherein, the root file includes at least one catalogue file, and the database includes needing the file set searched for;If the root file in the database be present, whether the root file is detected in the file set for needing to search for;If the root file is in the file set for needing to search for, picture searching is carried out in the root file;If the root file is not at the file set for needing to search for, the root file is filtered.The embodiment of the invention also discloses a kind of picture searching device and terminal.Using the present invention, the file that can be needed not search for by filtering out obtains the picture of user's needs come fast search.

Description

A kind of image searching method, device and terminal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of image searching method, device and terminal.
Background technology
Many pictures are typically store in mobile phone, including download from the Internet picture, by camera shoot photo, use Family is used for ICON pictures for showing UI etc., the figure that often user wants from the picture and third party software copied elsewhere Piece is only the picture of the picture of the download, the photo of camera shooting or copy, the ICON figures for being used to show UI without this Piece.
At present, doing that the producer of Android phone is more and more, the file that different manufacturers place picture is general all different, Therefore, when some third party software desires access to the picture stored in mobile phone, it is necessary to which the RAM card of whole mobile phone is all searched for One time.However, now mobile phone internal memory it is increasing, the file on android system RAM card is very more, this allow for into The time spent during row picture searching is longer;This is additionally, since to be used to show that UI ICON pictures are especially more, after completing search, The most picture file that can cause to search out all is such ICON files so that user is difficult the picture for finding needs, Picture searching is less efficient.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of image searching method, device and terminal, can The file needed not search for by filtering out obtains the picture of user's needs come fast search.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of image searching method, including:
When the root file on traversal search terminal internal memory is to obtain the picture file of needs, preset data are judged It whether there is the root file in storehouse, wherein, the root file includes at least one catalogue file, the data Storehouse includes needing the file set searched for;
If the root file in the database be present, detect whether the root file is in the needs The file set of search;
If the root file is in the file set for needing to search for, figure is carried out in the root file Piece is searched for;
If the root file is not at the file set for needing to search for, the root file is filtered.
Correspondingly, the embodiment of the present invention additionally provides a kind of picture searching device, including:
First judge module, for obtaining the picture file of needs when the root file on traversal search terminal internal memory When, judge to whether there is the root file in preset database, wherein, the root file includes at least one Catalogue file, the database include needing the file set searched for;
First detection module, for having described in being the database in the judged result of first judge module During catalogue file, whether the root file is detected in the file set for needing to search for;
Search module, for detecting that the root file is in described and needs what is searched in the first detection module During file set, picture searching is carried out in the root file;
The search module, it is additionally operable to detect that the root file is not at the need in the first detection module During the file set to be searched for, the root file is filtered.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, including above-mentioned picture searching device.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention passes through when the current root catalogue file of terminal internal memory in detecting preset database be present The root file is detected whether in the file set for needing to search for, and in the file set searched in the needs at this Picture searching is carried out in root file, otherwise, then filters the root file, not carrying out picture to the root file searches Rope, so as to the file needed not search for by filtering out, realize that fast search obtains the picture of user's needs.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of image searching method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another image searching method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of picture searching device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another picture searching device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is referred to, is a kind of schematic flow sheet of image searching method provided in an embodiment of the present invention, the present invention is implemented The methods described of example can be applied particularly to mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) etc. in terminal, specifically, methods described includes:
S101:When the root file on traversal search terminal internal memory is to obtain the picture file of needs, judge preset Database in whether there is the root file, the database includes needing the file set searched for.
In specific embodiment, before it whether there is the root file in judging preset database, it can build in advance A database is found, and the root file that each third party software is created on the RAM card of terminal such as mobile phone is all added to In the database, the database includes needing the file set searched for.It is created to specifically, third party software can be obtained in terminal The root file deposited, and the root file of the third party software is copied in preset database;According to described The functional character of software of the third party, determine in the root file of the third party software with the presence or absence of the picture text for needing to search for Part;If it is determined that in the presence of the picture file for needing to search for, then the root file of the third party software is added to the data The file set searched for is needed in storehouse, so as to the functional character according to third party software, for example the software is that picture downloads software, Root file corresponding to figure below software is added in the file set of needs search.Wherein, the third party software Root file is the file under the soft root of the third party, and the root file is to be wrapped in the file under the root Include at least one catalogue file.
When thering is software to desire access to the picture stored in mobile phone, and carrying out the search of mobile phone EMS memory root file, i.e., Can determine whether with the presence or absence of the root file of the current search in the database, by whether presetting the root in Test database The relevant information of catalogue file come determine the need for the root file carry out picture searching.
S102:If the root file in the database be present, detect whether the root file is in institute State the file set for needing to search for.
In specific embodiment, the root file in the database be present when detecting, i.e., the root is preset in database Whether search information corresponding to catalogue file, then can further detect the root file and be in the database needs what is searched for In file set, in order to which the position stored according to the root file in database determines whether to need in the root Picture searching is carried out in file.
S103:If the root file is in the file set for needing to search for, in the root file Carry out picture searching.
S104:If the root file is not at the file set for needing to search for, the root text is filtered Part.
In specific embodiment, when the root file for detecting the current search is in the file set for needing to search for When, you can show to there may be the picture for needing to search in the root file, then can carry out picture to the root file searches Rope;Correspondingly, when detecting that the root file is not in the file set of needs search, you can show the root The picture for needing to search for is not present in file, then may filter that the root file, not carrying out picture to the root file searches Rope.
Further, the database may also include the file set needed not search for;In initialized data base, according to The functional character of software of the third party, however, it is determined that the picture file for needing to search for is not present in the root file of third party software, than Such as common software, exist in the root file of the software substantial amounts of ICON files be used for showing UI (User Interface, User interface), then the root file of the third party software can be added in the database to the file set needed not search for Close.If specifically, the root file is not at the file set for needing to search for, the root text is filtered Part can be specially:If the root file in the database be present, whether the root file is detected in described The file set needed not search in database;If the root file is in the file set needed not search for, The root file is filtered, i.e., does not carry out picture searching in the root file.
Further, when picture searching is carried out in the root file, one is there is likely to be in the root file A little ICON files.And the ICON files required for showing UI due to third party software are all smaller, typically all in tens K or so, And the size for the photo that the picture that user wants such as is shot by camera is typically all hundreds of more than K, and typically larger than 1M, because This, can also be by obtaining mesh in the root file when carrying out the traversal search of catalogue file for the root file Record the file size of file;Judge whether the file size of the catalogue file is less than default picture size threshold value, the figure What the picture/mb-type of picture file of the piece size threshold value to be needed according to user was pre-set;If the file of the catalogue file Size is less than the picture size threshold value, then filters the picture file, enabling filter out in the root file ICON files.For example, the default picture size threshold value is 100K, when picture searching is carried out in the root file, also Can be using file of the catalogue file size in the root file less than 100K as the ICON files, and filter out ICON texts Part, so as to further reduce search catalogue, enabling rapidly search for out the picture file of user's needs.
Implement the embodiment of the present invention when the current root catalogue file of terminal internal memory in detecting preset database be present, By whether detecting the root file in the file set for needing to search for, and in the file set searched in the needs Picture searching is carried out in the root file, otherwise, then filters the root file, picture is not carried out to the root file Search, so as to the file needed not search for by filtering out, realize that fast search obtains the picture of user's needs.
Fig. 2 is referred to, is the schematic flow sheet of another image searching method provided in an embodiment of the present invention, specifically, The methods described of the embodiment of the present invention includes:
S201:When the root file on traversal search terminal internal memory is to obtain the picture file of needs, judge preset Database in whether there is the root file, the database includes needing the file set searched for.
In specific embodiment, root file on traversal search terminal internal memory with obtain the picture file of needs it Before, a database can be pre-established, the database includes needing the file set searched for and the file set needed not search for. Specifically, the root file of terminal internal memory can be created to by obtaining third party software, and by the root of the third party software Catalogue file is copied in preset database;According to the functional character of the third party software, the third party software is determined Root file in the presence or absence of needing the picture file searched for;If it is determined that in the presence of the picture file for needing to search for, then by institute The root file for stating third party software is added in the database file set for needing to search for;Otherwise, by the third party The root file of software is added in the file set that this is needed not search for.Wherein, the root file includes at least one Individual catalogue file.
When thering is software to desire access to the picture stored in mobile phone, and carrying out the search of mobile phone EMS memory root file, i.e., Can by judge in the database whether there is the current search root file, and judged result for be when, further The file set that the root file is in database is detected, so that it is determined that going out whether to need to carry out the root file Picture searching.Specifically, when the root file for detecting the current search is in the file set for needing to search for, you can table The picture for needing to search for is there may be in the bright root file, you can picture searching is carried out to the root file;Correspondingly, When detecting that the root file is in the file set that this is needed not search for, you can show to be not present in the root file Need the picture searched for, you can filter out the root file, picture searching is not carried out to the root file.
S202:If the root file is not present in the database, the filename of the root file is obtained.
It is if the root file of current search is not present in the database, i.e., not pre- in the database in specific embodiment , can also be by obtaining the file of the root file when being equipped with the relevant information of third party software corresponding to the root file Name, judge whether to need to carry out picture searching to the root file according to the filename of the root file.
S203:Whether the naming rule for detecting the filename of the root file meets default filtering rule.
S204:If meeting the filtering rule, the root file is filtered.
Wherein, the filtering rule be according to terminal system to the naming rule of the root file of third party software will Ask what is determined.
Specifically, it can be set in advance according to requirement of the current system to the naming rule of the root file of third party software Put the filtering rule of filename.For example, for Android phone, according to the requirement of Android naming rules, third party software Corresponding file can be put under a file named in the form of " xxx.xxx.xxx ", be somebody's turn to do the text of " xxx.xxx.xxx " form Part folder name is usually the flashback of the website of the ownership company of the software, for example company's site is " www.abc.com ", then the public affairs Root file is generally designated as " com.abc.www " corresponding to the software of department.Therefore, the life of " xxx.xxx.xxx " will can be somebody's turn to do Name mode is as the filtering rule.When the naming rule of the filename for the root file for detecting current search meets to be somebody's turn to do During the filtering rule of " xxx.xxx.xxx ", you can it is determined that picture searching is not carried out to the root file, so as to reduce search Catalogue, and eliminate many ICON files.
S205:If being unsatisfactory for the filtering rule, when picture searching is carried out in the root file, described is obtained The file size of catalogue file in catalogue file.
S206:Judge whether the file size of the catalogue file is less than default picture size threshold value.
S207:If being less than the picture size threshold value, the catalogue file is filtered.
Further, if the naming rule of the filename of the root file is unsatisfactory for the default filtering rule, that is, need When picture searching is carried out in the root file, some ICON files are there is likely to be in the root file, and due to ICON files required for third party software shows UI are all smaller, and typically all in tens K or so, and the picture that user wants is such as The size of the photo shot by camera is typically all hundreds of more than K, and typically larger than 1M, therefore, for the root When file carries out the traversal search of catalogue file, the file size of catalogue file in the root file, and root can be also obtained According to the file size of the catalogue file, less catalogue file is filtered out, is filtered out so as to realize in the root file ICON files.Wherein, the picture size threshold value is pre-set according to the picture/mb-type of the picture file of the needs.
For example, the picture/mb-type of the picture file of the needs includes common static images and gif dynamic pictures, this is general Picture size threshold value may be configured as 100K corresponding to logical static images, and picture size threshold value corresponding to the gif dynamic pictures can 200K is arranged to, then when carrying out picture searching in for the root file, you can by file size in the root file The gif dynamic pictures of common static images and file size less than 200K less than 100K are used to show UI's as this ICON files, and filter out the ICON files so that search catalogue is further reduced, so as to rapidly search for out user The picture file needed.
Implement the embodiment of the present invention by detecting in preset database with the presence or absence of the current root text of terminal internal memory Part, and the root file is carried out when detecting that the root file is in and needs the file set searched in the database Picture searching, the root file is then filtered when detecting that the root file is in the file set needed not search for, no Picture searching is carried out to the root file;, can also be according to the root mesh when current root catalogue file is not present in the database The filename for recording file is filtered, and when the catalogue file in root file scans for, further filtering Fall less catalogue file, so as to filter a large amount of ICON files stored in mobile phone, fast search obtains the picture of user's needs.
Fig. 3 is referred to, is a kind of structural representation of picture searching device provided in an embodiment of the present invention, the present invention is implemented The described device of example can be specifically arranged in the terminals such as mobile phone, tablet personal computer, PDA, judged specifically, described device includes first Module 11, first detection module 12 and search module 13.Wherein,
First judge module 11, for obtaining the figure of needs when the root file on traversal search terminal internal memory During piece file, judge to whether there is the root file in preset database, the database includes needing the text searched for Part set.
When thering is software to desire access to the picture stored in mobile phone, and carrying out the search of mobile phone EMS memory root file, the One judge module 11 is the root file that can determine whether to whether there is in preset database the current search, in order to pass through inspection Survey in database and whether preset the relevant information of the root file to determine the need for carrying out figure to the root file Piece is searched for.Wherein, the root file of the third party software is the file under the soft root of the third party, and the root is literary Part is that the file under root includes at least one catalogue file.
The first detection module 12, for being deposited in being the database in the judged result of first judge module 11 In the root file, whether the root file is detected in the file set for needing to search for.
In specific embodiment, the root file, i.e. data in the database be present when the first judge module 11 detects When search information corresponding to the root file is preset in storehouse, then the root mesh can be further detected by first detection module 12 Whether record file, which is in the database, needs in the file set searched for, in order to according to the root file in database The position of storage determines whether to need to carry out picture searching in the root file.
Search module 13, for detecting that the root file is in the needs and searched in the first detection module 12 During the file set of rope, picture searching is carried out in the root file;
The search module 13, it is additionally operable to detect that the root file is not at institute in the first detection module 12 When stating the file set for needing to search for, the root file is filtered.
In specific embodiment, need to search for when first detection module 12 detects that the root file of the current search is in File set in when, you can show to there may be the picture for needing to search in the root file, then can pass through search module 13 pairs of root files carry out picture searching;Correspondingly, when first detection module 12 detects that the root file is not at When in the file set of needs search, you can show that the picture for needing to search for is not present in the root file, then can pass through Search module 13 filters out the root file, does not carry out picture searching to the root file.
Implement the embodiment of the present invention when the current root catalogue file of terminal internal memory in detecting preset database be present, By whether detecting the root file in the file set for needing to search for, and in the file set searched in the needs Picture searching is carried out in the root file, otherwise, then filters the root file, picture is not carried out to the root file Search, so as to the file needed not search for by filtering out, realize that fast search obtains the picture of user's needs.
Fig. 4 is referred to, is the structural representation of another picture searching device provided in an embodiment of the present invention, specifically, The described device of the embodiment of the present invention includes the first judge module 11, first detection module 12 and search module 13.Wherein,
First judge module 11, for obtaining the figure of needs when the root file on traversal search terminal internal memory During piece file, judge to whether there is the root file in preset database, the database includes needing the text searched for Part set.
When thering is software to desire access to the picture stored in mobile phone, and carrying out the search of mobile phone EMS memory root file, the One judge module 11 is the root file that can determine whether to whether there is in preset database the current search, in order to pass through inspection Survey in database and whether preset the relevant information of the root file to determine the need for carrying out figure to the root file Piece is searched for.Wherein, the root file of the third party software is the file under the soft root of the third party, and the root is literary Part includes at least one catalogue file.
The first detection module 12, for being deposited in being the database in the judged result of first judge module 11 In the root file, whether the root file is detected in the file set for needing to search for.
In specific embodiment, the root file, i.e. data in the database be present when the first judge module 11 detects When search information corresponding to the root file is preset in storehouse, then the root mesh can be further detected by first detection module 12 Whether record file, which is in the database, needs in the file set searched for, in order to according to the root file in database The position of storage determines whether to need to carry out picture searching in the root file.
Search module 13, for detecting that the root file is in the needs and searched in the first detection module 12 During the file set of rope, picture searching is carried out in the root file;
The search module 13, it is additionally operable to detect that the root file is not at institute in the first detection module 12 When stating the file set for needing to search for, the root file is filtered.
In specific embodiment, need to search for when first detection module 12 detects that the root file of the current search is in File set in when, you can show to there may be the picture for needing to search in the root file, then can pass through search module 13 pairs of root files carry out picture searching;Correspondingly, when first detection module 12 detects that the root file is not at When in the file set of needs search, you can show that the picture for needing to search for is not present in the root file, then can pass through Search module 13 filters out the root file, does not carry out picture searching to the root file.
Further, in embodiments of the present invention, described device can also include:
Document processing module 14, the root file of terminal internal memory is created to for obtaining third party software, and by described in The root file of third party software is copied in preset database;
Determining module 15, for the functional character according to the third party software, determine the root mesh of the third party software With the presence or absence of the picture file for needing to search in record file;
Add module 16, for determine the third party software in the determining module 15 root file in exist need During the picture file to be searched for, the root file of the third party software is added in the database to the text for needing to search for Part set.
In specific embodiment, a database can be pre-established, and each third party software is created to terminal such as mobile phone RAM card on root file be all added in the database, the database includes needing the file set searched for.Specifically , third party software can be obtained by document processing module 14 and be created to the root file of terminal internal memory, and by the described 3rd The root file of square software is copied in preset database;Determining module 15 can be according to the functional character of the third party software Determine the picture file for needing to search for whether is there may be in the root file of the third party software, it is true in determining module 15 The fixed root file there may be the picture file for needing to search for, for example picture downloads root file corresponding to software, then The root file of the third party software can be added in the database by the file set for needing to search for by add module 16 Close.
Optionally, in embodiments of the present invention, the database also includes the file set needed not search for;It is determined that mould When block 15 determines that the picture file for needing to search for is not present in root file corresponding to the third party software, such as third party software For common software, substantial amounts of ICON files in the root file of the software be present and be used for showing UI, then can also pass through addition The root file of the third party software is added in the database file set needed not search for by module 16.
The search module 13 can be additionally used in:
If the judged result of the first judge module 11 is the root file in the database be present, described in detection Whether root file is in the database file set needed not search for;If the root file be in it is described not The file set searched for is needed, then filters the root file.
Further, in embodiments of the present invention, described device can also include:
First acquisition module 17, for being not present in being the database in the judged result of first judge module 11 During the root file, the filename of the root file is obtained.
In specific embodiment, if the first judge module 11 is detected in database in the absence of the root text of current search When not presetting the relevant information of third party software corresponding to the root file in part, the i.e. database, it can also pass through first Acquisition module 17 obtains the filename of the root file, in order to judge whether need according to the filename of the root file Picture searching is carried out to the root file.
Second detection module 18, for detect the naming rule of filename of the root file whether meet it is default Filtering rule.
Wherein, the filtering rule is the naming rule to the root file of the third party software according to terminal system Requirement determine.
The search module 13, it is additionally operable to detect the filename of the root file in second detection module 18 Naming rule when meeting the filtering rule, filter the root file.
Specifically, when the second detection module 18 detects that the naming rule of the filename of the root file of current search expires During the foot filtering rule, search module 13 may filter that the root file, that is, determine not carry out picture to the root file Search, so as to reduce the catalogue of search, eliminate many ICON files for being used to show UI.
Further, in embodiments of the present invention, described device can also include:
Second acquisition module 19, for during progress picture searching, obtaining the root text in the root file The file size of catalogue file in part.
Second judge module 20, for judging whether the file size of the catalogue file is less than default picture size threshold Value.
Wherein, the picture size threshold value is pre-set according to the picture/mb-type of the picture file of the needs.
Filtering module 21, in the file size that the judged result of second judge module 20 is the catalogue file During less than the picture size threshold value, the catalogue file is filtered.
Further, if the naming rule of the filename of the root file is unsatisfactory for the default filtering rule, that is, need When picture searching is carried out in the root file, some ICON files are there is likely to be in the root file, and due to ICON files required for third party software shows UI are all smaller, and typically all in tens K or so, and the picture that user wants is such as The size of the photo shot by camera is typically all hundreds of more than K, and typically larger than 1M, therefore, for the root When file carries out the traversal search of catalogue file, catalogue text in the root file can be also obtained by the second acquisition module 19 The file size of part, the second judge module 20 judge whether the file size of the catalogue file is less than default picture size threshold Value so that filtering module 21 can filter out the catalogue less than the picture size threshold value according to the file size of the catalogue file File, that is, less catalogue file is filtered out, so as to realize the ICON files filtered out in the root file.
For example, the picture/mb-type of the picture file of the needs includes common static images, the common static images pair The picture size threshold value answered may be configured as 100K, then the second acquisition module 19 carries out picture searching in for the root file When, the file size of the catalogue file in the root file can be obtained, the second judge module 20 detects that file size is less than 100K catalogue file, and by filtering module 21 by the file size of catalogue file in the root file be less than 100K text The ICON files that part is used to show UI as this, and filter out the ICON files so that search catalogue is further reduced, so as to The picture file of user's needs can be rapidly searched for out.
Implement the embodiment of the present invention by detecting in preset database with the presence or absence of the current root text of terminal internal memory Part, and the root file is carried out when detecting that the root file is in and needs the file set searched in the database Picture searching, the root file is then filtered when detecting that the root file is in the file set needed not search for, no Picture searching is carried out to the root file;, can also be according to the root mesh when current root catalogue file is not present in the database The filename for recording file is filtered, and when the catalogue file in root file scans for, further filtering Fall less catalogue file, so as to filter out a large amount of ICON files stored in mobile phone, fast search obtains the figure of user's needs Piece.
Fig. 5 is a kind of structural representation of the terminal provided in the embodiment of the present invention.As shown in figure 5, the terminal includes: At least one processor 100, such as CPU, at least one user interface 300, memory 400, at least one communication bus 200. Wherein, communication bus 200 is used to realize the connection communication between these components.Wherein, user interface 300 can include display screen Curtain (Display), keyboard (Keyboard), optional user interface 300 can also include wireline interface, the wave point of standard. Memory 400 can be high-speed RAM memory or non-labile memory (non-volatile memory), example Such as at least one magnetic disk storage.Memory 400 optionally can also be at least one and be located remotely from depositing for aforementioned processor 100 Storage device.Batch processing code is stored wherein in memory 400, and processor 100 calls the program generation stored in memory 400 Code, for performing following operation:
When the root file on traversal search terminal internal memory is to obtain the picture file of needs, preset data are judged It whether there is the root file in storehouse, wherein, the root file includes at least one catalogue file, the data Storehouse includes needing the file set searched for;
If the root file in the database be present, detect whether the root file is in the needs The file set of search;
If the root file is in the file set for needing to search for, figure is carried out in the root file Piece is searched for;
If the root file is not at the file set for needing to search for, the root file is filtered.
In an alternative embodiment, processor 100 may call upon the program code stored in memory 400 and perform following grasp Make:
The root file that third party software is created to terminal internal memory is obtained, and the root of the third party software is literary Part is copied in preset database;
According to the functional character of the third party software, determine to whether there is in the root file of the third party software Need the picture file searched for;
If in the presence of the picture file for needing to search for, the root file of the third party software is added to the data The file set searched for is needed in storehouse.
In an alternative embodiment, the database also includes the file set needed not search for;Processor 100 calls storage If the program code stored in device 400 performs the root file and is not at the file set for needing to search for, The root file is filtered, for performing following operation:
If the root file in the database be present, detect whether the root file is in the data The file set needed not search in storehouse;
If the root file is in the file set needed not search for, the root file is filtered.
In an alternative embodiment, processor 100 may call upon the program code stored in memory 400 and perform following grasp Make:
If the root file is not present in the database, the filename of the root file is obtained;
Whether the naming rule for detecting the filename of the root file meets default filtering rule, the filtering rule It is then to be determined according to requirement of the terminal system to the naming rule of the root file of third party software;
If meeting the filtering rule, the root file is filtered.
In an alternative embodiment, processor 100 may call upon the program code stored in memory 400 and perform following grasp Make:
When picture searching is carried out in the root file, the file of the catalogue file in the root file is obtained Size;
Judge whether the file size of the catalogue file is less than default picture size threshold value, the picture size threshold value It is to be pre-set according to the picture/mb-type of the picture file of the needs;
If being less than the picture size threshold value, the catalogue file is filtered.
Specifically, the terminal of the embodiment of the present invention, which can refer to Fig. 3 to Fig. 4, corresponds to picture searching device in embodiment Associated description.
Implement the embodiment of the present invention when the current root catalogue file of terminal internal memory in detecting preset database be present, By whether detecting the root file in the file set for needing to search for, and in the file set searched in the needs Picture searching is carried out in the root file, otherwise, then filters the root file, picture is not carried out to the root file Search, so as to the file needed not search for by filtering out, realize that fast search obtains the picture of user's needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (7)

  1. A kind of 1. image searching method, it is characterised in that including:
    Obtain third party software and be created to the root file of terminal internal memory, and the root file of the third party software is answered Make in preset database;
    If the third party software, which is picture, downloads software, root file corresponding to the third party software is added to needs In the file set of search, wherein, root file corresponding to the third party software includes at least one catalogue file, institute Stating database includes needing the file set searched for and the file set needed not search for;
    If the icon ICON files for being used for showing user interface UI in the root file of the third party software be present, can incite somebody to action The root file of the third party software is added in the database file set needed not search for;
    When the root file on traversal search terminal internal memory is to obtain the picture file of needs, judge in preset database With the presence or absence of the root file of the third party software;
    If the root file of the third party software in the database be present, the root of the third party software is detected Whether file is in the file set for needing to search for;
    If the root file of the third party software is in the file set for needing to search for, in the third party software Root file in carry out picture searching;If the root file of the third party software is in the text needed not search for Part set, then filter the root file of the third party software;
    If in the database be not present the third party software root file, represent in the database it is not preset The relevant information of third party software corresponding to the root file of third party software is stated, then according to the root mesh of the third party software The filename of record file judges whether to need to carry out picture searching to the root file of the third party software.
  2. 2. according to the method for claim 1, it is characterised in that the root file according to the third party software Filename judges whether to need to carry out the root file of the third party software picture searching, including:
    Obtain the filename of the root file of the third party software;
    Whether the naming rule for detecting the filename of the root file of the third party software meets default filtering rule, institute Stating filtering rule is determined according to requirement of the terminal system to the naming rule of the root file of third party software;
    If meeting the filtering rule, the root file of the third party software is filtered.
  3. 3. method according to claim 1 or 2, it is characterised in that methods described also includes:
    When picture searching is carried out in the root file of the third party software, the root text of the third party software is obtained The file size of catalogue file in part;
    Judge whether the file size of the catalogue file is less than default picture size threshold value, the picture size threshold value is root Pre-set according to the picture/mb-type of the picture file of the needs;
    If being less than the picture size threshold value, the catalogue file is filtered.
  4. A kind of 4. picture searching device, it is characterised in that including:
    Document processing module, is created to the root file of terminal internal memory for obtaining third party software, and by the third party The root file of software is copied in preset database;
    Determining module, whether it is under picture for determine the third party software according to the functional character of the third party software Carry software;
    Add module, if being that picture downloads software for the third party software, by root corresponding to the third party software File is added in the file set for needing to search for, wherein, root file is included at least corresponding to the third party software One catalogue file, the database include needing the file set searched for and the file set needed not search for;
    The add module, it is used for showing user interface UI's if being additionally operable to exist in the root file of the third party software Icon ICON files, then the root file of the third party software can be added in the database to the file needed not search for Set;
    First judge module, for when the root file on traversal search terminal internal memory is to obtain the picture file of needs, Judge in preset database with the presence or absence of the root file of the third party software;
    First detection module, for the third party be present in being the database in the judged result of first judge module During the root file of software, whether the root file of the third party software is detected in the file set for needing to search for Close;
    Search module, for detecting that the root file of the third party software is in the need in the first detection module During the file set to be searched for, picture searching is carried out in the root file of the third party software;The search module is also Root file for detecting the third party software in the first detection module is in the text needed not search for During part set, the root file of the third party software is filtered;Do not deposited in the database if the first judge module detects In the root file of the third party software, represent not presetting the root file of the third party software in the database The relevant information of corresponding third party software, then judged whether according to the filename of the root file of the third party software Need to carry out picture searching to the root file of the third party software.
  5. 5. device according to claim 4, it is characterised in that described device also includes:
    First acquisition module, for being not present the described 3rd in being the database in the judged result of first judge module During the root file of square software, the filename of the root file of the third party software is obtained;
    Whether the second detection module, the naming rule of the filename of the root file for detecting the third party software meet Default filtering rule, the filtering rule are the naming rule to the root file of third party software according to terminal system It is required that determine;
    The search module, it is additionally operable to detect the text of the root file of the third party software in second detection module When the naming rule of part name meets the filtering rule, the root file of the third party software is filtered.
  6. 6. the device according to claim 4 or 5, it is characterised in that described device also includes:
    Second acquisition module, during for carrying out picture searching in the root file of the third party software, obtain described the The file size of catalogue file in the root file of software of the third party;
    Second judge module, for judging whether the file size of catalogue file of the third party software is less than default picture Size threshold value, the picture size threshold value are pre-set according to the picture/mb-type of the picture file of the needs;
    Filtering module, it is described for being less than in the file size that the judged result of second judge module is the catalogue file During picture size threshold value, the catalogue file is filtered.
  7. 7. a kind of terminal, it is characterised in that including the picture searching device as described in claim any one of 4-6.
CN201410708216.3A 2014-11-28 2014-11-28 A kind of image searching method, device and terminal Expired - Fee Related CN104462294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410708216.3A CN104462294B (en) 2014-11-28 2014-11-28 A kind of image searching method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410708216.3A CN104462294B (en) 2014-11-28 2014-11-28 A kind of image searching method, device and terminal

Publications (2)

Publication Number Publication Date
CN104462294A CN104462294A (en) 2015-03-25
CN104462294B true CN104462294B (en) 2018-03-27

Family

ID=52908329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410708216.3A Expired - Fee Related CN104462294B (en) 2014-11-28 2014-11-28 A kind of image searching method, device and terminal

Country Status (1)

Country Link
CN (1) CN104462294B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446166B (en) * 2018-09-03 2023-11-17 国信金宏信息咨询有限责任公司 Method for detecting file directory, computer readable storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060133410A (en) * 2005-06-20 2006-12-26 엘지전자 주식회사 Method for managing file database and searching file in multimedia device
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN103548013A (en) * 2011-05-22 2014-01-29 微软公司 Search and browse hybrid
CN103631844A (en) * 2012-08-23 2014-03-12 佳能株式会社 File search apparatus, file search method, image search apparatus, and non-transitory computer readable storage medium
CN103853791A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Implementation method and device for quick file retrieving

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060133410A (en) * 2005-06-20 2006-12-26 엘지전자 주식회사 Method for managing file database and searching file in multimedia device
CN103548013A (en) * 2011-05-22 2014-01-29 微软公司 Search and browse hybrid
CN103631844A (en) * 2012-08-23 2014-03-12 佳能株式会社 File search apparatus, file search method, image search apparatus, and non-transitory computer readable storage medium
CN103853791A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Implementation method and device for quick file retrieving
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server

Also Published As

Publication number Publication date
CN104462294A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
TWI498843B (en) Portable electronic device, content recommendation method and computer-readable medium
US20140075354A1 (en) Apparatus and method for providing user interface for data management
US8935617B2 (en) Centralized media handling
WO2016101757A1 (en) Image processing method and device based on mobile device
US20180225854A1 (en) Picture processing method and apparatus
CN105183837B (en) Thumbnail list view display method and system of mobile terminal
CN103873575B (en) The method and apparatus of application operating is carried out based on wifi user interfaces
CN102521258A (en) Method and device for providing wallpaper picture
US20140095964A1 (en) Message links
US10136011B2 (en) Automatic scanning of document stack with a camera
CN104166694A (en) Image classifying and storing method and electronic device
CN105446572A (en) Text-editing method and device used for screen display device
CN105378728A (en) Apparatus and method for representing and manipulating metadata
CN104103087A (en) Picture display and management method and system with text introduction function
US20160092441A1 (en) File Acquiring Method and Device
CN103677517A (en) Method and device for searching pictures
CN104756102A (en) Terminal and application program interaction method
CN106484779B (en) File operation method and device
CN103209304A (en) Imaging device and imaging method
CN110865981A (en) File access method for mobile terminal and mobile terminal thereof
CN107391618A (en) A kind of picture classification storage method, mobile terminal and storage device
CN103207725A (en) Icon conversion method and device
CN104462294B (en) A kind of image searching method, device and terminal
CN104424270A (en) Method and device for displaying pictures
CN104021215B (en) Picture sorting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

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

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180327