Picture processing method, device, equipment and storage medium

文档序号:1504921 发布日期:2020-02-07 浏览:2次 中文

阅读说明:本技术 图片处理方法、装置、设备及存储介质 (Picture processing method, device, equipment and storage medium ) 是由 林立 于 2019-11-06 设计创作,主要内容包括:本申请实施例提供了一种图片处理方法、装置、设备及存储介质,其中,方法包括:接收图片搜索请求,所述图片搜索请求中包括搜索词;确定所述搜索词的词向量与图片标签集合中的标签的词向量之间的距离;其中,所述标签是用于标注图片内容的词汇;将距离满足条件的标签,确定为目标标签;将标签中包括所述目标标签的图片,确定为与所述图片搜索请求对应的搜索结果。通过本申请,能够准确的查找到用户想要搜索的图片,提高图片的搜索召回率。(The embodiment of the application provides a picture processing method, a picture processing device, picture processing equipment and a storage medium, wherein the method comprises the following steps: receiving an image search request, wherein the image search request comprises search words; determining the distance between the word vector of the search word and the word vector of the tag in the picture tag set; the label is used for marking words of picture contents; determining the label with the distance meeting the condition as a target label; and determining the picture with the label including the target label as a search result corresponding to the picture search request. By the method and the device, the picture which the user wants to search can be accurately found, and the search recall rate of the picture is improved.)

1. An image processing method, comprising:

receiving an image search request, wherein the image search request comprises search words;

determining the distance between the word vector of the search word and the word vector of the tag in the picture tag set; the label is used for marking words of picture contents;

determining the label with the distance meeting the condition as a target label;

and determining the picture with the label including the target label as a search result corresponding to the picture search request.

2. The method of claim 1, further comprising:

before receiving a picture search request, when the picture is acquired, identifying the picture and determining the content corresponding to the picture;

determining the category of the picture according to the content corresponding to the picture;

and determining the category of the picture as the label of the picture.

3. The method according to claim 1, wherein the determining the tag whose distance satisfies the condition as the target tag comprises:

determining a tag having a minimum distance as the target tag; alternatively, the first and second electrodes may be,

and determining the label with the distance smaller than the threshold value as the target label.

4. The method according to any one of claims 1 to 3, wherein the picture search request includes search information, the method further comprising:

after receiving a picture search request, converting the search information into text information;

performing word segmentation processing on the text information to obtain at least one word segmentation;

and performing word segmentation extraction in the at least one word segmentation according to the part of speech of the word segmentation to obtain the search word.

5. The method according to any one of claims 1 to 3, further comprising:

grouping the tags in the picture tag set to obtain at least one tag group;

correspondingly, after the target label is determined, acquiring a label group where the target label is located as a target label group;

and determining the picture of the tag, which comprises the tag in the target tag group, as a search result corresponding to the picture search request.

6. The method of claim 5, wherein the grouping tags in the picture tag set to obtain at least one tag group comprises:

determining a label distance between word vectors of every two labels in the picture label set;

dividing at least two tags with the tag distance within a preset range into the same tag group to obtain at least one tag group.

7. The method of claim 5, further comprising:

determining similarity between tags in each tag group;

sorting the labels in the corresponding label group according to the increasing or decreasing sequence of the similarity to obtain a sorting result;

correspondingly, the determining the picture of the tag, including the tag in the target tag group, as the search result corresponding to the picture search request includes:

according to the sorting result, sequentially determining a preset number of tags in the target tag group as selection tags;

and determining the picture with the tag including the selection tag as a search result corresponding to the picture search request.

8. A picture processing apparatus, comprising:

the receiving module is used for receiving an image searching request, and the image searching request comprises searching words;

the first determining module is used for determining the distance between the word vector of the search word and the word vector of the label in the picture label set; the label is used for marking words of picture contents;

the second determining module is used for determining the label with the distance meeting the condition as a target label;

and the third determining module is used for determining the picture with the label including the target label as a search result corresponding to the picture search request.

9. A picture processing device, comprising:

a memory for storing executable instructions; a processor for implementing the method of any one of claims 1 to 7 when executing executable instructions stored in the memory.

10. A storage medium having stored thereon executable instructions for causing a processor to perform the method of any one of claims 1 to 7 when executed.

34页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种对海量用户生产内容进行自动内容管控的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!