CN110765296A - Image searching method, terminal device and storage medium - Google Patents

Image searching method, terminal device and storage medium Download PDF

Info

Publication number
CN110765296A
CN110765296A CN201911013244.2A CN201911013244A CN110765296A CN 110765296 A CN110765296 A CN 110765296A CN 201911013244 A CN201911013244 A CN 201911013244A CN 110765296 A CN110765296 A CN 110765296A
Authority
CN
China
Prior art keywords
image
images
search
image set
search result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911013244.2A
Other languages
Chinese (zh)
Inventor
刘向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201911013244.2A priority Critical patent/CN110765296A/en
Publication of CN110765296A publication Critical patent/CN110765296A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image searching method, a terminal device and a storage medium, wherein the method comprises the following steps: responding to the first instruction, generating a search request and sending the search request; receiving a search result, wherein the search result comprises at least one first image set or at least one first image set and a second image set; the search results are displayed in sets such that the images of each first image set or second image set are displayed in corresponding sub-regions, respectively. According to the method and the device, the images matched with the features and the labels are searched respectively and returned to the terminal equipment as the search results, and the search images with different features or labels are displayed on the terminal equipment in the corresponding sub-areas in a set mode, so that multi-dimensional search of the images to be searched and grouped display on a terminal interface are achieved, a user can find needed images quickly, and user experience is improved.

Description

