WO2021164151A1 - Image gallery search method, terminal, and computer storage medium - Google Patents

Image gallery search method, terminal, and computer storage medium Download PDF

Info

Publication number
WO2021164151A1
WO2021164151A1 PCT/CN2020/094769 CN2020094769W WO2021164151A1 WO 2021164151 A1 WO2021164151 A1 WO 2021164151A1 CN 2020094769 W CN2020094769 W CN 2020094769W WO 2021164151 A1 WO2021164151 A1 WO 2021164151A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
content
gallery
pictures
image
Prior art date
Application number
PCT/CN2020/094769
Other languages
French (fr)
Chinese (zh)
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
Priority claimed from CN202010100420.2A external-priority patent/CN111368110B/en
Priority claimed from CN202010100435.9A external-priority patent/CN111368107B/en
Application filed by 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Publication of WO2021164151A1 publication Critical patent/WO2021164151A1/en

Links

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/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Definitions

  • This application relates to the field of terminal technology, and in particular to a method for searching a gallery, a terminal, and a computer storage medium.
  • the terminal is equipped with a gallery for storing pictures and videos. Users can view the pictures and videos in the gallery by browsing or searching. When the amount of gallery storage is large, users are more inclined to quickly find what they want by searching.
  • the current search method is limited to searching under the original classification such as time, person, thing, etc. The classification is limited and the accuracy rate is not high, resulting in users often unable to search for the desired content and can only browse manually The search process is cumbersome and the user experience is poor.
  • the terminal is equipped with a gallery for storing pictures and videos. Users can view the pictures and videos in the gallery by browsing or searching. When the amount of gallery storage is large, users are more inclined to quickly find what they want by searching.
  • the current search method is limited to searching under the original classification such as time, person, thing, etc. The classification is limited and the accuracy rate is not high, resulting in users often unable to search for the desired content and can only browse manually The search process is cumbersome and the user experience is poor.
  • this application provides a method, terminal, and computer storage medium for searching a gallery, which can directly search for pictures based on the content of the pictures, which is faster and more efficient.
  • this application provides a method for searching a gallery, which is applied to a terminal, and includes:
  • said performing image recognition on a picture whose type of picture content in the gallery matches the search term includes at least one of the following:
  • image recognition is performed on the image whose type of the image content is text in the gallery to obtain the text content in the image;
  • the method further includes:
  • the method further includes:
  • displaying the searched pictures according to preset rules includes:
  • a preset identifier is displayed at the image content associated with the search term in the searched image.
  • the image content includes text content and/or graphic content
  • the display feature includes at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • said displaying the searched pictures according to preset rules further includes:
  • the searched pictures include at least one picture from the same video, display the at least one picture and the source video, or display one of the at least one picture and the source video.
  • This application also provides a second method for searching the gallery, which is applied to a terminal, including:
  • the search for pictures related to the input content in the gallery includes:
  • said performing image recognition on pictures whose type of picture content matches said input content in the gallery includes at least one of the following:
  • image recognition is performed on the image whose type of the image content is text in the gallery, to obtain the text content in the image as a recognition result;
  • the search for pictures related to the input content in the gallery includes:
  • the second gallery search method also includes:
  • the displaying the chat content to be sent according to the searched pictures includes:
  • the at least one related picture is displayed as the chat content to be sent, and/or the picture content information derived from the at least one related picture is displayed as the chat content to be sent.
  • the displaying the chat content to be sent according to the searched pictures includes:
  • the part of the picture located in the marquee box is displayed as the chat content to be sent.
  • the displaying the chat content to be sent according to the searched pictures includes:
  • the displaying the image content information derived from the searched image to obtain the chat content to be sent includes:
  • the present application also provides a terminal, including a memory and a processor, the memory is configured to store at least one program instruction, and the processor is configured to load and execute the at least one program instruction to implement the library search method described above.
  • the present application also provides a computer storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the above-mentioned gallery search method is implemented.
  • the gallery search method, terminal and computer storage medium of the present application by receiving search words, perform image recognition on pictures whose type of picture content in the gallery matches the search word, search for pictures associated with the recognition result and the search word, and then according to preset rules Displaying the searched pictures, users can directly search for pictures based on the content of the pictures, and view the search results displayed according to preset rules, which is faster and more efficient.
  • the user can directly according to the picture in the instant communication Content Search for pictures in the gallery, so that you can quickly use the picture information as chat content, which is faster and more efficient.
  • FIG. 1 is a schematic flowchart of a method for searching a gallery according to a first embodiment
  • Fig. 2 is a schematic diagram showing a search result according to the first embodiment
  • Fig. 3 is a schematic diagram showing another search result according to the first embodiment
  • Fig. 4 is a schematic diagram showing still another search result according to the first embodiment
  • FIG. 5 is a schematic flowchart of a method for searching a gallery according to a second embodiment
  • FIG. 6 is a schematic flowchart of a method for searching a gallery according to a third embodiment
  • FIG. 7 is a schematic flowchart of a method for searching a gallery according to a fourth embodiment
  • Fig. 8 is a schematic diagram of a chat interface according to a fourth embodiment
  • FIG. 9 is a schematic flowchart of a method for searching a gallery according to a fifth embodiment.
  • FIG. 10 is a schematic flowchart of a method for searching a gallery according to a sixth embodiment
  • Fig. 11 is one of the schematic structural diagrams of a terminal according to a seventh embodiment.
  • Fig. 12 is a second structural diagram of the terminal shown in Fig. 11.
  • Fig. 1 is a schematic flowchart of a gallery search method according to a first embodiment. Please refer to Figure 1.
  • the gallery search method of this embodiment is applied to a terminal and includes:
  • Step 110 Receive a search term.
  • the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
  • Step 120 Search the image gallery for the image associated with the image content and the search term.
  • the image content is the constituent content of the image, including text content and/or graphic content.
  • the text content is the content composed of characters, which can be any recognizable characters such as Chinese characters, Pinyin or English.
  • Graphic content is also content composed of graphics with shapes and colors, such as a red area, a red circle, a square, and so on.
  • the search terms are first analyzed to narrow or determine the search scope, for example, to know the type of picture content that the user enters the current search term to search for, or to determine the picture category to be searched based on the content of the search term.
  • the process of searching for pictures related to the content of the pictures and the search terms in the gallery includes:
  • the type of the picture content of each picture in the gallery can be automatically identified and marked when the picture is added, and the type of the picture content is text, graphics, or a combination of text and graphics.
  • Different search terms can match different types of image content.
  • a search term can match at least one type of image content. For example, when the search term is "red”, it can match text and graphic image content, and the search term "Score", only match the content of the image whose type is text.
  • the type of the image content matching the search term is text
  • image recognition is performed on the image whose type of the image content is text in the gallery, so as to obtain the text content in the image as a recognition result.
  • the search term as "score” as an example, perform image recognition on pictures in the gallery whose content type is text. After the recognition results are obtained, the recognition results are filtered.
  • the recognition results associated with the search terms can include “scores", Contents such as “score”, “fenshu”, and “number of copies”, that is to say, content with the same search term, similar meaning, and same pronunciation are all related content.
  • image recognition is performed on the picture whose type of the picture content is a graphic in the gallery to obtain the graphic content in the picture.
  • the search term as "red” as an example, perform image recognition on the picture whose content type is graphics in the gallery. After the recognition result is obtained, the recognition result is filtered.
  • the recognition result associated with the search term only needs to contain red in the picture. Or the red graphics area.
  • image recognition can also be performed on pictures whose content type is text in the gallery at the same time, so as to obtain the text content in the picture as the recognition result, which will not be repeated here.
  • the search for pictures associated with the image content and the search term in the gallery includes:
  • the pictures in the gallery are classified in advance according to the picture content of the pictures in the gallery, at least one first-level picture classification is established according to the classification results, and then each first-level picture is classified according to the picture content of the pictures in each first-level picture classification
  • the pictures in the classification are classified, and at least a lower-level picture classification corresponding to each first-level picture classification is established. For example, if the same keyword appears more than the set number of times in multiple pictures at the same time, a first-level picture classification is automatically set up.
  • the keyword “score” Take the keyword “score” as an example, for multiple pictures that contain more than 5 keywords "score” Set up a first-level picture classification "score”, and then create a lower-level picture classification based on the content related to the keyword "score” in the multiple pictures, for example, the lower-level picture classification can be "exam score", "game score”, etc., in the classification
  • the names of locations and contacts associated with photos that contain "scores” are also included in the classification.
  • the first-level picture classification is searched according to the search words, and then the pictures related to the picture content and the search word are searched in the lower-level picture classifications of the first-level picture classification.
  • search term "admission score” as an example, first find the first-level picture category "score”, and then find the related category "exam score” in its lower-level picture categories "exam category” and "game score”, and then in the "exam category” Search for pictures related to the search term in the picture.
  • the search process can be made faster. In actual implementation, it is also preferable to use picture compression to search.
  • Step 130 Display the searched pictures according to preset rules.
  • the searched pictures are displayed according to preset rules, and the preset rules include preset sorting rules and/or preset identification rules.
  • displaying the searched pictures according to preset rules includes:
  • the searched images are arranged and displayed.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • displaying the searched pictures according to preset rules includes:
  • the preset identifier is displayed at the image content associated with the search term in the searched image.
  • the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark.
  • the preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time.
  • the preset frame line identification refers to using a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline 190 is used for identification in the associated picture content "SCORE A: 123".
  • the preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
  • the pictures can be pre-identified while sorting the pictures.
  • the pictures to be pre-identified can be the first preset number of pictures, that is, the pictures with the degree of relevance higher than a certain value are preset Identification processing, thereby reducing the computational process of image search.
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched.
  • the searched picture includes at least one picture from the same video, at least one picture and The source video, or one of at least one of the pictures and the source video, the pictures from the video are displayed together with other independent pictures, the sorting rules and the processing method of the preset identification are the same as above, and will not be repeated.
  • the gallery search method of this embodiment by receiving a search term, the image content and the image associated with the search term are searched in the gallery, and the searched image is displayed according to preset rules.
  • the user can directly search for the image based on the content of the image, and View the search results displayed according to preset rules, which is faster and more efficient.
  • Fig. 5 is a schematic flowchart of a method for searching a gallery according to a second embodiment. Please refer to FIG. 5, the gallery search method of this embodiment, applied to a terminal, includes:
  • Step 210 Receive a search term.
  • the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
  • Step 220 Search the gallery for pictures whose content is associated with the search term.
  • step 120 For the specific implementation process of this step, reference may be made to the related description of step 120 in the first embodiment, which will not be repeated here.
  • step 230 the searched pictures are arranged and displayed according to the display characteristics of the picture content associated with the search term in each searched picture.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • the preview is displayed at the picture content associated with the search term of the searched picture.
  • the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark.
  • the preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time.
  • the preset frame line identification refers to the use of a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline is used for identification in the associated picture content "SCORE A: 123".
  • the preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
  • the pictures can be pre-identified while sorting the pictures.
  • the pictures to be pre-identified can be the first preset number of pictures, that is, the pictures with the degree of relevance higher than a certain value are preset Identification processing, thereby reducing the computational process of image search.
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched.
  • the searched picture includes at least one picture from the same video, at least one picture and The source video, or one of at least one of the pictures and the source video, the pictures from the video are displayed together with other independent pictures, the sorting rules and the processing method of the preset identification are the same as above, and will not be repeated.
  • the gallery search method of this embodiment by receiving a search term, the image content of the image associated with the search term is searched in the gallery, and then according to the display characteristics of the image content associated with the search term in each searched image,
  • the searched pictures are arranged and displayed, and users can directly search for pictures based on the content of the pictures, and view the search results sorted according to the degree of relevance, which is faster and more efficient.
  • Fig. 6 is a schematic flowchart of a method for searching a gallery according to a third embodiment. Please refer to FIG. 6, the gallery search method of this embodiment, applied to a terminal, includes:
  • Step 310 Receive a search term.
  • the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
  • Step 320 Search the gallery for pictures whose content is associated with the search term.
  • step 120 For the specific implementation process of this step, reference may be made to the related description of step 120 in the first embodiment, which will not be repeated here.
  • Step 330 Display a preset identifier at the image content associated with the search term of the searched image.
  • the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark.
  • the preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time.
  • the preset frame line identification refers to the use of a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline is used for identification in the associated picture content "SCORE A: 123".
  • the preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
  • the searched images are arranged according to the display characteristics of the image content associated with the search term in each searched image exhibit.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched.
  • the searched picture includes at least one picture from the same video, at least one picture is displayed Picture and source video, or display one of at least one picture and the source video, the picture from the video is displayed together with other independent pictures, the sorting rules and the identification rules of the picture content are the same as above.
  • identifying the content of a picture only the pre-set number of pictures in the front may be identified, that is, pictures with a correlation degree higher than a certain value may be pre-identified, thereby reducing the calculation process of the picture search.
  • the image content in the gallery is searched for a picture associated with the search term, and then a preset identifier is displayed at the image content associated with the search term of the searched image, and the user can Find pictures directly based on the content of the pictures, and find key information quickly and accurately, which is faster and more efficient.
  • Fig. 7 is a schematic flowchart of a method for searching a gallery according to a fourth embodiment. Please refer to FIG. 7, the gallery search method of this embodiment, applied to a terminal, includes:
  • Step 510 Receive input content of the chat interface.
  • a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660.
  • the input content can be a word, a phrase, a symbol, a word, etc.
  • the input content received by the chat interface is also the search term.
  • Step 520 Search the gallery for a picture associated with the picture content and the input content.
  • the image content is the constituent content of the image, including text content and/or graphic content.
  • the text content is the content composed of characters, which can be any recognizable characters such as Chinese characters, Pinyin or English.
  • Graphic content is also content composed of graphics with shapes and colors, such as a red area, a red circle, a square, and so on.
  • the input content is first analyzed to narrow or determine the search scope, for example, to know the type of picture content that the user wants to search for inputting the current input content, or to determine the picture category to be searched according to the content of the input content.
  • the process of searching for pictures related to the input content and the picture content in the gallery includes:
  • the type of the picture content of each picture in the gallery can be automatically identified and marked when the picture is added, and the type of the picture content is text, graphics, or a combination of text and graphics.
  • Different input content can match different types of image content, and one input content can match at least one type of image content. For example, when the input content is "red”, it can match the image content of text and graphics, and the input content "Score", only match the content of the image whose type is text.
  • the type of the picture content that matches the input content is text
  • image recognition is performed on the picture whose picture content type is text in the gallery, so as to obtain the text content in the picture as a recognition result.
  • the recognition results are filtered.
  • the recognition results associated with the input content can include “scores”, “Score”, “fenshu”, “number of copies” and other content, that is, content with the same input content, similar meaning, and same pronunciation are all related content.
  • the type of the picture content matching the input content is a graphic
  • image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture.
  • the recognition result is filtered.
  • the recognition result associated with the input content only needs to contain red in the picture. Or the red graphics area.
  • searching for pictures associated with the picture content and the input content in the gallery includes:
  • the pictures in the gallery are classified in advance according to the picture content of the pictures in the gallery, at least one first-level picture classification is established according to the classification results, and then each first-level picture is classified according to the picture content of the pictures in each first-level picture classification
  • the pictures in the classification are classified, and at least a lower-level picture classification corresponding to each first-level picture classification is established. For example, if the same keyword appears more than the set number of times in multiple pictures at the same time, a first-level picture classification is automatically set up.
  • the keyword “score” Take the keyword “score” as an example, for multiple pictures that contain more than 5 keywords "score” Set up a first-level picture classification "score”, and then create a lower-level picture classification based on the content related to the keyword "score” in the multiple pictures, for example, the lower-level picture classification can be "exam score", "game score”, etc., in the classification
  • the names of locations and contacts associated with photos that contain "scores” are also included in the classification.
  • the first-level picture classification is searched according to the input content, and then the pictures related to the input content are searched in the lower-level picture classification of the first-level picture classification.
  • searching you can perform image recognition on pictures in the gallery whose type of picture content matches the input content, and search for pictures related to the input content. The process will not be repeated.
  • the search process can be made faster. In actual implementation, it is also preferable to use picture compression to search.
  • Step 530 Display the chat content to be sent according to the searched picture.
  • the searched pictures are displayed according to preset rules.
  • certain processing is performed on the search results to obtain the corresponding chat content to be sent.
  • the chat content to be sent means that the user can operate
  • the content to be sent includes, but is not limited to, the input content 670 located in the input field 640.
  • the image 660 can also be sent directly by clicking on the image 660.
  • the image 660 is also the chat content to be sent.
  • displaying the chat content to be sent according to the searched pictures may include:
  • At least one associated picture is displayed as the chat content to be sent, and/or the picture content information associated with the input content in the at least one associated picture is displayed as the chat content to be sent.
  • the searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • the chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630.
  • the input content 670 is "SCORE”, and according to the contact information 610, the contact chat content 620, and the user
  • the chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660.
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
  • the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
  • the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • a preset identifier may also be displayed at the image content associated with the search term of the associated image.
  • the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark.
  • the preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time.
  • the preset frame line identification refers to using a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline 190 is used for identification in the associated picture content "SCORE A: 123".
  • the preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
  • the at least one filtered out related picture can be directly displayed as the chat content to be sent, and/or the picture content information related to the input content in the filtered out at least one related picture can be displayed as the to-be sent Chat content.
  • the chat interface 60 when at least one related picture selected is directly displayed as the chat content to be sent, it is displayed in the chat interface 60 in the form of a picture 660, and the position is not limited to the picture, or may not be displayed.
  • another interface display is used to facilitate the user to browse or select.
  • the picture content information associated with the input content in the picture can also be displayed as the chat content to be sent, for example, the picture 660
  • the picture content information associated with the input content 670 is "SCORE A: 123" or "123".
  • the picture content information can be directly inserted into the current input content 670 or replace the current input content 670, thereby Get the new input content as the chat content to be sent.
  • chat content to be sent according to the searched picture it may further include:
  • the part of the picture in the marquee is displayed as the chat content to be sent.
  • the searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • a marquee 650 for capturing the picture is displayed on the picture 660.
  • the user can capture the desired part from the picture 660 to obtain another picture by adjusting the position and size of the marquee 650, which serves as a waiting The chat content sent. In this way, when the user is unwilling to make public or because of traffic or other information of the picture, some of the information in the picture can be sent by means of screenshots.
  • the initial position of the marquee 650 can be located at the image content associated with the input content of the searched picture, for example, displayed at the position of "SCORE A: 123", which can reduce user operations.
  • the marquee 650 can also be indirect It is displayed on the picture 660, and can be displayed on the picture 660 by triggering operations such as double-clicking the picture 660.
  • displaying the chat content to be sent according to the searched pictures may also include:
  • the process of exporting the picture content information can be manually selecting the export, for example, displaying the picture content information derived from the searched pictures to obtain the chat content to be sent, and may also include:
  • the picture content information in the marquee is exported to obtain the chat content to be sent.
  • the searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • the marquee used to select the content information of the picture displayed on the picture 660 can be displayed in the form of the marquee 650 used to capture the picture or displayed in other convenient ways. The user adjusts the position and size of the marquee , You can select the desired picture content information from the picture 660, and then export the picture content information in the marquee as the chat content to be sent.
  • the picture content information in the selection box is added to the input content 670 as the chat content to be sent, or the input content 670 is replaced with the picture content information in the selection box to obtain the chat content to be sent.
  • the initial position of the marquee used to select the image content information can be located at the image content associated with the input content of the searched image, for example, displayed in "SCORE A: 123”, which can reduce user operations.
  • the marquee used to select picture content information may not be directly displayed on the picture 660, but can be displayed on the picture 660 by long-pressing the picture 660 and other trigger operations. .
  • the picture content information in the marquee as the chat content to be sent when exporting the picture content information in the marquee as the chat content to be sent, it can also automatically export the picture content information from the picture according to the preset number of characters, and the part that exceeds the preset number of characters will not be exported. That is, the exported picture content information is less than or equal to the preset number.
  • the process of exporting picture content information can also be automatic export.
  • displaying the picture content information derived from the searched pictures to obtain the chat content to be sent which may include:
  • the picture content information associated with the input content in the picture is exported to the input column by means of automatic recognition and extraction.
  • the picture content information associated with the input content 670 in the picture 660 is "SCORE A: 123 "Or "123"
  • the picture content information when used as the chat content to be sent, it can be directly inserted into the current input content 670 or replace the current input content 670, thereby obtaining new input content as the chat content to be sent, that is, "SCORE A: 123" or "123” as the chat content to be sent.
  • the exported picture content information is less than or equal to a preset number.
  • the image content includes text content and/or graphic content. Therefore, in addition to exporting the text content in the image, you can also export the corresponding graphics from the associated image and insert it into the input content 670, for example, when the input content is "red circle” , The red circle can be derived from the associated picture and inserted into the input content 670, thereby enriching the style of the input content 670.
  • the gallery search method of this embodiment by receiving the input content of the chat interface, searching for pictures related to the image content and the input content in the gallery, and then displaying the chat content to be sent according to the searched pictures, the user can directly follow The content of the picture searches for the picture, so that the information of the picture can be quickly used as the chat content, which is faster and more efficient.
  • Fig. 9 is a schematic flowchart of a method for searching a gallery according to a fifth embodiment. Please refer to FIG. 9, the gallery search method of this embodiment, applied to a terminal, includes:
  • Step 710 Receive input content of the chat interface.
  • a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660.
  • the input content can be a word, a phrase, a symbol, a word, etc.
  • Step 720 Search the gallery for a picture associated with the picture content and the input content.
  • step 520 For the specific implementation process of this step, reference may be made to the related description of step 520 in the fourth embodiment, which will not be repeated here.
  • step 730 a marquee for capturing the picture is displayed on the searched picture.
  • the searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • the chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630.
  • the input content 670 is "SCORE”, and according to the contact information 610, the contact chat content 620, and the user
  • the chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660.
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
  • the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
  • the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • the marquee used to capture the picture is displayed on the searched picture
  • the marquee is displayed at the picture content associated with the input content of the searched picture.
  • the searched picture is, for example, from the search to the chat scene corresponding to the input content.
  • a marquee 650 for capturing the picture is displayed on the picture 660.
  • the initial position of the marquee 650 can be located at the image content associated with the input content of the searched picture, for example, displayed in "SCORE A: 123" Therefore, the user's operations can be reduced.
  • the selection box 650 may not be directly displayed on the picture 660, but may be displayed on the picture 660 by a trigger operation such as double-clicking the picture 660.
  • Step 740 According to the operation of adjusting the marquee, the part of the picture located in the marquee is displayed as the chat content to be sent.
  • the chat content to be sent refers to the content that the user can manipulate to send, including but not limited to the input content 670 and pictures located in the input field 640.
  • the user adjusts the selection box 650 The position and size of, you can intercept the desired part from the picture 660 to obtain another picture, which is used as the chat content to be sent.
  • multiple chat contents can be obtained. In this way, when the user is unwilling to make public or because of traffic or other information of the picture, some of the information in the picture can be sent by means of screenshots.
  • the gallery search method of this embodiment by receiving the input content of the chat interface, after searching the image related to the input content in the gallery, a marquee for capturing the image is displayed on the searched image, and the marquee is adjusted according to the The operation of displaying the part of the picture in the selection box as the chat content to be sent, the user can directly search for pictures in the gallery according to the content of the picture during instant messaging, so as to quickly intercept part of the picture as the chat content, which is faster and more efficient .
  • Fig. 10 is a schematic flowchart of a method for searching a gallery according to a sixth embodiment. Please refer to FIG. 10, the gallery search method of this embodiment, applied to a terminal, includes:
  • Step 810 Receive input content of the chat interface.
  • a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660.
  • the input content can be a word, a phrase, a symbol, a word, etc.
  • Step 820 Search the gallery for pictures related to the picture content and the input content.
  • step 520 For the specific implementation process of this step, reference may be made to the related description of step 520 in the fourth embodiment, which will not be repeated here.
  • Step 830 Display the picture content information derived from the searched pictures to obtain the chat content to be sent.
  • the searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • the chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630.
  • the input content 670 is "SCORE”, and according to the contact information 610, the contact chat content 620, and the user
  • the chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660.
  • the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
  • the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
  • the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
  • the image content includes text content and/or graphic content
  • the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
  • the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the text content contains 3 characters "A”, and one of the characters "A” is located in the center of the picture and the font is larger.
  • the text content contains 3 characters "A", none of the characters "A” are located in the center of the picture and the font is small.
  • the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
  • the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics.
  • the graphic content contains a circle with a shadow, and the circle is located at the center of the picture.
  • the graphic content contains 2 shaded circles, one of which is located in the center of the picture.
  • the area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b).
  • the higher the degree of relevance the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this.
  • the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
  • displaying the image content information derived from the searched image to obtain the chat content to be sent may include:
  • the picture content information in the marquee is exported to obtain the chat content to be sent.
  • the searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660.
  • the marquee used to select the content information of the picture displayed on the picture 660 can be displayed in the form of the marquee 650 used to capture the picture or displayed in other convenient ways. The user adjusts the position and size of the marquee , You can select the desired picture content information from the picture 660, and then export the picture content information in the marquee as the chat content to be sent.
  • the picture content information in the selection box is added to the input content 670 as the chat content to be sent, or the input content 670 is replaced with the picture content information in the selection box to obtain the chat content to be sent.
  • the initial position of the marquee used to select the image content information can be located at the image content associated with the input content of the searched image, for example, displayed in "SCORE A: 123”, which can reduce user operations.
  • the marquee used to select picture content information may not be directly displayed on the picture 660, but can be displayed on the picture 660 by long-pressing the picture 660 and other trigger operations. .
  • the picture content information in the marquee as the chat content to be sent when exporting the picture content information in the marquee as the chat content to be sent, it can also automatically export the picture content information from the picture according to the preset number of characters, and the part that exceeds the preset number of characters will not be exported. That is, the exported picture content information is less than or equal to the preset number.
  • the process of exporting the image content information may also be automatic export.
  • displaying the image content information derived from the searched image to obtain the chat content to be sent may include:
  • the picture content information associated with the input content in the picture is exported to the input column by means of automatic recognition and extraction.
  • the picture content information associated with the input content 670 in the picture 660 is "SCORE A: 123 "Or "123"
  • the picture content information when used as the chat content to be sent, it can be directly inserted into the current input content 670 or replace the current input content 670, thereby obtaining new input content as the chat content to be sent, that is, "SCORE A: 123" or "123” as the chat content to be sent.
  • the exported picture content information is less than or equal to a preset number.
  • the image content includes text content and/or graphic content. Therefore, in addition to exporting the text content in the image, you can also export the corresponding graphics from the associated image and insert it into the input content 670, for example, when the input content is "red circle” , The red circle can be derived from the associated picture and inserted into the input content 670, thereby enriching the style of the input content 670.
  • the image content is searched in the gallery for pictures associated with the input content, and then the image content information derived from the searched pictures is displayed to obtain the chat content to be sent.
  • the user can directly search for pictures in the gallery according to the content of the pictures during instant messaging, so as to obtain the information derived from the pictures as the chat content, which is faster and more efficient.
  • Fig. 11 is one of the schematic structural diagrams of the terminal according to the seventh embodiment.
  • the terminal 10 of this embodiment includes a memory 102 and a processor 106.
  • the memory 102 is used to store at least one program instruction
  • the processor 106 is used to load and execute at least one program instruction to implement the first embodiment to the first embodiment.
  • the terminal 10 includes a memory 102, a storage controller 104, one or more (only one is shown in the figure) processor 106, a peripheral interface 108, a radio frequency module 150, a positioning module 112, and a camera Module 114, audio module 116, screen 118, and button module 160. These components communicate with each other through one or more communication buses/signal lines 122.
  • FIG. 12 is only for illustration, and the terminal 102 may also include more or fewer components than those shown in FIG. 12, or have a different configuration from that shown in FIG.
  • the components shown in FIG. 12 can be implemented by hardware, software, or a combination thereof.
  • the memory 102 can be used to store software programs and modules, such as program instructions/modules corresponding to the library search method in the embodiment of the present application.
  • the processor 106 executes various functions by running the software programs and modules stored in the storage controller 104 Application and data processing realize the above-mentioned gallery search method.
  • the memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 102 may further include a memory remotely provided with respect to the processor 106, and these remote memories may be connected to the terminal 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
  • the peripheral interface 108 couples various input/input devices to the CPU and the memory 102.
  • the processor 106 runs various software and instructions in the memory 102 to perform various functions of the terminal 10 and perform data processing.
  • peripheral interface 108, the processor 106, and the storage controller 104 may be implemented in a single chip. In some other instances, they can be implemented by independent chips.
  • the radio frequency module 150 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with a communication network or other devices.
  • the radio frequency module 150 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, and so on.
  • the radio frequency module 150 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (wideband code division multiple access (W-CDMA), code division multiple access (Code division access, CDMA), time division multiple access (TDMA), Bluetooth, wireless fidelity technology (Wireless Fidelity, WiFi) (such as the American Institute of Electrical and Electronics Engineers standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet phone (Voice over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols used for mail, instant messaging and short messages, and any other suitable communication protocols, including those currently available A protocol that has not yet been developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • W-CDMA wideband code division multiple access
  • CDMA code division multiple access
  • the positioning module 112 is used to obtain the current position of the terminal 10.
  • Examples of the positioning module 112 include, but are not limited to, a global satellite positioning system (GPS), a positioning technology based on a wireless local area network or a mobile communication network.
  • GPS global satellite positioning system
  • the camera module 114 is used to take photos or videos.
  • the captured photos or videos can be stored in the memory 102 and can be sent through the radio frequency module 150.
  • the audio module 116 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and an audio circuit.
  • the audio circuit receives sound data from the peripheral interface 108, converts the sound data into electrical information, and transmits the electrical information to the speaker.
  • the speaker converts electrical information into sound waves that can be heard by the human ear.
  • the audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to the peripheral interface 108 for further processing.
  • the audio data may be obtained from the memory 102 or through the radio frequency module 150.
  • the audio data may also be stored in the memory 102 or sent through the radio frequency module 150.
  • the audio module 116 may also include a headphone jack for providing an audio interface to headphones or other devices.
  • the screen 118 provides an output interface between the terminal 10 and the user. Specifically, the screen 118 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. It is understandable that the screen 118 may also include a touch screen.
  • the touch screen provides an output and input interface between the terminal 10 and the user at the same time. In addition to displaying video output to the user, the touch screen also receives user input, such as gesture operations such as the user's click and slide, so that user interface objects can respond to these user inputs.
  • the technology for detecting user input may be based on resistive, capacitive, or any other possible touch detection technology. Specific examples of the touch screen display unit include, but are not limited to, a liquid crystal display or a light-emitting polymer display.
  • the button module 160 also provides an interface for the user to input to the terminal 10, and the user can press different buttons to make the terminal 10 perform different functions.
  • the present application also provides a computer storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the library search method as described in the first to sixth embodiments is implemented.
  • the computer storage medium is applied to the terminal shown in FIG. 11 or FIG. 12, so that the picture can be directly searched for and used according to the content of the picture, which is faster and more efficient.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes computer program code.
  • the computer program code runs on a computer, the computer executes the methods described in the various possible implementation manners above.
  • the embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the chip is installed
  • a chip including a memory and a processor
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program from the memory, so that the chip is installed
  • the device executes the methods described in the various possible implementation manners above.
  • first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • the word “if” as used herein can be interpreted as “when” or “when” or “in response to determination”.
  • singular forms “a”, “an” and “the” are intended to also include the plural forms, unless the context dictates to the contrary.
  • the gallery search method, terminal and computer storage medium of the present application by receiving search words, perform image recognition on pictures whose type of picture content in the gallery matches the search word, search for pictures associated with the recognition result and the search word, and then according to preset rules Displaying the searched pictures, users can directly search for pictures based on the content of the pictures, and view the search results displayed according to preset rules, which is faster and more efficient.
  • the user can directly according to the picture in the instant communication Content Search for pictures in the gallery, so that you can quickly use the picture information as chat content, which is faster and more efficient.

Landscapes

  • Engineering & Computer Science (AREA)
  • Library & Information 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An image gallery search method, a terminal (10), and a computer storage medium. The image gallery search method is applicable in the terminal (10) and comprises: receiving a search term; performing image recognition with respect to images of which the image content and type match the search term in the image gallery; searching for images for which the recognition results are related to the search term; and displaying, on the basis of a preset rule, the images found; or, receiving an input content of a chat interface (510); searching in the image gallery for images of which the image contents are related to the input content (520); and displaying, on the basis of the images found, a chat content to be transmitted (530). Such means allows the images to be searched directly on the basis of the contents of the images and the search results to be displayed on the basis of the preset rule, or, can be used in searching for images in the image gallery directly on the basis of the contents of the images during a chat process, and is convenient and efficient.

Description

图库搜索方法、终端及计算机存储介质Gallery search method, terminal and computer storage medium
本专利申请要求 2020年02月18日提交的中国专利申请号为202010100420.2,申请人为深圳传音控股股份有限公司,发明名称为“图库搜索方法、终端及计算机存储介质”的优先权,以及要求2020年02月18日提交的中国专利申请号为202010100435.9,申请人为深圳传音控股股份有限公司,发明名称为“图库搜索方法、终端及计算机存储介质”的优先权,该两件申请的全文以引用的方式并入本申请中。This patent application requires the priority of the Chinese patent application number 202010100420.2 filed on February 18, 2020, the applicant is Shenzhen Transsion Holdings Co., Ltd., and the invention title is "Gallery search method, terminal and computer storage medium", and requires 2020 The Chinese Patent Application No. 202010100435.9 filed on February 18, 2010. The applicant is Shenzhen Transsion Holdings Co., Ltd., and the title of the invention is the priority of "Gallery Search Method, Terminal and Computer Storage Medium". The full text of these two applications is quoted The method is incorporated into this application.
技术领域Technical field
本申请涉及终端技术领域,具体涉及一种图库搜索方法、终端及计算机存储介质。This application relates to the field of terminal technology, and in particular to a method for searching a gallery, a terminal, and a computer storage medium.
背景技术Background technique
随着终端技术的快速发展,手机、平板电脑等移动终端的功能也不断完善,逐渐成为了人们日常生活、工作中常用的工具之一。With the rapid development of terminal technology, the functions of mobile terminals such as mobile phones and tablet computers have also been continuously improved, and have gradually become one of the commonly used tools in people's daily life and work.
通常,终端中设有用于存储图片、视频的图库,用户可以通过浏览或搜索的方式查看图库中的图片、视频,当图库存储量较大时,用户更倾向于通过搜索的方式快速找到想要的内容,然而,当前的搜索方式仅限于在原有的分类如时间、人物、事物等条件下进行搜索,分类有限且准确率不高,导致用户经常无法搜索到想要的内容,只能手动浏览查找,过程繁琐,用户体验差。Generally, the terminal is equipped with a gallery for storing pictures and videos. Users can view the pictures and videos in the gallery by browsing or searching. When the amount of gallery storage is large, users are more inclined to quickly find what they want by searching. However, the current search method is limited to searching under the original classification such as time, person, thing, etc. The classification is limited and the accuracy rate is not high, resulting in users often unable to search for the desired content and can only browse manually The search process is cumbersome and the user experience is poor.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The foregoing description is to provide general background information, and does not necessarily constitute prior art.
技术问题technical problem
通常,终端中设有用于存储图片、视频的图库,用户可以通过浏览或搜索的方式查看图库中的图片、视频,当图库存储量较大时,用户更倾向于通过搜索的方式快速找到想要的内容,然而,当前的搜索方式仅限于在原有的分类如时间、人物、事物等条件下进行搜索,分类有限且准确率不高,导致用户经常无法搜索到想要的内容,只能手动浏览查找,过程繁琐,用户体验差。Generally, the terminal is equipped with a gallery for storing pictures and videos. Users can view the pictures and videos in the gallery by browsing or searching. When the amount of gallery storage is large, users are more inclined to quickly find what they want by searching. However, the current search method is limited to searching under the original classification such as time, person, thing, etc. The classification is limited and the accuracy rate is not high, resulting in users often unable to search for the desired content and can only browse manually The search process is cumbersome and the user experience is poor.
技术解决方案Technical solutions
针对上述技术问题,本申请提供一种图库搜索方法、终端及计算机存储介质,可以直接根据图片的内容查找图片,更加快捷、高效。In response to the above technical problems, this application provides a method, terminal, and computer storage medium for searching a gallery, which can directly search for pictures based on the content of the pictures, which is faster and more efficient.
为解决上述技术问题,本申请提供一种图库搜索方法,应用于一终端,包括:In order to solve the above technical problems, this application provides a method for searching a gallery, which is applied to a terminal, and includes:
接收搜索词;Receive search terms;
对图库中图片内容的类型与所述搜索词匹配的图片进行图像识别;Performing image recognition on pictures whose types of picture content in the gallery match the search term;
搜索识别结果与所述搜索词关联的图片;Search for a picture associated with the search term as a result of the recognition;
根据预设规则展示搜索到的图片。Display the searched pictures according to preset rules.
其中,所述对图库中图片内容的类型与所述搜索词匹配的图片进行图像识别,包括以下至少一种:Wherein, said performing image recognition on a picture whose type of picture content in the gallery matches the search term includes at least one of the following:
当与所述搜索词匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容;When the type of the image content matching the search term is text, image recognition is performed on the image whose type of the image content is text in the gallery to obtain the text content in the image;
当与所述搜索词匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容。When the type of the picture content matching the search term is a graphic, image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture.
其中,所述方法,还包括:Wherein, the method further includes:
根据所述搜索词查找一级图片分类;Find a first-level picture classification according to the search term;
在所述一级图片分类的下级图片分类中搜索图片内容与所述搜索词关联的图片。Search for a picture whose picture content is associated with the search term in a lower-level picture category of the first-level picture category.
其中,所述方法,还包括:Wherein, the method further includes:
根据所述图库中的图片的图片内容对所述图库中的图片进行分类;Classify the pictures in the gallery according to the picture content of the pictures in the gallery;
根据分类结果建立至少一所述一级图片分类;Establishing at least one of the first-level picture classifications according to the classification results;
根据各所述一级图片分类中的图片的图片内容对各所述一级图片分类中的图片进行分类,建立各所述一级图片分类对应的至少一下级图片分类。Classify the pictures in each of the first-level picture categories according to the picture content of the pictures in each of the first-level picture categories, and establish at least a lower-level picture category corresponding to each of the first-level picture categories.
其中,所述根据预设规则展示搜索到的图片,包括:Wherein, displaying the searched pictures according to preset rules includes:
根据与所述搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示;和/或,Arrange and display the searched pictures according to the display characteristics of the picture content associated with the search term in each searched picture; and/or,
在搜索到的图片的与所述搜索词关联的图片内容处显示预设标识。A preset identifier is displayed at the image content associated with the search term in the searched image.
其中,所述图片内容包括文字内容和/或图形内容,所述显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display feature includes at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
其中,所述根据预设规则展示搜索到的图片,还包括:Wherein, said displaying the searched pictures according to preset rules further includes:
当搜索到的图片包括来自同一视频的至少一张图片时,展示所述至少一张图片及来源视频,或者,展示所述至少一张图片的其中之一及来源视频。When the searched pictures include at least one picture from the same video, display the at least one picture and the source video, or display one of the at least one picture and the source video.
本申请还提供第二种图库搜索方法,应用于一终端,包括:This application also provides a second method for searching the gallery, which is applied to a terminal, including:
接收聊天界面的输入内容;Receive input from the chat interface;
在图库中搜索图片内容与所述输入内容关联的图片;Searching for pictures in the gallery for pictures whose content is associated with the input content;
根据搜索到的图片显示待发送的聊天内容。Display the chat content to be sent according to the searched pictures.
在第二种图库搜索方法中,所述在图库中搜索图片内容与所述输入内容关联的图片,包括:In the second gallery search method, the search for pictures related to the input content in the gallery includes:
对图库中图片内容的类型与所述输入内容匹配的图片进行图像识别;Performing image recognition on the picture whose type of picture content in the gallery matches the input content;
搜索识别结果与所述输入内容关联的图片。Search for a picture associated with the input content as a result of the recognition.
在第二种图库搜索方法中,所述对图库中图片内容的类型与所述输入内容匹配的图片进行图像识别,包括以下至少一种:In the second gallery search method, said performing image recognition on pictures whose type of picture content matches said input content in the gallery includes at least one of the following:
当与所述输入内容匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果;When the type of the image content matching the input content is text, image recognition is performed on the image whose type of the image content is text in the gallery, to obtain the text content in the image as a recognition result;
当与所述输入内容匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容作为识别结果。When the type of the picture content matching the input content is a graphic, image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture as a recognition result.
在第二种图库搜索方法中,所述在图库中搜索图片内容与所述输入内容关联的图片,包括:In the second gallery search method, the search for pictures related to the input content in the gallery includes:
根据所述输入内容查找一级图片分类;Searching for a first-level picture classification according to the input content;
在所述一级图片分类的下级图片分类中搜索图片内容与所述输入内容关联的图片。Search for a picture whose picture content is associated with the input content in a lower-level picture category of the first-level picture category.
第二种图库搜索方法,还包括:The second gallery search method also includes:
根据所述图库中的图片的图片内容对所述图库中的图片进行分类;Classify the pictures in the gallery according to the picture content of the pictures in the gallery;
根据分类结果建立至少一所述一级图片分类;Establishing at least one of the first-level picture classifications according to the classification results;
根据各所述一级图片分类中的图片的图片内容对各所述一级图片分类中的图片进行分类,建立各所述一级图片分类对应的至少一下级图片分类。Classify the pictures in each of the first-level picture categories according to the picture content of the pictures in each of the first-level picture categories, and establish at least a lower-level picture category corresponding to each of the first-level picture categories.
在第二种图库搜索方法中,所述根据搜索到的图片显示待发送的聊天内容,包括:In the second gallery search method, the displaying the chat content to be sent according to the searched pictures includes:
根据所述输入内容对应的聊天场景从搜索到的所有图片中选择至少一关联图片;Selecting at least one related picture from all the searched pictures according to the chat scene corresponding to the input content;
显示所述至少一关联图片作为待发送的聊天内容,和/或,显示从所述至少一关联图片中导出的图片内容信息作为待发送的聊天内容。The at least one related picture is displayed as the chat content to be sent, and/or the picture content information derived from the at least one related picture is displayed as the chat content to be sent.
在第二种图库搜索方法中,所述根据搜索到的图片显示待发送的聊天内容,包括:In the second gallery search method, the displaying the chat content to be sent according to the searched pictures includes:
在搜索到的图片上显示用于截取图片的选取框;Display the marquee used to capture the picture on the searched picture;
根据调整所述选取框的操作,显示位于所述选取框内的图片部分作为待发送的聊天内容。According to the operation of adjusting the marquee box, the part of the picture located in the marquee box is displayed as the chat content to be sent.
在第二种图库搜索方法中,所述根据搜索到的图片显示待发送的聊天内容,包括:In the second gallery search method, the displaying the chat content to be sent according to the searched pictures includes:
显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容。Display the picture content information derived from the searched pictures to get the chat content to be sent.
在第二种图库搜索方法中,所述显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,包括:In the second gallery search method, the displaying the image content information derived from the searched image to obtain the chat content to be sent includes:
在搜索到的图片上显示用于选取图片内容信息的选取框,根据调整所述选取框的操作,导出位于所述选取框内的图片内容信息以得到待发送的聊天内容;和/或,Display a marquee box for selecting picture content information on the searched pictures, and export the picture content information in the marquee box according to the operation of adjusting the marquee box to obtain the chat content to be sent; and/or,
显示从搜索到的图片中导出的与所述输入内容关联的图片内容信息以得到待发送的聊天内容。Display the picture content information associated with the input content derived from the searched pictures to obtain the chat content to be sent.
本申请还提供一种终端,包括存储器与处理器,所述存储器用于存储至少一条程序指令,所述处理器用于通过加载并执行所述至少一条程序指令以实现如上所述的图库搜索方法。The present application also provides a terminal, including a memory and a processor, the memory is configured to store at least one program instruction, and the processor is configured to load and execute the at least one program instruction to implement the library search method described above.
本申请还提供一种计算机存储介质,所述计算机存储介质上存储有计算机程序指令;所述计算机程序指令被处理器执行时实现如上所述的图库搜索方法。The present application also provides a computer storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the above-mentioned gallery search method is implemented.
有益效果Beneficial effect
本申请的图库搜索方法、终端及计算机存储介质,通过接收搜索词,对图库中图片内容的类型与搜索词匹配的图片进行图像识别,搜索识别结果与搜索词关联的图片,再根据预设规则展示搜索到的图片,用户可以直接根据图片的内容查找图片,并查看到根据预设规则展示的搜索结果,更加快捷、高效。以及在聊天过程中,通过接收聊天界面的输入内容,在图库中搜索图片内容与输入内容关联的图片,再根据搜索到的图片显示待发送的聊天内容,用户可以在即时通信时直接根据图片的内容在图库中搜索图片,从而快速使用图片的信息作为聊天内容,更加快捷、高效。The gallery search method, terminal and computer storage medium of the present application, by receiving search words, perform image recognition on pictures whose type of picture content in the gallery matches the search word, search for pictures associated with the recognition result and the search word, and then according to preset rules Displaying the searched pictures, users can directly search for pictures based on the content of the pictures, and view the search results displayed according to preset rules, which is faster and more efficient. And in the process of chatting, by receiving the input content of the chat interface, searching for pictures related to the image content and the input content in the gallery, and then displaying the chat content to be sent according to the searched pictures, the user can directly according to the picture in the instant communication Content Search for pictures in the gallery, so that you can quickly use the picture information as chat content, which is faster and more efficient.
附图说明Description of the drawings
图1是根据第一实施例示出的图库搜索方法的流程示意图;FIG. 1 is a schematic flowchart of a method for searching a gallery according to a first embodiment;
图2是根据第一实施例示出的一种搜索结果的示意图;Fig. 2 is a schematic diagram showing a search result according to the first embodiment;
图3是根据第一实施例示出的另一种搜索结果的示意图;Fig. 3 is a schematic diagram showing another search result according to the first embodiment;
图4是根据第一实施例示出的再一种搜索结果的示意图;Fig. 4 is a schematic diagram showing still another search result according to the first embodiment;
图5是根据第二实施例示出的图库搜索方法的流程示意图;FIG. 5 is a schematic flowchart of a method for searching a gallery according to a second embodiment;
图6是根据第三实施例示出的图库搜索方法的流程示意图;6 is a schematic flowchart of a method for searching a gallery according to a third embodiment;
图7是根据第四实施例示出的图库搜索方法的流程示意图;FIG. 7 is a schematic flowchart of a method for searching a gallery according to a fourth embodiment;
图8是根据第四实施例示出的聊天界面的示意图;Fig. 8 is a schematic diagram of a chat interface according to a fourth embodiment;
图9是根据第五实施例示出的图库搜索方法的流程示意图;FIG. 9 is a schematic flowchart of a method for searching a gallery according to a fifth embodiment;
图10是根据第六实施例示出的图库搜索方法的流程示意图;FIG. 10 is a schematic flowchart of a method for searching a gallery according to a sixth embodiment;
图11是根据第七实施例示出的终端的结构示意图之一;Fig. 11 is one of the schematic structural diagrams of a terminal according to a seventh embodiment;
图12是图11所示终端的结构示意图之二。Fig. 12 is a second structural diagram of the terminal shown in Fig. 11.
本申请的实施方式Implementation of this application
以下由特定的具体实施例说明本申请的实施方式,熟悉此技术的人士可由本说明书所揭露的内容轻易地了解本申请的其他优点及功效。The following specific examples illustrate the implementation of this application. Those familiar with this technology can easily understand the other advantages and effects of this application from the content disclosed in this specification.
在下述描述中,参考附图,附图描述了本申请的若干实施例。应当理解,还可使用其他实施例,并且可以在不背离本申请的精神和范围的情况下进行机械组成、结构、电气以及操作上的改变。下面的详细描述不应该被认为是限制性的,这里使用的术语仅是为了描述特定实施例,而并非旨在限制本申请。In the following description, with reference to the accompanying drawings, the accompanying drawings describe several embodiments of the present application. It should be understood that other embodiments can also be used, and mechanical, structural, electrical, and operational changes can be made without departing from the spirit and scope of the present application. The following detailed description should not be considered as restrictive, and the terms used here are only for describing specific embodiments and are not intended to limit the application.
第一实施例The first embodiment
图1是根据第一实施例示出的图库搜索方法的流程示意图。请参考图1,本实施例的图库搜索方法,应用于一终端,包括:Fig. 1 is a schematic flowchart of a gallery search method according to a first embodiment. Please refer to Figure 1. The gallery search method of this embodiment is applied to a terminal and includes:
步骤110,接收搜索词。Step 110: Receive a search term.
其中,搜索词例如在图库的搜索栏或任意其他可以用于搜索图库的输入栏中输入的内容,搜索词可以是一个字、一个短语或是符号、单词等。Wherein, the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
步骤120,在图库中搜索图片内容与搜索词关联的图片。Step 120: Search the image gallery for the image associated with the image content and the search term.
其中,图片内容为图片的组成内容,包括文字内容和/或图形内容。文字内容也即由字符组成的内容,可以是汉字、拼音或英语等任意可识别的字符。图形内容也即具有形状、颜色的图形所组成的内容,例如一块红色的区域、一个红色的圆形、方形等。Among them, the image content is the constituent content of the image, including text content and/or graphic content. The text content is the content composed of characters, which can be any recognizable characters such as Chinese characters, Pinyin or English. Graphic content is also content composed of graphics with shapes and colors, such as a red area, a red circle, a square, and so on.
在搜索图片时,先对搜索词进行分析来缩小或确定搜索范围,例如获知用户输入当前的搜索词所要搜索的图片内容的类型,或者,根据搜索词的内容确定所要搜索的图片分类等。When searching for pictures, the search terms are first analyzed to narrow or determine the search scope, for example, to know the type of picture content that the user enters the current search term to search for, or to determine the picture category to be searched based on the content of the search term.
在一实施方式中,在图库中搜索图片内容与搜索词关联的图片的过程,包括:In one embodiment, the process of searching for pictures related to the content of the pictures and the search terms in the gallery includes:
对图库中图片内容的类型与搜索词匹配的图片进行图像识别;Perform image recognition on pictures whose type of picture content in the gallery matches the search term;
搜索识别结果与搜索词关联的图片。Search for the picture associated with the search term and the recognition result.
其中,图库中每张图片的图片内容的类型可以在图片新增时自动进行识别并进行标示,图片内容的类型为文字、图形或文字和图形的组合。不同的搜索词可匹配不同类型的图片内容,一个搜索词可以匹配至少一种类型的图片内容,例如,搜索词为“红色”时,其可匹配类型为文字和图形的图片内容,而搜索词“分数”,则仅匹配类型为文字的图片内容。Among them, the type of the picture content of each picture in the gallery can be automatically identified and marked when the picture is added, and the type of the picture content is text, graphics, or a combination of text and graphics. Different search terms can match different types of image content. A search term can match at least one type of image content. For example, when the search term is "red", it can match text and graphic image content, and the search term "Score", only match the content of the image whose type is text.
当与搜索词匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果。以搜索词为“分数”为例,对图库中图片内容的类型为文字的图片进行图像识别,在得到识别结果后,对识别结果进行筛选,与搜索词关联的识别结果可以包含“分数”、“得分”、“fenshu”、“份数”等内容,也就是说,与搜索词相同、意思相似、发音相同的内容均为关联的内容。When the type of the image content matching the search term is text, image recognition is performed on the image whose type of the image content is text in the gallery, so as to obtain the text content in the image as a recognition result. Taking the search term as "score" as an example, perform image recognition on pictures in the gallery whose content type is text. After the recognition results are obtained, the recognition results are filtered. The recognition results associated with the search terms can include "scores", Contents such as "score", "fenshu", and "number of copies", that is to say, content with the same search term, similar meaning, and same pronunciation are all related content.
当与搜索词匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容。以搜索词为“红色”为例,对图库中图片内容的类型为图形的图片进行图像识别,在得到识别结果后,对识别结果进行筛选,与搜索词关联的识别结果只需图中包含红色或红色系的图形区域即可。针对内容为“红色”的搜索词,还可以同时进行对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果,不再赘述。When the type of the picture content that matches the search term is a graphic, image recognition is performed on the picture whose type of the picture content is a graphic in the gallery to obtain the graphic content in the picture. Taking the search term as "red" as an example, perform image recognition on the picture whose content type is graphics in the gallery. After the recognition result is obtained, the recognition result is filtered. The recognition result associated with the search term only needs to contain red in the picture. Or the red graphics area. For search terms whose content is "red", image recognition can also be performed on pictures whose content type is text in the gallery at the same time, so as to obtain the text content in the picture as the recognition result, which will not be repeated here.
在另一实施方式中,在图库中搜索图片内容与搜索词关联的图片,包括:In another embodiment, the search for pictures associated with the image content and the search term in the gallery includes:
根据搜索词查找一级图片分类;Find the first-level picture classification according to the search term;
在一级图片分类的下级图片分类中搜索图片内容与搜索词关联的图片。Search for pictures associated with the image content and the search term in the lower-level picture categories of the first-level picture category.
其中,预先根据图库中的图片的图片内容对图库中的图片进行分类,根据分类结果建立至少一一级图片分类,接着,再根据各一级图片分类中的图片的图片内容对各一级图片分类中的图片进行分类,建立各一级图片分类对应的至少一下级图片分类。例如,同一关键词在多张图片同时出现的次数达设定次数以上,自动设立一级图片分类,以关键词“分数”为例,针对多张包含5个以上的关键词“分数”的图片设立一级图片分类“分数”,接着,根据该多张图片中与关键词“分数”相关的内容建立下级图片分类,例如下级图片分类可以是“考试分数”、“游戏分数”等,在分类的过程中,地点、联系人关联照片的名称中包含“分数”的也纳入分类对象。Among them, the pictures in the gallery are classified in advance according to the picture content of the pictures in the gallery, at least one first-level picture classification is established according to the classification results, and then each first-level picture is classified according to the picture content of the pictures in each first-level picture classification The pictures in the classification are classified, and at least a lower-level picture classification corresponding to each first-level picture classification is established. For example, if the same keyword appears more than the set number of times in multiple pictures at the same time, a first-level picture classification is automatically set up. Take the keyword "score" as an example, for multiple pictures that contain more than 5 keywords "score" Set up a first-level picture classification "score", and then create a lower-level picture classification based on the content related to the keyword "score" in the multiple pictures, for example, the lower-level picture classification can be "exam score", "game score", etc., in the classification In the process, the names of locations and contacts associated with photos that contain "scores" are also included in the classification.
在建立图片分类后,根据搜索词查找一级图片分类,再在一级图片分类的下级图片分类中搜索图片内容与搜索词关联的图片。以搜索词“入学分数”为例,先找到一级图片分类“分数”,再在其下级图片分类“考试分类”、“游戏分数”中找到关联的分类“考试分数”,进而在“考试分类”的图片中搜索图片内容与搜索词关联的图片,搜索时,可以对图库中图片内容的类型与搜索词匹配的图片进行图像识别,搜索识别结果与搜索词关联的图片,过程不再赘述。After the picture classification is established, the first-level picture classification is searched according to the search words, and then the pictures related to the picture content and the search word are searched in the lower-level picture classifications of the first-level picture classification. Take the search term "admission score" as an example, first find the first-level picture category "score", and then find the related category "exam score" in its lower-level picture categories "exam category" and "game score", and then in the "exam category" Search for pictures related to the search term in the picture. When searching, you can perform image recognition on pictures in the gallery whose type of picture content matches the search term, and search for pictures related to the search term in the recognition result. The process will not be repeated.
通过建立分类或对图片内容类型进行标识的方式,可以使搜索过程更加迅速,实际实现时,还可以优选采用图片压缩的方式进行搜索。By establishing classification or identifying the type of picture content, the search process can be made faster. In actual implementation, it is also preferable to use picture compression to search.
步骤130,根据预设规则展示搜索到的图片。Step 130: Display the searched pictures according to preset rules.
其中,在得到搜索结果后,根据预设规则展示搜索到的图片,预设规则包括预设排序规则和/或预设标识规则。Wherein, after the search results are obtained, the searched pictures are displayed according to preset rules, and the preset rules include preset sorting rules and/or preset identification rules.
在一实施方式中,根据预设规则展示搜索到的图片,包括:In one embodiment, displaying the searched pictures according to preset rules includes:
根据与搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示。According to the display characteristics of the image content associated with the search term in each searched image, the searched images are arranged and displayed.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
在另一实施方式中,根据预设规则展示搜索到的图片,包括:In another embodiment, displaying the searched pictures according to preset rules includes:
在搜索到的图片的与搜索词关联的图片内容处显示预设标识。The preset identifier is displayed at the image content associated with the search term in the searched image.
其中,预设标识包括预设颜色标识、预设框线标识、预设形变标识中的至少一种,预设颜色标识指将图片内容的颜色改变成预设颜色以突出对应的内容,例如变成红色,颜色的变化可以保持或者在一段时间后消失。预设框线标识指使用预设的框或线进行指示以突出对应的内容,例如,如图4所示,在关联的图片内容“SCORE A :123”中使用下划线190进行标识。预设形变标识指对图片内容进行预设的变形处理以突出对应的内容,例如,对图片内容进行倾斜、变大等处理。通过显示预设标识,有利于用户快速精准的找到关键信息。Wherein, the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark. The preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time. The preset frame line identification refers to using a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline 190 is used for identification in the associated picture content "SCORE A: 123". The preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
实际实现时,可在对图片进行排序的同时对图片进行预设标识,进行预设标识的图片可以是排在前预设数量的图片,也即对关联度高于一定值的图片进行预设标识的处理,从而减少图片搜索的运算过程。In actual implementation, the pictures can be pre-identified while sorting the pictures. The pictures to be pre-identified can be the first preset number of pictures, that is, the pictures with the degree of relevance higher than a certain value are preset Identification processing, thereby reducing the computational process of image search.
此外,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索到的图片包括来自同一视频的至少一张图片时,展示至少一张图片及来源视频,或者,展示至少一张图片的其中之一及来源视频,来自视频的图片和其他独立的图片一起展示,排序规则及预设标识的处理方式同上,不再赘述。In addition, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched. When the searched picture includes at least one picture from the same video, at least one picture and The source video, or one of at least one of the pictures and the source video, the pictures from the video are displayed together with other independent pictures, the sorting rules and the processing method of the preset identification are the same as above, and will not be repeated.
本实施例的图库搜索方法,通过接收搜索词,在图库中搜索图片内容与所述搜索词关联的图片,再根据预设规则展示搜索到的图片,用户可以直接根据图片的内容查找图片,并查看到根据预设规则展示的搜索结果,更加快捷、高效。In the gallery search method of this embodiment, by receiving a search term, the image content and the image associated with the search term are searched in the gallery, and the searched image is displayed according to preset rules. The user can directly search for the image based on the content of the image, and View the search results displayed according to preset rules, which is faster and more efficient.
第二实施例Second embodiment
图5是根据第二实施例示出的图库搜索方法的流程示意图。请参考图5,本实施例的图库搜索方法,应用于一终端,包括:Fig. 5 is a schematic flowchart of a method for searching a gallery according to a second embodiment. Please refer to FIG. 5, the gallery search method of this embodiment, applied to a terminal, includes:
步骤210,接收搜索词。Step 210: Receive a search term.
其中,搜索词例如在图库的搜索栏或任意其他可以用于搜索图库的输入栏中输入的内容,搜索词可以是一个字、一个短语或是符号、单词等。Wherein, the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
步骤220,在图库中搜索图片内容与搜索词关联的图片。Step 220: Search the gallery for pictures whose content is associated with the search term.
本步骤的具体实现过程可参考第一实施例中步骤120的相关描述,在此不再赘述。For the specific implementation process of this step, reference may be made to the related description of step 120 in the first embodiment, which will not be repeated here.
步骤230,根据与搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示。In step 230, the searched pictures are arranged and displayed according to the display characteristics of the picture content associated with the search term in each searched picture.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
进一步地,在根据与搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示的同时,在搜索到的图片的与搜索词关联的图片内容处显示预设标识。Further, while arranging and displaying the searched pictures according to the display characteristics of the picture content associated with the search term in each searched picture, the preview is displayed at the picture content associated with the search term of the searched picture. Set logo.
其中,预设标识包括预设颜色标识、预设框线标识、预设形变标识中的至少一种,预设颜色标识指将图片内容的颜色改变成预设颜色以突出对应的内容,例如变成红色,颜色的变化可以保持或者在一段时间后消失。预设框线标识指使用预设的框或线进行指示以突出对应的内容,例如,如图4所示,在关联的图片内容“SCORE A :123”中使用下划线进行标识。预设形变标识指对图片内容进行预设的变形处理以突出对应的内容,例如,对图片内容进行倾斜、变大等处理。通过显示预设标识,有利于用户快速精准的找到关键信息。Wherein, the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark. The preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time. The preset frame line identification refers to the use of a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline is used for identification in the associated picture content "SCORE A: 123". The preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
实际实现时,可在对图片进行排序的同时对图片进行预设标识,进行预设标识的图片可以是排在前预设数量的图片,也即对关联度高于一定值的图片进行预设标识的处理,从而减少图片搜索的运算过程。In actual implementation, the pictures can be pre-identified while sorting the pictures. The pictures to be pre-identified can be the first preset number of pictures, that is, the pictures with the degree of relevance higher than a certain value are preset Identification processing, thereby reducing the computational process of image search.
此外,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索到的图片包括来自同一视频的至少一张图片时,展示至少一张图片及来源视频,或者,展示至少一张图片的其中之一及来源视频,来自视频的图片和其他独立的图片一起展示,排序规则及预设标识的处理方式同上,不再赘述。In addition, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched. When the searched picture includes at least one picture from the same video, at least one picture and The source video, or one of at least one of the pictures and the source video, the pictures from the video are displayed together with other independent pictures, the sorting rules and the processing method of the preset identification are the same as above, and will not be repeated.
本实施例的图库搜索方法,通过接收搜索词,在图库中搜索图片内容与所述搜索词关联的图片,再在根据与搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示,用户可以直接根据图片的内容查找图片,并查看到按照关联度排序的搜索结果,更加快捷、高效。In the gallery search method of this embodiment, by receiving a search term, the image content of the image associated with the search term is searched in the gallery, and then according to the display characteristics of the image content associated with the search term in each searched image, The searched pictures are arranged and displayed, and users can directly search for pictures based on the content of the pictures, and view the search results sorted according to the degree of relevance, which is faster and more efficient.
第三实施例The third embodiment
图6是根据第三实施例示出的图库搜索方法的流程示意图。请参考图6,本实施例的图库搜索方法,应用于一终端,包括:Fig. 6 is a schematic flowchart of a method for searching a gallery according to a third embodiment. Please refer to FIG. 6, the gallery search method of this embodiment, applied to a terminal, includes:
步骤310,接收搜索词。Step 310: Receive a search term.
其中,搜索词例如在图库的搜索栏或任意其他可以用于搜索图库的输入栏中输入的内容,搜索词可以是一个字、一个短语或是符号、单词等。Wherein, the search term is, for example, content entered in the search bar of the gallery or any other input bar that can be used to search the gallery, and the search term can be a word, a phrase, a symbol, a word, etc.
步骤320,在图库中搜索图片内容与搜索词关联的图片。Step 320: Search the gallery for pictures whose content is associated with the search term.
本步骤的具体实现过程可参考第一实施例中步骤120的相关描述,在此不再赘述。For the specific implementation process of this step, reference may be made to the related description of step 120 in the first embodiment, which will not be repeated here.
步骤330,在搜索到的图片的与搜索词关联的图片内容处显示预设标识。Step 330: Display a preset identifier at the image content associated with the search term of the searched image.
其中,预设标识包括预设颜色标识、预设框线标识、预设形变标识中的至少一种,预设颜色标识指将图片内容的颜色改变成预设颜色以突出对应的内容,例如变成红色,颜色的变化可以保持或者在一段时间后消失。预设框线标识指使用预设的框或线进行指示以突出对应的内容,例如,如图4所示,在关联的图片内容“SCORE A :123”中使用下划线进行标识。预设形变标识指对图片内容进行预设的变形处理以突出对应的内容,例如,对图片内容进行倾斜、变大等处理。通过显示预设标识,有利于用户快速精准的找到关键信息。Wherein, the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark. The preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time. The preset frame line identification refers to the use of a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline is used for identification in the associated picture content "SCORE A: 123". The preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
进一步地,在搜索到的图片的与搜索词关联的图片内容处显示预设标识的同时,根据与搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示。Further, while displaying the preset identifier at the image content associated with the search term of the searched image, the searched images are arranged according to the display characteristics of the image content associated with the search term in each searched image exhibit.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
实际实现时,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索到的图片包括来自同一视频的至少一张图片时,展示至少一张图片及来源视频,或者,展示至少一张图片的其中之一及来源视频,来自视频的图片和其他独立的图片一起展示,排序规则及图片内容的标识规则同上。In actual implementation, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched. When the searched picture includes at least one picture from the same video, at least one picture is displayed Picture and source video, or display one of at least one picture and the source video, the picture from the video is displayed together with other independent pictures, the sorting rules and the identification rules of the picture content are the same as above.
此外,在对图片内容进行标识时,可以仅对排在前预设数量的图片进行标识,也即对关联度高于一定值的图片进行预设标识的处理,从而减少图片搜索的运算过程。In addition, when identifying the content of a picture, only the pre-set number of pictures in the front may be identified, that is, pictures with a correlation degree higher than a certain value may be pre-identified, thereby reducing the calculation process of the picture search.
本实施例的图库搜索方法,通过接收搜索词,在图库中搜索图片内容与所述搜索词关联的图片,再在搜索到的图片的与搜索词关联的图片内容处显示预设标识,用户可以直接根据图片的内容查找图片,并快速精准的找到关键信息,更加快捷、高效。In the gallery search method of this embodiment, by receiving a search term, the image content in the gallery is searched for a picture associated with the search term, and then a preset identifier is displayed at the image content associated with the search term of the searched image, and the user can Find pictures directly based on the content of the pictures, and find key information quickly and accurately, which is faster and more efficient.
第四实施例Fourth embodiment
图7是根据第四实施例示出的图库搜索方法的流程示意图。请参考图7,本实施例的图库搜索方法,应用于一终端,包括:Fig. 7 is a schematic flowchart of a method for searching a gallery according to a fourth embodiment. Please refer to FIG. 7, the gallery search method of this embodiment, applied to a terminal, includes:
步骤510,接收聊天界面的输入内容。Step 510: Receive input content of the chat interface.
请结合图8,一种聊天界面60中可显示有联系人信息610、联系人聊天内容620、本用户聊天内容630、输入栏640等,在输入栏640中,显示有用户操作输入的输入内容670,以及本申请实施例根据输入内容670显示的图库搜索结果,例如图片660。其中,输入内容可以是一个字、一个短语或是符号、单词等。在本实施例中,聊天界面接收的输入内容也即搜索词。Please refer to Figure 8, a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660. Among them, the input content can be a word, a phrase, a symbol, a word, etc. In this embodiment, the input content received by the chat interface is also the search term.
步骤520,在图库中搜索图片内容与输入内容关联的图片。Step 520: Search the gallery for a picture associated with the picture content and the input content.
其中,图片内容为图片的组成内容,包括文字内容和/或图形内容。文字内容也即由字符组成的内容,可以是汉字、拼音或英语等任意可识别的字符。图形内容也即具有形状、颜色的图形所组成的内容,例如一块红色的区域、一个红色的圆形、方形等。Among them, the image content is the constituent content of the image, including text content and/or graphic content. The text content is the content composed of characters, which can be any recognizable characters such as Chinese characters, Pinyin or English. Graphic content is also content composed of graphics with shapes and colors, such as a red area, a red circle, a square, and so on.
在搜索图片时,先对输入内容进行分析来缩小或确定搜索范围,例如获知用户输入当前的输入内容所要搜索的图片内容的类型,或者,根据输入内容的内容确定所要搜索的图片分类等。When searching for pictures, the input content is first analyzed to narrow or determine the search scope, for example, to know the type of picture content that the user wants to search for inputting the current input content, or to determine the picture category to be searched according to the content of the input content.
在一实施方式中,在图库中搜索图片内容与输入内容关联的图片的过程,包括:In one embodiment, the process of searching for pictures related to the input content and the picture content in the gallery includes:
对图库中图片内容的类型与输入内容匹配的图片进行图像识别;Perform image recognition on pictures whose type of picture content in the gallery matches the input content;
搜索识别结果与输入内容关联的图片。Search for pictures associated with the recognition result and the input content.
其中,图库中每张图片的图片内容的类型可以在图片新增时自动进行识别并进行标示,图片内容的类型为文字、图形或文字和图形的组合。不同的输入内容可匹配不同类型的图片内容,一个输入内容可以匹配至少一种类型的图片内容,例如,输入内容为“红色”时,其可匹配类型为文字和图形的图片内容,而输入内容“分数”,则仅匹配类型为文字的图片内容。Among them, the type of the picture content of each picture in the gallery can be automatically identified and marked when the picture is added, and the type of the picture content is text, graphics, or a combination of text and graphics. Different input content can match different types of image content, and one input content can match at least one type of image content. For example, when the input content is "red", it can match the image content of text and graphics, and the input content "Score", only match the content of the image whose type is text.
当与输入内容匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果。以输入内容为“分数”为例,对图库中图片内容的类型为文字的图片进行图像识别,在得到识别结果后,对识别结果进行筛选,与输入内容关联的识别结果可以包含“分数”、“得分”、“fenshu”、“份数”等内容,也就是说,与输入内容相同、意思相似、发音相同的内容均为关联的内容。When the type of the picture content that matches the input content is text, image recognition is performed on the picture whose picture content type is text in the gallery, so as to obtain the text content in the picture as a recognition result. Taking the input content as "score" as an example, perform image recognition on pictures in the gallery whose image content is text. After the recognition results are obtained, the recognition results are filtered. The recognition results associated with the input content can include "scores", "Score", "fenshu", "number of copies" and other content, that is, content with the same input content, similar meaning, and same pronunciation are all related content.
当与输入内容匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容。以输入内容为“红色”为例,对图库中图片内容的类型为图形的图片进行图像识别,在得到识别结果后,对识别结果进行筛选,与输入内容关联的识别结果只需图中包含红色或红色系的图形区域即可。针对内容为“红色”的输入内容,还可以同时进行对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果,不再赘述。When the type of the picture content matching the input content is a graphic, image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture. Taking the input content as "red" as an example, perform image recognition on the picture whose content type is graphics in the gallery. After the recognition result is obtained, the recognition result is filtered. The recognition result associated with the input content only needs to contain red in the picture. Or the red graphics area. For the input content whose content is "red", it is also possible to perform image recognition on the picture whose content type is text in the gallery at the same time, so as to obtain the text content in the picture as the recognition result, which will not be repeated here.
在另一实施方式中,在图库中搜索图片内容与输入内容关联的图片,包括:In another embodiment, searching for pictures associated with the picture content and the input content in the gallery includes:
根据输入内容查找一级图片分类;Find the first-level picture classification according to the input content;
在一级图片分类的下级图片分类中搜索图片内容与输入内容关联的图片。Search for pictures associated with the picture content and the input content in the lower-level picture categories of the first-level picture category.
其中,预先根据图库中的图片的图片内容对图库中的图片进行分类,根据分类结果建立至少一一级图片分类,接着,再根据各一级图片分类中的图片的图片内容对各一级图片分类中的图片进行分类,建立各一级图片分类对应的至少一下级图片分类。例如,同一关键词在多张图片同时出现的次数达设定次数以上,自动设立一级图片分类,以关键词“分数”为例,针对多张包含5个以上的关键词“分数”的图片设立一级图片分类“分数”,接着,根据该多张图片中与关键词“分数”相关的内容建立下级图片分类,例如下级图片分类可以是“考试分数”、“游戏分数”等,在分类的过程中,地点、联系人关联照片的名称中包含“分数”的也纳入分类对象。Among them, the pictures in the gallery are classified in advance according to the picture content of the pictures in the gallery, at least one first-level picture classification is established according to the classification results, and then each first-level picture is classified according to the picture content of the pictures in each first-level picture classification The pictures in the classification are classified, and at least a lower-level picture classification corresponding to each first-level picture classification is established. For example, if the same keyword appears more than the set number of times in multiple pictures at the same time, a first-level picture classification is automatically set up. Take the keyword "score" as an example, for multiple pictures that contain more than 5 keywords "score" Set up a first-level picture classification "score", and then create a lower-level picture classification based on the content related to the keyword "score" in the multiple pictures, for example, the lower-level picture classification can be "exam score", "game score", etc., in the classification In the process, the names of locations and contacts associated with photos that contain "scores" are also included in the classification.
在建立图片分类后,根据输入内容查找一级图片分类,再在一级图片分类的下级图片分类中搜索图片内容与输入内容关联的图片。以输入内容“入学分数”为例,先找到一级图片分类“分数”,再在其下级图片分类“考试分类”、“游戏分数”中找到关联的分类“考试分数”,进而在“考试分类”的图片中搜索图片内容与输入内容关联的图片,搜索时,可以对图库中图片内容的类型与输入内容匹配的图片进行图像识别,搜索识别结果与输入内容关联的图片,过程不再赘述。After the picture classification is established, the first-level picture classification is searched according to the input content, and then the pictures related to the input content are searched in the lower-level picture classification of the first-level picture classification. Take the input content "admission score" as an example, first find the first-level picture category "score", and then find the related category "examination score" in the subordinate image categories "exam category" and "game score", and then in the "examination category" Search for pictures related to the input content in the picture. When searching, you can perform image recognition on pictures in the gallery whose type of picture content matches the input content, and search for pictures related to the input content. The process will not be repeated.
通过建立分类或对图片内容类型进行标识的方式,可以使搜索过程更加迅速,实际实现时,还可以优选采用图片压缩的方式进行搜索。By establishing classification or identifying the type of picture content, the search process can be made faster. In actual implementation, it is also preferable to use picture compression to search.
步骤530,根据搜索到的图片显示待发送的聊天内容。Step 530: Display the chat content to be sent according to the searched picture.
其中,在得到搜索结果后,根据预设规则展示搜索到的图片,在本实施例中,对搜索结果进行一定处理,得到相应的待发送的聊天内容,待发送的聊天内容指用户可以操作进行发送的内容,包括但不限于位于输入栏640内的输入内容670,例如通过点选图片660也可直接发送图片660,此时,图片660也是待发送的聊天内容。Among them, after the search results are obtained, the searched pictures are displayed according to preset rules. In this embodiment, certain processing is performed on the search results to obtain the corresponding chat content to be sent. The chat content to be sent means that the user can operate The content to be sent includes, but is not limited to, the input content 670 located in the input field 640. For example, the image 660 can also be sent directly by clicking on the image 660. At this time, the image 660 is also the chat content to be sent.
在一实施方式中,根据搜索到的图片显示待发送的聊天内容,可包括:In an embodiment, displaying the chat content to be sent according to the searched pictures may include:
根据输入内容对应的聊天场景从搜索到的所有图片中选择至少一关联图片;Select at least one related picture from all the searched pictures according to the chat scene corresponding to the input content;
显示至少一关联图片作为待发送的聊天内容,和/或,显示至少一关联图片中与输入内容关联的图片内容信息作为待发送的聊天内容。At least one associated picture is displayed as the chat content to be sent, and/or the picture content information associated with the input content in the at least one associated picture is displayed as the chat content to be sent.
其中,搜索到的图片为与输入内容670关联的图片,接着,根据输入内容670对应的聊天场景从搜索到的所有图片中选择至少一关联图片,该关联图片例如为图片660。聊天场景可以根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出,例如,输入内容670为“SCORE”,而根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出用户想要发送的是科目“A”的分数,因而从所有找到的图片中选择包含“SCORE A”的至少一张图片,例如图片660。实际实现时,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索出的至少一关联图片包括来自同一视频的至少两张图片时,从至少两张图片选择一张图片作为关联图片。The searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. The chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630. For example, the input content 670 is "SCORE", and according to the contact information 610, the contact chat content 620, and the user The chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660. In actual implementation, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
进一步地,当关联图片大于一张时,可以根据关联图片与聊天场景的关联度对图片进行排序。Further, when there is more than one related picture, the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
或者,当关联图片大于一张时,还可以根据与输入内容关联的图片内容在各关联图片中的显示特征,对关联图片进行排列展示。Or, when there is more than one related picture, the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
在另一实施方式中,还可以在关联图片的与搜索词关联的图片内容处显示预设标识。In another embodiment, a preset identifier may also be displayed at the image content associated with the search term of the associated image.
其中,预设标识包括预设颜色标识、预设框线标识、预设形变标识中的至少一种,预设颜色标识指将图片内容的颜色改变成预设颜色以突出对应的内容,例如变成红色,颜色的变化可以保持或者在一段时间后消失。预设框线标识指使用预设的框或线进行指示以突出对应的内容,例如,如图4所示,在关联的图片内容“SCORE A :123”中使用下划线190进行标识。预设形变标识指对图片内容进行预设的变形处理以突出对应的内容,例如,对图片内容进行倾斜、变大等处理。通过显示预设标识,有利于用户快速精准的找到关键信息。Wherein, the preset mark includes at least one of a preset color mark, a preset border mark, and a preset deformation mark. The preset color mark refers to changing the color of the image content to a preset color to highlight the corresponding content, for example, To red, the color change can be maintained or disappear after a period of time. The preset frame line identification refers to using a preset frame or line to indicate to highlight the corresponding content. For example, as shown in FIG. 4, an underline 190 is used for identification in the associated picture content "SCORE A: 123". The preset deformation flag refers to performing preset deformation processing on the image content to highlight the corresponding content, for example, processing the image content to tilt or enlarge. By displaying the preset logo, it is helpful for users to find key information quickly and accurately.
在筛选出至少一关联图片后,可以直接显示筛选出的至少一关联图片作为待发送的聊天内容,和/或,显示筛选出的至少一关联图片中与输入内容关联的图片内容信息作为待发送的聊天内容。其中,如图8所示,直接显示筛选出的至少一关联图片作为待发送的聊天内容时,以图片660的方式显示在聊天界面60中,位置不以图中为限,或者也可以不显示在当前的聊天界面60中,而采用另一界面显示以方便用户浏览或选择,与此同时,还可以显示图片中与输入内容关联的图片内容信息作为待发送的聊天内容,例如,图片660中与输入内容670关联的图片内容信息为“SCORE A :123”或者“123”,图片内容信息作为待发送的聊天内容时,可直接插入当前的输入内容670中或替换当前的输入内容670,从而得到新的输入内容作为待发送的聊天内容。After at least one related picture is filtered out, the at least one filtered out related picture can be directly displayed as the chat content to be sent, and/or the picture content information related to the input content in the filtered out at least one related picture can be displayed as the to-be sent Chat content. Wherein, as shown in FIG. 8, when at least one related picture selected is directly displayed as the chat content to be sent, it is displayed in the chat interface 60 in the form of a picture 660, and the position is not limited to the picture, or may not be displayed. In the current chat interface 60, another interface display is used to facilitate the user to browse or select. At the same time, the picture content information associated with the input content in the picture can also be displayed as the chat content to be sent, for example, the picture 660 The picture content information associated with the input content 670 is "SCORE A: 123" or "123". When the picture content information is used as the chat content to be sent, it can be directly inserted into the current input content 670 or replace the current input content 670, thereby Get the new input content as the chat content to be sent.
在另一实施方式中,在根据搜索到的图片显示待发送的聊天内容时,还可以包括:In another embodiment, when displaying the chat content to be sent according to the searched picture, it may further include:
在搜索到的图片上显示用于截取图片的选取框;Display the marquee used to capture the picture on the searched picture;
根据调整选取框的操作,显示位于选取框内的图片部分作为待发送的聊天内容。According to the operation of adjusting the marquee, the part of the picture in the marquee is displayed as the chat content to be sent.
其中,搜索到的图片可以是根据输入内容670对应的聊天场景从搜索到的所有图片中选择的至少一关联图片,该关联图片例如为图片660。请参考图8,在图片660上显示用于截取图片的选取框650,用户通过调整选取框650的位置和大小,可以从图片660上截取想要的部分得到另一张图片,由此作为待发送的聊天内容。如此,在用户或因为流量或因为图片其他信息不愿公开时,可以采用截图的方式发送图中的部分信息。选取框650的初始位置可位于搜索到的图片的与输入内容关联的图片内容处,例如显示在“SCORE A :123”的位置处,从而可以减少用户的操作,当然,选取框650也可不直接显示在图片660上,而可以通过双击图片660等触发操作显示在图片660上。The searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. Please refer to FIG. 8, a marquee 650 for capturing the picture is displayed on the picture 660. The user can capture the desired part from the picture 660 to obtain another picture by adjusting the position and size of the marquee 650, which serves as a waiting The chat content sent. In this way, when the user is unwilling to make public or because of traffic or other information of the picture, some of the information in the picture can be sent by means of screenshots. The initial position of the marquee 650 can be located at the image content associated with the input content of the searched picture, for example, displayed at the position of "SCORE A: 123", which can reduce user operations. Of course, the marquee 650 can also be indirect It is displayed on the picture 660, and can be displayed on the picture 660 by triggering operations such as double-clicking the picture 660.
在再一实施方式中,根据搜索到的图片显示待发送的聊天内容,还可以是包括:In still another embodiment, displaying the chat content to be sent according to the searched pictures may also include:
显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容。Display the picture content information derived from the searched pictures to get the chat content to be sent.
其中,导出图片内容信息的过程可为手动选择导出,例如,显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,还可以包括:Wherein, the process of exporting the picture content information can be manually selecting the export, for example, displaying the picture content information derived from the searched pictures to obtain the chat content to be sent, and may also include:
在搜索到的图片上显示用于选取图片内容信息的选取框;Display a selection box for selecting the content information of the picture on the searched picture;
根据调整选取框的操作,导出位于选取框内的图片内容信息以得到待发送的聊天内容。According to the operation of adjusting the marquee, the picture content information in the marquee is exported to obtain the chat content to be sent.
其中,搜索到的图片可以是根据输入内容670对应的聊天场景从搜索到的所有图片中选择的至少一关联图片,该关联图片例如为图片660。请参考图8,在图片660上显示用于选取图片内容信息的选取框可参考用于截取图片的选取框650的形式显示或采用其它便于操作的方式显示,用户通过调整选取框的位置和大小,可以从图片660上选取想要的图片内容信息,进而导出位于选取框内的图片内容信息作为待发送的聊天内容,在导出位于选取框内的图片内容信息作为待发送的聊天内容时,将位于选取框内的图片内容信息加入输入内容670中作为待发送的聊天内容,或者,将输入内容670替换成位于选取框内的图片内容信息而得到待发送的聊天内容。如此,在用户或因为流量或因为图片其他信息不愿公开时,可以采用导出的方式发送图中的关键内容信息即可。用于选取图片内容信息的选取框的初始位置可位于搜索到的图片的与输入内容关联的图片内容处,例如显示在“SCORE A :123”的位置处,从而可以减少用户的操作,当然,用于选取图片内容信息的选取框也可不直接显示在图片660上,而可以通过长按图片660等触发操作显示在图片660上。The searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. Please refer to FIG. 8. The marquee used to select the content information of the picture displayed on the picture 660 can be displayed in the form of the marquee 650 used to capture the picture or displayed in other convenient ways. The user adjusts the position and size of the marquee , You can select the desired picture content information from the picture 660, and then export the picture content information in the marquee as the chat content to be sent. When exporting the picture content information in the marquee as the chat content to be sent, The picture content information in the selection box is added to the input content 670 as the chat content to be sent, or the input content 670 is replaced with the picture content information in the selection box to obtain the chat content to be sent. In this way, when the user is unwilling to make the public due to traffic or other information of the picture, the key content information in the picture can be sent in the way of export. The initial position of the marquee used to select the image content information can be located at the image content associated with the input content of the searched image, for example, displayed in "SCORE A: 123”, which can reduce user operations. Of course, the marquee used to select picture content information may not be directly displayed on the picture 660, but can be displayed on the picture 660 by long-pressing the picture 660 and other trigger operations. .
实际实现时,在导出位于选取框内的图片内容信息作为待发送的聊天内容时,还可以是根据预设字符数量自动从图片中导出图片内容信息,超出预设字符数量的部分不再导出,也即导出的图片内容信息小于或等于预设数量。In actual implementation, when exporting the picture content information in the marquee as the chat content to be sent, it can also automatically export the picture content information from the picture according to the preset number of characters, and the part that exceeds the preset number of characters will not be exported. That is, the exported picture content information is less than or equal to the preset number.
此外,导出图片内容信息的过程也可为自动导出,例如,显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,可以包括:In addition, the process of exporting picture content information can also be automatic export. For example, displaying the picture content information derived from the searched pictures to obtain the chat content to be sent, which may include:
显示从搜索到的图片中导出的与输入内容关联的图片内容信息以得到待发送的聊天内容。Display the picture content information associated with the input content derived from the searched pictures to obtain the chat content to be sent.
其中,通过自动识别提取的方式将图片中与输入内容关联的图片内容信息导出至输入栏中,例如,在图8中,图片660中与输入内容670关联的图片内容信息为“SCORE A :123”或者“123”,图片内容信息作为待发送的聊天内容时,可直接插入当前的输入内容670中或替换当前的输入内容670,从而得到新的输入内容作为待发送的聊天内容,也即得到“SCORE A :123”或者“123”作为待发送的聊天内容。在自动导出与所述输入内容关联的图片内容信息时,导出的图片内容信息小于或等于预设数量。Among them, the picture content information associated with the input content in the picture is exported to the input column by means of automatic recognition and extraction. For example, in FIG. 8, the picture content information associated with the input content 670 in the picture 660 is "SCORE A: 123 "Or "123", when the picture content information is used as the chat content to be sent, it can be directly inserted into the current input content 670 or replace the current input content 670, thereby obtaining new input content as the chat content to be sent, that is, "SCORE A: 123" or "123" as the chat content to be sent. When automatically exporting the picture content information associated with the input content, the exported picture content information is less than or equal to a preset number.
图片内容包括文字内容和/或图形内容,因此,除了导出图片中的文字内容之外,还可从关联的图片中导出相应的图形插入输入内容670中,例如,输入内容为“红色圆圈”时,可以从关联的图片中导出红色圆圈,并将其插入输入内容670中,从而丰富输入内容670的样式。The image content includes text content and/or graphic content. Therefore, in addition to exporting the text content in the image, you can also export the corresponding graphics from the associated image and insert it into the input content 670, for example, when the input content is "red circle" , The red circle can be derived from the associated picture and inserted into the input content 670, thereby enriching the style of the input content 670.
本实施例的图库搜索方法,通过接收聊天界面的输入内容,在图库中搜索图片内容与输入内容关联的图片,再根据搜索到的图片显示待发送的聊天内容,用户可以在即时通信时直接根据图片的内容搜索图片,从而快速使用图片的信息作为聊天内容,更加快捷、高效。In the gallery search method of this embodiment, by receiving the input content of the chat interface, searching for pictures related to the image content and the input content in the gallery, and then displaying the chat content to be sent according to the searched pictures, the user can directly follow The content of the picture searches for the picture, so that the information of the picture can be quickly used as the chat content, which is faster and more efficient.
第五实施例Fifth embodiment
图9是根据第五实施例示出的图库搜索方法的流程示意图。请参考图9,本实施例的图库搜索方法,应用于一终端,包括:Fig. 9 is a schematic flowchart of a method for searching a gallery according to a fifth embodiment. Please refer to FIG. 9, the gallery search method of this embodiment, applied to a terminal, includes:
步骤710,接收聊天界面的输入内容。Step 710: Receive input content of the chat interface.
请结合图8,一种聊天界面60中可显示有联系人信息610、联系人聊天内容620、本用户聊天内容630、输入栏640等,在输入栏640中,显示有用户操作输入的输入内容670,以及本申请实施例根据输入内容670显示的图库搜索结果,例如图片660。其中,输入内容可以是一个字、一个短语或是符号、单词等。Please refer to Figure 8, a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660. Among them, the input content can be a word, a phrase, a symbol, a word, etc.
步骤720,在图库中搜索图片内容与输入内容关联的图片。Step 720: Search the gallery for a picture associated with the picture content and the input content.
本步骤的具体实现过程可参考第四实施例中步骤520的相关描述,在此不再赘述。For the specific implementation process of this step, reference may be made to the related description of step 520 in the fourth embodiment, which will not be repeated here.
步骤730,在搜索到的图片上显示用于截取图片的选取框。In step 730, a marquee for capturing the picture is displayed on the searched picture.
其中,搜索到的图片为与输入内容670关联的图片,接着,根据输入内容670对应的聊天场景从搜索到的所有图片中选择至少一关联图片,该关联图片例如为图片660。聊天场景可以根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出,例如,输入内容670为“SCORE”,而根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出用户想要发送的是科目“A”的分数,因而从所有找到的图片中选择包含“SCORE A”的至少一张图片,例如图片660。实际实现时,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索出的至少一关联图片包括来自同一视频的至少两张图片时,从至少两张图片选择一张图片作为关联图片。The searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. The chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630. For example, the input content 670 is "SCORE", and according to the contact information 610, the contact chat content 620, and the user The chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660. In actual implementation, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
进一步地,当关联图片大于一张时,可以根据关联图片与聊天场景的关联度对图片进行排序。Further, when there is more than one related picture, the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
或者,当关联图片大于一张时,还可以根据与输入内容关联的图片内容在各关联图片中的显示特征,对关联图片进行排列展示。Or, when there is more than one related picture, the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
在搜索到的图片上显示用于截取图片的选取框时,选取框显示在搜索到的图片的与输入内容关联的图片内容处,搜索到的图片例如为根据输入内容对应的聊天场景从搜索到的所有图片中选择至少一关联图片,例如图片660。请参考图8,在图片660上显示用于截取图片的选取框650,选取框650的初始位置可位于搜索到的图片的与输入内容关联的图片内容处,例如显示在“SCORE A :123”的位置处,从而可以减少用户的操作,当然,选取框650也可不直接显示在图片660上,而可以通过双击图片660等触发操作显示在图片660上。When the marquee used to capture the picture is displayed on the searched picture, the marquee is displayed at the picture content associated with the input content of the searched picture. The searched picture is, for example, from the search to the chat scene corresponding to the input content. Select at least one associated picture from all pictures in, such as picture 660. Referring to FIG. 8, a marquee 650 for capturing the picture is displayed on the picture 660. The initial position of the marquee 650 can be located at the image content associated with the input content of the searched picture, for example, displayed in "SCORE A: 123" Therefore, the user's operations can be reduced. Of course, the selection box 650 may not be directly displayed on the picture 660, but may be displayed on the picture 660 by a trigger operation such as double-clicking the picture 660.
步骤740,根据调整选取框的操作,显示位于选取框内的图片部分作为待发送的聊天内容。Step 740: According to the operation of adjusting the marquee, the part of the picture located in the marquee is displayed as the chat content to be sent.
其中,待发送的聊天内容指用户可以操作进行发送的内容,包括但不限于位于输入栏640内的输入内容670以及图片,在本实施例中,如图8所示,用户通过调整选取框650的位置和大小,可以从图片660上截取想要的部分得到另一张图片,由此作为待发送的聊天内容,当有多张图片时,可以得到多个聊天内容。如此,在用户或因为流量或因为图片其他信息不愿公开时,可以采用截图的方式发送图中的部分信息。Among them, the chat content to be sent refers to the content that the user can manipulate to send, including but not limited to the input content 670 and pictures located in the input field 640. In this embodiment, as shown in FIG. 8, the user adjusts the selection box 650 The position and size of, you can intercept the desired part from the picture 660 to obtain another picture, which is used as the chat content to be sent. When there are multiple pictures, multiple chat contents can be obtained. In this way, when the user is unwilling to make public or because of traffic or other information of the picture, some of the information in the picture can be sent by means of screenshots.
本实施例的图库搜索方法,通过接收聊天界面的输入内容,在图库中搜索图片内容与输入内容关联的图片后,在搜索到的图片上显示用于截取图片的选取框,并根据调整选取框的操作,显示位于选取框内的图片部分作为待发送的聊天内容,用户可以在即时通信时直接根据图片的内容在图库中搜索图片,从而快速截取图片的部分内容作为聊天内容,更加快捷、高效。In the gallery search method of this embodiment, by receiving the input content of the chat interface, after searching the image related to the input content in the gallery, a marquee for capturing the image is displayed on the searched image, and the marquee is adjusted according to the The operation of displaying the part of the picture in the selection box as the chat content to be sent, the user can directly search for pictures in the gallery according to the content of the picture during instant messaging, so as to quickly intercept part of the picture as the chat content, which is faster and more efficient .
第六实施例Sixth embodiment
图10是根据第六实施例示出的图库搜索方法的流程示意图。请参考图10,本实施例的图库搜索方法,应用于一终端,包括:Fig. 10 is a schematic flowchart of a method for searching a gallery according to a sixth embodiment. Please refer to FIG. 10, the gallery search method of this embodiment, applied to a terminal, includes:
步骤810,接收聊天界面的输入内容。Step 810: Receive input content of the chat interface.
请结合图8,一种聊天界面60中可显示有联系人信息610、联系人聊天内容620、本用户聊天内容630、输入栏640等,在输入栏640中,显示有用户操作输入的输入内容670,以及本申请实施例根据输入内容670显示的图库搜索结果,例如图片660。其中,输入内容可以是一个字、一个短语或是符号、单词等。Please refer to Figure 8, a chat interface 60 can display contact information 610, contact chat content 620, user chat content 630, input field 640, etc., in the input field 640, the input content input by the user operation is displayed 670, and the gallery search result displayed according to the input content 670 according to the embodiment of the present application, such as a picture 660. Among them, the input content can be a word, a phrase, a symbol, a word, etc.
步骤820,在图库中搜索图片内容与输入内容关联的图片。Step 820: Search the gallery for pictures related to the picture content and the input content.
本步骤的具体实现过程可参考第四实施例中步骤520的相关描述,在此不再赘述。For the specific implementation process of this step, reference may be made to the related description of step 520 in the fourth embodiment, which will not be repeated here.
步骤830,显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容。Step 830: Display the picture content information derived from the searched pictures to obtain the chat content to be sent.
其中,搜索到的图片为与输入内容670关联的图片,接着,根据输入内容670对应的聊天场景从搜索到的所有图片中选择至少一关联图片,该关联图片例如为图片660。聊天场景可以根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出,例如,输入内容670为“SCORE”,而根据联系人信息610、联系人聊天内容620、本用户聊天内容630进行分析得出用户想要发送的是科目“A”的分数,因而从所有找到的图片中选择包含“SCORE A”的至少一张图片,例如图片660。实际实现时,视频是由多帧图片组合而成,因而搜索也可针对视频进行,也即搜索视频的组合图片,当搜索出的至少一关联图片包括来自同一视频的至少两张图片时,从至少两张图片选择一张图片作为关联图片。The searched picture is a picture associated with the input content 670, and then at least one related picture is selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. The chat scene can be analyzed based on the contact information 610, the contact chat content 620, and the user chat content 630. For example, the input content 670 is "SCORE", and according to the contact information 610, the contact chat content 620, and the user The chat content 630 is analyzed and it is found that what the user wants to send is the score of the subject "A", so from all the pictures found, they choose to include "SCORE A" at least one picture, such as picture 660. In actual implementation, the video is composed of multiple frames of pictures, so the search can also be performed on the video, that is, the combined picture of the video is searched, when the searched for at least one related picture When including at least two pictures from the same video, select one picture from at least two pictures as the associated picture.
进一步地,当关联图片大于一张时,可以根据关联图片与聊天场景的关联度对图片进行排序。Further, when there is more than one related picture, the pictures can be sorted according to the degree of relevance between the related picture and the chat scene.
或者,当关联图片大于一张时,还可以根据与输入内容关联的图片内容在各关联图片中的显示特征,对关联图片进行排列展示。Or, when there is more than one related picture, the related pictures can also be arranged and displayed according to the display characteristics of the picture content related to the input content in each related picture.
其中,图片内容包括文字内容和/或图形内容,显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。Wherein, the image content includes text content and/or graphic content, and the display characteristics include at least one of the display position, display size, display quantity, display ratio, and color depth of the image content.
图片内容包括文字内容时,图片内容的显示特征即包括字符在图中的显示位置、字符大小、字符数量等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为文字内容“A”为例,在图2(a)中,文字内容包含3个字符“A”,其中一个字符“A”位于图片的中心位置且字体较大,在图2(b)中,文字内容包含3个字符“A”,所有字符“A”均未位于图片的中心位置且字体较小,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的显示大小越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中字符“A”的显示位置、字符大小、字符数量等可评估得到图2(a)中的图片的关联度大于图2(b)中的图片的关联度,进而将图2(a)中的图片的关联度大于图2(b)中的图片的前面。When the picture content includes text content, the display characteristics of the picture content include the display position of the characters in the picture, the size of the characters, the number of characters, etc., and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the text content "A" as an example, in Figure 2(a), the text content contains 3 characters "A", and one of the characters "A" is located in the center of the picture and the font is larger. In 2(b), the text content contains 3 characters "A", none of the characters "A" are located in the center of the picture and the font is small. When setting the sorting rules, the closer the picture content is to the center or focus of the picture, the association The higher the degree, the larger the display size of the picture content, the higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but it is not limited to this. In this way, according to the display position, character size, number of characters, etc. of the character "A" in the two figures, it can be evaluated that the correlation degree of the picture in Figure 2 (a) is greater than the correlation degree of the picture in Figure 2 (b), and then the picture The relevance of the picture in 2(a) is greater than the front of the picture in Fig. 2(b).
图片内容包括图形内容时,图片内容的显示特征即包括图形在图中的显示位置、区域大小、区域占比、颜色深度等,根据显示特征的组合评估,确定图片的排列顺序。以关联的图片内容为图形内容“阴影”为例,在图3(a)中,图形内容包含1个带有阴影的圆圈,且圆圈位于图片的中心位置,在图3(b)中,图形内容包含2个带有阴影的圆圈,其中一个圆圈位于图片的中心位置,图3(a)中圆圈的区域占比大于图3(b)中圆圈的区域占比,设定排序规则时,图片内容越靠近图片的中心或焦点,关联度越高,图片内容的占比越大,关联度越高,图片内容的显示数量越多,关联度越高,依次类推,但不限于此。如此,根据两图中圆圈的图中的显示位置、区域大小、区域占比、颜色深度等可评估得到图3(a)中的图片的关联度大于图3(b)中的图片的关联度,进而将图3(a)中的图片的关联度大于图3(b)中的图片的前面。When the picture content includes graphic content, the display characteristics of the picture content include the display position, area size, area proportion, color depth, etc. of the graphic in the picture, and the arrangement order of the pictures is determined according to the combination evaluation of the display characteristics. Taking the associated picture content as the graphic content "shadow" as an example, in Figure 3(a), the graphic content contains a circle with a shadow, and the circle is located at the center of the picture. In Figure 3(b), the graphic content The content contains 2 shaded circles, one of which is located in the center of the picture. The area of the circle in Figure 3(a) is larger than the area of the circle in Figure 3(b). When the sorting rules are set, the picture The closer the content is to the center or focus of the picture, the higher the degree of relevance and the larger the proportion of picture content. The higher the degree of relevance, the greater the number of picture contents displayed, the higher the degree of relevance, and so on, but not limited to this. In this way, according to the display position, area size, area ratio, color depth, etc. of the circles in the two pictures, it can be evaluated that the correlation degree of the picture in Fig. 3(a) is greater than that of the picture in Fig. 3(b) , And then make the picture in Fig. 3(a) more relevant than the front of the picture in Fig. 3(b).
在一实施方式中,显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,可以包括:In an embodiment, displaying the image content information derived from the searched image to obtain the chat content to be sent may include:
在搜索到的图片上显示用于选取图片内容信息的选取框;Display a selection box for selecting the content information of the picture on the searched picture;
根据调整选取框的操作,导出位于选取框内的图片内容信息以得到待发送的聊天内容。According to the operation of adjusting the marquee, the picture content information in the marquee is exported to obtain the chat content to be sent.
其中,搜索到的图片可以是根据输入内容670对应的聊天场景从搜索到的所有图片中选择的至少一关联图片,该关联图片例如为图片660。请参考图8,在图片660上显示用于选取图片内容信息的选取框可参考用于截取图片的选取框650的形式显示或采用其它便于操作的方式显示,用户通过调整选取框的位置和大小,可以从图片660上选取想要的图片内容信息,进而导出位于选取框内的图片内容信息作为待发送的聊天内容,在导出位于选取框内的图片内容信息作为待发送的聊天内容时,将位于选取框内的图片内容信息加入输入内容670中作为待发送的聊天内容,或者,将输入内容670替换成位于选取框内的图片内容信息而得到待发送的聊天内容。如此,在用户或因为流量或因为图片其他信息不愿公开时,可以采用导出的方式发送图中的关键内容信息即可。用于选取图片内容信息的选取框的初始位置可位于搜索到的图片的与输入内容关联的图片内容处,例如显示在“SCORE A :123”的位置处,从而可以减少用户的操作,当然,用于选取图片内容信息的选取框也可不直接显示在图片660上,而可以通过长按图片660等触发操作显示在图片660上。The searched picture may be at least one related picture selected from all the searched pictures according to the chat scene corresponding to the input content 670, and the related picture is, for example, the picture 660. Please refer to FIG. 8. The marquee used to select the content information of the picture displayed on the picture 660 can be displayed in the form of the marquee 650 used to capture the picture or displayed in other convenient ways. The user adjusts the position and size of the marquee , You can select the desired picture content information from the picture 660, and then export the picture content information in the marquee as the chat content to be sent. When exporting the picture content information in the marquee as the chat content to be sent, The picture content information in the selection box is added to the input content 670 as the chat content to be sent, or the input content 670 is replaced with the picture content information in the selection box to obtain the chat content to be sent. In this way, when the user is unwilling to make the public due to traffic or other information of the picture, the key content information in the picture can be sent in the way of export. The initial position of the marquee used to select the image content information can be located at the image content associated with the input content of the searched image, for example, displayed in "SCORE A: 123”, which can reduce user operations. Of course, the marquee used to select picture content information may not be directly displayed on the picture 660, but can be displayed on the picture 660 by long-pressing the picture 660 and other trigger operations. .
实际实现时,在导出位于选取框内的图片内容信息作为待发送的聊天内容时,还可以是根据预设字符数量自动从图片中导出图片内容信息,超出预设字符数量的部分不再导出,也即导出的图片内容信息小于或等于预设数量。In actual implementation, when exporting the picture content information in the marquee as the chat content to be sent, it can also automatically export the picture content information from the picture according to the preset number of characters, and the part that exceeds the preset number of characters will not be exported. That is, the exported picture content information is less than or equal to the preset number.
在另一实施方式中,导出图片内容信息的过程也可为自动导出,例如,显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,可以包括:In another embodiment, the process of exporting the image content information may also be automatic export. For example, displaying the image content information derived from the searched image to obtain the chat content to be sent may include:
显示从搜索到的图片中导出的与输入内容关联的图片内容信息以得到待发送的聊天内容。Display the picture content information associated with the input content derived from the searched pictures to obtain the chat content to be sent.
其中,通过自动识别提取的方式将图片中与输入内容关联的图片内容信息导出至输入栏中,例如,在图8中,图片660中与输入内容670关联的图片内容信息为“SCORE A :123”或者“123”,图片内容信息作为待发送的聊天内容时,可直接插入当前的输入内容670中或替换当前的输入内容670,从而得到新的输入内容作为待发送的聊天内容,也即得到“SCORE A :123”或者“123”作为待发送的聊天内容。在自动导出与所述输入内容关联的图片内容信息时,导出的图片内容信息小于或等于预设数量。Among them, the picture content information associated with the input content in the picture is exported to the input column by means of automatic recognition and extraction. For example, in FIG. 8, the picture content information associated with the input content 670 in the picture 660 is "SCORE A: 123 "Or "123", when the picture content information is used as the chat content to be sent, it can be directly inserted into the current input content 670 or replace the current input content 670, thereby obtaining new input content as the chat content to be sent, that is, "SCORE A: 123" or "123" as the chat content to be sent. When automatically exporting the picture content information associated with the input content, the exported picture content information is less than or equal to a preset number.
图片内容包括文字内容和/或图形内容,因此,除了导出图片中的文字内容之外,还可从关联的图片中导出相应的图形插入输入内容670中,例如,输入内容为“红色圆圈”时,可以从关联的图片中导出红色圆圈,并将其插入输入内容670中,从而丰富输入内容670的样式。The image content includes text content and/or graphic content. Therefore, in addition to exporting the text content in the image, you can also export the corresponding graphics from the associated image and insert it into the input content 670, for example, when the input content is "red circle" , The red circle can be derived from the associated picture and inserted into the input content 670, thereby enriching the style of the input content 670.
本实施例的图库搜索方法,通过接收聊天界面的输入内容,在图库中搜索图片内容与输入内容关联的图片,之后显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,用户可以在即时通信时直接根据图片的内容在图库中搜索图片,从而得到从图片中导出的信息作为聊天内容,更加快捷、高效。In the gallery search method of this embodiment, by receiving the input content of the chat interface, the image content is searched in the gallery for pictures associated with the input content, and then the image content information derived from the searched pictures is displayed to obtain the chat content to be sent. The user can directly search for pictures in the gallery according to the content of the pictures during instant messaging, so as to obtain the information derived from the pictures as the chat content, which is faster and more efficient.
第七实施例Seventh embodiment
图11是根据第七实施例示出的终端的结构示意图之一。请参考图11,本实施例的终端10包括存储器102与处理器106,存储器102用于存储至少一条程序指令,处理器106用于通过加载并执行至少一条程序指令以实现第一实施例至第六实施例所述的图库搜索方法。Fig. 11 is one of the schematic structural diagrams of the terminal according to the seventh embodiment. Referring to FIG. 11, the terminal 10 of this embodiment includes a memory 102 and a processor 106. The memory 102 is used to store at least one program instruction, and the processor 106 is used to load and execute at least one program instruction to implement the first embodiment to the first embodiment. The gallery search method described in the sixth embodiment.
请参考图12,实际实现时,终端10包括存储器102、存储控制器104,一个或多个(图中仅示出一个)处理器106、外设接口108、射频模块150、定位模块112、摄像模块114、音频模块116、屏幕118以及按键模块160。这些组件通过一条或多条通讯总线/信号线122相互通讯。12, in actual implementation, the terminal 10 includes a memory 102, a storage controller 104, one or more (only one is shown in the figure) processor 106, a peripheral interface 108, a radio frequency module 150, a positioning module 112, and a camera Module 114, audio module 116, screen 118, and button module 160. These components communicate with each other through one or more communication buses/signal lines 122.
可以理解,图12所示的结构仅为示意,终端102还可包括比图12中所示更多或者更少的组件,或者具有与图12所示不同的配置。图12中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 12 is only for illustration, and the terminal 102 may also include more or fewer components than those shown in FIG. 12, or have a different configuration from that shown in FIG. The components shown in FIG. 12 can be implemented by hardware, software, or a combination thereof.
存储器102可用于存储软件程序以及模块,如本申请实施例中的图库搜索方法对应的程序指令/模块,处理器106通过运行存储在存储控制器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的图库搜索方法。The memory 102 can be used to store software programs and modules, such as program instructions/modules corresponding to the library search method in the embodiment of the present application. The processor 106 executes various functions by running the software programs and modules stored in the storage controller 104 Application and data processing realize the above-mentioned gallery search method.
存储器102可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器102可进一步包括相对于处理器106远程设置的存储器,这些远程存储器可以通过网络连接至终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。处理器106以及其他可能的组件对存储器102的访问可在存储控制器104的控制下进行。The memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 102 may further include a memory remotely provided with respect to the processor 106, and these remote memories may be connected to the terminal 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
外设接口108将各种输入/输入装置耦合至CPU以及存储器102。处理器106运行存储器102内的各种软件、指令以执行终端10的各种功能以及进行数据处理。The peripheral interface 108 couples various input/input devices to the CPU and the memory 102. The processor 106 runs various software and instructions in the memory 102 to perform various functions of the terminal 10 and perform data processing.
在一些实施例中,外设接口108,处理器106以及存储控制器104可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。In some embodiments, the peripheral interface 108, the processor 106, and the storage controller 104 may be implemented in a single chip. In some other instances, they can be implemented by independent chips.
射频模块150用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。射频模块150可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。射频模块150可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband code division multiple access,W-CDMA),码分多址技术(Code division access,,CDMA)、时分多址技术(time division multiple access,TDMA),蓝牙,无线保真技术(Wireless Fidelity, WiFi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The radio frequency module 150 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with a communication network or other devices. The radio frequency module 150 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, and so on. The radio frequency module 150 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (wideband code division multiple access (W-CDMA), code division multiple access (Code division access, CDMA), time division multiple access (TDMA), Bluetooth, wireless fidelity technology (Wireless Fidelity, WiFi) (such as the American Institute of Electrical and Electronics Engineers standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet phone (Voice over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols used for mail, instant messaging and short messages, and any other suitable communication protocols, including those currently available A protocol that has not yet been developed.
定位模块112用于获取终端10的当前位置。定位模块112的实例包括但不限于全球卫星定位系统(GPS)、基于无线局域网或者移动通信网的定位技术。The positioning module 112 is used to obtain the current position of the terminal 10. Examples of the positioning module 112 include, but are not limited to, a global satellite positioning system (GPS), a positioning technology based on a wireless local area network or a mobile communication network.
摄像模块114用于拍摄照片或者视频。拍摄的照片或者视频可以存储至存储器102内,并可通过射频模块150发送。The camera module 114 is used to take photos or videos. The captured photos or videos can be stored in the memory 102 and can be sent through the radio frequency module 150.
音频模块116向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。音频电路从外设接口108处接收声音数据,将声音数据转换为电信息,将电信息传输至扬声器。扬声器将电信息转换为人耳能听到的声波。音频电路还从麦克风处接收电信息,将电信号转换为声音数据,并将声音数据传输至外设接口108中以进行进一步的处理。音频数据可以从存储器102处或者通过射频模块150获取。此外,音频数据也可以存储至存储器102中或者通过射频模块150进行发送。在一些实例中,音频模块116还可包括一个耳机播孔,用于向耳机或者其他设备提供音频接口。The audio module 116 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and an audio circuit. The audio circuit receives sound data from the peripheral interface 108, converts the sound data into electrical information, and transmits the electrical information to the speaker. The speaker converts electrical information into sound waves that can be heard by the human ear. The audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to the peripheral interface 108 for further processing. The audio data may be obtained from the memory 102 or through the radio frequency module 150. In addition, the audio data may also be stored in the memory 102 or sent through the radio frequency module 150. In some examples, the audio module 116 may also include a headphone jack for providing an audio interface to headphones or other devices.
屏幕118在终端10与用户之间提供一个输出界面。具体地,屏幕118向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。可以理解的,屏幕118还可以包括触控屏幕。触控屏幕在终端10与用户之间同时提供一个输出及输入界面。除了向用户显示视频输出,触控屏幕还接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。触控屏幕显示单元的具体实例包括但并不限于液晶显示器或发光聚合物显示器。The screen 118 provides an output interface between the terminal 10 and the user. Specifically, the screen 118 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. It is understandable that the screen 118 may also include a touch screen. The touch screen provides an output and input interface between the terminal 10 and the user at the same time. In addition to displaying video output to the user, the touch screen also receives user input, such as gesture operations such as the user's click and slide, so that user interface objects can respond to these user inputs. The technology for detecting user input may be based on resistive, capacitive, or any other possible touch detection technology. Specific examples of the touch screen display unit include, but are not limited to, a liquid crystal display or a light-emitting polymer display.
按键模块160同样提供用户向终端10进行输入的接口,用户可以通过按下不同的按键以使终端10执行不同的功能。The button module 160 also provides an interface for the user to input to the terminal 10, and the user can press different buttons to make the terminal 10 perform different functions.
本申请还提供一种计算机存储介质,计算机存储介质上存储有计算机程序指令;计算机程序指令被处理器执行时实现如第一实施例至第六实施例所述的图库搜索方法。The present application also provides a computer storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the library search method as described in the first to sixth embodiments is implemented.
实际实现时,计算机存储介质应用于在图11或图12所示的终端中,从而可以直接根据图片的内容查找图片进行使用,更加快捷、高效。In actual implementation, the computer storage medium is applied to the terminal shown in FIG. 11 or FIG. 12, so that the picture can be directly searched for and used according to the content of the picture, which is faster and more efficient.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中所述的方法。The embodiments of the present application also provide a computer program product. The computer program product includes computer program code. When the computer program code runs on a computer, the computer executes the methods described in the various possible implementation manners above.
本申请实施例还提供一种芯片,包括存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得安装有所述芯片的设备执行如上各种可能的实施方式中所述的方法。The embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the chip is installed The device executes the methods described in the various possible implementation manners above.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article or device that includes the element. In addition, the application is implemented differently. Components, features, and elements with the same name in the examples may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context in the specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合。因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this document, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination". Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to also include the plural forms, unless the context dictates to the contrary. It should be further understood that the terms "comprising" and "including" indicate the presence of the described features, steps, operations, elements, components, items, types, and/or groups, but do not exclude one or more other features, steps, operations, The existence, appearance or addition of elements, components, items, categories, and/or groups. The terms "or" and "and/or" used herein are interpreted as inclusive or mean any one or any combination. Therefore, "A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C" . An exception to this definition will only occur when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way.
应该理解的是,虽然上述实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowchart in the foregoing embodiment are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the figure may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is not necessarily sequential. Instead, it may be performed alternately or alternately with other steps or at least a part of other steps or sub-steps or stages.
上述实施例仅例示性说明本申请的原理及其功效,而非用于限制本申请。任何熟悉此技术的人士皆可在不违背本申请的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本申请所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本申请的权利要求所涵盖。The above-mentioned embodiments only exemplarily illustrate the principles and effects of the present application, and are not used to limit the present application. Anyone familiar with this technology can modify or change the above-mentioned embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or changes made by persons with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed in this application should still be covered by the claims of this application.
工业实用性Industrial applicability
本申请的图库搜索方法、终端及计算机存储介质,通过接收搜索词,对图库中图片内容的类型与搜索词匹配的图片进行图像识别,搜索识别结果与搜索词关联的图片,再根据预设规则展示搜索到的图片,用户可以直接根据图片的内容查找图片,并查看到根据预设规则展示的搜索结果,更加快捷、高效。以及在聊天过程中,通过接收聊天界面的输入内容,在图库中搜索图片内容与输入内容关联的图片,再根据搜索到的图片显示待发送的聊天内容,用户可以在即时通信时直接根据图片的内容在图库中搜索图片,从而快速使用图片的信息作为聊天内容,更加快捷、高效。The gallery search method, terminal and computer storage medium of the present application, by receiving search words, perform image recognition on pictures whose type of picture content in the gallery matches the search word, search for pictures associated with the recognition result and the search word, and then according to preset rules Displaying the searched pictures, users can directly search for pictures based on the content of the pictures, and view the search results displayed according to preset rules, which is faster and more efficient. And in the process of chatting, by receiving the input content of the chat interface, searching for pictures related to the image content and the input content in the gallery, and then displaying the chat content to be sent according to the searched pictures, the user can directly according to the picture in the instant communication Content Search for pictures in the gallery, so that you can quickly use the picture information as chat content, which is faster and more efficient.

Claims (18)

  1. 一种图库搜索方法,应用于一终端,其中,包括:A gallery search method, applied to a terminal, including:
    接收搜索词;Receive search terms;
    对图库中图片内容的类型与所述搜索词匹配的图片进行图像识别;Performing image recognition on pictures whose types of picture content in the gallery match the search term;
    搜索识别结果与所述搜索词关联的图片;Search for a picture associated with the search term as a result of the recognition;
    根据预设规则展示搜索到的图片。Display the searched pictures according to preset rules.
  2. 根据权利要求1所述的图库搜索方法,其中,所述对图库中图片内容的类型与所述搜索词匹配的图片进行图像识别,包括以下至少一种:The method for searching a gallery according to claim 1, wherein said performing image recognition on a picture whose type of picture content in the gallery matches the search term includes at least one of the following:
    当与所述搜索词匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容;When the type of the image content matching the search term is text, image recognition is performed on the image whose type of the image content is text in the gallery to obtain the text content in the image;
    当与所述搜索词匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容。When the type of the picture content matching the search term is a graphic, image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture.
  3. 根据权利要求1所述的图库搜索方法,其中,所述方法,还包括:The gallery search method according to claim 1, wherein the method further comprises:
    根据所述搜索词查找一级图片分类;Find a first-level picture classification according to the search term;
    在所述一级图片分类的下级图片分类中搜索图片内容与所述搜索词关联的图片。Search for a picture whose picture content is associated with the search term in a lower-level picture category of the first-level picture category.
  4. 根据权利要求3所述的图库搜索方法,其中,所述方法,还包括:The method for searching the gallery according to claim 3, wherein the method further comprises:
    根据所述图库中的图片的图片内容对所述图库中的图片进行分类;Classify the pictures in the gallery according to the picture content of the pictures in the gallery;
    根据分类结果建立至少一所述一级图片分类;Establishing at least one of the first-level picture classifications according to the classification results;
    根据各所述一级图片分类中的图片的图片内容对各所述一级图片分类中的图片进行分类,建立各所述一级图片分类对应的至少一下级图片分类。Classify the pictures in each of the first-level picture categories according to the picture content of the pictures in each of the first-level picture categories, and establish at least a lower-level picture category corresponding to each of the first-level picture categories.
  5. 根据权利要求1所述的图库搜索方法,其中,所述根据预设规则展示搜索到的图片,包括:The gallery search method according to claim 1, wherein said displaying the searched pictures according to preset rules comprises:
    根据与所述搜索词关联的图片内容在各搜索到的图片中的显示特征,对搜索到的图片进行排列展示;和/或,Arrange and display the searched pictures according to the display characteristics of the picture content associated with the search term in each searched picture; and/or,
    在搜索到的图片的与所述搜索词关联的图片内容处显示预设标识。A preset identifier is displayed at the image content associated with the search term in the searched image.
  6. 根据权利要求5所述的图库搜索方法,其中,所述图片内容包括文字内容和/或图形内容,所述显示特征包括图片内容的显示位置、显示大小、显示数量、显示占比、颜色深度中的至少一种。The gallery search method according to claim 5, wherein the image content includes text content and/or graphic content, and the display characteristics include the display position, display size, display quantity, display ratio, and color depth of the image content. At least one of.
  7. 根据权利要求1或5所述的图库搜索方法,其中,所述根据预设规则展示搜索到的图片,还包括:The gallery search method according to claim 1 or 5, wherein said displaying the searched pictures according to preset rules further comprises:
    当搜索到的图片包括来自同一视频的至少一张图片时,展示所述至少一张图片及来源视频,或者,展示所述至少一张图片的其中之一及来源视频。When the searched pictures include at least one picture from the same video, display the at least one picture and the source video, or display one of the at least one picture and the source video.
  8. 一种图库搜索方法,应用于一终端,其中,包括:A gallery search method, applied to a terminal, including:
    接收聊天界面的输入内容;Receive input from the chat interface;
    在图库中搜索图片内容与所述输入内容关联的图片;Searching for pictures in the gallery for pictures whose content is associated with the input content;
    根据搜索到的图片显示待发送的聊天内容。Display the chat content to be sent according to the searched pictures.
  9. 根据权利要求8所述的图库搜索方法,其中,所述在图库中搜索图片内容与所述输入内容关联的图片,包括:8. The gallery search method according to claim 8, wherein said searching the gallery for a picture whose picture content is associated with the input content comprises:
    对图库中图片内容的类型与所述输入内容匹配的图片进行图像识别;Performing image recognition on the picture whose type of picture content in the gallery matches the input content;
    搜索识别结果与所述输入内容关联的图片。Search for a picture associated with the input content as a result of the recognition.
  10. 根据权利要求9所述的图库搜索方法,其中,所述对图库中图片内容的类型与所述输入内容匹配的图片进行图像识别,包括以下至少一种:The method for searching a gallery according to claim 9, wherein said performing image recognition on a picture whose type of picture content in the gallery matches the input content includes at least one of the following:
    当与所述输入内容匹配的图片内容的类型为文字时,对图库中图片内容的类型为文字的图片进行图像识别,以获取图片中的文字内容作为识别结果;When the type of the image content matching the input content is text, image recognition is performed on the image whose type of the image content is text in the gallery, to obtain the text content in the image as a recognition result;
    当与所述输入内容匹配的图片内容的类型为图形时,对图库中图片内容的类型为图形的图片进行图像识别,以获取图片中的图形内容作为识别结果。When the type of the picture content matching the input content is a graphic, image recognition is performed on the picture whose picture content type is a graphic in the gallery, so as to obtain the graphic content in the picture as a recognition result.
  11. 根据权利要求8所述的图库搜索方法,其中,所述在图库中搜索图片内容与所述输入内容关联的图片,包括:8. The gallery search method according to claim 8, wherein said searching the gallery for a picture whose picture content is associated with the input content comprises:
    根据所述输入内容查找一级图片分类;Searching for a first-level picture classification according to the input content;
    在所述一级图片分类的下级图片分类中搜索图片内容与所述输入内容关联的图片。Search for a picture whose picture content is associated with the input content in a lower-level picture category of the first-level picture category.
  12. 根据权利要求11所述的图库搜索方法,其中,所述方法,还包括:The method for searching a gallery according to claim 11, wherein the method further comprises:
    根据所述图库中的图片的图片内容对所述图库中的图片进行分类;Classify the pictures in the gallery according to the picture content of the pictures in the gallery;
    根据分类结果建立至少一所述一级图片分类;Establishing at least one of the first-level picture classifications according to the classification results;
    根据各所述一级图片分类中的图片的图片内容对各所述一级图片分类中的图片进行分类,建立各所述一级图片分类对应的至少一下级图片分类。Classify the pictures in each of the first-level picture categories according to the picture content of the pictures in each of the first-level picture categories, and establish at least a lower-level picture category corresponding to each of the first-level picture categories.
  13. 根据权利要求8所述的图库搜索方法,其中,所述根据搜索到的图片显示待发送的聊天内容,包括:8. The gallery search method according to claim 8, wherein said displaying the chat content to be sent according to the searched pictures comprises:
    根据所述输入内容对应的聊天场景从搜索到的所有图片中选择至少一关联图片;Selecting at least one related picture from all the searched pictures according to the chat scene corresponding to the input content;
    显示所述至少一关联图片作为待发送的聊天内容,和/或,显示从所述至少一关联图片中导出的图片内容信息作为待发送的聊天内容。The at least one related picture is displayed as the chat content to be sent, and/or the picture content information derived from the at least one related picture is displayed as the chat content to be sent.
  14. 根据权利要求8所述的图库搜索方法,其中,所述根据搜索到的图片显示待发送的聊天内容,包括:8. The gallery search method according to claim 8, wherein said displaying the chat content to be sent according to the searched pictures comprises:
    在搜索到的图片上显示用于截取图片的选取框;Display the marquee used to capture the picture on the searched picture;
    根据调整所述选取框的操作,显示位于所述选取框内的图片部分作为待发送的聊天内容。According to the operation of adjusting the marquee box, the part of the picture located in the marquee box is displayed as the chat content to be sent.
  15. 根据权利要求8所述的图库搜索方法,其中,所述根据搜索到的图片显示待发送的聊天内容,包括:8. The gallery search method according to claim 8, wherein said displaying the chat content to be sent according to the searched pictures comprises:
    显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容。Display the picture content information derived from the searched pictures to get the chat content to be sent.
  16. 根据权利要求15所述的图库搜索方法,其中,所述显示从搜索到的图片中导出的图片内容信息以得到待发送的聊天内容,包括:15. The gallery search method according to claim 15, wherein said displaying the image content information derived from the searched image to obtain the chat content to be sent comprises:
    在搜索到的图片上显示用于选取图片内容信息的选取框,根据调整所述选取框的操作,导出位于所述选取框内的图片内容信息以得到待发送的聊天内容;和/或,Display a marquee box for selecting picture content information on the searched pictures, and export the picture content information in the marquee box according to the operation of adjusting the marquee box to obtain the chat content to be sent; and/or,
    显示从搜索到的图片中导出的与所述输入内容关联的图片内容信息以得到待发送的聊天内容。Display the picture content information associated with the input content derived from the searched pictures to obtain the chat content to be sent.
  17. 一种终端,其中,包括存储器与处理器,所述存储器用于存储至少一条程序指令,所述处理器用于通过加载并执行所述至少一条程序指令以实现如权利要求1至16中任一项所述的图库搜索方法。A terminal, comprising a memory and a processor, the memory is used to store at least one program instruction, and the processor is used to load and execute the at least one program instruction to implement any one of claims 1 to 16 The described gallery search method.
  18. 一种计算机存储介质,其中,所述计算机存储介质上存储有计算机程序指令;所述计算机程序指令被处理器执行时实现如权利要求1至16中任一项所述的图库搜索方法。A computer storage medium, wherein computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, the library search method according to any one of claims 1 to 16 is realized.
PCT/CN2020/094769 2020-02-18 2020-06-05 Image gallery search method, terminal, and computer storage medium WO2021164151A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202010100420.2A CN111368110B (en) 2020-02-18 2020-02-18 Gallery searching method, terminal and computer storage medium
CN202010100435.9A CN111368107B (en) 2020-02-18 2020-02-18 Gallery searching method, terminal and computer storage medium
CN202010100435.9 2020-02-18
CN202010100420.2 2020-02-18

Publications (1)

Publication Number Publication Date
WO2021164151A1 true WO2021164151A1 (en) 2021-08-26

Family

ID=77391413

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/094769 WO2021164151A1 (en) 2020-02-18 2020-06-05 Image gallery search method, terminal, and computer storage medium

Country Status (1)

Country Link
WO (1) WO2021164151A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170278135A1 (en) * 2016-02-18 2017-09-28 Fitroom, Inc. Image recognition artificial intelligence system for ecommerce
CN107656760A (en) * 2017-09-28 2018-02-02 联想(北京)有限公司 Data processing method and device, electronic equipment
CN110489578A (en) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 Image processing method, device and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170278135A1 (en) * 2016-02-18 2017-09-28 Fitroom, Inc. Image recognition artificial intelligence system for ecommerce
CN107656760A (en) * 2017-09-28 2018-02-02 联想(北京)有限公司 Data processing method and device, electronic equipment
CN110489578A (en) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 Image processing method, device and computer equipment

Similar Documents

Publication Publication Date Title
CN104615769B (en) Picture classification method and device
WO2021077897A1 (en) File sending method and apparatus, and electronic device
JP6618223B2 (en) Audio processing method and apparatus
WO2021212879A1 (en) Quick search method, terminal and storage medium
WO2017113889A1 (en) Method and apparatus for language setup
RU2703956C1 (en) Method of managing multimedia files, an electronic device and a graphical user interface
JP2017530431A (en) Nuisance telephone number determination method, apparatus and system
JP2006190296A (en) Method and apparatus for providing information by using context extracted from multimedia communication system
WO2019105457A1 (en) Image processing method, computer device and computer readable storage medium
CN112540821A (en) Information sending method and electronic equipment
CN104735243A (en) Method and device for displaying contact list
CN112954046A (en) Information sending method, information sending device and electronic equipment
CN113487705A (en) Image annotation method, terminal and storage medium
CN105335714A (en) Photograph processing method, device and apparatus
CN111666015A (en) Suspension short message display method and device
CN104182419A (en) Method and device for processing character information in picture
CN111046210A (en) Information recommendation method and device and electronic equipment
CN112732134A (en) Information identification method, mobile terminal and storage medium
CN112181564A (en) Wallpaper generation method, mobile terminal and storage medium
CN114691277A (en) Application program processing method, intelligent terminal and storage medium
WO2021061045A2 (en) Stacked object recognition method and apparatus, electronic device and storage medium
CN111368110B (en) Gallery searching method, terminal and computer storage medium
CN111368107B (en) Gallery searching method, terminal and computer storage medium
WO2021164151A1 (en) Image gallery search method, terminal, and computer storage medium
CN108255389B (en) Image editing method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20920174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 160123)

122 Ep: pct application non-entry in european phase

Ref document number: 20920174

Country of ref document: EP

Kind code of ref document: A1