Image Retrieval Method and Apparatus, Storage Medium, and Electronic Device

By overlaying the search floating window on the search result page and replacing the search image, the problem of inconvenience in replacing the search image is solved, and convenient image replacement operation is achieved.

CN114238680BActive Publication Date: 2025-07-25BEIJING LANDENGYU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111595701.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2025-07-25
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

In the prior art, the inconvenience of retrieval of pictures leads to cumbersome operations, and the user needs to return to the uploaded page to replace the picture, especially in the case of multiple pictures, which is more complicated.

Method used

By overlaying the search floating window on the search result page, users allow them to replace the search image directly in the floating window, and update the result page after the operation is triggered to display a collection of result images similar to the replacement image.

Benefits of technology

It realizes the convenience of directly replacing the search image on the search result page, simplifies the operation process, and avoids the tedious steps of re-uploading the page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238680B_ABST
    Figure CN114238680B_ABST
Patent Text Reader

Abstract

The present invention discloses a picture retrieval method, device, storage medium and electronic device. Among them, the method includes: in response to a display trigger operation performed on a display control in a first result page, a retrieval floating window is superimposed and displayed on the first result page, wherein the retrieval floating window displays a first retrieval parameter corresponding to the first result page, and the first retrieval parameter includes a first retrieval picture; in response to a replacement operation performed on the first retrieval picture, a replaced second retrieval picture is displayed in the retrieval floating window; in response to a retrieval trigger operation performed on the second retrieval picture, the first result page is updated to a second result page, wherein a second result picture set with a similarity greater than a similarity threshold to the second retrieval picture is displayed in the second result page, and the second retrieval picture and the first retrieval picture are different picture files. The present invention solves the technical problem of cumbersome operation caused by inconvenient replacement of retrieval pictures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of retrieval, and in particular, to a method and device for image retrieval, a storage medium, and an electronic device. Background Art

[0002] To provide a more convenient retrieval method, many applications provide a function of uploading images for approximate query. The user uploads the retrieval image, and the application server retrieves according to the retrieval image in the background to display approximate items on the result page, meeting the user's need for image-based retrieval.

[0003] However, if the retrieval image needs to be replaced, that is, retrieved and queried according to different images, it is necessary to return to the upload page of the retrieval image, that is, the query home page, select and upload the image again, and then query to achieve the replacement of the retrieval image. This process is relatively cumbersome and not conducive to the user to replace the retrieval image. Similarly, when the number of retrieval images increases, the replacement operation of the retrieval image becomes more cumbersome.

[0004] In response to the above problems, no effective solution has been proposed yet. Summary of the Invention

[0005] Embodiments of the present invention provide a method and device for image retrieval, a storage medium, and an electronic device, so as to at least solve the technical problem of cumbersome operation caused by inconvenient replacement of retrieval images.

[0006] According to one aspect of the embodiments of the present invention, a method for image retrieval is provided, including: in response to a display trigger operation performed on a display control in a first result page, superimposing and displaying a retrieval floating window on the first result page, where a first result image set with a similarity greater than a similarity threshold to a first retrieval image is displayed in the first result page, and first retrieval parameters corresponding to the first result page are displayed in the retrieval floating window, and the first retrieval parameters include the first retrieval image; in response to a replacement operation performed on the first retrieval image, displaying a replaced second retrieval image in the retrieval floating window; in response to a retrieval trigger operation performed on the second retrieval image, updating the first result page to a second result page, where a second result image set with a similarity greater than the similarity threshold to the second retrieval image is displayed in the second result page, and the second retrieval image and the first retrieval image are different image files.

[0007] According to another aspect of the embodiments of the present invention, there is also provided an image retrieval device, including: a superimposed display unit, configured to, in response to a display trigger operation performed on a display control in a first result page, superimpose and display a retrieval floating window on the first result page, where a first result image set with a similarity to a first retrieved image greater than a similarity threshold is displayed in the first result page, and a first retrieval parameter corresponding to the first result page is displayed in the retrieval floating window, and the first retrieval parameter includes the first retrieved image; a replacement display unit, configured to, in response to a replacement operation performed on the first retrieved image, display a second retrieved image after replacement in the retrieval floating window; and an update display unit, configured to, in response to a retrieval trigger operation performed on the second retrieved image, update the first result page to a second result page, where a second result image set with a similarity to the second retrieved image greater than the similarity threshold is displayed in the second result page, and the second retrieved image and the first retrieved image are different image files.

[0008] According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the above image retrieval method when running.

[0009] According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to execute the above image retrieval method through the computer program.

[0010] In the embodiments of the present invention, by responding to a display trigger operation on a first result page to superimpose and display a retrieval floating window, and replacing the first retrieved image corresponding to the first result page with a different second retrieved image through the retrieval floating window, and updating the first result page to a second result page corresponding to the second retrieved image in the case of a retrieval trigger, by superimposing and displaying a retrieval floating window for adjusting retrieval parameters on the retrieval result page and directly updating the result page to a result page corresponding to the replaced retrieval image in the case of replacing and adjusting the parameters, the purpose of directly adjusting and replacing retrieval parameters on the retrieval result page to update the retrieval result page is achieved, thereby realizing the technical effect of conveniently replacing retrieved images, and further solving the technical problem of cumbersome operations caused by inconvenient replacement of retrieved images. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0012] Figure 1 It is a schematic diagram of an application environment of an optional picture retrieval method according to an embodiment of the present invention;

[0013] Figure 2 It is a schematic flow diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0014] Figure 3 It is a schematic interface diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0015] Figure 4 It is a schematic flow diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0016] Figure 5 It is a schematic interface diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0017] Figure 6 It is a schematic interface diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0018] Figure 7 It is a schematic interface diagram of an optional picture retrieval method according to an embodiment of the present invention;

[0019] Figure 8 It is a schematic structural diagram of an optional picture retrieval device according to an embodiment of the present invention;

[0020] Figure 9 It is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. Detailed implementation manners

[0021] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0022] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0023] According to one aspect of an embodiment of the present invention, a picture retrieval method is provided. Optionally, the above picture retrieval method can be but is not limited to being applied to an environment such as Figure 1 shown. In the terminal device 102, it is not limited to running a retrieval web page or retrieval application for picture retrieval, which is used to display retrieval results with a similarity greater than a preset threshold according to the retrieved picture. The terminal device 102 sends the received operation instruction to the server 112 through the network 110. The database 114 in the server 112 is used to store the operation instruction, and processes the operation instruction through the processing engine 116 to obtain a corresponding display result, and feeds back the display result to the terminal device 102 through the network to display the corresponding retrieval result on the retrieval web page or retrieval application of the terminal device 102.

[0024] The picture retrieval in the terminal device 102 is not limited to being implemented by sequentially executing S102 to S106. Overlay and display the retrieval floating window. In response to a display trigger operation performed on the display control in the first result page, overlay and display the retrieval floating window on the first result page. The first result page displays a first set of result pictures with a similarity greater than the similarity threshold to the first retrieved picture. The retrieval floating window displays the first retrieval parameter corresponding to the first result page, and the first retrieval parameter includes the first retrieved picture. Display the second retrieved picture. In response to a replacement operation performed on the first retrieved picture, display the replaced second retrieved picture in the retrieval floating window. Update and display the second result page. In response to a retrieval trigger operation performed on the second retrieved picture, update the first result page to the second result page. The second result page displays a second set of result pictures with a similarity greater than the similarity threshold to the second retrieved picture, and the second retrieved picture and the first retrieved picture are different picture files.