Image searching method, terminal device and storage medium
Technical Field
The present application relates generally to the field of image search technologies, and in particular, to an image search method, a terminal device, and a storage medium.
Background
The screen painting APP displays the digitized artwork such as painting, images and cultural relics by utilizing artificial intelligence and novel display technology. To a wide range of content libraries, presentation platforms and other rich functions.
At present, in practical applications, a screen drawing user generally inputs a picture to be searched, so that a background server retrieves a picture similar to the picture to be searched from a content library by using characteristics of the picture to be searched, and returns the picture to a terminal of the screen drawing user for viewing and use by the screen drawing user.
With the image search method, the search result is single, and all searched similar pictures are displayed in an undifferentiated way at the terminal, so that the user can hardly find useful pictures from a large number of similar pictures.
Disclosure of Invention
In view of the foregoing defects or shortcomings in the prior art, it is desirable to provide an image searching method, a terminal device and a storage medium to improve user experience.
In a first aspect, an embodiment of the present application provides an image search method, including:
responding to the first instruction, generating a search request and sending the search request, wherein the search request comprises an image to be searched, and the search request is used for indicating that a search result is returned according to the image to be searched;
receiving a search result, wherein the search result comprises at least one first image set or at least one first image set and a second image set, each first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the characteristics of the searched images;
the search results are displayed in sets such that the images of each of the first image set or the second image set are displayed in corresponding sub-regions, respectively.
In a second aspect, an embodiment of the present application provides an image search method, where the method includes:
receiving a search request, wherein the search request comprises an image to be searched;
extracting the characteristics and the label of the image to be searched;
based on the feature or the label, searching an image matched with the feature from a database, and searching an image matched with the label from the database;
and generating a search result based on the search result, and sending the search result, wherein the search result comprises at least one first image set, or at least one first image set and at least one second image set, the first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the characteristics of the searched images.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the image search method according to the first aspect or the second aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, the computer program being used to implement the image search method according to the first aspect or the second aspect.
According to the image searching method, the terminal device and the storage medium, the terminal device sends the image to be searched to the server, so that the server respectively searches the image matched with the features and the label by using the features and the label of the image to be searched, the image is returned to the terminal device as the searching result, the searching images with different features or labels are respectively displayed in the corresponding sub-regions on the terminal device in an image set mode, multi-dimensional searching of the image to be searched is achieved, and sub-region displaying on a terminal interface is achieved, a user can quickly obtain the searched image by using the sub-region displaying result, and user experience is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a system architecture diagram according to an embodiment of the present application;
FIG. 2 is a schematic flowchart illustrating an image searching method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating an image searching method according to another embodiment of the present application;
FIG. 4 is a schematic flowchart illustrating an image searching method according to yet another embodiment of the present application;
fig. 5 is a schematic interface display diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic interface display diagram of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic interface display diagram of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic interface display diagram of a terminal device according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of an image search apparatus according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of an image search apparatus according to yet another embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer system of a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The image searching method provided by the embodiment of the application can be used for a scene of image searching on the terminal equipment. For example, the system architecture shown in fig. 1 includes a terminal device 01 and a server 02.
The terminal device 01 may be a mobile terminal or a computer device used by a user, such as a mobile phone, a tablet computer or a desktop computer. The terminal device can be loaded with an application program with a picture searching function, such as a screen, so that a user can run the application program on the terminal device and search and view images by operating a client interface of the application program.
It can be understood that, in the image search method provided in the embodiment of the present application, in order to improve user experience, a user of a terminal device generates and sends a search request by using a client interface provided by an application program, and can adjust a display order of images in a search result when receiving the search result.
The background server 02 may be a background server connected to the terminal device 01 through a network. The server may be pre-established with a database in which a large number of images are stored for access by the terminal device to return the searched images.
It can be understood that, in the image search method provided in the embodiment of the present application, in order to improve the search result and implement a multi-dimensional search, a database is pre-established in the server, where a plurality of images and tags of each image, such as tags of an author or a size of each image, are stored, so that when the server responds to a search request of the terminal device to perform an image search, features and tags of an image to be searched can be used to match the features and tags of the image to be searched according to each image and its corresponding tag in the database, so as to improve the search result and improve user experience.
For convenience of understanding and explanation, the image search method, the terminal device, and the storage medium provided by the embodiments of the present application are described in detail below with reference to fig. 2 to 11.
Fig. 2 is a schematic flowchart of an image searching method according to an embodiment of the present application, and as shown in fig. 2, the method is executed by a terminal device, and specifically includes:
s210, the terminal device responds to the first instruction, generates a search request and sends the search request, wherein the search request comprises an image to be searched, and the search request is used for indicating that a search result is returned according to the image to be searched.
S220, the terminal device receives a search result, wherein the search result comprises at least one first image set or at least one first image set and at least one second image set, the first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the features of the searched images.
And S230, the terminal device displays the search results in sets, so that the images of each first image set or second image set are respectively displayed in corresponding sub-areas.
Specifically, when a user of the terminal device searches for an image, the user may input an image to be searched by using an operation interface of the application program, and click the search button, so that the terminal device may receive the click of the search button by the user after receiving the search image, so as to trigger the generated first instruction. Further, the terminal device generates a search request in response to the first instruction. The search request at least comprises the image to be searched. The search request is used for indicating a server at the background to search for an image matched with the characteristics or the label of the image to be searched from a database according to the image to be searched, and returning a search result.
The search results may include at least a first set of images or may also include a second set of images. The first image set comprises images matched with the labels of the images to be searched, such as an image set matched with the labels of authors of the images to be searched, an image set matched with the size labels of the images to be searched, and the like. The second image set comprises images matched with the characteristics of the searched image, such as images matched with the characteristics of the image to be searched, such as texture, brightness, color and the like, and only comprises original images matched with all the characteristics of the image to be searched.
After receiving the search result returned by the server, the terminal device may analyze the search result to obtain all the images in the plurality of first image sets found by the server, or may also obtain the images in the second image set. Furthermore, the images of each image set can be displayed in different sub-regions according to the classification result of the image sets, so that all the images in one image set are located in the same sub-region, that is, different image sets are located in different sub-regions respectively.
For example, as shown in FIG. 5, the display area of the terminal may correspond to a plurality of sub-areas, each sub-area corresponding to a set of images. When the first image set and the second image set are included in the search result, the searched images in the second image set may be displayed at the topmost portion of the display screen of the terminal device first. The images in each first image set are then displayed in sets beneath the original image, such as displaying images of the image set matching the author of the image to be searched, and images of the image set matching the size of the image to be searched, one by one.
For another example, when only the first image set is in the search result, the images in each image set may be displayed in the sub-regions, such as displaying all the images in each image set in the corresponding sub-regions one by one.
According to the image searching method provided by the embodiment of the application, after the terminal device receives the searching result comprising the plurality of image sets, the searching result can be classified and displayed in a set mode, so that the image sets with different labels or characteristics are displayed in different sub-areas, and a user can quickly find the needed image according to the classified and displayed result.
Fig. 3 illustrates an image searching method according to another embodiment of the present application, which may be executed by a server, and as shown in the drawing, the method includes:
s310, the server receives a search request, and the search request comprises an image to be searched.
S320, the server extracts the characteristics and the labels of the image to be searched.
S330, the server searches the image matched with the characteristic from the database and searches the image matched with the label from the database based on the characteristic or the label.
S340, the server generates a search result based on the search result and sends the search result, wherein the search result comprises at least one first image set or at least one first image set and at least one second image set, the first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the features of the searched images.
Specifically, after receiving a search request sent by the terminal device, the server may analyze the search request to obtain an image to be searched included in the search request. The image to be searched can be analyzed to extract features and labels of the image to be searched, such as color features, texture features, shape features, spatial relationship features and the like, such as author labels, size labels, content labels and the like. Images matching the extracted features can then be looked up from a pre-established database using the extracted features and images matching the tags can be looked up from the database using the extracted tags. And finally, generating a search result by using the searched result, and sending the search result to the terminal equipment. The search result may include images matching the tags of the images to be searched, such as an image set including an author tag matching and an image set matching a size tag, i.e., a first image set; further, the search result may also include images matching the features of the image to be searched, such as the original images matching all the features, i.e. the second image set.
It will be appreciated that the pre-established database in the server may include a plurality of images and a label for each image. When the database is built, each image can be stored in the database, a unique image identifier is defined for each image, and then a label of each image is written. The tag may be author information, size information or included content information, such as included animals or plants, etc., for each image.
For example, in the process of establishing the database, all the images and the corresponding tags may be stored in a list. First, as shown in table 1 below, an identification list of all images is created and stored, that is, each image is assigned with a unique image ID, and in the list, author information of each image is stored correspondingly. And then a tag list as shown in fig. 2 is established to store the tag list corresponding to each image ID. As shown in table 2, a plurality of tags are defined, such as tag a, tag b, tag c, etc., where tag a may be an author, tag b may be a size, and tag c may be content. The label of each image is further defined by the characters "1" or "0", such as 1 representing the image has the label, and 0 representing the image does not have the label. Thus, all images containing one tag can be found by that tag.
TABLE 1 identification List of images
Painting ID Painting author
01 A
02 B
。。。 C
n D
TABLE 2 tag List of images
Painting ID Label a Label b Label c Label d
01 0 1 0 1
02 1 0 1 1
。。。
n 1 1 1 0
It should be understood that the storage manner of the image tags in the database is only an exemplary illustration, and the present application is not limited thereto.
According to the method and the device, the characteristics and the labels of the images to be searched are extracted, the extracted characteristics and the extracted labels are utilized, the images matched with the characteristics are searched in the database, and the images matched with the labels are searched, so that the searching result is more perfect.
In order to better understand the image searching method provided by the embodiment of the present application, the image searching process, the display process, and the adjustment process of the display order are explained in detail by fig. 4.
Fig. 4 shows an image searching method according to another embodiment of the present application, and as shown in fig. 4, the method is executed by a server and a terminal device, and specifically includes:
s401, the terminal equipment responds to the first instruction and generates a search request.
S402, the terminal device sends the search request to the server.
Specifically, an application program for searching the image is run on the terminal device, and the user operates an operation interface of the application program on the terminal device to input the image to be searched. And further operating a picture searching button, for example, clicking a picture searching icon, and triggering to generate a picture searching instruction, namely a first instruction. Further, the terminal device responds to the first instruction, generates a search request and sends the search request to the server. The search request includes an image to be searched, and may further include information such as an identifier of the terminal device or a client identifier of the application program, so that the server may return a search result to the terminal device according to the identifier.
S403, the server receives the search request.
S404, the server analyzes the search request to obtain the image to be searched, and extracts the characteristics and the label of the image to be searched.
Specifically, after receiving the search request, the server may parse the search request, and obtain content in the search request, such as an image to be searched, and an identifier of the terminal device and/or client identifier information. Then, the image to be searched can be analyzed, for example, the image to be searched is analyzed through an algorithm, and the color feature, the texture feature, the shape feature and/or the spatial relationship feature and the like of the image to be searched are obtained; labels for the images to be searched, such as author, size and content related labels, as shown in table 2 above, are also available.
S405, the server searches the image matched with the characteristics from the database, and searches the image matched with the label from the database.
S406, the server generates a first search result according to the searched image matched with the features.
S407, the server sends the first search result to the terminal device.
And S408, the server generates a second search result according to the searched image matched with the label.
S409, the server sends the second search result to the terminal equipment.
Specifically, after the image to be searched is analyzed to obtain the features and the labels thereof, the extracted features can be used to search the image matched with the features from the database. Such as searching for an image that matches all of the extracted features as the original image. Meanwhile, images matched with the labels can be searched from the data by utilizing the extracted labels to serve as similar images, and a plurality of first image sets are obtained.
If the original image is found, the found original image can be further packaged in a first search result and sent to the terminal device, that is, a first search result is generated, wherein the first search result comprises a second image set, and the second image set comprises an image matched with the characteristics of the image to be searched.
Further, when the server does not find the original image from the database, or returns the first search result to the terminal device, a second search result may be generated based on the obtained plurality of first image sets, so that the second search result includes the plurality of first image sets, and finally the second search result is sent to the terminal device. That is, after S405 is executed, S406 may be executed, or S408 may be directly executed.
It can be understood that the image search from the database by using the features and the image search from the database by using the tags may be performed synchronously, or the image search may be performed by using the tags after the image search by using the features, which is not limited in the embodiment of the present application.
It can also be understood that after the original image is found, a first search result is generated and sent to the terminal device, and then the tag is used for searching the first image set; or after the original image is found, generating a first search result and performing the search of the first image set by using the tag synchronously, which is not limited in the embodiment of the present application.
For example, in searching for similar images using tags, the extracted tags may be searched for matches one by one, such as searching for images that match the author first, resulting in a second set of images. Images that match the content, such as images that all include a person, are then searched to obtain a first set of images. For another example, the extracted tags may be combined and matched, for example, images matched with the author and the content may be searched, for example, all images including the person of the author may be searched to obtain a first image set, and all images including the person at a certain size may be searched to obtain a first image set. It will be appreciated that by matching one or more tags, a plurality of first image sets may be obtained.
It will also be appreciated that each first image set corresponds to one or more common tags, which are tags used to search the first image set. As described above, a second image set is searched by an author, the common label of which is the author, and a second image set is searched by the author and a certain object, the common label of which is the author and a person.
It will also be appreciated that when multiple first image sets are obtained to generate the second search result, the common label for each first image set may be utilized to sequentially encapsulate the different image sets in the second search result.
For example, the ranking of each common label in the second search result may be determined based on the score of its corresponding image set. The score may be determined according to a preset rule, such as that the author label has the highest score, ranks first, and is sequentially a content label, a size label, and the like.
It is understood that the above-mentioned score may be determined according to actual settings, for example, the score may also be determined according to the number of images in each first image set. This is not limited by the present application.
And S410, the terminal equipment receives the first search result and displays the images in the second image set in the corresponding sub-regions according to the sets.
And S411, the terminal equipment receives the second search result and respectively displays the images in the first image set in the corresponding sub-areas according to the set display.
S412, in response to the second instruction, the display order among the first image sets is changed.
Specifically, when the terminal device receives the first search result, the images in the first image set may be first displayed in the corresponding sub-regions. As shown in fig. 5, the original image is first displayed in the topmost sub-area of the display area.
Further, when the terminal device receives a second search result after receiving the first search result, images in the first image set in the second search result may be displayed in a set manner in the corresponding sub-area. As shown in fig. 5, all images in the first image set may be sequentially displayed in sets below the first image set in the display area of the terminal device in the packing order of the first image set in the second search result. And in the sub-area corresponding to each first image set, displaying the common label and the indication icon corresponding to the first image set.
As shown in fig. 5, a front icon as shown by the up arrow, a back icon as shown by the down arrow, and an intersecting hidden icon may be displayed. And the public label is displayed in a text mode, if the searched art painting is art painting, the public labels such as 'other paintings of the painter', 'painting including label a' or 'painting including label b' can be displayed. The front icon is used for indicating a user to operate the icon, triggering and generating a second instruction, and responding to the second instruction to move the corresponding images in the first image set forward by one sub-area; the rear icon is used for indicating a user to operate the indication icon and triggering generation of a second instruction so as to respond to the second instruction and move the corresponding image in the first image set backwards by one sub-area; the hidden icon is used for indicating a user to trigger the indication icon and triggering to generate a hidden instruction so as to respond to the second instruction and hide the images in the corresponding first image set. And the top icon is used for triggering generation of a second instruction when the hidden icon is clicked, so that the images in the corresponding first image set are moved to the topmost end in response to the second instruction.
After the first image set and the second image set are respectively displayed in the corresponding sub-regions in the display region of the terminal device in a set mode, a user can click the indication icon to trigger the terminal device to generate a second instruction so as to change the display sequence among the first image sets, namely the second instruction is generated by operating the indication icon by the user.
For example, as shown in fig. 6, when the user needs to move all the images of the first image set corresponding to the b-tag forward, the user may click the front icon corresponding to the first image set to trigger the terminal device to generate a front instruction, and then move the first image set forward by one sub-region in response to the front instruction.
For another example, as shown in fig. 7, when the user needs to move all the images in the first image set corresponding to the b-tag backward by one sub-region, the user may click the post icon to trigger the terminal device to generate a post instruction, and then, in response to the post instruction, move all the images in the first image set backward by one sub-region.
For another example, as shown in fig. 8, when the user no longer views the first image set corresponding to the b-tag, the user may click a hidden icon to trigger the terminal device to generate a hiding instruction, and further, in response to the hiding instruction, delete or hide all images of the second image set.
For another example, the user may click the top icon to trigger the terminal device to generate a trigger instruction, and top all the images in the corresponding second image set to be displayed at the topmost end of the display screen.
It can be understood that the type, specific display mode, and number of sub-regions moved in each operation of the indication icon may be determined according to actual conditions, which is not limited in the present application.
It can be understood that, when searching for an image by using features, the image searching method provided by the embodiment of the present application may search only an original image matching all features, and may also search similar images matching some features to generate a plurality of second image sets. Accordingly, when the first search result is displayed, the original image may be displayed in the topmost sub-area and then other similar images may be displayed in the lower sub-areas.
According to the image searching method provided by the embodiment of the application, the server searches images matched with the features and images matched with the labels from the database respectively by using the features and the labels of the images to be searched, and uses all the images with the same labels as one image set, so that the terminal equipment displays each image set in the corresponding sub-region according to the searching results of the server in a set mode, the searching results are perfected, the classified display of the searching results is realized, a user can quickly search the desired images according to the classified display results, the display sequence of different image sets can be adjusted according to the labels of each image set, and the user experience is improved.
Fig. 9 is a schematic structural diagram of an image search apparatus according to an embodiment of the present application, and as shown in fig. 9, the apparatus 900 includes:
a sending module 910, configured to respond to the first instruction, generate and send a search request, where the search request includes an image to be searched, and the search request is used to instruct to return a search result according to the image to be searched;
a receiving module 920, configured to receive a search result, where the search result includes at least one first image set, or includes at least one first image set and at least one second image set, where the first image set includes an image matching the tag of the image to be searched, and the second image set includes an image matching the feature of the image to be searched;
a display module 930, configured to display the search results in sets, such that the images of each of the first image set or the second image set are respectively displayed in corresponding sub-regions.
Optionally, the image search apparatus provided in the embodiment of the present application further includes:
a changing module 940, configured to change the display order among the first image sets in response to a second instruction, where the second instruction is generated by a user operating an indication icon;
when the search result is displayed according to a set, a public label and an indication icon corresponding to each first image set are also displayed, the indication icon is used for indicating a user to change the display sequence among the first image sets, and the public label is a label used for searching the first image sets.
Optionally, in the image search apparatus provided in this embodiment of the application, the changing module 940 is specifically configured to:
and moving a first image set forward by one or more sub-regions in response to a preposition instruction generated by a user operating a preposition icon, wherein the indication icon comprises the preposition icon.
Optionally, in the image search apparatus provided in this embodiment of the application, the changing module 940 is specifically configured to:
and moving a first image set backwards by one or more sub-areas in response to a back instruction, wherein the back instruction is generated by operating a back icon by a user, and the indication icon comprises the back icon.
Optionally, in the image search apparatus provided in this embodiment of the application, the changing module 940 is specifically configured to:
hiding all images in a first image set in response to a hiding instruction generated by a user operating a hidden icon, wherein the indication icon comprises the hidden icon
Fig. 10 is a schematic structural diagram of an image search apparatus according to yet another embodiment, and as shown in the drawing, the apparatus 100 includes:
a receiving module 101, configured to receive a search request, where the search request includes an image to be searched;
an extraction module 102, configured to extract features and tags of the image to be searched;
a searching module 103, configured to search for an image matching the feature from a database based on the feature or the tag, and search for an image matching the tag from the database;
a sending module 104, configured to generate a search result based on the search result, and send the search result, where the search result includes at least one first image set, or includes at least one first image set and a second image set, the first image set includes an image that matches the tag of the image to be searched, and the second image set includes an image that matches the feature of the image to be searched.
Optionally, the image search apparatus provided in the embodiment of the present application further includes:
the generating module 105 generates the database, where the database includes a plurality of images and at least one label corresponding to each image.
Optionally, in the image searching apparatus provided in the embodiment of the present application, the searching module is specifically configured to:
when the image matched with the characteristic is found from the database based on the characteristic, generating a first search result, and sending the first search result, wherein the first search result comprises the second image set;
based on the labels, searching images matched with any one or more labels from the database, generating a second search result, and transmitting the second search result, wherein the second search result comprises at least one first image set;
or,
and when the images matched with the characteristics are not found in the database based on the characteristics, searching the images matched with any one or more labels from the database based on the labels, and generating a second search result, wherein the second search result comprises at least one first image set.
On the other hand, the terminal device provided by the embodiment of the present application includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the image search method as described above when executing the program.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a computer system 300 of a terminal device according to an embodiment of the present application.
As shown in fig. 11, the computer system 300 includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 303 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the system 300 are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to embodiments of the present application, the processes described above with reference to flow diagrams 2-5 may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 303, and/or installed from the removable medium 311. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor comprises a sending module, a receiving module and a display module. Where the names of such units or modules do not in some cases constitute a limitation on the unit or module itself, for example, a display module may also be described as "for displaying the search results in sets such that the images of each of the first or second image sets are displayed in corresponding sub-regions, respectively".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the image search method described herein.
In summary, according to the image searching method, the terminal device, and the storage medium provided in the embodiment of the present application, the server searches, by using the features and the tags of the image to be searched, the image matched with the features and the image matched with the tags from the database, and uses all the images with the same tags as one image set, so that the terminal device displays each image set in the corresponding sub-area according to the search result of the server and in a set manner, thereby improving the search result, realizing the classified display of the search result, enabling the user to quickly search a desired image according to the classified display result, and improving the user experience.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. An image search method, characterized in that the method comprises:
responding to a first instruction, generating a search request and sending the search request, wherein the search request comprises an image to be searched, and the search request is used for indicating that a search result is returned according to the image to be searched;
receiving a search result, wherein the search result comprises at least one first image set or at least one first image set and a second image set, the first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the features of the images to be searched;
displaying the search results in sets such that the images of each of the first image set or the second image set are displayed in corresponding sub-regions, respectively.
2. The image searching method according to claim 1, further comprising:
changing the display sequence among the first image sets in response to a second instruction generated by operating an indication icon by a user;
when the search results are displayed in a set, a public label and an indication icon corresponding to each first image set are further displayed, the indication icon is used for indicating a user to change the display sequence among the first image sets, and the public label is a label used for searching the first image sets.
3. The image searching method according to claim 2, wherein the changing of the display order between the first image sets in response to the second instruction comprises:
and moving a first image set forward by one or more sub-areas in response to a preposition instruction generated by operating a preposition icon by a user, wherein the indication icon comprises the preposition icon.
4. The image searching method according to claim 2, wherein the changing of the display order between the first image sets in response to the second instruction comprises:
and moving a first image set backwards by one or more sub-areas in response to a back instruction, wherein the back instruction is generated by operating a back icon by a user, and the indication icon comprises the back icon.
5. The image searching method according to claim 2, wherein the changing of the display order between the first image sets in response to the second instruction comprises:
hiding all images in a first image set in response to a hiding instruction generated by a user operating a hidden icon, wherein the indication icon comprises the hidden icon.
6. An image search method, characterized in that the method comprises:
receiving a search request, wherein the search request comprises an image to be searched;
extracting the characteristics and the labels of the image to be searched;
based on the features or the labels, searching an image matched with the features from a database, and searching an image matched with the labels from the database;
and generating a search result based on the search result, and sending the search result, wherein the search result comprises at least one first image set, or at least one first image set and at least one second image set, the first image set comprises images matched with the labels of the images to be searched, and the second image set comprises images matched with the features of the searched images.
7. The image searching method according to claim 6, further comprising:
and generating the database, wherein the database comprises a plurality of images and at least one label corresponding to each image.
8. The image searching method according to claim 6 or 7, wherein the generating a search result based on the search result comprises:
when the image matched with the characteristics is found from the database, generating a first search result, and sending the first search result, wherein the first search result comprises the second image set;
based on the labels, searching images matched with any one or more labels from the database, generating a second search result, and sending the second search result, wherein the second search result comprises at least one first image set;
or,
and when the images matched with the characteristics are not found from the database, searching the images matched with any one or more labels from the database based on the labels, and generating a second search result, wherein the second search result comprises at least one first image set.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor being adapted to implement the image search method according to any of claims 1-8 when executing the program.
10. A computer-readable storage medium on which a computer program for implementing the image search method according to any one of claims 1 to 8 is stored.
CN201911013244.2A 2019-10-23 2019-10-23 Image searching method, terminal device and storage medium Pending CN110765296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911013244.2A CN110765296A (en) 2019-10-23 2019-10-23 Image searching method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911013244.2A CN110765296A (en) 2019-10-23 2019-10-23 Image searching method, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110765296A true CN110765296A (en) 2020-02-07

Family

ID=69333248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911013244.2A Pending CN110765296A (en) 2019-10-23 2019-10-23 Image searching method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110765296A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035693A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Picture display method and device, electronic equipment and readable storage medium
CN114066875A (en) * 2021-11-25 2022-02-18 数坤(北京)网络科技股份有限公司 Slice image processing method and device, storage medium and terminal device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678661A (en) * 2013-12-24 2014-03-26 中国联合网络通信集团有限公司 Image searching method and terminal
CN104503975A (en) * 2014-11-20 2015-04-08 百度在线网络技术(北京)有限公司 Method and device for customizing recommended card
CN107193983A (en) * 2017-05-27 2017-09-22 北京小米移动软件有限公司 Image search method and device
CN107229741A (en) * 2017-06-20 2017-10-03 百度在线网络技术(北京)有限公司 Information search method, device, equipment and storage medium
US20180011876A1 (en) * 2016-07-05 2018-01-11 Baidu Usa Llc Method and system for multi-dimensional image matching with content in response to a search query
CN109168069A (en) * 2018-09-03 2019-01-08 聚好看科技股份有限公司 A kind of recognition result subregion display methods, device and smart television

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678661A (en) * 2013-12-24 2014-03-26 中国联合网络通信集团有限公司 Image searching method and terminal
CN104503975A (en) * 2014-11-20 2015-04-08 百度在线网络技术(北京)有限公司 Method and device for customizing recommended card
US20180011876A1 (en) * 2016-07-05 2018-01-11 Baidu Usa Llc Method and system for multi-dimensional image matching with content in response to a search query
CN107193983A (en) * 2017-05-27 2017-09-22 北京小米移动软件有限公司 Image search method and device
CN107229741A (en) * 2017-06-20 2017-10-03 百度在线网络技术(北京)有限公司 Information search method, device, equipment and storage medium
CN109168069A (en) * 2018-09-03 2019-01-08 聚好看科技股份有限公司 A kind of recognition result subregion display methods, device and smart television

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035693A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Picture display method and device, electronic equipment and readable storage medium
CN114066875A (en) * 2021-11-25 2022-02-18 数坤(北京)网络科技股份有限公司 Slice image processing method and device, storage medium and terminal device

