WO2017107855A1 - Picture searching method and device - Google Patents

Picture searching method and device Download PDF

Info

Publication number
WO2017107855A1
WO2017107855A1 PCT/CN2016/110193 CN2016110193W WO2017107855A1 WO 2017107855 A1 WO2017107855 A1 WO 2017107855A1 CN 2016110193 W CN2016110193 W CN 2016110193W WO 2017107855 A1 WO2017107855 A1 WO 2017107855A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
search
dimension
image
search dimension
Prior art date
Application number
PCT/CN2016/110193
Other languages
French (fr)
Chinese (zh)
Inventor
康琳
马士龙
Original Assignee
阿里巴巴集团控股有限公司
康琳
马士龙
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 康琳, 马士龙 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017107855A1 publication Critical patent/WO2017107855A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a picture search method and apparatus.
  • a large number of pictures can be stored in a mobile phone, such as a picture that can be stored by a mobile phone, or an image that is stored by other means.
  • an embodiment of the present application provides a picture search method and apparatus.
  • the picture search instruction being generated according to the detected first operation for the first picture
  • Searching according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
  • the first operation for the first picture comprises:
  • the operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  • the first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
  • the determining the search dimension corresponding to the first picture comprises:
  • a third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
  • the search dimension comprises one or more of the following dimensions:
  • the search dimension of a photo-based device or source is a photo-based device or source.
  • the searching for a second image that matches the first image on the search dimension according to the search dimension corresponding to the first image including:
  • the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, and the first picture is extracted according to a pixel of the first picture Characteristic information, including:
  • Extracting feature information of the first picture in the active area Extracting feature information of the first picture in the active area.
  • searching for the second picture that matches the first picture in the search dimension comprises: searching from the locally stored picture library and/or the network side stored picture library on the search dimension and the The second picture matches the first picture.
  • the outputting the search result comprises: displaying the searched second picture in a picture preview manner according to the order of matching degree, the number of the second pictures being one or more.
  • the outputting the search result comprises: displaying the found second image by using N sub-windows, each sub-window is for displaying a preview view of the second image or the second image, which is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
  • An acquiring module configured to acquire a picture search instruction, where the picture search instruction is generated according to the detected first operation for the first picture
  • a determining module configured to determine a search dimension corresponding to the first picture
  • a searching module configured to search, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
  • Output module for outputting the search results.
  • the first operation for the first picture comprises:
  • the operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  • the first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
  • the determining module is specifically configured to:
  • a third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
  • the search dimension corresponding to the detected first operation, where the first The operation corresponds to one or more search dimensions.
  • the search dimension comprises one or more of the following dimensions:
  • the search dimension of a photo-based device or source is a photo-based device or source.
  • the searching module is specifically configured to: when the search dimension includes a search dimension based on an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
  • the searching module is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
  • the searching module is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
  • the output module is specifically configured to display the second picture that is found in a picture preview manner according to the order of matching degree, the number of the second pictures being one or more.
  • the output module is specifically configured to display the searched second image by using N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
  • a memory for storing computer program instructions
  • a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
  • the picture search instruction being generated according to the detected first operation for the first picture
  • Searching according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
  • the first operation for the first picture comprises:
  • the operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  • the first screen touch operation performed in the screen display area of the first picture includes:
  • the processor is specifically configured to:
  • the option for selecting the search dimension in the pop-up menu of the first picture is selected
  • the search dimension corresponding to the first picture is determined as a search dimension corresponding to the first picture, wherein the pop-up menu is popped after the third screen touch operation performed in the screen display area of the first picture is detected.
  • One search dimension option in the popup menu corresponds to one or more search dimensions; or
  • the search dimension comprises one or more of the following dimensions:
  • the search dimension of a photo-based device or source is a photo-based device or source.
  • the processor is specifically configured to: when the search dimension includes, based on a search dimension of an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
  • the processor is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
  • the processor is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
  • the processor is specifically configured to: in a picture preview manner, instruct the display to display the found second picture in an order of matching degree from high to low, the number of the second pictures being one or more.
  • the processor is specifically configured to: instruct the display to display the found second image by using N sub-windows, each sub-window is used to display the second image found based on a search dimension.
  • N is an integer greater than or equal to 1.
  • FIG. 1 is a schematic diagram of a network architecture applicable to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a picture search process according to an embodiment of the present application.
  • FIG. 4 and FIG. 5 are schematic diagrams of screen touch operations for triggering a similar picture search process in an embodiment of the present application
  • FIG. 6 is a schematic diagram showing display of search results in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a picture search apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • An embodiment of the present application provides an automatic picture search solution implemented on a terminal.
  • the solution provided by the embodiment of the present application can be applied to a mobile terminal, a PC (personal computer), or a smart device, and the mobile terminal can be a mobile phone, a PDA (Personal Digital Assistant), a smart wearable device, or the like. Especially suitable for mobile smart devices with touch screens.
  • FIG. 1 exemplarily shows a network architecture to which the embodiment of the present application is applied.
  • the network architecture may include a terminal and a server on the network side, and the terminal and the server enter through the network. Line communication.
  • the servers in the above architecture can be used to provide storage or access services to the user's photo library.
  • the user picture library is used to store the picture of the user. For example, the user can take a picture through the mobile phone and upload it to the user picture library for storage.
  • the server can also provide a data synchronization service. Through data synchronization, pictures stored on the terminal can be synchronously stored or updated into the user picture library.
  • the terminal in the above architecture can implement the image search method provided by the embodiment of the present application. Further, in the picture search process, the picture in the picture library of the terminal may be searched, or the picture of the user of the terminal in the user picture library may be searched by the server, or both the local picture library of the terminal and the network side may be searched. Photo gallery.
  • the terminal and the server can exchange information through the network, and the network can be a wide area network, a local area network or the Internet, or an Internet using mobile communication technology.
  • the terminal can access the Internet wirelessly, and the server is usually connected to the Internet by wire.
  • the terminal and the server can adopt cloud computing technology to implement information processing based on powerful functions of the cloud computing technology.
  • Servers and terminals can use cloud-based technology-based operating systems, such as YunOS, to consolidate cloud and terminal resources and services.
  • FIG. 2 it is a schematic diagram of a picture search process provided by an embodiment of the present application, where the process can be implemented on a terminal side. As shown, the process can include the following steps:
  • Step 201 Acquire a picture search instruction for the first picture, the picture search instruction is generated according to the detected first operation for the first picture. That is, after the first operation for the first picture is detected, the execution of the following steps 202 to 204 may be triggered.
  • the "first picture” does not specifically refer to a certain type of picture, but is a way of describing a convenient use.
  • the first operation for the first picture may include one of the following operations:
  • Operation 1 A first screen touch operation performed in a screen display area of the first picture.
  • the first picture is displayed in the picture display interface, such as being displayed in a normal size (or highlighted) in the picture browsing window, instead of only displaying its preview view, in this case, if the user Performing a screen touch operation in the display area of the first picture triggers a similar picture search process with the first picture as a reference.
  • the first screen touch operation performed in the screen display area of the first picture may be a single-finger touch operation (also referred to as a single touch operation) performed in the screen display area of the first picture, or may be a multi-finger operation.
  • the touch operation also referred to as a multi-touch operation
  • the embodiment of the present application does not limit the type of the touch operation, as long as the touch operation capable of triggering the similar picture search process is defined in advance.
  • the embodiment of the present application selects a specific screen touch operation to trigger a similar picture search process. For example, one of the following screen touch operations may be selected to trigger a similar image search process:
  • the multi-finger zooming operation may be a two-finger pinch sliding operation, which is not limited in this embodiment of the present application.
  • the multi-finger zooming operation may be a two-finger pinch sliding operation, which is not limited in this embodiment of the present application.
  • FIG. 3 when only the first picture is displayed in the picture browsing window 301, if the user performs the two-finger pinch-sliding operation 303 in the display area 302 of the first picture, this case Next, after the operation is detected, a similar picture search process based on the first picture is triggered.
  • the setting direction may be a downward direction.
  • the setting direction may be a downward direction.
  • Operation 2 The operation of obtaining the first picture by scanning is applicable to the terminal provided with the picture scanning device. As an example, after the terminal scans the first picture by using the scanning device disposed thereon, the similar picture search process using the first picture as a reference may be automatically triggered according to the obtained first picture scan information.
  • Operation 3 The operation of obtaining the first picture by shooting is applied to a terminal provided with an imaging device such as a camera.
  • an imaging device such as a camera.
  • the similar image search process based on the captured first image may be automatically triggered.
  • Operation 4 The operation of pasting the first picture in the search box.
  • the user opens an application for implementing image search, and pastes the selected first image into the application After the search box in the search interface, a similar image search process based on the first image will be triggered.
  • Operation 5 an operation for selecting an option for triggering a picture search in a popup menu of the first picture.
  • a picture operation option menu is popped up, and the menu may include one or more picture operation options, at least including An option for triggering an image search, for example, the menu may include the following options: "search for similar pictures", "copy pictures", "share pictures”; when the option for triggering image search (such as "search for similar pictures") is After selection, a similar image search process based on the first picture will be triggered.
  • the second screen touch operation may be a long press or a click operation in the first picture display area, which is not limited in this embodiment of the present application.
  • Operation 6 The operation of the UI (User Interface) component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  • the UI component may be a function button or a text box or other type of UI component, which is not limited in this embodiment of the present application.
  • a UI component can be set in the preview view window of each image, such as a button named "similar image search", when the user triggers a picture in the preview view window by operation " After the similar image search button, a similar image search process based on the image can be triggered. For another example, as shown in FIG.
  • a UI component is generated (eg, The button named "Find Similar Image” in the figure is displayed in the interface, and if the UI component is triggered (such as being clicked), a similar image search process based on the first image is triggered.
  • Operation 7 Set the function key operation when the first picture is displayed on the screen.
  • the first picture is displayed (or highlighted) in a normal size in the picture browsing window, instead of only displaying its preview view, if it is detected that the user has pressed a particular button of the terminal, A similar picture search process based on the first picture is triggered.
  • Operation 8 A set gesture operation performed when the first picture is displayed on the screen.
  • the first picture is displayed in a normal size in the picture browsing window, instead of only displaying its preview view, if the user is detected to perform a specific gesture operation, for example, The action of the moving arm triggers a similar picture search process based on the first picture.
  • Step 202 Determine a search dimension corresponding to the first picture.
  • the embodiment of the present application can support image search of multiple dimensions to meet different needs of users. In a similar image search process, you can search based on one dimension or multiple dimensions.
  • the image search dimension provided by the embodiment of the present application may include one or more combinations of the following dimensions:
  • the search dimensions of the objects in the image For example, for a person or building or other object in the first picture, search for other pictures that contain the object. If the image is searched by using the dimension, the feature information of the first image and the feature information of other images in the image library may be extracted; then the feature information of the first image is compared with the feature information of other images, and the similarity measure function is used. Calculating the similarity between the pictures, wherein the similarity can be generally characterized by an Euclidean distance, a Cosine distance, or a Mahalanobis distance; if the similarity between the second picture and the first picture is higher than a set threshold, the second picture is As a searched image similar to the first picture.
  • feature extraction is a process of converting an image into a vector.
  • the vector is called an image feature.
  • Feature extraction can be done by a feature extraction model.
  • the input of the model is a picture (the value of each pixel in the picture), and the output is an image. feature.
  • feature extraction methods such as color histograms, LBP, Gabor, deep convolutional networks, etc., and embodiments of the present application can use these methods for feature extraction.
  • the hue of the picture can be calculated by using an image analysis algorithm.
  • the shooting time of the first picture can usually be saved in the picture library as metadata or attribute information of the picture.
  • Shooting of two pictures The similar shooting time means that the difference between the shooting times of the two pictures is within the set duration.
  • the location information of the image can be saved in the image library as metadata or attribute information of the image.
  • the location information of the image can be saved in the image library as metadata or attribute information of the image.
  • the current location of the mobile phone can be obtained, and related information (such as latitude and longitude) of the current location is saved as the metadata or attribute information of the image in the image library.
  • the similarity between the two pictures is that the distance between the two pictures is within the set distance.
  • Information about the shooting device used by the image can be saved in the image library as metadata or attribute information of the image.
  • the phone's related information phone type, etc.
  • the information (such as type, model, etc.) of the camera that took the photo may be saved as a metadata or attribute information of the image to the photo library; if the image is from WeChat (a social application), etc.
  • the application can save the related information of the application as the metadata or attribute information of the image to the image library when saving the image to the image library.
  • the above is only exemplarily shown in the image search dimension provided by the embodiment of the present application.
  • the embodiment of the present application is not limited to the above search dimension.
  • the search of the same or similar size may be performed based on the size of the image. List them one by one.
  • one or more search dimensions can be used when performing an image search.
  • the embodiment of the present application preferably provides the following search modes (the one of the method 1 to the mode 3) to determine the search dimension to be used in the image search, and specifically includes:
  • Method 1 Obtain a default search dimension, and determine a default search dimension as a search dimension corresponding to the first picture, and the default search dimension may include one or more search dimensions.
  • Manner 2 The operation for selecting a search dimension in the pop-up menu of the first picture is selected, and the selected search dimension is determined as the search dimension corresponding to the first picture.
  • the pop-up menu pops up after the third screen touch operation performed in the screen display area of the first picture, and one search dimension option in the pop-up menu corresponds to one or more search dimensions.
  • the third screen touch operation may be a one-finger long touch operation in a screen display area of the first picture.
  • a menu pops up, which includes "search for the same person", “search for the same color”, “search for the same source” "Option; if the user selects the "Search for the same person” option in the menu, the trigger uses a similar image search process based on feature extraction; if the user selects the "Search for the same color” option in the menu, the trigger based on the first image is triggered. Tone finds the search process for pictures with the same hue.
  • Manner 3 determining a search dimension corresponding to the detected first operation according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, where a first operation corresponds to one Or multiple search dimensions.
  • the correspondence between the type of the touch operation of the screen and the search dimension is set in advance.
  • the one-point swipe operation corresponds to the “search dimension based on the object in the image”
  • the single-point swipe operation corresponds to the “image-based hue search”.
  • Step 203 Search for a second picture that matches the first picture on the search dimension according to the search dimension corresponding to the first picture.
  • the second picture refers to a picture that matches or is similar to the first picture in one or some search dimensions, and the second picture may be one or more.
  • the second picture that matches the first picture in the corresponding search dimension may be searched from the picture library stored locally by the terminal and/or the picture library stored on the network side.
  • the embodiment of the present application allows the user to select a local area in the first picture, and extract a feature based on the local area, thereby searching for a second picture similar to the feature of the local area.
  • the action area of the first screen touch operation may be acquired according to the first screen touch operation performed in the screen display area of the first picture; and then the feature information of the first picture in the active area is extracted, and further Other pictures The operation of feature extraction is performed; and the similarity between the images is calculated by the extracted feature information, thereby determining a second picture similar to the first picture.
  • feature information of the same size area in other pictures may be extracted according to the size of the action area, and the area may be in different positions for one picture (one picture in another picture)
  • the size of the feature extracts feature information of multiple regions, and when the feature information or the similarity comparison is performed, the feature information closest to the feature information extracted in the first image in one image may be retained as the feature information of the image, thereby measuring The similarity of the picture to the first picture.
  • the user can select a person's head by a single-finger click operation, thereby triggering feature extraction on the character's head area; for other pictures in the picture library to be compared, for example a second picture, where the different positions in the second picture (preferably including the same position as the selected person's head in the first picture) are feature-extracted by the size of the area, and the feature information of each feature information and the first picture is calculated.
  • the similarity retains the similarity in which the maximum value is the similarity of the second picture, and if the similarity is greater than the threshold, the second picture is output as the found similar picture. In this way, you can find additional images that contain the object for each object.
  • Step 204 Output the search result.
  • the search result can be output to the display device for display.
  • the found picture may be displayed, otherwise the prompt information of the picture that does not find the matching may be given.
  • the found second picture when the found second picture is displayed, the found second picture may be displayed in a picture preview manner according to the order of matching degree from high to low.
  • the matching degree refers to the similarity between the pictures determined based on the feature extraction method; for the aforementioned “search dimension based on the tone of the picture”, the matching degree refers to The closeness of the tone value of the picture; for the aforementioned “search dimension based on the picture-taking time”, the matching degree refers to the proximity of time; for the aforementioned “search dimension of the picture-based shooting location”, the matching degree refers to the location The proximity.
  • the matching degree of multiple dimensions may be combined to determine the total matching degree, and the search result is displayed according to the total matching degree.
  • N sub-windows can be set and used.
  • N sub-windows display the found second picture
  • each sub-window is used to display a preview view of the second picture or the second picture found based on one search dimension
  • each sub-window is allowed to switch display according to the corresponding search dimension according to the sliding touch operation
  • a preview view of the second or second picture found, N being an integer greater than or equal to one.
  • 6 exemplarily shows a search result page by taking three sub-windows as an example. As shown in FIG. 6, the area 601 is used to display the first picture, and the sub-window 602 is used to display the "search dimension based on the object in the picture".
  • the preview view in the child window 602 can be browsed by a one-way right swipe operation 605, and the preview view in the child window 603 can be browsed by a one-point left swipe operation 606.
  • the matching degree of the picture may also be displayed, for example, the matching degree is displayed below the found picture, so that the user can browse and select.
  • the embodiment of the present application after acquiring the image search instruction generated according to the detected first operation for the first picture, determining a search dimension corresponding to the first picture, and And searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension, thereby implementing an automatic search process of a similar picture triggered by the first operation, and adopting a manual manner
  • the user operation is low in complexity and time-consuming, and accordingly, the power consumption is also small.
  • the embodiment of the present application further provides a picture search device, which can implement the foregoing picture search process.
  • the device can be a terminal or a component integrated inside the terminal.
  • the device can be implemented by software or by a combination of software and hardware.
  • FIG. 7 is a schematic structural diagram of a picture search apparatus according to an embodiment of the present disclosure.
  • the picture search apparatus may include: an obtaining module 701, a determining module 702, a searching module 703, and an output module 704, where:
  • the obtaining module 701 is configured to acquire a picture search instruction, where the picture search instruction is generated according to the detected first operation for the first picture;
  • a determining module 702 configured to determine a search dimension corresponding to the first picture
  • the searching module 703 is configured to search according to the search dimension corresponding to the first picture. Searching for a second picture on the dimension that matches the first picture;
  • the output module 704 is configured to output a search result.
  • the first operation for the first picture comprises:
  • the operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  • the first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
  • the determining module 702 is specifically configured to:
  • a third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
  • the search dimension comprises one or more of the following dimensions:
  • the search dimension of a photo-based device or source is a photo-based device or source.
  • the searching module 703 may be specifically configured to: when the search dimension includes the search dimension of the object in the image, extract feature information of the first image, and search for the second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
  • the searching module 703 may be specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
  • the searching module 703 is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
  • the output module 704 is specifically configured to: display the second picture that is found in a picture preview manner according to the order of matching degree from high to low, the number of the second pictures being one or more.
  • the output module 704 is specifically configured to: display the searched second image by using N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
  • the embodiment of the present application further provides a terminal, where the terminal can implement the foregoing image search process.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal may generally include a processor 801, a memory 802, and a display 803.
  • the processor 801 can be a general purpose processor (such as a microprocessor or any conventional processor, etc.), a digital signal processor, an application specific integrated circuit, a field programmable gate array, or He has programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
  • Memory 802 may specifically include internal memory and/or external memory, such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like, which are well established in the art.
  • Display 803 can include touch screen control circuitry.
  • the bus architecture may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by processor 801 and various circuits of memory represented by memory 802.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein.
  • the bus interface provides an interface.
  • the processor 801 is responsible for managing the bus architecture and general processing, and the memory 802 can store data used by the processor 801 in performing operations.
  • the picture search process disclosed in the embodiment of the present application may be applied to the processor 801 or implemented by the processor 801.
  • each step of the picture search process may be completed by an integrated logic circuit of hardware in the processor 801 or an instruction in the form of software.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the processor 801 is coupled to the memory 802 for reading computer program instructions stored by the memory 802 and, in response, performing the following operations:
  • the picture search instruction being generated according to the detected first operation for the first picture
  • Searching according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
  • the first operation for the first picture comprises:
  • the UI component for triggering the picture search is selected.
  • the first screen touch operation performed in the screen display area of the first picture includes:
  • the processor 801 is specifically configured to:
  • a third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
  • the search dimension comprises one or more of the following dimensions:
  • the search dimension of a photo-based device or source is a photo-based device or source.
  • the processor 801 may be specifically configured to: when the search dimension includes, based on a search dimension of an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
  • the processor 801 is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
  • the processor 801 is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
  • the processor 801 is specifically configured to: in the order of the matching degree from high to low, instruct the display to display the second picture that is found in a picture preview manner, the number of the second pictures being one or more.
  • the processor 801 is specifically configured to: instruct the display to display the searched second image by using the N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each The sub-window is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

A picture searching method and device. The method comprises: upon detection of a first operation for a first picture, determining a search dimension corresponding to the first picture (202); and searching, according to the search dimension corresponding to the first picture, for a second picture matching the first picture in the search dimension (203), thus realizing an automatic searching process of similar pictures triggered by the first operation. The present invention gives comparatively less user operation complexity, reduced time consumption, and less energy consumption relative to using a manual picture searching method.

Description

一种图片搜索方法及装置Image search method and device 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种图片搜索方法及装置。The present application relates to the field of communications technologies, and in particular, to a picture search method and apparatus.
背景技术Background technique
随着移动通信技术的飞速发展和移动多媒体时代的到来,手机作为人们必备的移动通信工具,已从简单的通话工具向智能化发展,演变成一个移动的信息收集和处理平台。With the rapid development of mobile communication technology and the advent of the mobile multimedia era, mobile phones, as a necessary mobile communication tool for people, have evolved from simple call tools to intelligent development, and have evolved into a mobile information collection and processing platform.
目前,手机中可以存储大量图片,比如可存储手机拍摄得到的图片,或者通过其他方式存入的图片。At present, a large number of pictures can be stored in a mobile phone, such as a picture that can be stored by a mobile phone, or an image that is stored by other means.
当用户需要从这些大量的图片中查找具有某一相同或相似特性的图片时,需要查看这些大量的图片进行对比,操作复杂,耗时长,相应地,对手机的电能消耗也较大。随着手机存储容量的提高,图片存储量也随之增加,因此该问题就显得更为突出。When a user needs to search for a picture with a certain similar or similar characteristic from these large numbers of pictures, it is necessary to view a large number of pictures for comparison, which is complicated and time consuming, and correspondingly, the power consumption of the mobile phone is also large. As the storage capacity of mobile phones increases, the amount of image storage increases, so the problem becomes more prominent.
申请内容Application content
为解决上述问题,本申请实施例提供了一种图片搜索方法及装置。To solve the above problem, an embodiment of the present application provides a picture search method and apparatus.
本申请实施例提供的图片搜索方法,包括:The image search method provided by the embodiment of the present application includes:
获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;Obtaining a picture search instruction, the picture search instruction being generated according to the detected first operation for the first picture;
确定所述第一图片对应的搜索维度;Determining a search dimension corresponding to the first picture;
根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;Searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
输出查找结果。Output the search results.
优选地,所述针对第一图片的第一操作,包括:Preferably, the first operation for the first picture comprises:
在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者, a first screen touch operation performed in a screen display area of the first picture; or
通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
其中,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。The first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
优选地,所述确定所述第一图片对应的搜索维度,包括:Preferably, the determining the search dimension corresponding to the first picture comprises:
获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
优选地,所述搜索维度包括以下维度中的一种或多种组合:Preferably, the search dimension comprises one or more of the following dimensions:
基于图片中的对象的搜索维度;a search dimension based on an object in the image;
基于图片的色调的搜索维度;Search dimension based on the hue of the image;
基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
基于图片的拍摄地点的搜索维度; a search dimension based on the location of the image;
基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
其中,所述搜索维度包括基于图片中的对象的搜索维度时,所述根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片,包括:When the search dimension includes a search dimension based on an object in the image, the searching for a second image that matches the first image on the search dimension according to the search dimension corresponding to the first image, including :
提取所述第一图片的特征信息;Extracting feature information of the first picture;
根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。And searching for the second picture according to the extracted feature information, where the feature information of the second picture matches the feature information of the first picture.
其中,所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,所述根据所述第一图片的像素,提取所述第一图片的特征信息,包括:The first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, and the first picture is extracted according to a pixel of the first picture Characteristic information, including:
根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域;Acquiring an action area of the first screen touch operation according to a first screen touch operation performed in a screen display area of the first picture;
提取所述第一图片在所述作用区域内的特征信息。Extracting feature information of the first picture in the active area.
优选地,查找在所述搜索维度上与所述第一图片匹配的第二图片包括:从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。Preferably, searching for the second picture that matches the first picture in the search dimension comprises: searching from the locally stored picture library and/or the network side stored picture library on the search dimension and the The second picture matches the first picture.
优选地,所述输出查找结果,包括:按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片,所述第二图片的数量为一个或多个。Preferably, the outputting the search result comprises: displaying the searched second picture in a picture preview manner according to the order of matching degree, the number of the second pictures being one or more.
优选地,所述输出查找结果,包括:使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Preferably, the outputting the search result comprises: displaying the found second image by using N sub-windows, each sub-window is for displaying a preview view of the second image or the second image, which is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
本申请实施例提供的图片搜索装置,包括:The image search device provided by the embodiment of the present application includes:
获取模块,用于获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;An acquiring module, configured to acquire a picture search instruction, where the picture search instruction is generated according to the detected first operation for the first picture;
确定模块,用于确定所述第一图片对应的搜索维度; a determining module, configured to determine a search dimension corresponding to the first picture;
搜索模块,用于根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;a searching module, configured to search, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
输出模块,用于输出查找结果。Output module for outputting the search results.
优选地,所述针对第一图片的第一操作,包括:Preferably, the first operation for the first picture comprises:
在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or ,
所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
其中,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。The first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
优选地,所述确定模块具体用于:Preferably, the determining module is specifically configured to:
获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一 操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first The operation corresponds to one or more search dimensions.
优选地,所述搜索维度包括以下维度中的一种或多种组合:Preferably, the search dimension comprises one or more of the following dimensions:
基于图片中的对象的搜索维度;a search dimension based on an object in the image;
基于图片的色调的搜索维度;Search dimension based on the hue of the image;
基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
其中,所述搜索模块具体用于:所述搜索维度包括基于图片中的对象的搜索维度时,提取所述第一图片的特征信息,根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。The searching module is specifically configured to: when the search dimension includes a search dimension based on an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
其中,所述搜索模块具体用于:所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域,提取所述第一图片在所述作用区域内的特征信息。The searching module is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
优选地,所述搜索模块具体用于:从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。Preferably, the searching module is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
优选地,所述输出模块具体用于:按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片,所述第二图片的数量为一个或多个。Preferably, the output module is specifically configured to display the second picture that is found in a picture preview manner according to the order of matching degree, the number of the second pictures being one or more.
优选地,所述输出模块具体用于:使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Preferably, the output module is specifically configured to display the searched second image by using N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
本申请实施例提供的终端,包括:The terminal provided by the embodiment of the present application includes:
显示器;monitor;
存储器,用于存储计算机程序指令; a memory for storing computer program instructions;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;Obtaining a picture search instruction, the picture search instruction being generated according to the detected first operation for the first picture;
确定所述第一图片对应的搜索维度;Determining a search dimension corresponding to the first picture;
根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;Searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
输出查找结果。Output the search results.
优选地,所述针对第一图片的第一操作,包括:Preferably, the first operation for the first picture comprises:
在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or ,
所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
其中,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:The first screen touch operation performed in the screen display area of the first picture includes:
在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,a multi-finger zoom sliding operation performed in a screen display area of the first picture; or
在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。A sliding operation of the single finger in the set direction in the screen display area of the first picture.
优选地,所述处理器具体用于:Preferably, the processor is specifically configured to:
获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操 作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,The option for selecting the search dimension in the pop-up menu of the first picture is selected The search dimension corresponding to the first picture is determined as a search dimension corresponding to the first picture, wherein the pop-up menu is popped after the third screen touch operation performed in the screen display area of the first picture is detected. One search dimension option in the popup menu corresponds to one or more search dimensions; or
根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
优选地,所述搜索维度包括以下维度中的一种或多种组合:Preferably, the search dimension comprises one or more of the following dimensions:
基于图片中的对象的搜索维度;a search dimension based on an object in the image;
基于图片的色调的搜索维度;Search dimension based on the hue of the image;
基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
其中,所述处理器具体用于:所述搜索维度包括基于图片中的对象的搜索维度时,提取所述第一图片的特征信息,根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。The processor is specifically configured to: when the search dimension includes, based on a search dimension of an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
其中,所述处理器具体用于:所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域,提取所述第一图片在所述作用区域内的特征信息。The processor is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
优选地,所述处理器具体用于:从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。Preferably, the processor is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
优选地,所述处理器具体用于:按照匹配度从高到低的顺序,以图片预览方式指示显示器显示查找到的第二图片,所述第二图片的数量为一个或多个。Preferably, the processor is specifically configured to: in a picture preview manner, instruct the display to display the found second picture in an order of matching degree from high to low, the number of the second pictures being one or more.
优选地,所述处理器具体用于:指示显示器使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图 片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Preferably, the processor is specifically configured to: instruct the display to display the found second image by using N sub-windows, each sub-window is used to display the second image found based on a search dimension. A preview view of the slice or the second picture, each of the sub-windows being allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
本申请的上述实施例中,在获取到根据检测到的针对所述第一图片的第一操作所生成的图片搜索指令后,确定所述第一图片对应的搜索维度,并根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片,从而实现了由第一操作触发的相似图片的自动搜索过程,与采用人工方式进行图片搜索相比,用户操作复杂度低,耗时短,相应地,对电能消耗也较小。In the foregoing embodiment of the present application, after acquiring a picture search instruction generated according to the detected first operation for the first picture, determining a search dimension corresponding to the first picture, and according to the first a search dimension corresponding to the picture, searching for a second picture that matches the first picture on the search dimension, thereby implementing an automatic search process of similar pictures triggered by the first operation, compared with manually performing image search The user operation is low in complexity and short in time, and accordingly, the power consumption is also small.
附图说明DRAWINGS
图1为本申请实施例适用的网络架构示意图;1 is a schematic diagram of a network architecture applicable to an embodiment of the present application;
图2为本申请实施例提供的图片搜索流程示意图;2 is a schematic diagram of a picture search process according to an embodiment of the present application;
图3、图4和图5分别为本申请实施例中的触发相似图片搜索过程的屏幕触摸操作示意图;3, FIG. 4, and FIG. 5 are schematic diagrams of screen touch operations for triggering a similar picture search process in an embodiment of the present application;
图6为本申请实施例中的搜索结果显示示意图;6 is a schematic diagram showing display of search results in an embodiment of the present application;
图7为本申请实施例提供的图片搜索装置的结构示意图;FIG. 7 is a schematic structural diagram of a picture search apparatus according to an embodiment of the present application;
图8为本申请实施例提供的终端的结构示意图。FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种在终端上实现的图片自动搜索方案。本申请实施例提供的方案可应用于移动终端、PC(个人电脑)或智能设备等设备,所述移动终端可以是手机、PDA(Personal Digital Assistant,掌上电脑)或智能穿戴设备等。尤其适用于具有触摸屏的移动智能设备。An embodiment of the present application provides an automatic picture search solution implemented on a terminal. The solution provided by the embodiment of the present application can be applied to a mobile terminal, a PC (personal computer), or a smart device, and the mobile terminal can be a mobile phone, a PDA (Personal Digital Assistant), a smart wearable device, or the like. Especially suitable for mobile smart devices with touch screens.
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
图1示例性地示出了本申请实施例适用的一种网络架构。如图1所示,该网络架构中可包括终端以及网络侧的服务器,终端和服务器通过网络进 行通信。FIG. 1 exemplarily shows a network architecture to which the embodiment of the present application is applied. As shown in FIG. 1 , the network architecture may include a terminal and a server on the network side, and the terminal and the server enter through the network. Line communication.
上述架构中的服务器可以用来提供对用户图片库的存储或者访问服务。用户图片库用于存储用户的图片,比如,用户可通过手机拍摄图片并上传到该用户图片库进行存储。该服务器还可提供数据同步服务,通过数据同步,终端上存储的图片可同步存储或更新到用户图片库中。The servers in the above architecture can be used to provide storage or access services to the user's photo library. The user picture library is used to store the picture of the user. For example, the user can take a picture through the mobile phone and upload it to the user picture library for storage. The server can also provide a data synchronization service. Through data synchronization, pictures stored on the terminal can be synchronously stored or updated into the user picture library.
上述架构中的终端可以实现本申请实施例提供的图片搜索方法。进一步地,在图片搜索过程中,可以搜索终端本地的图片库中的图片,也可以通过服务器搜索用户图片库中该终端的用户的图片,或者既可以搜索终端本地图片库也可以搜索网络侧的图片库。The terminal in the above architecture can implement the image search method provided by the embodiment of the present application. Further, in the picture search process, the picture in the picture library of the terminal may be searched, or the picture of the user of the terminal in the user picture library may be searched by the server, or both the local picture library of the terminal and the network side may be searched. Photo gallery.
上述网络架构中,终端和服务器可以通过网络进行信息交互,该网络可以是广域网、局域网或互联网,或者采用移动通信技术的互联网。终端可通过无线方式接入互联网,服务器通常采用有线方式与互联网连接。In the above network architecture, the terminal and the server can exchange information through the network, and the network can be a wide area network, a local area network or the Internet, or an Internet using mobile communication technology. The terminal can access the Internet wirelessly, and the server is usually connected to the Internet by wire.
优选地,终端和服务器可以采用云计算技术,以基于云计算技术的强大功能实现信息处理。服务器和终端可采用基于云计算技术的操作系统,比如YunOS,从而可以整合云端和终端的资源和服务。Preferably, the terminal and the server can adopt cloud computing technology to implement information processing based on powerful functions of the cloud computing technology. Servers and terminals can use cloud-based technology-based operating systems, such as YunOS, to consolidate cloud and terminal resources and services.
参见图2,为本申请实施例提供的图片搜索流程示意图,该流程可在终端侧实现。如图所示,该流程可包括如下步骤:Referring to FIG. 2, it is a schematic diagram of a picture search process provided by an embodiment of the present application, where the process can be implemented on a terminal side. As shown, the process can include the following steps:
步骤201:获取针对第一图片的图片搜索指令,所述图片搜索指令是根据检测到的针对所述第一图片的第一操作所生成的。即,当检测到针对第一图片的第一操作后,可触发以下步骤202至步骤204的执行。Step 201: Acquire a picture search instruction for the first picture, the picture search instruction is generated according to the detected first operation for the first picture. That is, after the first operation for the first picture is detected, the execution of the following steps 202 to 204 may be triggered.
所述“第一图片”并不特指某类图片,而是为了描述方便使用的一种表述方式。The "first picture" does not specifically refer to a certain type of picture, but is a way of describing a convenient use.
该步骤中,针对第一图片的第一操作,可包括以下操作中的一种:In this step, the first operation for the first picture may include one of the following operations:
操作1:在第一图片的屏幕显示区域内进行的第一屏幕触摸操作。作为一个例子,当第一图片在图片显示界面中被显示时,如在图片浏览窗口中被按照正常大小显示(或被突出显示),而非仅显示其预览视图,此种情况下,若用户在该第一图片的显示区域内进行屏幕触摸操作,则会触发以该第一图片作为基准的相似图片搜索过程。 Operation 1: A first screen touch operation performed in a screen display area of the first picture. As an example, when the first picture is displayed in the picture display interface, such as being displayed in a normal size (or highlighted) in the picture browsing window, instead of only displaying its preview view, in this case, if the user Performing a screen touch operation in the display area of the first picture triggers a similar picture search process with the first picture as a reference.
其中,在第一图片的屏幕显示区域内进行的第一屏幕触摸操作,可以是在第一图片的屏幕显示区域内进行的单指触摸操作(也称单点触摸操作),也可以是多指触摸操作(也称多点触摸操作),本申请实施例对触摸操作的类型不作限制,只要预先对能够触发相似图片搜索过程的触摸操作进行定义即可。优选地,为了与通常使用的针对图片的屏幕触摸操作(比如单指水平滑动操作用于触发图片的切换)进行区分,本申请实施例选取特定的屏幕触摸操作来触发相似图片搜索过程。举例来说,可选取如下屏幕触摸操作中的一种来触发相似图片搜索过程:The first screen touch operation performed in the screen display area of the first picture may be a single-finger touch operation (also referred to as a single touch operation) performed in the screen display area of the first picture, or may be a multi-finger operation. The touch operation (also referred to as a multi-touch operation), the embodiment of the present application does not limit the type of the touch operation, as long as the touch operation capable of triggering the similar picture search process is defined in advance. Preferably, in order to distinguish from a commonly used screen touch operation for a picture, such as a single-finger horizontal sliding operation for triggering switching of a picture, the embodiment of the present application selects a specific screen touch operation to trigger a similar picture search process. For example, one of the following screen touch operations may be selected to trigger a similar image search process:
-在第一图片的屏幕显示区域内进行的多指缩放滑动操作。优选地,所述多指缩放操作可以是双指捏合滑动操作,本申请实施例对此不做限制。作为一个例子,如图3所示,当图片浏览窗口301中仅显示有第一图片的情况下,若用户在该第一图片的显示区域302内进行了双指捏合滑动操作303,此种情况下,在该操作被检测到后,则触发以该第一图片为基准的相似图片搜索过程。- A multi-finger zoom slide operation performed in the screen display area of the first picture. Preferably, the multi-finger zooming operation may be a two-finger pinch sliding operation, which is not limited in this embodiment of the present application. As an example, as shown in FIG. 3, when only the first picture is displayed in the picture browsing window 301, if the user performs the two-finger pinch-sliding operation 303 in the display area 302 of the first picture, this case Next, after the operation is detected, a similar picture search process based on the first picture is triggered.
-在第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作,优选地,该设定方向可以是向下的方向。作为一个例子,如图4所示,当图片浏览窗口401中仅显示有第一图片的情况下,若用户在该第一图片的显示区域402内进行了单指向下滑动操作403,此种情况下,在该操作被检测到后,则触发以该第一图片为基准的相似图片搜索过程。- a sliding operation of the single finger in the set direction performed in the screen display area of the first picture, preferably the setting direction may be a downward direction. As an example, as shown in FIG. 4, when only the first picture is displayed in the picture browsing window 401, if the user performs a single-pointing down sliding operation 403 in the display area 402 of the first picture, this case Next, after the operation is detected, a similar picture search process based on the first picture is triggered.
操作2:通过扫描得到第一图片的操作,适用于设置有图片扫描装置的终端。作为一个例子,终端通过其上设置的扫描装置对第一图片扫描后,根据获得到的第一图片扫描信息可自动触发以该第一图片作为基准的相似图片搜索过程。Operation 2: The operation of obtaining the first picture by scanning is applicable to the terminal provided with the picture scanning device. As an example, after the terminal scans the first picture by using the scanning device disposed thereon, the similar picture search process using the first picture as a reference may be automatically triggered according to the obtained first picture scan information.
操作3:通过拍摄得到第一图片的操作,适用于设置有摄像头等摄像装置的终端。作为一个例子,终端通过其上设置的摄像头进行拍照后,可自动触发以拍摄得到的第一图片为基准的相似图片搜索过程。Operation 3: The operation of obtaining the first picture by shooting is applied to a terminal provided with an imaging device such as a camera. As an example, after the terminal performs photographing through the camera set thereon, the similar image search process based on the captured first image may be automatically triggered.
操作4:在搜索框内粘贴第一图片的操作。作为一个例子,当用户开启用于实现图片搜索的应用程序,并将选择的第一图片粘贴到该应用程序 的搜索界面中的搜索框内后,将触发以该第一图片为基准的相似图片搜索过程。Operation 4: The operation of pasting the first picture in the search box. As an example, when the user opens an application for implementing image search, and pastes the selected first image into the application After the search box in the search interface, a similar image search process based on the first image will be triggered.
操作5:针对第一图片的弹出菜单中用于触发图片搜索的选项被选中的操作。作为一个例子,当检测到在第一图片的屏幕显示区域内进行了第二屏幕触摸操作后,会弹出一个图片操作选项菜单,该菜单中可包含一种或多种图片操作选项,其中至少包括用于触发图片搜索的选项,比如,该菜单中可包括以下选项:“搜索相似图片”“拷贝图片”“分享图片”;当该用于触发图片搜索的选项(如“搜索相似图片”)被选择后,将触发以该第一图片为基准的相似图片搜索过程。其中,所述第二屏幕触摸操作可以是在第一图片显示区域进行长按或点击等操作,本申请实施例对此不作限制。Operation 5: an operation for selecting an option for triggering a picture search in a popup menu of the first picture. As an example, when it is detected that the second screen touch operation is performed in the screen display area of the first picture, a picture operation option menu is popped up, and the menu may include one or more picture operation options, at least including An option for triggering an image search, for example, the menu may include the following options: "search for similar pictures", "copy pictures", "share pictures"; when the option for triggering image search (such as "search for similar pictures") is After selection, a similar image search process based on the first picture will be triggered. The second screen touch operation may be a long press or a click operation in the first picture display area, which is not limited in this embodiment of the present application.
操作6:第一图片的屏幕显示区域中或者预览视图窗口中,用于触发图片搜索的UI(User Interface,用户界面)组件被选中的操作。所述UI组件可以是功能按钮或者是文本框或者是其他类型的UI组件,本申请实施例对此不做限制。作为一个例子,在图片预览界面中,每个图片的预览视图窗口中可设置一UI组件,比如一个名为“相似图片搜索”的按钮,当用户通过操作触发一个图片的预览视图窗口中的“相似图片搜索”按钮后,可触发以该图片为基准的相似图片搜索过程。再例如,如图5所示,如果检测到用户在第一图片的屏幕显示区域501中进行了单指按下并保持3秒的操作(即长按操作)502,则生成一UI组件(如图中名称为“查找相似图片”的按钮)503并显示在界面中,若该UI组件被触发(比如被点击)则触发以第一图片为基准的相似图片搜索过程。Operation 6: The operation of the UI (User Interface) component for triggering the image search is selected in the screen display area of the first picture or in the preview view window. The UI component may be a function button or a text box or other type of UI component, which is not limited in this embodiment of the present application. As an example, in the image preview interface, a UI component can be set in the preview view window of each image, such as a button named "similar image search", when the user triggers a picture in the preview view window by operation " After the similar image search button, a similar image search process based on the image can be triggered. For another example, as shown in FIG. 5, if it is detected that the user performs a single-finger press in the screen display area 501 of the first picture and holds the operation for 3 seconds (ie, long press operation) 502, a UI component is generated (eg, The button named "Find Similar Image" in the figure is displayed in the interface, and if the UI component is triggered (such as being clicked), a similar image search process based on the first image is triggered.
操作7:当第一图片被屏幕显示的情况下进行的设定功能键操作。作为一个例子,当第一图片在图片浏览窗口中被按照正常大小显示(或被突出显示),而非仅显示其预览视图的情况下,若检测到用户按下了终端的某个特定按键,则触发以该第一图片为基准的相似图片搜索过程。Operation 7: Set the function key operation when the first picture is displayed on the screen. As an example, when the first picture is displayed (or highlighted) in a normal size in the picture browsing window, instead of only displaying its preview view, if it is detected that the user has pressed a particular button of the terminal, A similar picture search process based on the first picture is triggered.
操作8:当第一图片被屏幕显示的情况下进行的设定手势操作。作为一个例子,当第一图片在图片浏览窗口中被按照正常大小显示,而非仅显示其预览视图的情况下,若检测到用户进行了特定手势操作,比如,晃 动手臂的动作,则触发以该第一图片为基准的相似图片搜索过程。Operation 8: A set gesture operation performed when the first picture is displayed on the screen. As an example, when the first picture is displayed in a normal size in the picture browsing window, instead of only displaying its preview view, if the user is detected to perform a specific gesture operation, for example, The action of the moving arm triggers a similar picture search process based on the first picture.
以上仅示例性地给出了几种触发相似图片搜索过程的操作,除此以外,还可包括其他操作,例如,当第一图片在图片浏览窗口中被按照正常大小显示,而非仅显示其预览视图的情况下,通过声控指令触发以该第一图片为基准的相似图片搜索过程,本申请实施例在此不再一一列举。The above merely exemplarily gives several operations for triggering a similar picture search process, in addition to which other operations may be included, for example, when the first picture is displayed in a normal size in the picture browsing window, instead of only displaying it In the case of the preview view, the similar image search process based on the first picture is triggered by the voice command, and the embodiments of the present application are not enumerated here.
步骤202:确定第一图片对应的搜索维度。Step 202: Determine a search dimension corresponding to the first picture.
本申请实施例可支持多种维度的图片搜索,以满足用户的不同需求。在相似图片搜索过程中,可基于一个维度或多个维度进行搜索。举例来说,本申请实施例提供的图片搜索维度可包括以下维度中的一种或多种组合:The embodiment of the present application can support image search of multiple dimensions to meet different needs of users. In a similar image search process, you can search based on one dimension or multiple dimensions. For example, the image search dimension provided by the embodiment of the present application may include one or more combinations of the following dimensions:
-基于图片中的对象的搜索维度。比如,针对第一图片中的人物或建筑物或其他对象,搜索包含该对象的其他图片。若采用该维度进行图片搜索,则可提取该第一图片的特征信息以及图片库中其他图片的特征信息;然后将第一图片的特征信息与其他图片的特征信息进行比较,使用相似度度量函数计算图片间的相似度,其中,相似度通常可以采用欧氏距离、Cosine距离或马氏距离等表征;如果第二图片与第一图片的相似度高于设定阈值,则将该第二图片作为搜索到的与第一图片相似的图片。其中,特征提取是一种将图像转换为矢量的过程,该矢量称为图像特征,可通过特征提取模型来完成特征提取,该模型的输入为图片(图片中各像素的值),输出为图像特征。在图像分析领域中存在多种特征提取方法,如,颜色直方图、LBP、Gabor、深度卷积网络等,本申请实施例可使用这些方法进行特征提取。- Based on the search dimensions of the objects in the image. For example, for a person or building or other object in the first picture, search for other pictures that contain the object. If the image is searched by using the dimension, the feature information of the first image and the feature information of other images in the image library may be extracted; then the feature information of the first image is compared with the feature information of other images, and the similarity measure function is used. Calculating the similarity between the pictures, wherein the similarity can be generally characterized by an Euclidean distance, a Cosine distance, or a Mahalanobis distance; if the similarity between the second picture and the first picture is higher than a set threshold, the second picture is As a searched image similar to the first picture. Among them, feature extraction is a process of converting an image into a vector. The vector is called an image feature. Feature extraction can be done by a feature extraction model. The input of the model is a picture (the value of each pixel in the picture), and the output is an image. feature. There are a variety of feature extraction methods in the field of image analysis, such as color histograms, LBP, Gabor, deep convolutional networks, etc., and embodiments of the present application can use these methods for feature extraction.
-基于图片的色调的搜索维度。比如,根据第一图片的色调,搜索与该色调一致或近似一致的其他图片。其中,图片的色调可通过使用图像分析算法计算得到。- Search dimensions based on the hue of the image. For example, based on the hue of the first picture, other pictures that are consistent or approximately identical to the hue are searched for. Among them, the hue of the picture can be calculated by using an image analysis algorithm.
-基于图片的拍摄时间的搜索维度。比如,根据第一图片的拍摄时间,搜索与该拍摄时间相同或相近的其他图片。图片的拍摄时间通常可以作为图片的元数据或者属性信息保存在图片库中。两个图片的拍 摄时间相近是指两个图片的拍摄时间的差值在设定时长范围之内。- Search dimensions based on the time taken for the photo. For example, according to the shooting time of the first picture, other pictures that are the same or similar to the shooting time are searched. The shooting time of the picture can usually be saved in the picture library as metadata or attribute information of the picture. Shooting of two pictures The similar shooting time means that the difference between the shooting times of the two pictures is within the set duration.
-基于图片的拍摄地点的搜索维度。比如,根据第一图片的拍摄地点,搜索与该拍摄地点相同或相近的其他图片。图片的拍摄地点信息可作为图片的元数据或者属性信息保存在图片库中。举例来说,在用手机拍摄一张照片后,可获得手机当前所在的位置,并将当前所在的位置的相关信息(比如经纬度)作为该图片的元数据或属性信息保存到图片库中。两个图片的拍摄地点相近是指两个图片的拍摄地点之间的距离在设定距离范围之内。- Search dimensions based on the location of the image. For example, according to the shooting location of the first picture, search for other pictures that are the same or similar to the shooting location. The location information of the image can be saved in the image library as metadata or attribute information of the image. For example, after taking a photo with a mobile phone, the current location of the mobile phone can be obtained, and related information (such as latitude and longitude) of the current location is saved as the metadata or attribute information of the image in the image library. The similarity between the two pictures is that the distance between the two pictures is within the set distance.
-基于图片的拍摄设备或来源的搜索维度。比如,根据第一图片使用的拍摄设备,搜索使用相同拍摄设备拍摄的其他图片。图片使用的拍摄设备的相关信息(比如设备类型、型号等)可作为图片的元数据或者属性信息保存在图片库中。举例来说,在用手机拍摄一张照片后,可将手机的相关信息(手机类型等)作为该图片的元数据或属性信息保存到图片库中;在从照相机的存储卡导入照片到手机图片库的情况下,可将拍摄该照片的相机的相关信息(比如类型、型号等)作为该图片的元数据或属性信息保存到图片库中;如果图片来自于微信(一种社交应用程序)等应用程序,则可以在将图片保存到图片库时将该应用程序的相关信息作为该图片的元数据或属性信息保存到图片库中。- Search dimensions for photo-based devices or sources. For example, according to the photographing device used in the first picture, search for other pictures taken using the same photographing device. Information about the shooting device used by the image (such as device type, model number, etc.) can be saved in the image library as metadata or attribute information of the image. For example, after taking a photo with a mobile phone, you can save the phone's related information (phone type, etc.) as metadata or attribute information of the image to the photo library; import photos from the camera's memory card to the phone image In the case of the library, the information (such as type, model, etc.) of the camera that took the photo may be saved as a metadata or attribute information of the image to the photo library; if the image is from WeChat (a social application), etc. The application can save the related information of the application as the metadata or attribute information of the image to the image library when saving the image to the image library.
以上仅示例性地示出了本申请实施例提供的图片搜索维度,本申请实施例并不限于上述搜索维度,比如,还可以基于图片的大小进行相同或相似大小的图片的搜索,在此不再一一列举。The above is only exemplarily shown in the image search dimension provided by the embodiment of the present application. The embodiment of the present application is not limited to the above search dimension. For example, the search of the same or similar size may be performed based on the size of the image. List them one by one.
如上所述,进行图片搜索时,可以使用一种或多种搜索维度。本申请实施例优选地提供了以下几种方式(方式1至方式3中的一种)确定图片搜索时需要使用的搜索维度,具体可包括:As described above, one or more search dimensions can be used when performing an image search. The embodiment of the present application preferably provides the following search modes (the one of the method 1 to the mode 3) to determine the search dimension to be used in the image search, and specifically includes:
方式1:获取默认的搜索维度,将默认的搜索维度确定为第一图片对应的搜索维度,该默认的搜索维度可包括一个或多个搜索维度。Method 1: Obtain a default search dimension, and determine a default search dimension as a search dimension corresponding to the first picture, and the default search dimension may include one or more search dimensions.
方式2:针对第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为第一图片对应的搜索维度。其中,该 弹出菜单在第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,该弹出菜单中的一个搜索维度选项对应一个或多个搜索维度。其中,所述第三屏幕触摸操作可以是在第一图片的屏幕显示区域内单指长按的触摸操作。作为一个例子,当用户在图片浏览窗口所显示的第一图片的显示区域内单指按屏幕3秒之后,弹出一个菜单,该菜单中包含“搜索相同人物”“搜索相同色调”“搜索相同来源”选项;如果用户选择该菜单中的“搜索相同人物”选项,则触发采用基于特征提取进行相似图片搜索过程;如果用户选择该菜单中的“搜索相同色调”选项,则触发基于第一图片的色调查找具有相同色调的图片的搜索过程。Manner 2: The operation for selecting a search dimension in the pop-up menu of the first picture is selected, and the selected search dimension is determined as the search dimension corresponding to the first picture. Among them, the The pop-up menu pops up after the third screen touch operation performed in the screen display area of the first picture, and one search dimension option in the pop-up menu corresponds to one or more search dimensions. The third screen touch operation may be a one-finger long touch operation in a screen display area of the first picture. As an example, when the user presses the screen for 3 seconds in the display area of the first picture displayed in the picture browsing window, a menu pops up, which includes "search for the same person", "search for the same color", "search for the same source" "Option; if the user selects the "Search for the same person" option in the menu, the trigger uses a similar image search process based on feature extraction; if the user selects the "Search for the same color" option in the menu, the trigger based on the first image is triggered. Tone finds the search process for pictures with the same hue.
方式3:根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,一种第一操作对应一个或多个搜索维度。作为一个例子,预先设置屏幕触摸操作类型与搜索维度的对应关系,比如单指向上滑动操作对应上述“基于图片中的对象的搜索维度”,单指向下滑动操作对应上述“基于图片的色调的搜索维度”;这样,当检测到在第一图片显示区域中进行单指向上滑动操作时,确定使用“基于图片中的对象的搜索维度”进行图片搜索;当检测到在第一图片显示区域中进行单指向下滑动操作时,确定使用“基于图片的色调的搜索维度”进行图片搜索。Manner 3: determining a search dimension corresponding to the detected first operation according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, where a first operation corresponds to one Or multiple search dimensions. As an example, the correspondence between the type of the touch operation of the screen and the search dimension is set in advance. For example, the one-point swipe operation corresponds to the “search dimension based on the object in the image”, and the single-point swipe operation corresponds to the “image-based hue search”. Dimensions"; thus, when it is detected that the one-point up slide operation is performed in the first picture display area, it is determined to perform "picture search based on the search dimension of the object in the picture"; when it is detected in the first picture display area When the single-point down slide operation is performed, it is determined that the "search dimension based on the hue of the picture" is used for image search.
步骤203:根据第一图片对应的搜索维度,查找在该搜索维度上与第一图片匹配的第二图片。Step 203: Search for a second picture that matches the first picture on the search dimension according to the search dimension corresponding to the first picture.
其中,所述第二图片是指在某个或某些搜索维度上与第一图片相匹配或者说相似的图片,这样的第二图片可以是一个或多个。The second picture refers to a picture that matches or is similar to the first picture in one or some search dimensions, and the second picture may be one or more.
具体实施时,可从终端本地存储的图片库和/或网络侧存储的图片库中,查找在相应搜索维度上与第一图片匹配的第二图片。In a specific implementation, the second picture that matches the first picture in the corresponding search dimension may be searched from the picture library stored locally by the terminal and/or the picture library stored on the network side.
优选地,为了进一步提高灵活性,满足用户的需求,本申请实施例允许用户选择第一图片中的局部区域,并基于该局部区域提取特征,进而查找与该局部区域的特征相似的第二图片,具体地,可根据在第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取第一屏幕触摸操作的作用区域;然后提取第一图片在该作用区域内的特征信息,并进一步对其他图片 进行特征提取的操作;再通过提取的特征信息计算图片间的相似度,进而确定出与第一图片相似的第二图片。其中,在对其他图片进行特征提取时,可以根据所述作用区域的大小,提取其他图片中相同大小区域的特征信息,针对一个图片(其他图片中的一个图片),可在不同位置按照该区域的大小提取多个区域的特征信息,在进行特征信息或相似度比较时,可保留一个图片中与第一图片中提取的特征信息最为相近的特征信息作为该图片的特征信息,以此来衡量该图片与第一图片的相似度。Preferably, in order to further improve the flexibility and meet the requirements of the user, the embodiment of the present application allows the user to select a local area in the first picture, and extract a feature based on the local area, thereby searching for a second picture similar to the feature of the local area. Specifically, the action area of the first screen touch operation may be acquired according to the first screen touch operation performed in the screen display area of the first picture; and then the feature information of the first picture in the active area is extracted, and further Other pictures The operation of feature extraction is performed; and the similarity between the images is calculated by the extracted feature information, thereby determining a second picture similar to the first picture. When feature extraction is performed on other pictures, feature information of the same size area in other pictures may be extracted according to the size of the action area, and the area may be in different positions for one picture (one picture in another picture) The size of the feature extracts feature information of multiple regions, and when the feature information or the similarity comparison is performed, the feature information closest to the feature information extracted in the first image in one image may be retained as the feature information of the image, thereby measuring The similarity of the picture to the first picture.
比如,如果第一图片中包含多个人物,用户可通过单指点击操作选择一个人物的头部,这样,触发对该人物头部区域进行特征提取;对于图片库中待比较的其他图片,比如第二图片,在第二图片中的不同位置(优选地包含与第一图片中被选中的人物头部相同的位置)以该区域大小进行特征提取,计算各个特征信息与第一图片的特征信息的相似度,保留其中具有最大值的相似度作为该第二图片的相似度,如果该相似度大于阈值,则将该第二图片作为查找到的相似图片进行输出。通过以上方式,可以针对每个对象查找包含该对象的其他图片。For example, if the first picture contains multiple characters, the user can select a person's head by a single-finger click operation, thereby triggering feature extraction on the character's head area; for other pictures in the picture library to be compared, for example a second picture, where the different positions in the second picture (preferably including the same position as the selected person's head in the first picture) are feature-extracted by the size of the area, and the feature information of each feature information and the first picture is calculated. The similarity retains the similarity in which the maximum value is the similarity of the second picture, and if the similarity is greater than the threshold, the second picture is output as the found similar picture. In this way, you can find additional images that contain the object for each object.
步骤204:输出查找结果。Step 204: Output the search result.
该步骤中,可将查找结果输出给显示装置进行显示。相应地,如果查找到与第一图片匹配的第二图片,则可显示所查找到的图片,否则可给出未查找到匹配的图片的提示信息。In this step, the search result can be output to the display device for display. Correspondingly, if the second picture matching the first picture is found, the found picture may be displayed, otherwise the prompt information of the picture that does not find the matching may be given.
优选地,在显示查找到的第二图片时,可按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片。其中,对于前述“基于图片中的对象的搜索维度”,其匹配度是指基于特征提取方法确定出的图片间的相似度;对于前述“基于图片的色调的搜索维度”,其匹配度是指图片的色调值的接近程度;对于前述“基于图片的拍摄时间的搜索维度”,其匹配度是指时间的接近程度;对于前述“基于图片的拍摄地点的搜索维度”,其匹配度是指地点的接近程度。如果使用多个维度进行图片搜索,则可综合多个维度的匹配度(比如采用加权求和算法)确定总的匹配度,根据该总的匹配度显示查找结果。Preferably, when the found second picture is displayed, the found second picture may be displayed in a picture preview manner according to the order of matching degree from high to low. Wherein, for the foregoing “based on the search dimension of the object in the picture”, the matching degree refers to the similarity between the pictures determined based on the feature extraction method; for the aforementioned “search dimension based on the tone of the picture”, the matching degree refers to The closeness of the tone value of the picture; for the aforementioned "search dimension based on the picture-taking time", the matching degree refers to the proximity of time; for the aforementioned "search dimension of the picture-based shooting location", the matching degree refers to the location The proximity. If multiple dimensions are used for image search, the matching degree of multiple dimensions (for example, using a weighted summation algorithm) may be combined to determine the total matching degree, and the search result is displayed according to the total matching degree.
具体实施时,为了便于用户查看查找结果,可设置N个子窗口,使用 N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。图6示例性地以3个子窗口为例给出了搜索结果页面,如图6所示,区域601用于显示第一图片,子窗口602用于显示“基于图片中的对象的搜索维度”查找到的图片的预览视图,子窗口603用于显示“基于图片的色调的搜索维度”查找到的图片的预览视图,子窗口604用于显示“基于图片的拍摄时间的搜索维度”查找到的图片的预览视图。可通过单指向右滑动操作605浏览子窗口602中的预览视图,可通过单指向左滑动操作606浏览子窗口603中的预览视图。In the specific implementation, in order to facilitate the user to view the search result, N sub-windows can be set and used. N sub-windows display the found second picture, each sub-window is used to display a preview view of the second picture or the second picture found based on one search dimension, each sub-window is allowed to switch display according to the corresponding search dimension according to the sliding touch operation A preview view of the second or second picture found, N being an integer greater than or equal to one. 6 exemplarily shows a search result page by taking three sub-windows as an example. As shown in FIG. 6, the area 601 is used to display the first picture, and the sub-window 602 is used to display the "search dimension based on the object in the picture". a preview view of the picture to which the sub-window 603 is used to display a preview view of the "search dimension based on the hue of the picture", and the sub-window 604 is used to display the image "found based on the search dimension of the photographing time of the picture" Preview view. The preview view in the child window 602 can be browsed by a one-way right swipe operation 605, and the preview view in the child window 603 can be browsed by a one-point left swipe operation 606.
进一步地,还可以将图片的匹配度显示出来,比如在查找到的图片的下方显示匹配度,以便于用户浏览和选择。Further, the matching degree of the picture may also be displayed, for example, the matching degree is displayed below the found picture, so that the user can browse and select.
通过以上描述可以看出,本申请实施例中,在获取到根据检测到的针对所述第一图片的第一操作所生成的图片搜索指令后,确定所述第一图片对应的搜索维度,并根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片,从而实现了由第一操作触发的相似图片的自动搜索过程,与采用人工方式进行图片搜索相比,用户操作复杂度低,耗时短,相应地,对电能消耗也较小。As can be seen from the above description, in the embodiment of the present application, after acquiring the image search instruction generated according to the detected first operation for the first picture, determining a search dimension corresponding to the first picture, and And searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension, thereby implementing an automatic search process of a similar picture triggered by the first operation, and adopting a manual manner Compared with the image search, the user operation is low in complexity and time-consuming, and accordingly, the power consumption is also small.
基于相同的技术构思,本申请实施例还提供了一种图片搜索装置,该装置可实现前述的图片搜索流程。该装置可以是终端或者集成在终端内部的组成部件。该装置可通过软件实现或者通过软件和硬件相结合的方式实现。Based on the same technical concept, the embodiment of the present application further provides a picture search device, which can implement the foregoing picture search process. The device can be a terminal or a component integrated inside the terminal. The device can be implemented by software or by a combination of software and hardware.
参见图7,为本申请实施例提供的图片搜索装置的结构示意图,该图片搜索装置可包括:获取模块701、确定模块702、搜索模块703和输出模块704,其中:FIG. 7 is a schematic structural diagram of a picture search apparatus according to an embodiment of the present disclosure. The picture search apparatus may include: an obtaining module 701, a determining module 702, a searching module 703, and an output module 704, where:
获取模块701,用于获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;The obtaining module 701 is configured to acquire a picture search instruction, where the picture search instruction is generated according to the detected first operation for the first picture;
确定模块702,用于确定所述第一图片对应的搜索维度;a determining module 702, configured to determine a search dimension corresponding to the first picture;
搜索模块703,用于根据所述第一图片对应的搜索维度,查找在所述 搜索维度上与所述第一图片匹配的第二图片;The searching module 703 is configured to search according to the search dimension corresponding to the first picture. Searching for a second picture on the dimension that matches the first picture;
输出模块704,用于输出查找结果。The output module 704 is configured to output a search result.
优选地,所述针对第一图片的第一操作,包括:Preferably, the first operation for the first picture comprises:
在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
其中,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。The first screen touch operation performed in the screen display area of the first picture includes: a multi-finger zoom sliding operation performed in a screen display area of the first picture; or, in the A sliding operation of a single finger in a set direction in a screen display area of a picture.
优选地,确定模块702可具体用于:Preferably, the determining module 702 is specifically configured to:
获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
优选地,所述搜索维度包括以下维度中的一种或多种组合: Preferably, the search dimension comprises one or more of the following dimensions:
基于图片中的对象的搜索维度;a search dimension based on an object in the image;
基于图片的色调的搜索维度;Search dimension based on the hue of the image;
基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
其中,搜索模块703可具体用于:所述搜索维度包括基于图片中的对象的搜索维度时,提取所述第一图片的特征信息,根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。The searching module 703 may be specifically configured to: when the search dimension includes the search dimension of the object in the image, extract feature information of the first image, and search for the second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
其中,搜索模块703可具体用于:所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域,提取所述第一图片在所述作用区域内的特征信息。The searching module 703 may be specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
优选地,搜索模块703具体用于:从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。Preferably, the searching module 703 is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
优选地,输出模块704具体用于:按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片,所述第二图片的数量为一个或多个。Preferably, the output module 704 is specifically configured to: display the second picture that is found in a picture preview manner according to the order of matching degree from high to low, the number of the second pictures being one or more.
优选地,输出模块704可具体用于:使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Preferably, the output module 704 is specifically configured to: display the searched second image by using N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each sub-window It is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
基于相同的技术构思,本申请实施例还提供了一种终端,该终端可实现前述的图片搜索流程。Based on the same technical concept, the embodiment of the present application further provides a terminal, where the terminal can implement the foregoing image search process.
参见图8,为本申请实施例提供的终端的结构示意图。该终端总体来说可包括:处理器801,存储器802、显示器803。FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal may generally include a processor 801, a memory 802, and a display 803.
其中,处理器801可以是通用处理器(比如微处理器或者任何常规的处理器等)、数字信号处理器、专用集成电路、现场可编程门阵列或者其 他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。存储器802具体可包括内部存储器和/或外部存储器,比如随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质。显示器803可包括触摸屏控制电路。Wherein, the processor 801 can be a general purpose processor (such as a microprocessor or any conventional processor, etc.), a digital signal processor, an application specific integrated circuit, a field programmable gate array, or He has programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. Memory 802 may specifically include internal memory and/or external memory, such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like, which are well established in the art. Display 803 can include touch screen control circuitry.
处理器801与其他各模块之间存在数据通信连接,比如可基于总线架构进行数据通信。总线架构可以包括任意数量的互联的总线和桥,具体由处理器801代表的一个或多个处理器和存储器802代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。处理器801负责管理总线架构和通常的处理,存储器802可以存储处理器801在执行操作时所使用的数据。There is a data communication connection between the processor 801 and other modules, such as data communication based on the bus architecture. The bus architecture may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by processor 801 and various circuits of memory represented by memory 802. The bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein. The bus interface provides an interface. The processor 801 is responsible for managing the bus architecture and general processing, and the memory 802 can store data used by the processor 801 in performing operations.
本申请实施例揭示的图片搜索流程,可以应用于处理器801中,或者由处理器801实现。在实现过程中,图片搜索流程的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。The picture search process disclosed in the embodiment of the present application may be applied to the processor 801 or implemented by the processor 801. In the implementation process, each step of the picture search process may be completed by an integrated logic circuit of hardware in the processor 801 or an instruction in the form of software. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The steps of the method disclosed in the embodiments of the present application may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
具体地,处理器801,耦合到存储器802,用于读取存储器802存储的计算机程序指令,并作为响应,执行如下操作:Specifically, the processor 801 is coupled to the memory 802 for reading computer program instructions stored by the memory 802 and, in response, performing the following operations:
获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;Obtaining a picture search instruction, the picture search instruction being generated according to the detected first operation for the first picture;
确定所述第一图片对应的搜索维度;Determining a search dimension corresponding to the first picture;
根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;Searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
输出查找结果。 Output the search results.
优选地,所述针对第一图片的第一操作,包括:Preferably, the first operation for the first picture comprises:
在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or ,
所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的UI组件被选中的操作。In the screen display area of the first picture or in the preview view window, the UI component for triggering the picture search is selected.
其中,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:The first screen touch operation performed in the screen display area of the first picture includes:
在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,a multi-finger zoom sliding operation performed in a screen display area of the first picture; or
在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。A sliding operation of the single finger in the set direction in the screen display area of the first picture.
优选地,处理器801可具体用于:Preferably, the processor 801 is specifically configured to:
获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
优选地,所述搜索维度包括以下维度中的一种或多种组合: Preferably, the search dimension comprises one or more of the following dimensions:
基于图片中的对象的搜索维度;a search dimension based on an object in the image;
基于图片的色调的搜索维度;Search dimension based on the hue of the image;
基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
其中,处理器801可具体用于:所述搜索维度包括基于图片中的对象的搜索维度时,提取所述第一图片的特征信息,根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。The processor 801 may be specifically configured to: when the search dimension includes, based on a search dimension of an object in the image, extract feature information of the first image, and search for a second image according to the extracted feature information, where the second The feature information of the picture matches the feature information of the first picture.
其中,处理器801可具体用于:所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域,提取所述第一图片在所述作用区域内的特征信息。The processor 801 is specifically configured to: when the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, according to a screen in the first picture And performing a first screen touch operation performed in the display area, acquiring an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
优选地,处理器801可具体用于:从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。Preferably, the processor 801 is specifically configured to: search for a second picture that matches the first picture in the search dimension from a locally stored picture library and/or a picture library stored in the network side.
优选地,处理器801可具体用于:按照匹配度从高到低的顺序,以图片预览方式指示显示器显示查找到的第二图片,所述第二图片的数量为一个或多个。Preferably, the processor 801 is specifically configured to: in the order of the matching degree from high to low, instruct the display to display the second picture that is found in a picture preview manner, the number of the second pictures being one or more.
优选地,处理器801可具体用于:指示显示器使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Preferably, the processor 801 is specifically configured to: instruct the display to display the searched second image by using the N sub-windows, each sub-window is configured to display a preview view of the second image or the second image that is found based on one search dimension, each The sub-window is allowed to switch to display a preview view of the second picture or the second picture found based on the corresponding search dimension according to the sliding touch operation, where N is an integer greater than or equal to 1.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、 专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a general purpose computer, A processor of a special purpose computer, embedded processor or other programmable data processing device to produce a machine such that instructions executed by a processor of a computer or other programmable data processing device are generated for implementation in a flow or in a flowchart A flow and/or block diagram of a device in a box or a plurality of functions specified in a plurality of blocks.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (21)

  1. 一种图片搜索方法,其特征在于,包括:An image search method, comprising:
    获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;Obtaining a picture search instruction, the picture search instruction being generated according to the detected first operation for the first picture;
    确定所述第一图片对应的搜索维度;Determining a search dimension corresponding to the first picture;
    根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;Searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
    输出查找结果。Output the search results.
  2. 如权利要求1所述的方法,其特征在于,所述针对第一图片的第一操作,包括:The method of claim 1, wherein the first operation for the first picture comprises:
    在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
    通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
    通过拍摄得到所述第一图片的操作;或者,Obtaining the operation of the first picture by shooting; or,
    在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
    图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or ,
    所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  3. 如权利要求2所述的方法,其特征在于,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:The method of claim 2, wherein the first screen touch operation performed in a screen display area of the first picture comprises:
    在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,a multi-finger zoom sliding operation performed in a screen display area of the first picture; or
    在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。A sliding operation of the single finger in the set direction in the screen display area of the first picture.
  4. 如权利要求1所述的方法,其特征在于,所述确定所述第一图片对应的搜索维度,包括:The method of claim 1, wherein the determining a search dimension corresponding to the first picture comprises:
    获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对 应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, determining the default search dimension as the first image pair The search dimension that should be included, the default search dimension including one or more search dimensions; or,
    针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
    根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
  5. 如权利要求1或4所述的方法,其特征在于,所述搜索维度包括以下维度中的一种或多种组合:The method of claim 1 or 4, wherein the search dimension comprises one or more of the following dimensions:
    基于图片中的对象的搜索维度;a search dimension based on an object in the image;
    基于图片的色调的搜索维度;Search dimension based on the hue of the image;
    基于图片的拍摄时间的搜索维度;Search dimension based on the shooting time of the picture;
    基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
    基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
  6. 如权利要求5所述的方法,其特征在于,所述搜索维度包括基于图片中的对象的搜索维度时,所述根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片,包括:The method according to claim 5, wherein when the search dimension comprises a search dimension based on an object in a picture, the searching for the search dimension according to the search dimension corresponding to the first picture The second picture matching the first picture includes:
    提取所述第一图片的特征信息;Extracting feature information of the first picture;
    根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。And searching for the second picture according to the extracted feature information, where the feature information of the second picture matches the feature information of the first picture.
  7. 如权利要求6所述的方法,其特征在于,所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,所述根据所述第一图片的像素,提取所述第一图片的特征信息,包括:The method according to claim 6, wherein the first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture, the according to the A pixel of a picture, extracting feature information of the first picture, including:
    根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域; Acquiring an action area of the first screen touch operation according to a first screen touch operation performed in a screen display area of the first picture;
    提取所述第一图片在所述作用区域内的特征信息。Extracting feature information of the first picture in the active area.
  8. 如权利要求1所述的方法,其特征在于,所述查找在所述搜索维度上与所述第一图片匹配的第二图片,包括:The method of claim 1, wherein the finding a second picture that matches the first picture in the search dimension comprises:
    从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。A second picture matching the first picture on the search dimension is found from a locally stored picture library and/or a picture library stored on the network side.
  9. 如权利要求1所述的方法,其特征在于,所述输出查找结果,包括:The method of claim 1 wherein said outputting a search result comprises:
    按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片,所述第二图片的数量为一个或多个。The found second picture is displayed in a picture preview manner according to the order of matching degree from high to low, and the number of the second pictures is one or more.
  10. 如权利要求1所述的方法,其特征在于,所述输出查找结果,包括:The method of claim 1 wherein said outputting a search result comprises:
    使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Displaying the found second image by using N sub-windows, each sub-window is for displaying a preview view of the second image or the second image found based on one search dimension, each sub-window being allowed to switch display according to the sliding touch operation based on the corresponding search A preview view of the second picture or the second picture found by the dimension, where N is an integer greater than or equal to 1.
  11. 一种图片搜索装置,其特征在于,包括:A picture search device, comprising:
    获取模块,用于获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;An acquiring module, configured to acquire a picture search instruction, where the picture search instruction is generated according to the detected first operation for the first picture;
    确定模块,用于确定所述第一图片对应的搜索维度;a determining module, configured to determine a search dimension corresponding to the first picture;
    搜索模块,用于根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;a searching module, configured to search, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
    输出模块,用于输出查找结果。Output module for outputting the search results.
  12. 如权利要求11所述的装置,其特征在于,所述针对第一图片的第一操作,包括:The apparatus according to claim 11, wherein the first operation for the first picture comprises:
    在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作;或者,a first screen touch operation performed in a screen display area of the first picture; or
    通过扫描得到所述第一图片的操作;或者,Obtaining the operation of the first picture by scanning; or
    通过拍摄得到所述第一图片的操作;或者, Obtaining the operation of the first picture by shooting; or,
    在搜索框内粘贴所述第一图片的操作;或者,Pasting the first picture in the search box; or,
    图片操作选项菜单中用于触发图片搜索的选项被选中的操作,其中,所述图片操作选项菜单在所述第一图片的屏幕显示区域内进行的第二屏幕触摸操作被检测到后弹出;或者,An operation for selecting an option for triggering a picture search in the picture operation option menu, wherein the picture operation option menu is popped up after the second screen touch operation performed in the screen display area of the first picture is detected; or ,
    所述第一图片的屏幕显示区域中或预览视图窗口中,用于触发图片搜索的用户界面UI组件被选中的操作。The operation of the user interface UI component for triggering the image search is selected in the screen display area of the first picture or in the preview view window.
  13. 如权利要求12所述的装置,其特征在于,所述在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,包括:The device according to claim 12, wherein the first screen touch operation performed in a screen display area of the first picture comprises:
    在所述第一图片的屏幕显示区域内进行的多指缩放滑动操作;或者,a multi-finger zoom sliding operation performed in a screen display area of the first picture; or
    在所述第一图片的屏幕显示区域内进行的单指在设定方向上的滑动操作。A sliding operation of the single finger in the set direction in the screen display area of the first picture.
  14. 如权利要求11所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 11, wherein the determining module is specifically configured to:
    获取默认的搜索维度,将所述默认的搜索维度确定为所述第一图片对应的搜索维度,所述默认的搜索维度包括一个或多个搜索维度;或者,Obtaining a default search dimension, and determining the default search dimension as a search dimension corresponding to the first image, where the default search dimension includes one or more search dimensions; or
    针对所述第一图片的弹出菜单中用于选择搜索维度的选项被选中的操作,将被选中的搜索维度确定为所述第一图片对应的搜索维度,其中,所述弹出菜单在所述第一图片的屏幕显示区域内进行的第三屏幕触摸操作被检测到后弹出,所述弹出菜单中的一个搜索维度选项对应一个或多个搜索维度;或者,Determining, in the pop-up menu of the first picture, an option for selecting a search dimension, the selected search dimension as a search dimension corresponding to the first image, wherein the pop-up menu is in the first A third screen touch operation performed in a screen display area of a picture is detected and popped up, and one search dimension option in the popup menu corresponds to one or more search dimensions; or
    根据检测到的第一操作的类型,以及预设的第一操作的类型与搜索维度的对应关系,确定检测到的第一操作对应的搜索维度,其中,所述第一操作对应一个或多个搜索维度。Determining, according to the detected type of the first operation, and the corresponding relationship between the type of the first operation and the search dimension, the search dimension corresponding to the detected first operation, where the first operation corresponds to one or more Search for dimensions.
  15. 如权利要求11或14所述的装置,其特征在于,所述搜索维度包括以下维度中的一种或多种组合:The apparatus of claim 11 or 14, wherein the search dimension comprises one or more of the following dimensions:
    基于图片中的对象的搜索维度;a search dimension based on an object in the image;
    基于图片的色调的搜索维度;Search dimension based on the hue of the image;
    基于图片的拍摄时间的搜索维度; Search dimension based on the shooting time of the picture;
    基于图片的拍摄地点的搜索维度;a search dimension based on the location of the image;
    基于图片的拍摄设备或来源的搜索维度。The search dimension of a photo-based device or source.
  16. 如权利要求15所述的装置,其特征在于,所述搜索模块具体用于:The device according to claim 15, wherein the search module is specifically configured to:
    所述搜索维度包括基于图片中的对象的搜索维度时,提取所述第一图片的特征信息,根据提取到的特征信息查找第二图片,所述第二图片的特征信息与所述第一图片的特征信息相匹配。Extracting, according to the search dimension of the object in the picture, the feature information of the first picture, and searching for the second picture according to the extracted feature information, the feature information of the second picture and the first picture The feature information matches.
  17. 如权利要求16所述的装置,其特征在于,所述搜索模块具体用于:The device according to claim 16, wherein the search module is specifically configured to:
    所述针对第一图片的第一操作是在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作时,根据在所述第一图片的屏幕显示区域内进行的第一屏幕触摸操作,获取所述第一屏幕触摸操作的作用区域,提取所述第一图片在所述作用区域内的特征信息。The first operation for the first picture is a first screen touch operation performed in a screen display area of the first picture when the first screen touch operation is performed in a screen display area of the first picture Obtaining an action area of the first screen touch operation, and extracting feature information of the first picture in the active area.
  18. 如权利要求11所述的装置,其特征在于,所述搜索模块具体用于:The device according to claim 11, wherein the search module is specifically configured to:
    从本地存储的图片库和/或网络侧存储的图片库中,查找在所述搜索维度上与所述第一图片匹配的第二图片。A second picture matching the first picture on the search dimension is found from a locally stored picture library and/or a picture library stored on the network side.
  19. 如权利要求11所述的装置,其特征在于,所述输出模块具体用于:The device according to claim 11, wherein the output module is specifically configured to:
    按照匹配度从高到低的顺序,以图片预览方式显示查找到的第二图片,所述第二图片的数量为一个或多个。The found second picture is displayed in a picture preview manner according to the order of matching degree from high to low, and the number of the second pictures is one or more.
  20. 如权利要求11所述的装置,其特征在于,所述输出模块具体用于:The device according to claim 11, wherein the output module is specifically configured to:
    使用N个子窗口显示查找到的第二图片,每个子窗口用于显示基于一个搜索维度查找到的第二图片或第二图片的预览视图,每个子窗口被允许根据滑动触摸操作切换显示基于对应搜索维度查找到的第二图片或第二图片的预览视图,N为大于或等于1的整数。Displaying the found second image by using N sub-windows, each sub-window is for displaying a preview view of the second image or the second image found based on one search dimension, each sub-window being allowed to switch display according to the sliding touch operation based on the corresponding search A preview view of the second picture or the second picture found by the dimension, where N is an integer greater than or equal to 1.
  21. 一种终端,其特征在于,包括:A terminal, comprising:
    显示器; Display
    存储器,用于存储计算机程序指令;a memory for storing computer program instructions;
    处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
    获取图片搜索指令,所述图片搜索指令是根据检测到的针对第一图片的第一操作所生成的;Obtaining a picture search instruction, the picture search instruction being generated according to the detected first operation for the first picture;
    确定所述第一图片对应的搜索维度;Determining a search dimension corresponding to the first picture;
    根据所述第一图片对应的搜索维度,查找在所述搜索维度上与所述第一图片匹配的第二图片;Searching, according to the search dimension corresponding to the first picture, a second picture that matches the first picture in the search dimension;
    输出查找结果。 Output the search results.
PCT/CN2016/110193 2015-12-25 2016-12-15 Picture searching method and device WO2017107855A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510997392.8A CN106919326A (en) 2015-12-25 2015-12-25 A kind of image searching method and device
CN201510997392.8 2015-12-25

Publications (1)

Publication Number Publication Date
WO2017107855A1 true WO2017107855A1 (en) 2017-06-29

Family

ID=59089154

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110193 WO2017107855A1 (en) 2015-12-25 2016-12-15 Picture searching method and device

Country Status (2)

Country Link
CN (1) CN106919326A (en)
WO (1) WO2017107855A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107632759A (en) * 2017-08-21 2018-01-26 珠海市魅族科技有限公司 Picture display method, device, computer installation and computer-readable recording medium
CN108874262A (en) * 2018-06-07 2018-11-23 北京小度信息科技有限公司 Information interacting method, device, electronic equipment and computer readable storage medium
CN109840128A (en) * 2019-01-23 2019-06-04 努比亚技术有限公司 A kind of double screen wallpaper treatment method, server and mobile terminal
CN110245247A (en) * 2019-05-24 2019-09-17 浙江大华技术股份有限公司 Method, electronic equipment and the computer storage medium of picture searching
CN110598037B (en) * 2019-09-23 2022-01-04 腾讯科技(深圳)有限公司 Image searching method, device and storage medium
CN114422636B (en) * 2021-12-16 2023-03-07 巴可(苏州)医疗科技有限公司 Android-based method for generating test image to detect display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020184A (en) * 2012-11-29 2013-04-03 北京百度网讯科技有限公司 Method and system utilizing shot images to obtain search results
CN103559248A (en) * 2013-10-30 2014-02-05 广东明创软件科技有限公司 Searching method based on photo album picture of mobile terminal and mobile terminal
CN104881457A (en) * 2015-05-21 2015-09-02 百度在线网络技术(北京)有限公司 Picture searching method and device
US20150253962A1 (en) * 2014-03-10 2015-09-10 Samsung Electronics Co., Ltd. Apparatus and method for matching images
CN105138681A (en) * 2015-09-15 2015-12-09 成都品果科技有限公司 Picture search method and system based on space coordinate positioning

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216830B (en) * 2007-12-28 2011-09-21 腾讯科技(深圳)有限公司 Method and system for search commercial articles according to colors
CN101825989A (en) * 2010-04-23 2010-09-08 杭州图酷科技有限公司 Drag and drop image search input method
CN104111989B (en) * 2014-07-02 2017-12-22 百度在线网络技术(北京)有限公司 The offer method and apparatus of search result
CN104462325B (en) * 2014-12-02 2019-05-03 百度在线网络技术(北京)有限公司 Search for recommended method and device
CN104951537A (en) * 2015-06-18 2015-09-30 百度在线网络技术(北京)有限公司 Image searching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020184A (en) * 2012-11-29 2013-04-03 北京百度网讯科技有限公司 Method and system utilizing shot images to obtain search results
CN103559248A (en) * 2013-10-30 2014-02-05 广东明创软件科技有限公司 Searching method based on photo album picture of mobile terminal and mobile terminal
US20150253962A1 (en) * 2014-03-10 2015-09-10 Samsung Electronics Co., Ltd. Apparatus and method for matching images
CN104881457A (en) * 2015-05-21 2015-09-02 百度在线网络技术(北京)有限公司 Picture searching method and device
CN105138681A (en) * 2015-09-15 2015-12-09 成都品果科技有限公司 Picture search method and system based on space coordinate positioning

Also Published As

Publication number Publication date
CN106919326A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
WO2017107855A1 (en) Picture searching method and device
EP3661187B1 (en) Photography method and mobile terminal
JP5947131B2 (en) Search input method and system by region selection method
US9479693B2 (en) Method and mobile terminal apparatus for displaying specialized visual guides for photography
EP3547218B1 (en) File processing device and method, and graphical user interface
US20170032219A1 (en) Methods and devices for picture processing
WO2016101757A1 (en) Image processing method and device based on mobile device
US20140211065A1 (en) Method and system for creating a context based camera collage
CN112954210B (en) Photographing method and device, electronic equipment and medium
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
US11190653B2 (en) Techniques for capturing an image within the context of a document
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
US11232616B2 (en) Methods and systems for performing editing operations on media
EP3186953B1 (en) Method and apparatus for determining the capture mode following capture of the content
WO2017210908A1 (en) Processing method and terminal
TW201828118A (en) Picture search method and device searching in a search dimension for a second picture matching the first picture according to the search dimension corresponding to the first picture
CN113271378B (en) Image processing method and device and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
WO2019075644A1 (en) Portrait photograph searching method, and terminal
WO2016101768A1 (en) Terminal and touch operation-based search method and device
CN108647097B (en) Text image processing method and device, storage medium and terminal
Patankar et al. A method for resizing images by content perception
WO2022057419A1 (en) Method and apparatus for acquiring information related to subject, and storage medium and electronic device
CN115048342A (en) File classification method and device
CN113794943A (en) Video cover setting method and device, electronic equipment and storage medium

Legal Events

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

Ref document number: 16877666

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877666

Country of ref document: EP

Kind code of ref document: A1