[0025] Optionally, in this embodiment, the above terminal device 102 may be a terminal device configured with a target client, including but not limited to at least one of the following: mobile phone (such as Android mobile phone, IOS mobile phone, etc.), laptop computer, tablet computer, handheld computer, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client may be a retrieval client, a video client, an instant messaging client, a browser client, an education client, etc. The above network may include but not limited to: wired network, wireless network, where the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication. The above server may be a single server, or a server cluster composed of multiple servers, or a cloud server. The above is only an example, and this embodiment does not make any limitation thereto.

[0026] As an alternative implementation, as Figure 2 shown, the above picture retrieval method includes:

[0027] S202, in response to a display trigger operation performed on a display control in the first result page, superimpose and display a retrieval floating window on the first result page, where the first result page displays a set of first result pictures whose similarity to the first retrieved picture is greater than a similarity threshold, and the retrieval floating window displays first retrieval parameters corresponding to the first result page, and the first retrieval parameters include the first retrieved picture;

[0028] S204, in response to a replacement operation performed on the first retrieved picture, display a second retrieved picture after replacement in the retrieval floating window;

[0029] S206, in response to a retrieval trigger operation performed on the second retrieved picture, update the first result page to a second result page, where the second result page displays a set of second result pictures whose similarity to the second retrieved picture is greater than a similarity threshold, and the second retrieved picture and the first retrieved picture are different picture files.

[0030] Optionally, the above first result page is a display page of a set of first result pictures obtained by performing picture similarity retrieval on the picture database according to the first retrieved picture. By performing a display trigger operation on the display control in the first result page, a retrieval floating window is superimposed and displayed on the first result page.

[0031] The retrieval floating window is used for the display and modification of retrieval parameters. When the retrieval floating window is triggered to be superimposed and displayed on the first result page, the first retrieval parameters corresponding to the first result page are displayed in the retrieval floating window. When the first retrieval parameters are changed to target retrieval parameters through the retrieval floating window, the first result page is updated to a target result page corresponding to the target retrieval parameters. The specific superimposed display method of the retrieval floating window is not limited to any position in the first result page, such as the middle or the edge.

[0032] The retrieval parameters at least include retrieval pictures, and may but are not limited to also include parameters such as name, type, date, etc. When the retrieval parameters other than the retrieval pictures are updated through the retrieval floating window, the set of result pictures included in the updated result page is updated. The operations on the retrieval parameters in the retrieval floating window are not limited to including addition, deletion, modification, etc., and the modification is not limited to including replacement and adjustment.

[0033] When the first retrieval picture is changed to a second retrieval picture through the retrieval floating window and retrieval is triggered, the first result page is updated to a second result page, and a set of second result pictures is displayed in the second result page. The first retrieval picture and the second retrieval picture are different picture files.

[0034] The superimposed display of the retrieval floating window on the retrieval result page is not limited to as Figure 3 shown. A retrieval floating window 310 is superimposed and displayed on the result page 300. When no update operation is performed on the retrieval pictures and retrieval parameters displayed in the retrieval floating window 310, the retrieval pictures and retrieval parameters corresponding to the result page 300 are displayed in the retrieval floating window 310. A set of result pictures whose similarity to the retrieval pictures meets a preset threshold is displayed in the result page 300, and is not limited to including result pictures 1 - 15. It is not limited to performing a display refresh operation on the result page to display the result pictures after result picture 15. The display refresh is a display refresh of the result page and does not change the retrieval pictures and retrieval parameters. A mode control can also be displayed in the result page 300 for adjusting the display mode of the result pictures in the result page 300. The sorting of the result pictures in the result page 300 is not limited to being from high to low according to the similarity to the retrieval pictures.

[0035] In the embodiment of the present application, by responding to a display trigger operation on the first result page, a retrieval floating window is superimposed and displayed, and the first retrieval picture corresponding to the first result page is replaced with a different second retrieval picture through the retrieval floating window. In the case of a retrieval trigger, the first result page is updated to a second result page corresponding to the second retrieval picture. By superimposing and displaying a retrieval floating window for adjusting retrieval parameters on the retrieval result page, and directly updating the result page to a result page corresponding to the replaced retrieval picture in the case of replacing and adjusting parameters, the purpose of directly adjusting and replacing retrieval parameters on the retrieval result page to update the retrieval result page is achieved, thereby realizing the technical effect of conveniently replacing retrieval pictures, and further solving the technical problem of cumbersome operations caused by inconvenient replacement of retrieval pictures.

