CN104991765B - A kind of information processing method and device - Google Patents
A kind of information processing method and device Download PDFInfo
- Publication number
- CN104991765B CN104991765B CN201510320782.1A CN201510320782A CN104991765B CN 104991765 B CN104991765 B CN 104991765B CN 201510320782 A CN201510320782 A CN 201510320782A CN 104991765 B CN104991765 B CN 104991765B
- Authority
- CN
- China
- Prior art keywords
- processing information
- image processing
- image
- picture
- user
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种信息处理方法,该方法包括:服务器针对各图片类型获取私有的图片处理信息和公有的图片处理信息,以及各图片处理信息对应的兴趣值;接收到任一用户通过用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在该用户对应的私有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中选择第二预设值个兴趣值最大的图片处理信息;并将选择的所有图片处理信息发送给所述用户终端,使所述用户终端使用接收到的图片处理信息分别处理对应的图片并输出。基于同样的发明构思,本申请还提出一种信息处理装置,增强了用户终端处理图片的能力,并为用户自动提供该用户感兴趣的图片。
The present invention provides an information processing method, which includes: the server obtains private image processing information and public image processing information for each image type, and the interest value corresponding to each image processing information; When sending a request for picture processing information, according to the picture type carried in the request, select the picture processing information with the first preset value and the highest interest value from the private picture processing information corresponding to the user, and select the picture processing information with the highest interest value in the public picture processing information Selecting the picture processing information with the highest interest value from the second preset value; and sending all the selected picture processing information to the user terminal, so that the user terminal uses the received picture processing information to process corresponding pictures and output them. Based on the same inventive idea, the present application also proposes an information processing device, which enhances the ability of the user terminal to process pictures, and automatically provides the user with pictures that the user is interested in.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种信息处理方法和装置。The present invention relates to the field of communication technology, in particular to an information processing method and device.
背景技术Background technique
目前,个人移动终端的拍照需求越来越大,同时对图片的后期制作的需求也日益增大。现有技术主要采用以下三种方法进行图片处理:At present, the demand for taking pictures of personal mobile terminals is increasing, and at the same time, the demand for post-production of pictures is also increasing. The prior art mainly uses the following three methods for image processing:
第一种,预设一种拍照效果,拍照后,自动得到该效果的图片。The first one is to preset a photo effect, and after taking a photo, a picture with this effect is automatically obtained.
第二种,先拍照,拍照后,套用一些预设的编辑模版对图片进行处理。The second method is to take a picture first, and then apply some preset editing templates to process the picture after taking the picture.
第三种,先拍照,拍照后,用图像编辑软件(如Photoshop,美图秀秀等)进行人工的图片编辑。The third way is to take a picture first, and then use image editing software (such as Photoshop, Meitu Xiuxiu, etc.) to manually edit the picture after taking the picture.
现有的技术虽然也能基本满足人们对图片编辑的需求。但主要还是有两点问题存在:一是如果使用专业的图像编辑软件,需要人工编辑调整,耗时耗力;如果调用编辑模板,并不能很好的确保模板中有自己所需要的效果,而且,众多模板也需要用户去慢慢选择。Although the existing technology can basically meet people's needs for picture editing. But there are still two main problems: first, if you use professional image editing software, manual editing and adjustment are required, which is time-consuming and labor-intensive; if you call the editing template, you cannot ensure that the template has the desired effect, and , Many templates also require users to choose slowly.
发明内容Contents of the invention
有鉴于此,本申请提供一种信息处理方法和装置,以解决处理图片时耗时耗力的问题。In view of this, the present application provides an information processing method and device to solve the problem of time-consuming and labor-intensive processing of pictures.
为解决上述技术问题,本申请的技术方案是这样实现的:In order to solve the problems of the technologies described above, the technical solution of the present application is achieved in the following way:
一种信息处理方法,该方法包括:An information processing method, the method comprising:
服务器针对各图片类型获取私有的图片处理信息和公有的图片处理信息,以及各图片处理信息对应的兴趣值;其中,私有的图片处理信息为处理各用户感兴趣图片的图片处理信息,公有的图片处理信息为处理大众用户感兴趣图片的图片处理信息;The server obtains private image processing information and public image processing information for each image type, and the interest value corresponding to each image processing information; among them, the private image processing information is the image processing information for processing the images that each user is interested in, and the public image processing information Processing information is image processing information for processing images of interest to general users;
接收到任一用户通过用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在该用户对应的私有的图片处理信息中选择兴趣值最大的第一预设值个图片处理信息,在公有的图片处理信息中选择兴趣值最大的第二预设值个图片处理信息;并将选择的所有图片处理信息发送给所述用户终端,使所述用户终端使用接收到的图片处理信息分别处理对应的图片并输出。When receiving a picture processing information request sent by any user through the user terminal, select the first preset picture processing information with the largest interest value from the private picture processing information corresponding to the user according to the picture type carried in the request , selecting the second preset image processing information with the largest interest value from the public image processing information; and sending all the selected image processing information to the user terminal, so that the user terminal uses the received image processing information Process the corresponding pictures separately and output them.
一种信息处理装置,该装置包括:获取单元、接收单元、处理单元和发送单元;An information processing device, the device comprising: an acquiring unit, a receiving unit, a processing unit and a sending unit;
所述获取单元,用于针对各图片类型获取私有的图片处理信息和公有的图片处理信息,以及各图片处理信息对应的兴趣值;其中,私有的图片处理信息为处理各用户感兴趣图片的图片处理信息,公有的图片处理信息为处理大众用户感兴趣图片的图片处理信息;The obtaining unit is used to obtain private image processing information and public image processing information for each image type, and the interest value corresponding to each image processing information; wherein, the private image processing information is an image for processing each user's interested image Processing information, public image processing information is image processing information for processing images of interest to public users;
所述接收单元,用于接收图片处理信息请求;The receiving unit is configured to receive a picture processing information request;
所述处理单元,用于当所述接收单元接收到任一用户通过用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在所述获取单元中该用户对应的私有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中选择第二预设值个兴趣值最大的图片处理信息;The processing unit is configured to, when the receiving unit receives a request for image processing information sent by any user through a user terminal, select the private image corresponding to the user in the acquiring unit according to the image type carried in the request Selecting the image processing information with the largest interest value of the first preset value from the processing information, and selecting the image processing information with the largest interest value of the second preset value from the public image processing information;
所述发送单元,用于将所述处理单元选择的所有图片处理信息发送给所述用户终端,使所述用户终端使用接收到的图片处理信息分别处理对应的图片并输出。The sending unit is configured to send all the picture processing information selected by the processing unit to the user terminal, so that the user terminal uses the received picture processing information to process corresponding pictures and output them.
由上面的技术方案可知,本申请中服务器针对各种图片类型预先获取各用户感兴趣的图片和大众感兴趣的图片对应的图片处理信息和兴趣值,在用户需要处理某一图片时,服务器在针对该用户对应的图片处理信息,以及大众感兴趣的图片的对应图片信息中分别选择对应预设值个兴趣值最大的图片处理信息,并将选择的所有图片处理信息推送给用户终端以进行图片处理。增强了用户终端处理图片的能力,并为用户自动提供该用户感兴趣的图片。As can be seen from the above technical solution, the server in this application pre-acquires the image processing information and interest value corresponding to the pictures that each user is interested in and the pictures that the public is interested in for various picture types. When the user needs to process a certain picture, the server will For the picture processing information corresponding to the user and the picture information corresponding to pictures of interest to the general public, respectively select the picture processing information corresponding to the preset value and the maximum interest value, and push all the selected picture processing information to the user terminal for picture processing. deal with. The ability of the user terminal to process pictures is enhanced, and the pictures that the user is interested in are automatically provided to the user.
附图说明Description of drawings
图1为本申请实施例中图片处理信息在数据库中的存储示意图;FIG. 1 is a schematic diagram of storing image processing information in a database in an embodiment of the present application;
图2为本申请实施例中服务器进行信息处理的流程示意图;FIG. 2 is a schematic flow diagram of information processing performed by the server in the embodiment of the present application;
图3为本申请实施例中用户终端处理图片的流程示意图;FIG. 3 is a schematic flow diagram of a user terminal processing a picture in an embodiment of the present application;
图4为本申请实施例中应用于上述技术的装置结构示意图。FIG. 4 is a schematic structural diagram of a device applied to the above technology in an embodiment of the present application.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,下面结合附图并举实施例,对本发明的技术方案进行详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below with reference to the accompanying drawings and examples.
本申请实施例中提供一种信息处理方法,服务器针对各种图片类型预先获取各用户感兴趣的图片和大众感兴趣的图片对应的图片处理信息和兴趣值,在用户需要处理某一图片时,服务器在针对该用户对应的图片处理信息,以及大众感兴趣的图片的对应图片信息中分别选择对应预设值个兴趣值最大的图片处理信息,并将选择的所有图片处理信息推送给用户终端以进行图片处理。增强了用户终端处理图片的能力,并为用户自动提供该用户感兴趣的图片。An information processing method is provided in the embodiment of the present application. The server pre-acquires the image processing information and interest value corresponding to the pictures of interest to each user and the pictures of interest to the general public for various picture types. When the user needs to process a certain picture, The server selects the picture processing information corresponding to the preset value and the maximum interest value from the picture processing information corresponding to the user and the picture information corresponding to the pictures of interest to the public, and pushes all the selected picture processing information to the user terminal for further processing. Do image processing. The ability of the user terminal to process pictures is enhanced, and the pictures that the user is interested in are automatically provided to the user.
任一用户感兴趣的图片为该用户在预设时间内处理过的图片,浏览过的图片、收藏过的图片,点赞过的图片;大众感兴趣的图片为网页上被浏览过的图片、被收藏过的图片,被点赞的图片。这里的预设时间可以根据需要的数据量确定,如1年,半年,还是1个月等。The pictures that any user is interested in are the pictures that the user has processed, browsed, favorited, and liked within the preset time; the pictures that the public is interested in are the pictures that have been browsed, Pictures that have been favorited, pictures that have been liked. The preset time here can be determined according to the amount of data required, such as 1 year, half a year, or 1 month.
服务器针对各图片类型获取私有的图片处理信息和公有的图片处理信息,以及各图片处理信息对应的兴趣值;其中,私有的图片处理信息为处理各用户感兴趣图片的图片处理信息,公有的图片处理信息为处理大众用户感兴趣图片的图片处理信息。The server obtains private image processing information and public image processing information for each image type, and the interest value corresponding to each image processing information; among them, the private image processing information is the image processing information for processing the images that each user is interested in, and the public image processing information The processing information is image processing information for processing images of interest to general users.
本申请实施例中的一个用户终端对应一个用户,也可以对应多个用户,下文以一个用户终端对应一个用户,一个用户对应一个用户终端为例。In the embodiment of the present application, one user terminal corresponds to one user, and may also correspond to multiple users. Hereinafter, one user terminal corresponds to one user, and one user corresponds to one user terminal as an example.
服务器针对各图片类型获取私有的图片处理信息,包括:The server obtains private image processing information for each image type, including:
用户终端收集对应用户感兴趣的图片,并通过各图片获得各图片类型对应的图片处理信息和兴趣值;The user terminal collects the pictures corresponding to the user's interest, and obtains the picture processing information and interest value corresponding to each picture type through each picture;
其中,图片类型为图片场景,图片场景又分为时间场景和物体场景;时间场景如白天、夜间、多云、弱光、强光等;物体场景如动物、食物、动物、花卉、风景、人物等。Among them, the picture type is a picture scene, and the picture scene is divided into a time scene and an object scene; a time scene such as daytime, night, cloudy, low light, strong light, etc.; an object scene such as animals, food, animals, flowers, scenery, people, etc. .
图片处理信息为下述之一或组合:处理图片的参数信息、处理图片的灰度图。The image processing information is one or a combination of the following: parameter information of the processed image, and a grayscale image of the processed image.
获取一张图片对应的处理图片的参数信息具体为:若能获取该图片的原图,则通过分析该图片和该图片的原图的差别获得处理该图片的参数信息;若不能获得该图片的原图,则对该图片进行图像编辑的逆变换,将处理该图片的参数信息从该图片中提取出来。Acquiring the parameter information corresponding to a picture to process the picture is specifically: if the original picture of the picture can be obtained, then the parameter information for processing the picture can be obtained by analyzing the difference between the picture and the original picture of the picture; if the picture cannot be obtained For the original image, the inverse transformation of image editing is performed on the image, and the parameter information for processing the image is extracted from the image.
处理图片的参数信息,如亮度、对比度、色度等。Process image parameter information, such as brightness, contrast, chroma, etc.
处理图片的灰度图为通过处理图片的参数对一张灰度图进行处理后的灰度图,处理图片的灰度图可以看作为图片模板。The grayscale image of the processed image is the grayscale image after processing a grayscale image through the parameters of the processed image, and the grayscale image of the processed image can be regarded as an image template.
针对各图片处理信息确定对应的兴趣值,具体为:Determine the corresponding interest value for each image processing information, specifically:
用户终端使用该图片处理信息处理图片的次数(使用该图片处理信息的次数)、在网页上浏览使用所述图片处理信息处理的图片的次数(浏览量)、在网页上点赞使用所述图片处理信息处理的图片的次数(点赞量)和收藏使用所述处理信息处理的图片的次数(收藏量)按预先配置的权值加权后求和获得该图片处理信息对应的兴趣值。The number of times the user terminal uses the image processing information to process pictures (the number of times the image processing information is used), the number of times the user terminal browses the pictures processed using the image processing information on the webpage (number of views), likes and uses the picture on the webpage The number of times of pictures processed by the processing information (number of likes) and the number of times of saving pictures processed by the processing information (number of favorites) are weighted according to pre-configured weights and then summed to obtain the interest value corresponding to the picture processing information.
用户终端预先为使用该图片处理信息的次数、浏览量、点赞量和收藏量分配权值。The user terminal pre-assigns weights to the number of times, page views, likes, and bookmarks of the image processing information.
当用户终端使用某个图片处理信息处理一次图片,并得到用户认可,即用户选择了使用该图片处理信息处理的图片时,增加使用该图片处理信息的次数,通过加权获取该图片处理信息对应的兴趣值。When the user terminal uses certain picture processing information to process a picture once and is approved by the user, that is, when the user selects a picture processed by using the picture processing information, the number of times the picture processing information is used is increased, and the weight corresponding to the picture processing information is obtained by weighting. interest value.
该针对该图片处理信息对应的浏览量、点赞量和收藏量变化时,处理方式与上述类似,这里不再一一描述。When the amount of views, likes, and collections corresponding to the image processing information changes, the processing method is similar to the above, and will not be described here.
用户终端可以周期将收集的各图片类型对应的图片处理信息和兴趣值发送给服务器,也可以在本地任一图片类型对应的兴趣值变化,或增加了新的图片类型,或新的图片处理信息时,发送给服务器进行图片处理信息和兴趣值的更新。The user terminal can periodically send the collected picture processing information and interest value corresponding to each picture type to the server, or change the local interest value corresponding to any picture type, or add a new picture type, or new picture processing information When , send to the server to update the image processing information and interest value.
服务器接收到用户终端发送的用户感兴趣图片的图片处理信息和兴趣值时,获取该用户感兴趣图片的图片类型对应的图片处理信息和兴趣值,并存储。When the server receives the picture processing information and the interest value of the picture that the user is interested in sent by the user terminal, it acquires the picture processing information and the interest value corresponding to the picture type of the picture that the user is interested in, and stores them.
服务器还会从网络上(如分享图像的网站社区Instagram,LOFTER,Photoshop论坛等)获取大众用户感兴趣的图片,The server will also obtain pictures of interest to the general public from the Internet (such as the website community Instagram, LOFTER, Photoshop forum, etc. for sharing images),
以第一周期为周期从网络上获取大众感兴趣图片,确定各图片类型对应的图片处理信息和兴趣值并进行更新存储,具体实现方法如下:Take the first cycle as a cycle to obtain images of public interest from the Internet, determine the image processing information and interest values corresponding to each image type, and update and store them. The specific implementation method is as follows:
这里的兴趣值为大众用户在网页上浏览使用所述图片处理信息处理的图片的次数(浏览量)、在网页上点赞使用所述图片处理信息处理的图片的次数(点赞量)和收藏使用所述处理信息处理的图片的次数(收藏量)按预先配置的权值加权后求和获得。The interest value here is the number of times (browsing volume) that the general user browses the picture processed by using the image processing information on the webpage, the number of times (the number of likes) that is used to like the picture processed by the image processing information on the webpage, and favorites. The number of times (number of collections) of pictures processed using the processing information is weighted according to a pre-configured weight and then summed.
服务器预先为浏览量、点赞量和收藏量分别配置权值,用于计算兴趣值。The server pre-configures weights for the number of views, likes, and favorites, which are used to calculate the interest value.
服务器还以第二周期为周期从私有的图片处理信息中获取各图片类型对应的图片处理信息作为公有的图片处理信息,并根据预先为各用户分配的权值将各私有的图片处理信息对应的兴趣值加权作为公有的该图片处理信息对应的兴趣值。The server also acquires the image processing information corresponding to each image type from the private image processing information in the second period as the public image processing information, and assigns the corresponding private image processing information to each user according to the weight value assigned to each user in advance. The interest value is weighted as the interest value corresponding to the public image processing information.
这里的第一周期和第二周期不相等,无论在哪个周期到时,获取某个图片类型对应的图片处理信息和兴趣值如果与存储的图片处理信息和兴趣值存在不同时,均使用最新获取的该图片类型对应的图片处理信息和兴趣值更新已存储的对应内容。Here, the first period and the second period are not equal. No matter which period is up, if the image processing information and interest value corresponding to a certain image type are different from the stored image processing information and interest value, the latest acquisition will be used. The image processing information and interest value corresponding to the image type are updated to store the corresponding content.
服务器分别存储各用户对应的图片处理信息,作为私有的图片处理信息,存储从网络侧获取的大众用户对应的图片处理信息,作为公有的图片处理信息。在存储时以图片类型为索引的方式存储。The server respectively stores image processing information corresponding to each user as private image processing information, and stores image processing information corresponding to public users obtained from the network side as public image processing information. When storing, the image type is used as an index to store.
参见图1,图1为本申请实施例中图片处理信息在数据库中的存储示意图。图1中以两个图片类型人物和食物为例。Referring to FIG. 1 , FIG. 1 is a schematic diagram of storing image processing information in a database in an embodiment of the present application. In Figure 1, two picture types of people and food are taken as examples.
针对图片类型(人物),用户1对应的私有的图片处理信息包括两种方式,一种为自拍美白,亮度值:+0.2;色调:白暖色;背景:虚化;对应的兴趣值为105;另外一种方式为韩式自拍,亮度值:+0.1,色调,冷色;背景:虚化,对应的兴趣值为102。For the picture type (person), the private picture processing information corresponding to user 1 includes two methods, one is selfie whitening, brightness value: +0.2; hue: white warm color; background: blur; the corresponding interest value is 105; Another way is Korean selfie, brightness value: +0.1, hue, cool color; background: blurred, the corresponding interest value is 102.
公有的图片处理信息包括一种方式,韩式自拍,亮度值:+0.0;色调:蓝冷色;背景:暗化;对应的兴趣值为100。The public image processing information includes a method, Korean selfie, brightness value: +0.0; hue: cool blue; background: darken; the corresponding interest value is 100.
针对图片类型(食物)对应的图片处理信息不再一一描述。The picture processing information corresponding to the picture type (food) will not be described one by one.
本申请实施例中的服务器可以看作服务端,由一个服务器组成或者由多个服务器组成。在具体实现时,服务器将获取的针对各用户的图片处理信息和兴趣值,以及获取的大众感兴趣图片的图片处理信息和兴趣值后,可以存储到数据库中,也可以存储在可以用于存储的任何位置,便于数据的读取,以及数据的更新即可。The server in the embodiment of the present application can be regarded as a server, and consists of one server or multiple servers. In a specific implementation, the server can store the acquired picture processing information and interest value for each user, as well as the acquired picture processing information and interest value of pictures of interest to the general public, in a database, or in a database that can be used for storing Any location of the data is convenient for data reading and data updating.
服务器能够连接到网络,以便获取网络上的信息,也能够与需要使用服务器的推送的图片处理信息进行图片处理的用户终端连接。The server can be connected to the network so as to obtain information on the network, and can also be connected to a user terminal that needs to use the image processing information pushed by the server for image processing.
本申请实施例中的用户终端,可以为手机、电脑、IPAD等。The user terminal in the embodiment of the present application may be a mobile phone, a computer, an IPAD, and the like.
图1中的图片处理信息以处理图片的参数信息为例,在具体应用时,也可以使用灰度图进行相关存储,获知同时存储灰度图和处理图片的参数信息。The image processing information in Figure 1 takes the parameter information of image processing as an example. In specific applications, the grayscale image can also be used for related storage, and the parameter information of storing the grayscale image and processing image at the same time can be known.
参见图2,图2为本申请实施例中服务器进行信息处理的流程示意图。具体步骤为:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of information processing performed by a server in an embodiment of the present application. The specific steps are:
步骤201,服务器接收到任一用户通过用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在该用户对应的私有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中选择第二预设值个兴趣值最大的图片处理信息。Step 201, when the server receives a picture processing information request sent by any user through the user terminal, it selects the first preset value and the one with the highest interest value from the private picture processing information corresponding to the user according to the picture type carried in the request. The image processing information of the public image processing information is selected, and the image processing information with the highest interest value of the second preset value is selected.
本步骤中第一预设值和第二预设值可以相同,也可以不同;第一预设值和第二预设值均为大于0的整数,假设第一预设值设置为2,第二预设值设置为1,则在私有的图片处理信息中选择2个预设值最大的图片处理信息,在公有的图片处理信息中选择1个兴趣值最大的图片处理信息。In this step, the first preset value and the second preset value can be the same or different; both the first preset value and the second preset value are integers greater than 0, assuming that the first preset value is set to 2, the second If the second preset value is set to 1, two image processing information with the largest preset value are selected from the private image processing information, and one image processing information with the largest interest value is selected from the public image processing information.
在具体实现时,可以将同一用户对应的同一图片类型的图片处理信息按照对应的兴趣值从大到小排列,选择第一预设值个兴趣值最大的图片处理信息,即选择前第一预设值个图片处理信息;对于公有的图片处理信息处理类似,在公有的图片处理信息中针对同一图片类型,按照图片处理信息对应的兴趣值从大到小的顺序排列,选择第二预设值个兴趣值最大的图片处理信息,即选择前第二预设值个图片处理信息。In a specific implementation, the picture processing information of the same picture type corresponding to the same user can be arranged in descending order according to the corresponding interest value, and the picture processing information with the first preset value and the largest interest value can be selected, that is, the first preset value before selecting Set the value of image processing information; similar to the processing of public image processing information, in the public image processing information for the same image type, according to the order of interest values corresponding to the image processing information from large to small, select the second preset value The image processing information with the largest interest value, that is, the second preset image processing information before selecting.
本申请具体实现时,不限于上述实现方式,也可以将图片处理信息按兴趣值从小到大的顺序排列,也可以不排列,使用比较的方式实现选择预设值个兴趣值最大的图片处理信息。When the present application is implemented, it is not limited to the above-mentioned implementation methods, and the image processing information can also be arranged in the order of interest values from small to large, or not arranged, and the method of comparison can be used to select the image processing information with the largest interest value from the preset value .
在具体实现时,当公有的图片处理信息和私有的图片处理信息的个数不能达到预设值时,则有多少个对应图片处理信息选择多少个图片处理信息。In specific implementation, when the number of public image processing information and private image processing information cannot reach the preset value, how many corresponding image processing information are selected and how many image processing information are selected.
当用户终端需要处理图片时,会向服务器发送图片处理信息请求,并携带图片类型。When the user terminal needs to process a picture, it will send a picture processing information request to the server, carrying the picture type.
以图1中的为例,假设图片处理请求携带的图片类型为人物,且发送请求的用户终端对应用户1,第一预设值设置为1,第二预设值设置为1,则在人物对应的私有的图片处理信息中选择兴趣值最大的图片处理信息,即自拍美白方式对应的图片处理信息,在公有的图片处理信息中选择兴趣值最大的图片处理信息,即韩式自拍方式对应的图片处理信息。Taking the picture in Figure 1 as an example, assuming that the picture type carried in the picture processing request is a character, and the user terminal sending the request corresponds to user 1, the first preset value is set to 1, and the second preset value is set to 1, then the character Select the image processing information with the largest interest value from the corresponding private image processing information, that is, the image processing information corresponding to the selfie whitening method, and select the image processing information with the largest interest value from the public image processing information, that is, the Korean selfie method. Image processing information.
步骤202,服务器将选择的所有图片处理信息发送给所述用户终端,使所述用户终端使用接收到的图片处理信息分别处理对应的图片并输出。Step 202, the server sends all selected image processing information to the user terminal, so that the user terminal uses the received image processing information to process corresponding images and output them.
服务器每次接收到用户终端发送的图片处理信息请求时,会为用户终端选择第一预设值个私有的图片处理信息和第二预设值个公有的图片处理信息并都推送给用户终端,如果该用户终端对应的私有的图片处理信息为空,则只推送公有的图片处理信息;同样对应的公有的图片处理信息为空,则只推送私有的图片处理信息;两者都为空时,通知用户终端,使用户终端自行处理图片。Each time the server receives a picture processing information request sent by the user terminal, it will select a first preset value of private picture processing information and a second preset value of public picture processing information for the user terminal and push them to the user terminal, If the private image processing information corresponding to the user terminal is empty, only the public image processing information is pushed; if the corresponding public image processing information is empty, only the private image processing information is pushed; when both are empty, The user terminal is notified, so that the user terminal processes the picture by itself.
用户终端接收到的服务器发送的图片处理信息时,根据图片处理信息分别对需要处理的图片进行处理,并输出。When receiving the image processing information sent by the server, the user terminal processes the images to be processed according to the image processing information, and outputs them.
当输出的图片后接收到选择其中一张图片的时,结束对该图片的处理流程;当接收到否认输出的所有图片的命令时,再次向服务器发送图片处理信息请求,并在该请求中增加标识,使服务器获知用户对前一次推送的图片处理信息处理的图片不满意。When receiving an instruction to select one of the output pictures, end the process of processing the picture; when receiving a command to deny all output pictures, send a picture processing information request to the server again, and add to the request flag, so that the server knows that the user is not satisfied with the picture processed by the picture processing information pushed last time.
服务器当接收到该用户通过该用户终端针对同一图片再次发送图片处理信息请求时,根据该请求携带的图片类型在该用户对应的私有的图片处理信息中未为该图片选择过的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中未为该用户选择过的图片处理信息中选择第二预设值个兴趣值最大的图片处理信息响应给所述用户端;并将选择的图片处理信息再次发送给用户终端,使用户终端使用服务器发送的图片处理信息处理该图片。When the server receives the user's request for image processing information sent again for the same image through the user terminal, the image type carried in the request is among the image processing information that has not been selected for the image in the private image processing information corresponding to the user. Select the picture processing information with the largest interest value of the first preset value, and select the picture processing information with the largest interest value of the second preset value from the picture processing information that has not been selected for the user in the public picture processing information to respond to all and send the selected image processing information to the user terminal again, so that the user terminal processes the image using the image processing information sent by the server.
循环进行上述操作,直到在输出图片后接收到用户确认的命令,或者服务器没有新的图片处理信息推送给用户终端未知。用户手动处理该图片,并存储处理该图片的图片处理信息和兴趣值。Repeat the above operations until the user confirms the command is received after the image is output, or the server has no new image processing information to push to the user terminal unknown. The user manually processes the picture, and stores picture processing information and interest values for processing the picture.
参见图3,图3为本申请实施例中用户终端处理图片的流程示意图。具体步骤为:Referring to FIG. 3 , FIG. 3 is a schematic flow chart of processing a picture by a user terminal in an embodiment of the present application. The specific steps are:
步骤301,用户终端需要处理图片时,向服务发送处理该图片的图片处理信息请求,该请求中携带该图片的图片类型。Step 301, when the user terminal needs to process a picture, it sends a picture processing information request for processing the picture to the service, and the request carries the picture type of the picture.
服务器接收到该用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在该用户对应的私有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中选择第二预设值个兴趣值最大的图片处理信息,并发送给所述用户终端。When the server receives the picture processing information request sent by the user terminal, according to the picture type carried in the request, it selects the picture processing information with the first preset value and the maximum interest value from the private picture processing information corresponding to the user, and then From the public image processing information, the image processing information with the second preset value having the highest interest value is selected, and sent to the user terminal.
步骤302,该用户终端是否接收到服务器发送的图片处理信息,如果是,执行步骤303;否则,执行步骤307。Step 302, whether the user terminal has received the image processing information sent by the server, if yes, execute step 303; otherwise, execute step 307.
步骤303,该用户终端使用接收到的图片处理信息处理需要处理的图片,并输出处理后的图片。Step 303, the user terminal uses the received picture processing information to process the picture to be processed, and outputs the processed picture.
在实际应用中,用户终端接收到服务器推送的图片处理信息可能为一个,可能为两个以上,如果为一个时,直接使用推送的一个图片处理信息处理图片;如果为两个以上时,使用推送的两个以上图片处理信息分别处理图片。In practical applications, the user terminal may receive one image processing information pushed by the server, and may be more than two. If there is one image processing information, the image is processed directly using one pushed image processing information; Two or more image processing information of the image are processed separately.
步骤304,该用户终端是否接收到用户输入的确认命令,如果是,执行步骤305;否则,执行步骤306。Step 304, whether the user terminal receives the confirmation command input by the user, if yes, execute step 305; otherwise, execute step 306.
步骤305,该用户终端增加被用户确认的图片对应的图片处理信息的次数,结束本流程;Step 305, the user terminal increases the number of times of the picture processing information corresponding to the picture confirmed by the user, and ends this process;
步骤306,该用户终端针对该需要处理的图片再次向服务器发送图片处理信息请求,执行步骤302。In step 306, the user terminal sends a request for image processing information to the server again for the image to be processed, and step 302 is executed.
步骤307,该用户终端在本地选择图片处理信息处理该图片,并生成该图片类型对应的图片处理信息和兴趣值。Step 307, the user terminal locally selects the picture processing information to process the picture, and generates the picture processing information and interest value corresponding to the picture type.
在设备运行初始阶段,服务器上也可能不存在该图片类型对应的图片处理信息,则用户终端会接收到服务器发送的无图片处理信息推送的响应。In the initial stage of device operation, the image processing information corresponding to the image type may not exist on the server, and the user terminal will receive the push response of no image processing information sent by the server.
用户终端接收到该响应时,该用户终端在本地选择图片处理信息处理该图片,即手动处理该图片。如使用处理图片的工具,模板等。When the user terminal receives the response, the user terminal locally selects the picture processing information to process the picture, that is, manually processes the picture. Such as using image processing tools, templates, etc.
基于同样的发明构思,本申请还提出一种信息处理装置。参见图4,图4为本申请实施例中应用于上述技术的装置结构示意图。该装置包括:获取单元401、接收单元402、处理单元403和发送单元404;Based on the same inventive concept, this application also proposes an information processing device. Referring to FIG. 4 , FIG. 4 is a schematic structural diagram of a device applied to the above technology in an embodiment of the present application. The device includes: an acquiring unit 401, a receiving unit 402, a processing unit 403 and a sending unit 404;
获取单元401,用于针对各图片类型获取私有的图片处理信息和公有的图片处理信息,以及各图片处理信息对应的兴趣值;其中,私有的图片处理信息为处理各用户感兴趣图片的图片处理信息,公有的图片处理信息为处理大众用户感兴趣图片的图片处理信息;The acquisition unit 401 is configured to acquire private image processing information and public image processing information for each image type, and interest values corresponding to each image processing information; wherein, the private image processing information is image processing information for processing images of interest to each user Information, public image processing information is image processing information for processing images of interest to public users;
接收单元402,用于接收图片处理信息请求;a receiving unit 402, configured to receive a picture processing information request;
处理单元403,用于当接收单元402接收到任一用户通过用户终端发送的图片处理信息请求时,根据所述请求中携带的图片类型在获取单元401中该用户对应的私有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息;The processing unit 403 is configured to, when the receiving unit 402 receives a picture processing information request sent by any user through the user terminal, according to the picture type carried in the request, in the private picture processing information corresponding to the user in the obtaining unit 401 Selecting the picture processing information with the largest interest value of the first preset value, and selecting the picture processing information with the largest interest value of the first preset value from the public picture processing information;
发送单元404,用于将处理单元403选择的所有图片处理信息发送给所述用户终端,使所述用户终端使用接收到的图片处理信息分别处理对应的图片并输出。The sending unit 404 is configured to send all the picture processing information selected by the processing unit 403 to the user terminal, so that the user terminal uses the received picture processing information to process corresponding pictures and output them.
较佳地,Preferably,
处理单元403,进一步用于当接收单元402接收到该用户通过所述用户终端针对同一图片再次发送图片处理信息请求时,在获取单元401中该用户对应的私有的图片处理信息中未为该图片选择过的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息,在公有的图片处理信息中未为该用户选择过的图片处理信息中选择第一预设值个兴趣值最大的图片处理信息并触发发送单元404响应给所述用户端。The processing unit 403 is further configured to, when the receiving unit 402 receives the user's request for re-sending picture processing information for the same picture through the user terminal, the private picture processing information corresponding to the user in the obtaining unit 401 does not include the picture Select the image processing information with the first preset value and the largest interest value among the selected image processing information, and select the first preset value and the largest interest value among the image processing information that has not been selected for the user in the public image processing information image processing information and trigger the sending unit 404 to respond to the client.
较佳地,Preferably,
获取单元401,具体用于针对各图片类型获取私有的图片处理信息时,接收到用户终端发送的用户感兴趣图片的图片处理信息时,获取该用户感兴趣图片的图片类型对应的图片处理信息;所述图片处理信息对应的兴趣值为用户终端使用该图片处理信息处理图片的次数、在网页上浏览使用所述图片处理信息处理的图片的次数、在网页上点赞使用所述图片处理信息处理的图片的次数和收藏使用所述处理信息处理的图片的次数按预先配置的权值加权后求和获得。The acquiring unit 401 is specifically configured to acquire the picture processing information corresponding to the picture type of the user's interested picture when receiving the picture processing information of the user's interested picture sent by the user terminal when acquiring private picture processing information for each picture type; The interest value corresponding to the image processing information is the number of times the user terminal uses the image processing information to process the image, the number of times the user terminal browses the image processed using the image processing information on the webpage, and likes on the webpage to process the image using the image processing information. The number of pictures and the number of favorite pictures processed by using the processing information are weighted by a pre-configured weight and then summed.
较佳地,Preferably,
获取单元401,具体用于针对各图片类型获取公有的图片处理信息时,以第一周期为周期从网络上获取大众感兴趣图片,确定各图片类型对应的图片处理信息和兴趣值并进行更新存储;所述兴趣值为大众用户在网页上浏览使用所述图片处理信息处理的图片的次数、在网页上点赞使用所述图片处理信息处理的图片的次数和收藏使用所述处理信息处理的图片的次数按预先配置的权值加权后求和获得;以第二周期为周期从私有的图片处理信息中获取各图片类型对应的图片处理信息作为公有的图片处理信息,并根据预先为各用户分配的权值将各私有的图片处理信息对应的兴趣值加权作为公有的该图片处理信息对应的兴趣值。The obtaining unit 401 is specifically used to obtain public image processing information for each image type, obtain images of public interest from the network in the first cycle, determine image processing information and interest values corresponding to each image type, and update and store them ; The interest value is the number of times a public user browses a picture processed by using the image processing information on a web page, the number of times a user likes a picture processed by using the image processing information on a web page, and collects a picture processed by using the image processing information The number of times is weighted according to the pre-configured weights and then summed to obtain; the second period is used as the period to obtain the image processing information corresponding to each image type from the private image processing information as the public image processing information, and according to the pre-allocated for each user The weighted value weights the interest value corresponding to each private image processing information as the interest value corresponding to the public image processing information.
较佳地,所述图片处理信息为下述之一或组合:处理图片的参数信息、处理图片的灰度图;其中,所述灰度图为通过处理图片的参数对一张灰度图进行处理后的灰度图。Preferably, the image processing information is one or a combination of the following: parameter information of the processed image, grayscale image of the processed image; wherein, the grayscale image is processed by processing the parameters of the image on a grayscale image The processed grayscale image.
上述实施例的单元可以集成于一体,也可以分离部署;可以合并为一个单元,也可以进一步拆分成多个子单元。The units in the above embodiments can be integrated or deployed separately; they can be combined into one unit, or can be further split into multiple sub-units.
综上所述,本申请通过服务器针对各种图片类型预先获取各用户感兴趣的图片和大众感兴趣的图片对应的图片处理信息和兴趣值,在用户需要处理某一图片时,服务器在针对该用户对应的图片处理信息,以及大众感兴趣的图片的对应图片信息中分别选择对应预设值个兴趣值最大的图片处理信息,并将选择的所有图片处理信息推送给用户终端以进行图片处理。To sum up, this application pre-obtains the image processing information and interest value corresponding to the pictures that each user is interested in and the pictures that are of interest to the public through the server for various picture types. When the user needs to process a certain picture, the server From the image processing information corresponding to the user and the image information corresponding to the images of interest to the general public, respectively select the image processing information corresponding to the preset value with the highest interest value, and push all the selected image processing information to the user terminal for image processing.
本申请提供的实施例中,服务器自动推送编辑图片的图片处理信息,免去用户搜索和筛选的过程;真正实现了智能贴心的图像编辑推送,根据某个用户,以及大众用户的兴趣取向准确筛选和推送,当服务器上存储的图片处理信息越多时,一次推送的成功率将越高。In the embodiment provided by this application, the server automatically pushes the image processing information for editing pictures, eliminating the need for users to search and filter; it truly realizes intelligent and thoughtful image editing and pushing, and accurately screens according to the interest orientation of a certain user and public users And push, the more image processing information stored on the server, the higher the success rate of a push will be.
同时还增强了用户在图片编辑领域的体验,称为用户终端的新亮点,吸引更多手工编辑能力较差的用户,在不需要动手的情况下,可以处理出更满意的图片,以适应现在网络上晒图、微信等需求。At the same time, it also enhances the user's experience in the field of picture editing, which is called a new highlight of the user terminal, attracting more users with poor manual editing ability, and can process more satisfactory pictures without manual work, so as to adapt to the current Post pictures on the Internet, WeChat and other needs.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510320782.1A CN104991765B (en) | 2015-06-11 | 2015-06-11 | A kind of information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510320782.1A CN104991765B (en) | 2015-06-11 | 2015-06-11 | A kind of information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104991765A CN104991765A (en) | 2015-10-21 |
CN104991765B true CN104991765B (en) | 2018-05-25 |
Family
ID=54303581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510320782.1A Active CN104991765B (en) | 2015-06-11 | 2015-06-11 | A kind of information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104991765B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677734B (en) | 2019-09-30 | 2023-03-10 | 北京达佳互联信息技术有限公司 | Video synthesis method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102740123A (en) * | 2011-03-30 | 2012-10-17 | 卡西欧计算机株式会社 | Image display method, server, and image display system |
CN103166945A (en) * | 2011-12-14 | 2013-06-19 | 北京千橡网景科技发展有限公司 | Image processing method and system |
CN104503749A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Photo processing method and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2980614B1 (en) * | 2011-09-23 | 2013-09-13 | Astrium Sas | METHOD AND SYSTEM FOR CORRECTING A DIGITAL IMAGE BY GEOMETRICAL RECALING OF THIS IMAGE ON A REFERENCE IMAGE |
-
2015
- 2015-06-11 CN CN201510320782.1A patent/CN104991765B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102740123A (en) * | 2011-03-30 | 2012-10-17 | 卡西欧计算机株式会社 | Image display method, server, and image display system |
CN103166945A (en) * | 2011-12-14 | 2013-06-19 | 北京千橡网景科技发展有限公司 | Image processing method and system |
CN104503749A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Photo processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104991765A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491701B (en) | Automatically creating a group for sharing photos | |
US8958662B1 (en) | Methods and systems for automating insertion of content into media-based projects | |
US10359927B2 (en) | Methods and systems for photo, page, and spread arrangement on space-constrained user devices | |
US8923551B1 (en) | Systems and methods for automatically creating a photo-based project based on photo analysis and image metadata | |
CN103608835B (en) | Content processing apparatus, content processing method and integrated circuit | |
EP3226514B1 (en) | Picture sharing method and apparatus, and terminal device | |
US8935322B1 (en) | Methods and systems for improved uploading of media files for use in media-rich projects | |
JP7247587B2 (en) | Image style conversion device, image style conversion method, and program | |
CN107193944A (en) | Method for pushing, terminal, server and the computer-readable recording medium of theme | |
JP6463996B2 (en) | Information processing apparatus, method, and program | |
JP6381514B2 (en) | Image processing system, information processing apparatus and control method thereof | |
US20150242405A1 (en) | Methods, devices and systems for context-sensitive organization of media files | |
JP2015141530A (en) | information processing apparatus, score calculation method, program, and system | |
CN108230220B (en) | Watermark adding method and device | |
CN111316628A (en) | Image shooting method and image shooting system based on intelligent terminal | |
JP7232478B2 (en) | Context-based image selection | |
CN106850711A (en) | A kind of processing method of file-sharing, device, server and system | |
JP2017033293A (en) | Image processing device, image processing method, program, and recording medium | |
CN104991765B (en) | A kind of information processing method and device | |
CN104137101B (en) | Method, apparatus for managing media file and computer program product | |
WO2016079609A1 (en) | Generation apparatus and method for evaluation information, electronic device and server | |
US10860876B2 (en) | Image presentation system, image presentation method, program, and recording medium | |
KR101114768B1 (en) | Web-based video browsing | |
KR102523006B1 (en) | Method, apparatus and computer program for providing contents list | |
CN107330018A (en) | The methods of exhibiting and display systems of a kind of photo |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |