CN106484722A - A kind of image procossing and searching method, device and system - Google Patents
A kind of image procossing and searching method, device and system Download PDFInfo
- Publication number
- CN106484722A CN106484722A CN201510543519.9A CN201510543519A CN106484722A CN 106484722 A CN106484722 A CN 106484722A CN 201510543519 A CN201510543519 A CN 201510543519A CN 106484722 A CN106484722 A CN 106484722A
- Authority
- CN
- China
- Prior art keywords
- image file
- image
- terminal
- label information
- search
- 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
-
- 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
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)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种图像处理及搜索方法、装置和系统,用以实现针对图像的自动搜索。服务器侧实施的图像处理方法,包括:识别第一终端上传的第一图像文件,在所述第一图像文件上利用文字标签信息标注识别结果得到第二图像文件;向所述第一终端返回所述第二图像文件。终端侧实施的图像搜索方法,包括接收图像搜索请求,所述图像搜索请求中携带有搜索关键字信息;在各图像文件的文字标签信息中,查找与所述搜索关键字信息匹配的文字标签信息;针对所述图像搜索请求返回文字标签信息与所述搜索关键字信息匹配的图像文件。
The invention discloses an image processing and searching method, device and system, which are used to realize automatic searching for images. The image processing method implemented on the server side includes: identifying the first image file uploaded by the first terminal, marking the recognition result on the first image file with text label information to obtain a second image file; returning the first image file to the first terminal Describe the second image file. The image search method implemented on the terminal side includes receiving an image search request, the image search request carrying search keyword information; searching for text tag information matching the search keyword information in the text tag information of each image file ; According to the image search request, return image files whose text label information matches the search keyword information.
Description
技术领域technical field
本发明涉及图像搜索技术领域,尤其涉及一种图像处理及搜索方法、装置和系统。The present invention relates to the technical field of image search, in particular to an image processing and search method, device and system.
背景技术Background technique
随着移动互联网的发展,即时通信类应用所能发送的消息内容从最初的文本逐渐扩展至语音、图像、视频等富媒体形式。在即时消息类应用中,包含图像的消息(以下称之为图像消息)所占的比重也越来越大。With the development of the mobile Internet, the message content that can be sent by instant messaging applications has gradually expanded from the initial text to rich media forms such as voice, image, and video. In instant messaging applications, messages containing images (hereinafter referred to as image messages) account for an increasing proportion.
实际应用中,用户存在针对消息内容的搜索需求。但是,目前对于即时消息的搜索仅适应用于文本消息、语音消息等的搜索,如果用户希望搜索收发的图像消息,用户只能逐条翻查历史消息记录,人工判断已收发的每张图像是否为自己所需要,操作繁琐,由此可见,如何实现针对图像消息的自动搜索成为现有技术中亟待解决的技术问题之一。In practical applications, users have a need to search for message content. However, the current search for instant messages is only suitable for text messages, voice messages, etc. If the user wishes to search for image messages sent and received, the user can only check the historical message records one by one, manually judging whether each image sent and received is It is required by oneself, and the operation is cumbersome. It can be seen that how to realize the automatic search for image messages has become one of the technical problems to be solved urgently in the prior art.
发明内容Contents of the invention
本发明实施例提供一种图像处理及搜索方法、装置和系统,用以实现针对图像的自动搜索。Embodiments of the present invention provide an image processing and searching method, device and system to realize automatic searching for images.
本发明实施例提供一种服务器侧实施的图像处理方法,包括:An embodiment of the present invention provides an image processing method implemented on the server side, including:
识别第一终端上传的第一图像文件,在所述第一图像文件上利用文字标签信息标注识别结果得到第二图像文件;Identifying the first image file uploaded by the first terminal, and marking the recognition result with text label information on the first image file to obtain a second image file;
向所述第一终端返回所述第二图像文件。returning the second image file to the first terminal.
本发明实施例提供一种终端侧实施的图像处理方法,包括:An embodiment of the present invention provides an image processing method implemented on a terminal side, including:
向服务器上传第一图像文件;Upload the first image file to the server;
接收所述服务器返回的第二图像文件,所述第二图像文件为所述服务器识别所述第一图像文件后,在所述第一图像文件上利用文字标签信息标注识别结果得到的。receiving the second image file returned by the server, where the second image file is obtained by marking the recognition result on the first image file with text label information after the server recognizes the first image file.
本发明实施例提供一种基于上述终端侧实施的图像处理方法的图像搜索方法,包括:An embodiment of the present invention provides an image search method based on the above image processing method implemented on the terminal side, including:
接收图像搜索请求,所述图像搜索请求中携带有搜索关键字信息;receiving an image search request, the image search request carrying search keyword information;
在各图像文件的文字标签信息中,查找与所述搜索关键字信息匹配的文字标签信息;In the text tag information of each image file, search for the text tag information matching the search keyword information;
针对所述图像搜索请求返回文字标签信息与所述搜索关键字信息匹配的图像文件。Image files whose text tag information matches the search keyword information are returned for the image search request.
本发明实施例提供一种服务器侧实施的图像处理装置,包括:An embodiment of the present invention provides an image processing device implemented on the server side, including:
识别单元,用于识别第一终端上传的第一图像文件,在所述第一图像文件上利用文字标签信息标注识别结果得到第二图像文件;An identification unit, configured to identify the first image file uploaded by the first terminal, and mark the identification result on the first image file with text label information to obtain a second image file;
返回单元,用于向所述第一终端返回所述第二图像文件。A returning unit, configured to return the second image file to the first terminal.
本发明实施例提供一种终端侧实施的图像处理装置,包括:An embodiment of the present invention provides an image processing device implemented on a terminal side, including:
上传单元,用于向服务器上传第一图像文件;an uploading unit, configured to upload the first image file to the server;
第一接收单元,用于接收所述服务器返回的第二图像文件,所述第二图像文件为所述服务器识别所述第一图像文件后,在所述第一图像文件上利用文字标签信息标注识别结果得到的。The first receiving unit is configured to receive the second image file returned by the server, the second image file is marked on the first image file by text label information after the server recognizes the first image file The recognition result is obtained.
本发明实施例提供一种图像搜索装置,包括:An embodiment of the present invention provides an image search device, including:
第二接收单元,用于接收图像搜索请求,所述图像搜索请求中携带有搜索关键字信息;The second receiving unit is configured to receive an image search request, and the image search request carries search keyword information;
查找单元,用于在各图像文件的文字标签信息中,查找与所述搜索关键字信息匹配的文字标签信息;A search unit, configured to search for text tag information matching the search keyword information in the text tag information of each image file;
返回单元,用于针对所述图像搜索请求返回文字标签信息与所述搜索关键字信息匹配的图像文件。A returning unit, configured to return image files whose text label information matches the search keyword information in response to the image search request.
本发明实施例提供一种图像处理系统,包括终端和服务器,其中,所述服务器中设置有上述服务器侧实施的图像处理装置,所述终端中设备有上述的终端侧实施的图像处理装置和/或上述的图像搜索装置。An embodiment of the present invention provides an image processing system, including a terminal and a server, wherein the server is provided with the above-mentioned image processing device implemented on the server side, and the terminal is equipped with the above-mentioned image processing device implemented on the terminal side and/or Or the above-mentioned image search device.
本发明实施例提供的图像处理及搜索方法、装置和系统,由服务器对终端上传的图像文件进行识别,并将利用文字标签信息标注识别结果后得到的图像文件反馈给终端,这种,在进行图像搜索时,可以通过搜索关键字与图像文件中的文字标签信息进行匹配,并返回匹配的图像文件,由此,基于标注的文字标签信息实现了图像的自动搜索。In the image processing and search method, device, and system provided by the embodiments of the present invention, the server identifies the image files uploaded by the terminal, and feeds back the image files obtained after marking the identification results with text label information to the terminal. During image search, the search keyword can be matched with the text label information in the image file, and the matched image file can be returned. Thus, the automatic image search can be realized based on the marked text label information.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:
图1为本发明实施例中,服务器实施图像处理方法的实施流程示意图;FIG. 1 is a schematic diagram of an implementation process of a server implementing an image processing method in an embodiment of the present invention;
图2为本发明实施例中,终端实施图像处理方法的实施流程示意图;FIG. 2 is a schematic diagram of an implementation flow of an image processing method implemented by a terminal in an embodiment of the present invention;
图3为本发明实施例中,图像搜索方法的实施流程示意图;FIG. 3 is a schematic diagram of an implementation flow of an image search method in an embodiment of the present invention;
图4a为本发明实施例中,用户A向用户B传输图像文件的场景示意图;FIG. 4a is a schematic diagram of a scene where user A transmits an image file to user B in an embodiment of the present invention;
图4b为本发明实施例中,图像处理及搜索方法应用于即时消息中时的实施例示意图;Fig. 4b is a schematic diagram of an embodiment of an image processing and searching method applied to instant messaging in an embodiment of the present invention;
图5为本发明实施例中,第一种图像处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a first image processing device in an embodiment of the present invention;
图6为本发明实施例中,第二种图像处理装置的结构示意图;6 is a schematic structural diagram of a second image processing device in an embodiment of the present invention;
图7为本发明实施例中,图像搜索装置的结果示意图;Fig. 7 is a schematic diagram of the results of the image search device in the embodiment of the present invention;
图8为本发明实施例中,图像处理系统的结构示意图。FIG. 8 is a schematic structural diagram of an image processing system in an embodiment of the present invention.
具体实施方式detailed description
为了实现图像的自动搜索,本发明实施例中提供了一种图像处理及搜索方法、装置和系统。In order to realize automatic search of images, an image processing and search method, device and system are provided in an embodiment of the present invention.
以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention, and in the absence of conflict, the present invention The embodiments and the features in the embodiments can be combined with each other.
如图1所示,为服务器侧实施图像处理方法的实施流程示意图,可以包括以下步骤:As shown in Figure 1, it is a schematic diagram of the implementation process of implementing the image processing method on the server side, which may include the following steps:
S11、识别第一终端上传的第一图像文件,在第一图像文件上利用文字标签信息标注识别结果得到第二图像文件。S11. Recognize the first image file uploaded by the first terminal, and mark the recognition result on the first image file with text label information to obtain a second image file.
其中第一图像文件可以为服务器按照以下任一方式获得的:Wherein the first image file may be obtained by the server in any of the following ways:
方式一、method one,
用户可以将已拍摄的图像文件利用第一终端上传给服务器进行图像识别,例如,用户在拍摄完成图像文件后,即利用第一终端上传给服务器进行图像识别。The user can use the first terminal to upload the captured image file to the server for image recognition. For example, after the user finishes capturing the image file, he uses the first terminal to upload the image file to the server for image recognition.
方式二、Method two,
用户将第一终端本地存储的图像文件上传给服务器进行识别。The user uploads the image file locally stored in the first terminal to the server for identification.
方式三、Method three,
用户在与好友利用即时通信客户端聊天时,通过服务器向好友传输的图像文件。The image file that the user transmits to the friend through the server when chatting with the friend through the instant messaging client.
服务器在获得了第一图像文件后,利用图像识别技术对第一图像文件进行图像内容识别,例如识别图像中包含的物品、场景、人物等等。根据识别结果生成对应的文字标签信息,利用生成的文字标签信息标注图像中对应的识别结果。After obtaining the first image file, the server uses image recognition technology to identify the image content of the first image file, for example, to identify objects, scenes, characters, etc. included in the image. The corresponding text label information is generated according to the recognition result, and the corresponding recognition result in the image is marked with the generated text label information.
S12、向第一终端返回第二图像文件。S12. Return the second image file to the first terminal.
较佳的,第二图像文件中的文字标签信息为可编辑的标签信息。即允许用户对第二图像文件中的文字标签信息进行修改。Preferably, the text label information in the second image file is editable label information. That is, the user is allowed to modify the text label information in the second image file.
基于此,服务器侧实施的图像处理方法还可以包括以下步骤:接收第一终端上传的第三图像文件,其中,第三图像文件为修改第二图像文件中的文字标签信息后得到的;修正存储的识别库中、对应识别结果的文字标签信息为第三图像文件中携带的文字标签信息。Based on this, the image processing method implemented on the server side may also include the following steps: receiving a third image file uploaded by the first terminal, wherein the third image file is obtained after modifying the text label information in the second image file; modifying and storing The text label information corresponding to the recognition result in the recognition database of the identification library is the text label information carried in the third image file.
具体实施时,第一终端接收到第二图像文件后,可以在本地显示第二图像文件,用户根据第二图像文件中标注的文字标签信息确认识别结果是否准确,如果不准确,可以对文字标签信息进行修改得到第三图像文件,并通过第一终端将第三图像文件上传至服务器,服务器比对第三图像文件与第二图像文件后,修改对应识别结果的文字标签信息。例如,服务器识别出第一图像文件中的玫瑰花,并在第一图像文件中的玫瑰花对应位置上标注文字标签信息“玫瑰花”后得到第二图像文件,将第二图像文件发送给第一终端后,用户将标注的文字标签信息“玫瑰花”修改为“绿色玫瑰花”得到第三图像文件,用户通过第一终端将第三图像文件发送给服务器,服务器比对第二图像文件和第三图像文件,根据比对结果,修正其存储的识别库中,对应识别结果的文字标签信息为“绿色玫瑰花”。During specific implementation, after the first terminal receives the second image file, it can display the second image file locally, and the user can confirm whether the recognition result is accurate according to the text label information marked in the second image file. The information is modified to obtain a third image file, and the third image file is uploaded to the server through the first terminal, and after the server compares the third image file with the second image file, the text label information corresponding to the recognition result is modified. For example, the server recognizes the rose in the first image file, and marks the text label information "rose" on the corresponding position of the rose in the first image file to obtain the second image file, and sends the second image file to the second image file. After a terminal, the user changes the marked text label information "rose" to "green rose" to obtain the third image file, the user sends the third image file to the server through the first terminal, and the server compares the second image file with the In the third image file, according to the comparison result, the text label information corresponding to the recognition result in the stored recognition library is corrected as "green rose".
通过上述步骤,可以不断修正服务器存储的识别库,提升服务器端图像识别的准确率。Through the above steps, the recognition library stored in the server can be continuously revised to improve the accuracy of image recognition on the server side.
需要说明的是,具体实施时,如果服务器获得第一图像文件的方式为上述方式三时,服务器还需要向该用户的好友转发第二图像文件或者第三图像文件,具体的,服务器可以通过第二终端向该用户的好友转发第二图像文件或者第三图像文件。第一终端和第二终端在接收到第二图像文件或者第三图像文件后,显示第二图像文件或者第三图像文件,并在本地存储接收到的第二图像文件或者第三图像文件。It should be noted that during specific implementation, if the server obtains the first image file in the above-mentioned method 3, the server also needs to forward the second image file or the third image file to the user's friend. Specifically, the server can pass the first image file The second terminal forwards the second image file or the third image file to the friend of the user. After receiving the second image file or the third image file, the first terminal and the second terminal display the second image file or the third image file, and store the received second image file or the third image file locally.
具体实施时,也可以在终端本地进行图像识别并利用文字标签信息对识别结果进行标注并存储即可。During specific implementation, image recognition may also be performed locally on the terminal, and the recognition result may be marked and stored using text label information.
相应的,本发明实施例还提供了一种终端侧实施的图像处理方法,如图2所示,可以包括以下步骤:Correspondingly, the embodiment of the present invention also provides an image processing method implemented on the terminal side, as shown in FIG. 2 , which may include the following steps:
S21、向服务器上传第一图像文件。S21. Upload the first image file to the server.
同样,终端可以通过以下任一方式向服务器上传第一图像文件:Similarly, the terminal can upload the first image file to the server in any of the following ways:
方式一、method one,
用户可以将已拍摄的图像文件利用第一终端上传给服务器进行图像识别,例如,用户在拍摄完成图像文件后,即利用第一终端上传给服务器进行图像识别。The user can use the first terminal to upload the captured image file to the server for image recognition. For example, after the user finishes capturing the image file, he uses the first terminal to upload the image file to the server for image recognition.
方式二、Method two,
用户将第一终端本地存储的图像文件上传给服务器进行识别。The user uploads the image file locally stored in the first terminal to the server for identification.
方式三、Method three,
用户在与好友利用即时通信客户端聊天时,通过服务器向好友传输的图像文件。The image file that the user transmits to the friend through the server when chatting with the friend through the instant messaging client.
S22、接收该服务器返回的第二图像文件。S22. Receive the second image file returned by the server.
其中,第二图像文件为服务器对终端上传的第一图像文件进行图像内容识别后,在第一图像文件上利用文字标签信息标注识别结果得到的。Wherein, the second image file is obtained after the server recognizes the image content of the first image file uploaded by the terminal, and marks the recognition result on the first image file with text label information.
具体的,服务器在获得了第一图像文件后,利用图像识别技术对第一图像文件进行图像内容识别,例如识别图像中包含的物品、场景、人物等等。根据识别结果生成对应的文字标签信息,利用生成的文字标签信息标注图像中对应的识别结果得到第二图像文件。Specifically, after obtaining the first image file, the server uses image recognition technology to identify the image content of the first image file, such as identifying items, scenes, characters, etc. included in the image. Generate corresponding text label information according to the recognition result, and use the generated text label information to mark the corresponding recognition result in the image to obtain a second image file.
较佳的,服务器标注的文字标签信息为可编辑的标签信息。终端在接收到第二图像文件后,向用户显示第二图像文件,如果用户认为第二图像文件中的文字标签信息不准确,可以进行修改得到第三图像文件,终端将第三图像文件上传给服务器,以供服务器修正其存储的识别库,提高图像内容识别的准确率。Preferably, the text label information marked by the server is editable label information. After receiving the second image file, the terminal displays the second image file to the user. If the user thinks that the text label information in the second image file is inaccurate, he can modify it to obtain the third image file, and the terminal uploads the third image file to the The server is used for the server to modify its stored recognition library to improve the accuracy of image content recognition.
基于此,终端侧实施的图像处理方法,还可以包括以下步骤:向服务器上传修改第二图像文件中的文字标签信息得到的第三图像文件。Based on this, the image processing method implemented on the terminal side may further include the following step: uploading to the server a third image file obtained by modifying text label information in the second image file.
终端在本地存储第二图像文件和第三图像文件。The terminal locally stores the second image file and the third image file.
基于终端本地存储的第二图像文件或者第三图像文件,如果用户有搜索需求时,可以采用搜索关键字搜索进行搜索。以下以结合用户利用终端进行图像搜索的实施流程对本发明实施例提供的图像搜索方法进行说明。Based on the second image file or the third image file locally stored in the terminal, if the user needs to search, the user may search by using a search keyword. The image search method provided by the embodiment of the present invention will be described below in conjunction with the implementation process of a user using a terminal to perform an image search.
如图3所示,为本发明实施例提供的图像搜索方法的实施流程示意图,可以包括以下步骤:As shown in FIG. 3, it is a schematic diagram of the implementation flow of the image search method provided by the embodiment of the present invention, which may include the following steps:
S31、接收图像搜索请求。S31. Receive an image search request.
其中,在图像搜索请求中携带有搜索关键字信息。具体实施时,用户在进行图像搜索时,在终端显示的搜索框中输入搜索关键字。Wherein, the search keyword information is carried in the image search request. During specific implementation, when searching for an image, the user inputs a search keyword in a search box displayed on the terminal.
S32、在各图像文件的文字标签信息中,查找与搜索关键字信息匹配的文字标签信息。S32. In the text tag information of each image file, search for text tag information that matches the search keyword information.
具体实施时,在接收到图像搜索请求后,根据其中携带的搜索关键字在本地存储的文字标签信息中搜索与搜索关键字匹配的文字标签信息。具体的匹配方式与现有的针对文字搜索的匹配过程相同,这里不再赘述。During specific implementation, after the image search request is received, text tag information matching the search keyword is searched in locally stored text tag information according to the search keyword carried therein. The specific matching method is the same as the existing matching process for text search, and will not be repeated here.
S33、针对接收到的图像搜索请求返回文字标签信息与该搜索关键字信息匹配的图像文件。S33. Return the image file whose text label information matches the search keyword information in response to the received image search request.
具体的,返回匹配到的文字标签信息所在的图像文件。Specifically, the image file where the matched text label information is located is returned.
为了更好的理解本发明,以下以用户A使用终端A在与用户B利用即时通信软件聊天过程中,用户A向用户B发送图像文件为例对本发明实施例的具体实施过程进行说明,其中用户B使用终端B与用户A进行通信。如图4a所示,为用户A向用户B传输图像文件的场景示意图,如图4b所示,可以包括以下步骤:In order to better understand the present invention, the specific implementation process of the embodiment of the present invention will be described below by taking user A using terminal A to chat with user B using instant messaging software, and user A sending image files to user B as an example. B uses terminal B to communicate with user A. As shown in Figure 4a, it is a schematic diagram of a scene where user A transmits an image file to user B, as shown in Figure 4b, may include the following steps:
S41、用户A使用终端A通过服务器向终端B发送第一图像文件。S41. User A uses terminal A to send the first image file to terminal B through the server.
S42、服务器接收到用户A向用户发送的第一图像文件。S42. The server receives the first image file sent by the user A to the user.
S43、服务器对第一图像文件进行图像内容识别。S43. The server performs image content identification on the first image file.
例如,服务器对第一图像文件进行图像内容识别后,识别出其中的物品、场景等内容。For example, after the server identifies the image content of the first image file, it identifies items, scenes, and other content therein.
S44、服务器根据识别结果生成文字标签信息并在第一图像文件上标注得到第二图像文件。S44. The server generates text label information according to the recognition result and marks the first image file to obtain a second image file.
S45、服务器将第二图像文件分别发送给终端A和终端B。S45. The server sends the second image file to terminal A and terminal B respectively.
S46、终端A和终端B分别存储接收到的第二图像文件。S46. Terminal A and terminal B respectively store the received second image file.
S47、用户A向终端A提交图像搜索请求,其中携带有搜索关键字。S47. User A submits an image search request to terminal A, which carries a search keyword.
具体的,用户A在需要进行图像搜索时,其可以向终端A提交搜索请求,并在终端A显示的搜索框中输入搜索关键字。Specifically, when user A needs to perform an image search, he may submit a search request to terminal A, and enter a search keyword in a search box displayed on terminal A.
S48、终端A根据搜索关键字在存储的图像文件中查找文字标签信息与搜索关键字匹配的图像文件。S48. Terminal A searches the stored image files according to the search keyword for image files whose text label information matches the search keyword.
S49、终端A返回搜索到的图像文件。S49. Terminal A returns the searched image file.
具体实施时,用户B在需要进行图像搜索时,其可以向终端B提交搜索请求,并在终端B显示的搜索框中输入搜索关键字,终端B根据搜索关键字在存储的图像文件中查找文字标签信息与搜索关键字匹配的图像文件,并返回搜索到的图像文件。During specific implementation, when user B needs to perform an image search, he can submit a search request to terminal B, and enter a search keyword in the search box displayed on terminal B, and terminal B will search for text in the stored image file according to the search keyword Image files whose tag information matches the search keyword and return the searched image files.
具体实施时,终端还可以将用户输入的搜索关键字发送给服务器,协助服务器更新识别库和识别算法,提升服务器端图像内容识别的准确性。During specific implementation, the terminal can also send the search keyword input by the user to the server to assist the server in updating the recognition library and recognition algorithm, and improve the accuracy of image content recognition on the server side.
需要说明的是,终端B可以接收多个终端,例如终端A1,A2,……An发送的第一图像文件,该第一图像文件由服务器标注文字标签信息后得的第二图像文件转发给终端B,终端B在本地存储接收到的标注了文字标签信息的图像文件。It should be noted that the terminal B can receive multiple terminals, such as the first image file sent by the terminal A1, A2, ... An, and the first image file is forwarded to the terminal by the second image file marked with text label information by the server B. Terminal B locally stores the received image file marked with text label information.
本发明实施例提供的图像处理及搜索方法中,服务器在获得了终端上传的第一图像文件后,对获得的图像文件进行图像内容识别,根据识别结果生成对应的文字标签信息,并在图像中利用生成的文字标签信息标注对应的识别结果得到第二图像文件,将第二图像文件发送给终端后,如果用户修改其中的文字标签信息,则由终端将用户修改文字标签信息后得到的第三图像文件发送给服务器,服务器根据第三图像文件,修正存储的识别库中对应的文字标签信息。In the image processing and search method provided by the embodiment of the present invention, after the server obtains the first image file uploaded by the terminal, it performs image content recognition on the obtained image file, generates corresponding text label information according to the recognition result, and displays it in the image Use the generated text tag information to annotate the corresponding recognition result to obtain the second image file. After sending the second image file to the terminal, if the user modifies the text tag information, the terminal will use the third image file obtained after the user modifies the text tag information. The image file is sent to the server, and the server modifies the corresponding text label information stored in the recognition library according to the third image file.
基于同一发明构思,本发明实施例中还分别提供了图像处理及搜索装置和图像处理系统,由于上述装置及系统解决问题的原理与上述方法相似,因此上述装置及系统的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, an image processing and searching device and an image processing system are also provided in the embodiment of the present invention respectively. Since the problem-solving principle of the above-mentioned device and system is similar to the above-mentioned method, the implementation of the above-mentioned device and system can refer to the implementation of the method , the repetitions will not be repeated.
如图5所示,为本发明实施例提供的第一种图像处理装置的结构示意图,可以包括:As shown in FIG. 5, it is a schematic structural diagram of the first image processing device provided by the embodiment of the present invention, which may include:
识别单元51,用于识别第一终端上传的第一图像文件,在所述第一图像文件上利用文字标签信息标注识别结果得到第二图像文件。The identification unit 51 is configured to identify the first image file uploaded by the first terminal, and mark the identification result on the first image file with text label information to obtain a second image file.
较佳的,该文字标签信息为可编辑的标签信息。Preferably, the text label information is editable label information.
返回单元52,用于向所述第一终端返回所述第二图像文件。A returning unit 52, configured to return the second image file to the first terminal.
本发明实施例提供的第一种图像处理装置,还可以包括:The first image processing device provided in the embodiment of the present invention may further include:
接收单元,用于接收所述第一终端上传的第三图像文件,所述第三图像文件为修改所述第二图像文件中的文字标签信息后得到的;a receiving unit, configured to receive a third image file uploaded by the first terminal, where the third image file is obtained after modifying text label information in the second image file;
修正单元,用于修正存储的识别库中、所述识别结果对应的文字标签信息为所述第三图像文件中携带的文字标签信息。The correcting unit is configured to correct the text label information corresponding to the recognition result stored in the recognition library to be the text label information carried in the third image file.
其中,第一图像文件为第一终端向第二终端发送的;以及本发明实施例提供的第一种图像处理装置,还可以包括:Wherein, the first image file is sent by the first terminal to the second terminal; and the first image processing device provided by the embodiment of the present invention may further include:
发送单元,用于向第二终端发送第二图像文件。a sending unit, configured to send the second image file to the second terminal.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本发明时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。上述第一种图像处理装置可以设置于服务器中,该服务器可以为即时消息服务器,也可以为专门的用户图像处理的图像处理服务器。当然,上述第一种图像处理装置也可以设置于终端中,由终端进行图像内容识别及标注识别结果的操作。For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Certainly, when implementing the present invention, the functions of each module (or unit) can be implemented in one or more pieces of software or hardware. The above-mentioned first image processing device can be set in a server, and the server can be an instant message server, or an image processing server dedicated to user image processing. Of course, the above-mentioned first type of image processing device may also be installed in a terminal, and the terminal performs operations of image content recognition and marking of recognition results.
如图6所示,为本发明实施例提供的第二种图像处理装置的结构示意图,可以包括:As shown in FIG. 6, a schematic structural diagram of a second image processing device provided by an embodiment of the present invention may include:
上传单元61,用于向服务器上传第一图像文件;uploading unit 61, configured to upload the first image file to the server;
第一接收单元62,用于接收所述服务器返回的第二图像文件,所述第二图像文件为所述服务器识别所述第一图像文件后,在所述第一图像文件上利用文字标签信息标注识别结果得到的。The first receiving unit 62 is configured to receive the second image file returned by the server, and the second image file uses text label information on the first image file after the server recognizes the first image file label recognition results.
较佳的,文字标签信息为可编辑的标签信息;以及Preferably, the text label information is editable label information; and
上传单元61,还可以用于向所述服务器上传修改所述第二图像文件中的文字标签信息得到的第三图像文件。The uploading unit 61 may also be configured to upload to the server a third image file obtained by modifying text label information in the second image file.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本发明时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。上述第二种图像处理装置可以设置于终端中。For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Certainly, when implementing the present invention, the functions of each module (or unit) can be implemented in one or more pieces of software or hardware. The above-mentioned second image processing apparatus may be set in a terminal.
如图7所示,为本发明实施例提供的基于上述第二图像处理装置的图像搜索装置的结构示意图,可以包括:As shown in FIG. 7, a schematic structural diagram of an image search device based on the above-mentioned second image processing device provided in an embodiment of the present invention may include:
第二接收单元71,用于接收图像搜索请求,所述图像搜索请求中携带有搜索关键字信息;The second receiving unit 71 is configured to receive an image search request, and the image search request carries search keyword information;
查找单元72,用于在各图像文件的文字标签信息中,查找与所述搜索关键字信息匹配的文字标签信息;A search unit 72, configured to search for text tag information matching the search keyword information in the text tag information of each image file;
返回单元73,用于针对所述图像搜索请求返回文字标签信息与所述搜索关键字信息匹配的图像文件。The returning unit 73 is configured to return image files whose text label information matches the search keyword information in response to the image search request.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本发明时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。上述图像搜索装置可以设置于终端中。For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Certainly, when implementing the present invention, the functions of each module (or unit) can be implemented in one or more pieces of software or hardware. The above-mentioned image search device may be installed in a terminal.
如图8所示,为本发明实施例提供的图像处理系统的结果示意图,可以包括终端81和服务器82,其中,终端81中设置有上述第二种图像处理装置和/或上述的图像搜索装置,服务器82中设置有上述第一种图像处理装置。As shown in FIG. 8 , it is a schematic diagram of the results of the image processing system provided by the embodiment of the present invention, which may include a terminal 81 and a server 82, wherein the terminal 81 is provided with the above-mentioned second image processing device and/or the above-mentioned image search device , the server 82 is provided with the above-mentioned first image processing device.
本发明实施例提供的图像处理及搜索方法、装置和系统,由服务器对终端上传的图像文件进行识别,并将利用文字标签信息标注识别结果后得到的图像文件反馈给终端,这种,在进行图像搜索时,可以通过搜索关键字与图像文件中的文字标签信息进行匹配,并返回匹配的图像文件,由此,基于标注的文字标签信息实现了图像的自动搜索。In the image processing and search method, device, and system provided by the embodiments of the present invention, the server identifies the image files uploaded by the terminal, and feeds back the image files obtained after marking the identification results with text label information to the terminal. During image search, the search keyword can be matched with the text label information in the image file, and the matched image file can be returned. Thus, the automatic image search can be realized based on the marked text label information.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510543519.9A CN106484722A (en) | 2015-08-28 | 2015-08-28 | A kind of image procossing and searching method, device and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510543519.9A CN106484722A (en) | 2015-08-28 | 2015-08-28 | A kind of image procossing and searching method, device and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106484722A true CN106484722A (en) | 2017-03-08 |
Family
ID=58236147
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510543519.9A Pending CN106484722A (en) | 2015-08-28 | 2015-08-28 | A kind of image procossing and searching method, device and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106484722A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106991438A (en) * | 2017-03-20 | 2017-07-28 | 新智认知数据服务有限公司 | One kind is based on the interactive facial image attribute labeling methods of MFC |
| CN107172088A (en) * | 2017-06-30 | 2017-09-15 | 江西博瑞彤芸科技有限公司 | A kind of data processing method |
| CN107679222A (en) * | 2017-10-20 | 2018-02-09 | 广东欧珀移动通信有限公司 | Image processing method, mobile terminal and computer-readable recording medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101093489A (en) * | 2006-06-23 | 2007-12-26 | 明基电通股份有限公司 | Image search method and device |
| CN101414307A (en) * | 2008-11-26 | 2009-04-22 | 阿里巴巴集团控股有限公司 | Method and server for providing picture searching |
| CN101763376A (en) * | 2008-12-08 | 2010-06-30 | 新奥特硅谷视频技术有限责任公司 | Method, device and system for intelligent search and server |
-
2015
- 2015-08-28 CN CN201510543519.9A patent/CN106484722A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101093489A (en) * | 2006-06-23 | 2007-12-26 | 明基电通股份有限公司 | Image search method and device |
| CN101414307A (en) * | 2008-11-26 | 2009-04-22 | 阿里巴巴集团控股有限公司 | Method and server for providing picture searching |
| CN101763376A (en) * | 2008-12-08 | 2010-06-30 | 新奥特硅谷视频技术有限责任公司 | Method, device and system for intelligent search and server |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106991438A (en) * | 2017-03-20 | 2017-07-28 | 新智认知数据服务有限公司 | One kind is based on the interactive facial image attribute labeling methods of MFC |
| CN107172088A (en) * | 2017-06-30 | 2017-09-15 | 江西博瑞彤芸科技有限公司 | A kind of data processing method |
| CN107679222A (en) * | 2017-10-20 | 2018-02-09 | 广东欧珀移动通信有限公司 | Image processing method, mobile terminal and computer-readable recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12518511B2 (en) | Entity recognition from an image | |
| CN108463821B (en) | System and method for identifying entities directly from images | |
| US9471834B1 (en) | System and method for updating map views | |
| US9794404B2 (en) | Universal contact manager | |
| CN105144156A (en) | Associating metadata with images in a personal image collection | |
| CN107919129A (en) | Method and apparatus for controlling the page | |
| CN111859002B (en) | Interest point name generation method and device, electronic equipment and medium | |
| EP3234747A1 (en) | Gallery of videos set to audio timeline | |
| JP2016004571A5 (en) | ||
| CN104854539A (en) | Object searching method and device | |
| TW201719502A (en) | Object identification method of dynamic image and the creation of interactive video by automatic retrieval of target image being faster and more accurate in terms of recognition speed | |
| CN107040457B (en) | Instant messaging method and device | |
| WO2016029561A1 (en) | Display terminal-based data processing method | |
| CN103823858A (en) | Information processing method and information processing device | |
| US9659224B1 (en) | Merging optical character recognized text from frames of image data | |
| US20180182105A1 (en) | Method and system for sharing-oriented personalized route planning via a customizable multimedia approach | |
| CN113127058A (en) | Data annotation method, related device and computer program product | |
| RU2015111360A (en) | Method (options) and system (options) for processing a search query | |
| CN106484722A (en) | A kind of image procossing and searching method, device and system | |
| CN113869063A (en) | Data recommendation method and device, electronic equipment and storage medium | |
| CN107203573A (en) | A kind of information-pushing method and device based on focus information | |
| CN106549860B (en) | Information acquisition method and device | |
| CN107203572A (en) | A kind of method and device of picture searching | |
| CN117370590A (en) | An image retrieval method, device and system | |
| US20150186552A1 (en) | Retrieving indexed video and text content using context extracted from incoming images |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | 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: 20170308 |
|
| RJ01 | Rejection of invention patent application after publication |