[0036] As an alternative implementation, as Figure 4 shown, before displaying the first result page, it further includes:

[0037] S402, display a retrieval page, where the retrieval page displays an upload control and a first retrieval control;

[0038] S404, in the case of performing an upload trigger operation on the upload control, update and display the first retrieval picture in the retrieval page, where the first retrieval picture is a picture file determined by the upload trigger operation;

[0039] S406, in response to a retrieval trigger operation performed on the first retrieval control, display the first result page.

[0040] A retrieval page for triggering picture retrieval is displayed in the target client of the terminal device. The retrieval page may include, but is not limited to, parameter controls for inputting retrieval parameters. The parameter controls may include, but are not limited to, an upload control for uploading retrieval pictures. The retrieval page further includes a first retrieval control for triggering picture retrieval based on the uploaded retrieval picture and / or the input retrieval parameters, and at the same time indicating the display of the retrieval result page.

[0041] In the case of triggering the display of the result page through the first retrieval result, the result page is used to replace the retrieval page and is displayed in the target client. The target client may be a client for picture retrieval or any client providing picture retrieval functions.

[0042] The retrieval page is not limited to be as Figure 5As shown, the search page 500 includes an input control 510 for inputting search parameters, an upload control 520 for uploading search pictures, and a search control 530 for triggering a search. After determining the parameters for the search by at least one of inputting search parameters through the input control 510 or uploading search pictures through the upload control 520, the search control 530 is adjusted to a trigger state for performing a picture search based on the search parameters and / or the search pictures. The search page may also include a mode control for selecting the search mode.

[0043] As an alternative implementation, updating the first result page to the second result page includes: updating and displaying the first search parameters in the search floating window as second search parameters corresponding to the second result page, where the second search parameters include a second search picture.

[0044] When the result page is updated due to an update of the search parameters, the search floating window superimposed on the result page and the search parameters displayed in the search floating window are updated simultaneously to make the search parameters in the search floating window consistent with the result page.

[0045] As an alternative implementation, after updating and displaying the first search parameters in the search floating window as second search parameters corresponding to the second result page, it further includes: hiding the search floating window in response to a hide trigger operation performed on the display control.

[0046] When a trigger operation performed on the display control in the search floating window is detected, the search floating window is hidden, but no update operation is performed on the search parameters in the search floating window.

[0047] As an alternative implementation, superimposing and displaying the search floating window on the first result page includes: displaying a picture control and at least one parameter control in the search floating window, where the picture control is used to trigger the display of a picture change control, a second search control, and a first image, the first image being a thumbnail of the first search picture, and the parameter control is used to trigger the display of the corresponding search parameters.

[0048] The picture control is not limited to the combination of the picture change control and the first image. The first image is used as the control identifier of the picture control, and a trigger operation on the area where the first image is located is used to determine that a change operation of the search picture is detected. The parameter control is used to perform parameter adjustment of the corresponding search parameters.

[0049] Superimposing and displaying the search floating window on the first result page is not limited to Figure 6As shown in the figure. A retrieval floating window 610 is superimposed and displayed on the first result page 600. A picture control 602, a retrieval control 604, and a parameter control 606 are displayed in the retrieval floating window 610. The picture control 602 uses the thumbnail first image of the first retrieval picture corresponding to the first result page as the control identifier. The retrieval control 604 is used to trigger a re-retrieval, and the parameter control 606 is used to trigger an adjustment of the corresponding retrieval parameters.

[0050] As an alternative implementation, the above-mentioned display of the replaced second retrieval picture in the retrieval floating window includes:

[0051] S1. In response to a change trigger operation performed on the picture change control, a picture floating window is superimposed and displayed on the first result page, where the picture floating window is used to display candidate change pictures;

[0052] S2. When the second retrieval picture is determined from the candidate change pictures, the first image in the retrieval floating window is updated and displayed as the second image, where the second image is the thumbnail of the second retrieval picture.

[0053] The superimposed display of the picture floating window is triggered by a trigger operation on the picture control. The picture file corresponding to the candidate picture is displayed in the picture floating window. When the second retrieval picture is determined from the picture file, the first image in the retrieval floating window is updated to the second image corresponding to the second retrieval picture. When the image corresponding to the retrieval picture is the control identifier of the picture control, it is not limited to updating the control identifier of the picture control.

[0054] The picture floating window is not limited to including an address window for changing the picture file address. By changing the storage address in the address window, the candidate change pictures for update can be adjusted.

[0055] As an alternative implementation, after the above-mentioned superimposed display of the picture floating window on the first result page, it further includes:

[0056] S1. In response to a first trigger operation, the second retrieval picture in the selected state is displayed in the picture floating window, where the first trigger operation is used to determine the second retrieval picture from at least one candidate change picture displayed in the picture floating window;

[0057] S2. In response to a second trigger operation, it is determined that the second retrieval picture is determined from the candidate change pictures, and the picture floating window is hidden.

[0058] Determining the second retrieval picture in the picture floating window is not limited to being achieved by sequentially performing the first trigger operation and the second trigger operation. The first trigger operation is used to determine a retrieval file from the candidate picture files, and the second trigger operation determines that the picture corresponding to the retrieval file is used as the second retrieval picture.

[0059] In the case where the second trigger operation is not triggered, the change of the picture file is not limited to multiple first trigger operations, and the picture file selected when the second trigger operation is triggered is the picture file corresponding to the second retrieved picture.

[0060] The display of the picture floating window and the update of the retrieval floating window are not limited to as Figure 7 shown. In the case where a change trigger operation is performed on the picture control 602 in the retrieval floating window 610 on the first result page 600, a picture floating window 700 is superimposed and displayed on the first result page 600. Multiple candidate files and the file address of the current candidate file are displayed in the picture floating window 700. The number of candidate files corresponds to the file address, and the file address is the access address used to store files in the terminal device. After a selection operation is performed on the candidate file, a confirmation operation is performed on the confirmation control in the picture floating window 700, and it is determined that the retrieved file corresponding to the selected candidate file is used as the second retrieved picture for re-retrieval. In the case where a confirmation operation is performed on the confirmation control, the picture floating window 700 is hidden and the retrieval floating window 610 is updated to a retrieval floating window 710. The image corresponding to the second retrieved picture is used as the identifier of the picture control in the retrieval floating window 710. In the case where a trigger operation is performed on the retrieval control in the retrieval floating window 710, the first result page 600 is updated to a result page for picture similarity retrieval according to the second retrieved picture.

[0061] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0062] According to another aspect of the embodiments of the present invention, there is also provided a picture retrieval device for implementing the above picture retrieval method. As Figure 8 shown, the device includes:

[0063] A superimposed display unit 802, configured to, in response to a display trigger operation performed on a display control in a first result page, superimpose and display a retrieval floating window on the first result page, where a first result picture set with a similarity greater than a similarity threshold to a first retrieved picture is displayed in the first result page, and first retrieval parameters corresponding to the first result page are displayed in the retrieval floating window, and the first retrieval parameters include the first retrieved picture;

[0064] A replacement display unit 804, configured to, in response to a replacement operation performed on the first retrieved picture, display a replaced second retrieved picture in the retrieval floating window;

[0065] An update display unit 806, configured to update the first result page to a second result page in response to a retrieval trigger operation performed on a second retrieved picture, where a second result picture set with a similarity greater than a similarity threshold to the second retrieved picture is displayed in the second result page, and the second retrieved picture and the first retrieved picture are different picture files.

