WO2016107126A1 - 图片搜索方法和装置 - Google Patents
图片搜索方法和装置 Download PDFInfo
- Publication number
- WO2016107126A1 WO2016107126A1 PCT/CN2015/083395 CN2015083395W WO2016107126A1 WO 2016107126 A1 WO2016107126 A1 WO 2016107126A1 CN 2015083395 W CN2015083395 W CN 2015083395W WO 2016107126 A1 WO2016107126 A1 WO 2016107126A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- picture
- text information
- search
- image
- text
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- 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/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5838—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour
Definitions
- the present invention relates to the field of Internet technologies, and in particular, to a picture search method and apparatus.
- the acquisition of image-related text information refers to obtaining a text segment related to a picture, as a description of the picture, and providing a more precise technical service for searching for a picture and/or understanding the picture.
- a common method for obtaining image-related text information is to extract a plurality of text segments by analyzing the text information of the webpage where the image is located, as a text description of the image.
- the title information of the webpage where the picture is located, the link text of the picture, the attribute text of the picture, and the surrounding text of the picture are very effective text information describing the picture, and the above information is necessary for the user to search for the picture and/or understand the picture.
- a network device usually returns one or more search result pictures to a user by using techniques such as matching with search keywords in a description set of related text information of a picture based on a search keyword of the user.
- the object of the present invention is to solve at least one of the technical problems in the related art to some extent.
- a first object of the present invention is to propose a picture search method.
- the method can return more and more related pictures when the user searches, which can better meet the needs of the user and improve the user experience.
- a second object of the present invention is to propose a picture search device.
- the image search method of the first aspect of the present invention includes: receiving a search keyword; performing a search in an index of the image text information according to the search keyword, and obtaining an index matching the search keyword.
- the image text information includes text information obtained by performing content analysis on the image captured by the search engine;
- the search keyword matches the index corresponding to the picture.
- the image search method of the embodiment of the present invention after receiving the search keyword, searches the index of the image text information according to the search keyword, obtains an index matching the search keyword, and further obtains an index matching the search keyword.
- the picture text information includes text information obtained by performing content analysis on a picture captured by a search engine; the method can increase the description of the picture text information by performing content analysis on the picture, so that the user can return more when searching. More relevant pictures, which can better meet the needs of users and improve user experience.
- the image search device of the second aspect of the present invention includes: a receiving module, configured to receive a search keyword; and a search module, configured to index the image text information according to the search keyword received by the receiving module. Performing a search to obtain an index matching the search keyword; and obtaining a picture corresponding to an index matching the search keyword; the picture text information including text information obtained by performing content analysis on a picture captured by a search engine a sending module, configured to send the picture obtained by the search module to the terminal device.
- the search module performs a search in the index of the image text information according to the search keyword, and obtains an index matching the search keyword. And obtaining a picture corresponding to the index matched by the search keyword, wherein the picture text information includes text information obtained by performing content analysis on a picture captured by the search engine; and the device may increase the picture text information by performing content analysis on the picture. Description, so that more relevant pictures can be returned when the user searches, so that the user's needs can be better met and the user experience is improved.
- a third aspect of the present invention provides an electronic device including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory, And when executed by the one or more processors, performing an operation of: receiving a search keyword; performing a search in an index of the picture text information according to the search keyword, obtaining an index matching the search keyword;
- the picture text information includes text information obtained by performing content analysis on a picture captured by the search engine; and obtaining a picture corresponding to the index matching the search keyword.
- a fourth aspect of the present invention provides a nonvolatile computer storage medium storing one or more modules, when the one or more modules are executed, proceeding as follows An operation: receiving a search keyword; searching in an index of the picture text information according to the search keyword, obtaining an index that matches the search keyword; and the image text information includes performing content analysis on the image captured by the search engine The obtained text information; obtaining a picture corresponding to the index matching the search keyword.
- FIG. 1 is a flow chart of an embodiment of a picture search method according to the present invention.
- FIGS. 2(a) to 2(b) are schematic diagrams showing an embodiment of content analysis of a picture according to the present invention.
- 3(a) to 3(b) are schematic views showing another embodiment of content analysis of a picture according to the present invention.
- FIG. 4 is a schematic structural diagram of an embodiment of a picture search device according to the present invention.
- FIG. 5 is a schematic structural diagram of another embodiment of a picture search device according to the present invention.
- FIG. 1 is a flowchart of an embodiment of a picture search method according to the present invention. As shown in FIG. 1 , the picture search method may include:
- Step 101 Receive a search keyword.
- Step 102 Perform a search in the index of the picture text information according to the search keyword to obtain an index matching the search keyword, where the picture text information includes text information obtained by performing content analysis on the picture captured by the search engine.
- Step 103 Obtain a picture corresponding to the index matching the search keyword.
- the search engine may further perform content analysis on the image captured by the search engine to obtain text information of the image.
- the search engine may further perform content analysis on the image captured by the search engine and analyze text of the webpage where the image is located to obtain the image. Text information.
- performing content analysis on the image captured by the search engine may be: analyzing at least one of object information, landscape information, character information, and text information in the image captured by the search engine. That is, the analysis is performed from the perspective of the content of the picture, including but not limited to analyzing at least one of object information, landscape information, character information, and text information in the picture.
- FIG. 2(a) to 2(b) are schematic diagrams showing an embodiment of content analysis of a picture according to the present invention, wherein FIG. 2(a) is a picture captured by a search engine, and FIG. 2(b) is a view of FIG. 2(a).
- Figure 2(a) of the picture shown for content analysis The text information of the picture.
- the text in the column of "category” is the text information obtained by analyzing the content of the picture shown in Fig. 2(a)
- the probability in the column of "probability” is the picture shown in Fig. 2(a). The probability of belonging to each piece of text information.
- FIG. 3(a) to 3(b) are schematic views showing another embodiment of content analysis of a picture according to the present invention, wherein FIG. 3(a) is a picture captured by a search engine, and FIG. 3(b) is a view of FIG.
- the picture shown is text information of the picture shown in Figure 3(a) obtained by text recognition.
- the picture shown in Fig. 3(a) contains text information, and the text information in the picture shown in Fig. 3(a) is recognized, and the text information shown in Fig. 3(b) is obtained, from Fig. 3(a) and Fig.
- the analyzing the text of the webpage where the image is located may be: analyzing the text in the structured field of the webpage where the image is located, where the structured field of the webpage where the image is located includes the webpage title field, the anchor text field of the webpage, and / or picture attribute field.
- the search engine may further sort the text information of the picture to establish an index of the text information of the picture.
- the search engine may sort the text information of the above picture by: the search engine performs a process such as cutting words on the text information of the picture.
- the picture text information includes text information obtained by performing content analysis on a picture captured by a search engine; the method can increase the description of the picture text information by performing content analysis on the picture, so that more and more relevant information can be returned when the user searches.
- the picture can better meet the needs of users and improve the user experience.
- the image search device in this embodiment can be used as a search engine or a part of a search engine to implement the process of the embodiment shown in FIG. 1 of the present invention, as shown in FIG.
- the image search device may include: a receiving module 41 and a search module 42;
- the receiving module 41 is configured to receive a search keyword.
- the searching module 42 is configured to perform a search in the index of the picture text information according to the search keyword received by the receiving module 41, obtain an index matching the search keyword, and obtain a picture corresponding to the index matching the search keyword;
- the picture text information includes text information obtained by performing content analysis on a picture captured by a search engine.
- the search module 42 searches the index of the image text information according to the search keyword, obtains an index matching the search keyword, and obtains the search keyword.
- a picture corresponding to the matched index wherein the picture text information includes text information obtained by performing content analysis on the picture captured by the search engine; the device may increase the picture text by performing content analysis on the picture The description of the information, so that more and more relevant pictures can be returned when the user searches, thereby better meeting the needs of the user and improving the user experience.
- FIG. 5 is a schematic structural diagram of another embodiment of a picture search device according to the present invention.
- the image search device shown in FIG. 5 is different from the image search device shown in FIG. 4 in an implementation manner of the embodiment.
- the device may further include: an obtaining module 43;
- the obtaining module 43 is configured to perform content analysis on the image captured by the search engine before the receiving module 41 receives the search keyword, and obtain text information of the image.
- the image search device shown in FIG. 5 may further include: an obtaining module 43;
- the obtaining module 43 is configured to perform content analysis on the image captured by the search engine and analyze text of the webpage where the image is located before the receiving module 41 receives the search keyword, and obtain text information of the image.
- the obtaining, by the obtaining module 43 , the content analysis of the image captured by the search engine may be: obtaining the module 43 , specifically for using the object information, the landscape information, the character information, and the text information in the image captured by the search engine. At least one of the analyses. That is, the analysis is performed from the perspective of the content of the picture, including but not limited to analyzing at least one of object information, landscape information, character information, and text information in the picture.
- FIG. 2(a) is a picture captured by the search engine
- FIG. 2(b) is a picture obtained by performing content analysis on the picture shown in FIG. 2(a).
- the text in the column of "category” is the text information obtained by analyzing the content of the picture shown in Fig. 2(a)
- the probability in the column of "probability” is the picture shown in Fig. 2(a). The probability of belonging to each piece of text information.
- FIG. 3(a) is a picture captured by the search engine
- FIG. 3(b) is a figure 3 obtained by performing character recognition on the picture shown in FIG. 3(a) ( a)
- the textual information of the picture shown The picture shown in Fig. 3(a) contains text information, and the text information in the picture shown in Fig. 3(a) is recognized, and the text information shown in Fig. 3(b) is obtained, from Fig. 3(a) and Fig.
- the obtaining module 43 is configured to: analyze the text of the webpage where the image is located, where the obtaining module 43 is configured to analyze the text in the structured field of the webpage where the image is located, and the structured field of the webpage where the image is located.
- a web page title field, an anchor text field, and/or a picture attribute field of the above web page are included.
- the image search device may further include: an establishing module 44, configured to: after the obtaining module 43 obtains the text information of the image, before receiving the search keyword, the receiving module 41 sorts the text information of the image to establish the foregoing The index of the text information of the picture.
- an establishing module 44 configured to: after the obtaining module 43 obtains the text information of the image, before receiving the search keyword, the receiving module 41 sorts the text information of the image to establish the foregoing The index of the text information of the picture.
- the image search device can return more and more related images when the user searches, thereby better meeting the needs of the user and improving the user experience.
- the image search method and apparatus provided by the present invention can increase the description of the text related information by analyzing the picture content, so that more image search results can be obtained when searching for the picture; on the other hand, in some categories of pictures
- the image content recognition based on the image optical character recognition can bring more accurate picture related text, which can more accurately meet the user's needs. Therefore, the image search method and apparatus provided by the present invention can significantly improve the performance of searching or matching, whether in image search or on commercial maps with commercial value.
- An embodiment of the present invention further provides an electronic device, including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory when the one or more
- the processor performs the following operations: receiving a search keyword; performing a search in an index of the picture text information according to the search keyword, obtaining an index matching the search keyword; and the image text information includes a search engine
- the captured image is subjected to text analysis obtained by content analysis; and a picture corresponding to the index matching the search keyword is obtained.
- An embodiment of the present invention further provides a non-volatile computer storage medium, where the computer storage medium stores one or more modules, and when the one or more modules are executed, performing the following operations: receiving a search keyword; Searching in an index of the picture text information according to the search keyword, and obtaining an index matching the search keyword; the picture text information includes text information obtained by performing content analysis on a picture captured by the search engine; The search keyword matches the index corresponding to the picture.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals.
- Discrete logic circuit, ASIC with suitable combination logic gate Programmable Gate Array (PGA), Field Programmable Gate Array (FPGA).
- each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种图片搜索方法和装置,该图片搜索方法包括:接收搜索关键词(101);根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息(102);获得与所述搜索关键词匹配的索引对应的图片(103)。通过对图片进行内容分析,增加图片文本信息的描述,从而可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
Description
相关申请的交叉引用
本申请要求百度在线网络技术(北京)有限公司于2014年12月30日提交的、发明名称为“图片搜索方法和装置”的、中国专利申请号“201410843496.9”的优先权。
本发明涉及互联网技术领域,尤其涉及一种图片搜索方法和装置。
图片相关文本信息的获取,是指通过获取图片相关的文本段,作为对图片的描述,为搜索图片和/或理解图片提供更精准的技术服务。
常见的图片相关文本信息的获取方法,是通过分析图片所在网页的文本信息,抽取出若干文本段,作为图片的文本描述。其中,图片所在网页的标题信息、图片的链接文本、图片的属性文本和图片的环绕文本都是非常有效的描述图片的文本信息,上述信息对于用户搜索图片和/或理解图片是必要的。在传统的图片搜索引擎中,网络设备通常基于用户的搜索关键词,在图片的相关文本信息的描述集合中,利用与搜索关键词匹配等技术来返回给用户一个或者多个搜索结果图片。
因此,用户在利用网络设备上网检索图片时,只能基于图片所在网页的周边文本信息来进行检索,于是,对于网页文本上缺乏文本描述信息的图片,用户就无法检索到,导致用户需求不能被很好地满足,用户体验较差。
发明内容
本发明的目的旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本发明的第一个目的在于提出一种图片搜索方法。该方法通过对图片进行内容分析,增加图片文本信息的描述,从而可以在用户搜索时返回更多更相关的图片,可以更好地满足用户的需求,提高用户体验度。
本发明的第二个目的在于提出一种图片搜索装置。
为了实现上述目的,本发明第一方面实施例的图片搜索方法,包括:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与
所述搜索关键词匹配的索引对应的图片。
本发明实施例的图片搜索方法,接收搜索关键词之后,根据上述搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引;进而获得与上述搜索关键词匹配的索引对应的图片,其中上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;该方法可以通过对图片进行内容分析,增加图片文本信息的描述,从而可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
为了实现上述目的,本发明第二方面实施例的图片搜索装置,包括:接收模块,用于接收搜索关键词;搜索模块,用于根据所述接收模块接收的搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;以及获得与所述搜索关键词匹配的索引对应的图片;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;发送模块,用于将所述搜索模块获得的图片发送给所述终端设备。
本发明实施例的图片搜索装置,接收模块接收用户通过终端设备输入的搜索关键词之后,搜索模块根据上述搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引,进而获得与上述搜索关键词匹配的索引对应的图片,其中上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;该装置可以通过对图片进行内容分析,增加图片文本信息的描述,从而可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
为了实现上述目的,本发明第三方面实施例提供了一种电子设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与所述搜索关键词匹配的索引对应的图片。
为了实现上述目的,本发明第四方面实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个模块,当所述一个或者多个模块被执行时进行如下操作:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与所述搜索关键词匹配的索引对应的图片。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为本发明图片搜索方法一个实施例的流程图;
图2(a)~图2(b)为本发明对图片进行内容分析一个实施例的示意图;
图3(a)~图3(b)为本发明对图片进行内容分析另一个实施例的示意图;
图4为本发明图片搜索装置一个实施例的结构示意图;
图5为本发明图片搜索装置另一个实施例的结构示意图。
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。
图1为本发明图片搜索方法一个实施例的流程图,如图1所示,该图片搜索方法可以包括:
步骤101,接收搜索关键词。
步骤102,根据上述搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引,上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息。
步骤103,获得与上述搜索关键词匹配的索引对应的图片。
本实施例的一种实现方式中,进一步地,接收搜索关键词之前,搜索引擎还可以对该搜索引擎抓取的图片进行内容分析,获得上述图片的文本信息。
本实施例的另一种实现方式中,进一步地,接收搜索关键词之前,搜索引擎还可以对该搜索引擎抓取的图片进行内容分析和对上述图片所在网页的文本进行分析,获得上述图片的文本信息。
具体地,对搜索引擎抓取的图片进行内容分析可以为:对搜索引擎抓取的图片中的物体信息、风景信息、人物信息和文字信息中的至少一种进行分析。也就是从图片内容的角度进行分析,包括但不限于分析图片中的物体信息、风景信息、人物信息和文字信息等信息中的至少一种。
图2(a)~图2(b)为本发明对图片进行内容分析一个实施例的示意图,图2(a)为搜索引擎抓取的图片,图2(b)为对图2(a)所示图片进行内容分析获得的图2(a)所
示图片的文本信息。图2(b)中,“类别”这一列中的文本为对图2(a)所示图片进行内容分析获得的文本信息,“概率”这一列中的概率为图2(a)所示图片属于每条文本信息的概率。
图3(a)~图3(b)为本发明对图片进行内容分析另一个实施例的示意图,图3(a)为搜索引擎抓取的图片,图3(b)为对图3(a)所示图片进行文字识别获得的图3(a)所示图片的文本信息。图3(a)所示图片中包含文字信息,对图3(a)所示图片中的文字信息进行识别,获得图3(b)所示的文本信息,从图3(a)和图3(b)中可以看出,由于图片清晰度等因素的影响,文字识别的结果与原图中的文字信息可能会有一定的误差,但这并不影响本发明的实现,所获得的文本信息仍是非常有效的描述图片的文本信息。
具体地,对上述图片所在网页的文本进行分析可以为:对上述图片所在网页的结构化字段中的文本进行分析,上述图片所在网页的结构化字段包括上述网页的网页标题字段、锚文本字段和/或图片属性字段。
上述两种实现方式中,获得上述图片的文本信息之后,接收搜索关键词之前,搜索引擎还可以对上述图片的文本信息进行整理,建立上述图片的文本信息的索引。
具体地,搜索引擎对上述图片的文本信息进行整理可以为:搜索引擎对上述图片的文本信息进行切词等处理。
上述实施例中,接收搜索关键词之后,根据上述搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引;进而获得与上述搜索关键词匹配的索引对应的图片,其中上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;该方法可以通过对图片进行内容分析,增加图片文本信息的描述,从而可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
图4为本发明图片搜索装置一个实施例的结构示意图,本实施例中的图片搜索装置可以作为搜索引擎,或者搜索引擎的一部分实现本发明图1所示实施例的流程,如图4所示,该图片搜索装置可以包括:接收模块41和搜索模块42;
其中,接收模块41,用于接收搜索关键词;
搜索模块42,用于根据接收模块41接收的搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引;以及获得与上述搜索关键词匹配的索引对应的图片;其中,上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息。
上述图片搜索装置中,接收模块41接收搜索关键词之后,搜索模块42根据上述搜索关键词在图片文本信息的索引中进行搜索,获得与上述搜索关键词匹配的索引,进而获得与上述搜索关键词匹配的索引对应的图片,其中上述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;该装置可以通过对图片进行内容分析,增加图片文本
信息的描述,从而可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
图5为本发明图片搜索装置另一个实施例的结构示意图,与图4所示的图片搜索装置相比,不同之处在于,本实施例的一种实现方式中,图5所示的图片搜索装置还可以包括:获得模块43;
获得模块43,用于在接收模块41接收搜索关键词之前,对搜索引擎抓取的图片进行内容分析,获得上述图片的文本信息。
本实施例的另一种实现方式中,图5所示的图片搜索装置还可以包括:获得模块43;
获得模块43,用于在接收模块41接收搜索关键词之前,对搜索引擎抓取的图片进行内容分析和对上述图片所在网页的文本进行分析,获得上述图片的文本信息。
具体地,获得模块43用于对搜索引擎抓取的图片进行内容分析可以为:获得模块43,具体用于对搜索引擎抓取的图片中的物体信息、风景信息、人物信息和文字信息中的至少一种进行分析。也就是从图片内容的角度进行分析,包括但不限于分析图片中的物体信息、风景信息、人物信息和文字信息等信息中的至少一种。
参见图2(a)~图2(b),图2(a)为搜索引擎抓取的图片,图2(b)为对图2(a)所示图片进行内容分析获得的图2(a)所示图片的文本信息。图2(b)中,“类别”这一列中的文本为对图2(a)所示图片进行内容分析获得的文本信息,“概率”这一列中的概率为图2(a)所示图片属于每条文本信息的概率。
继续参见图3(a)~图3(b),图3(a)为搜索引擎抓取的图片,图3(b)为对图3(a)所示图片进行文字识别获得的图3(a)所示图片的文本信息。图3(a)所示图片中包含文字信息,对图3(a)所示图片中的文字信息进行识别,获得图3(b)所示的文本信息,从图3(a)和图3(b)中可以看出,由于图片清晰度等因素的影响,文字识别的结果与原图中的文字信息可能会有一定的误差,但这并不影响本发明的实现,所获得的文本信息仍是非常有效的描述图片的文本信息。
具体地,获得模块43用于对上述图片所在网页的文本进行分析可以为:获得模块43,具体用于对上述图片所在网页的结构化字段中的文本进行分析,上述图片所在网页的结构化字段包括上述网页的网页标题字段、锚文本字段和/或图片属性字段。
本实施例中,图片搜索装置还可以包括:建立模块44,用于在获得模块43获得上述图片的文本信息之后,接收模块41接收搜索关键词之前,对上述图片的文本信息进行整理,建立上述图片的文本信息的索引。
上述图片搜索装置可以在用户搜索时返回更多更相关的图片,进而可以更好地满足用户的需求,提高用户体验度。
本发明提供的图片搜索方法和装置,一方面,通过分析图片内容可增加图片相关文本信息的描述,从而在搜索图片时可以获取更多的图片搜索结果;另一方面,在某些类别的图片搜索结果中,譬如具有商业价值的图片上,基于图片光学字符识别的图片内容识别,可以带来更为精确的图片相关文本,能更精确的满足用户需求。因此本发明提供的图片搜索方法和装置,不管是在图片搜索还是在具有商业价值的广告配图上,能显著地提高搜索或者配图的性能。
本发明实施例还提供了一种电子设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与所述搜索关键词匹配的索引对应的图片。
本发明实施例还提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个模块,当所述一个或者多个模块被执行时进行如下操作:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与所述搜索关键词匹配的索引对应的图片。
需要说明的是,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(Programmable Gate Array;以下简称:PGA),现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,
该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。
Claims (14)
- 一种图片搜索方法,其特征在于,包括:接收搜索关键词;根据所述搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息;获得与所述搜索关键词匹配的索引对应的图片。
- 根据权利要求1所述的方法,其特征在于,所述接收搜索关键词之前,还包括:对搜索引擎抓取的图片进行内容分析,获得所述图片的文本信息。
- 根据权利要求1所述的方法,其特征在于,所述接收搜索关键词之前,还包括:对搜索引擎抓取的图片进行内容分析和对所述图片所在网页的文本进行分析,获得所述图片的文本信息。
- 根据权利要求2或3所述的方法,其特征在于,所述获得所述图片的文本信息之后,所述接收搜索关键词之前,还包括:对所述图片的文本信息进行整理,建立所述图片的文本信息的索引。
- 根据权利要求2或3所述的方法,其特征在于,所述对搜索引擎抓取的图片进行内容分析包括:对搜索引擎抓取的图片中的物体信息、风景信息、人物信息和文字信息中的至少一种进行分析。
- 根据权利要求3所述的方法,其特征在于,所述对所述图片所在网页的文本进行分析包括:对所述图片所在网页的结构化字段中的文本进行分析,所述图片所在网页的结构化字段包括所述网页的网页标题字段、锚文本字段和/或图片属性字段。
- 一种图片搜索装置,其特征在于,包括:接收模块,用于接收搜索关键词;搜索模块,用于根据所述接收模块接收的搜索关键词在图片文本信息的索引中进行搜索,获得与所述搜索关键词匹配的索引;以及获得与所述搜索关键词匹配的索引对应的图片;所述图片文本信息包括对搜索引擎抓取的图片进行内容分析获得的文本信息。
- 根据权利要求7所述的装置,其特征在于,还包括:获得模块;所述获得模块,用于在所述接收模块接收搜索关键词之前,对搜索引擎抓取的图片进行内容分析,获得所述图片的文本信息。
- 根据权利要求7所述的装置,其特征在于,还包括:获得模块;所述获得模块,用于在所述接收模块接收搜索关键词之前,对搜索引擎抓取的图片进行内容分析和对所述图片所在网页的文本进行分析,获得所述图片的文本信息。
- 根据权利要求8或9所述的装置,其特征在于,还包括:建立模块,用于在所述获得模块获得所述图片的文本信息之后,所述接收模块接收搜索关键词之前,对所述图片的文本信息进行整理,建立所述图片的文本信息的索引。
- 根据权利要求8或9所述的装置,其特征在于,所述获得模块用于对搜索引擎抓取的图片进行内容分析包括:所述获得模块,具体用于对搜索引擎抓取的图片中的物体信息、风景信息、人物信息和文字信息中的至少一种进行分析。
- 根据权利要求9所述的装置,其特征在于,所述获得模块用于对所述图片所在网页的文本进行分析包括:所述获得模块,具体用于对所述图片所在网页的结构化字段中的文本进行分析,所述图片所在网页的结构化字段包括所述网页的网页标题字段、锚文本字段和/或图片属性字段。
- 一种电子设备,其特征在于,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:执行如权利要求1-6任一项所述的方法。
- 一种非易失性计算机存储介质,其特征在于,所述计算机存储介质存储有一个或者多个模块,当所述一个或者多个模块被执行时:执行如权利要求1-6任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410843496.9 | 2014-12-30 | ||
| CN201410843496.9A CN104504109B (zh) | 2014-12-30 | 2014-12-30 | 图片搜索方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016107126A1 true WO2016107126A1 (zh) | 2016-07-07 |
Family
ID=52945506
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/083395 Ceased WO2016107126A1 (zh) | 2014-12-30 | 2015-07-06 | 图片搜索方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104504109B (zh) |
| WO (1) | WO2016107126A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113590861A (zh) * | 2020-04-30 | 2021-11-02 | 北京搜狗科技发展有限公司 | 一种图片信息的处理方法、装置及电子设备 |
| CN113590862A (zh) * | 2020-04-30 | 2021-11-02 | 北京搜狗科技发展有限公司 | 一种图片信息的处理方法、装置及电子设备 |
Families Citing this family (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104504109B (zh) * | 2014-12-30 | 2017-03-15 | 百度在线网络技术(北京)有限公司 | 图片搜索方法和装置 |
| CN104765472B (zh) * | 2015-04-20 | 2018-06-05 | 百度在线网络技术(北京)有限公司 | 输入信息的展示方法和装置 |
| US20160364419A1 (en) | 2015-06-10 | 2016-12-15 | Blackbird Technologies, Inc. | Image and text data hierarchical classifiers |
| CN105528428A (zh) * | 2015-12-09 | 2016-04-27 | 深圳市金立通信设备有限公司 | 一种图像显示方法及终端 |
| CN106919571A (zh) * | 2015-12-24 | 2017-07-04 | 北京奇虎科技有限公司 | 获取与搜索关键词相匹配的图片的方法及装置 |
| US10289700B2 (en) * | 2016-03-01 | 2019-05-14 | Baidu Usa Llc | Method for dynamically matching images with content items based on keywords in response to search queries |
| CN107292302B (zh) * | 2016-03-31 | 2021-05-14 | 阿里巴巴(中国)有限公司 | 检测图片中兴趣点的方法和系统 |
| CN107305566B (zh) * | 2016-04-21 | 2019-10-18 | 北京搜狗科技发展有限公司 | 一种为搜索信息匹配图片的方法及装置 |
| CN106445995A (zh) * | 2016-07-18 | 2017-02-22 | 腾讯科技(深圳)有限公司 | 图片的分类方法和装置 |
| CN107644022A (zh) * | 2016-07-21 | 2018-01-30 | 联想移动通信科技有限公司 | 一种地理位置搜索方法、移动终端及服务器 |
| CN106708940B (zh) * | 2016-11-11 | 2020-06-30 | 百度在线网络技术(北京)有限公司 | 用于处理图片的方法和装置 |
| CN108121715B (zh) * | 2016-11-28 | 2022-01-25 | 中国移动通信集团公司 | 一种文字标签方法及文字标签装置 |
| TWI753034B (zh) * | 2017-03-31 | 2022-01-21 | 香港商阿里巴巴集團服務有限公司 | 特徵向量的產生、搜索方法、裝置及電子設備 |
| CN107193962B (zh) * | 2017-05-24 | 2021-06-11 | 百度在线网络技术(北京)有限公司 | 一种互联网推广信息的智能配图方法及装置 |
| CN107577695A (zh) * | 2017-07-17 | 2018-01-12 | 捷开通讯(深圳)有限公司 | 搜索图片和添加图片标识信息的方法 |
| CN110019867A (zh) * | 2017-10-10 | 2019-07-16 | 阿里巴巴集团控股有限公司 | 图像搜索方法、系统和索引构建方法和介质 |
| CN110019903A (zh) * | 2017-10-10 | 2019-07-16 | 阿里巴巴集团控股有限公司 | 图像处理引擎组件的生成方法、搜索方法及终端、系统 |
| CN107590291A (zh) * | 2017-10-30 | 2018-01-16 | 广东欧珀移动通信有限公司 | 一种图片的搜索方法、终端设备及存储介质 |
| CN108009251A (zh) * | 2017-12-01 | 2018-05-08 | 珠海市魅族科技有限公司 | 一种图像文件搜索方法及装置 |
| CN109033385B (zh) * | 2018-07-27 | 2021-08-27 | 百度在线网络技术(北京)有限公司 | 图片检索方法、装置、服务器及存储介质 |
| CN109814733B (zh) * | 2019-01-08 | 2022-11-08 | 百度在线网络技术(北京)有限公司 | 基于输入的推荐信息生成方法和装置 |
| CN113407749B (zh) * | 2021-06-28 | 2024-04-30 | 北京百度网讯科技有限公司 | 图片索引构建方法、装置、电子设备以及存储介质 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1103900A2 (en) * | 1999-11-26 | 2001-05-30 | Medison Co., Ltd. | Ultrasonic image searching apparatus and ultrasonic image transmission and reception system adopting the same |
| CN103136228A (zh) * | 2011-11-25 | 2013-06-05 | 阿里巴巴集团控股有限公司 | 一种图片搜索方法以及图片搜索装置 |
| CN103559220A (zh) * | 2013-10-18 | 2014-02-05 | 北京奇虎科技有限公司 | 图片搜索设备、方法及系统 |
| CN103761326A (zh) * | 2014-01-29 | 2014-04-30 | 百度在线网络技术(北京)有限公司 | 图片搜索方法以及搜索引擎 |
| CN103793498A (zh) * | 2014-01-22 | 2014-05-14 | 百度在线网络技术(北京)有限公司 | 图片搜索方法、装置以及搜索引擎 |
| CN104462590A (zh) * | 2014-12-30 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | 信息搜索方法及装置 |
| CN104504109A (zh) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | 图片搜索方法和装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100414548C (zh) * | 2006-09-22 | 2008-08-27 | 南京搜拍信息技术有限公司 | 综合利用图像及文字信息的搜索系统及搜索方法 |
| US8631012B2 (en) * | 2006-09-29 | 2014-01-14 | A9.Com, Inc. | Method and system for identifying and displaying images in response to search queries |
| CN101847161A (zh) * | 2010-06-02 | 2010-09-29 | 苏州搜图网络技术有限公司 | 搜索网页的方法和建立数据库的方法 |
-
2014
- 2014-12-30 CN CN201410843496.9A patent/CN104504109B/zh active Active
-
2015
- 2015-07-06 WO PCT/CN2015/083395 patent/WO2016107126A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1103900A2 (en) * | 1999-11-26 | 2001-05-30 | Medison Co., Ltd. | Ultrasonic image searching apparatus and ultrasonic image transmission and reception system adopting the same |
| CN103136228A (zh) * | 2011-11-25 | 2013-06-05 | 阿里巴巴集团控股有限公司 | 一种图片搜索方法以及图片搜索装置 |
| CN103559220A (zh) * | 2013-10-18 | 2014-02-05 | 北京奇虎科技有限公司 | 图片搜索设备、方法及系统 |
| CN103793498A (zh) * | 2014-01-22 | 2014-05-14 | 百度在线网络技术(北京)有限公司 | 图片搜索方法、装置以及搜索引擎 |
| CN103761326A (zh) * | 2014-01-29 | 2014-04-30 | 百度在线网络技术(北京)有限公司 | 图片搜索方法以及搜索引擎 |
| CN104462590A (zh) * | 2014-12-30 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | 信息搜索方法及装置 |
| CN104504109A (zh) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | 图片搜索方法和装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113590861A (zh) * | 2020-04-30 | 2021-11-02 | 北京搜狗科技发展有限公司 | 一种图片信息的处理方法、装置及电子设备 |
| CN113590862A (zh) * | 2020-04-30 | 2021-11-02 | 北京搜狗科技发展有限公司 | 一种图片信息的处理方法、装置及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104504109B (zh) | 2017-03-15 |
| CN104504109A (zh) | 2015-04-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10262045B2 (en) | Application representation for application editions | |
| CN104504109B (zh) | 图片搜索方法和装置 | |
| CN103914545B (zh) | 搜索展现方法及装置 | |
| US9606975B2 (en) | Apparatus and method for automatically generating visual annotation based on visual language | |
| WO2020044096A1 (zh) | 信息搜索方法、装置及设备/终端/服务器 | |
| WO2017005054A1 (zh) | 视频推荐方法、服务器和存储介质 | |
| WO2019174237A1 (zh) | 搜索视频的方法、装置及设备 | |
| WO2018000575A1 (zh) | 基于人工智能的搜索结果聚合方法、装置以及搜索引擎 | |
| JP6932360B2 (ja) | オブジェクト検索方法、装置およびサーバ | |
| KR100896336B1 (ko) | 영상 정보 기반의 동영상 연관 검색 시스템 및 방법 | |
| US12197489B2 (en) | Method and apparatus for searching for clipping template | |
| WO2014086194A1 (zh) | 网络的信息展示方法和系统、终端和信息展示处理装置 | |
| RU2583764C1 (ru) | Способ обработки запроса пользователя на доступ к веб-ресурсу и сервер | |
| WO2023065663A1 (zh) | 视频剪辑方法、装置、电子设备及存储介质 | |
| CN107291949A (zh) | 信息搜索方法及装置 | |
| CN115080792B (zh) | 一种视频关联方法、装置、电子设备及存储介质 | |
| WO2016107125A1 (zh) | 信息搜索方法及装置 | |
| KR20200063316A (ko) | 각본 기반의 영상 검색 장치 및 방법 | |
| CN114117183B (zh) | 查询处理模型的生成方法、装置及电子设备 | |
| CN110209780B (zh) | 一种问题模板生成方法、装置、服务器及存储介质 | |
| CN109063200B (zh) | 资源搜索方法及其装置、电子设备、计算机可读介质 | |
| TWI709905B (zh) | 資料分析方法及資料分析系統 | |
| CN106033417B (zh) | 视频搜索系列剧的排序方法和装置 | |
| US10114891B2 (en) | Method and system of audio retrieval and source separation | |
| CN104572945B (zh) | 一种基于云存储空间的文件搜索方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15874816 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15874816 Country of ref document: EP Kind code of ref document: A1 |