CN107908770A - A kind of photo searching method and mobile terminal - Google Patents
A kind of photo searching method and mobile terminal Download PDFInfo
- Publication number
- CN107908770A CN107908770A CN201711237603.3A CN201711237603A CN107908770A CN 107908770 A CN107908770 A CN 107908770A CN 201711237603 A CN201711237603 A CN 201711237603A CN 107908770 A CN107908770 A CN 107908770A
- Authority
- CN
- China
- Prior art keywords
- photo
- search
- information
- mobile terminal
- photos
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提供一种照片搜索方法及移动终端,其中,所述照片搜索方法包括:获取用户输入的关键词信息,确定所述关键词信息对应的目标搜索功能,根据所述关键词信息,对待搜索图库执行所述目标搜索功能,得到搜索照片。本发明的方案,能够基于用户输入的关键词信息自动且智能地搜索照片,从而相比于现有的手动搜索照片,可极大地提高照片搜索效率,提升用户搜索照片时的体验。
The present invention provides a photo search method and a mobile terminal, wherein the photo search method includes: acquiring keyword information input by a user, determining a target search function corresponding to the keyword information, and according to the keyword information, treating The gallery executes the target search function to obtain the searched photos. The solution of the present invention can automatically and intelligently search for photos based on the keyword information input by the user, thereby greatly improving photo search efficiency and improving user experience when searching for photos compared with the existing manual search for photos.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种照片搜索方法及移动终端。The invention relates to the field of communication technology, in particular to a photo search method and a mobile terminal.
背景技术Background technique
随着终端技术的发展,当前移动终端例如手机中的拍照功能越来越强大,越来越多的用户选择利用手机来拍摄照片,并将拍摄到的照片直接存储在手机相册中。此外用户还可将下载照片存储在手机相册中,进而导致手机相册中可能具有成百上千张照片。With the development of terminal technology, the photographing function of current mobile terminals such as mobile phones is becoming more and more powerful, and more and more users choose to use mobile phones to take pictures and store the photographs directly in the mobile phone album. In addition, the user can also store the downloaded photos in the photo album of the mobile phone, which may have hundreds or even thousands of photos in the photo album of the mobile phone.
目前,大多数手机(例如安卓手机)中均没有提供照片搜索功能,因此当用户想要查看某张照片时,只能在手机相册中手动搜索。其中,用户在手机相册中手动搜索照片时,可点开大图进行单张浏览,或者在相册缩略图中进行快速浏览。但是,单张浏览照片的效率很低,且当照片数量较多时,大量重复性的左右滑动操作会降低用户体验;采用相册缩略图浏览时,虽然相比于单张浏览效率有所提升,但往往会因为照片较小、细节较少,而不能一次性找到目标照片,需要在相册中来回滑动寻找,造成搜索照片的效率较低。At present, most mobile phones (such as Android phones) do not provide a photo search function, so when a user wants to view a certain photo, he can only manually search in the mobile phone photo album. Among them, when users manually search for photos in the mobile phone album, they can click on the big picture to browse individually, or quickly browse in the thumbnails of the album. However, the efficiency of browsing photos individually is very low, and when there are a large number of photos, a large number of repetitive left and right sliding operations will reduce the user experience; when browsing with album thumbnails, although the efficiency is improved compared with single browsing, but Often because the photos are small and have few details, it is impossible to find the target photo at one time, and you need to swipe back and forth in the album to find it, resulting in low efficiency of searching for photos.
发明内容Contents of the invention
本发明实施例提供一种照片搜索方法及移动终端,以解决现有的手动搜索照片的效率较低的问题。Embodiments of the present invention provide a photo search method and a mobile terminal to solve the existing problem of low efficiency of manual photo search.
为了解决上述问题,第一方面,本发明实施例提供了一种照片搜索方法,应用于移动终端,包括:In order to solve the above problems, in the first aspect, an embodiment of the present invention provides a photo search method applied to a mobile terminal, including:
获取用户输入的关键词信息;Obtain keyword information entered by the user;
确定所述关键词信息对应的目标搜索功能;determining the target search function corresponding to the keyword information;
根据所述关键词信息,对待搜索图库执行所述目标搜索功能,得到搜索照片。According to the keyword information, execute the target search function on the gallery to be searched to obtain the searched photos.
第二方面,本发明实施例还提供了一种移动终端,包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including:
获取模块,用于获取用户输入的关键词信息;An acquisition module, configured to acquire keyword information input by the user;
确定模块,用于确定所述关键词信息对应的目标搜索功能;A determining module, configured to determine a target search function corresponding to the keyword information;
执行模块,用于根据所述关键词信息,对待搜索图库执行所述目标搜索功能,得到搜索照片。The executing module is configured to execute the target search function on the gallery to be searched according to the keyword information to obtain the searched photos.
第三方面,本发明实施例还提供了一种移动终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述计算机程序被所述处理器执行时实现上述照片搜索方法的步骤。In a third aspect, an embodiment of the present invention also provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the computer program is executed by the The processor implements the steps of the above photo search method when executed.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现上述照片搜索方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the steps of the photo search method above are implemented.
本发明实施例的照片搜索方法及移动终端,通过获取用户输入的关键词信息,确定关键词信息对应的目标搜索功能,根据关键词信息,对待搜索图库执行目标搜索功能,得到搜索照片,能够基于用户输入的关键词信息自动且智能地搜索照片,从而相比于现有的手动搜索照片,可极大地提高照片搜索效率,提升用户搜索照片时的体验。The photo search method and the mobile terminal in the embodiment of the present invention obtain the keyword information input by the user, determine the target search function corresponding to the keyword information, perform the target search function on the library to be searched according to the keyword information, and obtain the search photo, which can be based on The keyword information input by the user can automatically and intelligently search photos, thereby greatly improving photo search efficiency and improving user experience when searching photos compared with existing manual photo search.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例的一照片搜索方法的流程图;Fig. 1 is a flowchart of a photo search method according to an embodiment of the present invention;
图2为本发明具体实例的照片搜索过程的流程图;Fig. 2 is the flow chart of the photo search process of the specific example of the present invention;
图3为本发明具体实例的命名照片的示意图;Fig. 3 is the schematic diagram of the named photo of the specific example of the present invention;
图4为本发明实施例的移动终端的结构示意图之一;FIG. 4 is one of the schematic structural diagrams of a mobile terminal according to an embodiment of the present invention;
图5为本发明实施例的移动终端的结构示意图之二;FIG. 5 is a second structural schematic diagram of a mobile terminal according to an embodiment of the present invention;
图6为本发明实施例的移动终端的结构示意图之三。FIG. 6 is a third structural schematic diagram of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
参见图1所示,本发明实施例提供了一种照片搜索方法,应用于移动终端,包括如下步骤:Referring to Fig. 1, an embodiment of the present invention provides a photo search method applied to a mobile terminal, including the following steps:
步骤101:获取用户输入的关键词信息。Step 101: Obtain keyword information input by the user.
本发明实施例中,用户在输入关键词信息时,可通过在搜索框中输入关键词信息来完成输入,也可通过操作终端界面上的标签来完成输入。具体的,步骤101可包括:In the embodiment of the present invention, when the user inputs the keyword information, the input can be completed by inputting the keyword information in the search box, or by operating the label on the terminal interface. Specifically, step 101 may include:
获取用户在搜索框中输入的关键词信息;或者Obtain keyword information entered by the user in the search box; or
通过用户对终端界面上的标签执行的操作,获取关键词信息。Keyword information is acquired through operations performed by the user on the labels on the terminal interface.
其中,用于输入关键词信息的搜索框可位于终端相册的主界面。当在搜索框中输入关键词信息时,可根据关键词信息,对照片进行精准搜索。Wherein, the search box for inputting keyword information may be located on the main interface of the terminal photo album. When you enter keyword information in the search box, you can search for photos precisely based on the keyword information.
终端界面上的标签可用于照片的快捷搜索,即无需用户手动输入关键词信息,即可完成相关搜索。优选的,终端界面上的标签可为时间标签或者人物标签。时间标签可为在终端界面上显示的日历控件,供用户操作。当用户点击日历控件中的某日期后,移动终端可获取到该日期,并根据该日期搜索照片,随后将搜索到的所有照片进行显示。人物标签可为在终端界面上根据人名建立的标签。当用户点击人物标签时,移动终端可获取到相应的人物信息例如人名,并根据该人名搜索照片,随后将搜索到的所有照片进行显示。The tags on the terminal interface can be used for quick search of photos, that is, relevant searches can be completed without the user manually entering keyword information. Preferably, the tags on the terminal interface can be time tags or character tags. The time label may be a calendar control displayed on the terminal interface for user operation. After the user clicks a certain date in the calendar control, the mobile terminal can obtain the date, search for photos according to the date, and then display all the searched photos. The person tag may be a tag established on the terminal interface according to the person's name. When the user clicks on the person label, the mobile terminal can obtain corresponding person information such as a person's name, and search for photos according to the person's name, and then display all the searched photos.
步骤102:确定关键词信息对应的目标搜索功能。Step 102: Determine the target search function corresponding to the keyword information.
其中,移动终端在确定关键词信息对应的目标搜索功能时,可首先通过现有的人工智能AI语言处理技术(例如词义相似度分析)对关键词信息进行处理,然后根据对关键词信息处理的结果,获知关键词信息所属的类别,并以此确定及调用相应的目标搜索功能。Among them, when the mobile terminal determines the target search function corresponding to the keyword information, it can first process the keyword information through the existing artificial intelligence AI language processing technology (such as word meaning similarity analysis), and then according to the keyword information processing As a result, the category to which the keyword information belongs is known, and the corresponding target search function is determined and invoked accordingly.
步骤103:根据关键词信息,对待搜索图库执行目标搜索功能,得到搜索照片。Step 103: According to the keyword information, execute the target search function in the gallery to be searched to obtain the searched photos.
应说明的是,此步骤中的待搜索图库具体可为移动终端内的图库(即本地相册图库),或者云端图库(即云端数据库中的图库),由所执行的目标搜索功能而定。云端图库是通过将本地相册照片拷贝到云端数据库形成的。通常情况下,为了保证照片搜索过程的准确进行,云端图库和本地相册图库是完全一致的,而为了保证用户在搜索照片时本地相册图库与云端图库完全一致,可采用定期同步等方式处理本地相册图库和云端图库。It should be noted that the gallery to be searched in this step can specifically be a gallery in the mobile terminal (ie, a gallery of local photo albums), or a gallery in the cloud (ie, a gallery in a cloud database), depending on the target search function to be executed. The cloud gallery is formed by copying the local album photos to the cloud database. Usually, in order to ensure the accuracy of the photo search process, the cloud gallery and the local album gallery are completely consistent, and in order to ensure that the local album gallery is exactly the same as the cloud gallery when the user searches for photos, the local album can be processed by regular synchronization. Gallery and cloud gallery.
在得到搜索照片后,移动终端可对所得到的搜索照片进行显示,以将所得到的搜索照片呈现给用户。After obtaining the search photos, the mobile terminal may display the obtained search photos, so as to present the obtained search photos to the user.
本发明实施例的照片搜索方法,通过获取用户输入的关键词信息,确定关键词信息对应的目标搜索功能,根据关键词信息,对待搜索图库执行目标搜索功能,得到搜索照片,能够基于用户输入的关键词信息自动且智能地搜索照片,从而相比于现有的手动搜索照片,可极大地提高照片搜索效率,提升用户搜索照片时的体验。The photo search method of the embodiment of the present invention obtains the keyword information input by the user, determines the target search function corresponding to the keyword information, and performs the target search function on the library to be searched according to the keyword information to obtain the search photo, which can be based on the user input Keyword information searches photos automatically and intelligently, thereby greatly improving photo search efficiency and improving user experience when searching photos compared to existing manual search photos.
本发明实施例中,用户输入的关键词信息一般可为如下信息中的至少一种:地点信息、时间信息和人物信息。根据关键词信息所属的不同类别,移动终端可确定及调用不同的目标搜索功能。In the embodiment of the present invention, the keyword information input by the user may generally be at least one of the following information: location information, time information, and character information. According to different categories of keyword information, the mobile terminal can determine and invoke different target search functions.
具体的,当用户输入的关键词信息为地点信息时,通过AI语言处理技术的处理,可确定关键词信息属于地点类别,并确定对应的目标搜索功能为地点搜索功能;当用户输入的关键词信息为时间信息时,通过AI语言处理技术的处理,可确定关键词信息属于时间类别,并确定对应的目标搜索功能为时间搜索功能;当用户输入的关键词信息为人物(或人名)信息时,通过AI语言处理技术的处理,可确定关键词信息属于人物类别,并确定对应的目标搜索功能为人物搜索功能;当用户输入的关键词信息既包括时间信息又包括地点信息时,通过AI语言处理技术的处理,可确定关键词信息既属于时间类别又属于地点类别,并确定对应的目标搜索功能为时间搜索功能和地点搜索功能,而最终得到的搜索照片为借助时间搜索功能搜索得到的照片和借助地点搜索功能搜索得到的照片中的共有照片;等等。Specifically, when the keyword information input by the user is location information, through the processing of AI language processing technology, it can be determined that the keyword information belongs to the location category, and the corresponding target search function can be determined as the location search function; when the keyword input by the user When the information is time information, through the processing of AI language processing technology, it can be determined that the keyword information belongs to the time category, and the corresponding target search function can be determined as the time search function; when the keyword information input by the user is person (or name) information , through the processing of AI language processing technology, it can be determined that the keyword information belongs to the person category, and the corresponding target search function can be determined as the person search function; when the keyword information input by the user includes both time information and location information, through the AI language The processing of the processing technology can determine that the keyword information belongs to both the time category and the location category, and determine that the corresponding target search function is the time search function and the location search function, and the final search photos are photos obtained by searching with the time search function and shared photos from photos found with place search; etc.
下面,根据关键词信息所属的类别,分情况对相应的照片搜索过程进行说明。In the following, according to the category to which the keyword information belongs, the corresponding photo search process will be described in different situations.
情况一case one
情况一下,用户输入的关键词信息为地点信息,对应的目标搜索功能为地点搜索功能。此情况下,移动终端执行地点搜索功能的过程可为:In this case, the keyword information input by the user is location information, and the corresponding target search function is a location search function. In this case, the process for the mobile terminal to perform the location search function may be:
移动终端对云端图库中的每一张照片中的景物对应的地点进行识别,得到识别结果;The mobile terminal recognizes the location corresponding to the scenery in each photo in the cloud gallery, and obtains the recognition result;
移动终端根据识别结果,从云端图库中选取照片中的景物对应的地点与地点信息相匹配的照片作为搜索照片。即从云端图库中选取的搜索照片中的景物对应的地点与地点信息(关键词信息)相匹配。若云端图库中没有相匹配的照片,则搜索失败并结束搜索过程。According to the recognition result, the mobile terminal selects a photo from the cloud gallery that matches the location corresponding to the scene in the photo and the location information as the search photo. That is, the location corresponding to the scene in the search photo selected from the cloud gallery matches the location information (keyword information). If there is no matching photo in the cloud gallery, the search fails and the search process ends.
需指出的是,当执行地点搜索功能时,对应的待搜索图库为云端图库。而选择云端图库的原因为:对于移动终端内的照片,尚无相关的图像识别技术来识别出照片中的景物对应的地点;但对于云端照片,可采用例如百度的图像识别技术(该图像识别技术可提供图像主体检测、通用物体识别、品牌logo识别、植物识别、动物识别、菜品识别和车型识别等功能),对照片中的景物对应的地点进行精准识别。It should be pointed out that when the location search function is executed, the corresponding gallery to be searched is a cloud gallery. The reason for choosing the cloud gallery is: for the photos in the mobile terminal, there is no relevant image recognition technology to identify the corresponding location of the scene in the photo; but for the cloud photos, for example, Baidu's image recognition technology (the image recognition technology The technology can provide functions such as image subject detection, general object recognition, brand logo recognition, plant recognition, animal recognition, dish recognition, and car model recognition), and can accurately identify the location corresponding to the scene in the photo.
在匹配照片中的景物对应的地点与地点信息(关键词信息)时,因照片中的景物对应的地点一般为具体的地理位置,例如某市区某街道,所以若地点信息表示的地点为具体的地理位置,则可当两个具体的地理位置在预设距离范围内时,确定照片中的景物对应的地点与地点信息相匹配;若地点信息表示的地点为较大地理位置,例如某个国家或者某市区,则可当照片中的景物对应的地点可对应于地点信息表示的地点时,确定照片中的景物对应的地点与地点信息相匹配。When matching the location and location information (keyword information) corresponding to the scenery in the photo, because the location corresponding to the scenery in the photo is generally a specific geographic location, such as a certain street in a certain urban area, if the location indicated by the location information is a specific geographic location, then when two specific geographic locations are within a preset distance range, it can be determined that the location corresponding to the scene in the photo matches the location information; if the location indicated by the location information is a larger geographic location, such as a certain For a country or a certain urban area, when the location corresponding to the scenery in the photo can correspond to the location indicated by the location information, it can be determined that the location corresponding to the scenery in the photo matches the location information.
本发明实施例中,根据照片是否由移动终端本身拍摄,云端图库中的照片进一步可划分为本机拍摄照片和非本机拍摄照片,本机拍摄照片是由移动终端拍摄,非本机拍摄照片不是由移动终端拍摄,可能是由移动终端下载。由于移动终端在拍摄照片时,因终端定位功能,本机拍摄照片中会携带拍摄地点信息,而确定本机拍摄照片的拍摄地点比识别其中景物对应的地点的工作量小,所以为了减少工作量,对于云端图库中的本机拍摄照片,在进行照片搜索时,移动终端可首先,确定本机拍摄照片中的每一张照片的拍摄地点;其次,从本机拍摄照片中筛选出拍摄地点与地点信息相匹配的照片,得到筛选照片;然后,对筛选照片中的每一张照片中的景物对应的地点进行识别,得到识别结果;最后,根据识别结果,从筛选照片中选取照片中的景物对应的地点与地点信息相匹配的照片作为搜索照片。In the embodiment of the present invention, according to whether the photos are taken by the mobile terminal itself, the photos in the cloud library can be further divided into photos taken by the local machine and photos taken by the non-local machine. The photos taken by the local machine are taken by the mobile terminal, and the photos taken by the non-local machine It is not taken by the mobile terminal, but may be downloaded by the mobile terminal. When the mobile terminal takes pictures, due to the positioning function of the terminal, the photos taken by this machine will carry the shooting location information, and the workload of determining the shooting location of the photos taken by this machine is less than that of identifying the location corresponding to the scene, so in order to reduce the workload , for the photos taken by this machine in the cloud gallery, when searching for photos, the mobile terminal can firstly determine the shooting location of each photo in the photos taken by this machine; secondly, filter out the shooting location and The photos that match the location information are obtained to obtain the filtered photos; then, the locations corresponding to the scenery in each photo in the filtered photos are identified to obtain the recognition results; finally, according to the recognition results, the scenery in the photos is selected from the filtered photos The corresponding location and the photos matching the location information are used as search photos.
例如,参见图2所示,移动终端对云端图库执行地点搜索功能的过程可为:For example, as shown in FIG. 2, the process for the mobile terminal to perform the location search function on the cloud gallery can be:
步骤21:移动终端对云端图库中的照片进行分类,得到本机拍摄照片和非本机拍摄照片;Step 21: The mobile terminal classifies the photos in the cloud gallery to obtain photos taken by the machine and photos taken by the machine;
步骤22:对于本机拍摄照片,移动终端确定本机拍摄照片中的每一张照片的拍摄地点;Step 22: For the photos taken by the machine, the mobile terminal determines the shooting location of each photo in the photos taken by the machine;
步骤23:移动终端从本机拍摄照片中筛选出拍摄地点与地点信息相匹配的照片,得到筛选照片;Step 23: The mobile terminal screens out the photos that match the shooting location and the location information from the photos taken by the mobile terminal, and obtains the filtered photos;
步骤24:移动终端对筛选照片中的每一张照片中的景物对应的地点进行识别,得到第一识别结果;Step 24: The mobile terminal recognizes the location corresponding to the scenery in each photo in the screened photos, and obtains the first recognition result;
步骤25:移动终端根据第一识别结果,从筛选照片中选取照片中的景物对应的地点与地点信息相匹配的照片作为第一搜索照片;Step 25: According to the first recognition result, the mobile terminal selects a photo from the screened photos that matches the place information corresponding to the scene in the photo as the first search photo;
步骤26:对于非本机拍摄照片,移动终端对非本机拍摄照片中的每一张照片中的景物对应的地点进行识别,得到第二识别结果;Step 26: For the photos taken by the non-local machine, the mobile terminal recognizes the location corresponding to the scene in each of the photos taken by the non-local machine, and obtains the second recognition result;
步骤27:移动终端根据第二识别结果,从非本机拍摄照片中选取照片中的景物对应的地点与地点信息相匹配的照片作为第二搜索照片;Step 27: According to the second identification result, the mobile terminal selects a photo from the photos taken by the non-local machine that matches the location corresponding to the scene in the photo and the location information as the second search photo;
步骤28:确定第一搜索照片和第二搜索照片为最终搜索到的照片。Step 28: Determine the first search photo and the second search photo as the finally searched photos.
这样,对云端图库进行分类处理,由于确定本机拍摄照片的拍摄地点比识别其中景物对应的地点的工作量小,因此能够减少识别本机拍摄照片的工作量,提高照片搜索效率。In this way, by classifying the cloud library, since the workload of determining the shooting location of the photo taken by the machine is less than that of identifying the location corresponding to the scene, it can reduce the workload of identifying the photo taken by the machine and improve the efficiency of photo search.
情况二case two
情况二下,用户输入的关键词信息为人物(人名)信息,对应的目标搜索功能为人物搜索功能。此情况下,移动终端执行人物搜索功能的过程可为:In the second case, the keyword information input by the user is person (name) information, and the corresponding target search function is the person search function. In this case, the process for the mobile terminal to perform the person search function can be:
移动终端根据人物信息,从预设人脸信息数据库中提取与人物信息对应的人脸照片;The mobile terminal extracts the face photo corresponding to the person information from the preset face information database according to the person information;
移动终端从预设云端人脸库中选取与人脸照片的相似度满足预设条件的照片作为搜索照片。The mobile terminal selects a photo whose similarity with the face photo satisfies a preset condition from a preset cloud face database as a search photo.
应说明的是,人物信息一般表示人名,例如张三、李四。预设人脸信息数据库是在移动终端(本地)中预先建立的,存储的是人物信息和人脸照片的对应关系。在预先建立人脸信息数据库时,用户可在查看本地相册中的照片时,点击“人脸识别”按钮,此时移动终端可自动识别出照片中的所有人脸区域,并用方框显示,此时用户可点击人脸区域对应的方框,并对人脸进行命名,如图3所示,分别对一照片中的张三和李四进行命名,而命名结束后,移动终端可将人名和人脸照片的键值对存入人脸信息数据库中,待后续使用。It should be noted that the person information generally represents a person's name, such as Zhang San and Li Si. The preset face information database is pre-established in the mobile terminal (local), and stores the corresponding relationship between person information and face photos. When the face information database is pre-established, the user can click the "Face Recognition" button when viewing the photos in the local album, and the mobile terminal can automatically recognize all the face areas in the photos and display them in boxes. At this time, the user can click the box corresponding to the face area, and name the face, as shown in Figure 3, respectively name Zhang San and Li Si in a photo, and after the naming is completed, the mobile terminal can name and The key-value pairs of face photos are stored in the face information database for subsequent use.
预设云端人脸库是在云端中预先建立的,存储的是通过对云端图库中的照片进行人脸识别而识别出人脸的照片。此处涉及的人脸识别技术可为目前百度的人脸识别技术。当从预设云端人脸库中选取与人脸照片的相似度满足预设条件的照片时,可首先采用人脸识别技术计算预设云端人脸库中的照片与人脸照片的相似度,并选择相似度大于预设阈值的所有照片作为搜索照片。若预设云端人脸库中没有相似度满足预设条件的照片,则搜索失败并结束搜索过程。The preset cloud face library is pre-established in the cloud, and stores photos of faces identified by performing face recognition on photos in the cloud library. The face recognition technology involved here may be the current face recognition technology of Baidu. When selecting a photo whose similarity with the face photo meets the preset condition from the preset cloud face library, the face recognition technology can be used to calculate the similarity between the photo in the preset cloud face library and the face photo, And select all photos whose similarity is greater than a preset threshold as search photos. If there is no photo whose similarity meets the preset condition in the preset cloud face database, the search will fail and the search process will end.
情况三Case three
情况三下,用户输入的关键词信息为时间信息,对应的目标搜索功能为时间搜索功能。此情况下,移动终端执行人物搜索功能的过程可为:In case three, the keyword information input by the user is time information, and the corresponding target search function is a time search function. In this case, the process for the mobile terminal to perform the person search function can be:
移动终端选取其内的图库中的本机拍摄照片;The mobile terminal selects the camera in the gallery to take photos;
移动终端确定本机拍摄照片中的每一张照片的拍摄时间;The mobile terminal determines the shooting time of each photo in the photos taken by the machine;
移动终端从本机拍摄照片中选取拍摄时间与时间信息相匹配的照片作为搜索照片。The mobile terminal selects a photo whose shooting time matches the time information from the photos taken by the mobile terminal as a search photo.
应说明的是,当执行时间搜索功能时,因照片的拍摄时间为用户最常关注的内容,本机拍摄照片最能反映照片的拍摄时间,所以对应的待搜索照片为移动终端内的本机拍摄照片。在匹配照片的拍摄时间与时间信息(关键词信息)时,可当照片的拍摄时间与时间信息对应的时间在预设时间范围内时,确定照片的拍摄时间与时间信息相匹配。It should be noted that when the time search function is executed, since the shooting time of the photo is the content that users are most concerned about, the photo taken by this machine can best reflect the shooting time of the photo, so the corresponding photo to be searched is the local time in the mobile terminal. taking photos. When matching the shooting time of the photo with time information (keyword information), it can be determined that the shooting time of the photo matches the time information when the time corresponding to the shooting time of the photo and the time information is within a preset time range.
情况四Situation four
情况四下,用户输入的关键词信息既包括时间信息又包括地点信息,对应的目标搜索功能为时间搜索功能和地点搜索功能。此情况下,移动终端可分别根据关键词信息中的时间信息,执行时间搜索功能,和根据关键词信息中的地点信息,执行地点搜索功能,并选取借助时间搜索功能搜索得到的照片和借助地点搜索功能搜索得到的照片中的共有照片作为最终搜索得到的照片。此处涉及的地点搜索过程可参考情况一中的地点搜索过程,且时间搜索过程可参考情况三中的时间搜索过程,在此不再赘述。In case four, the keyword information input by the user includes both time information and location information, and the corresponding target search functions are time search function and location search function. In this case, the mobile terminal can perform the time search function according to the time information in the keyword information, and perform the location search function according to the location information in the keyword information, and select the photos and locations obtained by searching through the time search function The shared photos among the photos searched by the search function are taken as the final searched photos. For the location search process involved here, refer to the location search process in Case 1, and for the time search process, refer to the time search process in Case 3, which will not be repeated here.
需说明的是,用户输入的关键词信息除可为上述四种情况外,还可属于其他多种类别,例如时间类别和人物类别。当用户输入的关键词信息属于多种类别时,对应的目标搜索功能为多种搜索功能,此时,移动终端会分别执行多种搜索功能,并选取借助每种搜索功能搜索得到的照片中的共有照片作为最终搜索得到的照片。It should be noted that besides the above four situations, the keyword information input by the user may also belong to other categories, such as time category and person category. When the keyword information input by the user belongs to multiple categories, the corresponding target search function is a variety of search functions. Shared photos are the final searched photos.
本发明实施例中,当用户输入的关键词信息不是地点信息、时间信息和人物信息时,可确定用户输入的关键词信息为其他类型信息。当用户输入的关键词信息为其他类型信息时,对应的目标搜索功能为特征信息搜索功能。而移动终端执行特征信息搜索功能的过程可为:In the embodiment of the present invention, when the keyword information input by the user is not location information, time information and character information, it may be determined that the keyword information input by the user is other types of information. When the keyword information input by the user is other types of information, the corresponding target search function is a feature information search function. The process for the mobile terminal to perform the feature information search function may be:
移动终端根据关键词信息和预设特征信息索引库,从云端图库中选取特征信息与关键词信息相匹配的照片作为搜索照片。According to the keyword information and the preset characteristic information index library, the mobile terminal selects photos whose characteristic information matches the keyword information from the cloud library as search photos.
其中,预设特征信息索引库是在云端中预先建立的,表示云端照片及其特征信息的对应关系。在预先建立特征信息索引库时,可首先通过现有的图像识别技术,分别提取出每张云端照片中的特征信息(即一些预定义的可表征照片特征的信息),然后在云端建立云端照片及对应特征信息的索引关系,得到特征信息索引库。Wherein, the preset characteristic information index database is pre-established in the cloud, and represents the corresponding relationship between the cloud photos and their characteristic information. When pre-establishing the feature information index library, the feature information (that is, some predefined information that can represent the characteristics of the photo) in each cloud photo can be extracted separately through the existing image recognition technology, and then the cloud photo can be created in the cloud. And the index relationship of the corresponding feature information to obtain the feature information index database.
上述实施例对本发明的照片搜索方法进行了说明,下面将结合实施例和附图对与本发明的照片搜索方法对应的移动终端进行说明。The above embodiments have described the photo search method of the present invention, and the mobile terminal corresponding to the photo search method of the present invention will be described below in conjunction with the embodiments and the accompanying drawings.
参见图4所示,本发明实施例还提供了一种移动终端,所述移动终端包括获取模块41、确定模块42和执行模块43,详述如下。Referring to FIG. 4 , the embodiment of the present invention also provides a mobile terminal, which includes an acquisition module 41 , a determination module 42 and an execution module 43 , which are described in detail as follows.
其中,所述获取模块41,用于获取用户输入的关键词信息。Wherein, the acquisition module 41 is configured to acquire keyword information input by the user.
所述确定模块42,用于确定所述关键词信息对应的目标搜索功能。The determination module 42 is configured to determine the target search function corresponding to the keyword information.
所述执行模块43,用于根据所述关键词信息,对待搜索图库执行所述目标搜索功能,得到搜索照片。The executing module 43 is configured to execute the target search function on the gallery to be searched according to the keyword information to obtain the searched photos.
本发明实施例的移动终端,通过获取用户输入的关键词信息,确定关键词信息对应的目标搜索功能,根据关键词信息,对待搜索图库执行目标搜索功能,得到搜索照片,能够基于用户输入的关键词信息自动且智能地搜索照片,从而相比于现有的手动搜索照片,可极大地提高照片搜索效率,提升用户搜索照片时的体验。The mobile terminal of the embodiment of the present invention, by acquiring the keyword information input by the user, determines the target search function corresponding to the keyword information, and according to the keyword information, executes the target search function on the gallery to be searched, and obtains the search photo, which can be based on the keyword input by the user. The word information can automatically and intelligently search for photos, which can greatly improve the efficiency of photo search and improve the experience of users when searching for photos compared with the existing manual search for photos.
本发明实施例中,可选的,所述获取模块41具体用于:In the embodiment of the present invention, optionally, the acquiring module 41 is specifically used for:
获取用户在搜索框中输入的所述关键词信息;或者Obtain the keyword information entered by the user in the search box; or
通过用户对终端界面上的标签执行的操作,获取所述关键词信息。The keyword information is obtained through operations performed by the user on the labels on the terminal interface.
可选的,所述终端界面上的标签为时间标签或者人物标签。Optionally, the tags on the terminal interface are time tags or character tags.
可选的,所述关键词信息为如下信息中的至少一种:地点信息、时间信息和人物信息。Optionally, the keyword information is at least one of the following information: location information, time information, and person information.
本发明实施例中,当所述关键词信息为地点信息时,所述目标搜索功能为地点搜索功能,参见图5所示,所述执行模块43包括识别单元431和第一选取单元432。In the embodiment of the present invention, when the keyword information is location information, the target search function is a location search function. Referring to FIG. 5 , the execution module 43 includes an identification unit 431 and a first selection unit 432 .
其中,所述识别单元431,用于对云端图库中的每一张照片中的景物对应的地点进行识别,得到识别结果。Wherein, the identification unit 431 is configured to identify the location corresponding to the scene in each photo in the cloud gallery, and obtain the identification result.
所述第一选取单元432,用于根据所述识别结果,从所述云端图库中选取照片中的景物对应的地点与所述地点信息相匹配的照片作为所述搜索照片。The first selection unit 432 is configured to select, from the cloud gallery, a photo whose location corresponding to the scene in the photo matches the location information according to the recognition result, as the search photo.
进一步的,所述识别单元431包括确定子单元、筛选子单元和识别子单元。Further, the identification unit 431 includes a determination subunit, a screening subunit and an identification subunit.
其中,所述确定子单元,用于确定所述云端图库中的本机拍摄照片中的每一张照片的拍摄地点。Wherein, the determination subunit is configured to determine the shooting location of each of the photos taken by the machine in the cloud gallery.
所述筛选子单元,用于从所述本机拍摄照片中筛选出拍摄地点与所述地点信息相匹配的照片,得到筛选照片。The screening subunit is configured to filter out photos whose shooting location matches the location information from the photos taken by the machine to obtain the filtered photos.
所述识别子单元,用于对所述筛选照片中的每一张照片中的景物对应的地点进行识别,得到所述识别结果。The recognition subunit is configured to recognize the location corresponding to the scene in each of the screened photos, and obtain the recognition result.
本发明实施例中,当所述关键词信息为人物信息时,所述目标搜索功能为人物搜索功能,参见图5所示,所述执行模块43包括提取单元433和第二选取单元434。In the embodiment of the present invention, when the keyword information is person information, the target search function is a person search function, as shown in FIG. 5 , the execution module 43 includes an extraction unit 433 and a second selection unit 434 .
其中,所述提取单元433,用于根据所述人物信息,从预设人脸信息数据库中提取与所述人物信息对应的人脸照片。Wherein, the extracting unit 433 is configured to extract a face photo corresponding to the person information from a preset face information database according to the person information.
所述第二选取单元434,用于从预设云端人脸库中选取与所述人脸照片的相似度满足预设条件的照片作为所述搜索照片。The second selection unit 434 is configured to select a photo whose similarity with the face photo satisfies a preset condition from a preset cloud face database as the search photo.
本发明实施例中,当所述关键词信息为时间信息时,所述目标搜索功能为时间搜索功能,参见图5所示,所述执行模块43包括第三选取单元435、确定单元436和第四选取单元437。In the embodiment of the present invention, when the keyword information is time information, the target search function is a time search function. Referring to FIG. 5, the execution module 43 includes a third selection unit 435, a determination unit 436 and a Four selection unit 437 .
其中,所述第三选取单元435,用于选取移动终端内的图库中的本机拍摄照片。Wherein, the third selecting unit 435 is configured to select the photos taken by the machine in the gallery in the mobile terminal.
所述确定单元436,用于确定所述本机拍摄照片中的每一张照片的拍摄时间。The determining unit 436 is configured to determine the shooting time of each photo in the photos taken by the local machine.
所述第四选取单元437,用于从所述本机拍摄照片中选取拍摄时间与所述时间信息相匹配的照片作为所述搜索照片。The fourth selecting unit 437 is configured to select a photo whose shooting time matches the time information from the photos taken by the camera as the search photo.
本发明实施例中,所述关键词信息为其他类型信息,所述目标搜索功能为特征信息搜索功能,所述执行模块43具体用于:In the embodiment of the present invention, the keyword information is other types of information, the target search function is a feature information search function, and the execution module 43 is specifically used for:
根据所述关键词信息和预设特征信息索引库,从云端图库中选取特征信息与所述关键词信息相匹配的照片作为所述搜索照片。According to the keyword information and the preset feature information index library, select photos whose feature information matches the keyword information from the cloud gallery as the search photos.
此外,本发明实施例还提供一种移动终端,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述计算机程序被所述处理器执行时实现上述照片搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, an embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, wherein the computer program is executed by the processor Each process of the above photo search method embodiment can be realized at the same time, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
具体的,图6为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Specifically, FIG. 6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, and a sensor 605. , a display unit 606 , a user input unit 607 , an interface unit 608 , a memory 609 , a processor 610 , and a power supply 611 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 6 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine certain components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,射频单元601,用于获取用户输入的关键词信息;Wherein, the radio frequency unit 601 is used to obtain keyword information input by the user;
处理器610,用于确定所述关键词信息对应的目标搜索功能,并根据所述关键词信息,对待搜索图库执行所述目标搜索功能,得到搜索照片。The processor 610 is configured to determine the target search function corresponding to the keyword information, and execute the target search function on the gallery to be searched according to the keyword information to obtain the search photos.
本发明实施例的移动终端600,通过获取用户输入的关键词信息,确定关键词信息对应的目标搜索功能,根据关键词信息,对待搜索图库执行目标搜索功能,得到搜索照片,能够基于用户输入的关键词信息自动且智能地搜索照片,从而相比于现有的手动搜索照片,可极大地提高照片搜索效率,提升用户搜索照片时的体验。The mobile terminal 600 of the embodiment of the present invention, by obtaining the keyword information input by the user, determines the target search function corresponding to the keyword information, and according to the keyword information, performs the target search function on the gallery to be searched to obtain the search photos, which can be based on the user input Keyword information searches photos automatically and intelligently, thereby greatly improving photo search efficiency and improving user experience when searching photos compared to existing manual search photos.
应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 610; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 602, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与移动终端600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the mobile terminal 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6046和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态照片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used for receiving audio or video signals. The input unit 604 can include a graphics processing unit (Graphics Processing Unit, GPU) 6046 and a microphone 6042, and the graphics processing unit 6041 is used for still photos or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 606 . The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage media) or sent via the radio frequency unit 601 or the network module 602 . The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a phone call mode.
移动终端600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在移动终端600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and the display panel 6061 when the mobile terminal 600 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元607可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6071 or near the touch panel 6071). operate). The touch panel 6071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 610, receive the command sent by the processor 610 and execute it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071 , the user input unit 607 may also include other input devices 6072 . Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 6071 can be covered on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near it, it will be sent to the processor 610 to determine the type of the touch event, and then the processor 610 can The type of event provides a corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元608为外部装置与移动终端600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端600内的一个或多个元件或者可以用于在移动终端600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device to the mobile terminal 600 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 608 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 can be used to store software programs as well as various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器610是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块,以及调用存储在存储器609内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
移动终端600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 600 can also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 can be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端600包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 600 includes some functional modules not shown, which will not be repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述照片搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质,例如为只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above photo search method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (12)
- A kind of 1. photo searching method, applied to mobile terminal, it is characterised in that including:Obtain key word information input by user;Determine the corresponding target search function of the key word information;According to the key word information, treat search picture library and perform the target search function, obtain search photo.
- 2. according to the method described in claim 1, it is characterized in that, the key word information is location information, the target is searched Suo Gongneng is point searching function, described according to the key word information, treats search picture library and performs the target search function, Search photo is obtained, including:The corresponding place of scenery in each photo in the picture library of high in the clouds is identified, obtains recognition result;According to the recognition result, the corresponding place of scenery in photo and the location information are chosen from the high in the clouds picture library The photo to match is as described search photo.
- 3. according to the method described in claim 2, it is characterized in that, scenery in each photo in the picture library to high in the clouds Corresponding place is identified, and obtains recognition result, including:Determine the spot for photography of each photo in the machine shooting photo in the high in the clouds picture library;The photo that spot for photography is filtered out in photo and is matched with the location information is shot from described the machine, screening is obtained and shines Piece;The corresponding place of scenery in each photo in the screening photo is identified, obtains the recognition result.
- 4. according to the method described in claim 1, it is characterized in that, the key word information is people information, the target is searched Suo Gongneng is personage's function of search, described according to the key word information, treats search picture library and performs the target search function, Search photo is obtained, including:According to the people information, human face photo corresponding with the people information is extracted from default face information database;Chosen from default high in the clouds face database and meet that the photo of preset condition is searched described in being used as with the similarity of the human face photo Rope photo.
- 5. according to the method described in claim 1, it is characterized in that, the key word information is temporal information, the target is searched Suo Gongneng is time search function, described according to the key word information, treats search picture library and performs the target search function, Search photo is obtained, including:Choose the machine shooting photo in the picture library in mobile terminal;Determine the shooting time of each photo in the machine shooting photo;Shot from described the machine and shooting time is chosen in photo with the photo that the temporal information matches as described search photograph Piece.
- A kind of 6. mobile terminal, it is characterised in that including:Acquisition module, for obtaining key word information input by user;Determining module, for determining the corresponding target search function of the key word information;Execution module, for according to the key word information, treating search picture library and performing the target search function, searched for Photo.
- 7. mobile terminal according to claim 6, it is characterised in that the key word information is location information, the mesh Mark function of search is point searching function, and the execution module includes:Recognition unit, for the corresponding place of scenery in each photo in the picture library of high in the clouds to be identified, is identified As a result;First chooses unit, for according to the recognition result, the scenery chosen from the high in the clouds picture library in photo to be corresponding The photo that place matches with the location information is as described search photo.
- 8. mobile terminal according to claim 7, it is characterised in that the recognition unit includes:Determination subelement, for determining the spot for photography of each photo in the shooting photo of the machine in the high in the clouds picture library;Subelement is screened, for shooting the photograph that spot for photography is filtered out in photo and is matched with the location information from described the machine Piece, obtains screening photo;Identify subelement, for the corresponding place of scenery in each photo in the screening photo to be identified, obtain To the recognition result.
- 9. mobile terminal according to claim 6, it is characterised in that the key word information is people information, the mesh Mark function of search is personage's function of search, and the execution module includes:Extraction unit, for according to the people information, being extracted and the people information pair from default face information database The human face photo answered;Second chooses unit, meets preset condition with the similarity of the human face photo for being chosen from default high in the clouds face database Photo as described search photo.
- 10. mobile terminal according to claim 6, it is characterised in that the key word information is temporal information, the mesh Mark function of search is time search function, and the execution module includes:3rd chooses unit, for choosing the shooting photo of the machine in the picture library in mobile terminal;Determination unit, for determining the shooting time of each photo in the machine shooting photo;4th chooses unit, for shooting the photograph that shooting time is chosen in photo and is matched with the temporal information from described the machine Piece is as described search photo.
- 11. a kind of mobile terminal, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, it is characterised in that such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of photo searching method the step of.
- 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that described program is processed The step of photo searching method as any one of claim 1 to 5 is realized when device performs.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711237603.3A CN107908770A (en) | 2017-11-30 | 2017-11-30 | A kind of photo searching method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711237603.3A CN107908770A (en) | 2017-11-30 | 2017-11-30 | A kind of photo searching method and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107908770A true CN107908770A (en) | 2018-04-13 |
Family
ID=61849576
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711237603.3A Pending CN107908770A (en) | 2017-11-30 | 2017-11-30 | A kind of photo searching method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107908770A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108320345A (en) * | 2018-05-04 | 2018-07-24 | 珠海横琴盛达兆业科技投资有限公司 | A method of the B/S framework based on Baidu recognition of face API realizes Intelligent human-face attendance |
| CN109635135A (en) * | 2018-11-30 | 2019-04-16 | Oppo广东移动通信有限公司 | Image index generation method, device, terminal and storage medium |
| CN110851637A (en) * | 2019-09-26 | 2020-02-28 | 华为技术有限公司 | Image search method and device |
| CN112084359A (en) * | 2020-09-18 | 2020-12-15 | 维沃移动通信有限公司 | Picture retrieval method and device and electronic equipment |
| CN113641857A (en) * | 2021-08-13 | 2021-11-12 | 三星电子(中国)研发中心 | Visual media personalized search method and device |
| CN113641847A (en) * | 2021-08-23 | 2021-11-12 | 展讯通信(天津)有限公司 | Method and device for searching gallery and electronic equipment |
| CN114064953A (en) * | 2021-11-26 | 2022-02-18 | 北京度友信息技术有限公司 | Image search method, device, electronic device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104484438A (en) * | 2014-12-23 | 2015-04-01 | 小米科技有限责任公司 | Image processing method and device |
| CN104572905A (en) * | 2014-12-26 | 2015-04-29 | 小米科技有限责任公司 | Photo index creation method, photo searching method and devices |
| CN104731880A (en) * | 2015-03-09 | 2015-06-24 | 小米科技有限责任公司 | Image ordering method and device |
| CN105488111A (en) * | 2015-11-20 | 2016-04-13 | 小米科技有限责任公司 | Image search method and device |
-
2017
- 2017-11-30 CN CN201711237603.3A patent/CN107908770A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104484438A (en) * | 2014-12-23 | 2015-04-01 | 小米科技有限责任公司 | Image processing method and device |
| CN104572905A (en) * | 2014-12-26 | 2015-04-29 | 小米科技有限责任公司 | Photo index creation method, photo searching method and devices |
| CN104731880A (en) * | 2015-03-09 | 2015-06-24 | 小米科技有限责任公司 | Image ordering method and device |
| CN105488111A (en) * | 2015-11-20 | 2016-04-13 | 小米科技有限责任公司 | Image search method and device |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108320345A (en) * | 2018-05-04 | 2018-07-24 | 珠海横琴盛达兆业科技投资有限公司 | A method of the B/S framework based on Baidu recognition of face API realizes Intelligent human-face attendance |
| CN109635135A (en) * | 2018-11-30 | 2019-04-16 | Oppo广东移动通信有限公司 | Image index generation method, device, terminal and storage medium |
| CN110851637A (en) * | 2019-09-26 | 2020-02-28 | 华为技术有限公司 | Image search method and device |
| US12361055B2 (en) | 2019-09-26 | 2025-07-15 | Huawei Technologies Co., Ltd. | Picture search method and device |
| CN112084359A (en) * | 2020-09-18 | 2020-12-15 | 维沃移动通信有限公司 | Picture retrieval method and device and electronic equipment |
| CN113641857A (en) * | 2021-08-13 | 2021-11-12 | 三星电子(中国)研发中心 | Visual media personalized search method and device |
| CN113641847A (en) * | 2021-08-23 | 2021-11-12 | 展讯通信(天津)有限公司 | Method and device for searching gallery and electronic equipment |
| CN114064953A (en) * | 2021-11-26 | 2022-02-18 | 北京度友信息技术有限公司 | Image search method, device, electronic device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107908770A (en) | A kind of photo searching method and mobile terminal | |
| CN110147805A (en) | Image processing method, device, terminal and storage medium | |
| CN108230283A (en) | A kind of textures material recommends method and electronic equipment | |
| CN108182271B (en) | Photographing method, terminal and computer readable storage medium | |
| CN107977431A (en) | Image processing method, device, computer device, and computer-readable storage medium | |
| CN107589963A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
| CN108090126A (en) | Image processing method, device and mobile terminal, image-recognizing method and server | |
| CN109508398B (en) | Photo classification method and terminal equipment thereof | |
| CN107864353B (en) | A video recording method and mobile terminal | |
| CN111629247B (en) | Information display method and device and electronic equipment | |
| WO2022057435A1 (en) | Search-based question answering method, and storage medium | |
| CN108174109B (en) | A kind of photographing method and mobile terminal | |
| CN108462826A (en) | A kind of method and mobile terminal of auxiliary photo-taking | |
| CN108460817B (en) | A jigsaw puzzle method and mobile terminal | |
| CN111506758A (en) | Method and device for determining article name, computer equipment and storage medium | |
| CN109684277B (en) | Image display method and terminal | |
| CN108596095A (en) | A kind of information processing method and mobile terminal | |
| CN108256100A (en) | A kind of information search method, mobile terminal and Cloud Server | |
| CN107943842A (en) | A kind of photo tag generation method, mobile terminal | |
| CN111491124B (en) | Video processing method, device and electronic equipment | |
| CN110688497A (en) | Resource information search method, device, terminal device and storage medium | |
| CN108121486B (en) | A picture display method and mobile terminal | |
| WO2021104159A1 (en) | Display control method and electronic device | |
| CN110532412A (en) | A file processing method and mobile terminal | |
| CN108282611A (en) | A kind of image processing method and mobile terminal |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180413 |
|
| RJ01 | Rejection of invention patent application after publication |