[0066] Optionally, the above-mentioned update display unit 806 is further configured to update and display the first retrieval parameter in the retrieval floating window as a second retrieval parameter corresponding to the second result page, where the second retrieval parameter includes the second retrieved picture.

[0067] Optionally, the above-mentioned picture retrieval device further includes a hiding unit, configured to hide the retrieval floating window in response to a hiding trigger operation performed on a display control after updating and displaying the first retrieval parameter in the retrieval floating window as the second retrieval parameter corresponding to the second result page.

[0068] Optionally, the above-mentioned overlay display unit 802 is further configured to display a picture control and at least one parameter control in the retrieval floating window, where the picture control is used to trigger the display of a picture change control, a second retrieval control, and a first image, the first image being a thumbnail of the first retrieved picture, and the parameter control is used to trigger the display of the corresponding retrieval parameter.

[0069] Optionally, the above-mentioned replacement display unit 804 includes:

[0070] A change module, configured to overlay and display a picture floating window on the first result page in response to a change trigger operation performed on the picture change control, where the picture floating window is used to display candidate change pictures;

[0071] An update unit, configured to update and display the first image in the retrieval floating window as a second image in the case of determining the second retrieved picture from the candidate change pictures, where the second image is a thumbnail of the second retrieved picture.

[0072] Optionally, the above-mentioned picture retrieval device further includes a trigger unit, configured to display the second retrieved picture in a selected state in the picture floating window after overlaying and displaying the picture floating window on the first result page, where the first trigger operation is used to determine the second retrieved picture from at least one candidate change picture displayed in the picture floating window; and in response to a second trigger operation, determine that the second retrieved picture is determined from the candidate change pictures and hide the picture floating window.

[0073] Optionally, the above-mentioned picture retrieval device further includes a retrieval unit, configured to display a retrieval page before displaying the first result page, where an upload control and a first retrieval control are displayed on the retrieval page; in the case of performing an upload trigger operation on the upload control, update and display a first retrieval picture on the retrieval page, where the first retrieval picture is a picture file determined by the upload trigger operation; in response to a retrieval trigger operation performed on the first retrieval control, display the first result page.

[0074] In the embodiments of the present application, by responding to a display trigger operation on the first result page, superimposing and displaying a retrieval floating window, and replacing the first retrieval picture corresponding to the first result page with a different second retrieval picture through the retrieval floating window, in the case of a retrieval trigger, updating the first result page to a second result page corresponding to the second retrieval picture, by superimposing and displaying a retrieval floating window for adjusting retrieval parameters on the retrieval result page, and directly updating the result page to a result page corresponding to the replaced retrieval picture in the case of replacing and adjusting parameters, the purpose of directly adjusting and replacing retrieval parameters on the retrieval result page to update the retrieval result page is achieved, thereby realizing the technical effect of conveniently replacing retrieval pictures, and further solving the technical problem of cumbersome operations caused by inconvenient replacement of retrieval pictures.

[0075] According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-mentioned picture retrieval method, and the electronic device may be Figure 1 the terminal device or server shown. In this embodiment, the electronic device is taken as an example of the terminal device for illustration. As Figure 9 shown, the electronic device includes a memory 902 and a processor 904. A computer program is stored in the memory 902, and the processor 904 is configured to execute the steps in any one of the above-mentioned method embodiments through the computer program.

[0076] Optionally, in this embodiment, the above-mentioned electronic device may be at least one of multiple network devices in a computer network.

[0077] Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

[0078] S1, in response to a display trigger operation performed on a display control in the first result page, superimpose and display a retrieval floating window on the first result page, where a set of first result pictures with a similarity greater than a similarity threshold to the first retrieval picture is displayed in the first result page, and first retrieval parameters corresponding to the first result page are displayed in the retrieval floating window, and the first retrieval parameters include the first retrieval picture;

[0079] S2. In response to a replacement operation performed on the first retrieved picture, display the replaced second retrieved picture in the retrieval floating window;

