CN107800618B - Picture recommendation method and device, terminal and computer-readable storage medium - Google Patents

Picture recommendation method and device, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN107800618B
CN107800618B CN201711090040.XA CN201711090040A CN107800618B CN 107800618 B CN107800618 B CN 107800618B CN 201711090040 A CN201711090040 A CN 201711090040A CN 107800618 B CN107800618 B CN 107800618B
Authority
CN
China
Prior art keywords
picture
information
target
specified
terminal
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201711090040.XA
Other languages
Chinese (zh)
Other versions
CN107800618A (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711090040.XA priority Critical patent/CN107800618B/en
Publication of CN107800618A publication Critical patent/CN107800618A/en
Application granted granted Critical
Publication of CN107800618B publication Critical patent/CN107800618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention discloses a picture recommendation method, a picture recommendation device, a terminal and a computer readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: acquiring picture information of a designated picture and current network connection information; determining a target picture based on the picture information of the specified picture and the network connection information, wherein the target picture is the specified picture or a picture obtained by compressing the specified picture; and recommending pictures based on the target picture. According to the invention, the picture information and the network connection information of the designated picture are acquired, so that the most suitable recommended target picture under the current network connection condition can be determined, and therefore, when the recommended target picture is sent or cached subsequently, the user does not need to manually select the designated picture or the compressed picture of the designated picture, and the picture sending or caching efficiency is improved.

Description

Picture recommendation method and device, terminal and computer-readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for recommending pictures, a terminal, and a computer-readable storage medium.
Background
With the popularization of the mobile internet and the wide use of terminals, people can transmit or receive pictures through various applications installed on the terminals. For example, the terminal may send or receive a picture through an installed instant messaging application, a social networking application, or the like.
At present, when a user sends a picture through a terminal, the user generally needs to select a designated picture to be sent, and then selects whether to send an original image of the designated picture or send a picture obtained by compressing the designated picture; when the terminal determines to send the original image of the designated picture, the designated picture is directly sent, and when the terminal determines to send the compressed picture of the designated picture, the designated picture is compressed and the compressed picture is sent. After receiving the designated picture through the terminal, the user can also select to cache the original image of the designated picture or cache the picture compressed by the designated picture.
Disclosure of Invention
The embodiment of the invention provides a picture recommendation method, a picture recommendation device, a terminal and a computer readable storage medium, which are used for solving the problems that in the prior art, the operation is complicated when pictures are sent or cached, and the efficiency is low when the pictures are sent or cached. The technical scheme is as follows:
in a first aspect, a picture recommendation method is provided, where the method includes:
acquiring picture information of a designated picture and current network connection information;
determining a target picture based on the picture information of the specified picture and the network connection information, wherein the target picture is the specified picture or a picture obtained by compressing the specified picture;
and recommending pictures based on the target picture.
Optionally, the determining a target picture based on the picture information of the specified picture and the network connection information includes:
outputting a category label through a classifier based on the picture information of the specified picture and the network connection information;
the classifier is obtained by training by taking a picture information set and a network connection information set as training data, and the category label is used for indicating whether the specified picture is taken as the target picture or a picture obtained by compressing the specified picture is taken as the target picture;
and determining the picture indicated by the category label as the target picture.
Optionally, the determining, as the target picture, the picture indicated by the category label includes:
when the category label is a first label, determining the designated picture as the target picture;
and when the category label is a second label, determining the compressed picture of the specified picture as the target picture.
Optionally, before outputting the category label through the classifier based on the picture information of the specified picture and the network connection information, the method further includes:
obtaining the trimming information of the specified picture, wherein the trimming information refers to the picture information obtained after trimming the specified picture;
correspondingly, the outputting a category label by a classifier based on the picture information of the specified picture and the network connection information comprises:
inputting the picture information, the cropping information and the network connection information of the specified picture into a classifier so as to output the class label through the classifier, wherein the classifier is obtained by training by taking a picture information set, a cropping information set and a network connection information set as training data.
Optionally, before outputting the category label through the classifier based on the picture information of the specified picture and the network connection information, the method further includes:
acquiring a picture caching mode record of a terminal for receiving the target picture;
and correcting the classifier based on the picture caching mode record.
Optionally, the picture information includes one or more items of picture content, picture resolution, and picture size.
Optionally, the recommending pictures based on the target picture includes:
and displaying first prompt information, wherein the first prompt information is used for prompting that the target picture is the specified picture or the compressed picture of the specified picture.
Optionally, the recommending pictures based on the target picture includes:
and when the target picture is not matched with a picture caching mode of a terminal for receiving the target picture, displaying second prompt information, wherein the second prompt information is used for prompting whether to continuously send or cache the target picture.
In a second aspect, an image recommendation apparatus is provided, the apparatus including:
the acquisition module is used for acquiring the picture information of the specified picture and the current network connection information;
the determining module is used for determining a target picture based on the picture information of the specified picture and the network connection information, wherein the target picture is the specified picture or a picture obtained by compressing the specified picture;
and the recommending module is used for recommending the pictures based on the target pictures.
Optionally, the determining module includes:
the output sub-module is used for outputting a category label through a classifier based on the picture information of the specified picture and the network connection information;
the classifier is obtained by training by taking a picture information set and a network connection information set as training data, and the category label is used for indicating whether the specified picture is taken as the target picture or a picture obtained by compressing the specified picture is taken as the target picture;
and the determining submodule is used for determining the picture indicated by the category label as the target picture.
Optionally, the determining sub-module is configured to:
when the category label is a first label, determining the designated picture as the target picture;
and when the category label is a second label, determining the compressed picture of the specified picture as the target picture.
Optionally, the determining module further comprises:
the first obtaining sub-module is used for obtaining the retouching information of the specified picture, and the retouching information refers to the picture information obtained after retouching is carried out on the specified picture;
accordingly, the output submodule is configured to:
inputting the picture information, the cropping information and the network connection information of the specified picture into a classifier so as to output the class label through the classifier, wherein the classifier is obtained by training by taking a picture information set, a cropping information set and a network connection information set as training data.
Optionally, the determining module further comprises:
the second obtaining submodule is used for obtaining a picture cache mode record of a terminal for receiving the target picture;
and the correction sub-module is used for correcting the classifier based on the picture caching mode record.
Optionally, the picture information includes one or more items of picture content, picture resolution, and picture size.
Optionally, the recommendation module includes:
and the first display sub-module is used for displaying first prompt information, and the first prompt information is used for prompting that the target picture is the specified picture or the compressed picture of the specified picture.
Optionally, the recommendation module includes:
and the second display sub-module is used for displaying second prompt information when the target picture is not matched with the picture caching mode of the terminal for receiving the target picture, wherein the second prompt information is used for prompting whether to continuously send or cache the target picture.
In a third aspect, a terminal is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any one of the methods provided in the first aspect when executing the program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of any of the methods presented in the first aspect above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the most suitable recommended target picture under the current network connection condition can be determined and recommended by acquiring the picture information and the network connection information of the specified picture, so that the user does not need to manually select the specified picture or the compressed picture of the specified picture when the recommended target picture is sent or cached subsequently, and the picture sending or caching efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a picture recommendation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for recommending pictures according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of an image recommendation device according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a first determining module according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram of a second determining module according to an embodiment of the present invention;
FIG. 3D is a block diagram of a third determining module according to an embodiment of the present invention;
FIG. 3E is a schematic structural diagram of a recommendation module according to an embodiment of the present invention;
FIG. 3F is a block diagram of another exemplary recommendation module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario related to the embodiments of the present invention is explained.
Conventionally, when a user transmits a specified picture through a terminal, it is necessary to select whether to transmit an original image of the specified picture or to transmit a compressed picture of the specified picture. If the user receives the specified picture through the terminal, under normal conditions, the user also needs to select to cache the original image of the specified picture or cache the compressed picture of the specified picture. However, when the user selects to transmit the original image of the designated picture, the transmission speed of the original image of the designated picture may be slow during the transmission process, or the transmission may fail and the data traffic may be wasted, because the current network speed of the terminal is slow or the current connected network is data traffic. Similarly, in the process of caching the original image of the designated picture, the terminal may also cause a slow picture caching speed or a cache failure, thereby wasting data traffic. In addition, the operation of manually selecting the pictures to be sent or cached by the user is complicated, and the efficiency of sending or caching the pictures is reduced.
Based on such a scenario, the embodiment of the present invention provides a picture recommendation method capable of improving picture caching or sending efficiency.
After describing the application scenario of the embodiment of the present invention, a detailed description will be given to a picture recommendation method provided by the embodiment of the present invention with reference to the drawings.
Fig. 1 is a flowchart illustrating a picture recommendation method according to an exemplary embodiment, and referring to fig. 1, the method may be applied to a terminal such as a smart phone, and specifically includes the following steps.
Step 101: and acquiring the picture information of the appointed picture and the current network connection information.
Step 102: and determining a target picture based on the picture information of the specified picture and the network connection information, wherein the target picture is the specified picture or a picture obtained by compressing the specified picture.
Step 103: and recommending pictures based on the target picture.
In the embodiment of the invention, the most suitable recommended target picture under the current network connection condition can be determined and recommended by acquiring the picture information and the network connection information of the specified picture, so that the user does not need to manually select the specified picture or the compressed picture of the specified picture when the recommended target picture is sent or cached subsequently, and the picture sending or caching efficiency is improved.
Optionally, determining a target picture based on the picture information of the specified picture and the network connection information includes:
outputting a category label through a classifier based on the picture information of the specified picture and the network connection information;
the classifier is obtained by training by taking a picture information set and a network connection information set as training data, and the class label is used for indicating whether the specified picture is taken as the target picture or a picture obtained by compressing the specified picture is taken as the target picture;
and determining the picture indicated by the category label as the target picture.
Optionally, determining the picture indicated by the category label as the target picture includes:
when the category label is a first label, determining the specified picture as the target picture;
and when the class label is the second label, determining the compressed picture of the specified picture as the target picture.
Optionally, before outputting the category label through the classifier based on the picture information of the specified picture and the network connection information, the method further includes:
obtaining the trimming information of the appointed picture, wherein the trimming information refers to the picture information obtained after trimming the appointed picture;
accordingly, outputting a category label by a classifier based on the picture information of the specified picture and the network connection information, including:
inputting the picture information, the cropping information and the network connection information of the specified picture into a classifier so as to output the class label through the classifier, wherein the classifier is obtained by training by taking a picture information set, a cropping information set and a network connection information set as training data.
Optionally, before outputting the category label through the classifier based on the picture information of the specified picture and the network connection information, the method further includes:
acquiring a picture caching mode record of a terminal for receiving the target picture;
and correcting the classifier based on the picture caching mode record.
Optionally, the picture information includes one or more items of picture content, picture resolution, and picture size.
Optionally, recommending pictures based on the target picture includes:
and displaying first prompt information, wherein the first prompt information is used for prompting that the target picture is the specified picture or the compressed picture of the specified picture.
Optionally, recommending pictures based on the target picture includes:
and when the target picture is not matched with the picture caching mode of the terminal for receiving the target picture, displaying second prompt information, wherein the second prompt information is used for prompting whether to continuously send or cache the target picture.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2 is a flowchart illustrating another picture recommendation method according to an exemplary embodiment, referring to fig. 2, the method including the following steps.
Step 201: and the target terminal acquires the picture information of the appointed picture and the current network connection information.
In the process of using the target terminal, the user may send the picture through the target terminal, or may cache the picture after receiving the picture through the target terminal, and at this time, no matter the target terminal is about to send the picture or the picture is about to be cached, the picture to be processed may be determined as the specified picture.
In addition, the target terminal may acquire the picture information of the specified picture and the current network connection information when receiving a sending instruction or a caching instruction of the specified picture. The sending instruction is used for sending a specified picture, and the sending instruction can be triggered by a user through a specified operation, wherein the specified operation can be a click operation, a sliding operation, a voice operation and the like. The caching instruction is used for caching the specified pictures, and the caching instruction can also be triggered by a user through a specified operation.
It should be noted that the picture information for specifying the picture may include one or more items of picture content, picture resolution, and picture size. In practical applications, the picture information may also include other information, for example, the picture information may also include a picture type of a specific picture. The network connection information may include one or more of a network connection mode, a network delay, and a network speed.
When the picture information of the specified picture comprises the picture content, the target terminal can detect the picture content of the specified picture through an image recognition technology, so that the picture content of the specified picture is determined to be a landscape, a person, a building and the like. When the picture information of the specified picture includes the picture resolution and the picture size, the target terminal may obtain the picture resolution and the picture size of the specified picture from EXIF (Exchangeable Image File) information of the specified picture.
Step 202: and the target terminal determines a target picture based on the picture information of the specified picture and the network connection information, wherein the target picture is the specified picture or a picture obtained by compressing the specified picture.
Since the target terminal is most affected by the current network connection status when sending or caching the original image of the designated picture or the compressed picture of the designated picture, the target terminal may determine the target picture based on the picture information of the designated picture and the network connection information.
In one possible implementation manner, the target terminal may output a category label through the classifier based on the picture information of the specified picture and the network connection information; the classifier is obtained by training by taking a picture information set and a network connection information set as training data, and the class label is used for indicating whether the specified picture is taken as the target picture or a picture obtained by compressing the specified picture is taken as the target picture; and determining the picture indicated by the category label as the target picture.
When the category label is a first label, the target terminal determines the specified picture as the target picture; and when the class label is the second label, the target terminal determines the compressed picture of the specified picture as the target picture.
It should be noted that the first label and the second label can be represented by different numbers, letters, patterns, etc., for example, the first label can be represented by the number "1", and the second label can be represented by the number "0".
In addition, the classifier may be obtained by training the picture information set and the network connection information set as training data by the classifier generating device. The classifier generating device can be a target terminal, or can be other smart phones, desktop computers, notebook computers, servers or server clusters and the like. The method for training the classifier generating device to generate the classifier by using the picture information set and the network connection information set as training data may be: acquiring picture information of n original pictures and n corresponding network connection information from a plurality of sample terminals, and acquiring picture information of m compressed pictures and m corresponding network connection information, wherein n and m are integers greater than 0; merging the picture information of the n original pictures and the picture information of the m compressed pictures into a picture information set, and merging the n network connection information and the m network connection information into a network connection information set; and taking the picture information set and the network connection information set as training data, and training according to a classification algorithm to generate a classifier.
The plurality of sample terminals can be terminals with the same type or model, each sample terminal is used for acquiring picture information and network connection information when sending original pictures and picture information and network connection information when sending compressed pictures, and the larger the number of the sample terminals is, the faster the generation speed of the picture information set network connection information set is, and further the generation speed of the classifier is.
In addition, in order to obtain the picture information of n original pictures and the corresponding n network connection information from the plurality of sample terminals, and obtain the picture information of m compressed pictures and the corresponding m network connection information, the classifier generating device may respectively obtain a first operation log of the plurality of sample terminals when sending the original pictures and a second operation log when sending the compressed pictures, and obtain the picture information of the plurality of original pictures and the corresponding network connection information from the first operation log, and obtain the picture information of the plurality of compressed pictures and the corresponding network connection information from the second operation state, and respectively perform format check processing and missing value complement processing on the picture information of the plurality of original pictures and the corresponding network connection information, and obtain the picture information of the n original pictures and the corresponding n network connection information, and acquiring picture information of the m compression pictures and corresponding m network connection information.
In another possible implementation manner, before the user sends the specified picture, the specified picture may be subjected to a cropping process, or the specified picture received by the target terminal may be a cropped picture. Therefore, the target terminal can also acquire the retouching information of the specified picture, wherein the retouching information is the picture information obtained after retouching the specified picture; then, the target terminal may input the picture information, the cropping information, and the network connection information of the designated picture into a classifier, so as to output the class label through the classifier, where the classifier is obtained by training a picture information set, a cropping information set, and a network connection information set as training data.
The cropping information may include one or more of picture brightness, picture color saturation, picture resolution, and the like.
It should be noted that, the way in which the classifier generating device trains to obtain the classifier by using the picture information set, the modification information set, and the network connection information set as training data may refer to the way in which the classifier generating device trains to obtain the classifier by using the picture information set and the network connection information set as training data, which is not described in detail in the embodiment of the present invention.
Further, when the target terminal needs to send a picture currently, if the target picture is a designated picture, but a user using the terminal receiving the target picture may be used to select the cached compressed picture, the user may need to select the cached compressed picture through the terminal receiving the target picture, otherwise, the cached compressed picture may not be a picture that meets the user's mind, which may result in cumbersome operation. When the target terminal needs to cache the picture currently, if the target picture is the compressed picture of the specified picture, but the user is used to cache the original picture, the target terminal caches the compressed picture of the specified picture and may influence the subsequent user to use the picture, so that the viscosity of the user is reduced. Therefore, in order to improve the user viscosity, the target terminal can also obtain the picture cache mode record of the terminal for receiving the target picture before outputting the category label through the classifier based on the picture information and the network connection information of the specified picture; and based on the picture caching mode record, correcting the classifier.
As can be seen from the above description, the target terminal may be a terminal that sends the target picture or a terminal that receives the target picture, and the mode of the target terminal acquiring the picture cache mode record of the terminal that receives the target picture is different according to different uses of the target terminal.
When the target terminal is a terminal for receiving the target picture, the target terminal can directly acquire the stored cache mode record and correct the classifier according to the cache mode record. When the target terminal is a terminal for sending the target picture, the target terminal can communicate with a terminal for receiving the target picture, so that the target terminal can obtain the cache mode record of the received target picture from the server.
In addition, the target terminal may modify the classifier based on the picture caching mode record by: and determining a first time of caching the original picture of the picture by the terminal receiving the target picture in the picture caching record and a second time of caching the compressed picture of the picture, and correcting the classifier based on the first time and the second time.
Step 203: and the target terminal carries out picture recommendation based on the target picture.
After the target terminal determines the target picture, if the target terminal is a terminal for sending the target picture, the target terminal can directly send the target picture; if the target terminal is a terminal for receiving the target picture, the target terminal can directly cache the target picture. However, since the target picture currently determined by the target terminal is not necessarily a picture currently required by the user, the target terminal may recommend a picture based on the target picture in order to make the sent or cached picture a picture meeting the user's mind. The operation of the target terminal for recommending the picture based on the target picture may be: the target terminal can display first prompt information, wherein the first prompt information is used for prompting that the target picture is the specified picture or a picture after the specified picture is compressed.
In addition, the mode that the target terminal performs the picture recommendation based on the target picture may include not only the above mode, but also other modes, for example, when the mode that the target picture is not matched with the mode that the terminal for receiving the target picture performs the picture caching is not matched, second prompt information is displayed, and the second prompt information is used for prompting whether to continue sending or cache the target picture.
As can be seen from the above, the target terminal may obtain a picture caching mode record of the terminal that receives the target picture, after the target terminal obtains the picture caching mode record, the target terminal may determine whether the target picture matches a mode of caching the picture by the terminal that receives the target picture, instead of recording the correction classifier through the picture caching mode record, based on the picture caching mode record, and when the target picture does not match the mode of caching the picture by the terminal that receives the target picture, display the second prompt information, and when the target picture matches the mode of caching the picture by the terminal that receives the target picture, display the first prompt information.
The target terminal can determine a first time of caching the original image of the terminal receiving the target image in the image caching record and a second time of caching the image compressed image, when the ratio between the first time and the second time is greater than or equal to a preset ratio, the mode of caching the image of the terminal receiving the target image is determined as caching the original image, and when the ratio between the first time and the second time is less than the preset ratio, the mode of caching the image of the terminal receiving the target image is determined as caching the compressed image; when the mode of caching the picture by the terminal for receiving the target picture is to cache the original picture and the target picture is the designated picture, determining that the target picture is matched with the mode of caching the picture by the terminal for receiving the target picture; when the mode of caching the picture by the terminal for receiving the target picture is to cache the original picture and the target picture is the picture after the specified picture is compressed, determining that the mode of caching the picture by the terminal for receiving the target picture is not matched with the mode of caching the picture by the terminal for receiving the target picture; when the mode of caching the picture by the terminal for receiving the target picture is a cache compressed picture and the target picture is a picture after specified picture compression, determining that the target picture is matched with the mode of caching the picture by the terminal for receiving the target picture; and when the mode of caching the picture by the terminal for receiving the target picture is caching the compressed picture and the target picture is the designated picture, determining that the mode of caching the picture by the terminal for receiving the target picture is not matched with the mode of caching the picture by the terminal for receiving the target picture.
It should be noted that the preset ratio may be set in advance, for example, the preset ratio may be 1, 2, 3, and so on.
Further, when the target terminal receives a determination instruction based on the first prompt message or the second prompt message, the target terminal may continue to send or cache the target picture.
In the embodiment of the invention, the target terminal can acquire the picture information and the network connection information of the designated picture before caching or sending the instruction picture, and determines the most suitable target picture to be sent or cached under the current network connection condition through the classifier based on the picture information and the network connection information, and recommends the target picture, so that the target terminal does not need to manually select the designated picture or the compressed picture of the designated picture when sending or caching the target picture subsequently, and the picture sending or caching efficiency is improved.
After explaining the picture recommendation method provided by the embodiment of the present invention, a picture recommendation apparatus provided by the present invention is introduced next.
Fig. 3A is a block diagram of a picture recommendation device according to an embodiment of the present invention, referring to fig. 3A, the picture recommendation device may be implemented by software, hardware, or a combination of the two. The device includes: an acquisition module 301, a determination module 302, and a recommendation module 303.
An obtaining module 301, configured to obtain picture information of a specified picture and current network connection information;
a determining module 302, configured to determine a target picture based on picture information of the specified picture and the network connection information, where the target picture is the specified picture or a picture obtained by compressing the specified picture;
and the recommending module 303 is configured to recommend pictures based on the target picture.
Optionally, referring to fig. 3B, the determining module 302 includes:
an output sub-module 3021 configured to output a category label through a classifier based on the picture information of the specified picture and the network connection information;
the classifier is obtained by training by taking a picture information set and a network connection information set as training data, and the category label is used for indicating whether the specified picture is taken as the target picture or a picture obtained by compressing the specified picture is taken as the target picture;
a determining sub-module 3022, configured to determine the picture indicated by the category label as the target picture.
Optionally, the determining submodule 3022 is configured to:
when the category label is a first label, determining the designated picture as the target picture;
and when the category label is a second label, determining the compressed picture of the specified picture as the target picture.
Optionally, referring to fig. 3C, the determining module 302 further includes:
a first obtaining sub-module 3023, configured to obtain cropping information of the specified picture, where the cropping information is picture information obtained after cropping the specified picture;
accordingly, the output submodule 3021 is configured to:
inputting the picture information, the cropping information and the network connection information of the specified picture into a classifier so as to output the class label through the classifier, wherein the classifier is obtained by training by taking a picture information set, a cropping information set and a network connection information set as training data.
Optionally, referring to fig. 3D, the determining module 302 further includes:
a second obtaining sub-module 3024, configured to obtain a picture caching mode record of a terminal that is used to receive the target picture;
and the correction submodule cache 3025 is configured to correct the classifier based on the picture cache manner record.
Optionally, the picture information includes one or more items of picture content, picture resolution, and picture size.
Optionally, referring to fig. 3E, the recommending module 303 includes:
the first display submodule 3031 is configured to display first prompt information, where the first prompt information is used to prompt that the target picture is the specified picture or the compressed picture of the specified picture.
Optionally, referring to fig. 3F, the recommending module 303 includes:
and a second display sub-module 3032, configured to display second prompt information when the target picture is not matched with a picture caching mode of a terminal that is used to receive the target picture, where the second prompt information is used to prompt whether to continue sending or cache the target picture.
In summary, in the embodiment of the present invention, before the instruction picture is cached or sent, the target terminal may obtain the picture information and the network connection information of the designated picture, determine, through the classifier, the target picture that is most suitable for sending or caching under the current network connection condition based on the picture information and the network connection information, and recommend the target picture, so that when the target terminal sends or caches the target picture subsequently, the user does not need to manually select the designated picture or the compressed picture of the designated picture, thereby improving the picture sending or caching efficiency.
It should be noted that: in the image recommendation device provided in the above embodiment, when recommending an image, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the picture recommendation device and the picture recommendation method provided by the embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Referring to fig. 4 and 5, block diagrams illustrating structures of a terminal 400 according to an exemplary embodiment of the present application are shown, which are block diagrams illustrating an apparatus 400 for determining a face angle according to an exemplary embodiment. For example, the terminal may be a mobile phone, a tablet computer, a notebook computer, a personal computer, an electronic book, and the like. The terminal 400 in the present application may include one or more of the following components: a processor 410, a memory 420, and a touch display 430.
Processor 410 may include one or more processing cores. The processor 410 connects various parts within the overall terminal 400 using various interfaces and lines, performs various functions of the terminal 400 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 420, and calling data stored in the memory 420. Alternatively, the processor 410 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 410 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is responsible for rendering and drawing the content to be displayed by the touch display 430; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 410, but may be implemented by a single chip.
The Memory 420 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 420 includes a non-transitory computer-readable medium. The memory 420 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the terminal 400, and the like.
Taking an operating system as an Android (Android) system as an example, programs and data stored in the memory 420 are as shown in fig. 4, and a Linux kernel layer 520, a system runtime layer 540, an application framework layer 560, and an application layer 580 are stored in the memory 420. The Linux kernel layer 520 provides underlying drivers for various hardware of the terminal 400, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 540 provides main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system Runtime layer 540 is an Android Runtime library 542(Android Runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 560 provides various APIs that may be used in building applications, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 580, and the application programs may be a contact program, a short message program, a clock program, a camera application, and the like of the operating system; or an application program developed by a third-party developer, such as an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 420 are shown in fig. 5, and the IOS system includes: a Core operating system Layer 620(Core OS Layer), a Core Services Layer 640(Core Services Layer), a Media Layer 660(Media Layer), and a touchable Layer 680(Cocoa Touch Layer). The kernel operating system layer 620 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 640. The core services layer 640 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, etc., that are needed by the application. The media layer 660 provides audiovisual interfaces for applications, such as graphics-related interfaces, audio-related interfaces, video-related interfaces, and audio/video transmission technology wireless playback (AirPlay) interfaces. The touchable layer 680 provides various commonly used interface-related frameworks for application development, and the touchable layer 680 is responsible for user touch interaction operations on the terminal 400. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework illustrated in FIG. 5, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 640 and a UIKit framework in the touchable layer 680. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The touch display screen 430 is used for receiving a touch operation of a user on or near the touch screen using any suitable object such as a finger, a touch pen, or the like, and displaying a user interface of each application. The touch display 630 is generally provided at a front panel of the terminal 400. The touch display screen 430 may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display 430 can also be designed as a combination of a full-screen and a curved screen, a combination of a special-shaped screen and a curved screen, or the touch display 430 can also be a foldable display, which is not limited in this embodiment.
In addition, those skilled in the art will appreciate that the configuration of the terminal 400 illustrated in the above-described figures does not constitute a limitation of the terminal 400, and that the terminal 400 may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 400 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the above embodiments, the implementation may be wholly or partly realized by software, hardware, firmware, or any combination thereof. When implemented in software, 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 loaded and executed on a computer, cause the processes or functions described in accordance with embodiments of the invention, to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A picture recommendation method, characterized in that the method comprises:
acquiring picture information of a specified picture, picture trimming information of the specified picture, current network connection information and a picture caching mode record of a terminal for receiving the target picture, wherein the picture caching mode record comprises a first time for caching the specified picture by the terminal for receiving the target picture and a second time for caching the compressed picture of the specified picture by the terminal for receiving the target picture;
modifying the classifier based on the first times and the second times; determining a target picture through a category label output by the classifier based on the picture information of the specified picture, the cropping information of the specified picture and the network connection information, wherein the cropping information of the specified picture refers to the picture information obtained after cropping the specified picture, and the category label is used for indicating whether the specified picture is taken as the target picture or the picture obtained after compressing the specified picture is taken as the target picture;
and recommending pictures based on the target picture.
2. The method of claim 1, wherein the determining a target picture based on the picture information of the specified picture, the cropping information of the specified picture, and the network connection information through the class label output by the classifier comprises:
based on the picture information of the specified picture, the picture repairing information of the specified picture and the network connection information, outputting the category label through the classifier obtained by training by taking a picture information set and a network connection information set as training data;
and determining the picture indicated by the category label as the target picture.
3. The method of claim 2, wherein the determining the picture indicated by the category label as the target picture comprises:
when the category label is a first label, determining the designated picture as the target picture;
and when the category label is a second label, determining the compressed picture of the specified picture as the target picture.
4. The method of claim 1, wherein the picture information comprises one or more of picture content, picture resolution, picture size.
5. The method of claim 1, wherein the making picture recommendations based on the target picture comprises:
and displaying first prompt information, wherein the first prompt information is used for prompting that the target picture is the specified picture or the compressed picture of the specified picture.
6. The method of claim 1, wherein the making picture recommendations based on the target picture comprises:
and when the target picture is not matched with a picture caching mode of a terminal for receiving the target picture, displaying second prompt information, wherein the second prompt information is used for prompting whether to continuously send or cache the target picture.
7. An image recommendation apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring picture information of a specified picture, trimming information of the specified picture, current network connection information and a picture caching mode record of a terminal for receiving the target picture, wherein the picture caching mode record comprises a first time for caching the specified picture by the terminal for receiving the target picture and a second time for caching the compressed picture of the specified picture by the terminal for receiving the target picture;
modifying the classifier based on the first times and the second times;
a determining module, configured to determine a target picture according to a category tag output by the classifier based on picture information of the specified picture, cropping information of the specified picture, and the network connection information, where the cropping information of the specified picture refers to picture information obtained after cropping the specified picture, and the category tag is used to indicate whether the specified picture is used as the target picture or a picture obtained by compressing the specified picture is used as the target picture;
and the recommending module is used for recommending the pictures based on the target pictures.
8. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of claims 1-6 are performed when the program is executed by the processor.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201711090040.XA 2017-11-08 2017-11-08 Picture recommendation method and device, terminal and computer-readable storage medium Active CN107800618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711090040.XA CN107800618B (en) 2017-11-08 2017-11-08 Picture recommendation method and device, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711090040.XA CN107800618B (en) 2017-11-08 2017-11-08 Picture recommendation method and device, terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107800618A CN107800618A (en) 2018-03-13
CN107800618B true CN107800618B (en) 2020-11-06

Family

ID=61549239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711090040.XA Active CN107800618B (en) 2017-11-08 2017-11-08 Picture recommendation method and device, terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107800618B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799738A (en) * 2010-01-27 2010-08-11 华为终端有限公司 Method and device for dynamically adjusting compression rate of browser
CN102647590A (en) * 2012-04-17 2012-08-22 华为终端有限公司 Image compression method and device
CN103796013A (en) * 2014-01-17 2014-05-14 五八同城信息技术有限公司 Method for photo compression in mobile terminal instant messaging
CN106169081A (en) * 2016-06-29 2016-11-30 北京工业大学 A kind of image classification based on different illumination and processing method
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100589519C (en) * 2007-12-12 2010-02-10 北京中星微电子有限公司 A kind of method of transmitting compressed files and receiving device
CN105095915A (en) * 2015-08-21 2015-11-25 努比亚技术有限公司 Information processing method and information processing apparatus, terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799738A (en) * 2010-01-27 2010-08-11 华为终端有限公司 Method and device for dynamically adjusting compression rate of browser
CN102647590A (en) * 2012-04-17 2012-08-22 华为终端有限公司 Image compression method and device
CN103796013A (en) * 2014-01-17 2014-05-14 五八同城信息技术有限公司 Method for photo compression in mobile terminal instant messaging
CN106169081A (en) * 2016-06-29 2016-11-30 北京工业大学 A kind of image classification based on different illumination and processing method
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal

Also Published As

Publication number Publication date
CN107800618A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107889070B (en) Picture processing method, device, terminal and computer readable storage medium
CN108279966B (en) Webpage screenshot method, device, terminal and storage medium
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN107770618B (en) Image processing method, device and storage medium
US20230291980A1 (en) Method and apparatus for video generation and displaying, device, and medium
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
US20220310125A1 (en) Method and apparatus for video production, device and storage medium
CN112839223B (en) Image compression method, image compression device, storage medium and electronic equipment
EP4258165A1 (en) Two-dimensional code displaying method and apparatus, device, and medium
US20240040069A1 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
JP2023522266A (en) Method, apparatus, device and medium for multimedia data delivery
CN114040189A (en) Multimedia test method, device, storage medium and electronic equipment
US20230412723A1 (en) Method and apparatus for generating imagery record, electronic device, and storage medium
CN112492399B (en) Information display method and device and electronic equipment
CN107765858B (en) Method, device, terminal and storage medium for determining face angle
CN107800618B (en) Picture recommendation method and device, terminal and computer-readable storage medium
CN113825022B (en) Method and device for detecting play control state, storage medium and electronic equipment
CN114786069A (en) Video generation method, device, medium and electronic equipment
CN114626332A (en) Content display method and device and electronic equipment
CN115209215A (en) Video processing method, device and equipment
CN113114849A (en) Alarm clock reminding method and device, storage medium and terminal
CN113450762A (en) Character reading method, device, terminal and storage medium
CN113419650A (en) Data moving method and device, storage medium and electronic equipment
CN113836424A (en) Data acquisition method and device, electronic equipment and storage medium
CN111538997A (en) Image processing method, image processing device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant