WO2017143575A1 - Method for retrieving content of image, portable electronic device, and graphical user interface - Google Patents

Method for retrieving content of image, portable electronic device, and graphical user interface Download PDF

Info

Publication number
WO2017143575A1
WO2017143575A1 PCT/CN2016/074597 CN2016074597W WO2017143575A1 WO 2017143575 A1 WO2017143575 A1 WO 2017143575A1 CN 2016074597 W CN2016074597 W CN 2016074597W WO 2017143575 A1 WO2017143575 A1 WO 2017143575A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
electronic device
portable electronic
area
content
Prior art date
Application number
PCT/CN2016/074597
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 华为技术有限公司
Priority to PCT/CN2016/074597 priority Critical patent/WO2017143575A1/en
Priority to CN201680024911.5A priority patent/CN107533566A/en
Publication of WO2017143575A1 publication Critical patent/WO2017143575A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • Embodiments of the present invention relate to mobile communication technologies, and in particular, to a method for retrieving content of a picture and a portable electronic device.
  • many portable electronic devices for example, mobile phones, tablets, etc.
  • specific process of recognizing an item in a photo by using a portable electronic device is: opening a camera -> entering an option -> clicking an intelligent object -> taking a photo -> finger drawing a target object - >Click the search button -> to get the search results.
  • the operation steps of the prior art are relatively cumbersome, and it takes a long time from obtaining the picture to obtaining the corresponding search result, the real-time performance is poor, and the user experience is not good.
  • This document provides a method for retrieving the content of a picture, a portable electronic device, and a graphical user interface to simplify the steps and improve the user experience.
  • a method of retrieving content of a picture comprising: detecting a first operation acting on a picture, the picture being displayed on a screen of the portable electronic device Retrieving, in response to the first operation, acquiring a first search result that uses the entire content of the picture as a search element, displaying the first search result; detecting a second operation acting on the picture; a second operation, determining an identification area for identifying the picture, acquiring a second search result that uses the content of the picture and the recognition area as a search element, and displaying the second search result, wherein the The content of the picture that coincides with the identification area is part of the overall content of the picture, the first operation being different from the second operation.
  • the portable electronic device After the portable electronic device detects the first operation of the user on the screen displayed on the screen, the first retrieval result of the overall content of the image as the retrieval element may be acquired and the first retrieval result is displayed, and the user is detected to the image.
  • the second search result with the partial content of the picture as the search element may be acquired and the second search result may be displayed, thereby, the portable electronic device may realize the opposite picture when detecting different operations.
  • Overall content or Local content automatically performs retrieval, and in the prior art, it is necessary to first open the intelligent object recognition option, obtain a photo containing the target object, and then select an area containing the target object in the photo, and finally click on the search to obtain the search result, which is simplified.
  • the user steps to retrieve the content of the image enhances the user experience.
  • the method further includes: detecting a third operation acting on the picture, the third operation Including dragging, enlarging or reducing, the third operation is different from the first operation; in response to the third operation, acquiring a third search result that the content of the picture coincides with the identification area as a retrieval element And displaying a third retrieval result, wherein the identification area is a preset area on the screen.
  • the method further includes: detecting a fourth operation acting on the identification frame displayed on the screen, The fourth operation includes dragging or moving, the identification frame coincides with a boundary line of the identification area, the fourth operation is different from the first operation; in response to the fourth operation, acquiring the picture The content that coincides with the recognition area is used as a fourth search result of the search element, and the fourth search result is displayed.
  • determining the identification area that identifies the picture includes: using the content that overlaps the preset area on the screen with the picture as the picture The identified recognition area is displayed, or the content circled on the picture by the recognition frame displayed on the screen is used as an identification area for identifying the picture.
  • determining, by the second operation, the identification area that identifies the picture, the second operation includes a re-press operation, determining The area enclosed by the closed curve centered on the action point on the screen is the identification area, and the size of the closed curve is preset.
  • determining, in response to the second operation, an identification area that identifies the picture, the second operation comprises: double-clicking or knuckle sniping And determining, by the double-click or the closed curve centered on the touch point of the knuckle, the area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
  • the above-mentioned knuckle sniper may be that the user's knuckles tap the screen of the portable electronic device, and the number of slamming may be one time or multiple times, and may be set as needed.
  • the second operation in response to the second operation, Determining an identification area for identifying the picture, comprising: the second operation comprises two-finger expansion, and determining to enclose the closed curve centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen
  • the area is the identification area, and the size of the closed curve is preset.
  • determining, in response to the second operation, the identification area that identifies the picture, the second operation includes delimiting or sliding, determining The area enclosed by the circled track or the sliding track is the identification area.
  • the recognition area may be determined according to a curve trajectory generated on the screen by the circle or slide operation, specifically, the user may slide on the screen through the finger or knuckle of one finger or
  • the generated curve trajectory is determined to determine the recognition area, and the user may determine the recognition area by sliding or enclosing the generated curve trajectory on the screen by the finger or knuckles of the plurality of fingers.
  • the above-mentioned circled trajectory and the trajectory of the sliding may be a closed curve or a non-closed curve, and the curve may be a solid line or a broken line.
  • the circled or slid track is a non-closed curve
  • the non-closed curve may be used.
  • the area enclosed by the closed curve formed by the two end points of the closed curve connected by line segments or curves is the above-mentioned identification area.
  • the finger's finger or knuckle sliding on the screen can be understood as the finger's finger or knuckle continuously sliding on the screen.
  • the fingertip or knuckle of the finger is defined on the screen as a fingertip or knuckle of the finger to draw a circle on the screen or to draw other closed curves (also can be a non-closed curve).
  • determining, in response to the second operation, Before the image identifies the identified area the method further includes determining that the picture is in an enlarged state and the duration of the picture is in an enlarged state exceeds a first threshold.
  • the determining that the picture is in an enlarged state comprises: determining an enlarged size of the picture and an initial display of the picture The ratio of the size exceeds the second threshold.
  • a portable electronic device comprising means for performing the method provided by the first aspect or any of the possible implementations of the first aspect.
  • a portable electronic device comprising: a processor, a detector, a memory, a bus system; the processor, the detector, and the memory are connected by the system bus;
  • the memory is for one or more programs, the one or more programs comprising instructions that, when executed by the portable electronic device, cause the portable electronic device to perform any of the first aspect or the first aspect Possible implementations provide the methods.
  • a computer readable storage medium storing one or more programs, the one or more programs being executed by the portable electronic device, the portable electronic device performing the first aspect or the first aspect The method provided by any of the possible implementations.
  • a graphical user interface is provided on a portable electronic device, the portable electronic device comprising a display, a memory, a plurality of applications, and one or one of executing one or more programs stored in the memory A plurality of processors, the graphical user interface comprising a user interface displayed in accordance with the method provided by the first aspect or any one of the possible implementations of the first aspect, wherein the display comprises a touch-sensitive surface and a display screen.
  • the overall content refers to all of the content contained in the picture or the entire content of the picture displayed on the screen.
  • the closed curve includes a rectangular curve, a circular curve, and an elliptic curve or other closed curve when the identification region is determined according to the second operation.
  • the identification area is an area enclosed by a preset size closed curve preset at the preset position of the screen, and the closed curve includes a circular curve, a rectangular curve, an elliptic curve, and other closures. curve.
  • the closed curve shows a curve on the screen.
  • the closed curve is a transparent curve that is not displayed on the screen.
  • the identification area is a longitudinal middle strip area or a horizontal middle strip area of the screen or a central block area of the entire screen, wherein the longitudinal middle strip area or the horizontal middle strip shape The size of the area and the central block area is preset.
  • the method further includes: Detecting whether there are other operations acting on the picture, if the other operations are not detected within the preset time, then the content that coincides with the identification area is used as the second retrieval result of the retrieval element; if it is preset If the other operations are detected in the time, then, in response to the other operations, and correspondingly processing the image according to the other operations, detecting whether the device still exists in the preset time after the corresponding processing of the image Another operation of the picture, if the other operation is not detected within a preset time, the content that coincides with the identification area is used as a second retrieval result of the retrieval element, wherein the other operations include amplification, At least one of zooming in, dragging, or moving.
  • the first operation includes clicking, long pressing, double clicking, double pressing, double clicking, Knuckle slamming, two-finger extension, two-finger contraction, delineation, and sliding.
  • the second operation includes a click, a long press, a double tap, a re-press, a double tap, an knuckle tap, a two-finger extension, a two-finger contraction, a circle, and a slide.
  • the first operation is different from the second operation in a particular implementation.
  • the first operation is a re-press and the second operation is a deduction.
  • the third operation is an operation subsequent to the second operation, the third operation being the same as or different from the second operation.
  • the fourth operation is different from the second operation, the second operation is for a picture, and the fourth operation is for an identification frame on the screen.
  • a circular or rectangular area centered on a line segment formed by the initial finger-point connection of the two fingers on the screen is determined as the identification area.
  • an initial display size of the picture is a size that the picture is displayed on the screen after the portable electronic device opens the picture.
  • the method before the detecting the operation of the picture, the method further includes: the portable electronic device automatically identifying and retrieving all valid objects or objects in the picture, obtaining a retrieval result, and Store the search results.
  • the method before the operation of detecting the picture, the method further includes: the portable electronic device automatically identifying and retrieving all valid objects or objects in the picture, and acquiring the retrieval result specifically includes The portable electronic device searches for the overall content of the picture to obtain an overall retrieval result, and the portable electronic device searches for each object in the picture to obtain a retrieval result of each object, and the overall retrieval result and each object The search results are stored.
  • the image in the identification area is identified by using at least one of the following technologies: optical character recognition (OCR) based text recognition technology, barcode/two-dimensional code recognition technology , face detection technology, article detection technology.
  • OCR optical character recognition
  • performing the search according to the search element to obtain the search result includes: searching for a search result according to the search element in the portable electronic device, or sending the search element to a server on the network side, by the server The search is performed and the search result is obtained, and the server transmits the search result to the portable electronic device, and the search result is displayed by the portable electronic device.
  • the picture displayed on the screen of the portable electronic device is a picture obtained from an album, a webpage, or an application.
  • the portable electronic device includes a mobile phone, a mobile computer, and a flat Board computers, personal digital assistants, media players, smart TVs.
  • the recognition area can be determined and the image in the identification area is recognized, thereby obtaining the retrieval result, thereby simplifying the operation steps of retrieving the content of the picture, and further, implementing the image in the picture according to different operations Images from different regions are retrieved to improve the user experience.
  • FIG. 1 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a central area in a method of retrieving content of a picture according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a method for searching content of a picture to retrieve content of a picture according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • Figure 15 is a diagram showing the retrieval of the content of a picture in accordance with an embodiment of the present invention.
  • 16 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
  • FIG. 19 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
  • 20 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
  • 21 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
  • Embodiments of the present invention provide a method for retrieving content of a picture, which can automatically implement retrieval of content, when a user browses a picture through a portable electronic device (a picture in an album or a picture in a web page), when the portable electronic After the device detects the first operation of the image displayed on the screen by the user, the first retrieval result that takes the overall content of the image as the retrieval element is automatically acquired, and the first retrieval result is displayed, and the second detection of the user by the user is detected.
  • a portable electronic device a picture in an album or a picture in a web page
  • the second retrieval result with the partial content of the picture as the retrieval element may be automatically acquired, and the second retrieval result is displayed, so that the user can retrieve the content in the image through a simpler operation, and can also Different gestures retrieve different areas of the picture.
  • the method for searching the content of the picture in the embodiment of the present invention is described in detail below with reference to the specific embodiments.
  • FIG. 1 is a flow chart showing a method of retrieving the content of a picture according to an embodiment of the present invention.
  • the method can be performed by a portable electronic device (eg, a cell phone, a tablet, etc.).
  • a portable electronic device eg, a cell phone, a tablet, etc.
  • the specific process of searching the content of the picture is as follows:
  • a portable electronic device displays a picture.
  • the portable electronic device captures and judges the user's operation in real time.
  • the portable electronic device herein may capture the user's operation by displaying a screen of the picture, and some operations of the user may be set to trigger the recognition of the picture, and other gestures of the user may not trigger the recognition of the picture.
  • the above operations may include, but are not limited to, double tapping, long press, zoom in, re-press, zoom out, move, hover, circle, slide, knuckle tap and knuckle slip.
  • a long press refers to a user's finger pressing time on the screen for more than a certain time threshold.
  • the portable electronic device detects the first operation.
  • the first operation includes a click, a long press, a double tap, a double press, a double tap, an knuckle tap, a two-finger extension, a two-finger contraction, a circle, and a slide.
  • the portable electronic device displays the first search result.
  • the first search result is a search result obtained as a search element for the entire content of the picture.
  • the portable electronic device detects that the user's operation is the second operation.
  • the second operations include click, long press, double click, double press, double click, knuckle tap, two finger extension, two finger contraction, circle, and slide. It should be understood that the first operation is different from the second operation in a particular implementation. For example, the first operation is a re-press and the second operation is a deduction. It should be understood that after the user performs the second operation on the picture, there may be operations such as moving or dragging the picture.
  • the portable electronic device determines an identification area that identifies the picture.
  • the covered picture content of the identification area is a part of the overall content of the above picture, and the identification area may be an area enclosed by a closed curve of a preset size preset at a preset position of the screen.
  • the identification area may be preset in a central area of the screen, and the size and specific shape of the central area may be preset, as shown in FIG. 2, the central area may be a longitudinal strip middle section of the screen, and a horizontal direction.
  • the center strip area or the central block area of the screen as a whole.
  • step 108 Display a second search result. After the second search result is displayed, the process returns to step 102 to continue the loop process.
  • the recognition process for the picture can be started. Then, after detecting the first operation of the picture by the user, the search result can be displayed, and the step of searching the content of the picture is simplified, and the detection is performed. When the second operation of the user is performed, part of the picture content covered by the recognition area is retrieved, and the retrieval result is displayed.
  • the method for identifying the content shown in FIG. 1 may also be between step 103 and step 104. Or, between steps 105 and 106, whether the picture is in an enlarged or reduced state is determined, and whether the content of the picture is retrieved is determined according to the result of the determination.
  • the retrieval of the overall content of the picture is not performed to obtain the first search result.
  • the picture state stabilization time exceeds the time t 0 (the size of the time t 0 may be preset, for example , you can set t 0 to 0.5 seconds) and then execute 106 to 108. If the picture is not in the enlarged state, then 106 to 108 are not executed.
  • the zoom-in state herein may mean that the display ratio of the picture relative to the initial state is greater than 100%, or may be that the picture is enlarged and enlarged to a certain multiple with respect to the original picture to be in an enlarged state, for example, when the picture is enlarged to the original picture.
  • the picture is considered to be magnified when it is twice as large as the original picture.
  • the method for retrieving the content of the picture in the embodiment of the present invention can determine whether the picture is in an enlarged or reduced state after detecting the first operation or the second operation of the user.
  • FIG. 3 is a flow chart showing a method of retrieving the content of a picture according to an embodiment of the present invention. The method for searching the content of the picture in the embodiment of the present invention will be described in detail below with reference to FIG.
  • steps 201-205 are the same as steps 101-105 in the method shown in FIG. 1 (for details of steps 201-205, refer to steps 101-105 in FIG. 1), to avoid repetition, here No longer described in detail.
  • Step 206 is highlighted below.
  • step 206 includes the following:
  • the circular or rectangular area circled on the original picture centered on the double-click touch point is determined as the identification area, wherein the size of the circular area or the rectangular area is It is pre-set.
  • the identification area When the second operation of the user is two-finger expansion, it is determined that the area surrounded by the closed curve centered on the midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen is the identification area.
  • a circular or rectangular area centered at a midpoint of the line segment may be determined as an identification area.
  • a center line of the rectangular area may coincide with the line segment, and a diameter of the circular area may coincide with the line segment.
  • the length of the center line of the rectangular area may be greater than the line segment, and the diameter of the circular area may be greater than the length of the line segment, wherein the size of the circular area or the rectangular area is preset.
  • the area enclosed by the closed curve centered on the action point of the re-press operation is determined as an identification area, wherein the size of the closed curve is preset.
  • a circular or rectangular area centered on the touch point of the operation gesture may be determined as the identification area, wherein the size of the circular area or the rectangular area is Set.
  • steps 207 and 208 are continued to obtain the search result. Since steps 207 to 208 are the same as steps 107 to 108 in the method shown in FIG. 1, both of the second retrieval results are obtained and the second retrieval result is displayed. Therefore, in order to avoid repetition, steps 207 and 208 are not described in detail herein. .
  • the method may further include: The electronic device determines whether the picture is in an enlarged or reduced state. If the picture displayed on the screen is in an enlarged or reduced state, then the first operation is performed in response to the first operation, and the entire content of the image is used as a retrieval element to obtain the first retrieval result, if the image is in a non- The enlarged or non-reduced state can then not respond to the first operation, nor retrieve the entire content of the picture to obtain the first search result.
  • the method may further include: determining whether the picture is in an enlarged state, if the picture is in an enlarged state, and The picture state stabilization time exceeds the time t 0 (the size of the time t 0 can be set in advance, for example, t 0 can be set to 0.5 seconds), and then steps 206 to 208 are performed.
  • the zoom-in state herein may mean that the display ratio of the picture relative to the initial state is greater than 100%, or may be that the picture is enlarged and enlarged to a certain multiple with respect to the original picture to be in an enlarged state, for example, when the picture is enlarged to the original picture.
  • the picture is considered to be magnified when it is twice as large as the original picture.
  • the method for retrieving the content of the picture in the embodiment of the present invention may determine whether the picture is in a zoom state after detecting the first operation or the second operation of the user.
  • the retrieval of the content of the picture can be initiated. Then, after detecting the operation gesture of the user on the picture, the corresponding retrieval result can be displayed, which simplifies the retrieval of the content of the picture. a step, and enabling the user to retrieve content of different areas in the picture through different gestures (eg, touching the user when detecting that the user's operation gesture is "double click", "two finger expansion” or “force pressing” The content in the area is retrieved), which improves the user experience.
  • the identification boxes of the methods for retrieving the content of the pictures in both embodiments are fixed.
  • the recognition frame can also be moved, and the user can control the movement of the recognition frame through a series of gestures.
  • the content in the area covered by the identification frame can be identified when the recognition frame is moved to the screen. The case where the identification frame can be moved will be described in detail below with reference to FIG.
  • FIG. 4 is a flow chart showing a method of retrieving the content of a picture in accordance with an embodiment of the present invention. The method can be performed by the portable electronic device described above. As shown in FIG. 4, steps 301-302 are the same as steps 101-102 in the method shown in FIG. 1. To avoid repetition, details are not described herein again. The following focuses on the steps that are different from the method shown in FIG. 1.
  • the portable electronic device detects that the user's operation is the second operation.
  • the second operation includes at least one of double tapping, double pressing, double tapping, knuckle tapping, two-finger expansion, two-finger contraction, enclosing, and sliding.
  • the identification frame is movable, and its specific shape may be a rectangle, a circle, an ellipse or other irregular figure.
  • the recognition frame can automatically disappear.
  • the identification frame may be dragged, and the dragging at this time may be, after lifting the finger, pressing the identification frame again to drag, or not lifting the finger. Continue to hold down the identification box to drag. If the user's second operation is floating, the dragging at this time may be to continue to maintain the hovering gesture and perform the floating mode to achieve the dragging of the recognition frame; or the finger may be away from the screen, and then click the screen button. Live the identification box and drag it.
  • the picture displayed by the portable electronic device may be a picture opened by the user from an album in the portable electronic device, or may be obtained by a camera that the user activates the portable electronic device.
  • the portable electronic device can automatically identify and retrieve all valid objects or objects in the picture, obtain the retrieval result, and store the retrieval result. More specifically, the portable electronic device retrieves the overall content of the picture to obtain an overall retrieval result, and retrieves each object in the picture to obtain a retrieval result of each object, and then stores the overall retrieval result and the retrieval result of each object.
  • portable electronic devices can be retrieved from within the portable electronic device based on search elements The search result is obtained, or the portable electronic device sends the search element to the server on the network side, and the server searches for the search result, and the server transmits the search result to the portable electronic device, and the search result is displayed by the portable electronic device.
  • the barcode/two-dimensional code recognition technology, the face detection technology, the item detection technology, and the like may be used to acquire the first search result or the second search result.
  • the retrieval result may be a technique such as face retrieval and recognition, item retrieval and recognition, single number search, and item number search.
  • the first search result or the second search result may be displayed on a picture or a blank area or a screen around the picture, and the search result may be specifically a link or a link icon. Users can get more detailed information by clicking on the link or the link icon.
  • the initial display interface after the portable electronic device opens the picture is shown in FIG. 5.
  • the picture is located in the middle of the screen of the portable electronic device, and there are three objects in the picture (here, the picture is represented by a circle, a pentagon and a triangle).
  • the three objects if you want to implement the retrieval of the content in the picture, you can operate the picture on the displayed interface to achieve the retrieval of the content in the picture.
  • the portable electronic device when the portable electronic device detects the first operation on the picture, for example, the first operation is a click, the portable electronic device acquires the first search with the overall content of the picture as a search element.
  • the retrieval elements are the three objects in FIG. 6, and the first retrieval result is displayed on the screen or on the picture or around the picture.
  • the portable electronic device when the portable electronic device detects the second operation on the picture, for example, the second operation is a double click, the portable electronic device will acquire the content in which the picture coincides with the preset area in the center of the screen as Retrieve the second search result of the feature, that is, the search element is a pentagon object, and the second search result is displayed on the screen or on the picture or around the pentagon object.
  • the portable electronic device detects a third operation acting on the picture.
  • the third operation is to move the picture such that different objects are in a preset area in the center of the screen, so that the portable electronic device is
  • the retrieval result of the new object moved to the preset area is automatically acquired, and the obtained retrieval result is displayed on the screen or on the picture or near the new object (in FIG. 8 is a circle moving to the pre-area) Objects are retrieved).
  • the portable electronic device when the portable electronic device detects a second operation acting on the picture, the second operation is two-finger expansion or two-finger contraction, etc., the portable electronic device automatically forms a diameter of two contacts. A circular recognition area, and the content in the identification area is retrieved, and the obtained retrieval result is displayed on the screen or on the picture or near the target object.
  • the portable electronic device can also generate a movable identification frame, and the user can retrieve different objects in the picture by moving the identification frame, as shown in FIG. 10, when the portable electronic device detects After the second operation of the user, an identification frame may be generated in the active area on the screen, and the content bounded by the identification frame on the picture is used as an identification area for identifying the picture, and the identification frame in FIG. 10 is a A rectangular frame that the user can move down or to the right to move the recognition area to retrieve different objects in the picture.
  • the recognition area can be determined according to the curve trajectory generated on the screen by the circle or slide operation. Specifically, the user can determine the recognition by sliding or delineating the generated curve trajectory by one finger. In the area, the user can also determine the recognition area by sliding or enlarging the generated curve trajectory on the screen by a plurality of fingers.
  • the above-mentioned circled or slid track is an identification area. Specifically, as shown in FIG. 11, the user draws a closed curve on the screen by sliding or ringing operation, and the closed curve encloses a five in the middle of the picture.
  • the area of the edge object is the recognition area. It should be understood that, as shown in FIG.
  • the user can also determine a recognition area by drawing a non-closed curve on the screen by sliding or delineating operation.
  • the two non-closed curves can be The end points are connected together to form a closed curve, and the area enclosed by the closed curve is the above identified area.
  • the trajectory circled or slid in Figures 11 and 12 can be either a broken line or a solid line, or a transparent curve (the slide or circled trajectory will not be displayed on the screen, but will still follow the trajectory of the slide. Determine the recognition area), or it can be other types of curves.
  • the method for searching the content of the image in the embodiment of the present invention is combined with the specific recognition result in FIG. 13 to FIG. Carry out a detailed description.
  • the portable electronic device detects the first operation of the user, and then the portable electronic device selects the picture.
  • the overall content is searched as a search element, and the search result "NBA All-Star Lineup" is displayed on the picture.
  • the portable electronic device After performing the overall search, if the user wants to know more about each character in the picture, as shown in FIG. 14, when the user takes the second operation After operating the picture, the portable electronic device automatically retrieves the image in the central area of the screen and displays the search result "O'Neill" on the picture. If the user wants to know more about other characters in the picture, the third operation can be operated to operate the picture. As shown in FIG.
  • the portable electronic device automatically performs the screen.
  • the content of the central area is retrieved and the search result "Duncan" is displayed on the picture.
  • the portable electronic device can automatically retrieve the content under the central area, and display the search result. If the user searches for other content in the picture, the content to be retrieved can be moved to the central area of the screen by moving the picture. It is convenient for the user's operation.
  • the user after the user opens the picture stored by the portable electronic device, the user performs a first operation on the picture, and the portable electronic device searches the entire content of the picture, and displays the search result “Funny Dessert” in the picture. on.
  • the user wants to know more about each target in the picture, the user can double-click the picture, as shown in FIG. 17, the area double-clicked by the user is the target in the upper left corner, and then the portable electronic device acquires the target search in the upper left corner.
  • the search result "fruit mousse cup" is displayed in the vicinity of the target.
  • the user continues to double-click the picture, and the area that the user double-clicks is the target object in the lower right corner.
  • the portable electronic device acquires the target search result in the lower right corner, and displays the search result “strawberry cake” on the target.
  • the touch area of the user's operation gesture can automatically retrieve the content of the area, and display the search result on the screen or on the image or near the image, which is convenient for the user. operating.
  • the portable electronic device may automatically identify and retrieve all valid objects or objects in the image in advance before detecting the operation on the image, and obtain the retrieval result. And store the results of the search.
  • the portable electronic device can also retrieve the overall content of the image to obtain an overall retrieval result, and retrieve each object in the image to obtain a retrieval result of each object, and store the overall retrieval result and the retrieval result of each object.
  • the portable electronic device detects the user's operation, the previously stored search result can be quickly called and the search result displayed.
  • the method for retrieving the content of a picture according to an embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 18.
  • FIG. 19 to FIG. 21 a device for searching content of a picture according to an embodiment of the present invention will be described below. .
  • the apparatus can implement the various steps of the method of retrieving the content of the picture described in FIGS. 1 to 18, and the repeated description is omitted as appropriate for brevity.
  • FIG. 19 is a schematic block diagram of an apparatus for retrieving content of a picture according to an embodiment of the present invention.
  • the portable electronic device 400 includes:
  • the detecting unit 410 is configured to detect a first operation applied to a picture, where the picture is displayed on a screen of the portable electronic device;
  • the processing unit 420 is configured to: in response to the first operation, acquire a first search result that uses the entire content of the picture as a search element, and display the first search result;
  • the detecting unit 410 is further configured to detect a second operation that is applied to the picture;
  • the processing unit 420 is further configured to: in response to the second operation, determine an identification area that identifies the picture, and acquire a second search result that uses the content that overlaps the picture and the identification area as a search element, and displays the The second search result, wherein the content of the picture that coincides with the identification area is a part of the overall content of the picture, and the first operation is different from the second operation.
  • the portable electronic device can recognize the whole or partial content of the picture when detecting different operations, and the prior art needs to first open the intelligent object recognition option, obtain the photo containing the target object, and then select the target object in the photo. The recognition area, and finally click on the search to obtain the search result, simplifies the user's operation of searching the content of the picture.
  • the detecting unit 410 is further configured to detect a third operation that is applied to the picture, where the third operation includes dragging, zooming in, or zooming out, the third operation and the third
  • the processing unit 420 is further configured to: in response to the third operation, acquire a third search result that uses the content that overlaps the image and the identification area as a search element, and display a third search result, where The identification area is a preset area on the screen.
  • the detecting unit 410 is further configured to detect a fourth operation that is applied to the identification frame displayed on the screen, where the fourth operation includes dragging or moving, the identification frame is The boundary line of the identification area coincides, the fourth operation is different from the first operation; the processing unit 420 is further configured to: in response to the fourth operation, acquire content that overlaps the image and the identification area as a retrieval The fourth search result of the element displays the fourth search result.
  • the processing unit 420 is specifically configured to: in response to the second operation, content that overlaps the preset area on the screen and the picture as an identification area that identifies the picture. Or, the identification box displayed on the screen is circled on the picture The content serves as an identification area for identifying the picture.
  • the second operation includes a re-press operation
  • the processing unit 420 is specifically configured to: determine that the re-press operation is surrounded by a closed curve centered on an action point on the screen.
  • the area is the identification area, and the size of the closed curve is preset.
  • the second operation includes a double tap or an knuckle tap
  • the processing unit 420 is specifically configured to: determine, by using the double tap operation or the touch point of the knuckle tap as a center
  • the area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
  • the second operation includes two-finger expansion
  • the processing unit 420 is specifically configured to: determine, centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen.
  • the area enclosed by the closed curve is the identification area, and the size of the closed curve is preset.
  • the second operation includes delimiting or sliding
  • the processing unit is specifically configured to: determine an area enclosed by the circled track or the sliding track as the identification area.
  • the portable electronic device further includes: a determining unit 430, configured to determine, before the processing unit is responsive to the second operation and determining an identification area that identifies the picture The picture is in an enlarged state and the picture is in an enlarged state for a duration exceeding a first threshold.
  • a determining unit 430 configured to determine, before the processing unit is responsive to the second operation and determining an identification area that identifies the picture The picture is in an enlarged state and the picture is in an enlarged state for a duration exceeding a first threshold.
  • FIG. 20 is a schematic block diagram of an apparatus for retrieving content of a picture according to an embodiment of the present invention.
  • the portable electronic device 500 includes:
  • Processor 510 detector 520, memory 530, bus system 540;
  • the processor 510, the memory 530, and the detection 520 are connected by the bus;
  • the memory 530 is configured to store one or more programs, the one or more programs including instructions;
  • the detector 520 is configured to detect a first operation applied to a picture when the instruction is executed by the portable electronic device, wherein the picture is displayed on a screen of the portable electronic device; the processor 510, in response to the first operation, acquiring a first search result that uses the entire content of the picture as a search element, and displaying the first search result;
  • the detector 520 is further configured to detect a second operation that acts on the picture
  • the processor 510 is further configured to: in response to the second operation, determine an identification area that identifies the picture, and acquire a second search result that uses the content that overlaps the picture and the identification area as a search element, and displays the The second search result, wherein the content of the picture that coincides with the identification area is a part of the overall content of the picture, and the first operation is different from the second operation.
  • the processor 510 can directly retrieve the entire content of the image and retrieve the result. Displayed, and after the detector 520 detects the user's second operation on the picture, the processor 510 can retrieve part of the content of the picture and display the retrieved result, thereby indicating that the portable electronic device is detecting different The operation can realize the retrieval of the whole or partial content of the picture.
  • the retrieval operation step of the user is simplified, and the user can recognize the images of different regions in the image through different gestures, thereby enhancing the retrieval effect and improving the user experience.
  • the detector 520 is further configured to detect a third operation that is applied to the picture, where the third operation includes dragging, zooming in, or zooming out, the third operation and the third An operation is different.
  • the processor 510 is further configured to: in response to the third operation, acquire a third search result that is a content of the search area and the content of the recognition area, and display a third search result, where The identification area is a preset area on the screen.
  • the detector 520 is further configured to detect a fourth operation that is applied to the identification frame displayed on the screen, the fourth operation includes dragging or moving, the identification frame and the The boundary line of the identification area coincides, the fourth operation is different from the first operation; the processor 510 is further configured to: in response to the fourth operation, acquire content that overlaps the image and the identification area as a retrieval The fourth search result of the element displays the fourth search result.
  • the processor 510 is specifically configured to: in response to the second operation, content that overlaps the preset area on the screen and the picture as an identification area that identifies the picture. Or, the content circled on the picture by the recognition frame displayed on the screen is used as an identification area for identifying the picture.
  • the second operation includes a re-press operation
  • the processor 510 is specifically configured to: determine a closed curve centered on a point of action of the re-press operation on the screen.
  • the area is the identification area, and the size of the closed curve is preset.
  • the second operation includes a double tap or an knuckle tap
  • the processor 510 is specifically configured to: determine, by using the double tap or the touch point of the knuckle The area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
  • the second operation includes two-finger expansion
  • the processor 510 is specifically configured to: determine, centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen.
  • the area enclosed by the closed curve is the identification area, and the size of the closed curve is preset.
  • the second operation includes delimiting or sliding
  • the processor 510 is specifically configured to: determine an area enclosed by the circled track or the sliding track as the identification area. .
  • the processor 510 is specifically configured to: before the second operation and determining the identification area that identifies the picture, determine that the picture is in an enlarged state and the picture is in The length of the amplified state exceeds the first threshold.
  • the present invention also includes a computer readable storage medium storing one or more programs that, when executed by the portable electronic device, can perform the operations as shown in FIGS. 1 through 18 A method of retrieving the content of a picture.
  • the present invention also includes a graphical user interface on a portable electronic device, the portable electronic device including a display, a memory, a plurality of applications, and one or more for executing one or more programs stored in the memory A processor, the graphical user interface comprising a user interface displayed in accordance with a method of retrieving content of a picture as shown in FIGS. 1 through 18, wherein the display comprises a touch-sensitive surface and a display screen.
  • FIG. 21 The specific structure of the portable electronic device according to the embodiment of the present invention will be described below with reference to FIG. 21. It should be understood that the structural knowledge shown in FIG. 21 is the most specific case in the portable electronic device of the embodiment of the present invention, and the embodiment of the present invention is not The portable electronic device is limited.
  • FIG. 21 is a schematic block diagram of a portable electronic device that retrieves content of a picture in accordance with an embodiment of the present invention.
  • the apparatus includes various modules for performing the method of searching for the content of the picture in the embodiment of the present invention.
  • the portable electronic device will be described in detail below with reference to FIG.
  • the portable electronic device includes a processor unit, an input unit, a storage unit, a communication unit, a peripheral interface, an output unit, and a power source. These units or components communicate over one or more buses. It should be understood that the portable electronic device shown in FIG. 21 is only the most specific one. In the case, it does not constitute a limitation on the portable electronic device of the embodiment of the present invention.
  • the portable electronic device of the embodiments of the present invention may be any mobile or portable electronic device, including but not limited to a mobile phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, a smart TV, and Combination of two or more of the above.
  • PDA Personal Digital Assistant
  • the respective modules or units of the portable electronic device of the embodiments of the present invention are described in detail below.
  • An input unit for implementing user interaction with an electronic device and/or information input into the electronic device.
  • the input unit can receive numeric or character information input by the user to generate a signal input related to user settings or function control.
  • the input unit may be a touch panel, or may be other human-computer interaction interfaces, such as a physical input key, a microphone, etc., and may be other external information capture devices, such as a camera.
  • a touch panel also known as a touch screen or touch screen, collects operational actions that the user touches or approaches on.
  • the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller;
  • the touch controller receives the electrical signal from the touch detection device, and Convert it to contact coordinates and send it to the processing unit.
  • the touch controller can also receive and execute commands from the processing unit.
  • touch panels can be implemented in various types such as resistive, capacitive, capacitive + pressure sensitive, infrared (infrared) and surface acoustic waves.
  • the physical input keys used by the input unit may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. Or a variety.
  • An input unit in the form of a microphone can collect the voice input by the user or the environment and convert it into a command executable by the processing unit in the form of an electrical signal.
  • the input unit of the portable electronic device of the embodiment of the present invention may be various types of sensor components, such as a Hall device, which can be used to detect physical quantities of electronic devices, such as force, moment, pressure, stress, position, displacement. Speed, acceleration, angle, angular velocity, number of revolutions, speed, and time when the working state changes, etc., are converted into electricity for detection and control.
  • sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure (pressure) sensors, piezoelectric Sensors, heart rate sensors, fingerprint readers, etc.
  • a processor unit which is the control center of the portable electronic device, which can connect various parts of the entire portable electronic device using various interfaces and lines, by running or executing software programs and/or modules stored in the storage unit, and calling storage Data within the storage unit to perform various functions of the electronic device and/or process data.
  • the processor unit may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor unit may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip (for example, a baseband) in the communication unit. A combination of chips).
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the communication unit is configured to establish a communication channel, and enable the portable electronic device to perform voice communication, text communication, and data communication with the remote electronic device or the server through the communication channel.
  • the communication unit may include a wireless local area network (WLAN) module, a Bluetooth module, a baseband module, and the like, and a radio frequency (RF) circuit corresponding to the communication module.
  • WLAN wireless local area network
  • RF radio frequency
  • WCDMA Wideband Code Division Multiple Access
  • HSDPA High Speed Downlink Packet Access
  • the communication module is used to control communication of components in the electronic device, and can support Direct Memory Access.
  • various communication modules in the communication unit of the portable electronic device of the embodiment of the present invention may be in the form of an integrated circuit chip, and may be selectively combined without including all communication modules and corresponding Antenna group.
  • the above communication unit may include only a baseband chip, a radio frequency chip, and a corresponding antenna to provide a communication function in a cellular communication system.
  • the portable electronic device can be connected to a cellular network (Cellular Network) or the Internet (Internet) via a wireless communication connection established by the communication unit, such as wireless local area network access or WCDMA access.
  • the radio frequency chip can form a radio frequency circuit, and the radio frequency circuit can be used to receive and transmit signals during information transmission or reception.
  • the radio frequency circuit may process the downlink information of the base station and then process it to the processing unit; in addition, transmit the designed uplink data to the base station.
  • the radio frequency circuit includes well-known circuits for performing these functions, including but not limited to antennas System, radio frequency transceiver, one or more amplifiers, tuner, one or more oscillators, digital signal processor, Codec chipset, Subscriber Identity Module (SIM) card, memory, and the like.
  • the RF circuit can communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access). HSDPA (High Speed Downlink Packet Access), LTE (Long Term Evolution), email (electronic mail), SMS (Short Messaging Service), and the like.
  • the image output unit is used to output text, pictures, and/or video.
  • the image output unit may include a display panel, such as a display panel configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or an FED (field emission display).
  • the image output unit may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light.
  • the image output unit may comprise a single display or multiple displays of different sizes.
  • the touch panel used by the input unit can also serve as a display panel of the output unit.
  • the touch panel detects a touch or proximity gesture operation thereon, it is transmitted to the processing unit to determine the type of the touch event, and then the processing unit provides a corresponding visual output on the display panel according to the type of the touch event.
  • the input unit and the output unit are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel and the display panel may be integrated to implement the electronic device. Input and output functions.
  • the image output unit may display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch. The way to operate.
  • GUIs graphical user interfaces
  • a storage unit which can be used to store software programs and modules, and the processing unit executes various functional applications of the electronic device and implements data processing by running software programs and modules stored in the storage unit.
  • the storage unit mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, such as a sound playing program, an image playing program, and the like; and the data storage area can be stored according to the electronic device. Use the created data (such as audio data, phone book, etc.).
  • the storage unit may include a volatile memory, such as a non-volatile dynamic random access memory (Nonvolatile).
  • Non-volatile memory such as at least A disk storage device, an electrically erasable programmable read-only memory (EEPROM), a flash memory device, such as a NOR flash memory or a NAND flash memory.
  • EEPROM electrically erasable programmable read-only memory
  • flash memory device such as a NOR flash memory or a NAND flash memory.
  • the non-volatile memory stores operating systems and applications executed by the processing unit.
  • the processing unit loads the running program and data from the non-volatile memory into the memory and stores the digital content in a plurality of storage devices.
  • the operating system includes various components and/or drivers for controlling and managing conventional system tasks such as memory management, storage device control, power management, and the like, as well as facilitating communication between various hardware and software.
  • the operating system may be an Android system of Google Inc., an iOS system developed by Apple Corporation, a Windows system/Windows Phone system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
  • the power source may be a built-in battery, such as a common lithium ion battery, a nickel hydride battery, etc., and an external power source that directly supplies power to the electronic device, such as an AC adapter.
  • the power source may also be more widely defined, and may further include, for example, a power management system, a charging system, a power failure detecting circuit, a power converter or an inverter, and a power status indicator (such as light emitting diodes, as well as any other components associated with the generation, management and distribution of electrical energy of electronic devices.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.

Abstract

A method for retrieving content of an image, a portable electronic device, and a graphical user interface. The method comprises: detecting a first operation applied to an image, the image being displayed on a screen of a portable electronic device (203); in response to the first operation, obtaining whole content of the image as a first retrieval result of a retrieval key element, and displaying the first retrieval result (204); detecting a second operation applied to the image (205); in response to the second operation, determining a recognition region in which recognition is performed on the image (206); obtaining content of the image coinciding with the recognition region, as a second retrieval result of the retrieval key element (207); and displaying the second retrieval result (208). The method can simplify operation steps when a user retrieves content of an image.

Description

对图片的内容进行检索的方法、便携式电子设备和图形用户界面Method for retrieving the content of a picture, portable electronic device and graphical user interface 技术领域Technical field
本发明实施例涉及移动通信技术,尤其涉及一种对图片的内容进行检索的方法和便携式电子设备。Embodiments of the present invention relate to mobile communication technologies, and in particular, to a method for retrieving content of a picture and a portable electronic device.
背景技术Background technique
目前,很多便携式电子设备(例如,手机,平板电脑等)都具有对图片中的特定内容(如人物、商品、植物、条码、二维码、文字等)进行识别的功能,还可以对识别出的内容进行检索,显示检索结果。具体来说,现有技术中,利用便携式电子设备对照片中的物品进行识别的具体过程为:打开相机->进入选项->点击智能识物->拍摄照片->手指画圈选中目标物->点击检索按钮->得到检索结果。现有技术操作步骤比较繁琐,从获取图片到得到相应的检索结果需要的时间较长,实时性较差,用户体验不好。At present, many portable electronic devices (for example, mobile phones, tablets, etc.) have the function of recognizing specific content (such as characters, products, plants, barcodes, two-dimensional codes, characters, etc.) in a picture, and can also recognize The content is retrieved and the search results are displayed. Specifically, in the prior art, the specific process of recognizing an item in a photo by using a portable electronic device is: opening a camera -> entering an option -> clicking an intelligent object -> taking a photo -> finger drawing a target object - >Click the search button -> to get the search results. The operation steps of the prior art are relatively cumbersome, and it takes a long time from obtaining the picture to obtaining the corresponding search result, the real-time performance is poor, and the user experience is not good.
发明内容Summary of the invention
本文提供一种对图片的内容进行检索的方法、便携式电子设备和图形用户界面,以简化操作步骤,提高用户体验。This document provides a method for retrieving the content of a picture, a portable electronic device, and a graphical user interface to simplify the steps and improve the user experience.
第一方面,提供一种对图片的内容进行检索的方法,所述方法应用于便携式电子设备,包括:检测到作用于一个图片的第一操作,所述图片显示在所述便携式电子设备的屏幕上;响应于所述第一操作,获取以所述图片的整体内容作为检索要素的第一检索结果,显示所述第一检索结果;检测到作用于所述图片的第二操作;响应于所述第二操作,确定对所述图片进行识别的识别区域,获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果,显示所述第二检索结果,其中,所述图片与所述识别区域重合的内容为所述图片的整体内容的一部分,所述第一操作与所述第二操作不同。In a first aspect, a method of retrieving content of a picture, the method being applied to a portable electronic device, comprising: detecting a first operation acting on a picture, the picture being displayed on a screen of the portable electronic device Retrieving, in response to the first operation, acquiring a first search result that uses the entire content of the picture as a search element, displaying the first search result; detecting a second operation acting on the picture; a second operation, determining an identification area for identifying the picture, acquiring a second search result that uses the content of the picture and the recognition area as a search element, and displaying the second search result, wherein the The content of the picture that coincides with the identification area is part of the overall content of the picture, the first operation being different from the second operation.
当便携式电子设备检测到用户对屏幕上显示的图片的第一操作之后,就可以获取以图片的整体内容作为检索要素的第一检索结果并将第一检索结果显示出来,而检测到用户对图片的第二操作之后可以获取以所述图片的部分内容作为检索要素的第二检索结果并将第二检索结果显示出来,由此看来,便携式电子设备在检测到不同的操作时可以实现对图片的整体内容或者 局部内容自动执行检索,与现有技术中需要先开启智能识物选项,获取包含目标物体的照片,然后在照片中选择包含目标物体的区域,最后再点击检索才能获得检索结果相比,简化了用户对图片的内容进行检索的操作步骤,提高了用户体验。After the portable electronic device detects the first operation of the user on the screen displayed on the screen, the first retrieval result of the overall content of the image as the retrieval element may be acquired and the first retrieval result is displayed, and the user is detected to the image. After the second operation, the second search result with the partial content of the picture as the search element may be acquired and the second search result may be displayed, thereby, the portable electronic device may realize the opposite picture when detecting different operations. Overall content or Local content automatically performs retrieval, and in the prior art, it is necessary to first open the intelligent object recognition option, obtain a photo containing the target object, and then select an area containing the target object in the photo, and finally click on the search to obtain the search result, which is simplified. The user steps to retrieve the content of the image enhances the user experience.
结合第一方面,在第一方面的第一种实现方式中,在显示所述第二检索结果之后,所述方法还包括:检测到作用于所述图片的第三操作,所述第三操作包括拖动、放大或者缩小,所述第三操作与所述第一操作不同;响应于所述第三操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第三检索结果,显示第三检索结果,其中,所述识别区域是所述屏幕上的预设区域。With reference to the first aspect, in a first implementation manner of the first aspect, after the displaying the second search result, the method further includes: detecting a third operation acting on the picture, the third operation Including dragging, enlarging or reducing, the third operation is different from the first operation; in response to the third operation, acquiring a third search result that the content of the picture coincides with the identification area as a retrieval element And displaying a third retrieval result, wherein the identification area is a preset area on the screen.
结合第一方面,在第一方面的第二种实现方式中,在显示所述第二检索结果之后,所述方法还包括:检测到作用于显示在屏幕上的识别框的第四操作,所述第四操作包括拖动或移动,所述识别框与所述识别区域的边界线重合,所述第四操作与所述第一操作不同;响应于所述第四操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第四检索结果,显示所述第四检索结果。With reference to the first aspect, in a second implementation manner of the first aspect, after the displaying the second retrieval result, the method further includes: detecting a fourth operation acting on the identification frame displayed on the screen, The fourth operation includes dragging or moving, the identification frame coincides with a boundary line of the identification area, the fourth operation is different from the first operation; in response to the fourth operation, acquiring the picture The content that coincides with the recognition area is used as a fourth search result of the search element, and the fourth search result is displayed.
结合第一方面,在第一方面的第三种实现方式中,确定对所述图片进行识别的识别区域,包括:将所述屏幕上预设区域与所述图片重合的内容作为对所述图片进行识别的识别区域,或者,将显示在所述屏幕上的识别框在所述图片上圈定的内容作为对所述图片进行识别的识别区域。With reference to the first aspect, in a third implementation manner of the first aspect, determining the identification area that identifies the picture includes: using the content that overlaps the preset area on the screen with the picture as the picture The identified recognition area is displayed, or the content circled on the picture by the recognition frame displayed on the screen is used as an identification area for identifying the picture.
结合第一方面,在第一方面的第四种实现方式中,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:所述第二操作包括重按操作,确定所述重按操作在所述屏幕上的作用点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。With reference to the first aspect, in a fourth implementation manner of the first aspect, determining, by the second operation, the identification area that identifies the picture, the second operation includes a re-press operation, determining The area enclosed by the closed curve centered on the action point on the screen is the identification area, and the size of the closed curve is preset.
结合第一方面,在第一方面的第五种实现方式中,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:所述第二操作包括双击或指关节叩击,确定以所述双击或所述指关节叩击的触控点为中心的封闭曲线围住的区域为所述识别区域,其中,所述封闭曲线的大小是预先设置的。With reference to the first aspect, in a fifth implementation manner of the first aspect, determining, in response to the second operation, an identification area that identifies the picture, the second operation comprises: double-clicking or knuckle sniping And determining, by the double-click or the closed curve centered on the touch point of the knuckle, the area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
应理解,上述指关节叩击可以是用户的指关节敲击便携式电子设备的屏幕,叩击的次数可以是一次也可以是多次,可根据需要设定。It should be understood that the above-mentioned knuckle sniper may be that the user's knuckles tap the screen of the portable electronic device, and the number of slamming may be one time or multiple times, and may be set as needed.
结合第一方面,在第一方面的第六种实现方式中,响应于所述第二操作, 确定对所述图片进行识别的识别区域,包括:所述第二操作包括两指扩张,确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。In conjunction with the first aspect, in a sixth implementation of the first aspect, in response to the second operation, Determining an identification area for identifying the picture, comprising: the second operation comprises two-finger expansion, and determining to enclose the closed curve centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen The area is the identification area, and the size of the closed curve is preset.
结合第一方面,在第一方面的第七种实现方式中,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:所述第二操作包括圈定或滑动,确定以所述圈定的轨迹或所述滑动的轨迹围住的区域为所述识别区域。With reference to the first aspect, in a seventh implementation manner of the first aspect, determining, in response to the second operation, the identification area that identifies the picture, the second operation includes delimiting or sliding, determining The area enclosed by the circled track or the sliding track is the identification area.
当第二操作是圈定或者滑动操作时,可以根据圈定或者滑动操作在屏幕上产生的曲线轨迹来确定识别区域,具体来说,可以是用户通过一个手指的指肚或指关节在屏幕上滑动或者圈定产生的曲线轨迹来确定识别区域,也可以是用户通过多个手指的指肚或指关节在屏幕上滑动或者圈定产生的曲线轨迹来确定识别区域。另外,上述圈定的轨迹和滑动的轨迹可以是封闭的曲线,也可以是非封闭的曲线,该曲线可以为实线也可以是虚线,当圈定或者滑动的轨迹是非封闭的曲线时,可以以该非封闭曲线的两个端点用线段或者曲线连接在一起构成的封闭曲线围住的区域为上述识别区域。其中,手指的指肚或指关节在屏幕上滑动可以理解为手指的指肚或指关节在屏幕上连续滑动。手指的指肚或指关节在屏幕上圈定可以理解为手指的指肚或指关节在屏幕上画圈或画其他封闭曲线(也可以为非封闭曲线)。When the second operation is a circled or sliding operation, the recognition area may be determined according to a curve trajectory generated on the screen by the circle or slide operation, specifically, the user may slide on the screen through the finger or knuckle of one finger or The generated curve trajectory is determined to determine the recognition area, and the user may determine the recognition area by sliding or enclosing the generated curve trajectory on the screen by the finger or knuckles of the plurality of fingers. In addition, the above-mentioned circled trajectory and the trajectory of the sliding may be a closed curve or a non-closed curve, and the curve may be a solid line or a broken line. When the circled or slid track is a non-closed curve, the non-closed curve may be used. The area enclosed by the closed curve formed by the two end points of the closed curve connected by line segments or curves is the above-mentioned identification area. Among them, the finger's finger or knuckle sliding on the screen can be understood as the finger's finger or knuckle continuously sliding on the screen. The fingertip or knuckle of the finger is defined on the screen as a fingertip or knuckle of the finger to draw a circle on the screen or to draw other closed curves (also can be a non-closed curve).
结合第一方面,以及第一方面的第一种至第七种实现方式中的任意一种,在第一方面的第八种实现方式中,在响应于所述第二操作,确定对所述图片进行识别的识别区域之前,所述方法还包括:确定所述图片处于放大状态且所述图片处于放大状态的时长超过第一阈值。With reference to the first aspect, and any one of the first to seventh implementation manners of the first aspect, in an eighth implementation manner of the first aspect, determining, in response to the second operation, Before the image identifies the identified area, the method further includes determining that the picture is in an enlarged state and the duration of the picture is in an enlarged state exceeds a first threshold.
结合第一方面的第八种实现方式,在第一方面的第九种实现方式中,所述确定所述图片处于放大状态,包括:确定所述图片放大后的大小与所述图片的初始显示大小的比值超过第二阈值。With reference to the eighth implementation manner of the first aspect, in the ninth implementation manner of the first aspect, the determining that the picture is in an enlarged state comprises: determining an enlarged size of the picture and an initial display of the picture The ratio of the size exceeds the second threshold.
第二方面,提供一种便携式电子设备,所述便携式电子设备包括用于执行上述第一方面或第一方面的任一种可能实现方式所提供的方法的单元。In a second aspect, a portable electronic device is provided, the portable electronic device comprising means for performing the method provided by the first aspect or any of the possible implementations of the first aspect.
第三方面,提供一种便携式电子设备,所述便携式电子设备包括:处理器、检测器、存储器、总线系统;所述处理器、所述检测器以及所述存储器通过所述系统总线相连;所述存储器用于一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述便携式电子设备执行时使所述便携式电子设备执行第一方面或第一方面的任一种可能实现方式所提供的方法。 In a third aspect, a portable electronic device is provided, the portable electronic device comprising: a processor, a detector, a memory, a bus system; the processor, the detector, and the memory are connected by the system bus; The memory is for one or more programs, the one or more programs comprising instructions that, when executed by the portable electronic device, cause the portable electronic device to perform any of the first aspect or the first aspect Possible implementations provide the methods.
第四方面,提供一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序被所述便携式电子设备执行时,所述便携式电子设备执行第一方面或第一方面的任一种可能实现方式所提供的方法。In a fourth aspect, a computer readable storage medium storing one or more programs, the one or more programs being executed by the portable electronic device, the portable electronic device performing the first aspect or the first aspect The method provided by any of the possible implementations.
第五方面,提供一种便携式电子设备上的图形用户界面,所述便携式电子设备包括显示器、存储器、多个应用程序;和用于执行存储在所述存储器中的一个或多个程序的一个或多个处理器,所述图形用户界面包括根据第一方面或第一方面的任一种可能实现方式所提供的方法显示的用户界面,其中,所述显示器包括触敏表面和显示屏。In a fifth aspect, a graphical user interface is provided on a portable electronic device, the portable electronic device comprising a display, a memory, a plurality of applications, and one or one of executing one or more programs stored in the memory A plurality of processors, the graphical user interface comprising a user interface displayed in accordance with the method provided by the first aspect or any one of the possible implementations of the first aspect, wherein the display comprises a touch-sensitive surface and a display screen.
在某些实现方式中,所述整体内容是指所述图片中包含的全部内容或者是所述图片显示在所述屏幕上的全部内容。In some implementations, the overall content refers to all of the content contained in the picture or the entire content of the picture displayed on the screen.
在某些实现方式中,在根据第二操作确定所述识别区域时,所述封闭曲线包括矩形曲线,圆形曲线以及椭圆曲线或者其它封闭曲线。In some implementations, the closed curve includes a rectangular curve, a circular curve, and an elliptic curve or other closed curve when the identification region is determined according to the second operation.
在某些实现方式中,所述识别区域为预设在所述屏幕预设位置的预设大小的封闭曲线围成的区域,所述封闭曲线包括圆形曲线、矩形曲线、椭圆曲线和其他封闭曲线。In some implementations, the identification area is an area enclosed by a preset size closed curve preset at the preset position of the screen, and the closed curve includes a circular curve, a rectangular curve, an elliptic curve, and other closures. curve.
在某些实现方式中,所述封闭曲线显示在所述屏幕上的曲线。In some implementations, the closed curve shows a curve on the screen.
在某些实现方式中,所述封闭曲线为不显示在所述屏幕上的透明曲线。In some implementations, the closed curve is a transparent curve that is not displayed on the screen.
在某些实现方式中,所述识别区域为所述屏幕的纵向中间条状区域或者横向中间条状区域或者所述屏幕整体的中心块状区域,其中,纵向中间条状区域或者横向中间条状区域以及所述中心块状区域的大小是预先设置的。In some implementations, the identification area is a longitudinal middle strip area or a horizontal middle strip area of the screen or a central block area of the entire screen, wherein the longitudinal middle strip area or the horizontal middle strip shape The size of the area and the central block area is preset.
在某些实现方式中,在检测到第二操作之后,并且在根据第二操作获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果之前,所述方法还包括:检测是否还存在作用于所述图片的其它操作,如果在预设时间内没有检测到所述其它操作,那么就对所述识别区域重合的内容作为检索要素的第二检索结果;如果在预设时间内检测到上述其它操作,那么,响应于所述其它操作,并根据所述其它操作对所述图片进行相应处理,在对图片进行相应处理之后的预设时间内检测是否还存在作用于所述图片的另一个操作,如果在预设时间内没有检测到所述另一个操作,那么就对所述识别区域重合的内容作为检索要素的第二检索结果,其中,所述其它操作包括放大、缩小、拖动或移动中的至少一种。In some implementations, after detecting the second operation, and before acquiring the second search result that the content of the picture and the recognition area coincides as the search element according to the second operation, the method further includes: Detecting whether there are other operations acting on the picture, if the other operations are not detected within the preset time, then the content that coincides with the identification area is used as the second retrieval result of the retrieval element; if it is preset If the other operations are detected in the time, then, in response to the other operations, and correspondingly processing the image according to the other operations, detecting whether the device still exists in the preset time after the corresponding processing of the image Another operation of the picture, if the other operation is not detected within a preset time, the content that coincides with the identification area is used as a second retrieval result of the retrieval element, wherein the other operations include amplification, At least one of zooming in, dragging, or moving.
在某些实现方式中,所述第一操作包括单击、长按、双击、重按、双击、 指关节叩击、两指扩展、两指收缩、圈定以及滑动。In some implementations, the first operation includes clicking, long pressing, double clicking, double pressing, double clicking, Knuckle slamming, two-finger extension, two-finger contraction, delineation, and sliding.
在某些实现方式中,所述第二操作包括单击、长按、双击、重按、双击、指关节叩击、两指扩展、两指收缩、圈定以及滑动。应理解:在具体实现中第一操作与第二操作不同。例如,第一操作是重按,第二操作为圈定。In some implementations, the second operation includes a click, a long press, a double tap, a re-press, a double tap, an knuckle tap, a two-finger extension, a two-finger contraction, a circle, and a slide. It should be understood that the first operation is different from the second operation in a particular implementation. For example, the first operation is a re-press and the second operation is a deduction.
在某些实现方式中,所述第三操作为第二操作之后的操作,所述第三操作与所述第二操作相同或者不同。In some implementations, the third operation is an operation subsequent to the second operation, the third operation being the same as or different from the second operation.
在某些实现方式中,所述第四操作和所述第二操作不同,所述第二操作作用于图片,所述第四操作用于所述屏幕上的识别框。In some implementations, the fourth operation is different from the second operation, the second operation is for a picture, and the fourth operation is for an identification frame on the screen.
在某些实现方式中,当所述操作是两指收缩时,确定以两指在屏幕上的初始触控点连接所形成的线段为中心的圆形或者矩形区域为所述识别区域。In some implementations, when the operation is a two-finger contraction, a circular or rectangular area centered on a line segment formed by the initial finger-point connection of the two fingers on the screen is determined as the identification area.
在某些实现方式中,所述图片的初始显示大小是所述便携式电子设备打开所述图片后,所述图片在所述屏幕上显示的大小。In some implementations, an initial display size of the picture is a size that the picture is displayed on the screen after the portable electronic device opens the picture.
在某些实现方式中,在检测到所述图片的操作之前,所述方法还包括:所述便携式电子设备对所述图片中的所有有效对象或者物体进行自动识别和检索,获取检索结果,并将检索结果存储起来。In some implementations, before the detecting the operation of the picture, the method further includes: the portable electronic device automatically identifying and retrieving all valid objects or objects in the picture, obtaining a retrieval result, and Store the search results.
在某些实现方式中,在检测到所述图片的操作之前,所述方法还包括:所述便携式电子设备对所述图片中的所有有效对象或者物体进行自动识别和检索,获取检索结果具体包括:所述便携式电子设备对所述图片的整体内容进行检索获取整体检索结果,所述便携式电子设备对所述图片中的各个对象进行检索获取各个对象的检索结果,并将整体检索结果和各个对象的检索结果存储起来。In some implementations, before the operation of detecting the picture, the method further includes: the portable electronic device automatically identifying and retrieving all valid objects or objects in the picture, and acquiring the retrieval result specifically includes The portable electronic device searches for the overall content of the picture to obtain an overall retrieval result, and the portable electronic device searches for each object in the picture to obtain a retrieval result of each object, and the overall retrieval result and each object The search results are stored.
在某些实现方式中,采用下列技术中的至少一种对所述识别区域中的图像进行识别:基于光学字符识别(Optical Character Recognition,简称OCR)的文字识别技术、条码/二维码识别技术、人脸检测技术、物品检测技术。In some implementations, the image in the identification area is identified by using at least one of the following technologies: optical character recognition (OCR) based text recognition technology, barcode/two-dimensional code recognition technology , face detection technology, article detection technology.
在某些实现方式中,根据所述检索要素进行检索获得检索结果包括:在所述便携式电子设备内部根据检索要素检索得到检索结果,或者,将检索要素发给网络侧的服务器,由所述服务器进行检索并获取检索结果,服务器再将检索结果发送给便携式电子设备,由便携式电子设备显示检索结果。In some implementations, performing the search according to the search element to obtain the search result includes: searching for a search result according to the search element in the portable electronic device, or sending the search element to a server on the network side, by the server The search is performed and the search result is obtained, and the server transmits the search result to the portable electronic device, and the search result is displayed by the portable electronic device.
在某些实现方式中,所述携式电子设备屏幕上显示的图片为从相册、网页或者应用中获取的图片。In some implementations, the picture displayed on the screen of the portable electronic device is a picture obtained from an album, a webpage, or an application.
在某些实现方式中,所述便携式电子设备包括移动电话、移动电脑、平 板电脑、个人数字助理、媒体播放器、智能电视。In some implementations, the portable electronic device includes a mobile phone, a mobile computer, and a flat Board computers, personal digital assistants, media players, smart TVs.
在检测到操作后就可以确定识别区域并对识别区域内的图像进行识别,进而获得检索结果,从而简化了对图片的内容进行检索的操作步骤,此外,还可以根据操作的不同实现对图片中不同区域的图像进行检索,提高了用户体验。After the operation is detected, the recognition area can be determined and the image in the identification area is recognized, thereby obtaining the retrieval result, thereby simplifying the operation steps of retrieving the content of the picture, and further, implementing the image in the picture according to different operations Images from different regions are retrieved to improve the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例的对图片的内容进行检索的方法的流程图。1 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
图2是本发明实施例的对图片的内容进行检索的方法中的中央区域的示意图。2 is a schematic diagram of a central area in a method of retrieving content of a picture according to an embodiment of the present invention.
图3是本发明实施例的对图片的内容进行检索的方法的流程图。3 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
图4是本发明实施例的对图片的内容进行检索的方法的流程图。4 is a flow chart of a method for retrieving content of a picture according to an embodiment of the present invention.
图5是本发明实施例的对图片的内容进行检索的方法对图片的内容进行检索的示意图。FIG. 5 is a schematic diagram of a method for searching content of a picture to retrieve content of a picture according to an embodiment of the present invention.
图6是本发明实施例的对图片的内容进行检索的示意图。FIG. 6 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图7是本发明实施例的对图片的内容进行检索的示意图。FIG. 7 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图8是本发明实施例的对图片的内容进行检索的示意图。FIG. 8 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图9是本发明实施例的对图片的内容进行检索的示意图。FIG. 9 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图10是本发明实施例的对图片的内容进行检索的示意图。FIG. 10 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图11是本发明实施例的对图片的内容进行检索的示意图。FIG. 11 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图12是本发明实施例的对图片的内容进行检索的示意图。FIG. 12 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图13是本发明实施例的对图片的内容进行检索的示意图。FIG. 13 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图14是本发明实施例的对图片的内容进行检索的示意图。FIG. 14 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图15是本发明实施例的对图片的内容进行检索的示意图。Figure 15 is a diagram showing the retrieval of the content of a picture in accordance with an embodiment of the present invention.
图16是本发明实施例的对图片的内容进行检索的示意图。16 is a schematic diagram of searching a content of a picture according to an embodiment of the present invention.
图17是本发明实施例的对图片的内容进行检索的示意图。FIG. 17 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图18是本发明实施例的对图片的内容进行检索的示意图。 FIG. 18 is a schematic diagram of searching the content of a picture according to an embodiment of the present invention.
图19是本发明实施例的便携式电子设备的示意性框图。19 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
图20是本发明实施例的便携式电子设备的示意性框图。20 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
图21是本发明实施例的便携式电子设备的示意性框图。21 is a schematic block diagram of a portable electronic device in accordance with an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种对图片的内容进行检索的方法,该方法能自动实现对内容的检索,当用户通过便携式电子设备浏览图片时(相册中的或者网页中的图片),当便携式电子设备检测到用户对屏幕上显示的图片的第一操作之后,就可以自动获取以图片的整体内容作为检索要素的第一检索结果,并显示第一检索结果,而检测到用户对图片的第二操作之后可以自动获取以所述图片的部分内容作为检索要素的第二检索结果,并显示第二检索结果,使得用户能够通过更简单的操作就能对图片中的内容进行检索,并且还可以根据不同的手势对图片的不同区域进行检索。下面结合具体实施例对本发明实施例的对图片的内容进行检索的方法进行详细的介绍。Embodiments of the present invention provide a method for retrieving content of a picture, which can automatically implement retrieval of content, when a user browses a picture through a portable electronic device (a picture in an album or a picture in a web page), when the portable electronic After the device detects the first operation of the image displayed on the screen by the user, the first retrieval result that takes the overall content of the image as the retrieval element is automatically acquired, and the first retrieval result is displayed, and the second detection of the user by the user is detected. After the operation, the second retrieval result with the partial content of the picture as the retrieval element may be automatically acquired, and the second retrieval result is displayed, so that the user can retrieve the content in the image through a simpler operation, and can also Different gestures retrieve different areas of the picture. The method for searching the content of the picture in the embodiment of the present invention is described in detail below with reference to the specific embodiments.
图1示出了本发明实施例的对图片的内容进行检索的方法的流程图。该方法可以由便携式电子设备(例如,手机,平板电脑等等)执行。对图片的内容进行检索的具体过程如下:FIG. 1 is a flow chart showing a method of retrieving the content of a picture according to an embodiment of the present invention. The method can be performed by a portable electronic device (eg, a cell phone, a tablet, etc.). The specific process of searching the content of the picture is as follows:
101、便携式电子设备显示图片。101. A portable electronic device displays a picture.
102、便携式电子设备对用户的操作进行实时的捕捉和判断。102. The portable electronic device captures and judges the user's operation in real time.
应理解,这里的便携式电子设备可以是通过显示图片的屏幕来捕捉用户的操作,可以设置用户的某些操作触发对图片的识别,而用户的其它手势则不会能触发对图片的识别。上述操作可以包括但不限于双击、长按、放大、重按、缩小、移动、悬浮,圈定、滑动、指关节叩击和指关节滑动圈定等。应理解,长按是指用户的手指在屏幕上的按压时间超过一定的时间阈值。It should be understood that the portable electronic device herein may capture the user's operation by displaying a screen of the picture, and some operations of the user may be set to trigger the recognition of the picture, and other gestures of the user may not trigger the recognition of the picture. The above operations may include, but are not limited to, double tapping, long press, zoom in, re-press, zoom out, move, hover, circle, slide, knuckle tap and knuckle slip. It should be understood that a long press refers to a user's finger pressing time on the screen for more than a certain time threshold.
103,便携式电子设备检测到第一操作。103. The portable electronic device detects the first operation.
该第一操作包括单击、长按、双击、重按、双击、指关节叩击、两指扩展、两指收缩、圈定以及滑动。 The first operation includes a click, a long press, a double tap, a double press, a double tap, an knuckle tap, a two-finger extension, a two-finger contraction, a circle, and a slide.
104,便携式电子设备显示第一检索结果。104. The portable electronic device displays the first search result.
该第一检索结果是对图片的整体内容作为检索要素得到的检索结果。The first search result is a search result obtained as a search element for the entire content of the picture.
105,便携式电子设备检测到用户的操作为第二操作。105. The portable electronic device detects that the user's operation is the second operation.
第二操作包括单击、长按、双击、重按、双击、指关节叩击、两指扩展、两指收缩、圈定以及滑动。应理解:在具体实现中第一操作与第二操作不同。例如,第一操作是重按,第二操作为圈定。应理解,用户对图片进行第二操作之后时可能还有移动或者拖拽图片等操作。The second operations include click, long press, double click, double press, double click, knuckle tap, two finger extension, two finger contraction, circle, and slide. It should be understood that the first operation is different from the second operation in a particular implementation. For example, the first operation is a re-press and the second operation is a deduction. It should be understood that after the user performs the second operation on the picture, there may be operations such as moving or dragging the picture.
106,便携式电子设备确定对图片进行识别的识别区域。106. The portable electronic device determines an identification area that identifies the picture.
该识别区域的覆盖的图片内容为上述图片的整体内容的一部分,该识别区域可以是预设在屏幕预设位置的预设大小的封闭曲线围成的区域。具体来说,该识别区域可以是预设在屏幕的中央区域,该中央区域的大小和具体形状可以是预先设置的,如图2所示,该中央区域可以为屏幕纵向中间条状区域、横向中间条状区域或者屏幕整体的中心块状区域。The covered picture content of the identification area is a part of the overall content of the above picture, and the identification area may be an area enclosed by a closed curve of a preset size preset at a preset position of the screen. Specifically, the identification area may be preset in a central area of the screen, and the size and specific shape of the central area may be preset, as shown in FIG. 2, the central area may be a longitudinal strip middle section of the screen, and a horizontal direction. The center strip area or the central block area of the screen as a whole.
107,获取以上述图片与该识别区域重合的内容为检索要素的第二检索结果。107: Acquire a second search result that the content that overlaps with the identification area is the search element.
108、显示第二检索结果。在显示了第二检索结果之后返回步骤102继续进行循环处理。108. Display a second search result. After the second search result is displayed, the process returns to step 102 to continue the loop process.
可选的,在显示图片之后就可以启动对图片的识别程序,接下来只要检测到用户对图片的第一操作后,就可以显示检索结果,简化了对图片的内容进行检索的步骤,在检测到用户的第二操作时,对识别区域覆盖的部分图片内容进行检索,并显示检索结果。Optionally, after the picture is displayed, the recognition process for the picture can be started. Then, after detecting the first operation of the picture by the user, the search result can be displayed, and the step of searching the content of the picture is simplified, and the detection is performed. When the second operation of the user is performed, part of the picture content covered by the recognition area is retrieved, and the retrieval result is displayed.
可选的,为了使得现有的操作能结合图片的特定状态(例如,放大状态或者缩小状态)来触发检索,图1所示的内容进行识别的方法还可以在步骤103与步骤104之间,或者在步骤105与步骤106之间对图片是否处于放大或缩小状态进行判断,根据判断的结果再决定是否对图片的内容进行检索。Optionally, in order to enable the existing operation to trigger the retrieval in combination with a specific state of the picture (for example, an enlarged state or a reduced state), the method for identifying the content shown in FIG. 1 may also be between step 103 and step 104. Or, between steps 105 and 106, whether the picture is in an enlarged or reduced state is determined, and whether the content of the picture is retrieved is determined according to the result of the determination.
具体来说,在检测到用户的第一操作后,对图片是否处于放大或缩小状态进行判断,如果屏幕显示的图片处于放大或缩小状态,那么就执行将图片的整体内容作为检索要素,获取第一检索结果,如果图片处于非放大或非缩小状态(可以认为步骤101中打开的图片处于初始显示状态,如果当前显示的图片相对于图片的初始显示状态没有缩放的话,那么就认为当前图片处于未缩放状态),那么就不执行对图片的整体内容进行检索获取第一检索结果。 Specifically, after detecting the first operation of the user, determining whether the picture is in an enlarged or reduced state, and if the picture displayed on the screen is in an enlarged or reduced state, performing the entire content of the picture as a retrieval element, obtaining the first A search result, if the picture is in a non-zoomed or non-reduced state (it can be considered that the picture opened in step 101 is in the initial display state, if the currently displayed picture is not scaled relative to the initial display state of the picture, then the current picture is considered to be not The zoom state), then the retrieval of the overall content of the picture is not performed to obtain the first search result.
此外,在检测到用户的第二操作后,也可以对图片是否处于放大状态进行判断,如果图片处于放大状态,且在图片状态稳定时间超过时间t0(时间t0的大小可以预先设置,例如,可以设置t0为0.5秒)后执行106至108,如果图片不处于放大状态那么就不执行106至108。In addition, after detecting the second operation of the user, it may also be judged whether the picture is in an enlarged state, if the picture is in an enlarged state, and the picture state stabilization time exceeds the time t 0 (the size of the time t 0 may be preset, for example , you can set t 0 to 0.5 seconds) and then execute 106 to 108. If the picture is not in the enlarged state, then 106 to 108 are not executed.
应理解,这里的放大状态可以是指图片相对于初始状态的显示比例大于100%,还可以是图片放大后相对于原始图片放大到一定的倍数才属于放大状态,例如,当图片放大到原始图片(这里的原始图片可以认为是初始显示的图片)的两倍时才认为该图片处于放大状态。It should be understood that the zoom-in state herein may mean that the display ratio of the picture relative to the initial state is greater than 100%, or may be that the picture is enlarged and enlarged to a certain multiple with respect to the original picture to be in an enlarged state, for example, when the picture is enlarged to the original picture. The picture is considered to be magnified when it is twice as large as the original picture.
由此可见,本发明实施例对图片的内容进行检索的方法可以在检测用户的第一操作或者第二操作之后对图片是否处于放大或缩小状态进行判断。It can be seen that the method for retrieving the content of the picture in the embodiment of the present invention can determine whether the picture is in an enlarged or reduced state after detecting the first operation or the second operation of the user.
图3示出了本发明实施例的对图片的内容进行检索的方法的流程图。下面结合图3对本发明实施例的对图片的内容进行检索的方法进行详细的介绍。如图3所示,步骤201-205与图1所示的方法中的步骤101-105相同(步骤201-205的详细内容可参见图1中的步骤101-105),为避免重复,此处不再详细描述。下面重点描述步骤206。FIG. 3 is a flow chart showing a method of retrieving the content of a picture according to an embodiment of the present invention. The method for searching the content of the picture in the embodiment of the present invention will be described in detail below with reference to FIG. As shown in FIG. 3, steps 201-205 are the same as steps 101-105 in the method shown in FIG. 1 (for details of steps 201-205, refer to steps 101-105 in FIG. 1), to avoid repetition, here No longer described in detail. Step 206 is highlighted below.
206、根据第二操作的作用区域确定对图片进行识别的识别区域;206. Determine, according to an action area of the second operation, an identification area that identifies the picture;
步骤206的具体实现方式包括以下几种:The specific implementation manner of step 206 includes the following:
当用户的第二操作是双击图片的话,那么就将以双击触控点为中心、在原始图片上所圈定的圆形或矩形区域确定为识别区域,其中,上述圆形区域或者矩形区域的大小是预先设置的。When the user's second operation is to double-click the picture, then the circular or rectangular area circled on the original picture centered on the double-click touch point is determined as the identification area, wherein the size of the circular area or the rectangular area is It is pre-set.
当用户的第二操作是两指扩张的话,确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为识别区域。具体来说,可以确定该线段的中点为中心的圆形或者矩形区域作为识别区域,具体来说,该矩形区域的中心线可以与该线段重合,该圆形区域的直径可以与该线段重合,或者是该矩形区域的中心线的长度可以大于该线段,该圆形区域的直径可以大于该线段的长度,其中,上述圆形区域或者矩形区域的大小是预先设置的。When the second operation of the user is two-finger expansion, it is determined that the area surrounded by the closed curve centered on the midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen is the identification area. Specifically, a circular or rectangular area centered at a midpoint of the line segment may be determined as an identification area. Specifically, a center line of the rectangular area may coincide with the line segment, and a diameter of the circular area may coincide with the line segment. Or the length of the center line of the rectangular area may be greater than the line segment, and the diameter of the circular area may be greater than the length of the line segment, wherein the size of the circular area or the rectangular area is preset.
当用户的第二操作手势是重按(用力按压)的话,确定重按操作在屏幕上的作用点为中心的封闭曲线围住的区域为识别区域,其中,该封闭曲线的大小是预先设置的。具体来说,可以确定以操作手势的触控点为中心的圆形或者矩形区域作为识别区域,其中上述圆形区域或者矩形区域的大小是预先 设置的。When the second operation gesture of the user is to press (press hard), the area enclosed by the closed curve centered on the action point of the re-press operation is determined as an identification area, wherein the size of the closed curve is preset. . Specifically, a circular or rectangular area centered on the touch point of the operation gesture may be determined as the identification area, wherein the size of the circular area or the rectangular area is Set.
在经过步骤206确定对图片进行识别的识别区域之后,继续执行步骤207和208,获取检索结果。由于步骤207至208与图1所示的方法中的步骤107至108相同,都是获取第二检索结果并显示第二检索结果,因此,为了避免重复,这里对步骤207和208不再详细描述。After the identification area for identifying the picture is determined via step 206, steps 207 and 208 are continued to obtain the search result. Since steps 207 to 208 are the same as steps 107 to 108 in the method shown in FIG. 1, both of the second retrieval results are obtained and the second retrieval result is displayed. Therefore, in order to avoid repetition, steps 207 and 208 are not described in detail herein. .
可选的,为了使得现有的操作能结合图片的特定状态来触发检索,在步骤203检测到用户的第一操作之后,并在步骤204显示第一检索结果之前,上述方法还可以包括:便携式电子设备对图片是否处于放大或缩小状态进行判断,如果屏幕显示的图片处于放大或缩小状态,那么就响应第一操作,将图片的整体内容作为检索要素,获取第一检索结果,如果图片处于非放大或非缩小状态那么就可以不响应第一操作,也不对图片的整体内容进行检索获取第一检索结果。Optionally, in order to enable the existing operation to trigger the retrieval in conjunction with the specific state of the picture, after the first operation of the user is detected in step 203, and before the first retrieval result is displayed in step 204, the method may further include: The electronic device determines whether the picture is in an enlarged or reduced state. If the picture displayed on the screen is in an enlarged or reduced state, then the first operation is performed in response to the first operation, and the entire content of the image is used as a retrieval element to obtain the first retrieval result, if the image is in a non- The enlarged or non-reduced state can then not respond to the first operation, nor retrieve the entire content of the picture to obtain the first search result.
另外,在步骤205检测到用户的第二操作之后,并在步骤206确定图片进行识别的识别区域之前,上述方法还可以包括:对图片是否处于放大状态进行判断,如果图片处于放大状态,且在图片状态稳定时间超过时间t0(时间t0的大小可以预先设置,例如,可以设置t0为0.5秒)后执行步骤206至208。应理解,这里的放大状态可以是指图片相对于初始状态的显示比例大于100%,还可以是图片放大后相对于原始图片放大到一定的倍数才属于放大状态,例如,当图片放大到原始图片(这里的原始图片可以认为是初始显示的图片)的两倍时才认为该图片处于放大状态。In addition, after the second operation of the user is detected in step 205, and before the identification area of the picture is determined in step 206, the method may further include: determining whether the picture is in an enlarged state, if the picture is in an enlarged state, and The picture state stabilization time exceeds the time t 0 (the size of the time t 0 can be set in advance, for example, t 0 can be set to 0.5 seconds), and then steps 206 to 208 are performed. It should be understood that the zoom-in state herein may mean that the display ratio of the picture relative to the initial state is greater than 100%, or may be that the picture is enlarged and enlarged to a certain multiple with respect to the original picture to be in an enlarged state, for example, when the picture is enlarged to the original picture. The picture is considered to be magnified when it is twice as large as the original picture.
也就是说本发明实施例对图片的内容进行检索的方法可以在检测用户的第一操作或者第二操作之后对图片是否处于缩放状态进行判断。That is to say, the method for retrieving the content of the picture in the embodiment of the present invention may determine whether the picture is in a zoom state after detecting the first operation or the second operation of the user.
在本发明实施例中,在显示图片之后就可以启动对图片的内容的检索,接下来只要检测到用户对图片的操作手势后,就可以显示相应检索结果,简化了对图片的内容进行检索的步骤,并且使得用户能够通过不同的手势对图片中不同区域的内容进行检索(例如,在检测到用户的操作手势为“双击”、“两指扩张”或者“用力按压”时对用户触控的区域内的内容进行检索),提高了用户体验。In the embodiment of the present invention, after the picture is displayed, the retrieval of the content of the picture can be initiated. Then, after detecting the operation gesture of the user on the picture, the corresponding retrieval result can be displayed, which simplifies the retrieval of the content of the picture. a step, and enabling the user to retrieve content of different areas in the picture through different gestures (eg, touching the user when detecting that the user's operation gesture is "double click", "two finger expansion" or "force pressing" The content in the area is retrieved), which improves the user experience.
对图片的内容进行检索由图1和图3可知,这两个实施例中对图片的内容进行检索的方法的识别框都是固定的。事实上,在对图片的内容进行识别时,识别框还可以是移动的,用户可以通过一系列的手势来控制识别框的移 动,当识别框移动到屏幕的哪里就可以对识别框覆盖的区域内的内容进行识别。下面结合图4对识别框可以移动的情况进行详细的介绍。Searching the Content of the Picture As can be seen from Figures 1 and 3, the identification boxes of the methods for retrieving the content of the pictures in both embodiments are fixed. In fact, when the content of the picture is recognized, the recognition frame can also be moved, and the user can control the movement of the recognition frame through a series of gestures. The content in the area covered by the identification frame can be identified when the recognition frame is moved to the screen. The case where the identification frame can be moved will be described in detail below with reference to FIG.
图4示出了本发明实施例的对图片的内容进行检索的方法的流程图。该方法可以由上述便携式电子设备来执行。如图4所示,步骤301-302与图1所示的方法中的步骤101-102相同,为避免重复,此处不再详细描述。下面重点描述与图1所示的方法不同的步骤。4 is a flow chart showing a method of retrieving the content of a picture in accordance with an embodiment of the present invention. The method can be performed by the portable electronic device described above. As shown in FIG. 4, steps 301-302 are the same as steps 101-102 in the method shown in FIG. 1. To avoid repetition, details are not described herein again. The following focuses on the steps that are different from the method shown in FIG. 1.
303、便携式电子设备检测到用户的操作是第二操作。该第二操作包括双击、重按、双击、指关节叩击、两指扩展、两指收缩、圈定以及滑动中的至少一种。303. The portable electronic device detects that the user's operation is the second operation. The second operation includes at least one of double tapping, double pressing, double tapping, knuckle tapping, two-finger expansion, two-finger contraction, enclosing, and sliding.
304、在第二操作在屏幕上的作用区域生成识别框,将该识别框在图片上圈定的内容作为对该图片进行识别的识别区域。该识别框是可移动的,其具体形状可以为矩形、圆形、椭圆或者其它不规则的图形。当用户点击识别框以外的屏幕区域,识别框可以自动消失。304. Generate an identification frame in the action area of the second operation on the screen, and use the content circled on the picture as the recognition area for identifying the picture. The identification frame is movable, and its specific shape may be a rectangle, a circle, an ellipse or other irregular figure. When the user clicks on a screen area other than the identification box, the recognition frame can automatically disappear.
305、获取以上述图片与该识别区域重合的内容为检索要素的第二检索结果。305. Acquire a second search result that is a search element by using the content that overlaps the identification area with the image.
306、显示第二检索结果。306. Display a second search result.
307、检测到识别框移动,继续对该识别框在图片上圈定的内容进行识别。具体来说,如果用户的第二操作包括重按的话,可以对识别框进行拖动,此时的拖动可以是抬起手指之后再次按住识别框进行拖动,也可以不抬起手指,继续按住识别框进行拖动。如果用户刚才的第二操作为悬浮的话,此时的拖动可以是继续保持悬浮手势并进行悬浮方式的移动,以实现对识别框的拖动;也可以是手指远离屏幕后,再点击屏幕按住识别框进行拖动。307. Detecting the movement of the identification frame, and continuing to identify the content circled on the picture by the identification frame. Specifically, if the second operation of the user includes re-pressing, the identification frame may be dragged, and the dragging at this time may be, after lifting the finger, pressing the identification frame again to drag, or not lifting the finger. Continue to hold down the identification box to drag. If the user's second operation is floating, the dragging at this time may be to continue to maintain the hovering gesture and perform the floating mode to achieve the dragging of the recognition frame; or the finger may be away from the screen, and then click the screen button. Live the identification box and drag it.
应理解,在图1至图4所示的实施例中,便携式电子设备显示的图片可以是用户从便携式电子设备中的相册中打开的图片,也可以是用户启动便携式电子设备的相机拍摄得到的图片,或者是用户用便携式电子设备浏览网页时获得的图片。此外,在检测到对图片的操作之前,便携式电子设备可以先对图片中的所有有效对象或者物体进行自动识别和检索,获取检索结果,并将检索结果存储起来。更具体地,便携式电子设备对图片的整体内容进行检索获取整体检索结果,并对图片中的各个对象进行检索获取各个对象的检索结果,然后将整体检索结果和各个对象的检索结果存储起来。这样在检测到对图片的操作时可以快速调用已经存储起来的检索结果并将检索结果显示出来。另外,便携式电子设备可以在便携式电子设备内部根据检索要素检索 得到检索结果,或者,便携式电子设备将检索要素发给网络侧的服务器,由所述服务器进行检索并获取检索结果,服务器再将检索结果发送给便携式电子设备,由便携式电子设备显示检索结果。It should be understood that, in the embodiment shown in FIG. 1 to FIG. 4, the picture displayed by the portable electronic device may be a picture opened by the user from an album in the portable electronic device, or may be obtained by a camera that the user activates the portable electronic device. A picture, or a picture obtained when a user browses a web page with a portable electronic device. In addition, before detecting the operation on the picture, the portable electronic device can automatically identify and retrieve all valid objects or objects in the picture, obtain the retrieval result, and store the retrieval result. More specifically, the portable electronic device retrieves the overall content of the picture to obtain an overall retrieval result, and retrieves each object in the picture to obtain a retrieval result of each object, and then stores the overall retrieval result and the retrieval result of each object. In this way, when the operation on the picture is detected, the search result that has been stored can be quickly called and the search result is displayed. In addition, portable electronic devices can be retrieved from within the portable electronic device based on search elements The search result is obtained, or the portable electronic device sends the search element to the server on the network side, and the server searches for the search result, and the server transmits the search result to the portable electronic device, and the search result is displayed by the portable electronic device.
此外,在图1至图4的实施例中,获取第一检索结果或者第二检索结果可以采用条码/二维码识别技术、人脸检测技术以及物品检测技术等。具体来说,获取检索结果可以采用人脸检索和识别、物品检索和识别、单号检索、商品编号检索等技术。在获取了第一检索结果或第二检索结果后,可以将第一检索结果或第二检索结果显示在图片上或者图片周围的空白区域或屏幕上,检索结果可以具体是一个链接或者链接图标,用户可以通过点击链接或者链接图标获取更详细的信息。In addition, in the embodiment of FIG. 1 to FIG. 4, the barcode/two-dimensional code recognition technology, the face detection technology, the item detection technology, and the like may be used to acquire the first search result or the second search result. Specifically, the retrieval result may be a technique such as face retrieval and recognition, item retrieval and recognition, single number search, and item number search. After the first search result or the second search result is obtained, the first search result or the second search result may be displayed on a picture or a blank area or a screen around the picture, and the search result may be specifically a link or a link icon. Users can get more detailed information by clicking on the link or the link icon.
以上结合图1至图4,详细的描述了根据本发明实施例的对图片的内容进行检索的方法的整个流程,下面将结合图5至图12,结合具体的操作的手势对本发明实施例的对图片的内容进行检索的方法进行详细的描述。The entire flow of the method for retrieving the content of the picture according to the embodiment of the present invention is described in detail with reference to FIG. 1 to FIG. 4 . The following will be combined with FIG. 5 to FIG. A detailed description of the method of retrieving the content of the picture.
便携式电子设备打开图片后的初始显示界面如图5所示,在图5中,图片位于便携式电子设备屏幕的中间,图片中有三个物体(这里是以圆形、五边形和三角形代表图片中的三个物体),如果想实现对图片中的内容进行检索的话,那么可以在显示的界面上对图片进行操作,以实现对图片中的内容的检索。The initial display interface after the portable electronic device opens the picture is shown in FIG. 5. In FIG. 5, the picture is located in the middle of the screen of the portable electronic device, and there are three objects in the picture (here, the picture is represented by a circle, a pentagon and a triangle). The three objects), if you want to implement the retrieval of the content in the picture, you can operate the picture on the displayed interface to achieve the retrieval of the content in the picture.
如图6所示,当便携式电子设备检测到作用于图片的第一操作时,例如第一操作是单击,那么便携式电子设备就会获取以所述图片的整体内容作为检索要素的第一检索结果,也就是说检索要素为图6中的三个物体,并将第一检索结果显示在屏幕上或图片上或者图片周围。As shown in FIG. 6, when the portable electronic device detects the first operation on the picture, for example, the first operation is a click, the portable electronic device acquires the first search with the overall content of the picture as a search element. As a result, that is, the retrieval elements are the three objects in FIG. 6, and the first retrieval result is displayed on the screen or on the picture or around the picture.
如图7所示,当便携式电子设备检测到作用于图片的第二操作时,例如,第二操作是双击,便携式电子设备就将获取以所述图片与屏幕中央的预设区域重合的内容作为检索要素的第二检索结果,即检索要素为五边形物体,并将第二检索结果显示在屏幕上或图片上或五边形物体的周围。另外,还可以如图8那样,便携式电子设备检测到作用于图片的第三操作,例如,第三操作是移动图片,使得不同的物体处于屏幕的中央的预设区域内,这样便携式电子设备就会自动获取对移动到该预设区域的新的物体的检索结果,并将获取的检索结果显示在屏幕上或图片上或新的物体附近(图8中是对移动到预先区域中的圆形物体进行检索)。 As shown in FIG. 7, when the portable electronic device detects the second operation on the picture, for example, the second operation is a double click, the portable electronic device will acquire the content in which the picture coincides with the preset area in the center of the screen as Retrieve the second search result of the feature, that is, the search element is a pentagon object, and the second search result is displayed on the screen or on the picture or around the pentagon object. In addition, as shown in FIG. 8, the portable electronic device detects a third operation acting on the picture. For example, the third operation is to move the picture such that different objects are in a preset area in the center of the screen, so that the portable electronic device is The retrieval result of the new object moved to the preset area is automatically acquired, and the obtained retrieval result is displayed on the screen or on the picture or near the new object (in FIG. 8 is a circle moving to the pre-area) Objects are retrieved).
如图9所示,当便携式电子设备检测到作用于图片的第二操作,该第二操作是两指扩展或者两指收缩等时,便携式电子设备自动以两个触点的连线为直径形成圆形的识别区域,并对该识别区域内的内容进行检索,将获取的检索结果显示在屏幕上或图片上或目标物体附近。As shown in FIG. 9, when the portable electronic device detects a second operation acting on the picture, the second operation is two-finger expansion or two-finger contraction, etc., the portable electronic device automatically forms a diameter of two contacts. A circular recognition area, and the content in the identification area is retrieved, and the obtained retrieval result is displayed on the screen or on the picture or near the target object.
如图10所示,便携式电子设备还可以生成一个可以移动的识别框,用户可以通过移动该识别框实现对图片中的不同的物体进行检索,如图10中所示,当便携式电子设备检测到用户的第二操作后,可以在屏幕上的作用区域生成识别框,将所述识别框在所述图片上圈定的内容作为对所述图片进行识别的识别区域,图10中的识别框是一个矩形框,用户可以向下或者向右移动该识别框以移动识别区域,从而检索图片中的不同物体。As shown in FIG. 10, the portable electronic device can also generate a movable identification frame, and the user can retrieve different objects in the picture by moving the identification frame, as shown in FIG. 10, when the portable electronic device detects After the second operation of the user, an identification frame may be generated in the active area on the screen, and the content bounded by the identification frame on the picture is used as an identification area for identifying the picture, and the identification frame in FIG. 10 is a A rectangular frame that the user can move down or to the right to move the recognition area to retrieve different objects in the picture.
当用户的第二操作为圈定或者滑动时,可以根据圈定或者滑动操作在屏幕上产生的曲线轨迹来确定识别区域,具体来说,用户可以通过一个手指在滑动或者圈定产生的曲线轨迹来确定识别区域,用户也可以通过多个手指在屏幕上滑动或者圈定产生的曲线轨迹来确定识别区域。上述圈定或者滑动的轨迹为识别区域,具体来说,如图11所示,用户在通过滑动或者圈定操作在屏幕上划出了一个封闭的曲线,那么该封闭曲线围住包含图片中间的一个五边形物体的区域就是识别区域。应理解,如图12所示,用户还可以通过滑动或者圈定操作在屏幕上划一条非封闭的曲线来确定识别区域,当用户画出的是非封闭的曲线时,可以将该非封闭曲线的两个端点连接在一起构成一个封闭曲线,以该封闭曲线围住的区域为上述识别区域。还应理解,图11和12中圈定或者滑动的轨迹既可以是虚线也可以是实线,或者是透明的曲线(此时屏幕上不会显示滑动或者圈定的轨迹,但是仍然会根据滑动的轨迹确定识别区域),或者还可以是其它类型的曲线。When the second operation of the user is circled or slid, the recognition area can be determined according to the curve trajectory generated on the screen by the circle or slide operation. Specifically, the user can determine the recognition by sliding or delineating the generated curve trajectory by one finger. In the area, the user can also determine the recognition area by sliding or enlarging the generated curve trajectory on the screen by a plurality of fingers. The above-mentioned circled or slid track is an identification area. Specifically, as shown in FIG. 11, the user draws a closed curve on the screen by sliding or ringing operation, and the closed curve encloses a five in the middle of the picture. The area of the edge object is the recognition area. It should be understood that, as shown in FIG. 12, the user can also determine a recognition area by drawing a non-closed curve on the screen by sliding or delineating operation. When the user draws a non-closed curve, the two non-closed curves can be The end points are connected together to form a closed curve, and the area enclosed by the closed curve is the above identified area. It should also be understood that the trajectory circled or slid in Figures 11 and 12 can be either a broken line or a solid line, or a transparent curve (the slide or circled trajectory will not be displayed on the screen, but will still follow the trajectory of the slide. Determine the recognition area), or it can be other types of curves.
为了更形象更直观的显示本发明实施例的对图片的内容进行检索的方法的检索效果,下面结合图13至图18中的具体的识别结果对本发明实施例的对图片的内容进行检索的方法进行详细的描述。In order to more intuitively and intuitively display the retrieval effect of the method for searching the content of the image in the embodiment of the present invention, the method for searching the content of the image in the embodiment of the present invention is combined with the specific recognition result in FIG. 13 to FIG. Carry out a detailed description.
如图13所示,用户在打开便携式电子设备存储的图片(此时可以认为该图片还未进行缩放处理)之后,便携式电子设备检测到用户的第一操作,这时便携式电子设备将该图片的整体内容作为检索要素进行检索,并将检索结果“NBA全明星阵容”显示在该图片上。在进行整体检索之后,如果用户想进一步了解该图片中的各个人物的话如图14所示,当用户采用第二操作来 操作该图片后,便携式电子设备自动对该屏幕的中心区域中的图像进行检索,并将检索结果“奥尼尔”显示图片上。如果用户还想进一步了解该图片中的其它人物的话,那么可以采用移动等第三操作来操作该图片,如图15所示,当用户向右移动该图片之后,便携式电子设备自动对该屏幕的中心区域的内容进行检索,并将检索结果“邓肯”显示图片上。由图13至图15的检索过程可知,用户想对图片的整体内容进行检索时只需要对图片进行第一操作,当想对图片的部分的进行检索时,可以对该图片进行第二操作,这时便携式电子设备可以自动的对中央区域下的内容进行检索,并将显示检索结果,如果用户相对图片中的其它内容进行检索,可以通过移动图片将想要检索的内容移动到屏幕的中央区域,方便了用户的操作。As shown in FIG. 13, after the user opens the picture stored by the portable electronic device (the picture can be considered to have not been subjected to the scaling process at this time), the portable electronic device detects the first operation of the user, and then the portable electronic device selects the picture. The overall content is searched as a search element, and the search result "NBA All-Star Lineup" is displayed on the picture. After performing the overall search, if the user wants to know more about each character in the picture, as shown in FIG. 14, when the user takes the second operation After operating the picture, the portable electronic device automatically retrieves the image in the central area of the screen and displays the search result "O'Neill" on the picture. If the user wants to know more about other characters in the picture, the third operation can be operated to operate the picture. As shown in FIG. 15, after the user moves the picture to the right, the portable electronic device automatically performs the screen. The content of the central area is retrieved and the search result "Duncan" is displayed on the picture. It can be seen from the retrieval process of FIG. 13 to FIG. 15 that the user only needs to perform the first operation on the image when searching for the overall content of the image, and can perform the second operation on the image when the user wants to retrieve the image. At this time, the portable electronic device can automatically retrieve the content under the central area, and display the search result. If the user searches for other content in the picture, the content to be retrieved can be moved to the central area of the screen by moving the picture. It is convenient for the user's operation.
如图16所示,用户在打开便携式电子设备存储的图片之后,用户对该图片进行第一操作,便携式电子设备对该图片的整体内容进行检索,并将检索结果“缤纷甜点”显示在该图片上。如果用户想进一步了解该图片中的各个目标物的话,那么用户可以双击该图片,如图17所示,用户双击的区域为左上角的目标物,接下来便携式电子设备获取左上角的目标物检索结果,并将检索结果“水果慕斯杯”显示在目标物的附近。如图18所示,用户继续双击该图片,这时用户双击的区域为右下角的目标物,这时便携式电子设备获取右下角的目标物检索结果,并将检索结果“草莓蛋糕”显示在目标物的附近。由图16至图18可知,用户的操作手势作用的触摸区域在哪里就可以对该区域的内容进行自动检索,并将检索结果显示在屏幕上或该图像上或者该图像附近,方便了用户的操作。As shown in FIG. 16, after the user opens the picture stored by the portable electronic device, the user performs a first operation on the picture, and the portable electronic device searches the entire content of the picture, and displays the search result “Funny Dessert” in the picture. on. If the user wants to know more about each target in the picture, the user can double-click the picture, as shown in FIG. 17, the area double-clicked by the user is the target in the upper left corner, and then the portable electronic device acquires the target search in the upper left corner. As a result, the search result "fruit mousse cup" is displayed in the vicinity of the target. As shown in FIG. 18, the user continues to double-click the picture, and the area that the user double-clicks is the target object in the lower right corner. At this time, the portable electronic device acquires the target search result in the lower right corner, and displays the search result “strawberry cake” on the target. Near the object. 16 to FIG. 18, the touch area of the user's operation gesture can automatically retrieve the content of the area, and display the search result on the screen or on the image or near the image, which is convenient for the user. operating.
应理解,本发明实施例的对图片的内容进行检索的方法中,便携式电子设备可以在检测到对图片的操作之前,预先对图片中的所有有效对象或者物体进行自动识别和检索,获取检索结果,并将检索结果存储起来。此外,便携式电子设备还可以对图片的整体内容进行检索获取整体检索结果,并对图片中的各个对象进行检索获取各个对象的检索结果,并将整体检索结果和各个对象的检索结果存储起来。这样当便携式电子设备检测到用户的操作之后可以快速调用之前存储的检索结果,并将检索结果显示出来。It should be understood that, in the method for retrieving the content of the image in the embodiment of the present invention, the portable electronic device may automatically identify and retrieve all valid objects or objects in the image in advance before detecting the operation on the image, and obtain the retrieval result. And store the results of the search. In addition, the portable electronic device can also retrieve the overall content of the image to obtain an overall retrieval result, and retrieve each object in the image to obtain a retrieval result of each object, and store the overall retrieval result and the retrieval result of each object. Thus, when the portable electronic device detects the user's operation, the previously stored search result can be quickly called and the search result displayed.
以上结合图1至图18,详细的描述了根据本发明实施例的对图片的内容进行检索的方法,下面将结合图19至图21,描述本发明实施例的对图片的内容进行检索的装置。应理解,图19至图21描述的对图片的内容进行检索 的装置能够实现图1至图18中描述的对图片的内容进行检索的方法的各个步骤,为了简洁,适当省略重复的描述。The method for retrieving the content of a picture according to an embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 18. Referring to FIG. 19 to FIG. 21, a device for searching content of a picture according to an embodiment of the present invention will be described below. . It should be understood that the content of the picture is retrieved as described in FIGS. 19 to 21 The apparatus can implement the various steps of the method of retrieving the content of the picture described in FIGS. 1 to 18, and the repeated description is omitted as appropriate for brevity.
图19示出了本发明实施例的对图片的内容进行检索的装置的示意性框图。该便携式电子设备400包括:FIG. 19 is a schematic block diagram of an apparatus for retrieving content of a picture according to an embodiment of the present invention. The portable electronic device 400 includes:
检测单元410,用于检测作用于一个图片的第一操作,所述图片显示在所述便携式电子设备的屏幕上;The detecting unit 410 is configured to detect a first operation applied to a picture, where the picture is displayed on a screen of the portable electronic device;
处理单元420,用于响应所述第一操作,获取以所述图片的整体内容作为检索要素的第一检索结果,显示所述第一检索结果;The processing unit 420 is configured to: in response to the first operation, acquire a first search result that uses the entire content of the picture as a search element, and display the first search result;
所述检测单元410还用于检测作用于所述图片的第二操作;The detecting unit 410 is further configured to detect a second operation that is applied to the picture;
所述处理单元420还用于响应所述第二操作,确定对所述图片进行识别的识别区域,获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果,显示所述第二检索结果,其中,所述图片与所述识别区域重合的内容为所述图片的整体内容的一部分,所述第一操作与所述第二操作不同。The processing unit 420 is further configured to: in response to the second operation, determine an identification area that identifies the picture, and acquire a second search result that uses the content that overlaps the picture and the identification area as a search element, and displays the The second search result, wherein the content of the picture that coincides with the identification area is a part of the overall content of the picture, and the first operation is different from the second operation.
便携式电子设备在检测到不同的操作时可以实现对图片的整体或者局部内容进行识别,与现有技术中需要先开启智能识物选项,获取包含目标物体的照片,然后在照片中选择包含目标物体的识别区域,最后再点击检索才能获得检索结果相比,简化了用户对图片的内容进行检索的操作步骤。The portable electronic device can recognize the whole or partial content of the picture when detecting different operations, and the prior art needs to first open the intelligent object recognition option, obtain the photo containing the target object, and then select the target object in the photo. The recognition area, and finally click on the search to obtain the search result, simplifies the user's operation of searching the content of the picture.
可选地,作为一个实施例,所述检测单元410还用于检测作用于所述图片的第三操作,所述第三操作包括拖动、放大或者缩小,所述第三操作与所述第一操作不同;所述处理单元420还用于响应所述第三操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第三检索结果,显示第三检索结果,其中,所述识别区域是所述屏幕上的预设区域。Optionally, as an embodiment, the detecting unit 410 is further configured to detect a third operation that is applied to the picture, where the third operation includes dragging, zooming in, or zooming out, the third operation and the third The processing unit 420 is further configured to: in response to the third operation, acquire a third search result that uses the content that overlaps the image and the identification area as a search element, and display a third search result, where The identification area is a preset area on the screen.
可选地,作为一个实施例,所述检测单元410还用于检测作用于显示在屏幕上的识别框的第四操作,所述第四操作包括拖动或移动,所述识别框与所述识别区域的边界线重合,所述第四操作与所述第一操作不同;所述处理单元420还用于响应所述第四操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第四检索结果,显示所述第四检索结果。Optionally, as an embodiment, the detecting unit 410 is further configured to detect a fourth operation that is applied to the identification frame displayed on the screen, where the fourth operation includes dragging or moving, the identification frame is The boundary line of the identification area coincides, the fourth operation is different from the first operation; the processing unit 420 is further configured to: in response to the fourth operation, acquire content that overlaps the image and the identification area as a retrieval The fourth search result of the element displays the fourth search result.
可选地,作为一个实施例,所述处理单元420具体用于:响应所述第二操作,将所述屏幕上预设区域与所述图片重合的内容作为对所述图片进行识别的识别区域,或者,将显示在所述屏幕上的识别框在所述图片上圈定的内 容作为对所述图片进行识别的识别区域。Optionally, as an embodiment, the processing unit 420 is specifically configured to: in response to the second operation, content that overlaps the preset area on the screen and the picture as an identification area that identifies the picture. Or, the identification box displayed on the screen is circled on the picture The content serves as an identification area for identifying the picture.
可选地,作为一个实施例,所述第二操作包括重按操作,所述处理单元420具体用于:确定所述重按操作在所述屏幕上的作用点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。Optionally, as an embodiment, the second operation includes a re-press operation, and the processing unit 420 is specifically configured to: determine that the re-press operation is surrounded by a closed curve centered on an action point on the screen. The area is the identification area, and the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括双击或指关节叩击,所述处理单元420具体用于:确定以所述双击操作或所述指关节叩击的触控点为中心的封闭曲线围住的区域为所述识别区域,其中,所述封闭曲线的大小是预先设置的。Optionally, as an embodiment, the second operation includes a double tap or an knuckle tap, and the processing unit 420 is specifically configured to: determine, by using the double tap operation or the touch point of the knuckle tap as a center The area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括两指扩张,所述处理单元420具体用于:确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。Optionally, as an embodiment, the second operation includes two-finger expansion, and the processing unit 420 is specifically configured to: determine, centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen. The area enclosed by the closed curve is the identification area, and the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括圈定或滑动,所述处理单元具体用于:确定以所述圈定的轨迹或所述滑动的轨迹围住的区域为所述识别区域。Optionally, as an embodiment, the second operation includes delimiting or sliding, and the processing unit is specifically configured to: determine an area enclosed by the circled track or the sliding track as the identification area.
可选地,作为一个实施例,所述便携式电子设备还包括:确定单元430,用于所述处理单元响应于所述第二操作并确定对所述图片进行识别的识别区域之前,确定所述图片处于放大状态且所述图片处于放大状态的时长超过第一阈值。Optionally, as an embodiment, the portable electronic device further includes: a determining unit 430, configured to determine, before the processing unit is responsive to the second operation and determining an identification area that identifies the picture The picture is in an enlarged state and the picture is in an enlarged state for a duration exceeding a first threshold.
图20示出了本发明实施例的对图片的内容进行检索的装置的示意性框图。该便携式电子设备500包括:FIG. 20 is a schematic block diagram of an apparatus for retrieving content of a picture according to an embodiment of the present invention. The portable electronic device 500 includes:
处理器510、检测器520、存储器530、总线系统540; Processor 510, detector 520, memory 530, bus system 540;
所述处理器510、所述存储器530以及所述检测520器通过所述总线相连;The processor 510, the memory 530, and the detection 520 are connected by the bus;
所述存储器530用于存储一个或多个程序,所述一个或多个程序包括指令;The memory 530 is configured to store one or more programs, the one or more programs including instructions;
当所述指令被所述便携式电子设备执行时,所述检测器520用于检测作用于一个图片的第一操作,其中,所述图片显示在所述便携式电子设备的屏幕上;所述处理器510用于响应所述第一操作,获取以所述图片的整体内容作为检索要素的第一检索结果,显示所述第一检索结果;The detector 520 is configured to detect a first operation applied to a picture when the instruction is executed by the portable electronic device, wherein the picture is displayed on a screen of the portable electronic device; the processor 510, in response to the first operation, acquiring a first search result that uses the entire content of the picture as a search element, and displaying the first search result;
所述检测器520还用于检测作用于所述图片的第二操作; The detector 520 is further configured to detect a second operation that acts on the picture;
所述处理器510还用于响应所述第二操作,确定对所述图片进行识别的识别区域,获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果,显示所述第二检索结果,其中,所述图片与所述识别区域重合的内容为所述图片的整体内容的一部分,所述第一操作与所述第二操作不同。The processor 510 is further configured to: in response to the second operation, determine an identification area that identifies the picture, and acquire a second search result that uses the content that overlaps the picture and the identification area as a search element, and displays the The second search result, wherein the content of the picture that coincides with the identification area is a part of the overall content of the picture, and the first operation is different from the second operation.
在本发明实施例中,当便携式电子设备的检测器520检测到用户对屏幕上显示的图片的第一操作之后,就可以直接由处理器510对图片的整体内容进行检索并将检索出的结果显示出来,而检测器520检测到用户对图片的第二操作之后可以由处理器510对图片的部分内容进行检索并将检索出的结果显示出来,由此看来,便携式电子设备在检测到不同的操作时可以实现对图片的整体或者局部内容进行检索,与现有技术中需要先开启智能识物选项,获取包含目标物体的照片,然后在照片中选择包含目标物体的识别区域,最后再点击检索才能获得检索结果相比,简化了用户对图片的内容进行检索的操作步骤,并且使得用户能够通过不同的手势对图片中不同区域的图像进行识别,增强了检索效果,提高了用户体验。In the embodiment of the present invention, after the detector 520 of the portable electronic device detects the first operation of the user on the screen displayed on the screen, the processor 510 can directly retrieve the entire content of the image and retrieve the result. Displayed, and after the detector 520 detects the user's second operation on the picture, the processor 510 can retrieve part of the content of the picture and display the retrieved result, thereby indicating that the portable electronic device is detecting different The operation can realize the retrieval of the whole or partial content of the picture. In the prior art, it is necessary to first open the intelligent object recognition option, obtain the photo containing the target object, and then select the identification area containing the target object in the photo, and then click Compared with the retrieval result, the retrieval operation step of the user is simplified, and the user can recognize the images of different regions in the image through different gestures, thereby enhancing the retrieval effect and improving the user experience.
可选地,作为一个实施例,所述检测器520还用于检测作用于所述图片的第三操作,所述第三操作包括拖动、放大或者缩小,所述第三操作与所述第一操作不同;所述处理器510还用于响应所述第三操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第三检索结果,显示第三检索结果,其中,所述识别区域是所述屏幕上的预设区域。Optionally, as an embodiment, the detector 520 is further configured to detect a third operation that is applied to the picture, where the third operation includes dragging, zooming in, or zooming out, the third operation and the third An operation is different. The processor 510 is further configured to: in response to the third operation, acquire a third search result that is a content of the search area and the content of the recognition area, and display a third search result, where The identification area is a preset area on the screen.
可选地,作为一个实施例,所述检测器520还用于检测作用于显示在屏幕上的识别框的第四操作,所述第四操作包括拖动或移动,所述识别框与所述识别区域的边界线重合,所述第四操作与所述第一操作不同;所述处理器510还用于响应所述第四操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第四检索结果,显示所述第四检索结果。Optionally, as an embodiment, the detector 520 is further configured to detect a fourth operation that is applied to the identification frame displayed on the screen, the fourth operation includes dragging or moving, the identification frame and the The boundary line of the identification area coincides, the fourth operation is different from the first operation; the processor 510 is further configured to: in response to the fourth operation, acquire content that overlaps the image and the identification area as a retrieval The fourth search result of the element displays the fourth search result.
可选地,作为一个实施例,所述处理器510具体用于:响应所述第二操作,将所述屏幕上预设区域与所述图片重合的内容作为对所述图片进行识别的识别区域,或者,将显示在所述屏幕上的识别框在所述图片上圈定的内容作为对所述图片进行识别的识别区域。Optionally, as an embodiment, the processor 510 is specifically configured to: in response to the second operation, content that overlaps the preset area on the screen and the picture as an identification area that identifies the picture. Or, the content circled on the picture by the recognition frame displayed on the screen is used as an identification area for identifying the picture.
可选地,作为一个实施例,所述第二操作包括重按操作,所述处理器510具体用于:确定所述重按操作在所述屏幕上的作用点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。 Optionally, as an embodiment, the second operation includes a re-press operation, and the processor 510 is specifically configured to: determine a closed curve centered on a point of action of the re-press operation on the screen. The area is the identification area, and the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括双击或指关节叩击,所述处理器510具体用于:确定以所述双击或所述指关节叩击的触控点为中心的封闭曲线围住的区域为所述识别区域,其中,所述封闭曲线的大小是预先设置的。Optionally, as an embodiment, the second operation includes a double tap or an knuckle tap, and the processor 510 is specifically configured to: determine, by using the double tap or the touch point of the knuckle The area enclosed by the closed curve is the identification area, wherein the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括两指扩张,所述处理器510具体用于:确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。Optionally, as an embodiment, the second operation includes two-finger expansion, and the processor 510 is specifically configured to: determine, centered on a midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen. The area enclosed by the closed curve is the identification area, and the size of the closed curve is preset.
可选地,作为一个实施例,所述第二操作包括圈定或滑动,所述处理器510具体用于:确定以所述圈定的轨迹或所述滑动的轨迹围住的区域为所述识别区域。Optionally, as an embodiment, the second operation includes delimiting or sliding, and the processor 510 is specifically configured to: determine an area enclosed by the circled track or the sliding track as the identification area. .
可选地,作为一个实施例,所述处理器510具体用于:响应于所述第二操作并确定对所述图片进行识别的识别区域之前,确定所述图片处于放大状态且所述图片处于放大状态的时长超过第一阈值。Optionally, as an embodiment, the processor 510 is specifically configured to: before the second operation and determining the identification area that identifies the picture, determine that the picture is in an enlarged state and the picture is in The length of the amplified state exceeds the first threshold.
本发明还包括一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序被所述便携式电子设备执行时,所述便携式电子设备可以执行如图1至图18所示的对图片的内容进行检索的方法。The present invention also includes a computer readable storage medium storing one or more programs that, when executed by the portable electronic device, can perform the operations as shown in FIGS. 1 through 18 A method of retrieving the content of a picture.
本发明还包括一种便携式电子设备上的图形用户界面,所述便携式电子设备包括显示器、存储器、多个应用程序;和用于执行存储在所述存储器中的一个或多个程序的一个或多个处理器,所述图形用户界面包括根据如图1至图18所示的对图片的内容进行检索的方法显示的用户界面,其中,所述显示器包括触敏表面和显示屏。The present invention also includes a graphical user interface on a portable electronic device, the portable electronic device including a display, a memory, a plurality of applications, and one or more for executing one or more programs stored in the memory A processor, the graphical user interface comprising a user interface displayed in accordance with a method of retrieving content of a picture as shown in FIGS. 1 through 18, wherein the display comprises a touch-sensitive surface and a display screen.
下面结合图21对本发明实施例的便携式电子设备的具体结构进行介绍,应理解图21所示的结构知识本发明实施例的便携式电子设备中的一种最具体的情况,不会对本发明实施例的便携式电子设备造成限定。The specific structure of the portable electronic device according to the embodiment of the present invention will be described below with reference to FIG. 21. It should be understood that the structural knowledge shown in FIG. 21 is the most specific case in the portable electronic device of the embodiment of the present invention, and the embodiment of the present invention is not The portable electronic device is limited.
图21示出了本发明实施例的对图片的内容进行检索的便携式电子设备的示意性框图。该装置包含了执行本发明实施例的对图片的内容进行检索的方法的各个模块,下面结合图21对上述便携式电子设备进行详细的介绍。如图21所示,该便携式电子设备包括处理器单元、输入单元、存储单元、通信单元、外设接口、输出单元以及电源。这些单元或者组件通过一条或多条总线进行通信。应理解,图21示出的便携式电子设备只是一种最具体的 情况,它不会对本发明实施例的便携式电子设备构成限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。本发明实施例的便携式电子设备可以是任何移动或便携式电子设备,包括但不限于移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,简称PDA)、媒体播放器、智能电视,以及上述两项或两项以上的组合等。下面对本发明实施例的便携式电子设备的各个模块或者单元进行详细的描述。21 is a schematic block diagram of a portable electronic device that retrieves content of a picture in accordance with an embodiment of the present invention. The apparatus includes various modules for performing the method of searching for the content of the picture in the embodiment of the present invention. The portable electronic device will be described in detail below with reference to FIG. As shown in FIG. 21, the portable electronic device includes a processor unit, an input unit, a storage unit, a communication unit, a peripheral interface, an output unit, and a power source. These units or components communicate over one or more buses. It should be understood that the portable electronic device shown in FIG. 21 is only the most specific one. In the case, it does not constitute a limitation on the portable electronic device of the embodiment of the present invention. It may be a bus-shaped structure or a star-shaped structure, and may include more or less components than those illustrated, or may combine some components. , or different parts layout. The portable electronic device of the embodiments of the present invention may be any mobile or portable electronic device, including but not limited to a mobile phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, a smart TV, and Combination of two or more of the above. The respective modules or units of the portable electronic device of the embodiments of the present invention are described in detail below.
输入单元,输入单元用于实现用户与电子设备的交互和/或信息输入到电子设备中。例如,输入单元可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入单元可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。触控面板,也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将所述电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收所述电信号,并将它转换成触点坐标,再送给处理单元。所述触摸控制器还可以接收处理单元发来的命令并执行。此外,可以采用电阻式、电容式、电容式+压力感应式、红外线(Infrared)以及表面声波等多种类型实现触控面板。在本发明的其他实施方式中,输入单元所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入单元可以收集用户或环境输入的语音并将其转换成电信号形式的、处理单元可执行的命令。An input unit for implementing user interaction with an electronic device and/or information input into the electronic device. For example, the input unit can receive numeric or character information input by the user to generate a signal input related to user settings or function control. In an embodiment of the present invention, the input unit may be a touch panel, or may be other human-computer interaction interfaces, such as a physical input key, a microphone, etc., and may be other external information capture devices, such as a camera. A touch panel, also known as a touch screen or touch screen, collects operational actions that the user touches or approaches on. For example, the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device, and Convert it to contact coordinates and send it to the processing unit. The touch controller can also receive and execute commands from the processing unit. In addition, touch panels can be implemented in various types such as resistive, capacitive, capacitive + pressure sensitive, infrared (infrared) and surface acoustic waves. In other embodiments of the present invention, the physical input keys used by the input unit may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. Or a variety. An input unit in the form of a microphone can collect the voice input by the user or the environment and convert it into a command executable by the processing unit in the form of an electrical signal.
具体来说,本发明实施例的便携式电子设备的输入单元可以是各类传感器件,例如霍尔器件,它可以用于侦测电子设备的物理量,例如力、力矩、压力、应力、位置、位移、速度、加速度、角度、角速度、转数、转速以及工作状态发生变化的时间等,转变成电量来进行检测和控制。其他的一些传感器件还可以包括重力感应计、三轴加速计、陀螺仪、电子罗盘、环境光传感器、接近传感器、温度传感器、湿度传感器、压力(气压)传感器、压电 传感器、心率传感器、指纹识别器等。Specifically, the input unit of the portable electronic device of the embodiment of the present invention may be various types of sensor components, such as a Hall device, which can be used to detect physical quantities of electronic devices, such as force, moment, pressure, stress, position, displacement. Speed, acceleration, angle, angular velocity, number of revolutions, speed, and time when the working state changes, etc., are converted into electricity for detection and control. Other sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure (pressure) sensors, piezoelectric Sensors, heart rate sensors, fingerprint readers, etc.
处理器单元,它是便携式电子设备的控制中心,它可以利用各种接口和线路连接整个便携式电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器单元可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器单元可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。A processor unit, which is the control center of the portable electronic device, which can connect various parts of the entire portable electronic device using various interfaces and lines, by running or executing software programs and/or modules stored in the storage unit, and calling storage Data within the storage unit to perform various functions of the electronic device and/or process data. The processor unit may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions. For example, the processor unit may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip (for example, a baseband) in the communication unit. A combination of chips). In the embodiment of the present invention, the CPU may be a single operation core, and may also include multiple operation cores.
通信单元,用于建立通信信道,使便携式电子设备通过该通信信道与远端电子设备或服务器进行语音通信、文字通信、数据通信。上述通信单元可以包括无线局域网(Wireless Local Area Network,简称WLAN)模块、蓝牙模块、基带(Base Band)模块等通信模块,以及所述通信模块对应的射频(Radio Frequency,简称RF)电路,用于进行无线局域网络通信、蓝牙通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(Wideband Code Division Multiple Access,简称WCDMA)及/或高速下行封包存取(High Speed Downlink Packet Access,简称HSDPA)。所述通信模块用于控制电子设备中的各组件的通信,并且可以支持直接内存存取(Direct Memory Access)。The communication unit is configured to establish a communication channel, and enable the portable electronic device to perform voice communication, text communication, and data communication with the remote electronic device or the server through the communication channel. The communication unit may include a wireless local area network (WLAN) module, a Bluetooth module, a baseband module, and the like, and a radio frequency (RF) circuit corresponding to the communication module. Perform wireless local area network communication, Bluetooth communication, infrared communication, and/or cellular communication system communication, such as Wideband Code Division Multiple Access (WCDMA) and/or High Speed Downlink Packet Access (High Speed Downlink Packet) Access, referred to as HSDPA). The communication module is used to control communication of components in the electronic device, and can support Direct Memory Access.
具体来说,本发明实施例的便携式电子设备的通信单元中的各种通信模块可以以集成电路芯片(Integrated Circuit Chip)的形式出现,并可进行选择性组合,而不必包括所有通信模块及对应的天线组。例如,上述通信单元可以仅包括基带芯片、射频芯片以及相应的天线以在一个蜂窝通信系统中提供通信功能。经由所述通信单元建立的无线通信连接,例如无线局域网接入或WCDMA接入,上述便携式电子设备可以连接至蜂窝网(Cellular Network)或因特网(Internet)。上述射频芯片可以组成射频电路,该射频电路可以用于在信息收发或通话过程中接收和发送信号。例如,射频电路可以将将基站的下行信息接收后,给处理单元处理;另外,将设计上行的数据发送给基站。通常,所述射频电路包括用于执行这些功能的公知电路,包括但不限于天线 系统、射频收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编解码(Codec)芯片组、用户身份模块(SIM)卡、存储器等等。此外,射频电路还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication)、GPRS(General Packet Radio Service)、CDMA(Code Division Multiple Access)、WCDMA(Wideband Code Division Multiple Access)、HSDPA(High Speed Downlink Packet Access)、LTE(Long Term Evolution)、email(electronic mail)、SMS(Short Messaging Service)等。Specifically, various communication modules in the communication unit of the portable electronic device of the embodiment of the present invention may be in the form of an integrated circuit chip, and may be selectively combined without including all communication modules and corresponding Antenna group. For example, the above communication unit may include only a baseband chip, a radio frequency chip, and a corresponding antenna to provide a communication function in a cellular communication system. The portable electronic device can be connected to a cellular network (Cellular Network) or the Internet (Internet) via a wireless communication connection established by the communication unit, such as wireless local area network access or WCDMA access. The radio frequency chip can form a radio frequency circuit, and the radio frequency circuit can be used to receive and transmit signals during information transmission or reception. For example, the radio frequency circuit may process the downlink information of the base station and then process it to the processing unit; in addition, transmit the designed uplink data to the base station. Typically, the radio frequency circuit includes well-known circuits for performing these functions, including but not limited to antennas System, radio frequency transceiver, one or more amplifiers, tuner, one or more oscillators, digital signal processor, Codec chipset, Subscriber Identity Module (SIM) card, memory, and the like. In addition, the RF circuit can communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access). HSDPA (High Speed Downlink Packet Access), LTE (Long Term Evolution), email (electronic mail), SMS (Short Messaging Service), and the like.
输出单元,该输出单元不限于影像输出单元和声音输出单元。影像输出单元用于输出文字、图片和/或视频。所述影像输出单元可包括显示面板,例如采用LCD(Liquid Crystal Display)、OLED(Organic Light-Emitting Diode)、FED(field emission display)等形式来配置的显示面板。或者所述影像输出单元可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。所述影像输出单元可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,上述输入单元所采用的触控面板亦可同时作为输出单元的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理单元以确定触摸事件的类型,随后处理单元根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图21中,输入单元与输出单元是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出单元可以显示各种图形化用户接口(Graphical User Interface,简称GUI)以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。An output unit that is not limited to the image output unit and the sound output unit. The image output unit is used to output text, pictures, and/or video. The image output unit may include a display panel, such as a display panel configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or an FED (field emission display). Alternatively, the image output unit may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light. The image output unit may comprise a single display or multiple displays of different sizes. In a specific embodiment of the present invention, the touch panel used by the input unit can also serve as a display panel of the output unit. For example, when the touch panel detects a touch or proximity gesture operation thereon, it is transmitted to the processing unit to determine the type of the touch event, and then the processing unit provides a corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 21, the input unit and the output unit are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel and the display panel may be integrated to implement the electronic device. Input and output functions. For example, the image output unit may display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch. The way to operate.
存储单元,该存储单元可以用于存储软件程序以及模块,处理单元通过运行存储在存储单元的软件程序以及模块,从而执行电子设备的各种功能应用以及实现数据处理。存储单元主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序,比如声音播放程序、图像播放程序等等;数据存储区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。在本发明具体实施方式中,存储单元可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile  Random Access Memory,简称NVRAM)、相变化随机存取内存(Phase Change RAM,简称PRAM)、磁阻式随机存取内存(Magetoresistive RAM,简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。非易失存储器储存处理单元所执行的操作系统及应用程序。所述处理单元从所述非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。所述操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。在本发明实施方式中,所述操作系统可以是Google公司的Android系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows系统/Windows Phone系统等,或者是Vxworks这类的嵌入式操作系统。A storage unit, which can be used to store software programs and modules, and the processing unit executes various functional applications of the electronic device and implements data processing by running software programs and modules stored in the storage unit. The storage unit mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, such as a sound playing program, an image playing program, and the like; and the data storage area can be stored according to the electronic device. Use the created data (such as audio data, phone book, etc.). In a specific embodiment of the present invention, the storage unit may include a volatile memory, such as a non-volatile dynamic random access memory (Nonvolatile). Random Access Memory (NVRAM), Phase Change RAM (PRAM), Magnetoresistive Random Access Memory (MRAM), etc., may also include non-volatile memory, such as at least A disk storage device, an electrically erasable programmable read-only memory (EEPROM), a flash memory device, such as a NOR flash memory or a NAND flash memory. The non-volatile memory stores operating systems and applications executed by the processing unit. The processing unit loads the running program and data from the non-volatile memory into the memory and stores the digital content in a plurality of storage devices. The operating system includes various components and/or drivers for controlling and managing conventional system tasks such as memory management, storage device control, power management, and the like, as well as facilitating communication between various hardware and software. In the embodiment of the present invention, the operating system may be an Android system of Google Inc., an iOS system developed by Apple Corporation, a Windows system/Windows Phone system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
电源,用于给便携式电子设备的不同部件进行供电以维持其运行。作为一般性理解,所述电源可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向电子设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,所述电源还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与电子设备的电能生成、管理及分布相关联的其他任何组件。A power source that supplies power to different components of a portable electronic device to maintain its operation. As a general understanding, the power source may be a built-in battery, such as a common lithium ion battery, a nickel hydride battery, etc., and an external power source that directly supplies power to the electronic device, such as an AC adapter. In some embodiments of the present invention, the power source may also be more widely defined, and may further include, for example, a power management system, a charging system, a power failure detecting circuit, a power converter or an inverter, and a power status indicator ( Such as light emitting diodes, as well as any other components associated with the generation, management and distribution of electrical energy of electronic devices.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Professionals can use different parties for each specific application The described functionality is implemented, but such implementation should not be considered to be beyond the scope of the invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (22)

  1. 一种对图片的内容进行检索的方法,所述方法应用于便携式电子设备,其特征在于,包括:A method for retrieving content of a picture, the method being applied to a portable electronic device, comprising:
    检测到作用于一个图片的第一操作,所述图片显示在所述便携式电子设备的屏幕上;Detecting a first operation acting on a picture, the picture being displayed on a screen of the portable electronic device;
    响应于所述第一操作,获取以所述图片的整体内容作为检索要素的第一检索结果,显示所述第一检索结果;And in response to the first operation, acquiring a first search result that uses the entire content of the picture as a search element, and displaying the first search result;
    检测到作用于所述图片的第二操作;A second operation acting on the picture is detected;
    响应于所述第二操作,确定对所述图片进行识别的识别区域,获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果,显示所述第二检索结果,其中,所述图片与所述识别区域重合的内容为所述图片的整体内容的一部分,所述第一操作与所述第二操作不同。Determining, in response to the second operation, an identification area that identifies the picture, acquiring a second search result that uses the content of the picture and the identification area to be the search element, and displaying the second search result, wherein The content of the picture that coincides with the identification area is part of the overall content of the picture, and the first operation is different from the second operation.
  2. 如权利要求1所述的方法,其特征在于,在显示所述第二检索结果之后,所述方法还包括:The method of claim 1, wherein after displaying the second search result, the method further comprises:
    检测到作用于所述图片的第三操作,所述第三操作包括拖动、放大或者缩小,所述第三操作与所述第一操作不同;A third operation acting on the picture is detected, the third operation comprising dragging, zooming in or zooming out, the third operation being different from the first operation;
    响应于所述第三操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第三检索结果,显示第三检索结果,其中,所述识别区域是所述屏幕上的预设区域。And in response to the third operation, acquiring a third search result that the content of the picture coincides with the identification area as a retrieval element, displaying a third retrieval result, wherein the identification area is a preset on the screen region.
  3. 如权利要求1所述的方法,其特征在于,在显示所述第二检索结果之后,所述方法还包括:The method of claim 1, wherein after displaying the second search result, the method further comprises:
    检测到作用于显示在屏幕上的识别框的第四操作,所述第四操作包括拖动或移动,所述识别框与所述识别区域的边界线重合,所述第四操作与所述第一操作不同;Detecting a fourth operation acting on the identification frame displayed on the screen, the fourth operation including dragging or moving, the identification frame coincides with a boundary line of the identification area, the fourth operation and the fourth One operation is different;
    响应于所述第四操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第四检索结果,显示所述第四检索结果。In response to the fourth operation, acquiring a fourth search result in which the content of the picture coincides with the recognition area as a search element displays the fourth search result.
  4. 如权利要求1所述的方法,其特征在于,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:The method of claim 1, wherein determining an identification area for identifying the picture in response to the second operation comprises:
    将所述屏幕上预设区域与所述图片重合的内容作为对所述图片进行识别的识别区域,或者,The content that overlaps the preset area on the screen with the picture is used as an identification area for identifying the picture, or
    在所述第二操作在所述屏幕上的作用区域生成识别框,将所述识别框在 所述图片上圈定的内容作为对所述图片进行识别的识别区域,其中,所述识别框是可移动的。Generating an identification frame in an active area of the second operation on the screen, the identification frame being The content circled on the picture serves as an identification area for identifying the picture, wherein the identification frame is movable.
  5. 如权利要求1所述的方法,其特征在于,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:The method of claim 1, wherein determining an identification area for identifying the picture in response to the second operation comprises:
    所述第二操作包括重按,确定所述重按在所述屏幕上的作用点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。The second operation includes re-pressing, determining that the area enclosed by the closed curve centered on the action point on the screen is the identification area, and the size of the closed curve is preset.
  6. 如权利要求1所述的方法,其特征在于,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:The method of claim 1, wherein determining an identification area for identifying the picture in response to the second operation comprises:
    所述第二操作包括双击或指关节叩击,确定以所述双击或所述指关节叩击的触控点为中心的封闭曲线围住的区域为所述识别区域,其中,所述封闭曲线的大小是预先设置的。The second operation includes a double tap or an knuckle tap, and an area enclosed by a closed curve centered on the touch point of the double tap or the knuckle tap is determined as the identification area, wherein the closed curve The size is preset.
  7. 如权利要求1所述的方法,其特征在于,响应于所述第二操作,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:The method of claim 1, wherein in response to the second operation, determining an identification region identifying the picture in response to the second operation comprises:
    所述第二操作包括两指扩张,确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。The second operation includes two-finger expansion, and the area enclosed by the closed curve centered on the midpoint of the line segment formed by the initial touch point connection of the two fingers on the screen is the identification area, the closed curve The size is preset.
  8. 如权利要求1所述的方法,其特征在于,响应于所述第二操作,确定对所述图片进行识别的识别区域,包括:The method of claim 1, wherein determining an identification area for identifying the picture in response to the second operation comprises:
    所述第二操作包括圈定或滑动,确定以所述圈定的轨迹或所述滑动的轨迹围住的区域为所述识别区域。The second operation includes delineating or sliding to determine an area enclosed by the circled trajectory or the trajectory of the slid as the identification area.
  9. 如权利要求1-8中任一项所述的方法,其特征在于,在响应于所述第二操作,确定对所述图片进行识别的识别区域之前,所述方法还包括:The method of any of claims 1-8, wherein the method further comprises: prior to determining the identified area identifying the picture in response to the second operation, the method further comprising:
    确定所述图片处于放大状态且所述图片处于放大状态的时长超过第一阈值。Determining that the picture is in an enlarged state and the picture is in an enlarged state exceeds a first threshold.
  10. 如权利要求9所述的方法,其特征在于,所述确定所述图片处于放大状态,包括:The method of claim 9, wherein the determining that the picture is in an enlarged state comprises:
    确定所述图片放大后的大小与所述图片的初始显示大小的比值超过第二阈值。It is determined that the ratio of the enlarged size of the picture to the initial display size of the picture exceeds a second threshold.
  11. 一种便携式电子设备,其特征在于,包括:A portable electronic device, comprising:
    检测单元,用于检测作用于一个图片的第一操作,所述图片显示在所述便携式电子设备的屏幕上; a detecting unit, configured to detect a first operation acting on a picture, the picture being displayed on a screen of the portable electronic device;
    处理单元,用于响应所述第一操作,获取以所述图片的整体内容作为检索要素的第一检索结果,显示所述第一检索结果;a processing unit, configured to: in response to the first operation, acquire a first search result that uses the entire content of the picture as a search element, and display the first search result;
    所述检测单元还用于检测作用于所述图片的第二操作;The detecting unit is further configured to detect a second operation that is applied to the picture;
    所述处理单元还用于响应所述第二操作,确定对所述图片进行识别的识别区域,获取以所述图片与所述识别区域重合的内容作为检索要素的第二检索结果,显示所述第二检索结果,其中,所述图片与所述识别区域重合的内容为所述图片的整体内容的一部分,所述第一操作与所述第二操作不同。The processing unit is further configured to: in response to the second operation, determine an identification area that identifies the picture, acquire a second search result that uses the content of the picture and the identification area to be the search element, and display the a second search result, wherein the content of the picture coincident with the identification area is a part of the overall content of the picture, and the first operation is different from the second operation.
  12. 如权利要求11所述的便携式电子设备,其特征在于,所述检测单元还用于检测作用于所述图片的第三操作,所述第三操作包括拖动、放大或者缩小,所述第三操作与所述第一操作不同;The portable electronic device according to claim 11, wherein said detecting unit is further configured to detect a third operation acting on said picture, said third operation comprising dragging, enlarging or reducing, said third The operation is different from the first operation;
    所述处理单元还用于响应所述第三操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第三检索结果,显示第三检索结果,其中,所述识别区域是所述屏幕上的预设区域。The processing unit is further configured to: in response to the third operation, acquire a third search result that uses the content of the picture and the identification area to be the search element, and display a third search result, where the identification area is The preset area on the screen.
  13. 如权利要求11所述的便携式电子设备,其特征在于,所述检测单元还用于检测作用于显示在屏幕上的识别框的第四操作,所述第四操作包括拖动或移动,所述识别框与所述识别区域的边界线重合,所述第四操作与所述第一操作不同;A portable electronic device according to claim 11, wherein said detecting unit is further configured to detect a fourth operation acting on the identification frame displayed on the screen, said fourth operation comprising dragging or moving, said The identification frame coincides with a boundary line of the identification area, and the fourth operation is different from the first operation;
    所述处理单元还用于响应所述第四操作,获取以所述图片与所述识别区域重合的内容作为检索要素的第四检索结果,显示所述第四检索结果。The processing unit is further configured to, in response to the fourth operation, acquire a fourth retrieval result that is a content of the image that overlaps the identification area as a retrieval element, and display the fourth retrieval result.
  14. 如权利要求11所述的便携式电子设备,其特征在于,所述处理单元具体用于:The portable electronic device of claim 11, wherein the processing unit is specifically configured to:
    响应所述第二操作,将所述屏幕上预设区域与所述图片重合的内容作为对所述图片进行识别的识别区域,或者,Responding to the second operation, the content that overlaps the preset area on the screen with the picture is used as an identification area for identifying the picture, or
    将显示在所述屏幕上的识别框在所述图片上圈定的内容作为对所述图片进行识别的识别区域。The content circled on the picture by the recognition frame displayed on the screen is used as an identification area for identifying the picture.
  15. 如权利要求11所述的便携式电子设备,其特征在于,所述第二操作包括重按,所述处理单元具体用于:The portable electronic device of claim 11, wherein the second operation comprises re-pressing, and the processing unit is specifically configured to:
    确定所述重按在所述屏幕上的作用点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。It is determined that the area enclosed by the closed curve centered on the action point on the screen is the identification area, and the size of the closed curve is preset.
  16. 如权利要求11所述的便携式电子设备,其特征在于,所述第二操作包括双击或指关节叩击,所述处理单元具体用于: The portable electronic device of claim 11, wherein the second operation comprises a double tap or an knuckle tap, the processing unit being specifically configured to:
    确定以所述双击或所述指关节叩击的触控点为中心的封闭曲线围住的区域为所述识别区域,其中,所述封闭曲线的大小是预先设置的。The area enclosed by the closed curve centered on the touch point of the double tap or the knuckle tap is determined as the identification area, wherein the size of the closed curve is preset.
  17. 如权利要求11所述的便携式电子设备,其特征在于,所述第二操作包括两指扩张,所述处理单元具体用于:The portable electronic device of claim 11, wherein the second operation comprises two-finger expansion, and the processing unit is specifically configured to:
    确定以两指在屏幕上的初始触控点连接所形成的线段的中点为中心的封闭曲线围住的区域为所述识别区域,所述封闭曲线的大小是预先设置的。The area enclosed by the closed curve centered on the midpoint of the line segment formed by the two fingers on the initial touch point connection on the screen is determined as the identification area, and the size of the closed curve is preset.
  18. 如权利要求11所述的便携式电子设备,其特征在于,所述第二操作包括圈定或滑动,所述处理单元具体用于:The portable electronic device of claim 11, wherein the second operation comprises delineation or sliding, and the processing unit is specifically configured to:
    确定以所述圈定的轨迹或所述滑动的轨迹围住的区域为所述识别区域。An area defined by the circled trajectory or the trajectory of the slid is determined as the identification area.
  19. 如权利要求11-18中任一项所述的便携式电子设备,其特征在于,所述便携式电子设备还包括:The portable electronic device according to any one of claims 11 to 18, wherein the portable electronic device further comprises:
    确定单元,用于所述处理单元响应于所述第二操作并确定对所述图片进行识别的识别区域之前,确定所述图片处于放大状态且所述图片处于放大状态的时长超过第一阈值。And a determining unit, configured to determine that the picture is in an enlarged state and the time in which the picture is in an enlarged state exceeds a first threshold before the processing unit is responsive to the second operation and determining an identification area that identifies the picture.
  20. 一种便携式电子设备,其特征在于,包括:A portable electronic device, comprising:
    处理器、检测器、存储器、系统总线;Processor, detector, memory, system bus;
    所述处理器、所述检测器以及所述存储器通过所述系统总线相连;The processor, the detector, and the memory are connected by the system bus;
    所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述便携式电子设备执行时使所述便携式电子设备执行如权利要求1-10中任一项所述的方法。The memory is for storing one or more programs, the one or more programs comprising instructions that, when executed by the portable electronic device, cause the portable electronic device to perform any of claims 1-10 The method described in the item.
  21. 一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序被所述便携式电子设备执行时,所述便携式电子设备执行如权利要求1-10中任一项所述的方法。A computer readable storage medium storing one or more programs, when the one or more programs are executed by the portable electronic device, the portable electronic device performing the method of any one of claims 1-10 method.
  22. 一种便携式电子设备上的图形用户界面,所述便携式电子设备包括显示器、存储器、多个应用程序;和用于执行存储在所述存储器中的一个或多个程序的一个或多个处理器,所述图形用户界面包括根据权利要求1-10中任一项所述的方法显示的用户界面,其中,所述显示器包括触敏表面和显示屏。 A graphical user interface on a portable electronic device, the portable electronic device including a display, a memory, a plurality of applications, and one or more processors for executing one or more programs stored in the memory, The graphical user interface includes a user interface displayed in accordance with the method of any of claims 1-10, wherein the display includes a touch-sensitive surface and a display screen.
PCT/CN2016/074597 2016-02-25 2016-02-25 Method for retrieving content of image, portable electronic device, and graphical user interface WO2017143575A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/074597 WO2017143575A1 (en) 2016-02-25 2016-02-25 Method for retrieving content of image, portable electronic device, and graphical user interface
CN201680024911.5A CN107533566A (en) 2016-02-25 2016-02-25 Method, portable electric appts and the graphic user interface retrieved to the content of picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/074597 WO2017143575A1 (en) 2016-02-25 2016-02-25 Method for retrieving content of image, portable electronic device, and graphical user interface

Publications (1)

Publication Number Publication Date
WO2017143575A1 true WO2017143575A1 (en) 2017-08-31

Family

ID=59684968

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074597 WO2017143575A1 (en) 2016-02-25 2016-02-25 Method for retrieving content of image, portable electronic device, and graphical user interface

Country Status (2)

Country Link
CN (1) CN107533566A (en)
WO (1) WO2017143575A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121486A (en) * 2017-12-19 2018-06-05 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN110929058A (en) * 2018-08-30 2020-03-27 深圳市蓝灯鱼智能科技有限公司 Trademark picture retrieval method and device, storage medium and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764726B (en) * 2019-10-18 2023-08-22 网易(杭州)网络有限公司 Target object determination method and device, terminal equipment and storage medium
CN113918017A (en) * 2021-10-11 2022-01-11 厦门顶尖电子有限公司 Instruction input method based on recognition of weighing platform of scale

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102667763A (en) * 2009-08-07 2012-09-12 谷歌公司 Facial recognition with social network aiding
CN104145267A (en) * 2012-01-04 2014-11-12 谷歌公司 Systems and methods of image searching
US20150019532A1 (en) * 2013-07-09 2015-01-15 Kt Corporation Image searching scheme
CN104376052A (en) * 2014-11-03 2015-02-25 杭州淘淘搜科技有限公司 Same-style commodity merging method based on commodity images
CN104504083A (en) * 2014-12-24 2015-04-08 北京畅游天下网络技术有限公司 Image confirming method and device based on image searching
CN104866564A (en) * 2015-05-21 2015-08-26 百度在线网络技术(北京)有限公司 Picture searching method and apparatus
CN105190644A (en) * 2013-02-01 2015-12-23 英特尔公司 Techniques for image-based search using touch controls

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120001856A1 (en) * 2010-07-02 2012-01-05 Nokia Corporation Responding to tactile inputs
CN102883066B (en) * 2012-09-29 2015-04-01 Tcl通讯科技(成都)有限公司 Method for realizing file operation based on hand gesture recognition and cellphone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102667763A (en) * 2009-08-07 2012-09-12 谷歌公司 Facial recognition with social network aiding
CN104145267A (en) * 2012-01-04 2014-11-12 谷歌公司 Systems and methods of image searching
CN105190644A (en) * 2013-02-01 2015-12-23 英特尔公司 Techniques for image-based search using touch controls
US20150019532A1 (en) * 2013-07-09 2015-01-15 Kt Corporation Image searching scheme
CN104376052A (en) * 2014-11-03 2015-02-25 杭州淘淘搜科技有限公司 Same-style commodity merging method based on commodity images
CN104504083A (en) * 2014-12-24 2015-04-08 北京畅游天下网络技术有限公司 Image confirming method and device based on image searching
CN104866564A (en) * 2015-05-21 2015-08-26 百度在线网络技术(北京)有限公司 Picture searching method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121486A (en) * 2017-12-19 2018-06-05 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN108121486B (en) * 2017-12-19 2023-06-16 维沃移动通信有限公司 Picture display method and mobile terminal
CN110929058A (en) * 2018-08-30 2020-03-27 深圳市蓝灯鱼智能科技有限公司 Trademark picture retrieval method and device, storage medium and electronic device
CN110929058B (en) * 2018-08-30 2023-01-31 北京蓝灯鱼智能科技有限公司 Trademark picture retrieval method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN107533566A (en) 2018-01-02

Similar Documents

Publication Publication Date Title
EP3951576B1 (en) Content sharing method and electronic device
US20230152962A1 (en) Techniques for image-based search using touch controls
US20200226007A1 (en) Copying and pasting method, data processing apparatus, and user equipment
CN111149086B (en) Method for editing main screen, graphical user interface and electronic equipment
WO2019128732A1 (en) Icon management method and device
KR102090269B1 (en) Method for searching information, device, and computer readable recording medium thereof
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
WO2016107505A1 (en) Method for displaying graphical user interface, and mobile terminal
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2018082269A1 (en) Menu display method and terminal
WO2021083132A1 (en) Icon moving method and electronic device
US20150143291A1 (en) System and method for controlling data items displayed on a user interface
WO2019000287A1 (en) Icon display method and device
CN104423581A (en) Mobile terminal and controlling method thereof
WO2018082657A1 (en) Method for searching for icon, and terminal
US20140337720A1 (en) Apparatus and method of executing function related to user input on screen
WO2017132963A1 (en) Data processing method and electronic device
WO2018086234A1 (en) Method for processing object, and terminal
WO2017143575A1 (en) Method for retrieving content of image, portable electronic device, and graphical user interface
WO2021057301A1 (en) File control method and electronic device
US20180075153A1 (en) Method and device for switching webpages in browser
WO2019072172A1 (en) Method for displaying multiple content cards, and terminal device
WO2021169954A1 (en) Search method and electronic device
CN107908330A (en) The management method and mobile terminal of application icon
KR102117295B1 (en) Method and apparatus for pairing electronic devices

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16891029

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16891029

Country of ref document: EP

Kind code of ref document: A1