[0080] S3. In response to a retrieval trigger operation performed on the second retrieved picture, update the first result page to a second result page, where the second result page displays a second set of result pictures whose similarity to the second retrieved picture is greater than a similarity threshold, and the second retrieved picture and the first retrieved picture are different picture files.

[0081] Optionally, those of ordinary skill in the art can understand that Figure 9 the structure shown is only schematic, and the electronic device can also be a smart phone (such as an Android phone, an IOS phone, etc.), a tablet computer, a handheld computer, and terminal devices such as Mobile Internet Devices (MID), PAD, etc. Figure 9 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown in Figure 9 or have a different configuration from that shown in Figure 9 shown.

[0082] Among them, the memory 902 can be used to store software programs and modules, such as program instructions / modules corresponding to the picture retrieval method and device in the embodiments of the present invention. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, implements the above-mentioned picture retrieval method. The memory 902 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 memories, or other non-volatile solid-state memories. In some instances, the memory 902 may further include a memory remotely disposed relative to the processor 904, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 902 can specifically but not limitedly be used to store information such as retrieved pictures, result pages, retrieval floating windows, etc. As an example, as Figure 9 shown, the above memory 902 may include but are not limited to the overlay display unit 802, the replacement display unit 804, and the update display unit 806 in the above picture retrieval device. In addition, it may further include but are not limited to other module units in the above picture retrieval device, which will not be elaborated in this example.

[0083] Optionally, the above-mentioned transmission device 906 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable, so as to communicate with the Internet or a local area network. In one example, the transmission device 906 is a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0084] In addition, the above-mentioned electronic device further includes: a display 908, which is used to display the above-mentioned retrieved pictures, result pages, and retrieval floating windows; and a connection bus 910, which is used to connect each module component in the above-mentioned electronic device.

[0085] In other embodiments, the above-mentioned terminal device or server can be a node in a distributed system. Among them, the distributed system can be a blockchain system, and the blockchain system can be a distributed system formed by connecting multiple nodes through network communication. Among them, the nodes can form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as servers, terminals and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network.

[0086] According to one aspect of the present application, there is provided a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementation manners of the above-mentioned picture retrieval aspect. Among them, the computer program is set to execute the steps in any one of the above-mentioned method embodiments when running.

[0087] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be set to store a computer program for executing the following steps:

[0088] S1. In response to a display trigger operation performed on a display control in a first result page, a retrieval floating window is superimposed and displayed on the first result page. Among them, a first result picture set with a similarity greater than a similarity threshold to a first retrieved picture is displayed in the first result page, and a first retrieval parameter corresponding to the first result page is displayed in the retrieval floating window. The first retrieval parameter includes the first retrieved picture;

[0089] S2. In response to a replacement operation performed on the first retrieved picture, a replaced second retrieved picture is displayed in the retrieval floating window;

[0090] S3. In response to a retrieval trigger operation performed on a second retrieved picture, update the first result page to a second result page, where a set of second result pictures with a similarity greater than a similarity threshold to the second retrieved picture is displayed in the second result page, and the second retrieved picture and the first retrieved picture are different picture files.

[0091] Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device through a program, and this program can be stored in a computer-readable storage medium. The storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0092] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0093] If the integrated unit in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing one or more computer devices (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0094] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0095] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of the units or modules can be in an electrical or other form.

[0096] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0097] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.