Similar Documents

Publication Publication Date Title
US11710279B2 (en) Contextual local image recognition dataset
AU2014235416B2 (en) Real world analytics visualization
EP2972950B1 (en) Segmentation of content delivery
CN109255767B (en) Image processing method and device
CN111782977B (en) Point-of-interest processing method, device, equipment and computer readable storage medium
CN104602128A (en) Video processing method and device
US10789474B2 (en) System, method and apparatus for displaying information
US20210200971A1 (en) Image processing method and apparatus
CN108597034B (en) Method and apparatus for generating information
CN107330087B (en) Page file generation method and device
CN112925520A (en) Method and device for building visual page and computer equipment
CN104239067B (en) The preparation method and device of miniature client
CN108536467A (en) Location processing method, device, terminal device and the storage medium of code
CN103294803A (en) Method and system for augmenting product information introduction and realizing man-machine interaction
CN110765296A (en) Image searching method, terminal device and storage medium
CN107818323B (en) Method and apparatus for processing image
CN115022726B (en) Surrounding information generation and barrage display methods, devices, equipment and storage medium
CN110020123B (en) Popularization information delivery method, device, medium and equipment
CN113763009A (en) Picture processing method, picture skipping method, device, equipment and medium
CN109344327B (en) Method and apparatus for generating information
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN110378841A (en) Display processing method and device
CN114138214B (en) Method and device for automatically generating print file and electronic equipment
CN111709922B (en) Image quality comparison method, device, equipment and storage medium
US20230315373A1 (en) System and method for automatically curating and displaying images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207