WO2021063222A1 - 电子设备和图像处理方法 - Google Patents

电子设备和图像处理方法 Download PDF

Info

Publication number
WO2021063222A1
WO2021063222A1 PCT/CN2020/117042 CN2020117042W WO2021063222A1 WO 2021063222 A1 WO2021063222 A1 WO 2021063222A1 CN 2020117042 W CN2020117042 W CN 2020117042W WO 2021063222 A1 WO2021063222 A1 WO 2021063222A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
display
similar
touch
user
Prior art date
Application number
PCT/CN2020/117042
Other languages
English (en)
French (fr)
Inventor
刘向阳
朱斯语
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2021063222A1 publication Critical patent/WO2021063222A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular to an electronic device and an image processing method applied to the electronic device.
  • an electronic device including:
  • a memory on which computer-readable instructions are stored
  • the processor is configured to execute the instruction in order to:
  • a similar picture similar to the picture to be searched is obtained and displayed on the touch display screen.
  • the processor is further configured to:
  • the area to be edited and the original picture are adjusted by stretching at least one of the area to be edited and the original picture.
  • the original picture is cropped based on the boundary of the region to be edited to obtain the picture to be searched, and the picture to be searched is displayed on the touch display screen.
  • the processor is further configured to execute a distortion correction instruction to perform distortion correction on the cropped original picture.
  • the processor is further configured to: display a similar picture display area on the touch screen;
  • the similar picture includes at least one of the original picture of the similar picture, the low-resolution thumbnail of the similar picture, and the partial picture of the similar picture.
  • the processor is further configured to: control the touch screen display to display the similarity between the similar picture and the picture to be searched, the reason for recommending the similar picture, and the similar picture in the similar picture display area. At least one of the work information describing similar pictures.
  • the processor is further configured to: control the touch screen display to display a same-author picture display area, and display the same-author pictures with the same author as the picture to be searched in the same-author picture display area;
  • the same-author image includes at least one of the original image of the same-author image, a low-resolution thumbnail of the same-author image, and a partial image of the same-author image.
  • the processor is further configured to: in the display state, make the first picture located in the similar picture display area or the center of the same-author picture display area on the touch-sensitive display screen have a first size larger than that of the first picture.
  • the switching state in response to the user's first directional contact instruction along the first direction on the touch display screen, by changing the first picture relative to the touch display in the first direction
  • the position of the screen is switched from displaying the first picture to displaying the second picture, wherein the size of the first picture is gradually reduced to the second size, and the size of the second picture is gradually increased to the point where Mentioned first size.
  • the processor is further configured to: in response to a picture selection trigger instruction of the first picture by the user, display a picture display for displaying the first picture and the first operation icon on the touch-sensitive display screen window.
  • the processor is further configured to: in response to a first directional sliding instruction of the user on the picture display window in the second direction, by changing the first picture relative to the second direction The position of the touch display screen is switched from displaying the first picture to displaying the second picture; wherein, the second direction is different from the first direction.
  • the processor is further configured to: superimpose and display a floating window for displaying the text description of the first picture and the second operation icon on the picture display window on the touch display screen.
  • the processor is further configured to: in response to a user's first click instruction on the picture display window, hide or display the floating window.
  • the processor is further configured to: in response to a user's second click instruction on at least a part of the text in the text description, display a search window for the clicked text on the touch display screen.
  • the processor is further configured to determine at least one third picture corresponding to the first picture in response to a second directional sliding instruction of the user on the picture display window in the first direction;
  • the processor is further configured to: determine at least one third picture corresponding to the first picture;
  • the processor is further configured to send the first picture to the first display device of the electronic device in response to the user sending a touch command for the first operation icon, so that the first display The device displays the first picture.
  • an image processing method applied to an electronic device including:
  • the original picture is acquired, and the original picture is displayed on the touch screen;
  • a similar picture similar to the picture to be searched is obtained and displayed on the touch display screen.
  • the changing at least one of the size of the area to be edited and the size of the original picture includes:
  • the area to be edited and the original picture are adjusted by stretching at least one of the area to be edited and the original picture.
  • the original picture is cropped based on the boundary of the region to be edited to obtain the picture to be searched, and the picture to be searched is displayed on the touch display screen.
  • the method further includes, after cropping the original picture: executing a distortion correction instruction to perform distortion correction on the cropped original picture.
  • acquiring and displaying a similar picture similar to the picture to be searched on the touch screen includes: displaying a similar picture display area on the touch screen, and placing the similar pictures in a preset arrangement sequence Displayed on the similar picture display area;
  • the similar picture includes the original picture of the similar picture, the low-resolution thumbnail of the similar picture, and the partial picture of the similar picture in response to the user's touch input on the touch screen.
  • the method further includes: controlling the touch screen to display the similarity between the similar picture and the picture to be searched, the reason for recommending the similar picture, and the similarity in the similar picture display area. At least one of the work information of the picture is displayed on the similar picture display area.
  • the method further includes: controlling the touch-sensitive display screen to display a same-author picture display area, and displaying in the same-author picture display area a picture of the same author that has the same author as the picture to be searched; wherein, the same author
  • the author picture includes at least one of the original picture of the same author picture, a low-resolution thumbnail of the same author picture, and a partial picture of the same author picture.
  • the method further includes: in the display state, making the first picture located in the similar picture display area or the center of the same-author picture display area on the touch-sensitive display screen has a first size larger than that of the first picture.
  • the second size of the adjacent second picture is not limited to:
  • the switching state in response to the user's first directional contact instruction along the first direction on the touch display screen, by changing the first picture relative to the touch display in the first direction
  • the position of the screen is switched from displaying the first picture to displaying the second picture, wherein the size of the first picture is gradually reduced to the second size, and the size of the second picture is gradually increased to the The first size.
  • the method further includes: in response to a user's picture trigger instruction for the first picture, displaying a picture display window for displaying the first picture and the first operation icon on the touch display screen.
  • the method further includes: in response to a user's first directional sliding instruction on the picture display window in the second direction, by changing the first picture relative to the touch screen in the second direction.
  • the position of the display screen is switched from displaying the first picture to displaying the second picture; wherein the second direction is different from the first direction.
  • the method further includes: after the picture triggering instruction on the first picture in response to the user, superimposing and displaying on the picture display window on the touch display screen for displaying the first picture The text description of the picture and the floating window of the second operation icon.
  • the method further includes: in response to a user's first click instruction on the picture display window, hiding or displaying the floating window.
  • the method further includes: in response to a user's second click instruction for at least a part of the text in the text description, displaying a search window for the clicked text on the touch screen.
  • the method further includes: in response to a user's second directional sliding instruction on the picture display window in the first direction, determining at least one at least one third picture corresponding to the first picture; The position of the first picture relative to the touch display screen in the first direction is switched from displaying the first picture to displaying the third picture.
  • the method further includes: determining at least one third picture corresponding to the first picture;
  • the method further includes: in response to a user sending a touch command for the first operation icon, sending the first picture to a first display device associated with the electronic device so that the first display device To display.
  • an electronic device including:
  • the picture acquisition module is used to respond to the picture acquisition touch instruction from the user, acquire the original picture, and display the original picture on the touch screen;
  • the editing module is used to display the area to be edited for the original picture on the touch screen;
  • the to-be-searched picture confirmation module is configured to change at least one of the size of the area to be edited and the size of the original picture in response to the user’s touch input on the touch screen to determine the to-be-searched Search for pictures;
  • the search module is configured to respond to a picture search instruction from the user, obtain a similar picture similar to the picture to be searched, and display it on the touch screen.
  • a computer-readable medium having computer instructions stored thereon, wherein when the instructions are executed by a processor, the method according to the embodiments of the present disclosure is implemented.
  • FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the disclosure
  • FIG. 2 is a schematic diagram of a picture search process performed by an electronic device according to an embodiment of the disclosure
  • FIG. 3 is a schematic diagram of the structure of a region to be edited in an embodiment of the disclosure.
  • FIG. 4 is a schematic diagram of displaying similar pictures according to an embodiment of the disclosure.
  • FIG. 5 is a schematic diagram showing the pictures of the same authors according to the embodiments of the present disclosure.
  • 6a is a schematic diagram of the first dynamic display of similar pictures in an embodiment of the disclosure.
  • 6b is a schematic diagram of a second dynamic display of similar pictures in an embodiment of the present disclosure.
  • FIG. 6c is a schematic diagram of a third dynamic display of similar pictures in an embodiment of the disclosure.
  • FIG. 7a is a schematic diagram of displaying a picture display window according to an embodiment of the disclosure.
  • FIG. 7b is another schematic diagram of the display of the picture display window according to the embodiment of the present disclosure.
  • FIG. 7c is another schematic diagram of displaying a picture display window according to an embodiment of the disclosure.
  • FIG. 7d is another schematic diagram showing the picture display window of the embodiment of the disclosure.
  • FIG. 7e is another schematic diagram of displaying a picture display window according to an embodiment of the disclosure.
  • FIG. 8 is a schematic flowchart of an image processing method applied to an electronic device according to an embodiment of the disclosure.
  • FIG. 9 is a schematic diagram of another structure of an electronic device according to an embodiment of the disclosure.
  • the embodiments of the present disclosure can be implemented on any electronic device, which can be a smart phone, a handheld computer, a personal digital assistant (PDA), a personal computer, a cellular phone, etc., with limited screen space installation.
  • the present disclosure can be implemented as a feature of application software or an application program management mode of an operating system running on the device. Therefore, the present disclosure can be implemented as part of a graphical user interface for controlling software on this device.
  • the electronic device 100 may include a processor 101, a touch screen 102 and a memory 103.
  • the touch screen 102 is connected to the processor 101.
  • the touch display screen 102 includes several icons corresponding to various functions, and the user activates the corresponding functions by touching the icons.
  • the touch-sensitive display screen displays a touch-sensitive gesture area for inputting a gesture-based command, and the processor 101 receives gesture input that acts on the touch-sensitive gesture area on the touch-sensitive display screen 102 and controls the electronic device.
  • the processor 101 may execute instructions stored in the memory 103 to execute the image processing method 200.
  • the image processing method according to the embodiment of the present disclosure may include the following steps.
  • step 201 in response to the user's picture acquisition touch instruction, the original picture is acquired, and the original picture is displayed on the touch display screen.
  • the user's gesture operation on the touch display screen is sensed and a picture is generated based on the gesture operation to obtain a touch instruction.
  • the processor responds to and processes the image acquisition touch command, and acquires the original image uploaded by the user and displays it on the touch display screen. For example, a predetermined gesture trigger operation for the picture acquisition option under the initial page is detected, and a predefined picture acquisition page is displayed to perform the picture acquisition operation.
  • the user's gesture operation can be that the user touches the camera icon on the touch screen to take a photo as the original picture, or the user touches the selection icon on the touch screen to select a photo from the photo album of the electronic device as the original picture.
  • the picture acquisition page is the camera shooting page or the album selection page.
  • the camera function of the current device can be called to take a photo as the original picture
  • the album can also be called to select a photo as the original picture. After the original picture is obtained, the original picture is displayed on the picture obtaining page of the touch screen display.
  • step 202 the processor displays the area to be edited for the original picture on the touch display screen.
  • the area to be edited 311 is the area where the picture to be searched is located. Since the original picture 310 taken by the user through the camera or selected from the album may have a border or other areas unrelated to the picture that the user is interested in, this may adversely affect subsequent searches. Therefore, in this step, the effective area in the original picture can be automatically obtained by calling the contour detection algorithm, and an irregular quadrilateral is generated at the edge of the effective area as the area to be edited 311 of the original picture. It should be noted that the area to be edited may be a regular figure (such as a rectangle) or an irregular figure, such as the irregular quadrilateral shown in FIG. 3.
  • step 203 at least one of the size of the area to be edited and the size of the original picture is changed to determine the picture to be searched for.
  • the original picture displayed on the touch screen can be edited through the area to be edited, so that the size of the original picture can be changed, the content of the picture can be selected and cropped, and the frame of the picture can be deleted Or other content that will adversely affect the next search.
  • the user can also directly modify and select the size of the original picture, so as to select a part of the area that the user is interested in in the original picture for the next search.
  • step 204 in response to a picture search instruction from the user, the processor obtains a similar picture similar to the picture to be searched and displays it on the touch screen.
  • the processor may extract the feature information of the picture to be searched, search for the picture to be searched based on the extracted feature information, obtain similar pictures to the picture to be searched, and finally display the obtained similar pictures on the touch screen of the current device.
  • the display screen it is convenient for users to view and process.
  • the feature information of the image to be searched may be a multi-scale feature
  • the multi-scale feature may be a hash value, a convolutional neural network (Convolutional Neural Network, CNN) feature, etc.
  • the method for obtaining multi-scale features may include: inputting the image to be searched into a convolutional neural network model, and obtaining multi-scale features of the image to be searched through the neural network, and the output result may include information such as the type and content of the image.
  • the type of the picture can be animal painting, plant painting, landscape painting, figure painting, etc.
  • the content of the picture can be animals and their types, plants and their types, people, other objects, and so on.
  • the pictures in the picture library can be used to train the convolutional neural network model used in this embodiment, so that the accuracy of the model can be improved.
  • a picture search instruction is executed to search the image to be searched.
  • the electronic device of the embodiment of the present disclosure enables the processor to directly obtain the original picture that the user is interested in through the user's gesture input on the touch display screen, and then the processor can process the original picture to eliminate the redundant frame and background on the original picture Wait for unfavorable factors to obtain the image to be searched.
  • the processor can directly perform a picture search based on the picture to be searched according to the picture search instruction of the user, thereby searching for a picture similar to the picture that the user is interested in and displaying it, so that the user may obtain a picture related to the picture that may be of interest to the user. Or multiple pictures. This provides a method for finding pictures of interest, and the method is simple to operate.
  • an exemplary method for the electronic device to perform step 203 may include the following steps.
  • the size of at least one of the area to be edited and the original picture is adjusted by stretching at least one of the area to be edited and the original picture.
  • adjustable nodes 312 for adjustment are set at the edges and vertices of the area to be edited 311, and the user can adjust any of the adjustable nodes according to his needs.
  • the adjustment point 312 is dragged to stretch the edge position of the area to be edited to adjust the range of the area to be edited 311, so that the user obtains the final required area range, that is, the range to be cropped.
  • the user can also directly modify and select the original picture, so as to select a part of the area that the user is interested in in the original picture and perform the next operation.
  • the original picture is cropped based on the boundary of the area to be edited to obtain the picture to be searched, and the picture to be searched is displayed on the touch screen.
  • the predetermined trigger operation for the picture cropping option under the current page is detected and the picture cropping instruction is executed, and the cropped original picture is presented.
  • the cropped picture may only include the area where the picture to be searched is located, thereby avoiding the redundant part from affecting subsequent picture search results.
  • the processor executes a distortion correction instruction to perform distortion correction on the cropped original picture.
  • the distortion correction algorithm may be a geometric correction algorithm based on polynomial coordinate transformation, a first-order polynomial slice correction algorithm, and the like.
  • the processor of the electronic device searches for similar pictures of the pictures to be searched and displays them on the touch-sensitive display screen, which may include the following example steps.
  • the processor displays the similar picture display area on the touch screen, and displays the similar pictures on the similar picture display area in a preset arrangement sequence.
  • the picture to be matched is obtained from the network or the picture library, and then the characteristic information of the picture to be searched for is compared with the characteristic information of the picture to be matched. Then, the relationship between the similarity between the picture to be matched and the picture to be searched and the preset first threshold is determined. If the similarity is greater than the first threshold, it is determined that the picture to be matched is a similar picture.
  • the similar picture may include one of the original picture of the similar picture, the low-resolution thumbnail of the similar picture, and the partial picture of the similar picture.
  • the processor displays the picture to be searched 413 on the upper part of the display area 411 of the touch display screen, and displays the searched out similar picture 414 in the similar picture display area at the bottom of the touch display screen. .
  • a plurality of complete similar pictures 414 are displayed in the similar picture display area, and the display size of each similar picture 414 is the same. Whether it is the original image, low-resolution thumbnail or partial image of the similar image displayed in the similar image display area, it is displayed in a smaller display size.
  • the original image that can be a similar image displayed on the similar image display area is the complete original image with high definition and high resolution stored in the image library, so that the user can know the entire situation of the image when previewing.
  • the thumbnails and partial pictures are smaller than the original pictures, which can greatly improve the response speed of the page and provide users with better Preview experience. Users need to view the complete picture, then click on the corresponding picture to view detailed information.
  • the similar pictures searched by the processor may also include the same pictures that are the same as the pictures to be searched.
  • the same picture may be a picture with the greatest similarity between the similar pictures and the picture to be searched (including the same picture as the picture to be searched).
  • the specific method for determining the similarity between the picture to be matched and the picture to be searched may be: comparing the feature information of the picture to be searched with the feature information of the picture to be matched to obtain the picture to be searched and the picture to be matched.
  • the number of feature points with the same feature information and the total number of feature points, and the ratio of the number of feature points to the total number of feature points is used as the similarity.
  • other algorithms for calculating the similarity of the two pictures can also be selected.
  • the picture library can pre-store characteristic information such as picture type, author information, picture detailed information and so on. After obtaining the feature information of the picture to be searched, the feature information of the picture to be searched can be compared with the feature information of each picture stored in the picture library, so as to search for similar pictures corresponding to the picture to be searched.
  • the processor may obtain the number of similar pictures and the URL of the similar pictures in order to display it to the user.
  • the similar pictures can be displayed in the similar picture display area in the order of the similarity degree from high to low. If similar pictures contain the same pictures, they are arranged in order from high to low similarity, and the same picture with the greatest similarity will be ranked first.
  • a flag can be used to mark whether there are the same pictures. In one embodiment, 1 means that there are identical pictures, and 0 means that there are no identical pictures.
  • the judgment flag bit is 1, it indicates that the similar picture includes the same picture, and the same picture is also displayed when displayed.
  • the display order of the similar pictures can also be sorted according to the rules set by the user.
  • users can choose according to conditions such as picture type, genre, author, and content.
  • the type can be oil painting, watercolor, Chinese painting, sketching, etc.
  • the genre includes realism, abstraction, etc.
  • the content includes figure painting, landscape painting, etc.
  • the user can select "Painting Priority" in the "Type” according to his own preferences, and the processor will display the oil paintings in the acquired similar pictures in front for the user to view first, and display other types of similar pictures Be in the back, so that users can quickly select their favorite pictures.
  • it can also analyze the characteristics of the pictures that the user favorites, likes, frequently browsed, and frequently searched to confirm the picture style that the user likes, and sort similar pictures according to the preferences of different users, so as to provide users with Better search experience.
  • the processor searches for similar pictures and displays them on the touch screen
  • the processor controls the touch screen to display the similarity between the similar pictures and the pictures to be searched in the similar picture display area, similar pictures
  • the similarity may be a percentage, which is used to show the user the degree of similarity between the similar picture and the picture to be searched.
  • the similar picture display area can display the specific reason for recommendation, or only the link of the reason for recommendation, and the user can display the specific reason for recommendation after clicking on the "recommendation reason".
  • the work information may include information in multiple dimensions, such as the name of the work, the author of the work, creation time, collection address, work style, and work type.
  • the processor may also control the touch screen display to display the same-author picture display area, and display the same-author pictures with the same author as the picture to be searched in the same-author picture display area.
  • the same-author image includes the original image of the same-author image, a low-resolution thumbnail of the same-author image, and one of the partial images of the same-author image. After the user finds the picture he is interested in, he may also be interested in other pictures and paintings of the author of the picture.
  • the author of the picture to be searched can be obtained according to the same picture, and the search is based on the author information
  • Other pictures of the same author stored in the picture library are used as pictures of the same author, thereby providing users with more pictures that may be of interest to users for users to choose from.
  • the processor displays the image to be searched 513 on the upper part of the display area 511 of the touch screen, and displays the searched similar picture 514 in the middle of the touch screen, and displays on the bottom of the touch screen.
  • the same author's picture of the picture 515 to be searched Whether it is the original image, low-resolution thumbnail or partial image of the same-author image displayed in the same-author image display area, it is displayed in a smaller display size.
  • the original image displayed on the same-author image display area can be the original image of the same-author image, that is, the complete original image with high definition and high resolution stored in the image library, so that the user can know the entire situation of the image when previewing.
  • thumbnails and partial pictures are smaller than the original picture, which can greatly improve the response speed of the page and provide users with more Good preview experience. Users need to view the complete picture, then click on the corresponding picture to view detailed information.
  • the processor may also in the display state, the first size of the first picture located in the center of the similar picture display area or the same author picture display area is greater than the second size of the second picture adjacent to the first picture.
  • the first size of the first picture is not the actual size of the first picture, but the display size of the first picture in the similar picture display area or the same author picture display area.
  • the second size of the second picture is not the actual size of the second picture, but the display size of the second picture in the similar picture display area or the same author picture display area.
  • the picture to be searched 613 is displayed in the upper part of the display area 611 of the touch screen.
  • the display sizes of multiple pictures displayed in the similar picture display area or the same author picture display area are different, and are located in the center.
  • the display size of the first picture 641 is larger than the display size of the second picture 642 at the edge, and only part of the picture is displayed when the second picture 642 is at the edge. This setting can better show the user the picture at the middle, so that the user Without clicking on the picture, you can know the details of the picture as much as possible, which is convenient for users to browse.
  • the first picture In the switching state, in response to the user's first directional contact instruction along the first direction on the touch screen, the first picture is changed from the first direction relative to the touch screen.
  • the picture is switched to the second picture, and during the switching process, the size of the first picture is gradually reduced to the second size, and the size of the second picture is gradually increased to the first size.
  • the first direction may be a horizontal direction.
  • the user performs a sliding operation on the first picture from right to left to gradually switch the display of the first picture 641 to the second picture 642.
  • the second picture 642 is located in the middle of the similar picture display area or the same author picture display area, the first picture 641 moves to the edge and only part of the picture is displayed, and the picture on the right side of the second picture 642 also displays part of the picture. The user can view the second picture 642 conveniently.
  • the first direction may be a horizontal direction.
  • the display size of pictures other than the first picture 641 and the second picture 642 may be equal to the second size, or may be adjusted according to actual needs. For example, when multiple pictures are displayed in the similar picture display area or the same author picture display area, the picture located in the middle has the largest display size, and the display sizes of the pictures on both sides decrease in order.
  • the processor may also generate a picture display window for displaying the first picture and the first operation icon on the touch display screen in response to the user's picture selection trigger instruction for the first picture.
  • the size of the picture display window is not smaller than the size of the display area 711 of the touch display screen, so the picture display window is not separately shown in the figure.
  • FIG. 6a when the user clicks the first picture 641, a picture display window is generated on the touch display screen.
  • the display form of the first picture 641 in FIG. 6a is a directly reduced picture of the original picture
  • the picture display window only enlarges the first picture 641 for the user to view.
  • the display form of the first picture 641 in FIG. 6a is a low-resolution thumbnail or partial image of the first picture 641
  • the picture display window will display the high-resolution and complete original picture of the first picture 641 and enlarge it to the user.
  • the user can further move or zoom in the first picture 641 through gesture touch, so that the user can view the details of the first picture 641.
  • the first operation icon 7411 is located at the bottom of the display area 711 of the touch display screen, and may include a favorite icon, a push icon, and the like. The user clicks the favorite icon to favorite the first picture 641 displayed in the current picture display window, and the user clicks the push icon to push the first picture 641 displayed in the current picture display window to other devices such as other display devices, electronic picture frames, and picture screens for display.
  • the processor when the first picture is located in the similar picture display area or the center of the same-author picture display area, the processor can respond to the picture selection trigger instruction for the first picture, but cannot respond to other pictures than the first picture.
  • the processor can not only respond to the picture selection trigger instruction for the first picture, but also respond to the picture selection trigger instruction for pictures other than the first picture.
  • the processor may also respond to the user's first directional sliding instruction on the picture display window in the second direction by changing the position of the first picture in the second direction relative to the touch screen display. Switch from the first picture to the second picture.
  • the second direction is different from the first direction. For example, when the first direction is a horizontal direction, the second direction is a vertical direction.
  • the first directional sliding instruction is a downward-to-upward sliding instruction.
  • the processor controls the first picture 741 to gradually move upward and start from the upper part of the first picture 741. Gradually hide.
  • control the second picture 742 to appear from the bottom of the display area 711 of the touch screen until the first picture 741 is completely hidden and the second picture 742 is completely displayed on the picture display window.
  • FIGS. 7a to 7b in this embodiment, when sliding from bottom to top, the picture displayed in the picture display window is switched from the first picture 741 in the middle to the second picture on the right side of the first picture 741 in FIG. 6a. Picture 742.
  • the picture displayed in the picture display window is switched from the first picture 741 in the middle to the picture on the left side of the first picture 741.
  • the displayed picture is switched from the first picture 741 in the middle to the second picture 742 on the right side of the first picture 741.
  • the user can directly view each picture in the similar picture display area or the same author’s picture display area on the picture display window, without having to return to the page shown in Figure 6a after viewing the enlarged view of a picture. Open another picture to zoom in and view, which provides users with a better way to view pictures.
  • the processor may also display a floating window for displaying the text description of the first picture and the second operation icon on the picture display window on the touch display screen.
  • the text description 7412 of the first picture 741 is located at the lower left corner of the display area 711 of the touch screen and located at the upper part of the first operation icon 7411.
  • the text description 7412 may include information in multiple dimensions, such as the name of the work, the author of the work, the creation time, the collection address, the style of the work, the type of the work, and the uploading user.
  • the processor in response to the user's second click instruction on at least a part of the text in the text description, the processor generates a search window for the clicked text on the touch display screen.
  • the processor when the user clicks on the author of a work in the text description 7412, the processor will generate a search window for the author of the work on the touch screen, and the user can search for the author of the work through the search window.
  • Other works information such as collection address, work style, work type, uploading user, etc. can also be searched, so that after a user searches for a picture of interest, he can further search based on the characteristics of the picture of interest to help users find Other pictures or information that may be of interest.
  • the second operation icon 7413 is located at the right edge of the display area 711 of the touch display screen, and may include icons such as adding follow, like, comment, and share.
  • the processor hides or displays the floating window. That is, through the first click instruction, the floating window can be switched between hidden and displayed states.
  • the processor when the processor generates the picture display window on the touch display screen, the floating window used to display the text description of the first picture and the second operation icon is hidden.
  • the processor displays the floating window after receiving the first click instruction for the first time, and hides the floating window after receiving the first click instruction again.
  • the processor when the processor generates a picture display window on the touch display screen, it directly displays a floating window for displaying the text description of the first picture and the second operation icon.
  • the processor hides the floating window again after receiving the first click instruction for the first time, and displays the floating window after receiving the first click instruction again.
  • the enlarged first picture 741 may cover the entire display area 711.
  • the pixels of the enlarged first picture 741 displayed in the picture display window are different from the display area 711 of the touch display screen (that is, the aspect ratio of the first picture is different from the aspect ratio of the display area), as shown in FIG. 7d
  • the area in the picture display window that is not covered by the first picture 741 can be set as a monochromatic, textured or semi-transparent background as needed.
  • the background can be set to black to better highlight the picture in the picture display window.
  • the processor further determines at least one third picture corresponding to the first picture in response to the user's second directional sliding instruction on the picture display window in the first direction, and the processor changes the position between the first picture and the first picture.
  • the position relative to the touch display screen in one direction realizes the switching from the first picture to the third picture.
  • At least one third picture corresponding to the first picture is determined, and the processor changes the position of the first picture relative to the touch display screen in the first direction according to a preset time interval to realize the transition from the first picture to the third picture Switch.
  • the first picture 741 may also include a third picture 743 that is in the same group as the picture but is not displayed in the similar picture display area or the same author picture display area, as shown in Figure 7e.
  • the horizontal sliding operation on the touch display screen realizes the switching from the first picture 741 to the third picture 743, or automatically realizes the switching from the first picture 741 to the third picture 743 according to a preset time interval.
  • the processor is also in response to the user's sending a touch command to the push icon in the first operation icon, and the processor sends the first picture to the first display device associated with the electronic device and performs the operation on the first display device. display.
  • the first operation icon 7411 includes a push icon. When the user clicks the push icon, the currently displayed picture is pushed to the first display device associated with the electronic device of the machine for display.
  • At least one picture can be selected and sent to a device that has established a connection with the current device.
  • the current device is a mobile terminal device such as a mobile phone
  • the picture selected by the user can be sent to the screen, large screen, other mobile phones and other terminal devices for display.
  • the picture selected by the user is sent to the cloud server, so that the cloud server redistributes the picture to other display devices for display.
  • an image processing method applied to an electronic device is provided, and the method is implemented by one or more processors. As shown in FIG. 8, the image processing method may include the following steps.
  • step 801 in response to the user's picture acquisition touch instruction, the original picture is acquired, and the original picture is displayed on the touch display screen.
  • step 802 the area to be edited of the original picture is provided on the touch display screen.
  • step 803 by changing at least one of the size of the area to be edited and the size of the original picture, respond to the touch on the touch screen and select the picture to be searched finally to be searched.
  • step 804 in response to the user's picture search instruction, similar pictures of the picture to be searched are searched and displayed on the touch screen.
  • step 803 the following steps may be used to determine the picture to be searched.
  • the touch display screen is adjusted by stretching at least one of the area to be edited and the original picture to adjust the size of at least one of the area to be edited and the original picture.
  • the touch on the screen responds and obtains the range of the original image to be cropped.
  • the original picture is cropped based on the boundary of the area to be edited to obtain the picture to be searched, and the picture to be searched is displayed on the touch screen.
  • a distortion correction instruction can also be executed to perform distortion correction on the cropped original picture to obtain the final picture to be searched.
  • searching for similar pictures of the picture to be searched for and displaying on the touch screen in step 804 includes: displaying a similar picture display area on the touch screen, and displaying the similar pictures on the similar picture display area in a preset arrangement sequence ;
  • similar pictures include one of the original pictures of the similar pictures, the low-resolution thumbnails of the similar pictures, and the partial pictures of the similar pictures.
  • the touch screen can also control the touch screen to display the same author picture display area, and display the same author pictures with the same author as the picture to be searched in the same author picture display area.
  • the same-author image includes the original image of the same-author image, a low-resolution thumbnail of the same-author image, and one of the partial images of the same-author image.
  • the first size of the first picture located at the center of the similar picture display area or the same author picture display area may be larger than the second size of the second picture adjacent to the first picture.
  • the switching state in response to the user's first directional contact instruction along the first direction on the touch display screen, the first picture is displayed from the first direction by changing the position of the first picture relative to the touch display screen.
  • a picture is switched to display the second picture, and during the switching process, the size of the first picture is gradually reduced to the second size, and the size of the second picture is gradually increased to the first size.
  • a picture display window for displaying the first picture and the first operation icon may be generated on the touch-sensitive display screen.
  • the position of the first picture relative to the touch display screen in the second direction may be changed to realize the change from the first picture to the second picture.
  • the second direction is different from the first direction.
  • the method further includes: generating a floating window on the picture display window for displaying the text description of the first picture and the second operation icon on the picture display window.
  • the floating window may be hidden or displayed.
  • a search window for the clicked text may be generated on the touch control display screen.
  • the position of the display screen is used to switch from the first picture to the third picture; or, determine at least one third picture corresponding to the first picture, and automatically change the first picture relative to the first direction according to the preset time interval Switch from the first picture to the third picture at the position of the touch screen.
  • the first picture to the first display device associated with the electronic device in response to the user's sending a touch instruction to the push icon in the first operation icon and display it on the first display device.
  • the method of the foregoing embodiment is used to operate a computing device having the corresponding electronic device in the foregoing embodiment, and has the beneficial effects of the corresponding electronic device embodiment, which will not be repeated here.
  • the electronic device 900 may include a picture acquisition module 901 for responding to a user's picture acquisition touch command, acquiring an original picture, and displaying the original picture on the touch display screen.
  • the editing module 902 is used for displaying the to-be-edited area of the original picture on the touch display screen.
  • the determining module 903 is configured to respond to a touch on the touch display screen by changing at least one of the size of the area to be edited and the size of the original picture to determine the picture to be searched for.
  • the search module 904 is configured to respond to the user's picture search instruction, so as to search for similar pictures similar to the pictures to be searched and display them on the touch screen.
  • each module in the embodiment of the present application can be implemented by hardware such as a computer, a CPU, an FPGA, and a GPU.
  • the electronic device of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
  • DRAM dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例提供了一种电子设备以及应用于所述电子设备的图像处理。该电子设备包括处理器;以及触控显示屏,其连接处理器。处理器配置为接收触控显示屏上的手势输入并控制电子设备,其中:响应于用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示原始图片;在触控显示屏上显示原始图片的待编辑区域;通过改变待编辑区域的尺寸和原始图片的尺寸中的至少一个来确定要搜索的待搜索图片;响应于用户的图片搜索指令,获取与待搜索图片相似的相似图片并显示在触控显示屏上。