[0098] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A method for image retrieval, characterized in that, Comprising: In response to a display trigger operation performed on a display control in a first result page obtained after retrieving a first retrieved picture, a retrieval floating window is superimposed and displayed on the first result page, wherein a first result picture set with a similarity greater than a similarity threshold to the first retrieved picture is displayed in the first result page, and a first retrieval parameter corresponding to the first result page is displayed in the retrieval floating window, and the first retrieval parameter includes the first retrieved picture; In response to a trigger operation performed on a first thumbnail corresponding to the first retrieved picture displayed in the retrieval floating window, a picture floating window is superimposed and displayed on the first result page, wherein the picture floating window is used to display at least one candidate change picture; In the case where a second retrieved picture is determined from the at least one candidate change picture, the first thumbnail in the retrieval floating window is updated and displayed as a second thumbnail, and the picture floating window is hidden, wherein the second thumbnail is a thumbnail of the second retrieved picture; In response to a retrieval trigger operation performed on the second retrieved picture, the first result page is updated to a second result page, and the first retrieval parameter in the retrieval floating window is updated and displayed as a second retrieval parameter corresponding to the second result page, wherein a second result picture set with a similarity greater than the similarity threshold to the second retrieved picture is displayed in the second result page, the second retrieved picture and the first retrieved picture are different picture files, and the second retrieval parameter includes the second retrieved picture; In response to a hide trigger operation performed on the display control, the retrieval floating window is hidden.

2. The method according to claim 1, characterized in that, The superimposing and displaying the retrieval floating window on the first result page includes: Displaying a picture control and at least one parameter control in the retrieval floating window, wherein the picture control is used to trigger the display of a picture change control, a second retrieval control, and a first thumbnail, the first thumbnail is a thumbnail of the first retrieved picture, and the parameter control is used to trigger the display of the corresponding retrieval parameter.

3. The method according to claim 2, wherein After the picture floating window is superimposed and displayed on the first result page, it further includes: In response to a first trigger operation, the second retrieved picture in a selected state is displayed in the picture floating window, wherein the first trigger operation is used to determine the second retrieved picture from at least one of the candidate change pictures displayed in the picture floating window; In response to a second trigger operation, it is determined that the second retrieved picture is determined from the candidate change pictures.

4. The method according to any one of claims 1 to 3, characterized in that, Before displaying the first result page, it further includes: Displaying a retrieval page, wherein an upload control and a first retrieval control are displayed in the retrieval page; In the case where an upload trigger operation is performed on the upload control, the first retrieved picture is updated and displayed in the retrieval page, wherein the first retrieved picture is a picture file determined by the upload trigger operation; In response to a retrieval trigger operation performed on the first retrieval control, the first result page is displayed.

5. An image retrieval device, characterized in that, Comprising: An overlay display unit, configured to, in response to a display trigger operation performed on a display control in a first result page obtained after retrieving a first retrieved picture, overlay and display a retrieval floating window on the first result page, wherein a first result picture set with a similarity greater than a similarity threshold to the first retrieved picture is displayed in the first result page, and a first retrieval parameter corresponding to the first result page is displayed in the retrieval floating window, and the first retrieval parameter includes the first retrieved picture; A replacement display unit, configured to, in response to a trigger operation performed on a first thumbnail corresponding to the first retrieved picture displayed in the retrieval floating window, overlay and display a picture floating window on the first result page, wherein the picture floating window is used to display at least one candidate replacement picture, and the first thumbnail is a thumbnail of the first retrieved picture; in a case where a second retrieved picture is determined from the at least one candidate replacement picture, update and display the first thumbnail in the retrieval floating window as a second thumbnail, and hide the picture floating window, wherein the second thumbnail is a thumbnail of the second retrieved picture; An update display unit, configured to, in response to a retrieval trigger operation performed on the second retrieved picture, update the first result page to a second result page, and update and display the first retrieval parameter in the retrieval floating window as a second retrieval parameter corresponding to the second result page, wherein a second result picture set with a similarity greater than the similarity threshold to the second retrieved picture is displayed in the second result page, the second retrieved picture and the first retrieved picture are different picture files, and the second retrieval parameter includes the second retrieved picture; The apparatus is further configured to, in response to a hide trigger operation performed on the display control, hide the retrieval floating window.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, and when the program runs, it executes the method described in any one of claims 1 to 3.

7. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 3 through the computer program.

Citation Information

Patent Citations

  • Method and system for displaying search interface

    CN105677868A

  • Searching system, method and device

    CN106484831A