HK1218585B - Method and apparatus for providing recommendation information on photographing - Google Patents
Method and apparatus for providing recommendation information on photographing Download PDFInfo
- Publication number
- HK1218585B HK1218585B HK16106574.3A HK16106574A HK1218585B HK 1218585 B HK1218585 B HK 1218585B HK 16106574 A HK16106574 A HK 16106574A HK 1218585 B HK1218585 B HK 1218585B
- Authority
- HK
- Hong Kong
- Prior art keywords
- information
- template
- photo
- description information
- photographed
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及电子商务交易平台技术领域,特别是涉及提供拍照推荐信息的方法及装置。The present application relates to the technical field of e-commerce transaction platforms, and in particular to a method and device for providing photo recommendation information.
背景技术Background Art
在电子商务交易平台中,卖家用户需要将其出售的商品对象的信息发布在平台中,以便买家用户进行查看,并确定是否符合自己的需求。在卖家用户发布商品对象信息的过程中,经常有需要上传照片、以展示其发布的商品对象的需求。其中,对于某些特殊的商品对象而言,在通过照片展示其特征或者效果时,一般不仅仅需要拍摄该商品对象本身,还需要通过一些方式来展示其在某种状态下的效果,这样的照片才更具有价值,更能体现商品对象的特点。例如,服装、鞋帽等类目的商品对象,将服装、鞋帽等平铺在某处进行拍摄时,可能比较难展现出其特点,因此,一般可能会穿戴在人物的身上之后,对人物进拍照,之后上传到服务器进行展示。在此过程中,卖家用户都希望自己的照片能够拍得好,为其展示的商品对象起到加分的作用。其中,照片拍得好与不好,在很大程度上取决于被拍摄人物所摆的姿势等、拍摄的角度等。On e-commerce platforms, sellers need to publish information about the items they sell so that buyers can view them and determine whether they meet their needs. When sellers publish their product information, they often need to upload photos to showcase the items. For certain special items, showcasing their features or effects through photos often requires more than just the item itself; photos also need to show the item in a specific state. Such photos are more valuable and better reflect the product's characteristics. For example, for items like clothing, shoes, and hats, it can be difficult to capture their characteristics when simply laying them flat. Therefore, photos are often taken of people wearing the items, then uploaded to a server for display. During this process, sellers often want to capture good photos to enhance the quality of their displayed items. The quality of a photo depends heavily on factors such as the subject's pose and the angle of the shot.
在实际应用中,一般的大型商家可能会请专业的模特和摄影师对商品对象进行拍照,以获得更好的拍照效果,以达到美化其商品对象的目的。但是这样成本会很高。因此,一些小型或者个人卖家用户可能会选择自己充当模特,或者请一些业余的模特,摄影师可能也不够专业,这样虽然成本会被控制住,但是拍摄出的图片的效果可能不会太好,其主要原因就体现在,模特不够专业,不会根据服装的款式、风格、材质等摆出适当的姿势,因此无法凸显出商品对象的特点,甚至有的反而还丑化了商品对象;另外,摄影师在不够专业的情况下,可能也无法指导被拍摄的模特如何摆出恰当的姿势,或者调整适当的角度等。总之,对于小型或者个人的卖家用户而言,如何拍摄出比较好的照片,使其真正起到宣传或者美化其商品对象的作用,是很难实现的。In practice, large businesses typically hire professional models and photographers to photograph their products to achieve better results and enhance their products. However, this approach is costly. Consequently, some small or individual sellers may choose to act as models themselves, or hire amateur models, with photographers who may not be professional enough. While this approach keeps costs down, the resulting images may not be as good. This is primarily due to the models' lack of professionalism and inability to strike appropriate poses based on the style, texture, and material of the clothing. Consequently, the product's characteristics may not be highlighted, and some may even be detracted from. Furthermore, photographers who are not professional enough may be unable to guide the models in proper poses or adjust angles. In short, capturing high-quality photos that truly promote or enhance their products is difficult for small or individual sellers.
因此,如何有效地指导卖家用户拍摄出高质量的照片,是迫切需要本领域技术人员解决的技术问题。Therefore, how to effectively guide seller users to take high-quality photos is a technical problem that urgently needs to be solved by those skilled in the art.
发明内容Summary of the Invention
本申请提供了提供拍照推荐信息的方法及装置,有利于获得比较好的拍照效果,使得商品对象详情界面中展示的商品对象图片可以更好的展示出商品对象的特点。The present application provides a method and device for providing photo recommendation information, which is conducive to obtaining better photo effects, so that the product object pictures displayed in the product object details interface can better show the characteristics of the product object.
本申请提供了如下方案:This application provides the following solutions:
一种提供拍照推荐信息的方法,包括:A method for providing photo recommendation information, comprising:
接收卖家用户为指定商品对象提交拍照图片的请求;Receive a request from a seller user to submit a photo of a specified product object;
获取待被拍摄对象的描述信息;Obtaining description information of the object to be photographed;
向服务器发送获取拍照模板的请求,所述请求中携带所述描述信息,以便所述服务器将所述待被拍摄对象的描述信息与模板数据库中各个拍照模板的描述信息进行匹配运算,获取相匹配的目标拍照模板,其中,所述模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关;sending a request to a server for obtaining a photographic template, the request carrying the description information, so that the server can match the description information of the object to be photographed with the description information of each photographic template in a template database to obtain a matching target photographic template, wherein the template database stores a plurality of photographic templates and their corresponding description information, and the description information of the photographic template is related to the description information of the object displayed in the photographic template;
根据服务器返回的相匹配的目标拍照模板提供拍照推荐信息;Provide photo recommendation information based on the matching target photo template returned by the server;
在接收到上传拍照图片的请求后,将该拍照图片以及所述指定商品对象的标识信息上传到服务器,以便服务器保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。After receiving a request to upload a photographed picture, the photographed picture and the identification information of the designated product object are uploaded to the server so that the server saves the association between the photographed picture and the identification information of the designated product object for displaying the photographed picture on the details page of the designated product object.
一种提供拍照推荐信息的方法,提供一模板数据库,该模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关,所述方法包括:A method for providing photo recommendation information includes providing a template database, wherein the template database stores a plurality of photo templates and corresponding description information, wherein the description information of the photo templates is related to the description information of the objects displayed in the photo templates, and the method includes:
接收客户端发送的获取拍照模板的搜索请求,所述请求中携带有待被拍摄对象的描述信息;Receive a search request for obtaining a photographing template from a client, wherein the request carries description information of an object to be photographed;
将所述待被拍摄对象的描述信息与所述模板数据库中各个拍照模板的描述信息进行匹配运算;Performing a matching operation on the description information of the object to be photographed and the description information of each photographing template in the template database;
将匹配成功的目标拍照模板返回给客户端,以便所述客户端利用所述目标拍照模板提供拍照推荐信息;Returning the successfully matched target photo template to the client, so that the client can use the target photo template to provide photo recommendation information;
接收客户端提交的拍照图片以及指定商品对象的标识信息,保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。Receive the photographed picture and the identification information of the specified product object submitted by the client, save the association relationship between the photographed picture and the identification information of the specified product object, and use it to display the photographed picture on the details page of the specified product object.
一种提供拍照推荐信息的装置,包括:A device for providing photo recommendation information, comprising:
请求接收单元,用于接收卖家用户为指定商品对象提交拍照图片的请求;A request receiving unit, configured to receive a request from a seller user to submit a photo of a specified product object;
描述信息获取单元,用于获取待被拍摄对象的描述信息;A description information acquisition unit, configured to acquire description information of the object to be photographed;
请求发送单元,用于向服务器发送获取拍照模板的请求,所述请求中携带所述描述信息,以便所述服务器将所述待被拍摄对象的描述信息与模板数据库中各个拍照模板的描述信息进行匹配运算,获取相匹配的目标拍照模板,其中,所述模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关;a request sending unit, configured to send a request for obtaining a photographing template to a server, wherein the request carries the description information, so that the server performs a matching operation on the description information of the object to be photographed with the description information of each photographing template in a template database to obtain a matching target photographing template, wherein the template database stores a plurality of photographing templates and their corresponding description information, and the description information of the photographing template is related to the description information of the object displayed in the photographing template;
推荐信息提供单元,用于根据服务器返回的相匹配的目标拍照模板提供拍照推荐信息;A recommendation information providing unit, configured to provide photo recommendation information based on the matching target photo template returned by the server;
上传单元,用于在接收到上传拍照图片的请求后,将该拍照图片以及所述指定商品对象的标识信息上传到服务器,以便服务器保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。The uploading unit is used to upload the photographed picture and the identification information of the specified commodity object to the server after receiving a request to upload the photographed picture, so that the server can save the association relationship between the photographed picture and the identification information of the specified commodity object for displaying the photographed picture on the details page of the specified commodity object.
一种提供拍照推荐信息的装置,提供一模板数据库,该模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关,所述装置包括:A device for providing photo recommendation information includes a template database storing a plurality of photo templates and their corresponding description information, wherein the description information of the photo templates is related to the description information of the objects displayed in the photo templates. The device includes:
搜索请求接收单元,用于接收客户端发送的获取拍照模板的搜索请求,所述请求中携带有待被拍摄对象的描述信息;A search request receiving unit, configured to receive a search request for obtaining a photographing template sent by a client, wherein the request carries description information of an object to be photographed;
匹配运算单元,用于将所述待被拍摄对象的描述信息与所述模板数据库中各个拍照模板的描述信息进行匹配运算;a matching operation unit, configured to perform a matching operation on the description information of the object to be photographed and the description information of each photographing template in the template database;
拍照模板返回单元,用于将匹配成功的目标拍照模板返回给客户端,以便所述客户端利用所述目标拍照模板提供拍照推荐信息;a photographing template returning unit, configured to return the successfully matched target photographing template to the client, so that the client can use the target photographing template to provide photographing recommendation information;
关联关系保存单元,用于接收客户端提交的拍照图片以及指定商品对象的标识信息,保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。The association relationship saving unit is used to receive the photographed picture submitted by the client and the identification information of the specified product object, and save the association relationship between the photographed picture and the identification information of the specified product object for displaying the photographed picture in the details page of the specified product object.
根据本申请提供的具体实施例,本申请公开了以下技术效果:According to the specific embodiments provided in this application, this application discloses the following technical effects:
通过本申请实施例,可以预先在服务器中设置多个可选的拍照模板,在卖家用户需要为其指定的商品对象提供拍照图片时,可以根据被拍摄对象的描述信息,推荐匹配的目标拍照模板,这样,用户就可以根据该拍照模板调整自己的姿势、拍摄角度等,最终获得比较好的拍照效果,进而可以使得商品对象详情界面中展示的商品对象图片可以更好的展示出商品对象的特点。Through the embodiment of the present application, multiple optional photo templates can be set in advance in the server. When the seller user needs to provide a photo of the product object specified by him, a matching target photo template can be recommended based on the description information of the photographed object. In this way, the user can adjust his posture, shooting angle, etc. according to the photo template, and finally obtain a better photo effect, so that the product object picture displayed in the product object details interface can better show the characteristics of the product object.
当然,实施本申请的任一产品并不一定需要同时达到以上所述的所有优点。Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1是本申请实施例提供的方法的流程图;FIG1 is a flow chart of a method provided in an embodiment of the present application;
图2是本申请实施例提供的拍照模板的示意图;FIG2 is a schematic diagram of a photographing template provided in an embodiment of the present application;
图3是本申请实施例提供的身体轮廓曲线示意图;FIG3 is a schematic diagram of a body contour curve provided in an embodiment of the present application;
图4是本申请实施例提供的另一身体轮廓曲线示意图;FIG4 is another schematic diagram of a body contour curve provided in an embodiment of the present application;
图5是本申请实施例提供的另一方法的流程图;FIG5 is a flow chart of another method provided in an embodiment of the present application;
图6是本申请实施例提供的装置的示意图;FIG6 is a schematic diagram of a device provided in an embodiment of the present application;
图7是本申请实施例提供的另一装置的示意图。FIG7 is a schematic diagram of another device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
在本申请实施例中,为了能够有效的指导卖家用户拍摄出高质量的照片,可以预先提供一拍照模板数据库,该数据库中保存有一些模板照片,这些模板照片中一般会包含一些人物信息,以及人物穿戴的服装、鞋帽等信息,这样,当用户需要拍照时,可以自行选择或者系统为其推荐拍照模板,用户可以参考模板中的人物所摆的姿势、拍摄的角度等,进行照片的拍摄。In an embodiment of the present application, in order to effectively guide seller users to take high-quality photos, a photo template database can be provided in advance. The database stores some template photos. These template photos generally contain some character information, as well as information such as the clothes, shoes and hats worn by the characters. In this way, when the user needs to take a photo, he or she can choose it by himself or the system can recommend a photo template for him or her. The user can refer to the posture of the character in the template, the shooting angle, etc. to take the photo.
具体在建立拍照模板数据库时,可以有多种方式,例如,预先通过人工收集等方式获取一些拍摄效果比较好的照片,保存到模板数据库中。或者,可以基于电子商务交易平台的海量图片数据库,生成拍照模板数据库,等等。There are many ways to build a photo template database. For example, you can manually collect some good photos and save them in the template database. Alternatively, you can generate a photo template database based on the massive image database of an e-commerce trading platform.
在拍照模板数据库中,除了保存各个拍照模板的图片数据之外,还可以保存各个拍照模板的描述信息,以用于后续与卖家用户的拍照请求中携带的被拍摄对象的描述信息进行匹配运算,自动推荐出符合卖家用户需求的拍照模板。In the photo template database, in addition to storing the image data of each photo template, the description information of each photo template can also be saved for subsequent matching operations with the description information of the photographed object carried in the seller user's photo request, and automatically recommending a photo template that meets the seller user's needs.
其中,拍照模板的描述信息与拍照模板中所展示对象的描述信息相关,例如,可以将该拍照模板中所展示的商品对象的描述信息(包括id等标识、类目、所属卖家的身份标识等等)作为拍照模板的描述信息,或者,还可以将拍照模板中所展示的人物特征的描述信息(包括人物的性别、身型数据等)作为拍照模板的描述信息。当然,在保存拍照模板的描述信息时,也可以综合两种或者多种信息作为拍照模板的描述信息,并且同一模板数据库中的不同模板,也可以从不同的方面去设置描述信息。The description information of the photo template is related to the description information of the object displayed in the photo template. For example, the description information of the commodity object displayed in the photo template (including identifiers such as ID, category, and the identity of the seller to which it belongs, etc.) can be used as the description information of the photo template. Alternatively, the description information of the person's characteristics displayed in the photo template (including the person's gender, body shape, etc.) can also be used as the description information of the photo template. Of course, when saving the description information of the photo template, two or more types of information can be combined as the description information of the photo template, and different templates in the same template database can also set description information from different aspects.
另外,为了重点突出拍照模板中的人物特征,在优选的实施例中,在模板数据库中保存各模板图片时,还可以从模板图片中提取人物特征的身体轮廓曲线,并保存在模板数据库中。其中,所谓的身体轮廓曲线,也即根据模板中人物所呈现的描绘出的轮廓曲线,例如,对于图1所示的拍照模板,其中包含的人物的身体轮廓曲线可以如图2所示。此时,关于模板数据在数据库中的保存结构可以为表1所示(假设以商品对象的描述信息作为搜索条件):Furthermore, to highlight the person's features in the photo template, in a preferred embodiment, when saving each template image in the template database, a body contour curve of the person's features can also be extracted from the template image and stored in the template database. The so-called body contour curve is a contour curve depicted based on the person's appearance in the template. For example, for the photo template shown in FIG1 , the body contour curve of the person included in the template can be shown in FIG2 . In this case, the structure of the template data stored in the database can be as shown in Table 1 (assuming that the description information of the product object is used as the search condition):
表1Table 1
其中,在模板数据库中保存身体轮廓曲线的信息时,可以有多种方式,例如,在提取出身体轮廓曲线之后,可以确定出该曲线上各个像素点的坐标,用这些坐标来描述该曲线;或者,还可以通过函数、矢量等方式来描述该曲线。在向用户提供拍照模板时,还可以将该曲线提供给用户,这样,可以帮助用户更准确的调整拍照姿势、角度等。关于该曲线的具体使用方式,后文中会有详细介绍。There are several ways to store body contour curve information in the template database. For example, after extracting the body contour curve, the coordinates of each pixel on the curve can be determined and used to describe the curve. Alternatively, the curve can be described using functions, vectors, and other methods. This curve can also be provided to users when providing them with a photo template, helping them more accurately adjust their photo pose and angle. The specific usage of this curve will be detailed later in this article.
另外,在向模板数据库中保存模板图片与搜索条件之间的对应关系时,还可以分析出各模板图片中人物特征中关键身体部分所在的位置,并保存在模板数据库中。此时,数据库中除了保存身体轮廓曲线中各个像素点的坐标,还可以保存各个关键身体部位的名称以及对应的坐标。例如,具体的保存结构可以如表2所示(假设以商品对象的描述信息作为搜索条件):In addition, when saving the correspondence between template images and search conditions in the template database, the locations of key body parts in the character features of each template image can also be analyzed and saved in the template database. In this case, in addition to saving the coordinates of each pixel point in the body contour curve, the database can also save the names of each key body part and the corresponding coordinates. For example, the specific storage structure can be shown in Table 2 (assuming that the description information of the product object is used as the search condition):
表2Table 2
这样,客户端在显示身体轮廓曲线时,就可以从数据库中读取曲线上各个身体部位的名称以及对应的位置的信息,并在身体轮廓曲线上标示出具体的关键身体部分的名称以及对应的位置信息,这样,用户可以更直观的确定各个身体部分如何放置,才能更好地与模板中模特人物所摆的相吻合。In this way, when the client displays the body contour curve, it can read the names of each body part on the curve and the corresponding position information from the database, and mark the names of specific key body parts and the corresponding position information on the body contour curve. In this way, the user can more intuitively determine how to place each body part to better match the pose of the model in the template.
总之,在预先建立了拍照模板数据库的情况下,本申请实施例可以向卖家用户提供拍照时的参考依据,帮助用户拍摄出高质量的照片,以更有效的展示出其商品对象的特征,或者在某种具体状态下的效果。下面对具体的实现方式进行详细介绍。In summary, with a pre-established database of photo templates, the embodiments of the present application can provide sellers with a reference for taking photos, helping them capture high-quality photos that more effectively showcase the characteristics of their merchandise or its effects in a specific state. The specific implementation is described in detail below.
实施例一Example 1
参见图3,本申请实施例一首先从客户端的角度,提供了一种提供拍照推荐信息的方法,该方法可以包括以下步骤:Referring to FIG3 , the first embodiment of the present application first provides a method for providing photo recommendation information from the perspective of a client. The method may include the following steps:
S301:接收卖家用户为指定商品对象提交拍照图片的请求;S301: Receive a request from a seller user to submit a photo of a specified product object;
具体实现时,可以通过多种方式来接收卖家用户的请求,例如,在一种方式下,可以在卖家用户的商品对象信息发布界面中提供用于提交照片的第一操作入口,通过该第一操作入口接收到卖家用户的请求。In specific implementation, the seller user's request can be received in a variety of ways. For example, in one way, a first operation entrance for submitting photos can be provided in the seller user's product object information publishing interface, and the seller user's request is received through the first operation entrance.
另外,对于卖家用户而言,在已经发布了某商品对象的信息之后,一般仍然可以为用户提供商品对象信息的编辑界面,通过该编辑界面中,卖家用户可以为已发布的商品对象追加提交照片等信息。因此,在本申请实施例中,还可以在已发布商品对象信息的编辑界面中提供用于提交照片的第二操作入口,这样,可以通过该第二操作入口接收卖家用户为已发布的商品对象提交拍照图片的请求。Furthermore, for seller users, after publishing information about a product object, an editing interface for the product object information is generally still provided to the user. Through this editing interface, the seller user can submit additional information such as photos for the published product object. Therefore, in an embodiment of the present application, a second operation entry for submitting photos can also be provided in the editing interface for the published product object information. In this way, a request from the seller user to submit a photo of the published product object can be received through this second operation entry.
S302:获取待被拍摄对象的描述信息;S302: Obtain description information of the object to be photographed;
待被拍摄对象有两部分,一是待被拍摄的商品对象,一是穿戴有该商品对象、待被拍摄的人物,获取待被拍摄对象的描述信息时,也可以从这两个部分分别获取,当然,也可以仅获取待被拍摄的商品对象的描述信息,或者仅获取待被拍摄的人物的描述信息。The object to be photographed consists of two parts: one is the commodity object to be photographed, and the other is the person to be photographed wearing the commodity object. When obtaining the descriptive information of the object to be photographed, it can also be obtained from these two parts separately. Of course, it is also possible to obtain only the descriptive information of the commodity object to be photographed, or only the descriptive information of the person to be photographed.
具体在获取待被拍摄对象的描述信息时,一种最直接的方式可以是由发起拍照请求的用户提交,例如,可以在用户界面中为用户提供提交待被拍摄对象的描述信息的操作入口(例如,输入框、选择框、按钮等),用户在发起获取拍照模板的请求时,可以通过该操作入口待被拍摄对象的描述信息。Specifically, when obtaining descriptive information of the object to be photographed, one of the most direct ways is for the user who initiates the photo request to submit it. For example, an operation entry (for example, an input box, a selection box, a button, etc.) for submitting the descriptive information of the object to be photographed can be provided in the user interface. When the user initiates a request to obtain a photo template, the user can submit the descriptive information of the object to be photographed through the operation entry.
当然,在具体实现时,为了节省用户的操作成本,还可以提供一些自动或者半自动获取被拍摄对象描述信息的实现方式。例如,在通过前述第一操作入口接收拍照请求的情况下,可以从商品对象信息发布界面中已填写的商品对象描述信息中,获取待拍摄商品对象的描述信息。待拍摄商品对象的描述信息可以作为被拍摄对象的描述信息或者其一部分,另外,还可以获取被拍摄人物的描述信息。例如,可以请用户输入被拍摄用户的性别、身型等数据,或者,在被拍摄人物为交易平台中的注册用户的情况下,则也可以提交被拍摄人物在交易平台中的身份标识信息之后,从该用户注册的用户资料信息或者历史评价内容等信息中自动获取到。例如,某用户在过去对某商品对象进行评价时,可能会输入自己的身高、体重等体型信息,并且历史记录数据库中一般都会有记录。因此,可以通过历史记录数据库中记录的历史评论数据获取到用户的体型信息。此时,客户端只需要获取到被拍摄人物的用户id等身份信息上传到服务器,然后由服务器根据用户id获取到用户的性别、身高、体重等信息。Of course, in specific implementations, to reduce user operational costs, some automatic or semi-automatic methods for obtaining descriptive information about the photographed object can also be provided. For example, when a photo request is received through the aforementioned first operation portal, the descriptive information about the product to be photographed can be obtained from the product description information already entered in the product information publishing interface. The descriptive information about the product to be photographed can serve as the description of the photographed object or a portion thereof. In addition, the descriptive information about the person being photographed can also be obtained. For example, the user can be asked to enter data such as the gender and body shape of the user being photographed. Alternatively, if the person being photographed is a registered user on the trading platform, the descriptive information can be automatically obtained from the user's registered user profile or historical reviews after the user's identity information is submitted on the trading platform. For example, a user may have entered their height, weight, and other body shape information when reviewing a product in the past, and this information is typically recorded in the historical record database. Therefore, the user's body shape information can be obtained from the historical review data recorded in the historical record database. In this case, the client only needs to obtain the user's identity information, such as the user ID, and upload it to the server. The server then obtains the user's gender, height, weight, and other information based on the user ID.
在通过前述第二操作入口接收用户的拍照请求的情况下,可以向服务器请求该已发布的商品对象的描述信息,并从中获取待拍摄商品对象的描述信息。关于被拍摄人物的描述信息,与前述场景下类似。When receiving a user's photo request through the aforementioned second operation portal, the server may be requested for the description information of the published product object and the description information of the product object to be photographed may be obtained from the server.
S303:向服务器发送获取拍照模板的请求,所述请求中携带所述描述信息,以便所述服务器将所述待被拍摄对象的描述信息与模板数据库中各个拍照模板的描述信息进行匹配运算,获取相匹配的目标拍照模板,其中,所述模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关;S303: Sending a request to the server for obtaining a photographic template, wherein the request carries the description information, so that the server matches the description information of the object to be photographed with the description information of each photographic template in a template database to obtain a matching target photographic template, wherein the template database stores a plurality of photographic templates and their corresponding description information, and the description information of the photographic template is related to the description information of the object displayed in the photographic template;
在获取到被拍摄对象的描述信息之后,就可以向服务器发送获取拍照模板的请求,并在请求中携带上被拍摄对象的描述信息,这样,服务器就可以将这种描述信息与各个拍照模板的描述信息进行匹配运算,得到相匹配的拍照模板之后返回给客户端。After obtaining the description information of the photographed object, a request for a photographing template can be sent to the server, and the description information of the photographed object can be carried in the request. In this way, the server can match this description information with the description information of each photographing template, obtain a matching photographing template and return it to the client.
S304:根据服务器返回的相匹配的目标拍照模板提供拍照推荐信息;S304: Providing photo recommendation information based on the matching target photo template returned by the server;
在获取到相匹配的目标模板之后,可以在前台界面中将各个可以选择的拍照模板展示给用户,并为用户提供选择操作入口(例如按钮等),这样,用户可以根据自己的需求从各个模板中选择自己所需的模板。After obtaining the matching target template, the various selectable photo templates can be displayed to the user in the front-end interface, and a selection operation entry (such as a button, etc.) can be provided to the user, so that the user can select the template he needs from various templates according to his needs.
在确定了目标拍照模板后,客户端可以通过调用预置的接口,自动启动用户终端设备上的图像摄取装置,此时,用户终端设备的图像界面中会显示出图像摄取装置捕捉到的动态画面。在拍照模板数据库中保存有人物的身体轮廓曲线的情况下,还可以在该图像界面的上层显示出目标拍照模板中人物特征的身体轮廓曲线图。其中,所谓的身体轮廓曲线图,就是根据模板中人物特征所呈现的描绘出的轮廓曲线,例如,对于图1所示的拍照模板,其中包含的人物特征的身体轮廓曲线图具体在显示时可以如图2所示(关于图像摄取装置捕捉到的图像画面在图2中未示出)。具体实现时,在该图像画面的上层,可以将表1中对应的曲线显示为某种颜色(例如黑色),其他位置则为透明,这样,就可以使得用户能够在图像画面的上层看到一个身体轮廓曲线,但又不会对其他的图像内容造成遮挡。After determining the target photo template, the client can automatically activate the image capture device on the user terminal device by calling a preset interface. At this time, the dynamic image captured by the image capture device will be displayed on the image interface of the user terminal device. If the photo template database contains a person's body contour curve, a body contour curve diagram of the person's features in the target photo template can also be displayed on the upper layer of the image interface. The so-called body contour curve diagram is a contour curve depicted based on the person's features in the template. For example, for the photo template shown in Figure 1, the body contour curve diagram of the person's features contained therein can be specifically displayed as shown in Figure 2 (the image captured by the image capture device is not shown in Figure 2). In specific implementation, the corresponding curve in Table 1 can be displayed in a certain color (e.g., black) on the upper layer of the image screen, while the rest of the image is transparent. In this way, the user can see a body contour curve on the upper layer of the image screen without obstructing other image content.
需要说明的是,在用户调整终端设备的拍摄角度的过程中,在图像画面上层显示出的人物特征的身体轮廓曲线相对于终端设备屏幕的物理坐标是不变的,这样,用户就可以通过不断变换自己的来匹配界面上显示的身体轮廓曲线,直到用户肉眼观察到自己的摆出的与界面中显示的身体轮廓曲线相吻合,则证明用户摆出了模板中人物特征所摆的,最终就可以获得比较好的拍照效果。It should be noted that when the user adjusts the shooting angle of the terminal device, the body contour curve of the character features displayed on the upper layer of the image screen remains unchanged relative to the physical coordinates of the terminal device screen. In this way, the user can match the body contour curve displayed on the interface by continuously changing his or her posture until the user observes with the naked eye that the body contour curve he or she poses matches the body contour curve displayed in the interface, which proves that the user has posed the character features in the template, and ultimately a better photo effect can be obtained.
另外需要说明的是,在具体实现时,图像摄取装置在终端设备中安装的位置可能有所不同,尤其是移动终端设备,可能既有前置摄像头,又有后置摄像头,在本申请实施例中,启动的图像摄取装置既可以是前置的也可以是后置的。其中,如果是前置的,则用户可以采用“自拍”的方式进行拍照,并且可以自行进行的调整,如果是采用后置图像摄取装置,则需要其他的拍摄人员指导被拍摄用户进行的调整。但是调整的依据都是图像画面上层显示出的人物特征的身体轮廓曲线。It should also be noted that, in specific implementations, the location of the image capture device in the terminal device may vary. In particular, mobile terminal devices may have both a front-facing camera and a rear-facing camera. In the embodiments of the present application, the activated image capture device can be either front-facing or rear-facing. If it is front-facing, the user can take a selfie and make adjustments on their own. If a rear-facing image capture device is used, other photographers will need to guide the user being photographed in making adjustments. However, the basis for the adjustments is the body contour curve of the person's features displayed on the upper layer of the image screen.
另外,为了使得拍照过程中更好的确定各个身体部位所在的位置,在图像画面上层显示的人物特征的身体轮廓曲线时,还可以在身体轮廓曲线上标示出各个重要的身体部位所在的位置。例如,如图4所示,其中标示出了“脸的顶点”、“左肩位置”、“胸的位置”、“臀最翘位置”、“右手位置”等等,这样可以更直观地指导被拍摄用户进行的调整。其中,关于模板中人物特征中关键身体部分所在的位置信息,可以是预先保存在模板数据库中的,如表2所示。因此,在显示身体轮廓曲线时,就可以从数据库中读取曲线上各个关键身体部位的名称以及所在位置的坐标,并在身体轮廓曲线上标示出具体的关键身体部分的名称以及所在的位置,这样,用户可以更直观的确定各个身体部分如何放置,才能更好地与模板中人物特征所摆的相吻合。In addition, to better determine the location of various body parts during the photo shoot, the locations of various important body parts can be marked on the body contour curve when the character's body contour curve is displayed on the upper layer of the image screen. For example, as shown in Figure 4, the "vertex of the face," "left shoulder position," "chest position," "hip point," "right hand position," and so on are marked, which can more intuitively guide the user in making adjustments. The location information of the key body parts in the character's features in the template can be pre-stored in the template database, as shown in Table 2. Therefore, when the body contour curve is displayed, the names and coordinates of the key body parts on the curve can be read from the database, and the names and locations of the specific key body parts can be marked on the body contour curve. This allows the user to more intuitively determine how to position each body part to better match the character's features in the template.
S305:在接收到上传拍照图片的请求后,将该拍照图片以及所述指定商品对象的标识信息上传到服务器,以便服务器保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。S305: After receiving the request to upload the photographed picture, the photographed picture and the identification information of the designated product object are uploaded to the server so that the server saves the association between the photographed picture and the identification information of the designated product object for displaying the photographed picture in the details page of the designated product object.
在确定了用户需要执行拍摄操作后,就可以向图像摄取装置发送拍摄指令,图像摄取装置就可以对当前捕捉到的图像进行拍摄,并将生成的照片以及指定商品对象的标识信息上传到服务器上传到服务器。这样,服务器可以保存该拍照图片与该指定商品对象的标识信息之间的关联关系,将照片添加到对应商品对象的详情信息中,以便在详情信息页面中为浏览者展示。After determining that the user needs to perform a capture operation, a capture instruction can be sent to the image capture device, which will then capture the currently captured image and upload the generated photo and the identification information of the specified product object to the server. In this way, the server can save the association between the captured image and the identification information of the specified product object and add the photo to the detailed information of the corresponding product object for display to the browser on the detailed information page.
需要说明的是,具体实现时,可以是在启动了终端设备中的图像摄取装置之后,再进行拍照模板的查找(该查找的过程从该步骤S302开始),或者,也可以是先进行拍照模板的查找,再启动终端设备中的图像摄取装置进行拍照,在实际应用中,可以根据实际的需要进行确定。It should be noted that, in specific implementation, the photo template may be searched after the image capture device in the terminal device is started (the search process starts from step S302), or the photo template may be searched first and then the image capture device in the terminal device is started to take photos. In actual applications, this can be determined according to actual needs.
其中,关于如何确定用户是否需要执行拍摄操作,可以有多种方式,例如,其中一种方式下,可以在用户根据身体轮廓曲线调整好后,由用户手动按下终端设备上的拍摄按键,此时,就可以确定出用户需要执行拍摄操作。这种方式对于采用后置摄像头并且有他人协助拍摄的情况比较适合。但是,对于采用前置摄像头的自拍方式而言,如果用户需要操作终端设备的拍摄按键,则可能会影响所摆的效果,因此,在另一种实现方式下,还可以由应用自动确定是否需要执行拍摄操作,也即不需要用户操作终端设备的拍摄按键,应用可以自行识别是否可以执行拍摄操作。There are multiple ways to determine whether the user needs to perform a shooting operation. For example, in one method, after the user has adjusted according to the body contour curve, the user can manually press the shooting button on the terminal device. At this time, it can be determined that the user needs to perform a shooting operation. This method is more suitable for situations where a rear camera is used and others assist in shooting. However, for selfies using a front camera, if the user needs to operate the shooting button of the terminal device, it may affect the effect of the pose. Therefore, in another implementation method, the application can automatically determine whether the shooting operation needs to be performed, that is, the user does not need to operate the shooting button of the terminal device, and the application can automatically identify whether the shooting operation can be performed.
具体实现时,也可以有多种方式实现这种自动识别的过程。例如,在一种方式下,图像摄取装置能够识别出被拍摄对象中的图像主体,例如在拍摄视域内出现人物时,图像摄取装置会自动将人物识别出图像主体。而在本申请实施例中,被拍摄的主要就是人物,因此,可以预先将人物设置为被拍摄的图像主体,并且可以识别人物的运动状态。在用户调整的过程中,人物会处于运动状态,而当调整之后,用户一般会保持该不变,因此,图像摄取装置可以识别出图像主体保持相对静止的状态。进而,在发现图像主体保持静止状态达到预置时间长度后,就可以自动确定出需要执行拍摄操作,并将当前摄取到的图像保存为照片文件即可。In specific implementation, there can also be multiple ways to achieve this automatic recognition process. For example, in one way, the image capture device can identify the image subject in the photographed object. For example, when a person appears in the shooting field of view, the image capture device will automatically identify the person as the image subject. In the embodiment of the present application, the main subject being photographed is the person. Therefore, the person can be set as the image subject to be photographed in advance, and the motion state of the person can be identified. During the user's adjustment process, the person will be in a motion state, and after the adjustment, the user will generally keep it unchanged. Therefore, the image capture device can identify that the image subject remains relatively still. Furthermore, after discovering that the image subject remains still for a preset time length, it can be automatically determined that a shooting operation needs to be performed, and the currently captured image can be saved as a photo file.
或者,在另一种实现方式下,也可以实时提取捕捉到的图像主体的身体轮廓曲线,并实时计算捕捉到的人物的身体轮廓曲线与目标拍照模板中人物特征的身体轮廓曲线图的拟合度,如果两者之间的拟合度达到某阈值,则也相当于用户已经摆出了比较合适的,因此,就可以确定出需要执行拍摄操作。当然,关于这种自动进行拍摄操作的方式而言,对于采用后置图像摄取装置以及有他人协助的情况下也是适用的,此时,相当于协助拍摄的用户只需要帮助被拍摄者调整,调整好之后,会自动触发拍摄操作。Alternatively, in another implementation, the body contour curve of the captured image subject can be extracted in real time, and the degree of fit between the captured person's body contour curve and the body contour curve diagram of the person's features in the target photo template can be calculated in real time. If the degree of fit between the two reaches a certain threshold, it is equivalent to that the user has made a relatively suitable pose, and therefore, it can be determined that the shooting operation needs to be executed. Of course, this method of automatically performing the shooting operation is also applicable when using a rear-mounted image capture device and with the assistance of others. In this case, the user who is assisting the shooting only needs to help the subject adjust, and after the adjustment is made, the shooting operation will be automatically triggered.
当然,在实际应用中,有些用户可能在上传其实拍照片时,不想被其他用户看到其中人物的真实面容,此时,在本申请实施例中,还可以为用户提供对脸部区域进行遮盖的操作入口,用户可以手动的将生成的照片进行处理,对脸部区域进行加马赛克等操作。或者,本申请实施例还可以自动在生成的照片文件中识别出所包含人物的脸部区域,并对脸部区域进行遮盖,之后再将处理后的照片进行保存。关于该自动遮挡脸部区域的功能,可以为用户提供设置入口,由用户选择启动或者不启动该功能。Of course, in actual applications, some users may not want other users to see the real faces of the people in the photos they actually took when uploading them. In this case, in an embodiment of the present application, an operation entry for masking the facial area can also be provided to the user. The user can manually process the generated photo and perform operations such as mosaicing the facial area. Alternatively, the embodiment of the present application can also automatically identify the facial area of the person included in the generated photo file, mask the facial area, and then save the processed photo. Regarding the function of automatically masking the facial area, a setting entry can be provided for the user to choose whether to enable or disable this function.
另外,在拍照时,如果选用的背景与其穿着的服装等具有很高的颜色相似性,则整个照片的显示效果也可能不够好,或者不够凸显待展示的商品的特征,因此,在本申请实施例中,还可以对生成的照片中图像主体的主颜色以及背景的主颜色进行识别,并计算两者之间的相似度,如果图像主体的主颜色与背景的主颜色之间的相似度达到预置的阈值,则可以替换背景主颜色。其中,关于替换后的背景主颜色,可以是根据替换前的主颜色来确定的,具体实现时,可以预先设置替换前后的主颜色之间的对应关系,在确定出需要替换之后,就可以通过查询该对应关系,来确定将背景主颜色替换为何种颜色。In addition, when taking a photo, if the background selected has a high color similarity with the clothes worn by the user, the display effect of the entire photo may not be good enough, or the characteristics of the product to be displayed may not be highlighted enough. Therefore, in an embodiment of the present application, the main color of the image subject and the main color of the background in the generated photo can also be identified, and the similarity between the two can be calculated. If the similarity between the main color of the image subject and the main color of the background reaches a preset threshold, the main color of the background can be replaced. Among them, the main color of the background after replacement can be determined based on the main color before replacement. In specific implementation, the correspondence between the main colors before and after replacement can be pre-set. After determining that replacement is required, the corresponding relationship can be queried to determine which color to replace the main color of the background.
总之,通过本申请实施例一,可以预先在服务器中设置多个可选的拍照模板,在卖家用户需要为其指定的商品对象提供拍照图片时,可以根据被拍摄对象的描述信息,推荐出相匹配的目标拍照模板,这样,用户就可以根据该拍照模板调整自己的姿势、拍摄角度等,最终获得比较好的拍照效果,进而可以使得商品对象详情界面中展示的商品对象图片可以更好的展示出商品对象的特点。In summary, through the first embodiment of the present application, multiple optional photo templates can be set in the server in advance. When the seller user needs to provide a photo of the product object specified by him, a matching target photo template can be recommended based on the description information of the photographed object. In this way, the user can adjust his posture, shooting angle, etc. according to the photo template, and finally obtain a better photo effect, so that the product object picture displayed in the product object details interface can better show the characteristics of the product object.
实施例二Example 2
参见图5,本申请实施例二从服务器的角度,提供了一种提供拍照推荐信息的方法,该服务器保存有模板数据库,该模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关。具体的,该方法可以包括以下步骤:Referring to FIG5 , a second embodiment of the present application provides a method for providing photo recommendation information from the perspective of a server. The server stores a template database containing multiple photo templates and their corresponding descriptions. The descriptions of the photo templates are related to the descriptions of the objects displayed in the photo templates. Specifically, the method may include the following steps:
S501:接收客户端发送的获取拍照模板的搜索请求,所述请求中携带有待被拍摄对象的描述信息;S501: Receive a search request for obtaining a photographing template sent by a client, wherein the request carries description information of an object to be photographed;
其中,被拍摄对象一般包括被拍摄商品对象以及被拍摄人物,因此被拍摄对象的描述信息可以包括被拍摄商品对象的描述信息,和/或,被拍摄人物的描述信息。其中,被拍摄商品对象的描述信息就可以包括被拍摄商品对象的id、类目、款式/风格/材质、所属卖家的身份标识,等等,被拍摄人物的描述信息主要是指被拍摄人物的身高、体重等身型数据。具体实现时,请求中可以携带以上描述信息中的一种或者多种。The photographed subject generally includes both the merchandise and the person being photographed. Therefore, the descriptive information for the photographed subject may include the merchandise's descriptive information and/or the person's descriptive information. The descriptive information for the merchandise may include the merchandise's ID, category, model/style/material, and the seller's identifier, etc. The descriptive information for the person being photographed primarily refers to the person's height, weight, and other body measurements. In a specific implementation, the request may include one or more of these descriptive information.
S502:将所述待被拍摄对象的描述信息与所述模板数据库中各个拍照模板的描述信息进行匹配运算;S502: performing a matching operation on the description information of the object to be photographed and the description information of each photographing template in the template database;
在获取到被拍摄对象的描述信息之后,就可以利用被拍摄对象的描述信息与各个拍照模板对应的描述信息进行匹配。具体在进行匹配时,可以仅根据人物特征的性别及体型数据进行匹配,或者仅根据所展示商品的类别等描述信息进行匹配,还可以将两者相结合,从两方面分别进行匹配。其中“人物特征的描述信息”如果包括多个数据段,例如某男性模特的体型数据,包括了身高、体重、肩宽、腿长、腰围等等多个数据段,各项体型数据可以分别与被拍摄用户的体型数据信息进行匹配,以选择最适合被拍摄用户的拍照模板。当然,在具体实现时,也可以仅用其中的某项或者某几项体型数据进行匹配。具体在筛选与被拍摄用户的体型数据信息相匹配的拍照模板,可以首先计算被拍摄用户的各项体型数据与人物特征的体型数据的差值,获取两者之间的相对差,将相对差最小的、或者小于预置阈值的人物特征体型数据对应的拍照模板确定为相匹配的目标拍照模板。After obtaining the subject's descriptive information, the subject's descriptive information can be used to match the descriptive information corresponding to each photo template. Specifically, matching can be performed based solely on the gender and body shape data of the person's features, or solely on descriptive information such as the category of the displayed product. A combination of the two can also be used to perform matching based on both aspects. If the "personal descriptive information" includes multiple data segments, such as a male model's body shape data, which includes height, weight, shoulder width, leg length, waist circumference, and other data segments, each piece of body shape data can be matched against the subject's body shape data to select the photo template that best suits the subject. Of course, in a specific implementation, only one or several pieces of body shape data can be used for matching. Specifically, to select photo templates that match the subject's body shape data, the difference between the subject's body shape data and the person's body shape data can be calculated to obtain the relative difference between the two. The photo template corresponding to the person's body shape data with the smallest relative difference, or with body shape data less than a preset threshold, is then determined as the matching target photo template.
S503:将匹配成功的目标拍照模板返回给客户端,以便所述客户端利用所述目标拍照模板提供拍照推荐信息;S503: Returning the successfully matched target photo template to the client, so that the client can use the target photo template to provide photo recommendation information;
服务器端在确定出匹配成功的目标拍照模板之后就可以返回给客户端。当然,如果模板数据库中还保存有拍照模板中包含的人物特征的身体轮廓曲线信息,则还可以将该信息返回给客户端,这样,客户端在提供拍照推荐信息时,还可以将该身体轮廓曲线信息提供给用户,以方便用户调整自己的。After the server determines a successful match for the target photo template, it can return it to the client. Of course, if the template database also stores body contour curve information of the person's features included in the photo template, this information can also be returned to the client. In this way, when the client provides photo recommendation information, it can also provide this body contour curve information to the user to facilitate the user's adjustment.
另外,如果模板数据库中还保存有拍照模板中包含的人物特征中各个关键身体部位名称以及坐标,则也可以一并返回给客户端,客户端在显示身体轮廓曲线时,就可以从数据库中读取曲线上各个关键身体部位的名称以及所在位置的坐标,并在身体轮廓曲线上标示出具体的关键身体部分的名称以及所在的位置,这样,用户可以更直观的确定各个身体部分如何放置,才能更好地与模板中人物特征所摆的相吻合。In addition, if the template database also stores the names and coordinates of the key body parts in the character features included in the photo template, they can also be returned to the client. When the client displays the body contour curve, it can read the names and coordinates of the key body parts on the curve from the database, and mark the names and locations of the specific key body parts on the body contour curve. In this way, the user can more intuitively determine how to place each body part to better match the character features in the template.
S504:接收客户端提交的拍照图片以及指定商品对象的标识信息,保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。S504: Receive the photographed picture submitted by the client and the identification information of the designated product object, and save the association between the photographed picture and the identification information of the designated product object for displaying the photographed picture on the details page of the designated product object.
在通过前述第一操作入口接收到用户的拍照请求的情况下,在接收到上传拍照图片的请求后,可以将该拍照图片以及当前发布的商品对象的标识信息上传到服务器,这样,服务器就可以保存该拍照图片与当前发布的商品对象的标识信息之间的关联关系,以用于在该当前发布的商品对象的详情页面中,展示该拍照图片。When a user's photo request is received through the aforementioned first operation entrance, after receiving the request to upload the photo, the photo and the identification information of the currently published product object can be uploaded to the server. In this way, the server can save the association between the photo and the identification information of the currently published product object for displaying the photo in the details page of the currently published product object.
在通过前述第二操作入口接收到用户的拍照请求的情况下,在接收到上传拍照图片的请求后,可以将该拍照图片以及该已发布的商品对象的标识信息上传到服务器,这样,服务器就可以保存该拍照图片与该商品对象的标识信息之间的关联关系,以用于在该商品对象的详情页面中展示该拍照图片。When a user's photo request is received through the aforementioned second operation entrance, after receiving the request to upload the photo, the photo and the identification information of the published product object can be uploaded to the server. In this way, the server can save the association between the photo and the identification information of the product object for displaying the photo in the details page of the product object.
该实施例二与实施例一是相对应的,只是描述角度不同,其中的具体实现细节可以参见实施例一中的介绍,这里不再赘述。The second embodiment corresponds to the first embodiment, but the description angles are different. The specific implementation details can be found in the introduction of the first embodiment, which will not be repeated here.
与本申请实施例一提供的提供拍照推荐信息的方法相对应,本申请实施例还提供了一种提供拍照推荐信息的装置,参见图6,该装置具体可以包括:Corresponding to the method for providing photo recommendation information provided in the first embodiment of the present application, the embodiment of the present application further provides a device for providing photo recommendation information. Referring to FIG6 , the device may specifically include:
请求接收单元601,用于接收卖家用户为指定商品对象提交拍照图片的请求;The request receiving unit 601 is used to receive a request from a seller user to submit a photo of a specified product object;
描述信息获取单元602,用于获取待被拍摄对象的描述信息;A description information acquisition unit 602 is used to acquire description information of the object to be photographed;
请求发送单元603,用于向服务器发送获取拍照模板的请求,所述请求中携带所述描述信息,以便所述服务器将所述待被拍摄对象的描述信息与模板数据库中各个拍照模板的描述信息进行匹配运算,获取相匹配的目标拍照模板,其中,所述模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关;a request sending unit 603 configured to send a request to the server for obtaining a photographic template, wherein the request carries the description information, so that the server can match the description information of the object to be photographed with the description information of each photographic template in a template database to obtain a matching target photographic template, wherein the template database stores a plurality of photographic templates and their corresponding description information, and the description information of the photographic template is related to the description information of the object displayed in the photographic template;
推荐信息提供单元604,用于根据服务器返回的相匹配的目标拍照模板提供拍照推荐信息;The recommendation information providing unit 604 is configured to provide photo recommendation information based on the matching target photo template returned by the server;
上传单元605,用于在接收到上传拍照图片的请求后,将该拍照图片以及所述指定商品对象的标识信息上传到服务器,以便服务器保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。The uploading unit 605 is used to upload the photographed picture and the identification information of the specified commodity object to the server after receiving a request to upload the photographed picture, so that the server can save the association between the photographed picture and the identification information of the specified commodity object for displaying the photographed picture in the details page of the specified commodity object.
具体实现时,可以在商品对象信息发布界面中提供用于提交照片的第一操作入口,此时,所述请求接收单元包括:In a specific implementation, a first operation entry for submitting photos may be provided in the product object information publishing interface. In this case, the request receiving unit includes:
第一接收子单元,用于通过所述第一操作入口接收卖家用户为商品对象信息发布界面中当前填写的商品对象提交拍照图片的请求。The first receiving subunit is configured to receive, through the first operation portal, a request from a seller user to submit a photo of the product object currently filled in the product object information publishing interface.
所述描述信息获取单元具体用于:The description information acquisition unit is specifically used to:
从商品对象信息发布界面中已填写的商品对象描述信息中,获取待拍摄商品对象的描述信息,以便将该描述信息提交到服务器,服务器利用待拍摄商品对象的描述信息与各拍照模板的描述信息进行匹配运算。The description information of the product object to be photographed is obtained from the product object description information filled in the product object information release interface, so as to submit the description information to the server. The server uses the description information of the product object to be photographed to perform matching operations with the description information of each photo template.
或者,也可以在已发布商品对象信息的编辑界面中提供用于提交照片的第二操作入口,所述请求接收单元包括:Alternatively, a second operation entry for submitting photos may be provided in the editing interface of the published product object information, and the request receiving unit may include:
第二接收子单元,用于通过所述第二操作入口接收卖家用户为已发布的商品对象提交拍照图片的请求。The second receiving subunit is configured to receive a request from a seller user to submit a photo of a published product object through the second operation portal.
所述描述信息获取单元具体用于:The description information acquisition unit is specifically used to:
向服务器请求该已发布的商品对象的描述信息,从中获取待拍摄商品对象的描述信息,以便将该描述信息提交到服务器,服务器利用待拍摄商品对象的描述信息与各拍照模板的描述信息进行匹配运算。The server is requested to obtain the description information of the published product object, and the description information of the product object to be photographed is obtained from the description information so as to submit the description information to the server. The server uses the description information of the product object to be photographed to perform matching operations with the description information of each photographing template.
所述模板数据库中还保存有拍照模板中的人物特征轮廓曲线对应的位置信息,服务器返回相匹配的目标拍照模板时,还返回所述人物特征轮廓曲线对应的位置信息,所述装置还包括:The template database also stores position information corresponding to the character feature contour curve in the photographic template. When the server returns a matching target photographic template, it also returns the position information corresponding to the character feature contour curve. The device further includes:
调用单元,用于通过调用预置的接口启动图像摄取装置;A calling unit, configured to start the image capturing device by calling a preset interface;
轮廓曲线图提供单元,用于在图像摄取装置摄取到的图像界面上层提供所述目标拍照模板中人物特征的身体轮廓曲线图,以用于根据所述身体轮廓曲线图调整拍照。The contour curve providing unit is used to provide a body contour curve of the character features in the target photographing template on the upper layer of the image interface captured by the image capturing device, so as to adjust the photographing according to the body contour curve.
所述模板数据库中还保存有人物特征中各身体部位的名称以及所对应的位置信息,服务器返回相匹配的目标拍照模板时,还返回所述人物特征中各身体部位的名称以及所对应的位置信息,所述装置还包括:The template database also stores the names of the body parts in the character features and the corresponding position information. When the server returns the matching target photo template, it also returns the names of the body parts in the character features and the corresponding position information. The device also includes:
身体部位信息提供单元,用于在所述身体轮廓曲线图上提供所述身体部位的名称及对应的位置信息,以用于根据所述身体部位的名称及对应的位置信息调整拍照。The body part information providing unit is used to provide the name of the body part and the corresponding position information on the body contour curve diagram, so as to adjust the photo taking according to the name of the body part and the corresponding position information.
另外,该装置还可以包括:In addition, the device may further include:
轮廓曲线提取单元,用于提取图像摄取装置捕捉到的图像中人物的身体轮廓曲线;A contour curve extraction unit, configured to extract a body contour curve of a person in an image captured by an image pickup device;
计算单元,用于计算所述捕捉到的图像中人物的身体轮廓曲线与所述目标拍照模板中人物特征的身体轮廓曲线之间的拟合度;a calculation unit, configured to calculate a degree of fit between a body contour curve of a person in the captured image and a body contour curve of a person feature in the target photographic template;
拍摄指令发送单元,用于当所述拟合度达到预置的阈值时,确定需要执行拍摄操作,并向所述图像摄取装置发送拍摄指令。The shooting instruction sending unit is used to determine that a shooting operation needs to be performed when the fitting degree reaches a preset threshold value, and send a shooting instruction to the image capturing device.
与本申请实施例二提供的提供拍照推荐信息的方法相对应,本申请实施例还提供了一种提供拍照推荐信息的装置,提供一模板数据库,该模板数据库中保存有多个拍照模板以及各自对应的描述信息,所述拍照模板的描述信息与拍照模板中所展示对象的描述信息相关,参见图7,所述装置包括:Corresponding to the method for providing photo recommendation information provided in the second embodiment of the present application, the embodiment of the present application further provides an apparatus for providing photo recommendation information, providing a template database, wherein the template database stores multiple photo templates and their corresponding description information, wherein the description information of the photo template is related to the description information of the object displayed in the photo template. Referring to FIG. 7 , the apparatus includes:
搜索请求接收单元701,用于接收客户端发送的获取拍照模板的搜索请求,所述请求中携带有待被拍摄对象的描述信息;A search request receiving unit 701 is configured to receive a search request for obtaining a photographing template sent by a client, wherein the request carries description information of the object to be photographed;
匹配运算单元702,用于将所述待被拍摄对象的描述信息与所述模板数据库中各个拍照模板的描述信息进行匹配运算;a matching operation unit 702, configured to perform a matching operation on the description information of the object to be photographed and the description information of each photographing template in the template database;
拍照模板返回单元703,用于将匹配成功的目标拍照模板返回给客户端,以便所述客户端利用所述目标拍照模板提供拍照推荐信息;The photographing template returning unit 703 is configured to return the successfully matched target photographing template to the client, so that the client can use the target photographing template to provide photographing recommendation information;
关联关系保存单元704,用于接收客户端提交的拍照图片以及指定商品对象的标识信息,保存该拍照图片与该指定商品对象的标识信息之间的关联关系,以用于在该指定商品对象的详情页面中展示该拍照图片。The association relationship storage unit 704 is used to receive the photograph submitted by the client and the identification information of the specified product object, and store the association relationship between the photograph and the identification information of the specified product object for displaying the photograph in the details page of the specified product object.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a storage medium such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.
以上对本申请所提供的提供拍照推荐信息的方法及装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。The above describes in detail the method and device for providing photo recommendation information provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is intended only to help understand the method and core concept of this application. At the same time, those skilled in the art will appreciate that the specific implementation methods and scope of application may vary based on the concept of this application. In summary, the contents of this specification should not be construed as limiting this application.
Claims (18)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410443984.0A CN105373929B (en) | 2014-09-02 | 2014-09-02 | Method and device for providing photographing recommendation information |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1218585A1 HK1218585A1 (en) | 2017-02-24 |
| HK1218585B true HK1218585B (en) | 2021-04-01 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105373929B (en) | Method and device for providing photographing recommendation information | |
| CN105447047B (en) | It establishes template database of taking pictures, the method and device for recommendation information of taking pictures is provided | |
| US10979624B2 (en) | Methods and devices for establishing photographing template database and providing photographing recommendation information | |
| US10067500B2 (en) | Generating of 3D-printed custom wearables | |
| JP5728406B2 (en) | Clothes image processing system, clothes image processing method, program | |
| JP5439787B2 (en) | Camera device | |
| CN112995520B (en) | Method, system and readable storage medium for rapid photographing of ID photo | |
| CN111462337B (en) | Image processing method, device and computer-readable storage medium | |
| HK1218585B (en) | Method and apparatus for providing recommendation information on photographing | |
| JP7395889B2 (en) | Image processing device and image search method | |
| JP5706995B2 (en) | Shoe image processing system, shoe image processing method, program | |
| JP7395888B2 (en) | Image processing device and image search method | |
| HK1221049B (en) | Method and device for establishing photograph template database and providing photograph recommendation information | |
| CN113469164A (en) | Background image display method and device, storage medium and electronic equipment | |
| JP2017110308A (en) | Optimal brassiere selection device and optimal brassiere selection program | |
| KR101277553B1 (en) | Method for providing fashion coordination image in online shopping mall using avatar and system therefor | |
| US20200125599A1 (en) | Searching method for personal outfit recording | |
| CN111311347A (en) | Online customized shopping method and system |