[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020001648A1 - Image processing method and apparatus and terminal device - Google Patents

Image processing method and apparatus and terminal device Download PDF

Info

Publication number
WO2020001648A1
WO2020001648A1 PCT/CN2019/093846 CN2019093846W WO2020001648A1 WO 2020001648 A1 WO2020001648 A1 WO 2020001648A1 CN 2019093846 W CN2019093846 W CN 2019093846W WO 2020001648 A1 WO2020001648 A1 WO 2020001648A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
gallery
receiving terminal
terminal device
shared
Prior art date
Application number
PCT/CN2019/093846
Other languages
French (fr)
Chinese (zh)
Inventor
别晓辉
刘森玉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020001648A1 publication Critical patent/WO2020001648A1/en

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/55Clustering; Classification

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to an image processing method, device, and terminal device.
  • the embodiments of the present application provide an image processing method and device, which optimize the gallery based on image analysis factors and historical behavior data of the user's operation of the image, which can screen out images that the user is satisfied with, and effectively improve the optimization efficiency of the gallery.
  • an embodiment of the present application provides an image processing method.
  • a terminal device processes an image analysis factor of an image in a gallery through a first image analysis algorithm to obtain a first preferred value of the image.
  • the image analysis factor includes a geometric factor or One or more of the visual factors; the historical behavior data of the image is processed by the second image analysis algorithm to obtain the second preferred value of the image; the first preferred value and the second preferred value are processed to obtain the priority of the image Level; optimize the gallery according to the priority of each image in the gallery.
  • the terminal device processes the image analysis factors of the images in the gallery through the first image analysis algorithm to obtain the first preferred value of the image, which can ensure the high quality of the image; the terminal device uses the second image analysis algorithm to The historical behavior data of the image is processed to obtain the second preferred value of the image, which can ensure that the user has a greater tendency for the image.
  • the terminal device optimizes the gallery based on the image analysis factors and the historical behavior data of the user's operation of the image, and can be filtered Produce user-satisfied images and effectively improve the efficiency of gallery optimization.
  • the historical behavior data includes one or more of the following: the number of operations performed on the image; the length of time the image is displayed on the display screen; and the number of times the image is displayed on the display screen.
  • the user operates the image more times, or the image is displayed on the display screen for a longer time, or the image is displayed more times on the display screen, and the terminal device may determine the user ’s
  • the tendency is greater, that is, the probability that the image is a user-satisfied image is greater.
  • the number of operations performed on the image by the terminal device may specifically include: the number of times the image is shared, the number of times the image has been favorited, the number of times the image has been edited, or the acquisition time One or more of the number of images after the acquisition time of the image and the image background is the same as the image background of the image.
  • the specific method for the terminal device to optimize the gallery according to the priority of each image in the gallery may be: image clustering of each image according to attribute information of each image in the gallery to obtain at least For an image group, the attribute information includes one or more of face information, acquisition time, acquisition location, or image background; the highest priority image in the same image group is used as the summary image of the image group.
  • the terminal device performs image clustering on each image according to the attribute information of each image, and uses the highest priority image in the same image group as the summary image of the image group, which can optimize image classification and effectively improve the optimization of the gallery effectiveness.
  • the terminal device uses the image with the highest priority in the same image group as the summary image of the image group, it can also display all the images contained in the image group when an image expansion instruction about the image group is detected. image.
  • the terminal device can also obtain the identity information of the receiving terminal; according to the identity information, obtain the optimized image contained in the gallery The degree of association with the receiving terminal; according to the degree of association, determine the shared image shared to the receiving terminal among the images contained in the optimized gallery, and send the shared image to the receiving terminal.
  • the terminal device obtains the degree of association between the image contained in the optimized gallery and the receiving terminal according to the identity information, and determines the sharing to receive among the images contained in the optimized gallery according to the degree of association.
  • the shared image of the terminal, and sending the shared image to the receiving terminal can realize intelligent and personalized group shared images, and improve the efficiency of image sharing.
  • the specific manner in which the terminal device sends the shared image to the receiving terminal may be: sending index information of the shared image to the receiving terminal, where the index information includes an image identifier of the shared image; and receiving a thumbnail image from the receiving terminal Acquire the request; respond to the thumbnail acquisition request, send a thumbnail corresponding to the shared image to the receiving terminal; receive the image acquisition request about the target thumbnail from the receiving terminal; respond to the image acquisition request, send the target image corresponding to the target thumbnail to the receiving terminal.
  • the terminal device may also establish a WIFI point-to-point communication connection with the receiving terminal.
  • an embodiment of the present application provides a computer storage medium that stores a program, and when the program is executed, causes a terminal device to execute any one of the image processing methods described in the first aspect.
  • an embodiment of the present application provides a terminal device that has a function of implementing the behavior of the terminal device in the image processing method example described in the first aspect.
  • the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more units or modules corresponding to the functions described above.
  • an embodiment of the present application provides a terminal device.
  • the terminal device may include a processor and a memory, and the processor is configured to support the terminal device to perform a corresponding function of the terminal device in the image processing method according to the first aspect.
  • the memory is used for coupling with the processor, and it stores program instructions and data necessary for the terminal device.
  • an embodiment of the present application provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute the method described in the first aspect.
  • an embodiment of the present application provides a chip system.
  • the chip system includes a processor for a terminal device to implement the functions involved in the foregoing aspect, for example, generating or processing data involved in the foregoing method and / or information.
  • the chip system further includes a memory, and the memory is configured to store program instructions and data necessary for the terminal device.
  • the chip system may be composed of chips, and may also include chips and other discrete devices.
  • FIG. 1 is a schematic flowchart of an image processing method disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another image processing method disclosed in an embodiment of the present application.
  • 3A is a schematic diagram of an image disclosed in an embodiment of the present application.
  • 3B is a schematic diagram of another image disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another image processing method disclosed in an embodiment of the present application.
  • FIG. 5A is a schematic diagram of a WIFI point-to-point communication connection disclosed in an embodiment of the present application.
  • FIG. 5B is a schematic diagram of a correlation degree disclosed in an embodiment of the present application.
  • 5C is a schematic diagram of a shared image disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an image processing apparatus disclosed by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application.
  • the image processing method in the embodiment of the present application may be applied to a terminal device.
  • the terminal device includes, but is not limited to, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or an individual user. Digital assistants, etc.
  • the terminal device's gallery can be located in the memory, and the gallery can store one or more images. Images can include pictures or videos. Users often view repeatedly or shoot multiple times during the video recording process.
  • the terminal device stores a large number of redundant or low-quality images, which leads to the expansion of the gallery. The expansion of the gallery brings great inconvenience to the user's later browsing and cleaning.
  • an image processing method according to an embodiment of the present application is proposed.
  • the terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image.
  • the historical behavior data of the image is processed to obtain the second preferred value of the image
  • the first preferred value and the second preferred value are processed to obtain the priority of the image
  • the gallery is optimized based on the priority of each image in the gallery.
  • the embodiment of the present application optimizes a gallery based on image analysis factors and historical behavior data of user-operated images, and can filter out images that are satisfactory to users, effectively improving the optimization efficiency of the gallery.
  • the image analysis factors in the embodiments of the present application may include one or more of geometric factors or visual factors.
  • the geometric factors can be obtained based on the composition rules of photographic aesthetics, and the geometric factors can be the rule of threes, the rule of diagonals, or the balance.
  • Visual factors can include contrast, exposure, or color distribution.
  • the embodiments of the present application can screen out high-quality images based on image analysis factors.
  • the historical behavior data of the image in the embodiment of the present application may include one or more of the following: the number of operations performed on the image, the length of time the image is displayed on the display screen, and the number of times the image is displayed on the display screen.
  • the embodiment of the present application can predict the user's propensity based on the historical behavior data of the image, that is, predict the user's satisfaction with the image.
  • the method for optimizing the gallery in the embodiment of the present application may be: sort the images according to the priority of the images from high to low, and display the sorted images; or lower priority images among the images with higher similarity Delete images; or push higher priority images, etc.
  • FIG. 1 is an image processing method provided by an embodiment of the present application. The method is used to optimize the images in a gallery. The method includes, but is not limited to, the following steps:
  • Step S101 The terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image.
  • the terminal device can acquire the image in the gallery, and process the image analysis factor of the image through the first image analysis algorithm to obtain the first preferred value of the image.
  • the first image analysis algorithm may be one or more of a geometric factor analysis algorithm or a visual factor analysis algorithm
  • the image analysis factor may include one or more of a geometric factor or a visual factor.
  • the image in the gallery can be obtained by the terminal device through the sensor component, communication component or the Internet and stored in the gallery.
  • the sensor component can be a camera or a scanner.
  • the terminal device can take a picture of the target object through the camera to obtain an image, or
  • the terminal device can scan the target object through the scanner to obtain an image.
  • the communication component is Bluetooth, infrared, Near Field Communication (NFC) or WIFI.
  • the terminal device can establish a communication connection with the sending terminal through the communication component. Receive images from the sending terminal through the communication connection established with the sending terminal.
  • the terminal device can acquire all the images in the gallery. For each image, the terminal device can perform steps S101-S104 in the embodiment of the present application. Alternatively, the terminal device may acquire one or more images in the gallery every preset time interval. For each image, the terminal device may perform steps S101-S104 in the embodiment of the present application. Alternatively, the terminal device may acquire one or more images that have not been optimized in the gallery every preset time interval. For each image that is not optimized, the terminal device may perform steps S101-S104 in the embodiment of the present application.
  • the terminal device can process the geometric factors of the images in the gallery through the geometric factor analysis algorithm to obtain the geometric factor value of the image, and
  • the geometric factor value is taken as the first preferred value.
  • the geometric factor analysis algorithm can be expressed by the following formula:
  • E a represents the geometric factor value of the image
  • ⁇ RT represents the geometric factor is the weight of the trisection method
  • E RT represents the geometric factor three-point method
  • ⁇ DA represents the geometric factor is the diagonal rule weight
  • E DA represents The diagonal of the geometric factor is regular
  • ⁇ VB means the geometric factor is the balance weight
  • E VB means the geometric factor is the balance.
  • the terminal device may process the visual factor of the image in the gallery through the visual factor analysis algorithm to obtain the visual factor value of the image, and The visual factor value is taken as the first preferred value.
  • the terminal device may process the geometric factors of the images in the gallery through the geometric factor analysis algorithm to obtain the geometric factor value.
  • the terminal device may also use the visual factor analysis algorithm to process the visual factors of the images in the gallery to obtain the visual factor values, and perform a weighted sum of the geometric factor values and the visual factor values to obtain the first preferred value of the image.
  • the terminal device can pass ⁇ * E a + ⁇ * E c , A first preferred value of the image is obtained.
  • Step S102 The terminal device processes the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image.
  • the terminal device may also process the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image.
  • the embodiment of this application does not limit the sequence of execution of steps S101 and S102.
  • the terminal device may process the image analysis factors of the images in the gallery by using the first image analysis algorithm, and obtain the first preferred value of the image.
  • Two image analysis algorithms process the historical behavior data of the image to obtain the second preferred value of the image.
  • the terminal device may process the historical behavior data of the image by using the second image analysis algorithm to obtain the second preferred value of the image, and then process the image analysis factors of the image in the gallery through the first image analysis algorithm to obtain the image The first preferred value.
  • the terminal device can simultaneously process the image analysis factors of the images in the gallery through the first image analysis algorithm to obtain the first preferred value of the image, and process the historical behavior data of the image through the second image analysis algorithm to obtain the image.
  • the second preferred value is another preferred value.
  • the historical behavior data may include one or more of the following: the number of operations performed on the image; the length of time the image is displayed on the display screen; and the number of times the image is displayed on the display screen.
  • the number of operations performed on the image may specifically include: the number of times the image is shared, the number of times the image has been bookmarked, the number of edits performed on the image, or the acquisition time is after the image acquisition time and the image background One or more of the same number of images as the image background of the image.
  • the number of edits to edit an image can refer to the number of edits to enlarge, reduce, adjust parameters, or mark the image in response to user operations.
  • the parameter adjustment can be parameters such as the size, background color, shadow, or hue of the image Adjustment.
  • the terminal device may determine that the more the number of operations performed by the user on the image indicates that the user's tendency toward the image is greater.
  • the terminal device can obtain the operation value of the image by using the following formula, and use the operation value as the second preferred value of the image:
  • E 0 represents the operation value of the image
  • X 0 represents the number of operations performed on the image.
  • f (ZX 0 ) may be a proportional function.
  • the terminal device may determine that the longer the display duration of the image on the display screen is, the greater the tendency of the user to the image.
  • the display duration of the image on the display screen can refer to the sum of the display duration of the image when it is displayed on the display screen multiple times in the preset time period, or the sum of the display duration of the image when it is displayed on the display screen multiple times in the preset time period. Maximum display duration.
  • the terminal device can obtain the display time value of the image by using the following formula, and uses the display time value as the second preferred value of the image:
  • E 1 represents the display time value of the image
  • X 1 represents the display time of the image on the display screen.
  • f (t 1 X 1 ) may be a proportional function.
  • the terminal device may determine that the more the image is displayed on the display screen, the greater the user ’s tendency towards the image .
  • the number of times the image is displayed on the display screen may refer to the total number of times that the image is displayed multiple times on the display screen within a preset period of time.
  • the terminal device can obtain the number of times the image is displayed by using the following formula, and use the value of the number of times of display as the second preferred value of the image:
  • E 2 represents the number of times the image is displayed
  • X 2 represents the number of times the image is displayed on the display screen.
  • f (t 2 X 2 ) may be a proportional function.
  • the terminal device may determine that the selection value of the image is 1, and use the selection value as the second preferred value of the image.
  • the terminal device may use a second image analysis algorithm Each historical behavior data of the image is processed to obtain a processing result, and the processing result is weighted and summed to obtain a second preferred value of the image. For example, if the historical behavior data includes the number of times the image is shared, the number of edits to edit the image, and the length of time the image is displayed on the display screen, the terminal device uses the second image analysis algorithm corresponding to each historical behavior data to The historical behavior data is processed to obtain the number of times of sharing, the number of times of editing, and the value of display duration.
  • the terminal device can multiply the value of the number of times of sharing and the weight corresponding to the number of times of sharing to obtain a first product, and the number of times of editing and the value Multiply the weights corresponding to the number of times to obtain a second product. Multiply the weight of the display duration by the weight of the display duration to obtain a third product. Add the first product, the second product, and the third product to obtain the product. The second preferred value of the image.
  • Step S103 The terminal device processes the first preferred value and the second preferred value to obtain the priority of the image.
  • the terminal device After the terminal device obtains the first preferred value and the second preferred value of the image, it can perform weighted summation on the first preferred value and the second preferred value to obtain the priority of the image. For example, the terminal device may multiply the weight corresponding to the first preference value by the first preference value to obtain a fourth product, multiply the weight value corresponding to the second preference value by the second preference value to obtain a fifth product, and The fourth product and the fifth product are added to obtain the priority of the image.
  • Step S104 The terminal device optimizes the gallery according to the priority of each image in the gallery.
  • the terminal device may acquire an image with a similarity greater than a preset ratio threshold, and delete an image with a lower priority from the acquired image.
  • the user has taken multiple repeated images by repeatedly framing or continuous shooting.
  • the terminal device processes the image analysis factors of the images in the gallery by using the first image analysis algorithm, and the images are processed by the second image analysis algorithm.
  • the historical behavior data can be processed to determine that the image with a higher priority has a higher image quality and the user has a higher tendency for the image, and the terminal device can compare the image with a higher priority in an image with a similarity greater than a preset ratio threshold.
  • the image is stored in the memory of the terminal device, and the lower-priority image among the images whose similarity is greater than the preset ratio threshold is deleted, which effectively improves the storage space of the memory and effectively improves the library optimization efficiency.
  • the terminal device may sort the images in the gallery according to the priority of the images from large to small, and then display the sorted images.
  • the terminal device can display a higher priority image in front so that the image that the user preferentially browses is an image required by the user, which effectively improves the optimization efficiency of the gallery.
  • the terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image, and processes the historical behavior data of the image through a second image analysis algorithm.
  • a first image analysis algorithm to obtain a first preferred value of the image
  • a second image analysis algorithm processes the historical behavior data of the image through a second image analysis algorithm.
  • To obtain the second preferred value of the image to process the first preferred value and the second preferred value, to obtain the priority of the image, and to optimize the gallery according to the priority of each image in the gallery, and to filter out the images that the user is satisfied with , Effectively improve the efficiency of library optimization.
  • FIG. 2 is an image processing method provided by an embodiment of the present application.
  • the method is used for clustering images in an optimized gallery.
  • the method includes: But not limited to the following steps:
  • Step S201 The terminal device performs image clustering on each image according to attribute information of each image in the gallery to obtain at least one image group.
  • the terminal device may perform image clustering on each image according to attribute information of each image in the gallery to obtain at least one image group.
  • the terminal device may perform image clustering on each image according to the attribute information of each image in the optimized gallery to obtain at least one image group.
  • the attribute information may include one or more of face information, acquisition time, acquisition location, or image background.
  • the terminal device can obtain all the images in the gallery and use a preset image clustering algorithm to process the clustering factors of each image to achieve scene clustering.
  • the preset image clustering algorithm may include a kmeams algorithm (a clustering algorithm based on partitioning), a Convolutional Neural Network (CNN) algorithm, or a Deep Residual Network (ResNet) algorithm.
  • the clustering factors may include static features of the image and sensor data, static features may include color histograms or structural features, and the sensor data may include location information obtained by the terminal device acquired by the Global Positioning System (GPS) or The terminal equipment collected by the time synchronization system acquires the time information of the image and so on.
  • GPS Global Positioning System
  • the terminal equipment collected by the time synchronization system acquires the time information of the image and so on.
  • the terminal device may belong to the same image group for images with similar color histograms, and belong to the same image group for images collected at the same location, and set the acquisition time to The images in the preset
  • the terminal device may use a hierarchical clustering algorithm to cluster the color histogram to implement scene clustering.
  • the terminal device may modify the clustering result to improve the accuracy of the clustering.
  • the terminal device may also perform face recognition on each image in the gallery, and store images containing the same face in the same image group.
  • Step S202 The terminal device acquires priorities of each image in the same image group.
  • the terminal device After the terminal device obtains at least one image group, it can obtain the priority of each image in the same image group.
  • the terminal device After the terminal device obtains at least one image group, it can obtain the priority of each image in the same image group.
  • the terminal device For the manner of obtaining the priority of the image, refer to the image processing method described in FIG. 1, which is not described in the embodiment of this application.
  • Step S203 The terminal device uses the image with the highest priority in the same image group as the digest image of the image group.
  • the terminal device can create a hierarchical directory, and use the image with the highest priority in the image group as the summary image of the image group, that is, the image with the highest priority as the first-level directory, and other images in the image group as two Level directory.
  • a scene hierarchical directory may be established, that is, for the images of the same scene, the image with the highest priority is used as the first-level directory among the images containing the scene.
  • a hierarchical classification of people can be established, that is, for images of the same person, the image with the highest priority is used as the first-level directory among the images containing the person.
  • only the highest priority image in each image group can be displayed in the first-level catalog of the gallery, which prevents the user from searching for all the images contained in the gallery, reduces the image search delay, and effectively improves Gallery optimization efficiency.
  • the terminal device when the terminal device detects the image expansion instruction about the image group, it can display all the images included in the image group. For example, the terminal device can display a virtual button with an image expansion function in the summary image. When the terminal device detects that the user clicks the virtual button, it can generate an image expansion instruction about the image group to which the summary image belongs, and respond to the image expansion instruction. Display all images contained in this image group. For another example, when the terminal device detects a user operation on the digest image, it can detect whether the operation submitted by the user matches the operation corresponding to the image expansion instruction.
  • the terminal device can generate the operation Operate the corresponding image expansion instruction, and display all images included in the image group in response to the image expansion instruction.
  • the operation corresponding to the image expansion instruction may be set by a user, or may be set by default when the terminal device is shipped from the factory.
  • the operation corresponding to the image expansion instruction may be a long-press, double-click, or multi-touch on the summary image, or a sliding track obtained by sliding on the summary image.
  • the operation corresponding to the image expansion instruction can also be the sliding track obtained by the user sliding on the display screen.
  • the sliding track corresponding to different image groups is different.
  • the terminal device detects the sliding track submitted by the user, the user can send the sliding track submitted by the user. Compare with the slide trajectory corresponding to each image expansion instruction, generate an image expansion instruction corresponding to the slide trajectory that matches the slide trajectory submitted by the user, and respond to the image expansion instruction to display all the images contained in the image group corresponding to the slide trajectory. image.
  • a virtual button is displayed on the upper left of the summary image, and the number displayed in the virtual button may indicate the number of images included in the image group to which the summary image belongs.
  • the terminal device detects that the user clicks the virtual button, it can generate an image expansion instruction about the image group to which the summary image belongs, and display all images included in the image group in response to the image expansion instruction.
  • the terminal device performs image clustering on each image according to the attribute information of each image to obtain at least one image group, obtains the priority of each image in the same image group, and prioritizes the same image group.
  • the highest image is used as the summary image of the image group, which can optimize the image classification and effectively improve the library optimization efficiency.
  • FIG. 4 is an image processing method provided by an embodiment of the present application. The method is used for intelligently sharing an optimized processed image. The method includes, but is not limited to The following steps:
  • Step S401 The terminal device acquires the identity information of the receiving terminal.
  • the terminal device can obtain the identity information of the receiving terminal.
  • the identity information can be used to identify the relationship between the receiving terminal and the terminal device, such as a family member, a colleague, or a friend.
  • the family member may further include a spouse, a parent, or a sibling.
  • the colleague may further include General manager, supervisor, minister or subordinate, etc. Friends may further include same-sex friends or heterosexual friends, etc.
  • the identity information may also include avatar information of the user who uses the receiving terminal.
  • the terminal device may establish a WIFI point-to-point communication connection with the receiving terminal, and obtain the identity information of the receiving terminal through the WIFI point-to-point communication connection with the receiving terminal.
  • a terminal device can use WIFI Direct networking to establish a multi-terminal home domain networking to achieve point-to-point interconnection and image transmission through point-to-point interconnection, which can increase the transmission speed and distance of the image.
  • the WIFI Direct standard means that devices in a wireless network can be connected to each other without a wireless router.
  • the topology of the WIFI Direct network can be one-to-one or one-to-many. Taking the schematic diagram of the WIFI point-to-point communication connection shown in FIG.
  • the terminal device can find the receiving terminal through the "device discovery function" of WIFIDirect, and the terminal device can actively initiate an invitation to the receiving terminal to establish a communication connection, and the terminal device and the receiving terminal After the communication connection is established, the terminal device and the receiving terminal automatically establish a group.
  • the terminal device can negotiate with the receiving terminal to determine whether the device used to manage the group is a terminal device or a receiving terminal.
  • the device used to manage the group can change other devices.
  • the device joins the group and sets the group as a temporary group or a permanent group. If the group is a temporary group, the device used to manage the group will delete the group after a preset period of time. If the group is a permanent group, the device for managing the group deletes the group when it receives a delete instruction for the group.
  • the embodiments of the present application include, but are not limited to, establishing a WIFI point-to-point communication connection with the receiving terminal, and can also establish Bluetooth, infrared, Near Field Communication (NFC) or WIFI routing networking with the receiving terminal. Connect to communicate with the receiving terminal, for example, to obtain the identity information of the receiving terminal.
  • NFC Near Field Communication
  • Step S402 The terminal device obtains, according to the identity information, the degree of association between the image included in the optimized gallery and the receiving terminal.
  • the terminal device can obtain the correlation between the image contained in the optimized gallery and the receiving terminal according to the identity information, and the correlation can be greater than or equal to 0 and less than or equal to 1.
  • the terminal device performs character clustering on the images in the gallery through the image processing method shown in FIG. 2, the user can personally mark the persons included in the image.
  • the image includes three persons. One person is the spouse of the second person in the image, the third person in the image is the child of the second person in the image, and the identity information of the receiving terminal is a colleague. Then the terminal device can determine the relationship between the various characters in the image as Family relationship, the relationship between the receiving terminal and the terminal device is a colleague relationship, then the correlation between the image and the receiving terminal is 0.1.
  • the terminal device can compare the face in the image with the avatar information included in the identity information. When the face indicated by the avatar information, the terminal device may determine that the correlation between the image and the receiving terminal is 1. For another example, after the terminal device performs scene clustering on the images in the gallery through the image processing method shown in FIG. 2, if the image is a landscape photo, regardless of whether the receiving terminal and the terminal device are a family relationship, a colleague relationship, or a friend relationship, The correlation between the image and the receiving terminal is 0.8. For another example, after the terminal device performs scene clustering on the images in the gallery by using the image processing method shown in FIG. 2, if the scene of the image is an office place, and the relationship between the receiving terminal and the terminal device is a colleague relationship, the terminal device may determine The correlation between the image and the receiving terminal is 0.8.
  • the terminal device can determine that the degree of association between the image and all receiving terminals is 0.8; if the image is a person image, the person contained in the image is When the child is a child and the relationship between the terminal device and the receiving terminal is a family relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 1; if the image is a person image, the person contained in the image and the receiving terminal When the relationship is a spouse relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 0.8; if the image is a person image, the relationship between the person contained in the image and the receiving terminal is father-son, mother-child, father-daughter, or In the mother-daughter relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 0.6; if the image is a person image and there is no relationship between the person contained in the image and the receiving terminal, the terminal device
  • Step S403 The terminal device determines a shared image shared to the receiving terminal among the images included in the optimized gallery according to the degree of association.
  • a user may set a correlation degree of images shared to different receiving terminals. For example, the user may set the degree of relevance of the image shared to the first terminal device to be greater than the first degree of relevance threshold, and the degree of relevance of the image shared to the second terminal device to be greater than the second degree of relevance threshold. If the terminal device determines that the receiving terminal is the first terminal device according to the identity information of the receiving terminal, the terminal device may determine an image in the gallery whose correlation degree is greater than the first correlation degree threshold value as a shared image.
  • the terminal device may determine an image in the gallery whose correlation degree is greater than a preset correlation degree threshold value as a shared image, and the preset correlation degree threshold value may be a correlation degree threshold value preset by the terminal device, for example, 0.5 or 0.7. Wait.
  • Step S404 The terminal device sends the shared image to the receiving terminal.
  • the terminal device After the terminal device determines the shared image, it can send the shared image to the receiving terminal through a communication connection established in advance with the receiving terminal.
  • the terminal device may send index information of the shared image to the receiving terminal.
  • the index information includes an image identifier of the shared image.
  • the terminal device may receive a thumbnail image acquisition request from the receiving terminal, and respond to the thumbnail image acquisition request. Send a thumbnail corresponding to the shared image to the receiving terminal, receive an image acquisition request for the target thumbnail from the receiving terminal, and send a target image corresponding to the target thumbnail to the receiving terminal in response to the image acquisition request.
  • the index information may also include storage paths of index files or thumbnail storage information of shared images.
  • the terminal device XX determines the shared image, it can generate an index file (for example, a file shared to YY) about the receiving terminal YY, and store the index information of the shared image to the receiving terminal
  • the terminal device may send the index information in the index file of the receiving terminal YY to the receiving terminal YY.
  • the receiving terminal YY may establish a shared file (for example, a shared file from XX) about the terminal device in advance, and store index information from the terminal device into the shared file.
  • the receiving terminal When the receiving terminal detects a user operation on one or more image identifiers, it may send a thumbnail image acquisition request to the terminal device, and the thumbnail image acquisition request carries the image identifier.
  • the terminal device may respond to the thumbnail image acquisition request and send a thumbnail image corresponding to the shared image indicated by the image identification to the receiving terminal.
  • the receiving terminal may display a thumbnail corresponding to the shared image on a display screen of the receiving terminal.
  • the receiving terminal When the receiving terminal detects a user operation on the target thumbnail, it may send an image acquisition request to the terminal device.
  • the image acquisition request may carry the target thumbnail corresponding to the target thumbnail.
  • the image ID of the shared image The terminal device may respond to the image acquisition request and send a target image corresponding to the target thumbnail to the receiving terminal.
  • the target image When the receiving terminal detects a storage operation of the target image by the user, the target image may be stored in the memory.
  • the index file generated by the terminal device may be in a hidden state, that is, the index file is displayed only when a display request of the index file by the user is detected.
  • the terminal device may periodically detect whether a new image is stored in the gallery, and the terminal device obtains a correlation between the new image and the receiving terminal. If it is determined that the new image is shared according to the correlation Image, the terminal device may store index information of the new image in an index file.
  • the terminal device may delete index information about the image in the index file.
  • the terminal device obtains the identity information of the receiving terminal, and according to the identity information, obtains the correlation between the image contained in the optimized gallery and the receiving terminal, and according to the correlation, the optimized processing Among the images contained in the gallery, the shared image shared to the receiving terminal is determined, and the shared image is sent to the receiving terminal, which can realize intelligent and personalized group shared images and improve the efficiency of image sharing.
  • FIG. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application, which is used to implement the functions of the terminal device in the embodiments of FIG. 1, FIG. 2, and FIG. 4. , Software, or a combination of hardware and software to implement the solution of this application.
  • the functional blocks described in FIG. 6 may be combined or separated into several sub-blocks to implement the solution of the present application. Therefore, the content described above in this application may support any possible combination or separation or further definition of the functional modules described below.
  • the image processing apparatus may include a processing module 601 and a sending module 602, wherein the detailed description of each module is as follows.
  • a processing module 601 is configured to process an image analysis factor of an image in the gallery through a first image analysis algorithm to obtain a first preferred value of the image, where the image analysis factor includes one or more of a geometric factor or a visual factor Species
  • the processing module 601 is further configured to process the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image;
  • the processing module 601 is further configured to process the first preferred value and the second preferred value to obtain a priority of the image;
  • the processing module 601 is further configured to perform optimization processing on the gallery according to a priority of each image in the gallery.
  • the historical behavior data includes at least one of the following:
  • the number of times the image is displayed on the display screen is displayed on the display screen.
  • the number of operations performed on the image includes:
  • the number of times that the image was shared, the number of times the image was favorited, the number of edits that the image was edited, or the acquisition time was after the acquisition time of the image and the image background and the image of the image One or more of the number of images with the same background.
  • the processing module 601 optimizes the gallery according to the priority of each image in the gallery, and is specifically configured to:
  • image clustering is performed on each image to obtain at least one image group.
  • the attribute information includes one or more of face information, acquisition time, acquisition location, or image background.
  • the image with the highest priority in the same image group is used as the summary image of the image group.
  • the processing module 601 is further configured to use an image with the highest priority in the same image group as a summary image of the image group, and when an image expansion instruction about the image group is detected To display all the images contained in the image group.
  • the processing module 601 is further configured to obtain the identity information of the receiving terminal after optimizing the gallery according to the priority of each image in the gallery, and according to the identity information To obtain a degree of association between the image included in the optimized gallery and the receiving terminal, and according to the degree of association, determine a share shared to the receiving terminal among the images included in the optimized gallery image;
  • the device further includes:
  • the sending module 602 is configured to send the shared image to the receiving terminal.
  • the sending module 602 is specifically configured to:
  • the processing module 601 is further configured to establish a WIFI point-to-point communication connection with the receiving terminal before acquiring the identity information of the receiving terminal.
  • each module may also correspond to the corresponding description of the embodiments shown in FIG. 1, FIG. 2, and FIG. 4.
  • each functional module in the embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules.
  • FIG. 7 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application.
  • the terminal device 700 may include a baseband chip 110, a memory 115 (one or more computer-readable storage media), a radio frequency (RF) module 116, and a peripheral system 117. These components can communicate on one or more communication buses 114.
  • RF radio frequency
  • the peripheral system 117 is mainly used to implement the interaction function between the terminal device 700 and a user / external environment, and mainly includes input and output devices of the terminal device 700.
  • the peripheral system 117 may include at least one of a touch screen controller 118, a camera controller 119, an audio controller 120, and a sensor management module 121.
  • Each controller may be coupled to a corresponding peripheral device (such as a touch screen 123, a camera 124, an audio circuit 125, and a sensor 126).
  • the touch screen 123 may be a touch screen configured with a self-capacitive floating touch panel, or a touch screen configured with an infrared type floating touch panel.
  • the camera 124 may be a 3D camera. It should be noted that the peripheral system 117 may further include other I / O peripherals.
  • the baseband chip 110 may integrate: one or more processors 111, a clock module 112, and a power management module 113.
  • the clock module 112 integrated in the baseband chip 110 is mainly used to generate a clock required for data transmission and timing control for the processor 111.
  • the power management module 113 integrated in the baseband chip 110 is mainly used to provide a stable, high-precision voltage for the processor 111, the radio frequency module 116, and peripheral systems.
  • a radio frequency (RF) module 116 is used to receive and send radio frequency signals, and mainly integrates a receiver and a transmitter of the terminal device 700.
  • a radio frequency (RF) module 116 communicates with a communication network and other communication devices through radio frequency signals.
  • the radio frequency (RF) module 116 may include, but is not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc.
  • the radio frequency (RF) module 116 may be implemented on a separate chip.
  • the memory 115 is coupled to the processor 111 and is configured to store various software programs and / or multiple sets of instructions.
  • the memory 115 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 115 may store an operating system (hereinafter referred to as a system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 115 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more terminal device devices, and one or more network devices.
  • the memory 115 may also store a user interface program.
  • the user interface program can display the content of the application program realistically through a graphical operation interface, and receive user control operations on the application program through input controls such as menus, dialog boxes, and buttons. .
  • the memory 115 may also store one or more application programs. As shown in Figure 7, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
  • social applications such as Facebook
  • image management applications such as photo albums
  • map applications such as Google Maps
  • browsers such as Safari, Google Chrome
  • terminal device 700 is only an example provided in the embodiment of the present application, and the terminal device 700 may have more or fewer components than those shown, may combine two or more components, or may have Different configurations of components are implemented.
  • the terminal device described in the embodiment of the present application may be used to implement part or all of the processes in the method embodiment described in conjunction with FIG. 1, FIG. 2, and FIG. 4.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are an image processing method and apparatus and a terminal device. The method comprises: processing an image analysis factor of an image in an image library by means of a first image analysis algorithm to obtain a first preferred value of the image, the image analysis factor comprising one or more of a geometric factor or a visual factor; processing historical behavior data of the image by means of a second image analysis algorithm to obtain a second preferred value of the image; processing the first preferred value and the second preferred value to obtain the priority of the image; optimizing the image library according to the priority of the images in the image library. An image with which a user satisfies can be screened out by adopting the embodiments of the present application, and optimization efficiency of the image library is efficiently improved.

Description

图像处理方法、装置及终端设备Image processing method, device and terminal equipment 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及图像处理方法、装置及终端设备。The present application relates to the field of image processing technologies, and in particular, to an image processing method, device, and terminal device.
背景技术Background technique
用户可以使用相机随时随地的捕捉生活美好瞬间,记录成美好的回忆,也可以方便的与他人交流分享。在相机的使用过程中,图库膨胀是一个很普遍的问题。例如,用户在使用相机的过程中通过反复取景、拍摄多次等方式获取满意的图片,导致图库产生了大量冗余重复或者低质量的图片。另外,相机的连拍、抓拍或者高动态范围图像(High-Dynamic Range,HDR)合成等功能更是加剧了图库膨胀。图库膨胀给用户的后期浏览和清理带来很大不便,用户在浏览图片的同时需要浏览大量冗余重复或低质的图片,降低用户浏览图库的主观意愿。因此,如何对图库进行优化,以便筛选出用户满意的图片是当前亟需解决的问题。Users can use the camera to capture beautiful moments of life anytime, anywhere, record them as beautiful memories, and also easily share and share with others. In the use of the camera, the expansion of the library is a very common problem. For example, in the process of using the camera, the user obtains satisfactory pictures by repeatedly framing and shooting multiple times, resulting in a large number of redundant or low-quality pictures in the gallery. In addition, the camera's continuous shooting, snapshot, or high-Dynamic Range (HDR) compositing functions have exacerbated the gallery expansion. Expansion of the gallery brings great inconvenience to the user's later browsing and cleaning. The user needs to browse a large number of redundant duplicate or low-quality pictures while browsing the pictures, reducing the subjective willingness of the user to browse the gallery. Therefore, how to optimize the gallery so as to filter out the pictures that the user is satisfied with is a problem that needs to be solved urgently.
发明内容Summary of the invention
本申请实施例提供图像处理方法及装置,基于图像分析因素和用户操作图像的历史行为数据,对图库进行优化,可筛选出用户满意的图像,有效提升图库优化效率。The embodiments of the present application provide an image processing method and device, which optimize the gallery based on image analysis factors and historical behavior data of the user's operation of the image, which can screen out images that the user is satisfied with, and effectively improve the optimization efficiency of the gallery.
第一方面,本申请实施例提供了一种图像处理方法,终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值,图像分析因素包括几何因素或者视觉因素中的一种或者多种;通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值;对第一优选值和第二优选值进行处理,得到图像的优先级;根据图库中各个图像的优先级,对图库进行优化处理。In a first aspect, an embodiment of the present application provides an image processing method. A terminal device processes an image analysis factor of an image in a gallery through a first image analysis algorithm to obtain a first preferred value of the image. The image analysis factor includes a geometric factor or One or more of the visual factors; the historical behavior data of the image is processed by the second image analysis algorithm to obtain the second preferred value of the image; the first preferred value and the second preferred value are processed to obtain the priority of the image Level; optimize the gallery according to the priority of each image in the gallery.
在该实现方式中,终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值,可确保图像的质量较高;终端设备通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值,可确保用户对该图像的倾向较大,则终端设备基于图像分析因素和用户操作图像的历史行为数据,对图库进行优化,可筛选出用户满意的图像,有效提升图库优化效率。In this implementation manner, the terminal device processes the image analysis factors of the images in the gallery through the first image analysis algorithm to obtain the first preferred value of the image, which can ensure the high quality of the image; the terminal device uses the second image analysis algorithm to The historical behavior data of the image is processed to obtain the second preferred value of the image, which can ensure that the user has a greater tendency for the image. The terminal device optimizes the gallery based on the image analysis factors and the historical behavior data of the user's operation of the image, and can be filtered Produce user-satisfied images and effectively improve the efficiency of gallery optimization.
在一种可能的实现方式中,历史行为数据包括以下一种或者多种:对图像进行操作的操作次数;图像在显示屏幕中的显示时长;图像在显示屏幕中的显示次数。In a possible implementation manner, the historical behavior data includes one or more of the following: the number of operations performed on the image; the length of time the image is displayed on the display screen; and the number of times the image is displayed on the display screen.
在该实现方式中,用户对图像进行操作的操作次数较多,或者图像在显示屏幕中的显示时长较长,或者图像在显示屏幕中的显示次数较多,终端设备可以确定用户对该图像的倾向较大,即该图像是用户满意的图像的几率较大。In this implementation manner, the user operates the image more times, or the image is displayed on the display screen for a longer time, or the image is displayed more times on the display screen, and the terminal device may determine the user ’s The tendency is greater, that is, the probability that the image is a user-satisfied image is greater.
在一种可能的实现方式中,终端设备对图像进行操作的操作次数,具体可以为:对图像进行分享的分享次数,对图像进行收藏的收藏次数,对图像进行编辑的编辑次数,或者采集时间在图像的采集时间之后且图像背景与图像的图像背景相同的图像的数量中的一种或者多种。In a possible implementation manner, the number of operations performed on the image by the terminal device may specifically include: the number of times the image is shared, the number of times the image has been favorited, the number of times the image has been edited, or the acquisition time One or more of the number of images after the acquisition time of the image and the image background is the same as the image background of the image.
在一种可能的实现方式中,终端设备根据图库中各个图像的优先级,对图库进行优化 处理的具体方式可以为:根据图库中各个图像的属性信息,对各个图像进行图像聚类,得到至少一个图像组,属性信息包括人脸信息、采集时间、采集地点或者图像背景中的一种或者多种;将同一图像组中优先级最高的图像作为图像组的摘要图像。In a possible implementation manner, the specific method for the terminal device to optimize the gallery according to the priority of each image in the gallery may be: image clustering of each image according to attribute information of each image in the gallery to obtain at least For an image group, the attribute information includes one or more of face information, acquisition time, acquisition location, or image background; the highest priority image in the same image group is used as the summary image of the image group.
在该实现方式中,终端设备根据各个图像的属性信息,对各个图像进行图像聚类,将同一图像组中优先级最高的图像作为该图像组的摘要图像,可优化图像分类,有效提升图库优化效率。In this implementation, the terminal device performs image clustering on each image according to the attribute information of each image, and uses the highest priority image in the same image group as the summary image of the image group, which can optimize image classification and effectively improve the optimization of the gallery effectiveness.
在一种可能的实现方式中,终端设备将同一图像组中优先级最高的图像作为图像组的摘要图像之后,还可以在检测到关于图像组的图像展开指令时,显示图像组所包含的所有图像。In a possible implementation manner, after the terminal device uses the image with the highest priority in the same image group as the summary image of the image group, it can also display all the images contained in the image group when an image expansion instruction about the image group is detected. image.
在一种可能的实现方式中,终端设备根据图库中各个图像的优先级,对图库进行优化处理之后,还可以获取接收终端的身份信息;根据身份信息,获取优化处理后的图库所包含的图像与接收终端之间的关联度;根据关联度,在优化处理后的图库所包含的图像中确定共享至接收终端的共享图像;将共享图像发送给接收终端。In a possible implementation manner, after the terminal device optimizes the gallery according to the priority of each image in the gallery, the terminal device can also obtain the identity information of the receiving terminal; according to the identity information, obtain the optimized image contained in the gallery The degree of association with the receiving terminal; according to the degree of association, determine the shared image shared to the receiving terminal among the images contained in the optimized gallery, and send the shared image to the receiving terminal.
在该实现方式中,终端设备根据身份信息,获取优化处理后的图库所包含的图像与接收终端之间的关联度,根据关联度,在优化处理后的图库所包含的图像中确定共享至接收终端的共享图像,将共享图像发送给接收终端可实现智能化、个性化的群组共享图像,提高图像共享效率。In this implementation, the terminal device obtains the degree of association between the image contained in the optimized gallery and the receiving terminal according to the identity information, and determines the sharing to receive among the images contained in the optimized gallery according to the degree of association. The shared image of the terminal, and sending the shared image to the receiving terminal can realize intelligent and personalized group shared images, and improve the efficiency of image sharing.
在一种可能的实现方式中,终端设备将共享图像发送给接收终端的具体方式可以为:将共享图像的索引信息发送给接收终端,索引信息包括共享图像的图像标识;从接收终端接收缩略图获取请求;响应缩略图获取请求,向接收终端发送共享图像对应的缩略图;从接收终端接收关于目标缩略图的图像获取请求;响应图像获取请求,向接收终端发送目标缩略图对应的目标图像。In a possible implementation manner, the specific manner in which the terminal device sends the shared image to the receiving terminal may be: sending index information of the shared image to the receiving terminal, where the index information includes an image identifier of the shared image; and receiving a thumbnail image from the receiving terminal Acquire the request; respond to the thumbnail acquisition request, send a thumbnail corresponding to the shared image to the receiving terminal; receive the image acquisition request about the target thumbnail from the receiving terminal; respond to the image acquisition request, send the target image corresponding to the target thumbnail to the receiving terminal.
在一种可能的实现方式中,终端设备获取接收终端的身份信息之前,还可以与接收终端之间建立WIFI点对点通信连接。In a possible implementation manner, before the terminal device acquires the identity information of the receiving terminal, it may also establish a WIFI point-to-point communication connection with the receiving terminal.
第二方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时使得终端设备执行上述第一方面所述的任意一种图像处理方法。In a second aspect, an embodiment of the present application provides a computer storage medium that stores a program, and when the program is executed, causes a terminal device to execute any one of the image processing methods described in the first aspect.
第三方面,本申请实施例提供一种终端设备,该终端设备具有实现第一方面所述的图像处理方法示例中终端设备行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元或模块。In a third aspect, an embodiment of the present application provides a terminal device that has a function of implementing the behavior of the terminal device in the image processing method example described in the first aspect. The functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the functions described above.
第四方面,本申请实施例提供一种终端设备,该终端设备可包括处理器和存储器,所述处理器被配置为支持终端设备执行第一方面所述图像处理方法中终端设备相应的功能。所述存储器用于与处理器耦合,其保存终端设备必要的程序指令和数据。In a fourth aspect, an embodiment of the present application provides a terminal device. The terminal device may include a processor and a memory, and the processor is configured to support the terminal device to perform a corresponding function of the terminal device in the image processing method according to the first aspect. The memory is used for coupling with the processor, and it stores program instructions and data necessary for the terminal device.
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute the method described in the first aspect.
第六方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于终端设备实现上述方面中所涉及的功能,例如,生成或处理上述方法中所涉及的数据和/或信息。According to a sixth aspect, an embodiment of the present application provides a chip system. The chip system includes a processor for a terminal device to implement the functions involved in the foregoing aspect, for example, generating or processing data involved in the foregoing method and / or information.
在一个设计方案中,所述芯片系统还包括存储器,所述存储器,用于保存终端设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。In a design solution, the chip system further includes a memory, and the memory is configured to store program instructions and data necessary for the terminal device. The chip system may be composed of chips, and may also include chips and other discrete devices.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例公开的一种图像处理方法的流程示意图;1 is a schematic flowchart of an image processing method disclosed in an embodiment of the present application;
图2是本申请实施例公开的另一种图像处理方法的流程示意图;2 is a schematic flowchart of another image processing method disclosed in an embodiment of the present application;
图3A是本申请实施例公开的一种图像的示意图;3A is a schematic diagram of an image disclosed in an embodiment of the present application;
图3B是本申请实施例公开的另一种图像的示意图;3B is a schematic diagram of another image disclosed in an embodiment of the present application;
图4是本申请实施例公开的另一种图像处理方法的流程示意图;4 is a schematic flowchart of another image processing method disclosed in an embodiment of the present application;
图5A是本申请实施例公开的一种WIFI点对点通信连接的示意图;5A is a schematic diagram of a WIFI point-to-point communication connection disclosed in an embodiment of the present application;
图5B是本申请实施例公开的一种关联度的示意图;FIG. 5B is a schematic diagram of a correlation degree disclosed in an embodiment of the present application; FIG.
图5C是本申请实施例公开的一种共享图像的示意图;5C is a schematic diagram of a shared image disclosed in an embodiment of the present application;
图6是本申请实施例公开的一种图像处理装置的结构示意图;6 is a schematic structural diagram of an image processing apparatus disclosed by an embodiment of the present application;
图7是本申请实施例公开的一种终端设备的结构示意图。FIG. 7 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application.
具体实施方式detailed description
下面结合本申请实施例中的附图对本申请实施例进行描述。The following describes the embodiments of the present application with reference to the drawings in the embodiments of the present application.
本申请实施例中的图像处理方法可以应用于终端设备中,终端设备包括但不限于移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备或者个人用户数字助理等。The image processing method in the embodiment of the present application may be applied to a terminal device. The terminal device includes, but is not limited to, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or an individual user. Digital assistants, etc.
终端设备的图库可以位于存储器中,图库可以存储一个或者多个图像。图像可以包括图片或者视频等。用户在摄像的过程中通常会反复取景或者拍摄多次,终端设备存储了大量冗余重复或者低质量的图像,导致图库膨胀,图库膨胀给用户的后期浏览和清理带来很大不便,用户每次在浏览图片的同时都需要浏览大量冗余重复或低质的图片,浪费用户时间的同时也会降低用户浏览图库的主观意愿。基于上述技术问题,提出了本申请实施例的图像处理方法,终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值,通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值,对第一优选值和第二优选值进行处理,得到图像的优先级,根据图库中各个图像的优先级,对图库进行优化处理,本申请实施例基于图像分析因素和用户操作图像的历史行为数据,对图库进行优化,可筛选出用户满意的图像,有效提升图库优化效率。The terminal device's gallery can be located in the memory, and the gallery can store one or more images. Images can include pictures or videos. Users often view repeatedly or shoot multiple times during the video recording process. The terminal device stores a large number of redundant or low-quality images, which leads to the expansion of the gallery. The expansion of the gallery brings great inconvenience to the user's later browsing and cleaning. At the same time, when browsing pictures, you need to browse a lot of redundant or low-quality pictures, which wastes user time and reduces the subjective willingness of users to browse the gallery. Based on the above technical problems, an image processing method according to an embodiment of the present application is proposed. The terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image. The historical behavior data of the image is processed to obtain the second preferred value of the image, the first preferred value and the second preferred value are processed to obtain the priority of the image, and the gallery is optimized based on the priority of each image in the gallery. The embodiment of the present application optimizes a gallery based on image analysis factors and historical behavior data of user-operated images, and can filter out images that are satisfactory to users, effectively improving the optimization efficiency of the gallery.
本申请实施例中的图像分析因素可以包括几何因素或者视觉因素中的一种或者多种。几何因素可以基于摄影美学的构图规则得到,几何因素可以为三分法、对角线规则或者平衡性等。视觉因素可以包括对比度、曝光度或者色彩分布等。本申请实施例基于图像分析因素可以筛选出质量较高的图像。The image analysis factors in the embodiments of the present application may include one or more of geometric factors or visual factors. The geometric factors can be obtained based on the composition rules of photographic aesthetics, and the geometric factors can be the rule of threes, the rule of diagonals, or the balance. Visual factors can include contrast, exposure, or color distribution. The embodiments of the present application can screen out high-quality images based on image analysis factors.
本申请实施例中图像的历史行为数据可以包括以下一种或者多种:对图像进行操作的 操作次数,图像在显示屏幕中的显示时长,图像在显示屏幕中的显示次数。本申请实施例基于图像的历史行为数据可以对用户倾向性进行预测,即预测用户对该图像的满意度。The historical behavior data of the image in the embodiment of the present application may include one or more of the following: the number of operations performed on the image, the length of time the image is displayed on the display screen, and the number of times the image is displayed on the display screen. The embodiment of the present application can predict the user's propensity based on the historical behavior data of the image, that is, predict the user's satisfaction with the image.
本申请实施例对图库进行优化处理的方式可以为:按照图像的优先级从高到低的顺序对图像进行排序,显示排序后的图像;或者将相似度较高的图像中优先级较低的图像进行删除;或者推送优先级较高的图像,等等。The method for optimizing the gallery in the embodiment of the present application may be: sort the images according to the priority of the images from high to low, and display the sorted images; or lower priority images among the images with higher similarity Delete images; or push higher priority images, etc.
请参见图1,图1是本申请实施例提供的一种图像处理方法,该方法用于对图库中的图像进行优化处理,该方法包括但不限于如下步骤:Please refer to FIG. 1. FIG. 1 is an image processing method provided by an embodiment of the present application. The method is used to optimize the images in a gallery. The method includes, but is not limited to, the following steps:
步骤S101:终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值。Step S101: The terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image.
终端设备可以获取图库中的图像,通过第一图像分析算法对该图像的图像分析因素进行处理,得到图像的第一优选值。其中,第一图像分析算法可以为几何因素分析算法或者视觉因素分析算法中的一种或者多种,图像分析因素可以包括几何因素或者视觉因素中的一种或者多种。图库中的图像可以是终端设备通过传感器组件、通信组件或者互联网获取并存储至图库中的,例如传感器组件可以为摄像头或者扫描仪等,终端设备可以通过摄像头对目标物体进行拍摄,得到图像,或者终端设备可以通过扫描仪对目标物体进行扫描,得到图像,又如通信组件为蓝牙、红外线、近场通信(Near Field Communication,NFC)或者WIFI等,终端设备可以通过通信组件与发送终端建立通信连接,通过与发送终端建立的通信连接,接收来自发送终端的图像。The terminal device can acquire the image in the gallery, and process the image analysis factor of the image through the first image analysis algorithm to obtain the first preferred value of the image. The first image analysis algorithm may be one or more of a geometric factor analysis algorithm or a visual factor analysis algorithm, and the image analysis factor may include one or more of a geometric factor or a visual factor. The image in the gallery can be obtained by the terminal device through the sensor component, communication component or the Internet and stored in the gallery. For example, the sensor component can be a camera or a scanner. The terminal device can take a picture of the target object through the camera to obtain an image, or The terminal device can scan the target object through the scanner to obtain an image. For example, the communication component is Bluetooth, infrared, Near Field Communication (NFC) or WIFI. The terminal device can establish a communication connection with the sending terminal through the communication component. Receive images from the sending terminal through the communication connection established with the sending terminal.
终端设备可以获取图库中的所有图像,针对每一个图像,终端设备可以执行本申请实施例中的步骤S101-S104。或者,终端设备可以每间隔预设时长获取图库中的一个或者多个图像,针对每一个图像,终端设备可以执行本申请实施例中的步骤S101-S104。或者,终端设备可以每间隔预设时长获取图库中的一个或者多个未进行优化处理的图像,针对每一个未进行优化处理的图像,终端设备可以执行本申请实施例中的步骤S101-S104。The terminal device can acquire all the images in the gallery. For each image, the terminal device can perform steps S101-S104 in the embodiment of the present application. Alternatively, the terminal device may acquire one or more images in the gallery every preset time interval. For each image, the terminal device may perform steps S101-S104 in the embodiment of the present application. Alternatively, the terminal device may acquire one or more images that have not been optimized in the gallery every preset time interval. For each image that is not optimized, the terminal device may perform steps S101-S104 in the embodiment of the present application.
在一种可能的实现方式中,如果第一图像分析算法为几何因素分析算法,终端设备可以通过该几何因素分析算法对图库中图像的几何因素进行处理,得到该图像的几何因素值,将该几何因素值作为第一优选值。示例性的,几何因素分析算法可以通过如下公式表示:In a possible implementation manner, if the first image analysis algorithm is a geometric factor analysis algorithm, the terminal device can process the geometric factors of the images in the gallery through the geometric factor analysis algorithm to obtain the geometric factor value of the image, and The geometric factor value is taken as the first preferred value. For example, the geometric factor analysis algorithm can be expressed by the following formula:
Figure PCTCN2019093846-appb-000001
Figure PCTCN2019093846-appb-000001
其中,E a表示图像的几何因素值,ω RT表示几何因素为三分法的权值,E RT表示几何因素三分法,ω DA表示几何因素为对角线规则的权值,E DA表示几何因素对角线规则,ω VB表示几何因素为平衡性的权值,E VB表示几何因素为平衡性。 Among them, E a represents the geometric factor value of the image, ω RT represents the geometric factor is the weight of the trisection method, E RT represents the geometric factor three-point method, ω DA represents the geometric factor is the diagonal rule weight, and E DA represents The diagonal of the geometric factor is regular, ω VB means the geometric factor is the balance weight, and E VB means the geometric factor is the balance.
在一种可能的实现方式中,如果第一图像分析算法为视觉因素分析算法,终端设备可以通过该视觉因素分析算法对图库中图像的视觉因素进行处理,得到该图像的视觉因素值,将该视觉因素值作为第一优选值。In a possible implementation manner, if the first image analysis algorithm is a visual factor analysis algorithm, the terminal device may process the visual factor of the image in the gallery through the visual factor analysis algorithm to obtain the visual factor value of the image, and The visual factor value is taken as the first preferred value.
在一种可能的实现方式中,如果第一图像分析算法包括几何因素分析算法和视觉因素分析算法,终端设备可以通过该几何因素分析算法对图库中图像的几何因素进行处理,得到几何因素值,终端设备还可以通过该视觉因素分析算法对图库中图像的视觉因素进行处 理,得到视觉因素值,对几何因素值和视觉因素值进行加权求和,得到该图像的第一优选值。示例性的,如果几何因素值为E a,视觉因素值为E c,几何因素值的权重为α,视觉因素值的权重为β,则终端设备可以通过α*E a+β*E c,得到该图像的第一优选值。 In a possible implementation manner, if the first image analysis algorithm includes a geometric factor analysis algorithm and a visual factor analysis algorithm, the terminal device may process the geometric factors of the images in the gallery through the geometric factor analysis algorithm to obtain the geometric factor value. The terminal device may also use the visual factor analysis algorithm to process the visual factors of the images in the gallery to obtain the visual factor values, and perform a weighted sum of the geometric factor values and the visual factor values to obtain the first preferred value of the image. Exemplarily, if the value of the geometric factor is E a , the value of the visual factor is E c , the weight of the geometric factor value is α, and the weight of the visual factor value is β, the terminal device can pass α * E a + β * E c , A first preferred value of the image is obtained.
步骤S102:终端设备通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值。Step S102: The terminal device processes the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image.
终端设备还可以通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值。本申请实施例并不限定步骤S101和步骤S102执行的先后顺序,例如,终端设备可以通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值之后,通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值。又如,终端设备可以通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值之后,通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值。又如,终端设备可以同时通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值,并通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值。The terminal device may also process the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image. The embodiment of this application does not limit the sequence of execution of steps S101 and S102. For example, the terminal device may process the image analysis factors of the images in the gallery by using the first image analysis algorithm, and obtain the first preferred value of the image. Two image analysis algorithms process the historical behavior data of the image to obtain the second preferred value of the image. For another example, the terminal device may process the historical behavior data of the image by using the second image analysis algorithm to obtain the second preferred value of the image, and then process the image analysis factors of the image in the gallery through the first image analysis algorithm to obtain the image The first preferred value. For another example, the terminal device can simultaneously process the image analysis factors of the images in the gallery through the first image analysis algorithm to obtain the first preferred value of the image, and process the historical behavior data of the image through the second image analysis algorithm to obtain the image. The second preferred value.
其中,历史行为数据可以包括以下一种或者多种:对图像进行操作的操作次数;图像在显示屏幕中的显示时长;图像在显示屏幕中的显示次数。The historical behavior data may include one or more of the following: the number of operations performed on the image; the length of time the image is displayed on the display screen; and the number of times the image is displayed on the display screen.
其中,对图像进行操作的操作次数,具体可以为:对图像进行分享的分享次数,对图像进行收藏的收藏次数,对图像进行编辑的编辑次数,或者采集时间在图像的采集时间之后且图像背景与图像的图像背景相同的图像的数量中的一种或者多种。对图像进行编辑的编辑次数可以指的是:响应用户的操作对图像进行放大、缩小、参数调整或者标记等编辑的编辑次数,参数调整可以为对图像的尺寸、背景色、阴影或者色调等参数的调整。The number of operations performed on the image may specifically include: the number of times the image is shared, the number of times the image has been bookmarked, the number of edits performed on the image, or the acquisition time is after the image acquisition time and the image background One or more of the same number of images as the image background of the image. The number of edits to edit an image can refer to the number of edits to enlarge, reduce, adjust parameters, or mark the image in response to user operations. The parameter adjustment can be parameters such as the size, background color, shadow, or hue of the image Adjustment.
在一种可能的实现方式中,如果图像的历史行为数据为对图像进行操作的操作次数,终端设备可以确定用户对图像进行操作的操作次数越多,表明用户对该图像的倾向越大。终端设备可以通过如下公式获取图像的操作值,将操作值作为该图像的第二优选值:In a possible implementation manner, if the historical behavior data of the image is the number of operations performed on the image, the terminal device may determine that the more the number of operations performed by the user on the image indicates that the user's tendency toward the image is greater. The terminal device can obtain the operation value of the image by using the following formula, and use the operation value as the second preferred value of the image:
E 0=f(ZX 0) E 0 = f (ZX 0 )
其中,E 0表示图像的操作值,Z>0,X 0表示对图像进行操作的操作次数。示例性的,f(ZX 0)可以为正比例函数。 Among them, E 0 represents the operation value of the image, Z> 0, and X 0 represents the number of operations performed on the image. Exemplarily, f (ZX 0 ) may be a proportional function.
在一种可能的实现方式中,如果图像的历史行为数据为对图像在显示屏幕中的显示时长,终端设备可以确定图像在显示屏幕中的显示时长越长,表明用户对该图像的倾向越大。图像在显示屏幕中的显示时长可以指的是:在预设时间段内图像在显示屏幕中多次显示时显示时长的总和,或者在预设时间段内图像在显示屏幕中多次显示时的最长显示时长。终端设备可以通过如下公式获取图像的显示时间值,将显示时间值作为该图像的第二优选值:In a possible implementation manner, if the historical behavior data of the image is the display duration of the image on the display screen, the terminal device may determine that the longer the display duration of the image on the display screen is, the greater the tendency of the user to the image. . The display duration of the image on the display screen can refer to the sum of the display duration of the image when it is displayed on the display screen multiple times in the preset time period, or the sum of the display duration of the image when it is displayed on the display screen multiple times in the preset time period. Maximum display duration. The terminal device can obtain the display time value of the image by using the following formula, and uses the display time value as the second preferred value of the image:
E 1=f(t 1X 1) E 1 = f (t 1 X 1 )
其中,E 1表示图像的显示时间值,t 1>0,X 1表示图像在显示屏幕中的显示时长。示例性的,f(t 1X 1)可以为正比例函数。 Among them, E 1 represents the display time value of the image, t 1 > 0, and X 1 represents the display time of the image on the display screen. Exemplarily, f (t 1 X 1 ) may be a proportional function.
在一种可能的实现方式中,如果图像的历史行为数据为对图像在显示屏幕中的显示次数,终端设备可以确定图像在显示屏幕中的显示次数越多,表明用户对该图像的倾向越大。图像在显示屏幕中的显示次数可以指的是:在预设时间段内图像在显示屏幕中多次显示时 显示次数的总和。终端设备可以通过如下公式获取图像的显示次数值,将显示次数值作为该图像的第二优选值:In a possible implementation manner, if the historical behavior data of the image is the number of times the image is displayed on the display screen, the terminal device may determine that the more the image is displayed on the display screen, the greater the user ’s tendency towards the image . The number of times the image is displayed on the display screen may refer to the total number of times that the image is displayed multiple times on the display screen within a preset period of time. The terminal device can obtain the number of times the image is displayed by using the following formula, and use the value of the number of times of display as the second preferred value of the image:
E 2=f(t 2X 2) E 2 = f (t 2 X 2 )
其中,E 2表示图像的显示次数值,t 2>0,X 2表示图像在显示屏幕中的显示次数。示例性的,f(t 2X 2)可以为正比例函数。 Among them, E 2 represents the number of times the image is displayed, t 2 > 0, and X 2 represents the number of times the image is displayed on the display screen. Exemplarily, f (t 2 X 2 ) may be a proportional function.
在一种可能的实现方式中,如果历史行为数据为用户选择该图像作为摘要图像,终端设备可以确定该图像的选择值为1,将该选择值作为该图像的第二优选值。In a possible implementation manner, if the historical behavior data is that the user selects the image as a summary image, the terminal device may determine that the selection value of the image is 1, and use the selection value as the second preferred value of the image.
如果图像的历史行为数据包括对图像进行操作的操作次数,图像在显示屏幕中的显示时长,图像在显示屏幕中的显示次数中的两种或者两种以上,终端设备可以通过第二图像分析算法对图像的各个历史行为数据进行处理,得到处理结果,将处理结果进行加权求和,得到图像的第二优选值。示例性的,如果历史行为数据包括对图像进行分享的分享次数,对图像进行编辑的编辑次数,以及图像在显示屏幕中的显示时长,终端设备通过各个历史行为数据对应的第二图像分析算法对该历史行为数据进行处理,得到分享次数值,编辑次数值以及显示时长值,终端设备可以将分享次数值与该分享次数值对应的权重相乘,得到第一乘积,将编辑次数值与该编辑次数值对应的权重相乘,得到第二乘积,将显示时长值与该显示时长值对应的权重相乘,得到第三乘积,将第一乘积、第二乘积以及第三乘积相加,得到该图像的第二优选值。If the historical behavior data of the image includes the number of operations performed on the image, the length of time the image is displayed on the display screen, and two or more of the number of times the image is displayed on the display screen, the terminal device may use a second image analysis algorithm Each historical behavior data of the image is processed to obtain a processing result, and the processing result is weighted and summed to obtain a second preferred value of the image. For example, if the historical behavior data includes the number of times the image is shared, the number of edits to edit the image, and the length of time the image is displayed on the display screen, the terminal device uses the second image analysis algorithm corresponding to each historical behavior data to The historical behavior data is processed to obtain the number of times of sharing, the number of times of editing, and the value of display duration. The terminal device can multiply the value of the number of times of sharing and the weight corresponding to the number of times of sharing to obtain a first product, and the number of times of editing and the value Multiply the weights corresponding to the number of times to obtain a second product. Multiply the weight of the display duration by the weight of the display duration to obtain a third product. Add the first product, the second product, and the third product to obtain the product. The second preferred value of the image.
步骤S103:终端设备对第一优选值和第二优选值进行处理,得到图像的优先级。Step S103: The terminal device processes the first preferred value and the second preferred value to obtain the priority of the image.
终端设备获取到该图像的第一优选值和第二优选值之后,可以对第一优选值和第二优选值进行加权求和,得到图像的优先级。例如,终端设备可以将第一优选值与该第一优选值对应的权重相乘,得到第四乘积,将第二优选值与该第二优选值对应的权重相乘,得到第五乘积,将第四乘积和第五乘积相加,得到该图像的优先级。After the terminal device obtains the first preferred value and the second preferred value of the image, it can perform weighted summation on the first preferred value and the second preferred value to obtain the priority of the image. For example, the terminal device may multiply the weight corresponding to the first preference value by the first preference value to obtain a fourth product, multiply the weight value corresponding to the second preference value by the second preference value to obtain a fifth product, and The fourth product and the fifth product are added to obtain the priority of the image.
步骤S104:终端设备根据图库中各个图像的优先级,对图库进行优化处理。Step S104: The terminal device optimizes the gallery according to the priority of each image in the gallery.
在一种可能的实现方式中,终端设备可以获取相似度大于预设比例阈值的图像,将获取到的图像中优先级较低的图像删除。在本申请实施例中,用户通过反复取景或者连拍等方式拍摄了多张重复图像,终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,通过第二图像分析算法对图像的历史行为数据进行处理,可以确定优先级较高的图像的图像质量较高且用户对该图像的倾向较大,则终端设备可以将相似度大于预设比例阈值的图像中优先级较高的图像存储至终端设备的存储器中,删除相似度大于预设比例阈值的图像中优先级较低的图像,有效提升存储器的存储空间,并有效提升图库优化效率。In a possible implementation manner, the terminal device may acquire an image with a similarity greater than a preset ratio threshold, and delete an image with a lower priority from the acquired image. In the embodiment of the present application, the user has taken multiple repeated images by repeatedly framing or continuous shooting. The terminal device processes the image analysis factors of the images in the gallery by using the first image analysis algorithm, and the images are processed by the second image analysis algorithm. The historical behavior data can be processed to determine that the image with a higher priority has a higher image quality and the user has a higher tendency for the image, and the terminal device can compare the image with a higher priority in an image with a similarity greater than a preset ratio threshold. The image is stored in the memory of the terminal device, and the lower-priority image among the images whose similarity is greater than the preset ratio threshold is deleted, which effectively improves the storage space of the memory and effectively improves the library optimization efficiency.
在一种可能的实现方式中,终端设备可以按照图像的优先级从大到小的顺序,对图库中的图像进行排序,进而显示排序后的图像。通过本申请实施例,终端设备可以将优先级较高的图像显示在前面,以便用户优先浏览到的图像是用户所需要的图像,有效提升图库优化效率。In a possible implementation manner, the terminal device may sort the images in the gallery according to the priority of the images from large to small, and then display the sorted images. Through the embodiments of the present application, the terminal device can display a higher priority image in front so that the image that the user preferentially browses is an image required by the user, which effectively improves the optimization efficiency of the gallery.
在图1所描述的方法中,终端设备通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到图像的第一优选值,通过第二图像分析算法对图像的历史行为数据进行处理,得到图像的第二优选值,对第一优选值和第二优选值进行处理,得到图像的优先级,根据图库中各个图像的优先级,对图库进行优化处理,可筛选出用户满意的图像,有效提 升图库优化效率。In the method described in FIG. 1, the terminal device processes the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image, and processes the historical behavior data of the image through a second image analysis algorithm. To obtain the second preferred value of the image, to process the first preferred value and the second preferred value, to obtain the priority of the image, and to optimize the gallery according to the priority of each image in the gallery, and to filter out the images that the user is satisfied with , Effectively improve the efficiency of library optimization.
基于图1所示的图像处理方法,请参见图2,图2是本申请实施例提供的一种图像处理方法,该方法用于对优化处理后的图库中的图像进行聚类,该方法包括但不限于如下步骤:Based on the image processing method shown in FIG. 1, please refer to FIG. 2. FIG. 2 is an image processing method provided by an embodiment of the present application. The method is used for clustering images in an optimized gallery. The method includes: But not limited to the following steps:
步骤S201:终端设备根据图库中各个图像的属性信息,对各个图像进行图像聚类,得到至少一个图像组。Step S201: The terminal device performs image clustering on each image according to attribute information of each image in the gallery to obtain at least one image group.
终端设备可以根据图库中各个图像的属性信息,对各个图像进行图像聚类,得到至少一个图像组。或者,终端设备可以根据优化处理后的图库中各个图像的属性信息,对各个图像进行图像聚类,得到至少一个图像组。其中,属性信息可以包括人脸信息、采集时间、采集地点或者图像背景中的一种或者多种。The terminal device may perform image clustering on each image according to attribute information of each image in the gallery to obtain at least one image group. Alternatively, the terminal device may perform image clustering on each image according to the attribute information of each image in the optimized gallery to obtain at least one image group. The attribute information may include one or more of face information, acquisition time, acquisition location, or image background.
在一种可能的实现方式中,终端设备可以获取图库中的所有图像,使用预设图像聚类算法,对各个图像的聚类因素进行处理,以实现场景聚类。其中,预设图像聚类算法可以包括kmeams算法(基于划分的聚类算法)、卷积神经网络(Convolutional Neural Network,CNN)算法或者深度残差网络(Deep residual network,ResNet)算法等。聚类因素可以包括图像的静态特征和传感器数据,静态特征可以包括颜色直方图或者结构特征等,传感器数据可以包括全球定位系统(Global Positioning System,GPS)采集到的终端设备获取图像的位置信息或者时间同步系统采集到的终端设备获取图像的时间信息等。以图3A所示的图像的示意图为例,终端设备可以将颜色直方图相似的图像从属于同一个图像组中,将采集地点为同一地点的图像从属于同一个图像组中,将采集时间为预设时间段内的图像从属于同一个图像组中。In a possible implementation manner, the terminal device can obtain all the images in the gallery and use a preset image clustering algorithm to process the clustering factors of each image to achieve scene clustering. The preset image clustering algorithm may include a kmeams algorithm (a clustering algorithm based on partitioning), a Convolutional Neural Network (CNN) algorithm, or a Deep Residual Network (ResNet) algorithm. The clustering factors may include static features of the image and sensor data, static features may include color histograms or structural features, and the sensor data may include location information obtained by the terminal device acquired by the Global Positioning System (GPS) or The terminal equipment collected by the time synchronization system acquires the time information of the image and so on. Taking the schematic diagram of the image shown in FIG. 3A as an example, the terminal device may belong to the same image group for images with similar color histograms, and belong to the same image group for images collected at the same location, and set the acquisition time to The images in the preset time period belong to the same image group.
在一种可能的实现方式中,终端设备可以使用层次聚类算法对颜色直方图进行聚类,以实现场景聚类。In a possible implementation manner, the terminal device may use a hierarchical clustering algorithm to cluster the color histogram to implement scene clustering.
在一种可能的实现方式中,终端设备可以对聚类的结果进行修正,以提高聚类的准确性。In a possible implementation manner, the terminal device may modify the clustering result to improve the accuracy of the clustering.
在一种可能的实现方式中,终端设备还可以对图库中的各个图像进行人脸识别,将包含有相同人脸的图像存储至同一图像组中。In a possible implementation manner, the terminal device may also perform face recognition on each image in the gallery, and store images containing the same face in the same image group.
步骤S202:终端设备获取同一图像组中各个图像的优先级。Step S202: The terminal device acquires priorities of each image in the same image group.
终端设备得到至少一个图像组之后,可以获取同一图像组中各个图像的优先级,图像的优先级的获取方式可以参照图1所述的图像处理方法,本申请实施例不再赘述。After the terminal device obtains at least one image group, it can obtain the priority of each image in the same image group. For the manner of obtaining the priority of the image, refer to the image processing method described in FIG. 1, which is not described in the embodiment of this application.
步骤S203:终端设备将同一图像组中优先级最高的图像作为该图像组的摘要图像。Step S203: The terminal device uses the image with the highest priority in the same image group as the digest image of the image group.
针对同一图像组,终端设备可以创建分级目录,将该图像组中优先级最高的图像作为该图像组的摘要图像,即将优先级最高的图像作为一级目录,该图像组中的其他图像作为二级目录。例如,终端设备通过场景聚类得到多个图像组时,可以建立场景分级目录,即对于同一场景的图像,将优先级最高的图像作为包含该场景的图像中的一级目录。又如,终端设备通过人物聚类得到多个图像组时,可以建立人物分级目录,即对于同一人物的图像,将优先级最高的图像作为包含该人物的图像中的一级目录。通过本申请实施例,可在图库的一级目录中仅显示各图像组中优先级最高的图像,避免用户在图库所包含的所有图 像中查找所需图像,减小图像查找时延,有效提升图库优化效率。For the same image group, the terminal device can create a hierarchical directory, and use the image with the highest priority in the image group as the summary image of the image group, that is, the image with the highest priority as the first-level directory, and other images in the image group as two Level directory. For example, when a terminal device obtains multiple image groups through scene clustering, a scene hierarchical directory may be established, that is, for the images of the same scene, the image with the highest priority is used as the first-level directory among the images containing the scene. For another example, when the terminal device obtains multiple image groups through character clustering, a hierarchical classification of people can be established, that is, for images of the same person, the image with the highest priority is used as the first-level directory among the images containing the person. According to the embodiment of the present application, only the highest priority image in each image group can be displayed in the first-level catalog of the gallery, which prevents the user from searching for all the images contained in the gallery, reduces the image search delay, and effectively improves Gallery optimization efficiency.
在一种可能的实现方式中,终端设备检测到关于图像组的图像展开指令时,可以显示图像组所包含的所有图像。例如,终端设备可以在摘要图像中显示一个具有图像展开功能的虚拟按键,终端设备检测到用户点击该虚拟按键时,可以生成关于该摘要图像所属图像组的图像展开指令,并响应该图像展开指令显示该图像组所包含的的所有图像。又如,终端设备检测到用户对摘要图像的操作时,可以检测用户提交的操作与图像展开指令对应的操作是否匹配,如果用户提交的操作与图像展开指令对应的操作匹配,终端设备可以生成该操作对应的图像展开指令,并响应该图像展开指令显示该图像组所包含的的所有图像。其中,图像展开指令对应的操作可以是用户设置的,也可以是终端设备出厂时默认设置的。图像展开指令对应的操作可以是长按、双击或者多点触摸摘要图像,还可以是在摘要图像上进行滑动得到的滑动轨迹。图像展开指令对应的操作还可以是用户在显示屏幕中进行滑动得到的滑动轨迹,不同图像组对应的滑动轨迹各不相同,终端设备检测到用户提交的滑动轨迹时,可以将用户提交的滑动轨迹与各个图像展开指令对应的滑动轨迹进行比较,生成与用户提交的滑动轨迹相匹配的的滑动轨迹对应的图像展开指令,并响应该图像展开指令显示该滑动轨迹对应的图像组所包含的的所有图像。In a possible implementation manner, when the terminal device detects the image expansion instruction about the image group, it can display all the images included in the image group. For example, the terminal device can display a virtual button with an image expansion function in the summary image. When the terminal device detects that the user clicks the virtual button, it can generate an image expansion instruction about the image group to which the summary image belongs, and respond to the image expansion instruction. Display all images contained in this image group. For another example, when the terminal device detects a user operation on the digest image, it can detect whether the operation submitted by the user matches the operation corresponding to the image expansion instruction. If the operation submitted by the user matches the operation corresponding to the image expansion instruction, the terminal device can generate the operation Operate the corresponding image expansion instruction, and display all images included in the image group in response to the image expansion instruction. The operation corresponding to the image expansion instruction may be set by a user, or may be set by default when the terminal device is shipped from the factory. The operation corresponding to the image expansion instruction may be a long-press, double-click, or multi-touch on the summary image, or a sliding track obtained by sliding on the summary image. The operation corresponding to the image expansion instruction can also be the sliding track obtained by the user sliding on the display screen. The sliding track corresponding to different image groups is different. When the terminal device detects the sliding track submitted by the user, the user can send the sliding track submitted by the user. Compare with the slide trajectory corresponding to each image expansion instruction, generate an image expansion instruction corresponding to the slide trajectory that matches the slide trajectory submitted by the user, and respond to the image expansion instruction to display all the images contained in the image group corresponding to the slide trajectory. image.
以图3B所示的图像的示意图为例,在摘要图像的左上方显示有虚拟按键,虚拟按键中显示的数字可以表示该摘要图像所属图像组所包含的的图像的数量。终端设备检测到用户点击该虚拟按键时,可以生成关于该摘要图像所属图像组的图像展开指令,并响应该图像展开指令显示该图像组所包含的的所有图像。Taking the schematic diagram of the image shown in FIG. 3B as an example, a virtual button is displayed on the upper left of the summary image, and the number displayed in the virtual button may indicate the number of images included in the image group to which the summary image belongs. When the terminal device detects that the user clicks the virtual button, it can generate an image expansion instruction about the image group to which the summary image belongs, and display all images included in the image group in response to the image expansion instruction.
在图2所描述的方法中,终端设备根据各个图像的属性信息,对各个图像进行图像聚类,得到至少一个图像组,获取同一图像组中各个图像的优先级,将同一图像组中优先级最高的图像作为该图像组的摘要图像,可优化图像分类,有效提升图库优化效率。In the method described in FIG. 2, the terminal device performs image clustering on each image according to the attribute information of each image to obtain at least one image group, obtains the priority of each image in the same image group, and prioritizes the same image group. The highest image is used as the summary image of the image group, which can optimize the image classification and effectively improve the library optimization efficiency.
基于图2所示的图像处理方法,请参见图4,图4是本申请实施例提供的一种图像处理方法,该方法用于对优化处理后的图像进行智能共享,该方法包括但不限于如下步骤:Based on the image processing method shown in FIG. 2, please refer to FIG. 4. FIG. 4 is an image processing method provided by an embodiment of the present application. The method is used for intelligently sharing an optimized processed image. The method includes, but is not limited to The following steps:
步骤S401:终端设备获取接收终端的身份信息。Step S401: The terminal device acquires the identity information of the receiving terminal.
终端设备可以获取接收终端的身份信息,身份信息可以用于标识接收终端与终端设备之间的关系,例如家属、同事或者朋友等,家属进一步可以包括配偶、父母或者兄弟姐妹等,同事进一步可以包括总经理、主管、部长或者下属等,朋友进一步可以包括同性朋友或者异性朋友等,身份信息还可以包括使用接收终端的用户的头像信息。The terminal device can obtain the identity information of the receiving terminal. The identity information can be used to identify the relationship between the receiving terminal and the terminal device, such as a family member, a colleague, or a friend. The family member may further include a spouse, a parent, or a sibling. The colleague may further include General manager, supervisor, minister or subordinate, etc. Friends may further include same-sex friends or heterosexual friends, etc. The identity information may also include avatar information of the user who uses the receiving terminal.
在一种可能的实现方式中,终端设备可以与接收终端之间建立WIFI点对点通信连接,通过与接收终端之间的WIFI点对点通信连接,获取接收终端的身份信息。例如,终端设备可以使用WIFI Direct组网,建立多终端家庭域组网,实现以点对点形式互连,通过点对点形式互连传输图像,可提高图像的传输速度和传输距离。其中,WIFI Direct标准是指允许无线网络中的设备无需通过无线路由器即可相互连接,WIFI Direct组网的拓扑结构可以是一对一或者一对多的形式。以图5A所示的WIFI点对点通信连接的示意图为例,终端设备可以通过WIFI Direct的“设备发现功能”查找到接收终端,终端设备可以主动向接收终端发起邀请建立通信连接,终端设备与接收终端建立通信连接之后,终端设备与接收终端自 动建立一个群组,终端设备可以和接收终端协商确定用于管理该群组的设备为终端设备或者接收终端,用于管理该群组的设备可以将其他设备加入到该群组中,并设置该群组为临时群组或者永久群组。如果该群组为临时群组,则预设时间段之后,用于管理该群组的设备将删除该群组。如果该群组为永久群组,则用于管理该群组的设备在接收到对该群组的删除指令时删除该群组。In a possible implementation manner, the terminal device may establish a WIFI point-to-point communication connection with the receiving terminal, and obtain the identity information of the receiving terminal through the WIFI point-to-point communication connection with the receiving terminal. For example, a terminal device can use WIFI Direct networking to establish a multi-terminal home domain networking to achieve point-to-point interconnection and image transmission through point-to-point interconnection, which can increase the transmission speed and distance of the image. Among them, the WIFI Direct standard means that devices in a wireless network can be connected to each other without a wireless router. The topology of the WIFI Direct network can be one-to-one or one-to-many. Taking the schematic diagram of the WIFI point-to-point communication connection shown in FIG. 5A as an example, the terminal device can find the receiving terminal through the "device discovery function" of WIFIDirect, and the terminal device can actively initiate an invitation to the receiving terminal to establish a communication connection, and the terminal device and the receiving terminal After the communication connection is established, the terminal device and the receiving terminal automatically establish a group. The terminal device can negotiate with the receiving terminal to determine whether the device used to manage the group is a terminal device or a receiving terminal. The device used to manage the group can change other devices. The device joins the group and sets the group as a temporary group or a permanent group. If the group is a temporary group, the device used to manage the group will delete the group after a preset period of time. If the group is a permanent group, the device for managing the group deletes the group when it receives a delete instruction for the group.
另外,本申请实施例包含但不仅限于与接收终端之间建立WIFI点对点通信连接,也可以与接收终端之间建立蓝牙、红外线、近场通信(Near Field Communication,NFC)或者WIFI路由组网等通信连接,以与接收终端进行通信,例如获取接收终端的身份信息。In addition, the embodiments of the present application include, but are not limited to, establishing a WIFI point-to-point communication connection with the receiving terminal, and can also establish Bluetooth, infrared, Near Field Communication (NFC) or WIFI routing networking with the receiving terminal. Connect to communicate with the receiving terminal, for example, to obtain the identity information of the receiving terminal.
步骤S402:终端设备根据身份信息,获取优化处理后的图库所包含的图像与接收终端之间的关联度。Step S402: The terminal device obtains, according to the identity information, the degree of association between the image included in the optimized gallery and the receiving terminal.
终端设备可以根据身份信息,获取优化处理后的图库所包含的图像与接收终端之间的关联度,关联度可以大于等于0且小于等于1。例如,终端设备通过图2所示的图像处理方法对图库中的图像进行人物聚类之后,用户可以对图像中所包含的的人物进行个性化标记,例如图像包括三个人物,图像中的第一人物为图像中的第二人物的配偶,图像中的第三人物为图像中的第二人物的子女,接收终端的身份信息为同事,则终端设备可以确定图像中各个人物之间的关系为家属关系,接收终端与终端设备之间的关系为同事关系,则该图像与接收终端之间的关联度为0.1。又如,终端设备通过图2所示的图像处理方法对图库中的图像进行人物聚类之后,终端设备可以将图像中的人脸与身份信息所包含的的头像信息进行比较,当图像中存在头像信息所指示的人脸时,终端设备可以确定该图像与接收终端之间的关联度为1。又如,终端设备通过图2所示的图像处理方法对图库中的图像进行场景聚类之后,如果该图像为风景照,不管接收终端与终端设备之间为家属关系、同事关系或者朋友关系,该图像与接收终端之间的关联度均为0.8。又如,终端设备通过图2所示的图像处理方法对图库中的图像进行场景聚类之后,如果该图像的场景为办公场所,接收终端与终端设备之间为同事关系,则终端设备可以确定该图像与接收终端之间的关联度均为0.8。The terminal device can obtain the correlation between the image contained in the optimized gallery and the receiving terminal according to the identity information, and the correlation can be greater than or equal to 0 and less than or equal to 1. For example, after the terminal device performs character clustering on the images in the gallery through the image processing method shown in FIG. 2, the user can personally mark the persons included in the image. For example, the image includes three persons. One person is the spouse of the second person in the image, the third person in the image is the child of the second person in the image, and the identity information of the receiving terminal is a colleague. Then the terminal device can determine the relationship between the various characters in the image as Family relationship, the relationship between the receiving terminal and the terminal device is a colleague relationship, then the correlation between the image and the receiving terminal is 0.1. As another example, after the terminal device performs character clustering on the images in the gallery through the image processing method shown in FIG. 2, the terminal device can compare the face in the image with the avatar information included in the identity information. When the face indicated by the avatar information, the terminal device may determine that the correlation between the image and the receiving terminal is 1. For another example, after the terminal device performs scene clustering on the images in the gallery through the image processing method shown in FIG. 2, if the image is a landscape photo, regardless of whether the receiving terminal and the terminal device are a family relationship, a colleague relationship, or a friend relationship, The correlation between the image and the receiving terminal is 0.8. For another example, after the terminal device performs scene clustering on the images in the gallery by using the image processing method shown in FIG. 2, if the scene of the image is an office place, and the relationship between the receiving terminal and the terminal device is a colleague relationship, the terminal device may determine The correlation between the image and the receiving terminal is 0.8.
以图5B所示的关联度的示意图为例,如果图像为风景图像,终端设备可以确定该图像与所有接收终端之间的关联度均为0.8;如果图像为人物图像,图像中包含的人物为小孩,且终端设备与接收终端之间的关系为家属关系时,终端设备可以确定该图像与接收终端之间的关联度为1;如果图像为人物图像,图像中包含的人物与接收终端之间的关系为配偶关系时,终端设备可以确定该图像与接收终端之间的关联度为0.8;如果图像为人物图像,图像中包含的人物与接收终端之间的关系为父子、母子、父女或者母女关系时,终端设备可以确定该图像与接收终端之间的关联度为0.6;如果图像为人物图像,图像中包含的人物与接收终端之间不存在关系时,终端设备可以确定该图像与接收终端之间的关联度为0.2;如果图像既不是人物图像,也不是风景图像,终端设备可以确定该图像与接收终端之间的关联度为0.1。Taking the schematic diagram of the degree of association shown in FIG. 5B as an example, if the image is a landscape image, the terminal device can determine that the degree of association between the image and all receiving terminals is 0.8; if the image is a person image, the person contained in the image is When the child is a child and the relationship between the terminal device and the receiving terminal is a family relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 1; if the image is a person image, the person contained in the image and the receiving terminal When the relationship is a spouse relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 0.8; if the image is a person image, the relationship between the person contained in the image and the receiving terminal is father-son, mother-child, father-daughter, or In the mother-daughter relationship, the terminal device can determine that the correlation between the image and the receiving terminal is 0.6; if the image is a person image and there is no relationship between the person contained in the image and the receiving terminal, the terminal device can determine that the image is related to the receiving terminal The correlation between the receiving terminals is 0.2; if the image is neither a person image nor a landscape image, the terminal device To determine the correlation between the image and the receiving terminal is 0.1.
步骤S403:终端设备根据关联度,在优化处理后的图库所包含的图像中确定共享至接收终端的共享图像。Step S403: The terminal device determines a shared image shared to the receiving terminal among the images included in the optimized gallery according to the degree of association.
在一种可能的实现方式中,用户可以设置共享至不同接收终端的图像的关联度。例如, 用户可以设置共享至第一终端设备的图像的关联度大于第一关联度阈值,共享至第二终端设备的图像的关联度大于第二关联度阈值。如果终端设备根据接收终端的身份信息确定该接收终端为第一终端设备,则终端设备可以将图库中关联度大于第一关联度阈值的图像确定为共享图像。In a possible implementation manner, a user may set a correlation degree of images shared to different receiving terminals. For example, the user may set the degree of relevance of the image shared to the first terminal device to be greater than the first degree of relevance threshold, and the degree of relevance of the image shared to the second terminal device to be greater than the second degree of relevance threshold. If the terminal device determines that the receiving terminal is the first terminal device according to the identity information of the receiving terminal, the terminal device may determine an image in the gallery whose correlation degree is greater than the first correlation degree threshold value as a shared image.
在一种可能的实现方式中,终端设备可以将图库中关联度大于预设关联度阈值的图像确定为共享图像,预设关联度阈值可以是终端设备预先设置的关联度阈值,例如0.5或者0.7等。In a possible implementation manner, the terminal device may determine an image in the gallery whose correlation degree is greater than a preset correlation degree threshold value as a shared image, and the preset correlation degree threshold value may be a correlation degree threshold value preset by the terminal device, for example, 0.5 or 0.7. Wait.
步骤S404:终端设备将共享图像发送给接收终端。Step S404: The terminal device sends the shared image to the receiving terminal.
终端设备确定共享图像之后,可以通过预先建立的与接收终端之间的通信连接,将共享图像发送至接收终端。After the terminal device determines the shared image, it can send the shared image to the receiving terminal through a communication connection established in advance with the receiving terminal.
在一种可能的实现方式中,终端设备可以将共享图像的索引信息发送给接收终端,索引信息包括共享图像的图像标识,终端设备可以从接收终端接收缩略图获取请求,响应缩略图获取请求,向接收终端发送共享图像对应的缩略图,从接收终端接收关于目标缩略图的图像获取请求,响应图像获取请求,向接收终端发送目标缩略图对应的目标图像。索引信息还可以包括索引文件的存储路径或者共享图像的缩略图存储信息。In a possible implementation manner, the terminal device may send index information of the shared image to the receiving terminal. The index information includes an image identifier of the shared image. The terminal device may receive a thumbnail image acquisition request from the receiving terminal, and respond to the thumbnail image acquisition request. Send a thumbnail corresponding to the shared image to the receiving terminal, receive an image acquisition request for the target thumbnail from the receiving terminal, and send a target image corresponding to the target thumbnail to the receiving terminal in response to the image acquisition request. The index information may also include storage paths of index files or thumbnail storage information of shared images.
以图5C所示的图像共享的示意图为例,终端设备XX确定共享图像之后,可以生成关于接收终端YY的索引文件(例如共享给YY的文件),将共享图像的索引信息存储至关于接收终端YY的索引文件中,终端设备可以将关于接收终端YY的索引文件中的索引信息发送给接收终端YY。接收终端YY可以预先建立关于终端设备的共享文件(例如来自XX的共享文件),将来自终端设备的索引信息存储至共享文件中。接收终端检测到用户对一个或者多个图像标识的操作时,可以向终端设备发送缩略图获取请求,缩略图获取请求携带图像标识。终端设备可以响应缩略图获取请求,向接收终端发送图像标识所指示的共享图像对应的缩略图。接收终端可以在接收终端的显示屏幕上显示共享图像对应的缩略图,接收终端检测到用户对目标缩略图的操作时,可以向终端设备发送图像获取请求,图像获取请求可以携带目标缩略图对应的共享图像的图像标识。终端设备可以响应图像获取请求,向接收终端发送目标缩略图对应的目标图像。接收终端检测到用户对目标图像的存储操作时,可以将该目标图像存储至存储器中。Taking the schematic diagram of image sharing shown in FIG. 5C as an example, after the terminal device XX determines the shared image, it can generate an index file (for example, a file shared to YY) about the receiving terminal YY, and store the index information of the shared image to the receiving terminal In the index file of YY, the terminal device may send the index information in the index file of the receiving terminal YY to the receiving terminal YY. The receiving terminal YY may establish a shared file (for example, a shared file from XX) about the terminal device in advance, and store index information from the terminal device into the shared file. When the receiving terminal detects a user operation on one or more image identifiers, it may send a thumbnail image acquisition request to the terminal device, and the thumbnail image acquisition request carries the image identifier. The terminal device may respond to the thumbnail image acquisition request and send a thumbnail image corresponding to the shared image indicated by the image identification to the receiving terminal. The receiving terminal may display a thumbnail corresponding to the shared image on a display screen of the receiving terminal. When the receiving terminal detects a user operation on the target thumbnail, it may send an image acquisition request to the terminal device. The image acquisition request may carry the target thumbnail corresponding to the target thumbnail. The image ID of the shared image. The terminal device may respond to the image acquisition request and send a target image corresponding to the target thumbnail to the receiving terminal. When the receiving terminal detects a storage operation of the target image by the user, the target image may be stored in the memory.
在一种可能的实现方式中,终端设备生成的索引文件可以处于隐藏状态,即只有在检测到用户对该索引文件的显示请求时,才会显示该索引文件。In a possible implementation manner, the index file generated by the terminal device may be in a hidden state, that is, the index file is displayed only when a display request of the index file by the user is detected.
在一种可能的实现方式中,终端设备可以周期性检测图库中是否存储有新的图像,终端设备获取新的图像和接收终端之间的关联度,如果根据该关联度确定新的图像为共享图像,终端设备可以将该新的图像的索引信息存储在索引文件中。In a possible implementation manner, the terminal device may periodically detect whether a new image is stored in the gallery, and the terminal device obtains a correlation between the new image and the receiving terminal. If it is determined that the new image is shared according to the correlation Image, the terminal device may store index information of the new image in an index file.
在一种可能的实现方式中,如果终端设备删除了索引文件中某一图像标识对应的图像,终端设备可以删除索引文件中关于该图像的索引信息。In a possible implementation manner, if the terminal device deletes an image corresponding to an image identifier in the index file, the terminal device may delete index information about the image in the index file.
在图4所描述的方法中,终端设备获取接收终端的身份信息,根据身份信息,获取优化处理后的图库所包含的图像与接收终端之间的关联度,根据关联度,在优化处理后的图库所包含的图像中确定共享至接收终端的共享图像,将共享图像发送给接收终端,可实现智能化、个性化的群组共享图像,提高图像共享效率。In the method described in FIG. 4, the terminal device obtains the identity information of the receiving terminal, and according to the identity information, obtains the correlation between the image contained in the optimized gallery and the receiving terminal, and according to the correlation, the optimized processing Among the images contained in the gallery, the shared image shared to the receiving terminal is determined, and the shared image is sent to the receiving terminal, which can realize intelligent and personalized group shared images and improve the efficiency of image sharing.
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的终端设备。The method in the embodiment of the present application has been described in detail above, and the terminal device in the embodiment of the present application is provided below.
请参见图6,图6是本申请实施例提供的一种图像处理装置的结构示意图,用于实现图1、图2、图4实施例中终端设备的功能,图像处理装置的功能块可由硬件、软件或硬件与软件的组合来实施本申请方案。所属领域的技术人员应理解,图6中所描述的功能块可经组合或分离为若干子块以实施本申请方案。因此,本申请中上面描述的内容可支持对下述功能模块的任何可能的组合或分离或进一步定义。Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application, which is used to implement the functions of the terminal device in the embodiments of FIG. 1, FIG. 2, and FIG. 4. , Software, or a combination of hardware and software to implement the solution of this application. Those skilled in the art should understand that the functional blocks described in FIG. 6 may be combined or separated into several sub-blocks to implement the solution of the present application. Therefore, the content described above in this application may support any possible combination or separation or further definition of the functional modules described below.
如图6所示,图像处理装置可包括:处理模块601以及发送模块602,其中,各个模块的详细描述如下。As shown in FIG. 6, the image processing apparatus may include a processing module 601 and a sending module 602, wherein the detailed description of each module is as follows.
处理模块601,用于通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到所述图像的第一优选值,所述图像分析因素包括几何因素或者视觉因素中的一种或者多种;A processing module 601 is configured to process an image analysis factor of an image in the gallery through a first image analysis algorithm to obtain a first preferred value of the image, where the image analysis factor includes one or more of a geometric factor or a visual factor Species
所述处理模块601,还用于通过第二图像分析算法对所述图像的历史行为数据进行处理,得到所述图像的第二优选值;The processing module 601 is further configured to process the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image;
所述处理模块601,还用于对所述第一优选值和所述第二优选值进行处理,得到所述图像的优先级;The processing module 601 is further configured to process the first preferred value and the second preferred value to obtain a priority of the image;
所述处理模块601,还用于根据所述图库中各个图像的优先级,对所述图库进行优化处理。The processing module 601 is further configured to perform optimization processing on the gallery according to a priority of each image in the gallery.
在一种可能的实现方式中,所述历史行为数据包括以下至少一种:In a possible implementation manner, the historical behavior data includes at least one of the following:
对所述图像进行操作的操作次数;The number of operations performed on the image;
所述图像在显示屏幕中的显示时长;A display duration of the image on a display screen;
所述图像在所述显示屏幕中的显示次数。The number of times the image is displayed on the display screen.
在一种可能的实现方式中,所述对所述图像进行操作的操作次数,包括:In a possible implementation manner, the number of operations performed on the image includes:
对所述图像进行分享的分享次数,对所述图像进行收藏的收藏次数,对所述图像进行编辑的编辑次数,或者采集时间在所述图像的采集时间之后且图像背景与所述图像的图像背景相同的图像的数量中的一种或者多种。The number of times that the image was shared, the number of times the image was favorited, the number of edits that the image was edited, or the acquisition time was after the acquisition time of the image and the image background and the image of the image One or more of the number of images with the same background.
在一种可能的实现方式中,所述处理模块601根据所述图库中各个图像的优先级,对所述图库进行优化处理,具体用于:In a possible implementation manner, the processing module 601 optimizes the gallery according to the priority of each image in the gallery, and is specifically configured to:
根据所述图库中各个图像的属性信息,对所述各个图像进行图像聚类,得到至少一个图像组,所述属性信息包括人脸信息、采集时间、采集地点或者图像背景中的一种或者多种;According to the attribute information of each image in the gallery, image clustering is performed on each image to obtain at least one image group. The attribute information includes one or more of face information, acquisition time, acquisition location, or image background. Species
将同一图像组中优先级最高的图像作为所述图像组的摘要图像。The image with the highest priority in the same image group is used as the summary image of the image group.
在一种可能的实现方式中,所述处理模块601,还用于将同一图像组中优先级最高的图像作为所述图像组的摘要图像之后,检测到关于所述图像组的图像展开指令时,显示所述图像组所包含的所有图像。In a possible implementation manner, the processing module 601 is further configured to use an image with the highest priority in the same image group as a summary image of the image group, and when an image expansion instruction about the image group is detected To display all the images contained in the image group.
在一种可能的实现方式中,所述处理模块601,还用于根据所述图库中各个图像的优先级,对所述图库进行优化处理之后,获取接收终端的身份信息,根据所述身份信息,获取优化处理后的图库所包含的图像与所述接收终端之间的关联度,根据所述关联度,在所 述优化处理后的图库所包含的图像中确定共享至所述接收终端的共享图像;In a possible implementation manner, the processing module 601 is further configured to obtain the identity information of the receiving terminal after optimizing the gallery according to the priority of each image in the gallery, and according to the identity information To obtain a degree of association between the image included in the optimized gallery and the receiving terminal, and according to the degree of association, determine a share shared to the receiving terminal among the images included in the optimized gallery image;
所述装置还包括:The device further includes:
发送模块602,用于将所述共享图像发送给所述接收终端。The sending module 602 is configured to send the shared image to the receiving terminal.
在一种可能的实现方式中,所述发送模块602,具体用于:In a possible implementation manner, the sending module 602 is specifically configured to:
将所述共享图像的索引信息发送给所述接收终端,所述索引信息包括所述共享图像的图像标识;Sending index information of the shared image to the receiving terminal, where the index information includes an image identifier of the shared image;
从所述接收终端接收缩略图获取请求;Receiving a thumbnail acquisition request from the receiving terminal;
响应所述缩略图获取请求,向所述接收终端发送所述共享图像对应的缩略图;In response to the thumbnail image acquisition request, sending the thumbnail image corresponding to the shared image to the receiving terminal;
从所述接收终端接收关于目标缩略图的图像获取请求;Receiving an image acquisition request about a target thumbnail from the receiving terminal;
响应所述图像获取请求,向所述接收终端发送所述目标缩略图对应的目标图像。In response to the image acquisition request, sending a target image corresponding to the target thumbnail to the receiving terminal.
在一种可能的实现方式中,所述处理模块601,还用于获取接收终端的身份信息之前,与所述接收终端之间建立WIFI点对点通信连接。In a possible implementation manner, the processing module 601 is further configured to establish a WIFI point-to-point communication connection with the receiving terminal before acquiring the identity information of the receiving terminal.
需要说明的是,各个模块的实现还可以对应参照图1、图2、图4所示的实施例的相应描述。It should be noted that the implementation of each module may also correspond to the corresponding description of the embodiments shown in FIG. 1, FIG. 2, and FIG. 4.
需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner. Each functional module in the embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
请参见图7,图7是本申请实施例公开的一种终端设备的结构示意图。如图7所示,该终端设备700可以包括:基带芯片110、存储器115(一个或多个计算机可读存储介质)、射频(Radio Frequency,RF)模块116、外围系统117。这些部件可在一个或多个通信总线114上通信。Please refer to FIG. 7, which is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application. As shown in FIG. 7, the terminal device 700 may include a baseband chip 110, a memory 115 (one or more computer-readable storage media), a radio frequency (RF) module 116, and a peripheral system 117. These components can communicate on one or more communication buses 114.
外围系统117主要用于实现终端设备700和用户/外部环境之间的交互功能,主要包括终端设备700的输入输出装置。具体实现中,外围系统117可包括:触摸屏控制器118、摄像头控制器119、音频控制器120以及传感器管理模块121中的至少一种。其中,各个控制器可与各自对应的外围设备(如触摸屏123、摄像头124、音频电路125以及传感器126)耦合。在一些实施例中,触摸屏123可以配置有自电容式的悬浮触控面板的触摸屏,也可以是配置有红外线式的悬浮触控面板的触摸屏。在一些实施例中,摄像头124可以是3D摄像头。需要说明的,外围系统117还可以包括其他I/O外设。The peripheral system 117 is mainly used to implement the interaction function between the terminal device 700 and a user / external environment, and mainly includes input and output devices of the terminal device 700. In specific implementation, the peripheral system 117 may include at least one of a touch screen controller 118, a camera controller 119, an audio controller 120, and a sensor management module 121. Each controller may be coupled to a corresponding peripheral device (such as a touch screen 123, a camera 124, an audio circuit 125, and a sensor 126). In some embodiments, the touch screen 123 may be a touch screen configured with a self-capacitive floating touch panel, or a touch screen configured with an infrared type floating touch panel. In some embodiments, the camera 124 may be a 3D camera. It should be noted that the peripheral system 117 may further include other I / O peripherals.
基带芯片110可集成包括:一个或多个处理器111、时钟模块112以及电源管理模块113。集成于基带芯片110中的时钟模块112主要用于为处理器111产生数据传输和时序控制所需要的时钟。集成于基带芯片110中的电源管理模块113主要用于为处理器111、射频模块116以及外围系统提供稳定的、高精确度的电压。The baseband chip 110 may integrate: one or more processors 111, a clock module 112, and a power management module 113. The clock module 112 integrated in the baseband chip 110 is mainly used to generate a clock required for data transmission and timing control for the processor 111. The power management module 113 integrated in the baseband chip 110 is mainly used to provide a stable, high-precision voltage for the processor 111, the radio frequency module 116, and peripheral systems.
射频(RF)模块116用于接收和发送射频信号,主要集成了终端设备700的接收器和发射器。射频(RF)模块116通过射频信号与通信网络和其他通信设备通信。具体实现中,射频(RF)模块116可包括但不限于:天线系统、RF收发器、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC芯片、SIM卡和存储介质等。在一些实施例 中,可在单独的芯片上实现射频(RF)模块116。A radio frequency (RF) module 116 is used to receive and send radio frequency signals, and mainly integrates a receiver and a transmitter of the terminal device 700. A radio frequency (RF) module 116 communicates with a communication network and other communication devices through radio frequency signals. In a specific implementation, the radio frequency (RF) module 116 may include, but is not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc. In some embodiments, the radio frequency (RF) module 116 may be implemented on a separate chip.
存储器115与处理器111耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器115可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器115可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。存储器115还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个终端设备设备,一个或多个网络设备进行通信。存储器115还可以存储用户接口程序,该用户接口程序可以通过图形化的操作界面将应用程序的内容形象逼真的显示出来,并通过菜单、对话框以及按键等输入控件接收用户对应用程序的控制操作。The memory 115 is coupled to the processor 111 and is configured to store various software programs and / or multiple sets of instructions. In specific implementation, the memory 115 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 115 may store an operating system (hereinafter referred to as a system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 115 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more terminal device devices, and one or more network devices. The memory 115 may also store a user interface program. The user interface program can display the content of the application program realistically through a graphical operation interface, and receive user control operations on the application program through input controls such as menus, dialog boxes, and buttons. .
存储器115还可以存储一个或多个应用程序。如图7所示,这些应用程序可包括:社交应用程序(例如Facebook),图像管理应用程序(例如相册),地图类应用程序(例如谷歌地图),浏览器(例如Safari,Google Chrome)等等。The memory 115 may also store one or more application programs. As shown in Figure 7, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
应当理解,终端设备700仅为本申请实施例提供的一个例子,并且,终端设备700可具有比示出的部件更多或更少的部件,可以组合两个或更多个部件,或者可具有部件的不同配置实现。It should be understood that the terminal device 700 is only an example provided in the embodiment of the present application, and the terminal device 700 may have more or fewer components than those shown, may combine two or more components, or may have Different configurations of components are implemented.
具体的,本申请实施例中介绍的终端设备可以用以实施本申请结合图1、图2、图4介绍的方法实施例中的部分或全部流程。Specifically, the terminal device described in the embodiment of the present application may be used to implement part or all of the processes in the method embodiment described in conjunction with FIG. 1, FIG. 2, and FIG. 4.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center. Transmission by wire (for example, coaxial cable, optical fiber, digital subscriber line) or wireless (for example, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.

Claims (18)

  1. 一种图像处理方法,其特征在于,所述方法包括:An image processing method, wherein the method includes:
    通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到所述图像的第一优选值,所述图像分析因素包括几何因素或者视觉因素中的一种或者多种;Processing the image analysis factors of the images in the gallery through a first image analysis algorithm to obtain a first preferred value of the image, where the image analysis factors include one or more of geometric factors or visual factors;
    通过第二图像分析算法对所述图像的历史行为数据进行处理,得到所述图像的第二优选值;Processing the historical behavior data of the image through a second image analysis algorithm to obtain a second preferred value of the image;
    对所述第一优选值和所述第二优选值进行处理,得到所述图像的优先级;Process the first preferred value and the second preferred value to obtain the priority of the image;
    根据所述图库中各个图像的优先级,对所述图库进行优化处理。According to the priority of each image in the gallery, the gallery is optimized.
  2. 如权利要求1所述的方法,其特征在于,所述历史行为数据包括以下一种或者多种:The method of claim 1, wherein the historical behavior data comprises one or more of the following:
    对所述图像进行操作的操作次数;The number of operations performed on the image;
    所述图像在显示屏幕中的显示时长;A display duration of the image on a display screen;
    所述图像在所述显示屏幕中的显示次数。The number of times the image is displayed on the display screen.
  3. 如权利要求2所述的方法,其特征在于,所述对所述图像进行操作的操作次数,包括:The method according to claim 2, wherein the number of operations performed on the image comprises:
    对所述图像进行分享的分享次数,对所述图像进行收藏的收藏次数,对所述图像进行编辑的编辑次数,或者采集时间在所述图像的采集时间之后且图像背景与所述图像的图像背景相同的图像的数量中的一种或者多种。The number of times that the image was shared, the number of times the image was favorited, the number of edits that the image was edited, or the acquisition time was after the acquisition time of the image and the image background and the image of the image One or more of the number of images with the same background.
  4. 如权利要求1所述的方法,其特征在于,所述根据所述图库中各个图像的优先级,对所述图库进行优化处理,包括:The method according to claim 1, wherein the optimizing the gallery according to the priority of each image in the gallery comprises:
    根据所述图库中各个图像的属性信息,对所述各个图像进行图像聚类,得到至少一个图像组,所述属性信息包括人脸信息、采集时间、采集地点或者图像背景中的一种或者多种;According to the attribute information of each image in the gallery, image clustering is performed on each image to obtain at least one image group. The attribute information includes one or more of face information, acquisition time, acquisition location, or image background. Species
    将同一图像组中优先级最高的图像作为所述图像组的摘要图像。The image with the highest priority in the same image group is used as the summary image of the image group.
  5. 如权利要求4所述的方法,其特征在于,所述将同一图像组中优先级最高的图像作为所述图像组的摘要图像之后,还包括:The method according to claim 4, wherein after the image having the highest priority in the same image group is used as a summary image of the image group, further comprising:
    检测到关于所述图像组的图像展开指令时,显示所述图像组所包含的所有图像。When an image expansion instruction for the image group is detected, all images included in the image group are displayed.
  6. 如权利要求1所述的方法,其特征在于,所述根据所述图库中各个图像的优先级,对所述图库进行优化处理之后,还包括:The method according to claim 1, wherein after performing optimization processing on the gallery according to the priority of each image in the gallery, further comprising:
    获取接收终端的身份信息;Obtain the identity information of the receiving terminal;
    根据所述身份信息,获取优化处理后的图库所包含的图像与所述接收终端之间的关联度;Obtaining, according to the identity information, a degree of correlation between the image included in the optimized gallery and the receiving terminal;
    根据所述关联度,在所述优化处理后的图库所包含的图像中确定共享至所述接收终端的共享图像;Determining a shared image shared to the receiving terminal among the images included in the optimized gallery according to the correlation degree;
    将所述共享图像发送给所述接收终端。Sending the shared image to the receiving terminal.
  7. 如权利要求6所述的方法,其特征在于,所述将所述共享图像发送给所述接收终端,包括:The method according to claim 6, wherein the sending the shared image to the receiving terminal comprises:
    将所述共享图像的索引信息发送给所述接收终端,所述索引信息包括所述共享图像的图像标识;Sending index information of the shared image to the receiving terminal, where the index information includes an image identifier of the shared image;
    从所述接收终端接收缩略图获取请求;Receiving a thumbnail acquisition request from the receiving terminal;
    响应所述缩略图获取请求,向所述接收终端发送所述共享图像对应的缩略图;In response to the thumbnail image acquisition request, sending the thumbnail image corresponding to the shared image to the receiving terminal;
    从所述接收终端接收关于目标缩略图的图像获取请求;Receiving an image acquisition request about a target thumbnail from the receiving terminal;
    响应所述图像获取请求,向所述接收终端发送所述目标缩略图对应的目标图像。In response to the image acquisition request, sending a target image corresponding to the target thumbnail to the receiving terminal.
  8. 如权利要求6所述的方法,其特征在于,所述获取接收终端的身份信息之前,还包括:The method according to claim 6, wherein before the obtaining the identity information of the receiving terminal, further comprising:
    与所述接收终端之间建立WIFI点对点通信连接。A WIFI point-to-point communication connection is established with the receiving terminal.
  9. 一种图像处理装置,其特征在于,所述装置包括:An image processing device, wherein the device includes:
    处理模块,用于通过第一图像分析算法对图库中图像的图像分析因素进行处理,得到所述图像的第一优选值,所述图像分析因素包括几何因素或者视觉因素中的一种或者多种;A processing module, configured to process an image analysis factor of an image in the gallery by using a first image analysis algorithm to obtain a first preferred value of the image, where the image analysis factor includes one or more of a geometric factor or a visual factor ;
    所述处理模块,还用于通过第二图像分析算法对所述图像的历史行为数据进行处理,得到所述图像的第二优选值;The processing module is further configured to process the historical behavior data of the image by using a second image analysis algorithm to obtain a second preferred value of the image;
    所述处理模块,还用于对所述第一优选值和所述第二优选值进行处理,得到所述图像的优先级;The processing module is further configured to process the first preferred value and the second preferred value to obtain a priority of the image;
    所述处理模块,还用于根据所述图库中各个图像的优先级,对所述图库进行优化处理。The processing module is further configured to optimize the gallery according to the priority of each image in the gallery.
  10. 如权利要求9所述的装置,其特征在于,所述历史行为数据包括以下至少一种:The apparatus according to claim 9, wherein the historical behavior data includes at least one of the following:
    对所述图像进行操作的操作次数;The number of operations performed on the image;
    所述图像在显示屏幕中的显示时长;A display duration of the image on a display screen;
    所述图像在所述显示屏幕中的显示次数。The number of times the image is displayed on the display screen.
  11. 如权利要求10所述的装置,其特征在于,所述对所述图像进行操作的操作次数,包括:The apparatus according to claim 10, wherein the number of operations performed on the image comprises:
    对所述图像进行分享的分享次数,对所述图像进行收藏的收藏次数,对所述图像进行编辑的编辑次数,或者采集时间在所述图像的采集时间之后且图像背景与所述图像的图像背景相同的图像的数量中的一种或者多种。The number of times that the image was shared, the number of times the image was favorited, the number of edits that the image was edited, or the acquisition time was after the acquisition time of the image and the image background and the image of the image One or more of the number of images with the same background.
  12. 如权利要求9所述的装置,其特征在于,所述处理模块根据所述图库中各个图像 的优先级,对所述图库进行优化处理,具体用于:The apparatus according to claim 9, wherein the processing module optimizes the gallery according to a priority of each image in the gallery, and is specifically configured to:
    根据所述图库中各个图像的属性信息,对所述各个图像进行图像聚类,得到至少一个图像组,所述属性信息包括人脸信息、采集时间、采集地点或者图像背景中的一种或者多种;According to the attribute information of each image in the gallery, image clustering is performed on each image to obtain at least one image group. The attribute information includes one or more of face information, acquisition time, acquisition location, or image background. Species
    将同一图像组中优先级最高的图像作为所述图像组的摘要图像。The image with the highest priority in the same image group is used as the summary image of the image group.
  13. 如权利要求12所述的装置,其特征在于,The apparatus according to claim 12, wherein:
    所述处理模块,还用于将同一图像组中优先级最高的图像作为所述图像组的摘要图像之后,检测到关于所述图像组的图像展开指令时,显示所述图像组所包含的所有图像。The processing module is further configured to: after the image with the highest priority in the same image group is used as a summary image of the image group, and when an image expansion instruction about the image group is detected, display all information contained in the image group. image.
  14. 如权利要求9所述的装置,其特征在于,The apparatus according to claim 9, wherein:
    所述处理模块,还用于根据所述图库中各个图像的优先级,对所述图库进行优化处理之后,获取接收终端的身份信息,根据所述身份信息,获取优化处理后的图库所包含的图像与所述接收终端之间的关联度,根据所述关联度,在所述优化处理后的图库所包含的图像中确定共享至所述接收终端的共享图像;The processing module is further configured to obtain the identity information of the receiving terminal after optimizing the gallery according to the priority of each image in the gallery, and to obtain the information contained in the optimized gallery according to the identity information. A degree of association between an image and the receiving terminal, and according to the degree of association, determining a shared image shared to the receiving terminal among the images included in the optimized gallery;
    所述装置还包括:The device further includes:
    发送模块,用于将所述共享图像发送给所述接收终端。A sending module, configured to send the shared image to the receiving terminal.
  15. 如权利要求14所述的装置,其特征在于,所述发送模块,具体用于:The apparatus according to claim 14, wherein the sending module is specifically configured to:
    将所述共享图像的索引信息发送给所述接收终端,所述索引信息包括所述共享图像的图像标识;Sending index information of the shared image to the receiving terminal, where the index information includes an image identifier of the shared image;
    从所述接收终端接收缩略图获取请求;Receiving a thumbnail acquisition request from the receiving terminal;
    响应所述缩略图获取请求,向所述接收终端发送所述共享图像对应的缩略图;In response to the thumbnail image acquisition request, sending the thumbnail image corresponding to the shared image to the receiving terminal;
    从所述接收终端接收关于目标缩略图的图像获取请求;Receiving an image acquisition request about a target thumbnail from the receiving terminal;
    响应所述图像获取请求,向所述接收终端发送所述目标缩略图对应的目标图像。In response to the image acquisition request, sending a target image corresponding to the target thumbnail to the receiving terminal.
  16. 如权利要求14所述的装置,其特征在于,The apparatus according to claim 14, wherein:
    所述处理模块,还用于获取接收终端的身份信息之前,与所述接收终端之间建立WIFI点对点通信连接。The processing module is further configured to establish a WIFI point-to-point communication connection with the receiving terminal before acquiring the identity information of the receiving terminal.
  17. 一种终端设备,其特征在于,所述终端设备包括处理器和存储器,所述处理器和所述存储器建立通信;A terminal device, wherein the terminal device includes a processor and a memory, and the processor establishes communication with the memory;
    所述处理器,用于执行权利要求1-8任一项所述的方法。The processor is configured to execute the method according to any one of claims 1-8.
  18. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-8任一项所述的方法。A computer storage medium, wherein the computer storage medium stores a program, and when the program is executed, the method according to any one of claims 1-8.
PCT/CN2019/093846 2018-06-29 2019-06-28 Image processing method and apparatus and terminal device WO2020001648A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810722151.6A CN110727808A (en) 2018-06-29 2018-06-29 Image processing method and device and terminal equipment
CN201810722151.6 2018-06-29

Publications (1)

Publication Number Publication Date
WO2020001648A1 true WO2020001648A1 (en) 2020-01-02

Family

ID=68985842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093846 WO2020001648A1 (en) 2018-06-29 2019-06-28 Image processing method and apparatus and terminal device

Country Status (2)

Country Link
CN (1) CN110727808A (en)
WO (1) WO2020001648A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113497958B (en) * 2020-04-01 2023-08-11 青岛海信传媒网络技术有限公司 Display equipment and picture display method
CN112702635B (en) * 2020-12-28 2023-10-27 深圳康佳电子科技有限公司 Picture screen-throwing method and system based on face recognition, intelligent television and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105122272A (en) * 2012-11-09 2015-12-02 谷歌公司 Automatic curation of digital images
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment
CN107239203A (en) * 2016-03-29 2017-10-10 北京三星通信技术研究有限公司 A kind of image management method and device
CN107291781A (en) * 2016-04-12 2017-10-24 中兴通讯股份有限公司 A kind of image management method and device
CN107710197A (en) * 2015-09-28 2018-02-16 谷歌有限责任公司 Image and image albums are shared on a communication network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239336B (en) * 2013-06-19 2018-03-16 华为技术有限公司 A kind of method for screening images, device and terminal
CN105488526B (en) * 2015-11-26 2019-07-09 嵊州明智科技服务有限公司 The auto-screening method of the shared photo of group
CN106294798B (en) * 2016-08-15 2020-01-17 华为技术有限公司 Image sharing method and terminal based on thumbnail
CN107515950A (en) * 2017-09-14 2017-12-26 深圳天珑无线科技有限公司 A kind of image processing method, device, terminal and computer-readable recording medium
CN107832368A (en) * 2017-10-26 2018-03-23 广东欧珀移动通信有限公司 Picture classification method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105122272A (en) * 2012-11-09 2015-12-02 谷歌公司 Automatic curation of digital images
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment
CN107710197A (en) * 2015-09-28 2018-02-16 谷歌有限责任公司 Image and image albums are shared on a communication network
CN107239203A (en) * 2016-03-29 2017-10-10 北京三星通信技术研究有限公司 A kind of image management method and device
CN107291781A (en) * 2016-04-12 2017-10-24 中兴通讯股份有限公司 A kind of image management method and device

Also Published As

Publication number Publication date
CN110727808A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
US11275489B2 (en) Method and apparatus for uploading photographed file
US10885380B2 (en) Automatic suggestion to share images
US10019136B1 (en) Image sharing device, apparatus, and method
US10628680B2 (en) Event-based image classification and scoring
CN107622281B (en) Image classification method and device, storage medium and mobile terminal
US10027727B1 (en) Facial recognition device, apparatus, and method
EP3474586B1 (en) Place-based information processing method and apparatus
JP6303023B2 (en) Temporary eventing system and method
US9323855B2 (en) Processing media items in location-based groups
CN106874308B (en) Recommendation method and device and recommendation device
US20150177938A1 (en) Providing access to a cloud based content management system on a mobile device
WO2017107672A1 (en) Information processing method and apparatus, and apparatus for information processing
TWI464665B (en) Systems and methods for managing media content using a communications device
US20210117468A1 (en) Systems and methods for selecting content items to store and present locally on a user device
WO2015043512A1 (en) Picture management method and device
CN107729946B (en) Picture classification method, device, terminal and storage medium
US20140337697A1 (en) System and method for providing content to an apparatus based on location of the apparatus
JP2014501956A (en) Data synchronization in distributed computing environments
US11430211B1 (en) Method for creating and displaying social media content associated with real-world objects or phenomena using augmented reality
CN105103181A (en) Persona chooser
US10462254B2 (en) Data sharing method and electronic device thereof
WO2020227318A1 (en) Systems and methods for determining whether to modify content
WO2020001648A1 (en) Image processing method and apparatus and terminal device
CN115941841A (en) Associated information display method, device, equipment, storage medium and program product
WO2015061696A1 (en) Social event system

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: 19827435

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: 19827435

Country of ref document: EP

Kind code of ref document: A1