Description

电子设备和图像处理方法
本申请要求于2019年9月30日提交的、申请号为201910938661.1的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及图像处理技术领域,特别是指一种电子设备、一种应用于电子设备的图像处理方法。
背景技术
随着多媒体技术的快速发展以及互联网中图像的数据信息日渐庞大,用户可以在互联网上获取大量感兴趣的图像信息。
当用户发现自己感兴趣的图片,并想在终端设备或者互联网上大量的图片中找到跟该图片具有相同或者相似特征的图片时非常不便。
发明内容
根据本公开实施例的一个方面,提供了一种电子设备,包括:
存储器,其上存储有计算机可读指令;
处理器;以及
触控显示屏,
其中,所述处理器被配置为执行所述指令,以便:
响应于来自用户的图片获取触控指令,获取原始图片,并在所述触控显示屏上显示所述原始图片;
在所述触控显示屏上显示针对所述原始图片的待编辑区域;
响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个以确定要搜索的待搜索图片;以及
响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
例如,所述处理器还配置为:
响应于用户对所述待编辑区域和所述原始图片中的至少一个的拉伸指令,通过拉伸所述待编辑区域和所述原始图片中的至少一个以调整所述待编辑区域和所述原始图片中的至少一个的尺寸;
响应于用户的图片裁剪指令,基于所述待编辑区域的边界对所述原始图片进行裁剪以获取所述待搜索图片,并在所述触控显示屏上显示所述待搜索图片。
例如,所述处理器还配置为执行畸变校正指令对裁剪后的所述原始图片进行畸变校正。
例如,所述处理器还配置为:在所述触控显示屏上显示相似图片显示区域;
按照预设排列顺序将所述相似图片显示在所述相似图片显示区域上;
其中,所述相似图片包括所述相似图片的原图、所述相似图片的低分辨率缩略图、所述相似图片的局部图中的至少一个。
例如,所述处理器还配置为:控制所述触控显示屏在所述相似图片显示区域显示所述相似图片与所述待搜索图片之间的相似度、所述相似图片的推荐理由、所述相似图片的作品信息中的至少之一。
例如,所述处理器还配置为:控制所述触控显示屏显示同作者图片显示区域,在所述同作者图片显示区域显示与所述待搜索图片具有相同作者的同作者图片;
其中,所述同作者图片包括所述同作者图片的原图、所述同作者图片的低分辨率缩略图、所述同作者图片的局部图中的至少一个。
例如,所述处理器还配置为:在显示状态下,使得触控显示屏上位于所述相似图片显示区域或所述同作者图片显示区域中心的第一图片的第一尺寸大于与所述第一图片相邻的第二图片的第二尺寸;
在切换状态下,响应于用户对所述触控显示屏上沿着第一方向的第一定向接触指令,通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置从显示所述第一图片到切换到显示所述第二图片,其中所述第一图片的尺寸逐渐减小至所述第二尺寸,所述第二图片的尺寸逐渐增大至所述第一尺寸。
例如,所述处理器还配置为:响应于用户对所述第一图片的图片选择触发指令,在所述触控显示屏上显示用于展示所述第一图片和第一操作图标的图片展示窗口。
例如,所述处理器还配置为:响应于用户在第二方向上对所述图片展示窗口的第一定向滑动指令,通过改变所述第一图片在所述第二方向上相对于所述触控显示屏的位 置从显示所述第一图片切换到显示第二图片;其中,所述第二方向与所述第一方向不同。
例如,所述处理器还配置为:在所述触控显示屏上的所述图片展示窗口上叠加显示用于展示所述第一图片的文字描述和第二操作图标的悬浮窗口。
例如,所述处理器还配置为:响应于用户对所述图片展示窗口的第一点击指令,将所述悬浮窗口隐藏或显示。
例如,所述处理器还配置为:响应于用户对所述文字描述中的至少一部分文字的第二点击指令,在所述触控显示屏上显示针对被点击文字的搜索窗口。
例如,所述处理器还配置为:响应于用户在第一方向上对所述图片展示窗口的第二定向滑动指令,确定与所述第一图片对应的至少一个第三图片;
通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
例如,所述处理器还配置为:确定与所述第一图片对应的至少一个第三图片;
按照预设的时间间隔,通过改变所述第一图片在与所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
例如,所述处理器还配置为:响应于用户针对所述第一操作图标的发送触控指令,将所述第一图片发送至与所述电子设备的第一显示装置以便所述第一显示装置进行显示所述第一图片。
根据本公开实施例的另一方面,提供了一种应用于电子设备的图像处理方法,包括:
响应于来自用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示所述原始图片;
在所述触控显示屏上显示针对原始图片的待编辑区域;
响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个以确定要搜索的待搜索图片;以及
响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
例如,所述改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个包括:
响应于用户对所述待编辑区域和所述原始图片中的至少一个的拉伸指令,通过拉伸所述待编辑区域和所述原始图片中的至少一个以调整所述待编辑区域和所述原始图片 中的至少一个的尺寸;
响应于用户的图片裁剪指令,基于所述待编辑区域的边界对所述原始图片进行裁剪以获取所述待搜索图片,并在所述触控显示屏上显示所述待搜索图片。
例如,所述方法还包括,在对所述原始图片进行裁剪之后:执行畸变校正指令对裁剪后的所述原始图片进行畸变校正。
例如,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上包括:在所述触控显示屏上显示相似图片显示区域,并按照预设排列顺序将所述相似图片显示在所述相似图片显示区域上;
其中,所述相似图片包括所述相似图片的原图、所述相似图片的低分辨率缩略图、所述相似图片的局部图响应于用户针对所述触控显示屏上的触控输入,。
例如,所述方法还包括:控制所述触控显示屏在所述相似图片显示区域显示所述相似图片与所述待搜索图片之间的相似度、所述相似图片的推荐理由、所述相似图片的作品信息中的至少之一显示在所述相似图片显示区域上。
例如,所述方法还包括:控制所述触控显示屏显示同作者图片显示区域,在所述同作者图片显示区域显示与所述待搜索图片具有相同作者的同作者图片;其中,所述同作者图片包括所述同作者图片的原图、所述同作者图片的低分辨率缩略图、所述同作者图片的局部图中的至少一个。
例如,所述方法还包括:在显示状态下,使得触控显示屏上位于所述相似图片显示区域或所述同作者图片显示区域中心的第一图片的第一尺寸大于与所述第一图片相邻的第二图片的第二尺寸;
在切换状态下,响应于用户对所述触控显示屏上沿着第一方向的第一定向接触指令,通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置从显示所述第一图片切换到显示所述第二图片,其中所述第一图片的尺寸逐渐减小至所述第二尺寸,所述第二图片的尺寸逐渐增大至所述第一尺寸。
例如,所述方法还包括:响应于用户对所述第一图片的图片触发指令,在所述触控显示屏上显示用于展示所述第一图片和第一操作图标的图片展示窗口。
例如,所述方法还包括:响应于用户在第二方向上对所述图片展示窗口的第一定向滑动指令,通过改变所述第一图片在所述第二方向上相对于所述触控显示屏的位置从显示所述第一图片切换到显示第二图片;其中,所述第二方向与所述第一方向不同。
例如,所述方法还包括:在所述响应于用户对所述第一图片的图片触发指令之后,在所述触控显示屏上的所述图片展示窗口上叠加显示用于展示所述第一图片的文字描述和第二操作图标的悬浮窗口。
例如,所述方法还包括:响应于用户对所述图片展示窗口的第一点击指令,将所述悬浮窗口隐藏或显示。
例如,所述方法还包括:响应于用户对所述文字描述中的至少一部分文字的第二点击指令,在所述触控显示屏上显示针对被点击文字的搜索窗口。
例如,所述方法还包括:响应于用户在第一方向上对所述图片展示窗口的第二定向滑动指令,确定至少一个与所述第一图片对应的至少一个第三图片;以及通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
例如,所述方法还包括:确定与所述第一图片对应的至少一个第三图片;
按照预设的时间间隔,通过改变所述第一图片在与所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
例如,所述方法还包括:响应于用户针对所述第一操作图标的发送触控指令,将所述第一图片发送至与所述电子设备关联的第一显示装置以便所述第一显示装置进行显示。
根据本公开实施例的另一方面,提供了一种电子设备,包括:
图片获取模块,用于响应于来自用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示所述原始图片;
编辑模块,用于在所述触控显示屏上显示针对原始图片的待编辑区域;
待搜索图片确认模块,用于响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个,以确定要搜索的待搜索图片;以及
搜索模块,用于响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
根据本公开实施例的另一方面,提供了一种计算机可读介质,其上存储有计算机指令,其中,当处理器执行所述指令时,实现根据本公开实施例所述的方法。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例描述所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例的电子设备的结构框图;
图2为本公开实施例的电子设备执行的图片搜索流程示意图;
图3为本公开实施例待编辑区域结构示意图;
图4为本公开实施例相似图片显示示意图;
图5为本公开实施例同作者图片显示示意图;
图6a为本公开实施例相似图片第一动态显示示意图;
图6b为本公开实施例相似图片第二动态显示示意图;
图6c为本公开实施例相似图片第三动态显示示意图;
图7a为本公开实施例图片展示窗口的显示示意图;
图7b为本公开实施例图片展示窗口的另一显示示意图;
图7c为本公开实施例图片展示窗口的另一显示示意图;
图7d为本公开实施例图片展示窗口的另一显示示意图;
图7e为本公开实施例图片展示窗口的另一显示示意图;
图8为本公开实施例应用于电子设备的图像处理方法的流程示意图;以及
图9为本公开实施例电子设备另一结构示意图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本公开进一步详细说明。
需要说明的是,本公开实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本公开实施例的限定。
在各种实施例中,可在任何电子装置上实施本公开实施例,所述电子装置可以为智 能手机、手持式计算机、个人数字助理(PDA)、个人计算机、蜂窝式电话等具有有限屏幕空间的装置。举例来说,本公开可以实施为在此装置上运行的应用软件或操作系统的应用程序管理模式的特征。因此,本公开可实施为用于控制此装置上的软件的图形用户界面的一部分。
本公开实施例的一个方面提供了一种电子设备。如图1所示,该电子设备100可以包括处理器101、触控显示屏102以及存储器103。触控显示屏102与处理器101连接。在实施例中,触控显示屏102包含若干对应各种功能的图标,用户通过触摸图标来激活相应功能。在实施例中,触控显示屏显示用于输入基于手势的命令的触敏手势区域,处理器101接收触控显示屏102上作用于触敏手势区域的手势输入并控制电子设备。
如图2所示,根据本公开实施例,该处理器101可以执行存储器103中存储的指令,以便执行图像处理方法200。根据本公开实施例的图像处理方法可以包括以下步骤。
在步骤201,响应于用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示原始图片。
在本实施例中,感应到用户在触控显示屏上的手势操作并基于该手势操作生成图片获取触控指令。处理器对该图片获取触控指令进行响应并进行处理,获取用户上传的原始图片并显示在触控显示屏上。例如,检测到初始页面下针对图片获取选项的预定手势触发操作,显示预定义的图片获取页面以执行对图片的获取操作。用户的手势操作可以为用户触摸触控显示屏上的拍照图标以便拍摄一张照片作为原始图片,或者用户触摸触控显示屏上的选择图标从电子装置的相册中选择一张照片作为原始图片,图片获取页面即为相机拍摄页面或者相册选择页面。根据本实施例,可以调用当前设备的相机功能拍摄一张照片作为原始图片,也可以调用相册选择一张照片作为该原始图片。获取到原始图片后,将该原始图片显示在触控显示屏的图片获取页面上。
在步骤202,处理器在触控显示屏上显示针对原始图片的待编辑区域。
在本实施例中,如图3所示,待编辑区域311为待搜索图片所在的区域。由于用户通过相机拍摄或者从相册选择的原始图片310可能存在边框或者与用户感兴趣的图片无关的其他区域,这会对后续搜索产生不利影响。因此本步骤可以通过调用轮廓检测算法自动获取原始图片中的有效区域,并在有效区域的边缘生成一不规则四边形作为原始图片的待编辑区域311。需要说明的是,待编辑区域可以是规则图形(例如矩形),也可以是不规则图形,例如图3所示的不规则四边形。
在步骤203,改变待编辑区域的尺寸和原始图片的尺寸中的至少一个以确定要搜索的待搜索图片。
在本实施例中,待编辑区域生成后,通过待编辑区域可以对显示在触控显示屏上的原始图片进行编辑,从而可以改变原始图片的尺寸、对图片内容进行选择与裁剪,删除图片边框或者会对下一步搜索产生不利影响的其他内容。例如,用户也可以直接对原始图片的尺寸进行修改和选择,从而选择原始图片中用户感兴趣的部分区域以进行下一步的搜索。
在步骤204,响应于来自用户的图片搜索指令,处理器获取与待搜索图片相似的相似图片并显示在触控显示屏上。
在本实施例中,处理器可以提取待搜索图片的特征信息,根据提取到的特征信息对待搜索图片进行搜索,获取待搜索图片相似图片,最后将获取到的相似图片显示在当前设备的触控显示屏上,以便于用户的查看和处理。
例如,待搜索图像的特征信息可以为多尺度特征,多尺度特征可以为哈希值、卷积神经网络(Convolutional Neural Network,CNN)特征等。其中,获取多尺度特征的获取方式可以包括:将待搜索图像输入到卷积神经网络模型中,通过神经网络获取该待搜索图像的多尺度特征,输出结果可以包括图片的类型、内容等信息。其中,图片的类型可以为动物画、植物画、风景画、人物画等,图片的内容可以为动物及其种类、植物及其种类、人物、其他物体等。可以使用图片库中图片训练本实施例中使用的卷积神经网络模型,从而可以提高该模型的准确度。
获取到待搜索图像的特征信息之后,执行图片搜索指令对待搜索图像进行搜索。在进行图片搜索时,可以在服务器的图片库中进行搜索匹配,也可以在网络侧进行搜索匹配。本公开实施例电子设备,通过用户在触控显示屏上的手势输入使得处理器可以直接获得用户感兴趣的原始图片,之后处理器可以对原始图片进行处理以消除原始图片上多余的边框、背景等不利因素,获得待搜索图片。之后处理器可以根据用户的图片搜索指令直接基于该待搜索图片进行图片搜索,从而搜索到与用户感兴趣的图片相似的图片并显示,使用户获得自己可能感兴趣的与该图片相关的一张或多张图片。由此提供了一种寻找感兴趣图片的方法,且该方法操作简单。
在例如实施例中,电子设备在执行步骤203的一种示例方法可以包括以下步骤。
响应于用户对待编辑区域和原始图片中的至少一个的拉伸指令,通过拉伸待编辑区 域和原始图片中的至少一个以调整待编辑区域和原始图片中的至少一个的尺寸。
在本实施例中,如图3所示,待编辑区域311生成之后,在待编辑区域311的边线、顶点处均设置有用于调整的可调节点312,用户可以根据自己的需要对任一可调节点312进行拖动以拉伸待编辑区域的边线位置来调整待编辑区域311的范围,从而使得用户获取最终需要的区域范围,即待裁剪范围。例如,用户也可以直接对原始图片进行修改和选择,从而选择原始图片中用户感兴趣的部分区域并进行下一步的操作。
响应于用户的图片裁剪指令,基于待编辑区域的边界对原始图片进行裁剪以获取待搜索图片,并在触控显示屏上显示待搜索图片。
本实施例中,检测到当前页面下针对图片裁剪选项的预定触发操作并执行图片裁剪指令,将裁剪后的原始图片进行呈现。裁剪后的图片可以只包括待搜索图片所在的区域,由此避免多余部分影响后续的图片搜索结果。
例如,对原始图片进行裁剪之后,处理器执行畸变校正指令对裁剪后的原始图片进行畸变校正。
由于拍摄角度问题,拍摄出的照片可能出现畸变。为了便于后续图片的搜索,通过畸变校正算法对裁剪后获得的四边形区域的图片进行校正,最终获得用于搜索的待搜索图片。本实施例中,畸变校正算法可以为基于多项式坐标变换的几何校正算法、一次多项式的分片校正算法等。
在另一实施例中,电子设备在执行步骤204中处理器搜索待搜索图片的相似图片并显示在触控显示屏上可以包括以下示例步骤。
处理器在触控显示屏上显示相似图片显示区域,并按照预设排列顺序将相似图片显示在相似图片显示区域上。在本实施例中,从网络端或者图片库中获取待匹配图片,之后将待搜索图片的特征信息与待匹配图片的特征信息进行比对。之后确定待匹配图片与待搜索图片之间相似度与预设的第一阈值的关系。相似度若大于第一阈值,则确定该待匹配图片为相似图片。例如,相似图片可以包括相似图片的原图、相似图片的低分辨率缩略图、相似图片的局部图之一。
如图4所示,本实施例中处理器在触控显示屏的显示区域411的上部显示待搜索图片413,并将搜索出的相似图片414显示在触控显示屏底部的相似图片显示区域内。其中,相似图片显示区域中显示了多张完整的相似图片414,且每张相似图片414的显示尺寸相同。相似图片显示区域内显示的无论是相似图片的原图、低分辨率缩略图还是局 部图,均以较小的显示尺寸显示。显示在相似图片显示区域上的可以为相似图片的原图,即为图片库中存储的高清高分辨率的完整原图,让用户在预览时即可得知该图片的全部情况。也可以只显示相似图片的低分辨率缩略图、相似图片的局部图等,缩略图、局部图相比于原图的图片更小,这样可以大大提高页面的反应速度,为用户提供更好的预览体验。用户需要查看完整的图片,即可点开对应的图片查看详细信息。
例如,处理器搜索出的相似图片中还可能包括与待搜索图片相同的相同图片。在一些情况下,用户在画展或者其他地方看到画作或者图片后,想获得与该画作或者图片完全相同的画作或者图片,因此有必要将相同的图片也搜索出来展示给用户。相同图片可以为相似图片中与待搜索图片之间的相似度最大的图片(包含与待搜索图片相同的图片)。处理器在获取相似图片时,若获取的相似图片中包含相同图片,将该相同图片排列在其他相似图片之前展示给用户。若获取的相似图片中不包含相同图片,则只展示其他相似图片。
在上述实施例中,确定待匹配图片与待搜索图片之间相似度的具体方法可以为:将待搜索图片的特征信息与待匹配图片的特征信息进行对比,获取待搜索图片与待匹配图片中特征信息相同的特征点的数量以及特征点的总数量,将特征点的数量与特征点的总数量的比值作为相似度。此外,也可选择其他计算两张图片的相似度的算法。图片库中可以预先存储图片的类型、作者信息、图片详细信息等特征信息。在获取了待搜索图片的特征信息后,可以将该待搜索图片的特征信息与图片库中存储的各个图片的特征信息进行对比,从而搜索到与该待搜索图片对应的相似图片。
例如,处理器可以获取相似图片的数量以及相似图片的URL以便于对用户进行展示。当获取到多幅相似图片时,可以按照相似度由高到低的顺序在相似图片显示区域显示各相似图片。若相似图片中包含相同图片,依照相似度由高到低按顺序排列,相似度最大的相同图片会被排列在第一位。此外,可以采用标志位标记是否具有相同图片。在一个实施例中,1代表有相同图片,0代表无相同图片。在触控显示屏上显示相似图片时,如判断标志位为1,则指示相似图片中包括相同图片,显示时也显示该相同图片。
例如,当获取多幅相似图片时,也可以按照用户自己设置的规则对相似图片的显示顺序进行排序。如用户可以针对图片的类型、流派、作家、内容等条件进行选择。其中,类型可以为油画、水彩、国画、素描等,流派包括写实派、抽象派等,内容包括人物画、风景画等。在一个实施例中,用户可以根据自己的喜好在“类型”中选择“油画优先”, 处理器将获取到的相似图片中的油画显示在前面以供用户优先查看,而把其他类型的相似图片排在后面,以便用户可以更快的选到自己喜欢的图片。例如,也可以分析用户收藏的、点赞的、经常浏览的、经常搜索的图片的特征来确认用户喜欢的图片风格,并针对不同的用户的喜好来进行相似图片的排序,以便于为用户提供更好的搜索体验。
例如,处理器搜索到相似图片并显示在触控显示屏上的同时,还可以实现:处理器控制触控显示屏在相似图片显示区域显示相似图片与待搜索图片之间的相似度、相似图片的推荐理由、相似图片的作品信息中的至少之一。其中,相似度可以为一个百分数,用于向用户展示该相似图片与待搜索图片之间的相似程度。相似图片显示区域中可以显示具体的推荐理由,也可以只显示推荐理由的链接,用户点击“推荐理由”后可以显示具体的推荐理由。作品信息可以包括作品名称、作品的作者、创作时间、收藏地址、作品风格、作品类型等多个维度的信息。
在实施例中,处理器还可以控制触控显示屏显示同作者图片显示区域,在同作者图片显示区域显示与待搜索图片具有相同作者的同作者图片。其中,同作者图片包括同作者图片的原图、同作者图片的低分辨率缩略图、同作者图片的局部图之一。用户发现自己感兴趣的图片后,还可能对该图片的作者的其他图片、画作感兴趣,因此在获取到相同图片后,可以根据该相同图片获取到该待搜索图片的作者,基于作者信息搜索到图片库中存储的同一作者的其他图片作为同作者图片,由此为用户提供了更多用户可能感兴趣的图片以供用户选择。
如图5所示,本实施例中处理器在触控显示屏的显示区域511上部显示待搜索图片513,在触控显示屏的中部显示搜索出的相似图片514,在触控显示屏底部显示待搜索图片515的同作者图片。同作者图片显示区域内显示的无论是同作者图片的原图、低分辨率缩略图还是局部图,均以较小的显示尺寸显示。显示在同作者图片显示区域上的可以为同作者图片的原图,即为图片库中存储的高清高分辨率的完整原图,让用户在预览时即可得知该图片的全部情况。也可以只显示同作者图片的低分辨率缩略图、同作者图片的局部图等,缩略图、局部图相比于原图的图片更小,这样可以大大提高页面的反应速度,为用户提供更好的预览体验。用户需要查看完整的图片,即可点开对应的图片查看详细信息。
在实施例中,处理器还可以在显示状态下,位于相似图片显示区域或同作者图片显示区域中心的第一图片的第一尺寸大于与第一图片相邻的第二图片的第二尺寸。其中 第一图片的第一尺寸不是第一图片的实际尺寸,而是第一图片在相似图片显示区域或同作者图片显示区域的显示尺寸。第二图片的第二尺寸也不是第二图片的实际尺寸,而是第二图片在相似图片显示区域或同作者图片显示区域的显示尺寸。
如图6a所示,本实施例中在触控显示屏的显示区域611上部显示待搜索图片613,在相似图片显示区域或同作者图片显示区域中显示的多张图片的显示尺寸不同,位于中心的第一图片641的显示尺寸大于位于边缘的第二图片642的显示尺寸,且第二图片642位于边缘时只显示部分图片,这样的设置可以更好的为用户展示位于中间的图片,使得用户在不点开该图片的情况下就可以尽可能多的得知图片的细节,便于用户的浏览。
在切换状态下,响应于用户对触控显示屏上沿着第一方向的第一定向接触指令,通过改变第一图片在第一方向上相对于触控显示屏的位置来实现从第一图片到第二图片的切换,且切换过程中第一图片的尺寸逐渐减小至第二尺寸,第二图片的尺寸逐渐增大至第一尺寸。其中,第一方向可以为水平方向。
如图6a-图6c所示,用户由右向左对第一图片进行滑动操作逐渐实现第一图片641到第二图片642的显示切换。切换完成后,第二图片642位于相似图片显示区域或同作者图片显示区域的中间,第一图片641移动到边缘且只显示部分图片,位于第二图片642右侧的图片也显示出部分图片,用户可以方便的查看第二图片642。
在上述实施例中,第一方向可以为水平方向。第一图片641、第二图片642以外的其他图片的显示尺寸可以等于第二尺寸,也可以根据实际需要进行调整。例如,当相似图片显示区域或同作者图片显示区域中显示有多张图片时,位于最中间的图片显示尺寸最大,两边的图片的显示尺寸依次减小。
在实施例中,处理器还可以响应于用户对第一图片的图片选择触发指令,触控显示屏上生成用于展示第一图片、第一操作图标的图片展示窗口。
如图7a所示,在显示状态下,图片展示窗口的尺寸不小于触控显示屏的显示区域711的尺寸,因此图中未单独显示图片展示窗口。如图6a所示,当用户点击第一图片641时,在触控显示屏上生成了图片展示窗口。当图6a中第一图片641的显示形态本身就是原图直接缩小的图片时,图片展示窗口仅将第一图片641放大以便于用户查看。而当图6a中第一图片641的显示形态为第一图片641的低分辨率缩略图或者局部图时,图片展示窗口将展示第一图片641高分辨率且完整的原图并放大展示给用户查看。此外用户通 过手势触控可以进一步移动或者放大第一图片641以便于用户查看第一图片641的细节。第一操作图标7411位于触控显示屏显示区域711的底部,可以包括收藏图标、推送图标等。用户点击收藏图标可以收藏当前图片展示窗口显示的第一图片641,用户点击推送图标可以将当前图片展示窗口显示的第一图片641推送至其他设备如其他显示装置、电子画框、画屏等显示。
在本实施例中,当第一图片位于相似图片显示区域或同作者图片显示区域中心时,处理器能够对针对第一图片的图片选择触发指令进行相应,而不能对针对第一图片以外的其他图片的图片选择触发指令进行相应。在例如实施例中,处理器不仅能够对针对第一图片的图片选择触发指令进行相应,还能对针对第一图片以外的其他图片的图片选择触发指令进行相应。
在例如实施例中,处理器还可以响应于用户在第二方向上对图片展示窗口的第一定向滑动指令,通过改变第一图片在第二方向上相对于触控显示屏的位置来实现从第一图片到第二图片的切换。其中,第二方向与第一方向不同。例如,当第一方向为水平方向时,第二方向为竖直方向。
如图7b所示,本实施例中,第一定向滑动指令为由下到上的滑动指令,处理器接收到该指令之后,控制第一图片741逐渐向上移动且从第一图片741上部开始逐渐隐藏.此外,控制第二图片742从触控显示屏显示区域711的底部出现,直至第一图片741完全隐藏而第二图片742完全显示在图片展示窗口上。如图7a到7b所示,本实施例中,由下到上滑动时,图片展示窗口中显示的图片由位于中间的第一图片741切换为图6a中位于第一图片741右侧的第二图片742。当由上到下滑动时,则图片展示窗口中显示的图片由位于中间的第一图片741切换为位于第一图片741左侧的图片。例如,也可以设置为由下到上滑动时图片展示窗口中显示的图片由位于中间的第一图片741切换为位于第一图片741左侧的图片,而由上到下滑动时图片展示窗口中显示的图片由位于中间的第一图片741切换为位于第一图片741右侧的第二图片742。通过本实施例,用户可以直接在图片展示窗口上查看相似图片显示区域或同作者图片显示区域中的各个图片,而不需要在查看一张图片的放大图结束返回到图6a所示的页面再打开另一张图片放大查看,为用户提供了更方面的图片查看方式。
例如,处理器还可以在触控显示屏上的图片展示窗口上显示用于展示第一图片的文字描述和第二操作图标的悬浮窗口。如图7c所示,本实施例中,第一图片741的文 字描述7412位于触控显示屏显示区域711的左下角且位于第一操作图标7411的上部。该文字描述7412可以包括作品名称、作品的作者、创作时间、收藏地址、作品风格、作品类型、上传用户等多个维度的信息。例如,响应于用户对文字描述中的至少一部分文字的第二点击指令,处理器在触控显示屏上生成针对被点击文字的搜索窗口。在一个示例实施例中,用户点击文字描述7412中的作品的作者时,处理器会在触控显示屏上生成针对该作品的作者的搜索窗口,通过该搜索窗口用户可以搜索到该作品作者的其他作品信息。其他文字描述7412如收藏地址、作品风格、作品类型、上传用户等也可以进行搜索,使得用户搜索出一张感兴趣的图片后,可以根据该感兴趣图片的特征进一步进行搜索,从而帮助用户发现其他可能感兴趣的图片或信息。
其中,第二操作图标7413位于触控显示屏显示区域711的右侧边缘,可以包括添加关注、点赞、评论、分享等图标。用户点击关注图标可以关注当前图片的上传用户,用户点击点赞图标可以点赞该图片,用户点击评论图标可以进入评论页面对该图片进行评论,用户点击分享图标可以将该图标分享到其他页面或APP上。
例如,还可以响应于用户对图片展示窗口的第一点击指令,处理器将悬浮窗口隐藏或显示。即通过第一点击指令,悬浮窗口可在隐藏和显示两种状态进行切换。在本实施例中,处理器在触控显示屏上生成图片展示窗口时,用于展示第一图片的文字描述、第二操作图标的悬浮窗口隐藏。处理器第一次接收到第一点击指令之后再将悬浮窗口显示,再次接收到第一点击指令之后再将悬浮窗口隐藏。例如,处理器在触控显示屏上生成图片展示窗口时,直接显示用于展示第一图片的文字描述、第二操作图标的悬浮窗口。处理器第一次接收到第一点击指令之后再将悬浮窗口再隐藏,再次接收到第一点击指令之后再显示悬浮窗口。
在例如实施例中,当图片展示窗口中显示的放大的第一图片741的像素与触控显示屏的显示区域711相同(即第一图片的宽长比与显示区域的横纵比相同)时,放大的第一图片741可以布满整个显示区域711。而当图片展示窗口中显示的放大的第一图片741的像素与触控显示屏的显示区域711不相同(即第一图片的宽长比与显示区域的横纵比不同)时,如图7d所示,图片展示窗口中未被第一图片741覆盖的区域可以根据需要设置为单色、纹理或者半透明的背景。该背景可以被设置为黑色,以便于更好的凸显图片展示窗口中的图片。
在例如实施例中,处理器还响应于用户在第一方向上对图片展示窗口的第二定向 滑动指令确定至少一个与第一图片对应的第三图片,处理器通过改变第一图片在与第一方向上相对于触控显示屏的位置来实现从第一图片到第三图片的切换。确定至少一个与第一图片对应的第三图片,处理器按照预设的时间间隔改变第一图片在与第一方向上相对于触控显示屏的位置来实现从第一图片到第三图片的切换。当用户点击第一图片741,第一图片741还可能包括与该图片同组但未显示在相似图片显示区域或同作者图片显示区域的第三图片743,如图7e所示,通过用户在在触控显示屏上沿水平方向上的滑动操作实现第一图片741到第三图片743的切换,或者按照预设的时间间隔自动实现第一图片741到第三图片743的切换。
在实施例中,处理器还响应于用户对第一操作图标中的推送图标的发送触控指令,处理器将第一图片发送至与电子设备关联的第一显示装置并在第一显示装置进行显示。如图7a所示,第一操作图标7411中包括推送图标,当用户点击推送图标时,将当前显示的图片推送到与本机的电子设备关联的第一显示装置上显示。
在本实施例中,可以选择至少一张图片发送至与当前装置已经建立连接的装置。例如,若当前设备为手机等移动终端设备,则可以将用户选择的图片发送到画屏、大屏、其他手机等终端设备显示。或者,将用户选择的图片发送至云服务器,使云服务器将该图片再次分发至其他显示装置显示。
根据本公开实施例的另一方面,提出一种应用于电子设备的图像处理方法,方法被一个或多个处理器实现。如图8所示,该图像处理方法可以包括以下步骤。
在步骤801,响应于用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示原始图片。
在步骤802,在触控显示屏上提供原始图片的待编辑区域。
在步骤803,通过改变待编辑区域的尺寸和原始图片的尺寸中的至少一个来对触控显示屏上的触控进行响应并选定最终要搜索的待搜索图片。
在步骤804,响应于用户的图片搜索指令,搜索待搜索图片的相似图片并显示在触控显示屏上。
例如,步骤803中可以通过以下步骤来确定待搜索图片。
响应于用户对待编辑区域和原始图片中的至少一个的拉伸指令,通过拉伸待编辑区域和原始图片中的至少一个以调整待编辑和原始图片中的至少一个的尺寸来对触控显示屏上的触控进行响应并获取原始图片的待裁剪范围。
响应于用户的图片裁剪指令,基于待编辑区域的边界对原始图片进行裁剪以获取待搜索图片,并在触控显示屏上显示待搜索图片。
例如,还可以执行畸变校正指令对裁剪后的原始图片进行畸变校正从而获得最终的待搜索图片。
例如,步骤804中搜索待搜索图片的相似图片并显示在触控显示屏上包括:在触控显示屏上显示相似图片显示区域,并按照预设排列顺序将相似图片显示在相似图片显示区域上;其中,相似图片包括相似图片的原图、相似图片的低分辨率缩略图、相似图片的局部图之一。
例如,还可以控制触控显示屏在相似图片显示区域显示相似图片与待搜索图片之间的相似度、相似图片的推荐理由、相似图片的作品信息中的至少之一显示在相似图片显示区域上。
例如,还可以控制触控显示屏显示同作者图片显示区域,在同作者图片显示区域显示与待搜索图片具有相同作者的同作者图片。其中,同作者图片包括同作者图片的原图、同作者图片的低分辨率缩略图、同作者图片的局部图之一。
例如,还可以在显示状态下,位于相似图片显示区域或同作者图片显示区域中心的第一图片的第一尺寸大于与第一图片相邻的第二图片的第二尺寸。在切换状态下,响应于用户对触控显示屏上沿着第一方向的第一定向接触指令,通过改变第一图片在第一方向上相对于触控显示屏的位置来实现从显示第一图片切换到显示第二图片,且切换过程中第一图片的尺寸逐渐减小至第二尺寸,第二图片的尺寸逐渐增大至第一尺寸。
例如,还可以响应于用户对第一图片的图片触发指令,在触控显示屏上生成用于展示第一图片、第一操作图标的图片展示窗口。
例如,还可以响应于用户在第二方向上对图片展示窗口的第一定向滑动指令,通过改变第一图片在第二方向上相对于触控显示屏的位置来实现从第一图片到第二图片的切换。其中,第二方向与第一方向不同。
例如,响应于用户对第一图片的图片触发指令之后还包括:在触控显示屏上生成位于图片展示窗口上的用于展示第一图片的文字描述、第二操作图标的悬浮窗口。
例如,还可以响应于用户对图片展示窗口的第一点击指令,将悬浮窗口隐藏或显示。
例如,还可以响应于用户对文字描述中的至少一部分文字的第二点击指令,在触 控显示屏上生成针对被点击文字的搜索窗口。
例如,还可以响应于用户在第一方向上对图片展示窗口的第二定向滑动指令确定至少一个与第一图片对应的第三图片,通过改变第一图片在与第一方向上相对于触控显示屏的位置来实现从第一图片到第三图片的切换;或者,确定至少一个与第一图片对应的第三图片,按照预设的时间间隔自动改变第一图片在与第一方向上相对于触控显示屏的位置来实现从第一图片到第三图片的切换。
例如,还可以响应于用户对第一操作图标中的推送图标的发送触控指令,将第一图片发送至与电子设备关联的第一显示装置并在第一显示装置进行显示。
上述实施例的方法用于操作具有前述实施例中相应的电子设备的计算装置,并且具有相应的电子设备实施例的有益效果,在此不再赘述。
本公开实施例的第三个方面提出一种电子设备。如图9所示,该电子设备900可以包括图片获取模块901用于响应用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示原始图片。编辑模块902用于在触控显示屏上显示原始图片的待编辑区域。确定模块903用于响应触控显示屏上的触控,过改变待编辑区域的尺寸和原始图片的尺寸中的至少一个以确定要搜索的待搜索图片。搜索模块904用于响应于用户的图片搜索指令,以便搜索与待搜索图片相似的相似图片并显示在触控显示屏上。
需要说明的是本申请实施例中的各模块都是可以通过计算机、CPU、FPGA、GPU等硬件实现的。
上述实施例的电子设备用于实现具有前述实施例中相应的方法,并且具有相应的方法实施例的有益效果,在此不再赘述。
所属领域的普通技术人员应当理解,以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本公开的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本公开的不同方面的许多其它变化,为了简明它们没有在细节中提供。
另外,为简化说明和讨论,并且为了不会使本公开难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本公开难以理解,并且这也考虑了以下事实, 即关于这些框图装置的实施方式的细节是高度取决于将要实施本公开的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本公开的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本公开。因此,这些描述应被认为是说明性的而不是限制性的。
尽管已经结合了本公开的具体实施例对本公开进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。
本公开的实施例旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本公开的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (32)

  1. 一种电子设备,包括:
    存储器,其上存储有计算机可读指令;
    处理器;以及
    触控显示屏,
    其中,所述处理器被配置为执行存储器中存储的指令,以便:
    响应于来自用户的图片获取触控指令,获取原始图片,并在所述触控显示屏上显示所述原始图片;
    在所述触控显示屏上显示针对所述原始图片的待编辑区域;
    响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个以确定要搜索的待搜索图片;以及
    响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
  2. 根据权利要求1所述的电子设备,其中,所述处理器还配置为:
    响应于用户对所述待编辑区域和所述原始图片中的至少一个的拉伸指令,通过拉伸所述待编辑区域和所述原始图片中的至少一个以调整所述待编辑区域和所述原始图片中的至少一个的尺寸;
    响应于用户的图片裁剪指令,基于所述待编辑区域的边界对所述原始图片进行裁剪以获取所述待搜索图片,并在所述触控显示屏上显示所述待搜索图片。
  3. 根据权利要求2所述的电子设备,其中,所述处理器还配置为
    执行畸变校正指令对裁剪后的所述原始图片进行畸变校正。
  4. 根据权利要求1所述的电子设备,其中,所述处理器还配置为:
    在所述触控显示屏上显示相似图片显示区域;
    按照预设排列顺序将所述相似图片显示在所述相似图片显示区域上;
    其中,所述相似图片包括所述相似图片的原图、所述相似图片的低分辨率缩略图、所述相似图片的局部图中的至少一个。
  5. 根据权利要求4所述的电子设备,其中,所述处理器还配置为:
    控制所述触控显示屏在所述相似图片显示区域显示所述相似图片与所述待搜索图 片之间的相似度、所述相似图片的推荐理由、所述相似图片的作品信息中的至少之一。
  6. 根据权利要求4所述的电子设备,其中,所述处理器还配置为:
    控制所述触控显示屏显示同作者图片显示区域,在所述同作者图片显示区域显示与所述待搜索图片具有相同作者的同作者图片;
    其中,所述同作者图片包括所述同作者图片的原图、所述同作者图片的低分辨率缩略图、所述同作者图片的局部图中的至少一个。
  7. 根据权利要求6所述的电子设备,其中,所述处理器还配置为:
    在显示状态下,使得触控显示屏上位于所述相似图片显示区域或所述同作者图片显示区域中心的第一图片的第一尺寸大于与所述第一图片相邻的第二图片的第二尺寸;
    在切换状态下,响应于用户对所述触控显示屏上沿着第一方向的第一定向接触指令,通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置从显示所述第一图片到切换到显示所述第二图片,其中所述第一图片的尺寸逐渐减小至所述第二尺寸,所述第二图片的尺寸逐渐增大至所述第一尺寸。
  8. 根据权利要求7所述的电子设备,其中,所述处理器还配置为:
    响应于用户对所述第一图片的图片选择触发指令,在所述触控显示屏上显示用于展示所述第一图片和第一操作图标的图片展示窗口。
  9. 根据权利要求8所述的电子设备,其中,所述处理器还配置为:
    响应于用户在第二方向上对所述图片展示窗口的第一定向滑动指令,通过改变所述第一图片在所述第二方向上相对于所述触控显示屏的位置从显示所述第一图片切换到显示第二图片;其中,所述第二方向与所述第一方向不同。
  10. 根据权利要求8所述的电子设备,其中,所述处理器还配置为:
    在所述触控显示屏上的所述图片展示窗口上叠加显示用于展示所述第一图片的文字描述和第二操作图标的悬浮窗口。
  11. 根据权利要求10所述的电子设备,其中,所述处理器还配置为:
    响应于用户对所述图片展示窗口的第一点击指令,将所述悬浮窗口隐藏或显示。
  12. 根据权利要求10所述的电子设备,其中,所述处理器还配置为:
    响应于用户对所述文字描述中的至少一部分文字的第二点击指令,在所述触控显示屏上显示针对被点击文字的搜索窗口。
  13. 根据权利要求8所述的电子设备,其中,所述处理器还配置为:
    响应于用户在第一方向上对所述图片展示窗口的第二定向滑动指令,确定与所述第一图片对应的至少一个第三图片;
    通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
  14. 根据权利要求8所述的电子设备,其中,所述处理器还配置为:
    确定与所述第一图片对应的至少一个第三图片;
    按照预设的时间间隔,通过改变所述第一图片在与所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
  15. 根据权利要求8所述的电子设备,其中,所述处理器还配置为:
    响应于用户针对所述第一操作图标的发送触控指令,将所述第一图片发送至与所述电子设备的第一显示装置以便所述第一显示装置进行显示所述第一图片。
  16. 一种应用于电子设备的图像处理方法,包括:
    响应于来自用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示所述原始图片;
    在所述触控显示屏上显示针对原始图片的待编辑区域;
    响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个以确定要搜索的待搜索图片;以及
    响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
  17. 根据权利要求16所述的方法,其中,所述改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个包括:
    响应于用户对所述待编辑区域和所述原始图片中的至少一个的拉伸指令,通过拉伸所述待编辑区域和所述原始图片中的至少一个以调整所述待编辑区域和所述原始图片中的至少一个的尺寸;
    响应于用户的图片裁剪指令,基于所述待编辑区域的边界对所述原始图片进行裁剪以获取所述待搜索图片,并在所述触控显示屏上显示所述待搜索图片。
  18. 根据权利要求16所述的方法,还包括,在对所述原始图片进行裁剪之后:
    执行畸变校正指令对裁剪后的所述原始图片进行畸变校正。
  19. 根据权利要求16所述的方法,其中,获取与所述待搜索图片相似的相似图片 并显示在所述触控显示屏上包括:
    在所述触控显示屏上显示相似图片显示区域,并按照预设排列顺序将所述相似图片显示在所述相似图片显示区域上;
    其中,所述相似图片包括所述相似图片的原图、所述相似图片的低分辨率缩略图、所述相似图片的局部图中的一个。
  20. 根据权利要求19所述的方法,还包括:控制所述触控显示屏在所述相似图片显示区域显示所述相似图片与所述待搜索图片之间的相似度、所述相似图片的推荐理由、所述相似图片的作品信息中的至少之一显示在所述相似图片显示区域上。
  21. 根据权利要求19所述的方法,还包括:
    控制所述触控显示屏显示同作者图片显示区域,在所述同作者图片显示区域显示与所述待搜索图片具有相同作者的同作者图片;
    其中,所述同作者图片包括所述同作者图片的原图、所述同作者图片的低分辨率缩略图、所述同作者图片的局部图中的至少一个。
  22. 根据权利要求21所述的方法,还包括:
    在显示状态下,使得触控显示屏上位于所述相似图片显示区域或所述同作者图片显示区域中心的第一图片的第一尺寸大于与所述第一图片相邻的第二图片的第二尺寸;
    在切换状态下,响应于用户对所述触控显示屏上沿着第一方向的第一定向接触指令,通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置从显示所述第一图片切换到显示所述第二图片,其中所述第一图片的尺寸逐渐减小至所述第二尺寸,所述第二图片的尺寸逐渐增大至所述第一尺寸。
  23. 根据权利要求22所述的方法,还包括:
    响应于用户对所述第一图片的图片触发指令,在所述触控显示屏上显示用于展示所述第一图片和第一操作图标的图片展示窗口。
  24. 根据权利要求23所述的方法,还包括:
    响应于用户在第二方向上对所述图片展示窗口的第一定向滑动指令,通过改变所述第一图片在所述第二方向上相对于所述触控显示屏的位置从显示所述第一图片切换到显示第二图片;其中,所述第二方向与所述第一方向不同。
  25. 根据权利要求23所述的方法,还包括,在所述响应于用户对所述第一图片的图片触发指令之后,
    在所述触控显示屏上的所述图片展示窗口上叠加显示用于展示所述第一图片的文字描述和第二操作图标的悬浮窗口。
  26. 根据权利要求25所述的方法,还包括:
    响应于用户对所述图片展示窗口的第一点击指令,将所述悬浮窗口隐藏或显示。
  27. 根据权利要求25所述的方法,还包括:
    响应于用户对所述文字描述中的至少一部分文字的第二点击指令,在所述触控显示屏上显示针对被点击文字的搜索窗口。
  28. 根据权利要求22所述的方法,还包括:
    响应于用户在第一方向上对所述图片展示窗口的第二定向滑动指令,确定至少一个与所述第一图片对应的至少一个第三图片;以及
    通过改变所述第一图片在所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
  29. 根据权利要求23所述的方法,还包括:
    确定与所述第一图片对应的至少一个第三图片;
    按照预设的时间间隔,通过改变所述第一图片在与所述第一方向上相对于所述触控显示屏的位置,从显示所述第一图片切换到显示第三图片。
  30. 根据权利要求23所述的方法,还包括:
    响应于用户针对所述第一操作图标的发送触控指令,将所述第一图片发送至与所述电子设备关联的第一显示装置以便所述第一显示装置进行显示。
  31. 一种电子设备,包括:
    图片获取模块,用于响应于来自用户的图片获取触控指令,获取原始图片,并在触控显示屏上显示所述原始图片;
    编辑模块,用于在所述触控显示屏上显示针对原始图片的待编辑区域;
    待搜索图片确认模块,用于响应于用户针对所述触控显示屏上的触控输入,改变所述待编辑区域的尺寸和所述原始图片的尺寸中的至少一个,以确定要搜索的待搜索图片;以及
    搜索模块,用于响应于来自用户的图片搜索指令,获取与所述待搜索图片相似的相似图片并显示在所述触控显示屏上。
  32. 一种计算机可读介质,其上存储有计算机指令,其中,当处理器执行所述指令 时,实现如权利要求16-30之一所述的方法。
PCT/CN2020/117042 2019-09-30 2020-09-23 电子设备和图像处理方法 WO2021063222A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910938661.1A CN110647640B (zh) 2019-09-30 2019-09-30 计算机系统、操作计算装置的方法及操作计算装置的系统
CN201910938661.1 2019-09-30

Publications (1)

Publication Number Publication Date
WO2021063222A1 true WO2021063222A1 (zh) 2021-04-08

Family

ID=68993410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117042 WO2021063222A1 (zh) 2019-09-30 2020-09-23 电子设备和图像处理方法

Country Status (2)

Country Link
CN (1) CN110647640B (zh)
WO (1) WO2021063222A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946258A (zh) * 2021-10-18 2022-01-18 珠海格力电器股份有限公司 图片编辑处理方法、装置、存储介质、处理器及终端设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647640B (zh) * 2019-09-30 2023-01-10 京东方科技集团股份有限公司 计算机系统、操作计算装置的方法及操作计算装置的系统
CN112783405B (zh) * 2021-01-25 2022-03-01 张飞 一种在计算机上制作和显示流程图的方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146178A (zh) * 2006-09-14 2008-03-19 奥林巴斯映像株式会社 摄像机
US20120134590A1 (en) * 2009-12-02 2012-05-31 David Petrou Identifying Matching Canonical Documents in Response to a Visual Query and in Accordance with Geographic Information
CN104620240A (zh) * 2012-09-11 2015-05-13 微软公司 基于姿势的搜索查询
CN105190644A (zh) * 2013-02-01 2015-12-23 英特尔公司 用于使用触摸控制的基于图像的搜索的技术
CN108268601A (zh) * 2017-12-20 2018-07-10 优视科技(中国)有限公司 图片搜索方法、装置及计算机设备
CN110647640A (zh) * 2019-09-30 2020-01-03 京东方科技集团股份有限公司 计算机系统、操作计算装置的方法及操作计算装置的系统

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694213B2 (en) * 2004-11-01 2010-04-06 Advanced Telecommunications Research Institute International Video content creating apparatus
CN100489852C (zh) * 2006-03-01 2009-05-20 腾讯科技(深圳)有限公司 对像册中显示图片进行切换的系统及方法
CN103020184B (zh) * 2012-11-29 2016-05-25 北京百度网讯科技有限公司 使用拍摄图像获取搜索结果的方法和系统
CN103279496A (zh) * 2013-05-07 2013-09-04 深圳市同洲电子股份有限公司 一种终端及关联信息的显示方法
CN104090761B (zh) * 2014-07-10 2017-09-29 福州瑞芯微电子股份有限公司 一种截图应用装置和方法
CN104090762B (zh) * 2014-07-10 2017-04-19 福州瑞芯微电子股份有限公司 一种截图处理装置和方法
CN105868385B (zh) * 2014-12-12 2020-02-07 北京奇虎科技有限公司 基于终端界面触控操作进行搜索的方法及系统
KR102440848B1 (ko) * 2016-05-20 2022-09-06 엘지전자 주식회사 이동 단말기 및 그 제어방법
CN107256109B (zh) * 2017-05-27 2021-03-16 北京小米移动软件有限公司 信息显示方法、装置及终端
CN107341185B (zh) * 2017-06-05 2020-12-04 北京小米移动软件有限公司 信息显示的方法及装置
CN108958576B (zh) * 2018-06-08 2021-02-02 Oppo广东移动通信有限公司 内容识别方法、装置及移动终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146178A (zh) * 2006-09-14 2008-03-19 奥林巴斯映像株式会社 摄像机
US20120134590A1 (en) * 2009-12-02 2012-05-31 David Petrou Identifying Matching Canonical Documents in Response to a Visual Query and in Accordance with Geographic Information
CN104620240A (zh) * 2012-09-11 2015-05-13 微软公司 基于姿势的搜索查询
CN105190644A (zh) * 2013-02-01 2015-12-23 英特尔公司 用于使用触摸控制的基于图像的搜索的技术
CN108268601A (zh) * 2017-12-20 2018-07-10 优视科技(中国)有限公司 图片搜索方法、装置及计算机设备
CN110647640A (zh) * 2019-09-30 2020-01-03 京东方科技集团股份有限公司 计算机系统、操作计算装置的方法及操作计算装置的系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946258A (zh) * 2021-10-18 2022-01-18 珠海格力电器股份有限公司 图片编辑处理方法、装置、存储介质、处理器及终端设备

Also Published As

Publication number Publication date
CN110647640B (zh) 2023-01-10
CN110647640A (zh) 2020-01-03

Similar Documents

Publication Publication Date Title
WO2021063222A1 (zh) 电子设备和图像处理方法
US11543958B2 (en) Control of search results with multipoint pinch gestures
WO2018196457A1 (zh) 一种弹幕显示方法及电子设备
EP2560145A2 (en) Methods and systems for enabling the creation of augmented reality content
WO2015027787A1 (zh) 在触屏设备中进行检索的方法和装置
KR20140098009A (ko) 컨텍스트 기반 카메라 콜라주를 생성하는 방법 및 시스템
JP2007286864A (ja) 画像処理装置、画像処理方法、プログラムおよび記録媒体
JP2014131281A (ja) 合成イメージを撮影する撮影装置及びその方法
WO2013023705A1 (en) Methods and systems for enabling creation of augmented reality content
CN105183338A (zh) 对象处理方法
WO2019020061A1 (zh) 视频台词处理方法、客户端、服务器及存储介质
US9432583B2 (en) Method of providing an adjusted digital image representation of a view, and an apparatus
WO2017107855A1 (zh) 一种图片搜索方法及装置
WO2019155852A1 (ja) 電子アルバム装置とその作動方法および作動プログラム
TW201501016A (zh) 資料搜尋方法與其電子裝置
WO2022048373A1 (zh) 图像处理方法、移动终端及存储介质
US10936187B2 (en) Electronic album apparatus, and operation method and operation program for the same
CN105607825B (zh) 用于图像处理的方法和设备
WO2016082624A1 (zh) 一种用于提供图片的呈现信息的方法和设备
US9792021B1 (en) Transitioning an interface to a neighboring image
WO2022048372A1 (zh) 图像处理方法、移动终端及存储介质
WO2022206097A1 (zh) 图像编辑方法及电子设备
WO2016188199A1 (zh) 图片裁剪方法和装置
KR20150135042A (ko) 검색을 수행하는 방법 및 장치
US20220283698A1 (en) Method for operating an electronic device in order to browse through photos

Legal Events

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

Ref document number: 20872926

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20872926

Country of ref document: EP

Kind code of ref document: A1

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24/05/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20872926

Country of ref document: EP

Kind code of ref document: A1