KR102193571B1 - Electronic device, image searching system and controlling method thereof - Google Patents

Electronic device, image searching system and controlling method thereof Download PDF

Info

Publication number
KR102193571B1
KR102193571B1 KR1020190036897A KR20190036897A KR102193571B1 KR 102193571 B1 KR102193571 B1 KR 102193571B1 KR 1020190036897 A KR1020190036897 A KR 1020190036897A KR 20190036897 A KR20190036897 A KR 20190036897A KR 102193571 B1 KR102193571 B1 KR 102193571B1
Authority
KR
South Korea
Prior art keywords
tag
similarity
vector
keyword
calculated
Prior art date
Application number
KR1020190036897A
Other languages
Korean (ko)
Other versions
KR20200114708A (en
Inventor
박혜영
현창훈
Original Assignee
경북대학교 산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 경북대학교 산학협력단 filed Critical 경북대학교 산학협력단
Priority to KR1020190036897A priority Critical patent/KR102193571B1/en
Publication of KR20200114708A publication Critical patent/KR20200114708A/en
Application granted granted Critical
Publication of KR102193571B1 publication Critical patent/KR102193571B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results

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

전자 장치, 이미지 검색 시스템 및 제어 방법이 개시된다. 전자 장치는 키워드를 입력받는 입력 인터페이스 및 입력된 키워드에 기초하여 후보 이미지를 검색하는 프로세서를 포함하고, 프로세서는 검색된 후보 이미지 중 하나의 후보 이미지로부터 태그 및 태그와 관련된 신뢰도를 추출하고, 입력된 키워드 및 추출된 태그를 벡터로 변환하며, 변환된 각각의 태그 벡터를 기준으로 변환된 키워드 벡터 및 변환된 태그 벡터 간의 적합도를 산출하고, 산출된 각각의 적합도에 추출된 신뢰도를 적용하여 하나의 후보 이미지에 대한 유사도를 산출하며, 후보 이미지 모두에 대해 산출된 유사도를 비교하여 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단한다.An electronic device, an image retrieval system, and a control method are disclosed. The electronic device includes an input interface for receiving a keyword and a processor for searching for a candidate image based on the input keyword, the processor extracting a tag and a reliability associated with the tag from one of the searched candidate images, and the input keyword And converting the extracted tag into a vector, calculating a goodness of fit between the converted keyword vector and the converted tag vector based on each converted tag vector, and applying the extracted reliability to each of the calculated goodness-of-fits to give one candidate image A degree of similarity to is calculated, and a candidate image with the highest similarity calculated by comparing the degree of similarity calculated for all candidate images is determined as a recommended image.

Description

전자 장치, 이미지 검색 시스템 및 제어 방법{ELECTRONIC DEVICE, IMAGE SEARCHING SYSTEM AND CONTROLLING METHOD THEREOF}Electronic device, image search system and control method {ELECTRONIC DEVICE, IMAGE SEARCHING SYSTEM AND CONTROLLING METHOD THEREOF}

본 개시는 전자 장치, 이미지 검색 시스템 및 제어 방법에 관한 것으로, 더욱 상세하게는, 키워드와 유사도가 높은 이미지를 식별하는 전자 장치, 이미지 검색 시스템 및 제어 방법에 관한 것이다.The present disclosure relates to an electronic device, an image retrieval system, and a control method, and more particularly, to an electronic device, an image retrieval system, and a control method for identifying an image having a high similarity to a keyword.

전자 기술의 발전에 따라 많은 사람들이 문서 작성 프로그램을 이용하여 보고서 등과 같이 다양한 문서를 작성하고 있다. 보고서 등의 문서는 주로 텍스트로 이루어지지만, 적절한 이미지의 삽입은 문서의 이해를 돕고 완성도를 높일 수 있다. 현대 사회에서 통신 기술의 발전에 따라 사용자는 많은 양의 데이터에 쉽게 접근할 수 있으므로 수많은 이미지 중에서 적절한 이미지를 선택하여 문서에 삽입할 수 있다. 그러나, 사용자가 키워드로 이미지 검색을 하는 경우 너무 많은 이미지가 검색되기 때문에 문서에 적절한 이미지를 선택하기 위해 너무 많은 시간을 소비해야 하는 문제점이 있다.With the development of electronic technology, many people use document creation programs to create various documents such as reports. Documents such as reports are mainly composed of text, but inserting appropriate images can help the understanding of the document and increase its completeness. With the development of communication technology in the modern society, users can easily access a large amount of data, so that an appropriate image can be selected from among numerous images and inserted into a document. However, when a user searches for images by keyword, too many images are searched, so there is a problem in that too much time has to be spent to select an appropriate image for a document.

이런 문제점을 해결하기 위해 검색된 이미지 후보들의 특성을 분석하여 재평가 하는 기술에 대한 연구가 진행되고 있다. 그러나, 기존의 연구는 검색 엔진의 성능을 높이기 위한 것이므로 유사한 이미지가 많이 검색될 수는 있지만, 사용자가 요구하는 적절한 이미지의 식별 능력에는 한계가 있었다.In order to solve this problem, research is being conducted on a technique to analyze and re-evaluate the characteristics of the searched image candidates. However, since the existing research aims to increase the performance of a search engine, many similar images can be searched, but there is a limitation in the ability to identify appropriate images required by users.

따라서, 키워드를 기준으로 사용자가 요구하는 가장 적절한 이미지를 식별할 수 있는 기술에 대한 필요성이 존재한다.Therefore, there is a need for a technology capable of identifying the most appropriate image required by a user based on a keyword.

본 개시는 상술한 문제점을 해결하기 위한 것으로, 본 개시의 목적은 키워드에 기초하여 이미지를 검색하고 검색된 이미지 중에서 키워드와 유사도가 가장 높은 이미지를 식별하는 전자 장치, 이미지 검색 시스템 및 제어 방법을 제공하는 것이다.The present disclosure is to solve the above problems, and an object of the present disclosure is to provide an electronic device, an image retrieval system, and a control method for retrieving an image based on a keyword and identifying an image having the highest similarity to the keyword among the retrieved images. will be.

이상과 같은 목적을 달성하기 위한 본 개시의 일 실시 예에 따르면, 전자 장치는 적어도 하나의 키워드를 입력받는 입력 인터페이스 및 상기 입력된 적어도 하나의 키워드에 기초하여 적어도 하나의 후보 이미지를 검색하는 프로세서를 포함하고, 상기 프로세서는 상기 검색된 적어도 하나의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하고, 상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하며, 변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하고, 상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하며, 상기 적어도 하나의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단할 수 있다.According to an embodiment of the present disclosure for achieving the above object, the electronic device includes an input interface for receiving at least one keyword and a processor for searching for at least one candidate image based on the input at least one keyword. Including, the processor extracts at least one tag and the reliability associated with the at least one tag from one candidate image among the searched at least one candidate image, the input at least one keyword and the extracted at least one Converts a tag to a vector, calculates a degree of fit between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector, and the extracted reliability for each calculated fit A similarity to the one candidate image may be calculated by applying, and a candidate image having the highest similarity may be determined as a recommended image by comparing the similarity calculated for all of the at least one candidate image.

그리고, 상기 프로세서는 제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 상기 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 상기 제n 태그 벡터에 대한 적합도를 산출하고, 상기 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.And, the processor calculates a first cosine distance between the n-th tag vector and the first keyword vector, calculates the m-th cosine distance between the n-th tag vector and the m-th keyword vector, and the calculated first cosine distance and the A goodness of fit for the nth tag vector is calculated by averaging the m cosine distance, and a similarity related to the nth tag is calculated by multiplying the calculated goodness of fit for the nth tag vector by a reliability related to the extracted nth tag, The similarity of the one candidate image may be calculated by summing the calculated similarity of each tag.

또는, 상기 프로세서는 상기 적어도 하나의 키워드 벡터에 기초하여 키워드 서브스페이스를 생성하고, 상기 적어도 하나의 태그 벡터 각각과 상기 생성된 키워드 서브스페이스 간의 태그 벡터 각도를 산출하여 각 태그 벡터에 대한 적합도를 산출하며, 상기 산출된 각각의 태그 벡터 각도에 각 태그와 관련된 신뢰도를 곱한 각각의 태그와 관련된 유사도를 산출하고, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.Alternatively, the processor generates a keyword subspace based on the at least one keyword vector, and calculates a fitness for each tag vector by calculating a tag vector angle between each of the at least one tag vector and the generated keyword subspace The similarity for each tag is calculated by multiplying the calculated angle of each tag vector by the reliability associated with each tag, and the similarity for the one candidate image is calculated by summing the calculated similarity for each tag. can do.

그리고, 상기 신뢰도는 상기 하나의 이미지에 포함된 상기 태그와 관련된 객체의 크기 또는 상기 태그와 관련된 객체의 일치도에 비례할 수 있다.In addition, the reliability may be proportional to a size of an object related to the tag included in the one image or a matching degree of an object related to the tag.

한편, 전자 장치는 추천 이미지 또는 산출된 유사도를 기준으로 유사도 내림차순으로 적어도 하나의 후보 이미지를 정렬하여 표시하는 디스플레이를 더 포함할 수 있다.Meanwhile, the electronic device may further include a display that arranges and displays at least one candidate image in descending order of similarity based on the recommended image or the calculated similarity.

그리고, 상기 프로세서는 상기 표시된 적어도 하나의 후보 이미지 중 하나의 이미지가 선택되는 경우, 상기 선택된 하나의 이미지를 텍스트 편집 소프트웨어에 삽입시킬 수 있다.In addition, when one image among the displayed at least one candidate image is selected, the processor may insert the selected one image into text editing software.

한편, 이상과 같은 목적을 달성하기 위한 본 개시의 일 실시 예에 따르면, 전자 장치의 제어 방법은 적어도 하나의 키워드를 입력받는 단계, 상기 입력된 적어도 하나의 키워드에 기초하여 적어도 하나의 후보 이미지를 검색하는 단계, 상기 검색된 적어도 하나의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하는 단계, 상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하는 단계, 변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하는 단계, 상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는 단계 및 상기 적어도 하나의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하는 단계를 포함할 수 있다.Meanwhile, according to an embodiment of the present disclosure for achieving the above object, a method of controlling an electronic device includes receiving at least one keyword, and selecting at least one candidate image based on the inputted at least one keyword. Searching, extracting at least one tag and a reliability associated with the at least one tag from one candidate image among the searched at least one candidate image, the input at least one keyword, and the extracted at least one tag Converting into a vector, calculating a fitness level between the converted at least one keyword vector and the converted at least one tag vector based on each of the converted tag vectors, and the extracted Computing a similarity for the one candidate image by applying a reliability, and determining a candidate image with the highest similarity as a recommended image by comparing the calculated similarity for all of the at least one candidate image. can do.

그리고, 상기 적합도를 산출하는 단계는 제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 상기 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 상기 제n 태그 벡터에 대한 적합도를 산출하고, 상기 유사도를 산출하는 단계는 상기 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.In the calculating of the fitness, the first cosine distance between the nth tag vector and the first keyword vector is calculated, the mth cosine distance between the nth tag vector and the mth keyword vector is calculated, and the calculated first Averaging the cosine distance and the m-th cosine distance to calculate a goodness-of-fit for the n-th tag vector, and calculating the similarity includes multiplying the calculated goodness-of-fit for the n-th tag vector by a reliability associated with the extracted n-th tag. A degree of similarity related to the nth tag may be calculated, and a degree of similarity for the one candidate image may be calculated by summing the calculated similarity degrees related to each tag.

또는, 상기 적합도를 산출하는 단계는 상기 적어도 하나의 키워드 벡터에 기초하여 키워드 서브스페이스를 생성하고, 상기 적어도 하나의 태그 벡터 각각과 상기 생성된 키워드 서브스페이스 간의 태그 벡터 각도를 산출하여 각 태그 벡터에 대한 적합도를 산출하며, 상기 유사도를 산출하는 단계는 상기 산출된 각각의 태그 벡터 각도에 각 태그와 관련된 신뢰도를 곱한 각각의 태그와 관련된 유사도를 산출하고, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.Alternatively, in the calculating of the fitness level, a keyword subspace is generated based on the at least one keyword vector, and a tag vector angle between each of the at least one tag vector and the generated keyword subspace is calculated, In the step of calculating the degree of suitability for each tag, and calculating the degree of similarity, the calculated degree of similarity related to each tag is calculated by multiplying the calculated angle of each tag vector by the reliability level associated with each tag, and the calculated degree of similarity related to each tag is summed. Thus, the degree of similarity to the one candidate image may be calculated.

그리고, 상기 신뢰도는 상기 하나의 이미지에 포함된 상기 태그와 관련된 객체의 크기 또는 상기 태그와 관련된 객체의 일치도에 비례할 수 있다.In addition, the reliability may be proportional to a size of an object related to the tag included in the one image or a matching degree of an object related to the tag.

한편, 전자 장치의 제어 방법은 상기 추천 이미지 또는 상기 산출된 유사도를 기준으로 유사도 내림차순으로 상기 적어도 하나의 후보 이미지를 정렬하여 표시하는 단계를 더 포함할 수 있다.Meanwhile, the method of controlling the electronic device may further include arranging and displaying the at least one candidate image in descending order of similarity based on the recommended image or the calculated similarity.

또한, 전자 장치의 제어 방법은 상기 표시된 적어도 하나의 후보 이미지 중 하나의 이미지가 선택되는 경우, 상기 선택된 하나의 이미지를 텍스트 편집 소프트웨어에 삽입시키는 단계를 더 포함할 수 있다.Also, the method of controlling the electronic device may further include inserting the selected one image into text editing software when one of the displayed at least one candidate image is selected.

한편, 이상과 같은 목적을 달성하기 위한 본 개시의 일 실시 예에 따르면, 이미지 검색 시스템은 적어도 하나의 키워드를 입력받고 서버로 전송하는 단말 장치 및 상기 단말 장치로부터 수신된 상기 적어도 하나의 키워드에 기초하여 적어도 하나의 후보 이미지를 검색하는 서버를 포함하고, 상기 서버는 상기 검색된 적어도 하나의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하고, 상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하며, 변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하고, 상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하며, 상기 적어도 하나의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하고, 상기 판단된 추천 이미지 또는 검색된 후보 이미지 중 적어도 하나의 이미지를 상기 단말 장치로 전송할 수 있다.On the other hand, according to an embodiment of the present disclosure for achieving the above object, the image search system is based on a terminal device that receives at least one keyword and transmits it to a server, and the at least one keyword received from the terminal device. And a server that searches for at least one candidate image, wherein the server extracts at least one tag and a reliability associated with the at least one tag from one candidate image among the searched at least one candidate image, and the input Convert at least one keyword and the extracted at least one tag into a vector, and calculate a suitability between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector, The calculated similarity of the one candidate image is calculated by applying the extracted reliability to each calculated goodness of fit, and the calculated similarity is the highest candidate image by comparing the calculated similarity of all of the at least one candidate image Is determined as a recommended image, and at least one image of the determined recommended image or the searched candidate image may be transmitted to the terminal device.

이상 설명한 바와 같이, 본 개시의 다양한 실시 예에 따르면, 전자 장치, 이미지 검색 시스템 및 제어 방법은 이미지를 검색하고 검색된 이미지 중에서 키워드와 유사도가 가장 높은 이미지를 식별할 수 있다.As described above, according to various embodiments of the present disclosure, the electronic device, the image search system, and the control method may search for an image and identify an image having the highest similarity to a keyword among the searched images.

그리고, 전자 장치, 이미지 검색 시스템 및 제어 방법은 키워드와 유사도가 가장 높은 이미지를 자동으로 선택하여 문서 내에 삽입할 수 있다.In addition, the electronic device, the image search system, and the control method may automatically select an image having the highest similarity with a keyword and insert it into a document.

본 발명의 효과들은 이상에서 언급한 효과들로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해 될 수 있을 것이다.The effects of the present invention are not limited to the above-mentioned effects, and other effects that are not mentioned will be clearly understood by those skilled in the art from the following description.

도 1은 본 개시의 일 실시 예에 따른 전자 장치의 블록도이다.
도 2는 본 개시의 일 실시 예에 따른 추천 이미지를 판단하는 과정을 설명하는 도면이다.
도 3은 본 개시의 일 실시 예에 따른 키워드와 이미지 간의 유사도를 판단하는 과정을 설명하는 도면이다.
도 4는 본 개시의 다른 실시 예에 따른 키워드와 이미지 간의 유사도를 판단하는 과정을 설명하는 도면이다.
도 5는 본 개시의 일 실시 예에 따른 후보 이미지의 유사도 판단 결과를 설명하는 도면이다.
도 6은 본 개시의 일 실시 예에 따른 유사도에 따라 후보 이미지가 표시된 전자 장치를 설명하는 도면이다.
도 7은 본 개시의 일 실시 예에 따른 문서에 삽입된 선택 이미지를 설명하는 도면이다.
도 8은 본 개시의 일 실시 예에 따른 이미지 검색 시스템을 설명하는 도면이다.
도 9는 본 개시의 일 실시 예에 따른 전자 장치 제어 방법의 흐름도이다.
1 is a block diagram of an electronic device according to an embodiment of the present disclosure.
2 is a diagram illustrating a process of determining a recommended image according to an embodiment of the present disclosure.
3 is a diagram illustrating a process of determining a similarity between a keyword and an image according to an embodiment of the present disclosure.
4 is a diagram illustrating a process of determining a similarity between a keyword and an image according to another embodiment of the present disclosure.
5 is a diagram illustrating a result of determining a similarity of a candidate image according to an embodiment of the present disclosure.
6 is a diagram illustrating an electronic device in which a candidate image is displayed according to a degree of similarity according to an embodiment of the present disclosure.
7 is a diagram illustrating a selection image inserted in a document according to an embodiment of the present disclosure.
8 is a diagram illustrating an image search system according to an exemplary embodiment of the present disclosure.
9 is a flowchart of a method of controlling an electronic device according to an embodiment of the present disclosure.

이하에서는 첨부된 도면을 참조하여 다양한 실시 예를 보다 상세하게 설명한다. 본 명세서에 기재된 실시 예는 다양하게 변형될 수 있다. 특정한 실시 예가 도면에서 묘사되고 상세한 설명에서 자세하게 설명될 수 있다. 그러나, 첨부된 도면에 개시된 특정한 실시 예는 다양한 실시 예를 쉽게 이해하도록 하기 위한 것일 뿐이다. 따라서, 첨부된 도면에 개시된 특정 실시 예에 의해 기술적 사상이 제한되는 것은 아니며, 발명의 사상 및 기술 범위에 포함되는 모든 균등물 또는 대체물을 포함하는 것으로 이해되어야 한다.Hereinafter, various embodiments will be described in more detail with reference to the accompanying drawings. The embodiments described herein may be variously modified. Certain embodiments may be depicted in the drawings and described in detail in the detailed description. However, specific embodiments disclosed in the accompanying drawings are only intended to facilitate understanding of various embodiments. Therefore, the technical idea is not limited by the specific embodiments disclosed in the accompanying drawings, and it should be understood to include all equivalents or substitutes included in the spirit and scope of the invention.

제1, 제2 등과 같이 서수를 포함하는 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 이러한 구성요소들은 상술한 용어에 의해 한정되지는 않는다. 상술한 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. Terms including ordinal numbers such as first and second may be used to describe various elements, but these elements are not limited by the above-described terms. The above-described terms are used only for the purpose of distinguishing one component from other components.

본 명세서에서, "포함한다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. 어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.In the present specification, terms such as "comprises" or "have" are intended to designate the presence of features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, but one or more other features. It is to be understood that the presence or addition of elements or numbers, steps, actions, components, parts, or combinations thereof, does not preclude in advance. When a component is referred to as being "connected" or "connected" to another component, it is understood that it may be directly connected or connected to the other component, but other components may exist in the middle. Should be. On the other hand, when a component is referred to as being "directly connected" or "directly connected" to another component, it should be understood that there is no other component in the middle.

한편, 본 명세서에서 사용되는 구성요소에 대한 "모듈" 또는 "부"는 적어도 하나의 기능 또는 동작을 수행한다. 그리고, "모듈" 또는 "부"는 하드웨어, 소프트웨어 또는 하드웨어와 소프트웨어의 조합에 의해 기능 또는 동작을 수행할 수 있다. 또한, 특정 하드웨어에서 수행되어야 하거나 적어도 하나의 제어부에서 수행되는 "모듈" 또는 "부"를 제외한 복수의 "모듈들" 또는 복수의 "부들"은 적어도 하나의 모듈로 통합될 수도 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다.Meanwhile, a "module" or "unit" for a component used in the present specification performs at least one function or operation. And, the "module" or "unit" may perform a function or operation by hardware, software, or a combination of hardware and software. In addition, a plurality of "modules" or a plurality of "units" excluding "module" or "unit" that must be performed in specific hardware or performed by at least one control unit may be integrated into at least one module. Singular expressions include plural expressions unless the context clearly indicates otherwise.

본 발명의 설명에 있어서 각 단계의 순서는 선행 단계가 논리적 및 시간적으로 반드시 후행 단계에 앞서서 수행되어야 하는 경우가 아니라면 각 단계의 순서는 비제한적으로 이해되어야 한다. 즉, 위와 같은 예외적인 경우를 제외하고는 후행 단계로 설명된 과정이 선행단계로 설명된 과정보다 앞서서 수행되더라도 발명의 본질에는 영향이 없으며 권리범위 역시 단계의 순서에 관계없이 정의되어야 한다. 그리고 본 명세서에서 "A 또는 B"라고 기재한 것은 A와 B 중 어느 하나를 선택적으로 가리키는 것뿐만 아니라 A와 B 모두를 포함하는 것도 의미하는 것으로 정의된다. 또한, 본 명세서에서 "포함"이라는 용어는 포함하는 것으로 나열된 요소 이외에 추가로 다른 구성요소를 더 포함하는 것도 포괄하는 의미를 가진다.In the description of the present invention, the order of each step should be understood without limitation, unless the preceding step must be performed logically and temporally prior to the subsequent step. That is, except for the above exceptional cases, even if a process described as a subsequent step is performed prior to a process described as a preceding step, the essence of the invention is not affected, and the scope of rights should be defined regardless of the order of the steps. And in the present specification, "A or B" is defined to mean not only selectively indicating any one of A and B, but also including both A and B. In addition, in the present specification, the term "comprising" has the meaning of encompassing further including other components in addition to the elements listed as including.

본 명세서에서 수행되는 정보(데이터) 전송 과정은 필요에 따라서 암호화/복호화가 적용될 수 있으며, 본 명세서 및 특허청구범위에서 정보(데이터) 전송 과정을 설명하는 표현은 별도로 언급되지 않더라도 모두 암호화/복호화하는 경우도 포함하는 것으로 해석되어야 한다. 본 명세서에서 "A로부터 B로 전송(전달)" 또는 "A가 B로부터 수신"과 같은 형태의 표현은 중간에 다른 매개체가 포함되어 전송(전달) 또는 수신되는 것도 포함하며, 반드시 A로부터 B까지 직접 전송(전달) 또는 수신되는 것만을 표현하는 것은 아니다. Encryption/decryption may be applied to the information (data) transmission process performed in this specification as needed, and expressions describing the information (data) transmission process in this specification and claims are all encrypted/decrypted, even if not stated otherwise. It should be interpreted as including cases. In this specification, expressions in the form of "transmitted from A to B (transfer)" or "received from A by B" include those transmitted (transmitted) or received with another medium in the middle, and must be from A to B It does not just express what is directly transmitted (delivered) or received.

본 명세서에서는 본 발명의 설명에 필요한 필수적인 구성요소만을 설명하며, 본 발명의 본질과 관계가 없는 구성요소는 언급하지 아니한다. 그리고 언급되는 구성요소만을 포함하는 배타적인 의미로 해석되어서는 아니되며 다른 구성요소도 포함할 수 있는 비배타적인 의미로 해석되어야 한다.In this specification, only essential components necessary for the description of the present invention are described, and components not related to the essence of the present invention are not mentioned. In addition, it should not be interpreted as an exclusive meaning including only the mentioned components, but should be interpreted as a non-exclusive meaning that may also include other components.

그 밖에도, 본 발명을 설명함에 있어서, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우, 그에 대한 상세한 설명은 축약하거나 생략한다. 한편, 각 실시 예는 독립적으로 구현되거나 동작될 수도 있지만, 각 실시 예는 조합되어 구현되거나 동작될 수도 있다.In addition, in describing the present invention, when it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be abbreviated or omitted. Meanwhile, each embodiment may be implemented or operated independently, but each embodiment may be implemented or operated in combination.

도 1은 본 개시의 일 실시 예에 따른 전자 장치의 블록도이다.1 is a block diagram of an electronic device according to an embodiment of the present disclosure.

도 1을 참조하면, 전자 장치(100)는 입력 인터페이스(110) 및 프로세서(120)를 포함할 수 있다. 예를 들어, 전자 장치(100)는 스마트폰, 노트북 컴퓨터, 태블릿 PC, 데스크탑 컴퓨터, 스마트 TV, 키오스크 등을 포함할 수 있다.Referring to FIG. 1, the electronic device 100 may include an input interface 110 and a processor 120. For example, the electronic device 100 may include a smart phone, a notebook computer, a tablet PC, a desktop computer, a smart TV, a kiosk, and the like.

입력 인터페이스(110)는 키워드를 입력받을 수 있다. 입력 인터페이스(110)는 하나의 키워드를 입력받을 수도 있고, 복수의 키워드를 입력받을 수도 있다. 또한, 입력 인터페이스(110)는 이미지를 검색할 키워드만을 입력받을 수도 있고, 키워드가 포함된 어구, 문장 또는 문단으로 입력받을 수도 있다. 만일, 입력 인터페이스(110)가 키워드를 포함하는 어구, 문장 또는 문단으로 입력받는 경우 프로세서(120)는 입력된 어구, 문장 또는 문단으로부터 품사 등을 기준으로 키워드를 추출할 수 있다.The input interface 110 may receive a keyword. The input interface 110 may receive one keyword or a plurality of keywords. In addition, the input interface 110 may receive only a keyword to search for an image, or may receive input as a phrase, sentence, or paragraph including the keyword. If the input interface 110 receives input as a phrase, sentence, or paragraph including a keyword, the processor 120 may extract the keyword from the input phrase, sentence, or paragraph based on parts of speech.

프로세서(120)는 입력된 키워드에 기초하여 적어도 하나의 후보 이미지를 검색할 수 있다. 예를 들어, 전자 장치(100)는 메모리(미도시)를 포함하고, 프로세서(120)는 메모리에 저장된 이미지 중에서 키워드와 관련된 후보 이미지를 검색할 수 있다. 또는, 전자 장치(100)는 통신 인터페이스(미도시)를 포함하고, 프로세서(120)는 통신 인터페이스를 통해 외부의 서버 등에 저장된 이미지 중에서 키워드와 관련된 후보 이미지를 검색하도록 통신 인터페이스를 제어할 수도 있다. 본 개시에서 프로세서(120)가 후보 이미지를 검색한다는 것은 메모리에 저장된 이미지 중에서 키워드와 관련된 후보 이미지를 검색하는 경우와 통신 인터페이스를 통해 외부의 서버 등에 저장된 이미지 중에서 키워드와 관련된 후보 이미지를 검색하는 경우를 모두 포함하는 의미이다.The processor 120 may search for at least one candidate image based on the input keyword. For example, the electronic device 100 may include a memory (not shown), and the processor 120 may search for a candidate image related to a keyword from among images stored in the memory. Alternatively, the electronic device 100 may include a communication interface (not shown), and the processor 120 may control the communication interface to search for a candidate image related to a keyword among images stored in an external server or the like through the communication interface. In the present disclosure, the processor 120 searching for a candidate image refers to a case of searching for a candidate image related to a keyword from among images stored in a memory and a case of searching for a candidate image related to a keyword from among images stored in an external server or the like through a communication interface. It means all inclusive.

그리고, 프로세서(120)에 의해 검색된 후보 이미지는 하나일 수 있고 복수일 수도 있다. 프로세서(120)는 검색된 하나의 후보 이미지에서 태그 및 태그와 관련된 신뢰도를 추출할 수 있다. 태그는 후보 이미지에 포함된 객체에 대한 정보를 의미할 수 있다. 그리고, 신뢰도는 후보 이미지에 포함된 객체의 신뢰 수준을 의미할 수 있다. 예를 들어, 후보 이미지에 상대적으로 큰 영역을 차지하는 A 객체와 상대적으로 작은 영역을 차지하는 B 객체가 포함되어 있다면, A 객체의 신뢰도는 B 객체의 신뢰도보다 높을 수 있다. 일 실시 예로서, A 객체의 신뢰도는 0.8, B 객체의 신뢰도는 0.2와 같이 수치로 추출될 수 있다. 하나의 후보 이미지에서 태그는 하나 이상 복수 개가 추출될 수 있다.In addition, the number of candidate images searched by the processor 120 may be one or a plurality. The processor 120 may extract the tag and the reliability associated with the tag from one searched candidate image. The tag may mean information on an object included in the candidate image. In addition, the reliability level may mean the level of reliability of an object included in the candidate image. For example, if an object A occupying a relatively large area and an object B occupying a relatively small area are included in the candidate image, the reliability of object A may be higher than that of object B. As an example, the reliability of object A may be 0.8, and the reliability of object B may be extracted as a numerical value. One or more tags may be extracted from one candidate image.

프로세서(120)는 각각의 키워드 및 태그를 벡터로 변환할 수 있다. 키워드와 태그를 벡터로 변환하는 과정은 단어 임베딩 과정이라고 할 수 있고, 단어 임베딩 과정은 유사도를 산출하기 위한 하나의 과정이다.The processor 120 may convert each keyword and tag into a vector. The process of converting keywords and tags into vectors can be referred to as a word embedding process, and the word embedding process is a process for calculating similarity.

프로세서(120)는 변환된 하나의 태그 벡터를 기준으로 하나 이상의 키워드 벡터 세트 간의 적합도를 산출할 수 있다. 적합도는 하나의 태그 벡터와 키워드 벡터 세트 간의 유사도를 의미할 수 있다.추출된 태그가 복수 개인 경우, 변환된 태그 벡터도 복수 개이다. 적합도는 모든 태그 벡터에 대해 산출될 수 있다.The processor 120 may calculate a suitability between one or more keyword vector sets based on the converted one tag vector. The degree of suitability may mean a degree of similarity between one tag vector and a set of keyword vectors. When there are a plurality of extracted tags, there are also a plurality of converted tag vectors. Goodness of fit can be calculated for all tag vectors.

프로세서(120)는 각각의 태그 벡터를 기준으로 적합도를 산출한 후, 각 태그 벡터에 대해 산출된 적합도와 각 태그 벡터에 대응되는 신뢰도를 적용하고 신뢰도가 적용된 적합도를 합산하여 키워드와 하나의 후보 이미지 간의 유사도를 산출할 수 있다. 유사도를 산출하는 구체적인 과정을 후술한다. 만일, 후보 이미지가 복수 개인 경우, 프로세서(120)는 모든 후보 이미지에 대해 상술한 과정을 반복할 수 있다.The processor 120 calculates a fitness level based on each tag vector, then applies the calculated fitness level for each tag vector and the reliability level corresponding to each tag vector, and adds the fitness level to which the reliability level is applied, and adds a keyword and one candidate image. The degree of similarity between the livers can be calculated. A specific process of calculating the similarity will be described later. If there are a plurality of candidate images, the processor 120 may repeat the above-described process for all candidate images.

프로세서(120)는 각각의 후보 이미지에 대해 산출된 유사도를 비교하고, 산출된 유사도가 가능 높은 후보 이미지를 추천 이미지로 판단할 수 있다.The processor 120 may compare the calculated similarity for each of the candidate images, and determine a candidate image with a high possible similarity as the recommended image.

아래에서는 추천 이미지를 판단하는 구체적인 과정을 설명한다.A detailed process of determining a recommended image will be described below.

도 2는 본 개시의 일 실시 예에 따른 추천 이미지를 판단하는 과정을 설명하는 도면이다.2 is a diagram illustrating a process of determining a recommended image according to an embodiment of the present disclosure.

도 2를 참조하면, 전자 장치는 키워드(10)를 입력받을 수 있다. 예를 들어, 키워드(10)는 사용자로부터 직접 입력받을 수 있다. 또는, 키워드(10)는 어구, 문장 또는 문단으로부터 자동으로 추출될 수도 있다. 전자 장치는 하나 이상 복수 개의 키워드를 입력받을 수 있다. 전자 장치는 입력된 키워드(10)와 관련된 후보 이미지(20)를 검색할 수 있다. 예를 들어, 전자 장치는 검색 엔진을 이용하여 입력된 키워드(10)와 관련된 후보 이미지(20)를 검색할 수 있고, 검색되는 후보 이미지(20)는 하나 이상 복수 개일 수 있다.Referring to FIG. 2, the electronic device may receive a keyword 10. For example, the keyword 10 may be directly input from the user. Alternatively, the keyword 10 may be automatically extracted from a phrase, sentence, or paragraph. The electronic device may receive one or more keywords. The electronic device may search for a candidate image 20 related to the input keyword 10. For example, the electronic device may search for a candidate image 20 related to the input keyword 10 using a search engine, and there may be one or more searched candidate images 20.

전자 장치는 검색된 후보 이미지(20) 각각에 대해 유사도를 산출할 수 있다. 아래에서는 하나의 후보 이미지의 유사도를 산출하는 과정을 설명한다.The electronic device may calculate a similarity for each of the searched candidate images 20. Below, a process of calculating the similarity of one candidate image will be described.

전자 장치는 후보 이미지(20)로부터 태그(30) 및 신뢰도를 추출할 수 있다. 예를 들어, 전자 장치는 객체 검출 및 인식 모듈을 이용하여 태그(30) 및 신뢰도를 추출할 수 있고, 추가적으로 이미지의 캡션정보로부터 파이썬 형태소 분석 모듈을 이용하여 태그(30)를 추가적으로 추출할 수 있다. 추출되는 태그(30)는 하나 이상 복수 개일 수 있고, 신뢰도는 추출된 각 태그(30)에 대응되는 값일 수 있다.The electronic device may extract the tag 30 and reliability from the candidate image 20. For example, the electronic device may extract the tag 30 and reliability using an object detection and recognition module, and additionally may additionally extract the tag 30 from the caption information of the image using a Python morpheme analysis module. . One or more tags 30 to be extracted may be plural, and the reliability may be a value corresponding to each of the extracted tags 30.

전자 장치는 키워드와 후보 이미지 간의 유사도를 산출하기 위해 벡터 형태로 표현하는 단어 임베딩 과정을 수행할 수 있다. 즉, 전자 장치는 입력된 키워드(10)를 키워드 벡터(40-1)로 변환하고, 추출된 태그(30)를 태그 벡터(40-2)로 변환할 수 있다. 예를 들어, 단어 임베딩 과정에는 Word2vec 방법이 사용될 수 있다.The electronic device may perform a word embedding process expressed in a vector form to calculate a similarity between a keyword and a candidate image. That is, the electronic device may convert the input keyword 10 into the keyword vector 40-1 and convert the extracted tag 30 into the tag vector 40-2. For example, the Word2vec method may be used for the word embedding process.

전자 장치는 키워드 벡터(40-1), 태그 벡터(40-2), 신뢰도에 기초하여 후보 이미지의 유사도를 산출할 수 있다. 예를 들어, 전자 장치는 가중 코사인 거리(weighted cosine distance) 방식 또는 가중 서브공간 거리(weighted subspace distance) 방식을 이용하여 후보 이미지의 유사도를 산출할 수 있다. 구체적인 가중 코사인 거리 방식 및 가중 서브공간 거리 방식은 후술한다.The electronic device may calculate the similarity of the candidate image based on the keyword vector 40-1, the tag vector 40-2, and the reliability. For example, the electronic device may calculate the similarity of the candidate image using a weighted cosine distance method or a weighted subspace distance method. A specific weighted cosine distance method and a weighted subspace distance method will be described later.

상술한 과정을 통해 전자 장치는 하나의 후보 이미지에 대한 유사도를 산출할 수 있다. 복수의 후보 이미지가 존재하는 경우, 전자 장치는 다른 후보 이미지 각각에 대해서도 상술한 과정을 반복하여 각각의 후보 이미지에 대한 유사도를 산출할 수 있다.Through the above-described process, the electronic device may calculate a degree of similarity for one candidate image. When a plurality of candidate images exist, the electronic device may calculate a similarity for each candidate image by repeating the above-described process for each of the other candidate images.

복수 개의 후보 이미지 각각에 대해 유사도가 산출된 경우, 전자 장치는 유사도의 값에 기초하여 후보 이미지를 내림차순으로 정렬(50)할 수 있다. 그리고, 전자 장치는 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단할 수 있다.When a similarity degree is calculated for each of the plurality of candidate images, the electronic device may sort 50 the candidate images in descending order based on the similarity value. In addition, the electronic device may determine the candidate image having the highest similarity as the recommended image.

전자 장치는 상술한 과정을 통해 입력된 키워드와 유사도가 가장 높은 이미지를 판단할 수 있다. 아래에서는 유사도를 판단하는 가중 코사인 거리 방식 및 가중 서브공간 거리 방식에 대해 설명한다.The electronic device may determine an image having the highest similarity to the keyword input through the above-described process. Hereinafter, a weighted cosine distance method and a weighted subspace distance method for determining similarity will be described.

도 3은 본 개시의 일 실시 예에 따른 키워드와 이미지 간의 유사도를 판단하는 과정을 설명하는 도면이다.3 is a diagram illustrating a process of determining a similarity between a keyword and an image according to an embodiment of the present disclosure.

도 3을 참조하면, 가중 코사인 거리 방식으로 후보 이미지의 유사도를 판단하는 과정이 도시되어 있다. 전자 장치는 입력된 키워드를 키워드 벡터(w1, w2, ..., wM)로 변환하고, 검색된 후보 이미지에서 태그 및 태그에 대응되는 신뢰도(a1, a2, ..., aN)를 추출하며, 추출된 태그를 태그 벡터(v1, v2, ..., vN)로 변환할 수 있다.Referring to FIG. 3, a process of determining the similarity of a candidate image using a weighted cosine distance method is illustrated. The electronic device converts the input keyword into keyword vectors (w1, w2, ..., wM), and extracts the tag and the reliability (a1, a2, ..., aN) corresponding to the tag from the searched candidate image, The extracted tags can be converted into tag vectors (v1, v2, ..., vN).

전자 장치는 각각의 키워드 벡터와 태그 벡터 간의 코사인 거리를 산출할 수 있다. 예를 들어, 전자 장치는 첫번째 키워드 벡터(w1)와 첫번째 태그 벡터(v1) 간의 코사인 거리를 산출하고, 두번째 키워드 벡터(w2)와 첫번째 태그 벡터(v1) 간의 코사인 거리를 산출하며, M번째 키워드 벡터(wM)와 첫번째 태그 벡터(v1) 간의 코사인 거리를 산출할 수 있다. 즉, 전자 장치는 i번째 키워드 벡터(wi)와 j번째 태그 벡터(vj) 간의 코사인 거리를 산출할 수 있다.The electronic device may calculate a cosine distance between each keyword vector and the tag vector. For example, the electronic device calculates the cosine distance between the first keyword vector (w1) and the first tag vector (v1), calculates the cosine distance between the second keyword vector (w2) and the first tag vector (v1), and calculates the M-th keyword The cosine distance between the vector wM and the first tag vector v1 may be calculated. That is, the electronic device may calculate a cosine distance between the i-th keyword vector (wi) and the j-th tag vector (vj).

전자 장치는 태그 벡터를 기준으로 키워드 벡터와 태그 벡터 간의 적합도(μ)를 산출할 수 있다. 적합도는 태그 벡터를 기준으로 산출된 모든 키워드 벡터와의 코사인 거리를 평균하여 산출될 수 있다. 즉, 첫번째 적합도(μ1)는 첫번째 키워드 벡터(w1)와 첫번째 태그 벡터(v1) 간의 코사인 거리부터 M번째 키워드 벡터(wM)와 첫번째 태그 벡터(v1) 간의 코사인 거리를 모두 합산한 후 평균한 값으로 산출될 수 있다.The electronic device may calculate a suitability (μ) between the keyword vector and the tag vector based on the tag vector. The fitness may be calculated by averaging the cosine distances of all keyword vectors calculated based on the tag vector. That is, the first goodness-of-fit (μ1) is a value obtained by summing all the cosine distances between the first keyword vector (w1) and the first tag vector (v1), and the cosine distance between the M-th keyword vector (wM) and the first tag vector (v1) Can be calculated as

전자 장치는 모든 태그 벡터에 대해 상술한 과정을 반복하여 첫번째 적합도(μ1)부터 N번째 적합도(μN)를 산출할 수 있다. 전자 장치는 산출된 각 적합도에 각 태그벡터에 대응되는 신뢰도를 곱한 후 합산하여 후보 이미지에 대한 유사도를 산출할 수 있다. 신뢰도는 산출된 적합도에 가중치로 적용될 수 있다. 따라서, 전자 장치는 후보 이미지에 대한 가중치가 적용된 유사도를 산출함으로써 키워드와 후보 이미지의 유사도를 보다 정확하게 산출할 수 있고, 복수의 후보 이미지 중에서 입력된 키워드와 일치하는 이미지 또는 사용자가 요구하는 가장 적절한 이미지를 식별할 수 있다.The electronic device may repeat the above-described process for all tag vectors to calculate the N-th suitability (μN) from the first suitability (μ1). The electronic device may calculate the similarity of the candidate image by multiplying the calculated fitness by the reliability corresponding to each tag vector and then adding them. Reliability can be applied as a weight to the calculated fitness. Accordingly, the electronic device can more accurately calculate the similarity between the keyword and the candidate image by calculating the similarity to which the weight is applied to the candidate image, and the image matching the input keyword from among a plurality of candidate images or the most appropriate image requested by the user. Can be identified.

도 4는 본 개시의 다른 실시 예에 따른 키워드와 이미지 간의 유사도를 판단하는 과정을 설명하는 도면이다.4 is a diagram illustrating a process of determining a similarity between a keyword and an image according to another embodiment of the present disclosure.

도 4를 참조하면, 가중 서브공간 거리 방식으로 후보 이미지의 유사도를 판단하는 과정이 도시되어 있다. 전자 장치는 입력된 키워드를 키워드 벡터(w1, w2, ..., wM)로 변환하고, 검색된 후보 이미지에서 태그 및 태그에 대응되는 신뢰도(a1, a2, ..., aN)를 추출하며, 추출된 태그를 태그 벡터(v1, v2, ..., vN)로 변환할 수 있다.Referring to FIG. 4, a process of determining the similarity of a candidate image using a weighted subspace distance method is illustrated. The electronic device converts the input keyword into keyword vectors (w1, w2, ..., wM), and extracts the tag and the reliability (a1, a2, ..., aN) corresponding to the tag from the searched candidate image, The extracted tags can be converted into tag vectors (v1, v2, ..., vN).

전자 장치는 변환된 키워드 벡터(w1, w2, ..., wM)가 이루는 서브공간을 생성할 수 있다. 그리고, 전자 장치는 각 태그 벡터(v1, v2, ..., vN)에 대해 태그 벡터와 서브공간 간의 각도(φ)를 산출할 수 있다. 예를 들어, 전자 장치는 첫번째 태그 벡터(v1)와 서브공간 간의 첫번째 각도(φ1)를 산출할 수 있고, N번째 태그 벡터(v1)와 서브공간 간의 N번째 각도(φN)를 산출할 수 있다. 산출된 태그 벡터와 서브공간 간의 각도(φ)는 키워드 벡터와 태그 벡터 간의 적합도일 수 있다.The electronic device may generate a subspace formed by the converted keyword vectors w1, w2, ..., wM. In addition, the electronic device may calculate an angle (φ) between the tag vector and the subspace for each tag vector (v1, v2, ..., vN). For example, the electronic device may calculate the first angle (φ1) between the first tag vector (v1) and the subspace, and may calculate the Nth angle (φN) between the Nth tag vector (v1) and the subspace. . The calculated angle φ between the tag vector and the subspace may be a degree of fitness between the keyword vector and the tag vector.

전자 장치는 산출된 각도(또는, 적합도)에 각 태그벡터에 대응되는 신뢰도를 곱한 후 합산하여 후보 이미지에 대한 유사도를 산출할 수 있다. 상술한 바와 같이, 신뢰도는 산출된 적합도에 가중치로 적용될 수 있다. 따라서, 전자 장치는 후보 이미지에 대한 가중치가 적용된 유사도를 산출함으로써 키워드와 후보 이미지의 유사도를 보다 정확하게 산출할 수 있고, 복수의 후보 이미지 중에서 입력된 키워드와 일치하는 이미지 또는 사용자가 요구하는 가장 적절한 이미지를 식별할 수 있다. The electronic device may calculate the similarity of the candidate image by multiplying the calculated angle (or fitness) by the reliability corresponding to each tag vector and then adding them. As described above, the reliability may be applied as a weight to the calculated fitness. Accordingly, the electronic device can more accurately calculate the similarity between the keyword and the candidate image by calculating the similarity to which the weight is applied to the candidate image, and the image matching the input keyword from among a plurality of candidate images or the most appropriate image requested by the user. Can be identified.

또한, 도 4에서 설명한 가중 서브공간 거리 방식은 복수의 키워드 간의 상호 관계를 고려하여 유사도를 산출할 수 있는 장점이 있다. 예를 들어, 'GALAXY'와 'NOTE'는 개별적으로 전혀 상관없는 단어이지만, 두 단어가 연결되어 특정 제품을 의미할 수 있다. 가중 서브공간 거리 방식은 키워드 벡터(w1, w2, ..., wM)가 이루는 서브공간과 태그 벡터 간의 각도에 기초하여 유사도를 산출하기 때문에 복수의 키워드 간의 상호 관계를 고려한 유사도를 산출할 수 있다.In addition, the weighted subspace distance method described with reference to FIG. 4 has an advantage of calculating a similarity in consideration of mutual relationships between a plurality of keywords. For example,'GALAXY' and'NOTE' are individually completely irrelevant words, but the two words can be connected to mean a specific product. Since the weighted subspace distance method calculates the similarity based on the angle between the subspace formed by the keyword vectors (w1, w2, ..., wM) and the tag vector, it is possible to calculate the similarity in consideration of the mutual relationship between a plurality of keywords. .

도 5는 본 개시의 일 실시 예에 따른 후보 이미지의 유사도 판단 결과를 설명하는 도면이다.5 is a diagram illustrating a result of determining a similarity of a candidate image according to an embodiment of the present disclosure.

도 5를 참조하면 일 실시 예로서 {NASA, sun, touch}의 세 개의 키워드에 대해 후보 이미지의 유사도 판단 결과가 도시되어 있다. 전자 장치는 입력된 세 개의 키워드에 대해 10개의 후보 이미지를 검색하였다. 그리고, 전자 장치는 10개의 후보 이미지 각각에 대한 유사도를 판단하였다. A는 API 태그만 사용했을 때 유사도 결과이고, B는 캡션 태그만 사용했을 때 유사도 결과이며, C는 API 태그 및 캡션 태그를 모두 사용했을 때 유사도 결과이다. D는 피험자 평가로 얻은 각 이민지에 대한 유사도의 평균값이다. 도 5는 API 태그와 캡션 태그를 모두 사용하여 본 개시의 방식에 따라 유사도를 판단하는 경우 피험자의 주관적 판단의 평균과 매우 근접한 결과를 얻을 수 있다는 결과를 나타낸다.Referring to FIG. 5, as an embodiment, a result of determining the similarity of a candidate image for three keywords {NASA, sun, touch} is shown. The electronic device searched for 10 candidate images for the input three keywords. In addition, the electronic device determined the degree of similarity for each of the 10 candidate images. A is the similarity result when only the API tag is used, B is the similarity result when only the caption tag is used, and C is the similarity result when both the API tag and the caption tag are used. D is the average value of similarity for each immigration site obtained by subject evaluation. FIG. 5 shows a result that when the similarity is determined according to the method of the present disclosure using both the API tag and the caption tag, a result that is very close to the average of the subject's subjective judgment can be obtained.

한편, 전자 장치는 판단된 추천 이미지 또는 복수의 후보 이미지를 유사도에 기초하여 표시할 수 있다.Meanwhile, the electronic device may display the determined recommended image or a plurality of candidate images based on the similarity.

도 6은 본 개시의 일 실시 예에 따른 유사도에 따라 후보 이미지가 표시된 전자 장치를 설명하는 도면이다.6 is a diagram illustrating an electronic device in which a candidate image is displayed according to a degree of similarity according to an embodiment of the present disclosure.

도 6을 참조하면, 후보 이미지와 유사도가 표시된 전자 장치(100)가 도시되어 있다. 전자 장치(100)는 후보 이미지 각각에 대한 유사도를 판단하고 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단할 수 있다. 그리고, 전자 장치(100)는 디스플레이를 포함하여 판단된 추천 이미지(11)를 산출된 유사도와 함께 디스플레이에 표시할 수 있다. Referring to FIG. 6, an electronic device 100 in which a candidate image and a degree of similarity are displayed is illustrated. The electronic device 100 may determine a degree of similarity with respect to each of the candidate images, and determine a candidate image with the highest similarity as the recommended image. In addition, the electronic device 100 may display the determined recommended image 11 including the display on the display together with the calculated similarity.

또한, 전자 장치(100)는 추천 이미지(11) 외에 다른 후보 이미지(12, 13)를 산출된 유사도에 기초하여 내림차순으로 디스플레이에 표시할 수 있다. 전자 장치(100)는 추천 이미지(11)와 다른 후보 이미지(12, 13)을 하나의 화면에서 표시할 수 있고, 추천 이미지(11)만을 표시한 페이지 화면과 추천 이미지(11) 외에 다른 후보 이미지(12, 13)를 표시한 페이지 화면을 별도로 표시할 수도 있다.Also, the electronic device 100 may display other candidate images 12 and 13 other than the recommended image 11 on the display in descending order based on the calculated similarity. The electronic device 100 may display the recommendation image 11 and other candidate images 12 and 13 on one screen, and other candidate images in addition to the page screen and the recommendation image 11 displaying only the recommendation image 11 The page screen displaying (12, 13) may be displayed separately.

한편, 전자 장치(100)는 유사도가 산출된 이미지를 문서 내에 삽입할 수 있다.Meanwhile, the electronic device 100 may insert the image for which the degree of similarity is calculated into the document.

도 7은 본 개시의 일 실시 예에 따른 문서에 삽입된 선택 이미지를 설명하는 도면이다.7 is a diagram illustrating a selection image inserted in a document according to an embodiment of the present disclosure.

전자 장치(100)는 검색된 이미지(21)를 텍스트 편집 소프트웨어로 작성중인 문서 내에 삽입할 수 있다. 예를 들면, 전자 장치(100)는 판단된 추천 이미지를 직접 삽입할 수 있고, 사용자의 선택에 따라 추천 이미지를 문서 내에 삽입할 수도 있다.The electronic device 100 may insert the searched image 21 into a document being created with text editing software. For example, the electronic device 100 may directly insert the determined recommended image, or may insert the recommended image into a document according to a user's selection.

또는, 상술한 바와 같이, 전자 장치(100)는 추천 이미지 외에 다른 후보 이미지를 표시할 수 있고, 사용자의 선택에 따라 다른 후보 이미지 중에서 선택된 이미지를 문서 내에 삽입할 수도 있다.Alternatively, as described above, the electronic device 100 may display other candidate images in addition to the recommended image, and may insert an image selected from among other candidate images in the document according to the user's selection.

한편, 이미지 검색 과정은 시스템으로 구현될 수도 있다.Meanwhile, the image search process may be implemented as a system.

도 8은 본 개시의 일 실시 예에 따른 이미지 검색 시스템을 설명하는 도면이다.8 is a diagram illustrating an image search system according to an exemplary embodiment of the present disclosure.

도 8을 참조하면 전자 장치(100) 및 서버(200)를 포함하는 이미지 검색 시스템(1000)이 도시되어 있다. 예를 들어, 전자 장치(100)는 스마트폰, 노트북 컴퓨터, 태블릿 PC, 데스크탑 컴퓨터, 스마트 TV, 키오스크 등과 같은 사용자 단말 장치일 수 있다. 전자 장치(100)는 키워드를 입력받고 입력된 키워드를 서버(200)로 전송할 수 있다. 전자 장치(100)는 사용자로 직접 입력받은 키워드를 서버(200)로 전송할 수 있고, 어구, 문장 또는 문단에서 키워드를 추출하고 추출된 키워드를 서버(200)로 전송할 수도 있다. 키워드는 하나 이상 복수 개일 수 있다.Referring to FIG. 8, an image search system 1000 including an electronic device 100 and a server 200 is illustrated. For example, the electronic device 100 may be a user terminal device such as a smart phone, a notebook computer, a tablet PC, a desktop computer, a smart TV, and a kiosk. The electronic device 100 may receive a keyword and transmit the input keyword to the server 200. The electronic device 100 may transmit a keyword directly input by a user to the server 200, extract a keyword from a phrase, sentence, or paragraph and transmit the extracted keyword to the server 200. There may be one or more keywords.

서버(200)는 전자 장치(100)로부터 수신된 키워드에 기초하여 후보 이미지를 검색할 수 있다. 그리고, 서버(200)는 검색된 후보 이미지 중 하나의 후보 이미지로부터 태그 및 태그와 관련된 신뢰도를 추출할 수 있다. 서버(200)는 입력된 키워드 및 추출된 태그를 벡터로 변환할 수 있다.The server 200 may search for a candidate image based on a keyword received from the electronic device 100. In addition, the server 200 may extract the tag and the reliability associated with the tag from one candidate image among the searched candidate images. The server 200 may convert the input keyword and the extracted tag into a vector.

그리고, 서버(200)는 변환된 태그 벡터를 기준으로 변환된 키워드 벡터 및 변환된 태그 벡터 간의 적합도를 산출할 수 있다. 서버(200)는 산출된 각각의 적합도에 추출된 신뢰도를 적용하여 후보 이미지에 대한 유사도를 산출할 수 있다. 서버(200)는 가중 코사인 거리 방식 및 가중 서브공간 거리 방식으로 유사도를 산출할 수 있다. 후보 이미지가 복수 개인 경우, 서버(200)는 모든 후보 이미지에 대해서 상술한 유사도 산출 과정을 수행할 수 있다.In addition, the server 200 may calculate a degree of fitness between the converted keyword vector and the converted tag vector based on the converted tag vector. The server 200 may calculate the similarity of the candidate image by applying the extracted reliability to each calculated fitness. The server 200 may calculate the similarity using a weighted cosine distance method and a weighted subspace distance method. When there are a plurality of candidate images, the server 200 may perform the above-described similarity calculation process for all candidate images.

서버(200)는 산출된 유사도를 비교하여 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하고, 판단된 추천 이미지 또는 검색된 후보 이미지 중 적어도 하나의 이미지를 전자 장치(100)로 전송할 수 있다.The server 200 may compare the calculated similarity to determine a candidate image with the highest similarity calculated as a recommendation image, and transmit at least one image of the determined recommendation image or the searched candidate image to the electronic device 100.

전자 장치(100)는 수신된 추천 이미지 또는 후보 이미지를 유사도를 기준으로 정렬하여 표시할 수 있고, 추천 이미지 또는 후보 이미지 중 하나의 이미지를 문서 내에 삽입할 수 있다.The electronic device 100 may arrange and display the received recommended image or candidate image based on similarity, and may insert one of the recommended image or candidate image into the document.

지금까지 이미지를 검색하여 키워드와 가장 높은 유사도를 가지는 추천 이미지를 판단하는 다양한 실시 예를 설명하였다. 아래에서는 전자 장치 제어 방법을 설명한다.So far, various embodiments of searching for images and determining a recommended image having the highest similarity to a keyword have been described. The following describes the electronic device control method.

도 9는 본 개시의 일 실시 예에 따른 전자 장치 제어 방법의 흐름도이다.9 is a flowchart of a method of controlling an electronic device according to an embodiment of the present disclosure.

도 9를 참조하면, 전자 장치는 적어도 하나의 키워드를 입력받을 수 있다(S910). 전자 장치는 입력된 적어도 하나의 키워드에 기초하여 적어도 하나의 후보 이미지를 검색할 수 있다(S920).Referring to FIG. 9, the electronic device may receive at least one keyword (S910). The electronic device may search for at least one candidate image based on the input at least one keyword (S920).

전자 장치는 검색된 적어도 하나의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 적어도 하나의 태그와 관련된 신뢰도를 추출할 수 있다(S930). 신뢰도는 하나의 이미지에 포함된 태그와 관련된 객체의 크기 또는 태그와 관련된 객체의 일치도에 비례하는 값일 수 있다.The electronic device may extract at least one tag and a reliability associated with the at least one tag from one candidate image among the searched at least one candidate image (S930). The reliability may be a value proportional to the size of an object related to a tag included in one image or a degree of matching of an object related to the tag.

전자 장치는 입력된 적어도 하나의 키워드 및 추출된 적어도 하나의 태그를 벡터로 변환할 수 있다(S940). 전자 장치는 변환된 각각의 태그 벡터를 기준으로 변환된 적어도 하나의 키워드 벡터 및 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출할 수 있다(S950). 전자 장치는 산출된 각각의 적합도에 추출된 신뢰도를 적용하여 하나의 후보 이미지에 대한 유사도를 산출할 수 있다(S960). 예를 들어, 전자 장치는 가중 코사인 거리 방식 및 가중 서브공간 거리 방식으로 유사도를 산출할 수 있다.The electronic device may convert the input at least one keyword and the extracted at least one tag into a vector (S940). The electronic device may calculate a fitness level between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector (S950). The electronic device may calculate a similarity for one candidate image by applying the extracted reliability to each calculated fitness (S960). For example, the electronic device may calculate the similarity using a weighted cosine distance method and a weighted subspace distance method.

가중 코사인 거리 방식은 태그 벡터와 키워드 벡터 간의 코사인 거리에 기초하여 유사도를 산출하는 방식을 의미한다. 전자 장치는 제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 제n 태그 벡터에 대한 적합도를 산출할 수 있다. 그리고, 전자 장치는 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 산출된 각각의 태그와 관련된 유사도를 합산하여 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.The weighted cosine distance method refers to a method of calculating a similarity based on a cosine distance between a tag vector and a keyword vector. The electronic device calculates a first cosine distance between the n-th tag vector and the first keyword vector, calculates the m-th cosine distance between the n-th tag vector and the m-th keyword vector, and the calculated first cosine distance and m-th cosine distance It is possible to calculate the fit for the nth tag vector by averaging. In addition, the electronic device calculates a similarity related to the nth tag obtained by multiplying the calculated fitness for the nth tag vector by the reliability related to the extracted nth tag, and summing the calculated similarity related to each tag to obtain one candidate image You can calculate the similarity to

가중 서브공간 거리 방식은 키워드 벡터로 생성된 서브공간과 태그 벡터 간의 각도에 기초하여 유사도를 산출하는 방식을 의미한다. 전자 장치는 적어도 하나의 키워드 벡터에 기초하여 키워드 서브공간을 생성할 수 있다. 전자 장치는 적어도 하나의 태그 벡터 각각과 생성된 키워드 서브공간 간의 태그 벡터 각도를 산출하여 각 태그 벡터에 대한 적합도를 산출할 수 있다. 그리고, 전자 장치는 산출된 각각의 태그 벡터 각도에 각 태그와 관련된 신뢰도를 곱한 각각의 태그와 관련된 유사도를 산출하고, 산출된 각각의 태그와 관련된 유사도를 합산하여 하나의 후보 이미지에 대한 유사도를 산출할 수 있다.The weighted subspace distance method refers to a method of calculating a similarity based on an angle between a subspace generated as a keyword vector and a tag vector. The electronic device may generate a keyword subspace based on at least one keyword vector. The electronic device may calculate a degree of suitability for each tag vector by calculating a tag vector angle between each of the at least one tag vector and the generated keyword subspace. In addition, the electronic device calculates the similarity associated with each tag obtained by multiplying the calculated angle of each tag vector by the reliability associated with each tag, and calculates the similarity for one candidate image by summing the calculated similarity associated with each tag. can do.

전자 장치는 적어도 하나의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단할 수 있다(S970).The electronic device may determine a candidate image with the highest similarity calculated by comparing the similarity calculated for all of the at least one candidate image as the recommended image (S970).

한편, 전자 장치는 추천 이미지 또는 산출된 유사도를 기준으로 유사도 내림차순으로 적어도 하나의 후보 이미지를 정렬하여 표시할 수 있다. 그리고, 전자 장치는 표시된 적어도 하나의 후보 이미지 중 하나의 이미지가 선택되는 경우, 선택된 하나의 이미지를 텍스트 편집 소프트웨어에 삽입시킬 수 있다.Meanwhile, the electronic device may arrange and display at least one candidate image in descending order of similarity based on the recommended image or the calculated similarity. In addition, when one of the displayed at least one candidate image is selected, the electronic device may insert the selected one image into the text editing software.

상술한 다양한 실시 예에 따른 전자 장치의 제어 방법은 컴퓨터 프로그램 제품으로 제공될 수도 있다. 컴퓨터 프로그램 제품은 S/W 프로그램 자체 또는 S/W 프로그램이 저장된 비일시적 판독 가능 매체(non-transitory computer readable medium)를 포함할 수 있다.The method for controlling an electronic device according to the various embodiments described above may be provided as a computer program product. The computer program product may include the S/W program itself or a non-transitory computer readable medium in which the S/W program is stored.

비일시적 판독 가능 매체란 레지스터, 캐쉬, 메모리 등과 같이 짧은 순간 동안 데이터를 저장하는 매체가 아니라 반영구적으로 데이터를 저장하며, 기기에 의해 판독(reading)이 가능한 매체를 의미한다. 구체적으로는, 상술한 다양한 어플리케이션 또는 프로그램들은 CD, DVD, 하드 디스크, 블루레이 디스크, USB, 메모리카드, ROM 등과 같은 비일시적 판독 가능 매체에 저장되어 제공될 수 있다. The non-transitory readable medium refers to a medium that stores data semi-permanently and can be read by a device, not a medium that stores data for a short moment, such as a register, cache, or memory. Specifically, the above-described various applications or programs may be provided by being stored in a non-transitory readable medium such as a CD, DVD, hard disk, Blu-ray disk, USB, memory card, and ROM.

또한, 이상에서는 본 발명의 바람직한 실시 예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안될 것이다.In addition, although the preferred embodiments of the present invention have been illustrated and described above, the present invention is not limited to the specific embodiments described above, and the technical field to which the present invention belongs without departing from the gist of the present invention claimed in the claims. In addition, various modifications are possible by those of ordinary skill in the art, and these modifications should not be individually understood from the technical spirit or prospect of the present invention.

1000: 이미지 검색 시스템
100: 전자 장치 200: 서버
110: 입력 인터페이스 120: 프로세서
1000: image search system
100: electronic device 200: server
110: input interface 120: processor

Claims (13)

적어도 하나의 키워드를 입력받는 입력 인터페이스; 및
상기 입력된 적어도 하나의 키워드에 기초하여 복수의 후보 이미지를 검색하는 프로세서;를 포함하고,
상기 프로세서는,
상기 검색된 복수의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하고, 상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하며, 변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하고, 상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하며, 상기 복수의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하고,
상기 프로세서는, 상기 유사도를 산출함에 있어,
제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 상기 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 상기 제n 태그 벡터에 대한 적합도를 산출하고, 상기 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는, 전자 장치.
An input interface for receiving at least one keyword; And
Includes; a processor that searches for a plurality of candidate images based on the input at least one keyword,
The processor,
Extracting at least one tag and a reliability associated with the at least one tag from one candidate image among the searched plurality of candidate images, converting the input at least one keyword and the extracted at least one tag into a vector, The one candidate by calculating a fitness level between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector, and applying the extracted reliability to each calculated fitness level A similarity to the image is calculated, and the calculated similarity of all of the plurality of candidate images is compared to determine the candidate image with the highest similarity as a recommended image,
The processor, in calculating the similarity,
Calculate the first cosine distance between the nth tag vector and the first keyword vector, calculate the mth cosine distance between the nth tag vector and the mth keyword vector, and average the calculated first cosine distance and the mth cosine distance Then, a degree of suitability for the n-th tag vector is calculated, a similarity degree related to the n-th tag is calculated by multiplying the calculated degree of suitability for the n-th tag vector by a reliability related to the extracted n-th tag, and the calculated respective tags The electronic device, which calculates a similarity for the one candidate image by summing the similarity related to.
삭제delete 제1항에 있어서,
상기 프로세서는,
상기 적어도 하나의 키워드 벡터에 기초하여 키워드 서브스페이스를 생성하고, 상기 적어도 하나의 태그 벡터 각각과 상기 생성된 키워드 서브스페이스 간의 태그 벡터 각도를 산출하여 각 태그 벡터에 대한 적합도를 산출하며, 상기 산출된 각각의 태그 벡터 각도에 각 태그와 관련된 신뢰도를 곱한 각각의 태그와 관련된 유사도를 산출하고, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는, 전자 장치.
The method of claim 1,
The processor,
A keyword subspace is generated based on the at least one keyword vector, a tag vector angle between each of the at least one tag vector and the generated keyword subspace is calculated to calculate a fitness for each tag vector, and the calculated An electronic device that calculates a similarity associated with each tag obtained by multiplying each tag vector angle by a reliability associated with each tag, and calculates a similarity with respect to the one candidate image by summing the calculated similarity associated with each tag.
제1항에 있어서,
상기 신뢰도는,
상기 하나의 이미지에 포함된 상기 태그와 관련된 객체의 크기 또는 상기 태그와 관련된 객체의 일치도에 비례하는, 전자 장치.
The method of claim 1,
The reliability is,
The electronic device, which is proportional to a size of an object related to the tag included in the one image or a degree of matching of an object related to the tag.
제1항에 있어서,
상기 추천 이미지 또는 상기 산출된 유사도를 기준으로 유사도 내림차순으로 상기 복수의 후보 이미지를 정렬하여 표시하는 디스플레이;를 더 포함하는 전자 장치.
The method of claim 1,
The electronic device further comprises: a display configured to sort and display the plurality of candidate images in descending order of similarity based on the recommended image or the calculated similarity.
제5항에 있어서,
상기 프로세서는,
상기 표시된 복수의 후보 이미지 중 하나의 이미지가 선택되는 경우, 상기 선택된 하나의 이미지를 텍스트 편집 소프트웨어에 삽입시키는, 전자 장치.
The method of claim 5,
The processor,
When one of the displayed plurality of candidate images is selected, inserting the selected one image into text editing software.
전자 장치의 프로세서를 통해 수행되는 상기 전자 장치의 제어 방법에 있어서,
입력 인터페이스를 통해 적어도 하나의 키워드를 입력받는 단계;
상기 입력된 적어도 하나의 키워드에 기초하여 복수의 후보 이미지를 검색하는 단계;
상기 검색된 복수의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하는 단계;
상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하는 단계;
변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하는 단계;
상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는 단계; 및
상기 복수의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하는 단계;를 포함하고,
상기 적합도를 산출하는 단계는,
제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 상기 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 상기 제n 태그 벡터에 대한 적합도를 산출하고,
상기 유사도를 산출하는 단계는,
상기 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는, 전자 장치의 제어 방법.
In the control method of the electronic device performed by the processor of the electronic device,
Receiving at least one keyword input through an input interface;
Searching for a plurality of candidate images based on the input at least one keyword;
Extracting at least one tag and a reliability associated with the at least one tag from one candidate image among the searched plurality of candidate images;
Converting the input at least one keyword and the extracted at least one tag into a vector;
Calculating a fitness degree between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector;
Calculating a similarity of the one candidate image by applying the extracted reliability to each of the calculated fitness levels; And
Comprising the calculated similarity for all of the plurality of candidate images and determining the candidate image having the highest similarity as a recommended image; Including,
The step of calculating the fitness is,
Calculate the first cosine distance between the nth tag vector and the first keyword vector, calculate the mth cosine distance between the nth tag vector and the mth keyword vector, and average the calculated first cosine distance and the mth cosine distance To calculate the fitness for the n-th tag vector,
The step of calculating the similarity,
A similarity related to the n-th tag is calculated by multiplying the calculated fitness for the n-th tag vector by a reliability related to the extracted n-th tag, and the calculated similarity related to each tag is summed to obtain the one candidate image. A method of controlling an electronic device for calculating the degree of similarity.
삭제delete 제7항에 있어서,
상기 적합도를 산출하는 단계는,
상기 적어도 하나의 키워드 벡터에 기초하여 키워드 서브스페이스를 생성하고, 상기 적어도 하나의 태그 벡터 각각과 상기 생성된 키워드 서브스페이스 간의 태그 벡터 각도를 산출하여 각 태그 벡터에 대한 적합도를 산출하며,
상기 유사도를 산출하는 단계는,
상기 산출된 각각의 태그 벡터 각도에 각 태그와 관련된 신뢰도를 곱한 각각의 태그와 관련된 유사도를 산출하고, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는, 전자 장치의 제어 방법.
The method of claim 7,
The step of calculating the fitness is,
A keyword subspace is generated based on the at least one keyword vector, and a tag vector angle between each of the at least one tag vector and the generated keyword subspace is calculated to calculate a fitness for each tag vector,
The step of calculating the similarity,
Calculating a similarity related to each tag obtained by multiplying the calculated angle of each tag vector by a reliability related to each tag, and calculating a similarity to the one candidate image by summing the calculated similarity related to each tag, Control method of electronic devices.
제7항에 있어서,
상기 신뢰도는,
상기 하나의 이미지에 포함된 상기 태그와 관련된 객체의 크기 또는 상기 태그와 관련된 객체의 일치도에 비례하는, 전자 장치의 제어 방법.
The method of claim 7,
The reliability is,
The method of controlling an electronic device, which is proportional to a size of an object related to the tag included in the one image or a matching degree of an object related to the tag.
제7항에 있어서,
상기 추천 이미지 또는 상기 산출된 유사도를 기준으로 유사도 내림차순으로 상기 복수의 후보 이미지를 정렬하여 표시하는 단계;를 더 포함하는 전자 장치의 제어 방법.
The method of claim 7,
Arranging and displaying the plurality of candidate images in descending order of similarity based on the recommended image or the calculated similarity.
제11항에 있어서,
상기 표시된 복수의 후보 이미지 중 하나의 이미지가 선택되는 경우, 상기 선택된 하나의 이미지를 텍스트 편집 소프트웨어에 삽입시키는 단계;를 더 포함하는 전자 장치의 제어 방법.
The method of claim 11,
When one of the plurality of displayed candidate images is selected, inserting the selected one image into text editing software.
적어도 하나의 키워드를 입력받고 서버로 전송하는 단말 장치; 및
상기 단말 장치로부터 수신된 상기 적어도 하나의 키워드에 기초하여 복수의 후보 이미지를 검색하는 서버;를 포함하고,
상기 서버는,
상기 검색된 복수의 후보 이미지 중 하나의 후보 이미지로부터 적어도 하나의 태그 및 상기 적어도 하나의 태그와 관련된 신뢰도를 추출하고, 상기 입력된 적어도 하나의 키워드 및 상기 추출된 적어도 하나의 태그를 벡터로 변환하며, 변환된 각각의 태그 벡터를 기준으로 상기 변환된 적어도 하나의 키워드 벡터 및 상기 변환된 적어도 하나의 태그 벡터 간의 적합도를 산출하고, 상기 산출된 각각의 적합도에 상기 추출된 신뢰도를 적용하여 상기 하나의 후보 이미지에 대한 유사도를 산출하며, 상기 복수의 후보 이미지 모두에 대해 산출된 유사도를 비교하여 상기 산출된 유사도가 가장 높은 후보 이미지를 추천 이미지로 판단하고, 상기 판단된 추천 이미지 또는 검색된 후보 이미지 중 적어도 하나의 이미지를 상기 단말 장치로 전송하고,
상기 서버는, 상기 유사도를 산출함에 있어,
제n 태그 벡터와 제1 키워드 벡터 간의 제1 코사인 거리를 산출하고, 제n 태그 벡터와 제m 키워드 벡터 간의 제m 코사인 거리를 산출하며, 상기 산출된 제1 코사인 거리 및 제m 코사인 거리를 평균하여 상기 제n 태그 벡터에 대한 적합도를 산출하고, 상기 산출된 제n 태그 벡터에 대한 적합도에 추출된 제n 태그와 관련된 신뢰도를 곱한 제n 태그와 관련된 유사도를 산출하며, 상기 산출된 각각의 태그와 관련된 유사도를 합산하여 상기 하나의 후보 이미지에 대한 유사도를 산출하는, 이미지 검색 시스템.
A terminal device that receives at least one keyword and transmits it to a server; And
Including; a server for searching for a plurality of candidate images based on the at least one keyword received from the terminal device;
The server,
Extracting at least one tag and a reliability associated with the at least one tag from one candidate image among the searched plurality of candidate images, converting the input at least one keyword and the extracted at least one tag into a vector, The one candidate by calculating a fitness level between the converted at least one keyword vector and the converted at least one tag vector based on each converted tag vector, and applying the extracted reliability to each calculated fitness level Calculates a similarity to an image, compares the calculated similarity for all of the plurality of candidate images to determine the candidate image with the highest similarity as a recommendation image, and at least one of the determined recommendation image or the searched candidate image Transmit the image of to the terminal device,
The server, in calculating the similarity,
Calculate the first cosine distance between the nth tag vector and the first keyword vector, calculate the mth cosine distance between the nth tag vector and the mth keyword vector, and average the calculated first cosine distance and the mth cosine distance Then, a degree of suitability for the n-th tag vector is calculated, a similarity degree related to the n-th tag is calculated by multiplying the calculated degree of suitability for the n-th tag vector by a reliability related to the extracted n-th tag, and the calculated respective tags The image retrieval system for calculating a similarity for the one candidate image by summing the similarity related to.
KR1020190036897A 2019-03-29 2019-03-29 Electronic device, image searching system and controlling method thereof KR102193571B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190036897A KR102193571B1 (en) 2019-03-29 2019-03-29 Electronic device, image searching system and controlling method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190036897A KR102193571B1 (en) 2019-03-29 2019-03-29 Electronic device, image searching system and controlling method thereof

Publications (2)

Publication Number Publication Date
KR20200114708A KR20200114708A (en) 2020-10-07
KR102193571B1 true KR102193571B1 (en) 2020-12-22

Family

ID=72883278

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190036897A KR102193571B1 (en) 2019-03-29 2019-03-29 Electronic device, image searching system and controlling method thereof

Country Status (1)

Country Link
KR (1) KR102193571B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023008609A1 (en) * 2021-07-28 2023-02-02 Imtiaz Ahmed Image management server providing a scene image by merging objects from multiple images and method for creating the scene image using the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101151965B1 (en) * 2007-10-05 2012-06-01 김종근 An n-Dimensional Vector Tag and Its Uitlization for Internet Contents
KR101720250B1 (en) * 2013-07-30 2017-03-27 주식회사 케이티 Apparatus for recommending image and method thereof
KR101976081B1 (en) * 2017-07-17 2019-08-28 경희대학교 산학협력단 Method, system and computer program for semantic image retrieval based on topic modeling

Also Published As

Publication number Publication date
KR20200114708A (en) 2020-10-07

Similar Documents

Publication Publication Date Title
US20190221204A1 (en) Intelligent short text information retrieve based on deep learning
KR101611388B1 (en) System and method to providing search service using tags
CN109918513B (en) Image processing method, device, server and storage medium
US20190188729A1 (en) System and method for detecting counterfeit product based on deep learning
US11842278B2 (en) Object detector trained via self-supervised training on raw and unlabeled videos
US20160063596A1 (en) Automatically generating reading recommendations based on linguistic difficulty
CN111291765A (en) Method and device for determining similar pictures
CN109543058A (en) For the method for detection image, electronic equipment and computer-readable medium
US20140188834A1 (en) Electronic device and video content search method
US11210508B2 (en) Aligning unlabeled images to surrounding text
US11645478B2 (en) Multi-lingual tagging for digital images
US20120134593A1 (en) Method and system for image-based identification
CN112703495A (en) Inferring topics using entity links and ontology data
CN110737824B (en) Content query method and device
CN111950279A (en) Entity relationship processing method, device, equipment and computer readable storage medium
US20150036930A1 (en) Discriminating synonymous expressions using images
US20160321300A1 (en) Image entity recognition and response
KR102487820B1 (en) Device, method and program for providing integrated platform service for content planning and production
US9607216B2 (en) Identifying updated content in images
CN109902152B (en) Method and apparatus for retrieving information
WO2022245469A1 (en) Rule-based machine learning classifier creation and tracking platform for feedback text analysis
KR102193571B1 (en) Electronic device, image searching system and controlling method thereof
CN112800022A (en) Data de-identification processing device and method
KR20150101846A (en) Image classification service system based on a sketch user equipment, service equipment, service method based on sketch and computer readable medium having computer program recorded therefor
CN110110199B (en) Information output method and device

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant