CN113971598B - Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios - Google Patents
Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios Download PDFInfo
- Publication number
- CN113971598B CN113971598B CN202111237246.7A CN202111237246A CN113971598B CN 113971598 B CN113971598 B CN 113971598B CN 202111237246 A CN202111237246 A CN 202111237246A CN 113971598 B CN113971598 B CN 113971598B
- Authority
- CN
- China
- Prior art keywords
- image
- customized
- commodity
- dimensional model
- processed
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0621—Electronic shopping [e-shopping] by configuring or customising goods or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping
- G06Q30/0643—Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping graphically representing goods, e.g. 3D product representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/04—Indexing scheme for image data processing or generation, in general involving 3D image data
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Graphics (AREA)
- Architecture (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及图像处理技术领域,尤其涉及一种在商品定制场景中获得定制效果图像的方法、装置、电子设备及存储介质。Embodiments of the present invention relate to the technical field of image processing, and in particular, to a method, an apparatus, an electronic device, and a storage medium for obtaining a customized effect image in a commodity customization scene.
背景技术Background technique
个性化定制是指用户介入产品的生产过程,将指定的图案或文字印刷到指定的产品上,用户获得自己定制的个人属性强烈的产品或获得与其个人需求匹配的产品或服务。在个性化定制的过程中,用户提供指定的图案或文字等之后,在现有的个性化定制过程中,一种方法是将用户提供的图案或文字等进行平面位移添加至预设图像中或仅根据展示角度将用户提供的图案或文字等在预设图像中进行变形,或是可以自动变形做伪3D效果,以向用户展示定制后的产品图像;另一种方法是直接先建立拟在其上进行定制的产品的自身3D模型,然后用户选择产品自身3D模型中的定制区域,并上传拟进行定制的图案或文字等,最终向用户展示定制后的产品3D图像。Personalized customization means that the user intervenes in the production process of the product, prints the designated pattern or text on the designated product, and the user obtains a customized product with strong personal attributes or obtains a product or service that matches his personal needs. In the process of personalization, after the user provides the specified pattern or text, in the existing personalization process, one method is to add the pattern or text provided by the user to the preset image by plane displacement or The pattern or text provided by the user can be deformed in the preset image only according to the display angle, or it can be automatically deformed to create a pseudo 3D effect to display the customized product image to the user; another method is to directly create the desired image Then the user selects the customized area in the 3D model of the product, uploads the pattern or text to be customized, and finally displays the customized 3D image of the product to the user.
然而,上述第一种方法导致定制效果图像显示效果过于虚假,例如产品logo(标识)与产品的展示角度不够统一,使得logo与产品图像无法有效融为一体,定制效果图像显示效果差,无法真实、贴切的展示定制后的产品图像;上述第二种方法需建立每个产品的3D模型,使得成本过高以及工作量较大。However, the above-mentioned first method causes the display effect of the customized effect image to be too false. For example, the display angle of the product logo (logo) and the product is not unified enough, so that the logo and the product image cannot be effectively integrated, and the display effect of the customized effect image is poor and cannot be realistic. , Appropriately display the customized product images; the second method above needs to establish a 3D model of each product, which makes the cost too high and the workload large.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种在商品定制场景中获得定制效果图像的方法、装置、电子设备及存储介质,能够提高定制效果图像的显示效果,使得定制效果图像能够更加真实、贴切的展示图像内容,同时降低得到定制效果图像的成本以及工作量。The embodiments of the present invention provide a method, device, electronic device and storage medium for obtaining a customized effect image in a commodity customization scene, which can improve the display effect of the customized effect image, so that the customized effect image can display the image content more realistically and appropriately, At the same time, the cost and workload of obtaining customized effect images are reduced.
第一方面,本发明实施例提供了一种在商品定制场景中获得定制效果图像的方法,包括:In a first aspect, an embodiment of the present invention provides a method for obtaining a customized effect image in a commodity customization scenario, including:
获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图;acquiring a first image to be processed, wherein the first image to be processed includes a commodity image of the commodity being customized, and the first image to be processed belongs to a two-dimensional plan;
将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型;Loading the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain the corresponding customized image multi-dimensional model;
将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。The customized image multi-dimensional model is synthesized with the first to-be-processed image to obtain a customized effect image corresponding to the commodity.
第二方面,本发明实施例还提供了一种在商品定制场景中获得定制效果图像的装置,包括:In a second aspect, an embodiment of the present invention also provides a device for obtaining a customized effect image in a commodity customization scene, including:
待处理图像获取模块,用于获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图;a to-be-processed image acquisition module, configured to acquire a first to-be-processed image, wherein the first to-be-processed image includes a commodity image of a customized commodity, and the first to-be-processed image belongs to a two-dimensional plan view;
定制图像多维模型获取模块,用于将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型;a customized image multi-dimensional model acquisition module, configured to load the customized image to be customized on the commodity on the customized area multi-dimensional model corresponding to the commodity to obtain the corresponding customized image multi-dimensional model;
定制效果图像确定模块,用于将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。A customized effect image determination module, configured to synthesize the customized image multi-dimensional model and the first image to be processed to obtain a customized effect image corresponding to the product.
第三方面,本发明实施例还提供了一种应用于C2M(Customer to Manufacturer,用户直连制造)模式中的在商品定制场景中获得定制效果图像的设备,该设备包括本发明任意实施例所提供的在商品定制场景中获得定制效果图像的装置。In a third aspect, an embodiment of the present invention further provides a device for obtaining a customized effect image in a commodity customization scene applied in a C2M (Customer to Manufacturer) mode, the device including any of the embodiments of the present invention. Provided is a device for obtaining a customized effect image in a commodity customization scene.
第四方面,本发明实施例还提供了一种电子设备,所述电子设备包括:In a fourth aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序;a storage device for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所提供的在商品定制场景中获得定制效果图像的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method for obtaining a customized effect image in a commodity customization scene provided by any embodiment of the present invention.
第五方面,本发明实施例还提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所提供的在商品定制场景中获得定制效果图像的方法。In a fifth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method of obtaining a customized effect image in a commodity customization scene provided by any embodiment of the present invention. method.
本发明实施例通过获取第一待处理图像,并将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型,从而将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,解决现有的个性化定制过程中定制效果图像显示效果差、成本高以及工作量大等问题,能够使得定制效果图像更加真实、贴切的展示图像内容(如能够展示定制商品的材质的变化和效果),提高定制效果图像的真实显示效果,而且能够降低得到定制效果图像的成本和工作量。In the embodiment of the present invention, by acquiring the first image to be processed, and loading the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain the corresponding customized image multi-dimensional model, the customized image multi-dimensional model and the customized image multi-dimensional model are combined with The first to-be-processed image is synthesized to obtain a customized effect image corresponding to the product, which solves the problems of poor display effect, high cost and large workload of the customized effect image in the existing personalized customization process, and can make the customized effect image more realistic and appropriate. The content of the displayed image (for example, the change and effect of the material of the customized product can be displayed), the real display effect of the customized effect image is improved, and the cost and workload of obtaining the customized effect image can be reduced.
附图说明Description of drawings
图1是本发明实施例一提供的一种在商品定制场景中获得定制效果图像的方法的流程图;1 is a flowchart of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的流程图;2 is a flowchart of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 2 of the present invention;
图3是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的一个示例示意图;3 is an exemplary schematic diagram of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 2 of the present invention;
图4是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的另一个示例示意图;4 is another exemplary schematic diagram of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 2 of the present invention;
图5是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的又一个示例示意图;5 is another exemplary schematic diagram of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 2 of the present invention;
图6是本发明实施例二提供的定制效果图像的一个非正视示意图;6 is a schematic diagram of a non-front view of a customized effect image provided in Embodiment 2 of the present invention;
图7是本发明实施例二提供的定制效果图像的另一个非正视示意图;7 is another schematic diagram of a non-front view of a customized effect image provided by Embodiment 2 of the present invention;
图8是本发明实施例二提供的定制效果图像的又一个非正视示意图;8 is another schematic diagram of a non-front view of a customized effect image provided in Embodiment 2 of the present invention;
图9是本发明实施例三提供的一种在商品定制场景中获得定制效果图像的示意图;9 is a schematic diagram of obtaining a customized effect image in a commodity customization scene according to Embodiment 3 of the present invention;
图10是本发明实施例四提供的一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, the drawings only show some but not all of the contents related to the present invention. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
本发明实施例的说明书和权利要求书及附图中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述特定的顺序。此外术语“包括”和“具有”以及他们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有设定于已列出的步骤或单元,而是可包括没有列出的步骤或单元。The terms "first" and "second" in the description and claims of the embodiments of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or elements is not provided with the listed steps or elements, but may include unlisted steps or elements.
实施例一Example 1
图1是本发明实施例一提供的一种在商品定制场景中获得定制效果图像的方法的流程图,本实施例可适用于提高定制效果图像的显示效果、降低展示定制效果图像的成本以及工作量的情况,该方法可以由在商品定制场景中获得定制效果图像的装置执行,该装置可以通过软件和/或硬件的方式实现,并一般可以直接集成在执行本方法的电子设备中。如图1所示,在商品定制场景中获得定制效果图像的方法,具体可以包括以下步骤:1 is a flowchart of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 1 of the present invention. This embodiment can be applied to improve the display effect of the customized effect image and reduce the cost and work of displaying the customized effect image. The method can be executed by a device for obtaining a customized effect image in a commodity customization scenario, the device can be implemented by means of software and/or hardware, and generally can be directly integrated into the electronic device that executes the method. As shown in Figure 1, the method for obtaining a customized effect image in a commodity customization scene may specifically include the following steps:
S110、获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图。S110. Acquire a first image to be processed, wherein the first image to be processed includes a commodity image of a commodity being customized, and the first image to be processed belongs to a two-dimensional plan view.
其中,第一待处理图像是指被定制的商品的商品图像,如商品二维图像、将商品置于任何场景下拍摄的带有背景图的商品二维图像等,其可以在任意一个角度拍摄,也即第一待处理图像中商品的拍摄视角不受限制,本发明实施例并不对第一待处理图像的图像内容和类型进行限制。The first image to be processed refers to a product image of the product to be customized, such as a two-dimensional image of the product, a two-dimensional image of the product with a background image taken by placing the product in any scene, and the like, which can be taken at any angle. , that is, the shooting angle of the commodity in the first image to be processed is not limited, and the embodiment of the present invention does not limit the image content and type of the first image to be processed.
在本发明实施例中,获取第一待处理图像可以是获取本地存储的第一待处理图像,也可以是获取用户当前提供的第一待处理图像等,本发明实施例对此并不进行限制。可以理解的是,本地存储的图像可以是存储在本地的系统中的图像,也可以是存储在本地的用户之前提供的图像,或者还可以是存储在本地的根据用户需求绘制的图像等,本发明实施例对此并不进行限制。In this embodiment of the present invention, acquiring the first image to be processed may be acquiring the first image to be processed stored locally, or may be acquiring the first image to be processed currently provided by the user, etc., which is not limited in this embodiment of the present invention . It can be understood that the locally stored image can be an image stored in the local system, or an image stored locally provided by the user before, or it can also be an image stored locally based on user needs, etc. This embodiment of the invention does not limit this.
S120、将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。S120. Load the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain a corresponding customized image multi-dimensional model.
其中,定制图像可以是产品的logo或用户提供的定制照片等,本发明实施例并不对定制图像的图像内容和类型进行限制。定制区域多维模型可以是商品的定制区域对应的多维模型,也即对第一待处理图像所含的商品的定制区域进行多维建模形成的模型,此时,商品的定制区域上还未加载定制图像。定制图像多维模型可以是将定制图像加载于定制区域多维模型上得到的多维模型,例如可以是定制图像三维模型,也可以是定制图像四维模型等,本发明实施例对此并不进行限制。也即,定制区域多维模型可以是加载定制图像之前的商品定制区域部分对应的模型,将定制图像加载于定制区域多维模型上,即可获得加载了定制图像的定制图像多维模型。可选的,定制区域多维模型的模型材质可以包括透明材质,也可以是打印材质,即能够体现出最后得到的定制效果图像的打印工艺效果的材质,如定制图像的打印工艺效果会体现在定制区域多维模型上,同时也会体现出定制图像的体积感。可选的,透明材质可以为PBR(Physicallly-Based Rendering,基于物理规律模拟的渲染技术)。在此,本发明仅对第一待处理图像所含的产品的定制区域进行多维建模形成多维定制区域模型,与现有技术中需要制作产品本身的多维模型相比,显著降低了模型制作要求和模型制作成本(如制作周期成本、制作人工成本等)。The customized image may be a logo of a product or a customized photo provided by a user, etc. The embodiment of the present invention does not limit the image content and type of the customized image. The multi-dimensional model of the customized area may be a multi-dimensional model corresponding to the customized area of the product, that is, a model formed by performing multi-dimensional modeling on the customized area of the product included in the first image to be processed. At this time, the customized area of the product has not yet been loaded with customization. image. The customized image multi-dimensional model may be a multi-dimensional model obtained by loading a customized image onto the customized area multi-dimensional model, for example, a customized image 3D model, or a customized image 4D model, which is not limited in this embodiment of the present invention. That is, the customized area multi-dimensional model may be a model corresponding to the part of the product customization area before loading the customized image, and the customized image multi-dimensional model loaded with the customized image can be obtained by loading the customized image on the customized area multi-dimensional model. Optionally, the model material of the multi-dimensional model of the customized area may include a transparent material or a printing material, that is, a material that can reflect the printing process effect of the final customized effect image. For example, the printing process effect of the customized image will be reflected in the customized image. On the multi-dimensional model of the area, the volume of the customized image will also be reflected. Optionally, the transparent material may be PBR (Physically-Based Rendering, a rendering technology based on physical law simulation). Here, the present invention only performs multi-dimensional modeling on the customized area of the product contained in the first image to be processed to form a multi-dimensional customized area model. Compared with the multi-dimensional model of the product itself in the prior art, the model production requirements are significantly reduced and model production costs (such as production cycle costs, production labor costs, etc.).
可选的,定制区域多维模型可以是定制区域3维模型,也可以是定制区域4维模型,或者还可以是定制区域5维模型。相应的,定制图像多维模型可以是定制图像3维模型,也可以是定制图像4维模型,或者还可以是定制图像5维模型等,本发明实施例对定制区域多维模型和定制图像多维模型的维度并不进行限制。可以理解的是,如果定制区域多维模型为定制区域3维模型,则相应的定制图像多维模型为定制图像3维模型。Optionally, the multi-dimensional model of the customized area may be a 3-dimensional model of the customized area, a 4-dimensional model of the customized area, or a 5-dimensional model of the customized area. Correspondingly, the customized image multi-dimensional model may be a customized image 3-dimensional model, a customized image 4-dimensional model, or a customized image 5-dimensional model. Dimensions are not limited. It can be understood that, if the customized area multi-dimensional model is a customized area 3-dimensional model, the corresponding customized image multi-dimensional model is a customized image 3-dimensional model.
在本发明实施例中,在获取第一待处理图像之后,可以进一步将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。示例性的,定制图像可以是二维图像,也可以是三维图像。当定制图像为二维图像时,则可以将该二维图像加载于商品对应的定制区域三维模型上,以获得对应的定制图像三维模型,也可以将该二维图像加载于商品对应的定制区域四维模型上,以获得对应的定制图像四维模型。相应的,当定制图像为三维图像时,则可以将该二维图像加载于商品对应的定制区域四维模型上,以获得对应的定制图像四维模型。In this embodiment of the present invention, after obtaining the first image to be processed, the customized image to be customized on the product may be further loaded onto the customized area multidimensional model corresponding to the product to obtain the corresponding customized image multidimensional model. Exemplarily, the customized image may be a two-dimensional image or a three-dimensional image. When the customized image is a 2D image, the 2D image can be loaded onto the 3D model of the customized area corresponding to the product to obtain the corresponding 3D model of the customized image, or the 2D image can be loaded into the customized area corresponding to the product on the 4D model to obtain the corresponding customized image 4D model. Correspondingly, when the customized image is a three-dimensional image, the two-dimensional image can be loaded on the four-dimensional model of the customized area corresponding to the product to obtain the corresponding four-dimensional model of the customized image.
上述技术方案,通过将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,获得对应的定制图像多维模型,可以使得定制图像多维模型与第一待处理图像合成后得到的定制效果图像展示出表面曲度和角度的光影变化,从而使得定制效果图像的显示效果更贴近实际的视角效果。In the above technical solution, by loading the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain the corresponding customized image multi-dimensional model, the customized image multi-dimensional model can be synthesized with the first image to be processed. The customized effect image shows the light and shadow changes of the surface curvature and angle, so that the display effect of the customized effect image is closer to the actual viewing angle effect.
S130、将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。S130. Synthesize the multi-dimensional model of the customized image and the first image to be processed to obtain a customized effect image corresponding to the product.
其中,定制效果图像可以是将定制图像多维模型与第一待处理图像合成后得到的满足定制需求的图像。可选的,如果定制图像是用户在对商品进行定制下单时提交的,则可以将定制效果图像提供给用户。可选的,在得到商品对应的定制效果图像之后,可以进一步将定制效果图像展示于商品在定制场景下的商品信息页面中。示例性的,在商品的个性化定制的具体应用场景中,定制效果图像可以是将定制图像加载于定制区域多维模型上获得对应的定制图像多维模型与商品图像合成后得到的满足定制需求的商品的图像。Wherein, the customized effect image may be an image obtained by synthesizing the multi-dimensional model of the customized image and the first to-be-processed image and satisfying the customization requirement. Optionally, if the customized image is submitted by the user when placing an order for customized products, the customized effect image may be provided to the user. Optionally, after obtaining the customized effect image corresponding to the product, the customized effect image may be further displayed on the product information page of the product in the customized scenario. Exemplarily, in the specific application scenario of personalized customization of commodities, the customized effect image may be a commodity that meets the customization requirements obtained by synthesizing the multi-dimensional model of the corresponding customized image and the commodity image by loading the customized image on the multi-dimensional model of the customized area. Image.
在本发明实施例中,在将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上获得对应的定制图像多维模型之后,可以进一步将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。可选的,定制效果图像可以是二维平面图。具体的,将定制图像多维模型与第一待处理图像进行合成可以是将定制图像多维模型与第一待处理图像进行叠加处理,也可以是将定制图像多维模型与第一待处理图像进行渲染处理等,本发明实施例对定制图像多维模型与第一待处理图像的合成方式并不进行限制。In the embodiment of the present invention, after the customized image to be customized on the commodity is loaded onto the customized area multi-dimensional model corresponding to the commodity to obtain the corresponding customized image multi-dimensional model, the customized image multi-dimensional model can be further combined with the first A to-be-processed image is synthesized to obtain a customized effect image corresponding to the product. Optionally, the custom effect image may be a two-dimensional plan. Specifically, synthesizing the customized image multi-dimensional model and the first image to be processed may be superimposing the customized image multi-dimensional model and the first to-be-processed image, or may be performing rendering processing on the customized image multi-dimensional model and the first to-be-processed image. etc., the embodiment of the present invention does not limit the synthesis manner of the customized image multi-dimensional model and the first to-be-processed image.
本实施例的技术方案,通过获取第一待处理图像,并将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型,从而将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,解决现有的个性化定制过程中定制效果图像显示效果差、成本高以及工作量大等问题,能够使得定制效果图像更加真实、贴切的展示图像内容(如能够展示定制闪屏的材质的变化和效果),提高定制效果图像的真实显示效果,而且能够降低得到定制效果图像的成本和工作量。In the technical solution of this embodiment, by acquiring the first image to be processed, and loading the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain the corresponding customized image multi-dimensional model, the customized image The multi-dimensional model is synthesized with the first image to be processed to obtain a customized effect image corresponding to the product, which solves the problems of poor display effect, high cost and large workload of the customized effect image in the existing personalized customization process, and can make the customized effect image more efficient. Real and appropriate display image content (such as being able to display the material changes and effects of the customized splash screen), improve the real display effect of the customized effect image, and can reduce the cost and workload of obtaining the customized effect image.
在此,在定制区域多维模型上加载的定制图像、在定制区域多维模型上是可任意旋转的,且由于第一待处理图像是二维平面图,以及第一待处理图像中商品的拍摄视角不受限制(也就是说拍摄视角是可以任意方向的),与现有技术中二维定制(二维定制要求商品的平面图必须是商品在正面状态时的照片,不能有角度旋转)相比,本发明显然得到的定制效果图像更能满足用户需求,实现了在二维空间定制出附有多维效果(如3D效果、立体效果)的定制效果图像,更为真实和准确的还原了定制商品的实际生产后的效果,而且,也能展示出定制后的产品表面曲度和角度的光影变化,体现定制商品的定制材质工艺。Here, the customized image loaded on the customized area multi-dimensional model can be arbitrarily rotated on the customized area multi-dimensional model, and because the first image to be processed is a two-dimensional plan view, and the shooting angle of the commodity in the first image to be processed is not Restricted (that is to say, the shooting angle can be taken in any direction), compared with the two-dimensional customization in the prior art (two-dimensional customization requires that the plan view of the product must be a photo of the product in the frontal state, and cannot be rotated at an angle), Obviously, the customized effect image obtained by the invention can better meet the needs of users, and realizes customized effect images with multi-dimensional effects (such as 3D effects and stereoscopic effects) in a two-dimensional space, and more truly and accurately restores the reality of customized products. The effect after production can also show the light and shadow changes of the surface curvature and angle of the customized product, reflecting the customized material craftsmanship of the customized product.
实施例二Embodiment 2
图2是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的流程图,本发明实施例是对上述各技术方案的进一步细化,给出了将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型,以及将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像的多种具体可选的实现方式。本实施例中的技术方案可以与上述一个或者多个实施例中的各个可选方案结合。如图2所示,该方法可以包括如下步骤:FIG. 2 is a flowchart of a method for obtaining a customized effect image in a commodity customization scene provided by the second embodiment of the present invention. The embodiment of the present invention further refines the above technical solutions, and provides a method to be used on the commodity. The customized image for customization is loaded on the multi-dimensional model of the customized area corresponding to the product to obtain the corresponding customized image multi-dimensional model, and the customized image multi-dimensional model is synthesized with the first image to be processed to obtain a variety of customized effect images corresponding to the product. Specific optional implementation methods. The technical solutions in this embodiment may be combined with each optional solution in one or more of the foregoing embodiments. As shown in Figure 2, the method may include the following steps:
S210、获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图。S210. Acquire a first image to be processed, wherein the first image to be processed includes a commodity image of a commodity being customized, and the first image to be processed belongs to a two-dimensional plan view.
S220、根据所述商品中定制区域部分对应的商品实物形状,建立多维模型,以得到所述定制区域多维模型。S220. Establish a multi-dimensional model according to the physical shape of the commodity corresponding to the customized area in the commodity, so as to obtain the customized area multi-dimensional model.
在本发明实施例中,在获取第一待处理图像之后,可以进一步根据商品中定制区域部分对应的商品实物形状,建立多维模型,从而得到定制区域多维模型。In the embodiment of the present invention, after the first image to be processed is acquired, a multi-dimensional model may be established according to the physical shape of the commodity corresponding to the customized area in the commodity, thereby obtaining the customized area multi-dimensional model.
S230、获取所述拟在所述商品上进行定制的定制图像匹配的图像关联参数。S230: Acquire the image-related parameters of the customized image matching to be customized on the commodity.
其中,图像关联参数可以是与拟在第一待处理图像所含的商品上进行定制的定制图像相关联的,可以用于表征定制图像的任意的参数,例如可以是定制图像的尺寸,也可以是定制图像的像素值等,本发明实施例对此并不进行限制。The image association parameter may be associated with a customized image to be customized on the commodity contained in the first image to be processed, and may be used to characterize any parameter of the customized image, such as the size of the customized image, or is the pixel value of the customized image, etc., which is not limited in this embodiment of the present invention.
在本发明实施例中,在根据商品中定制区域部分对应的商品实物形状,建立多维模型,以得到定制区域多维模型之后,可以进一步获取拟在商品上进行定制的定制图像匹配的图像关联参数,以根据图像关联参数对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上。In the embodiment of the present invention, after establishing a multi-dimensional model according to the physical shape of the commodity corresponding to the customized area in the commodity to obtain the multi-dimensional model of the customized area, the image correlation parameters of the customized image matching to be customized on the commodity can be further obtained, The customized image to be customized on the product is loaded on the multi-dimensional model of the customized area corresponding to the product according to the image association parameter.
可选的,拟在所述商品上进行定制的定制图像匹配的图像关联参数可以包括下述至少一项:图像合成尺寸、图像合成位置、图像旋转方向以及图像合成材质。Optionally, the image-related parameters for customized image matching to be customized on the commodity may include at least one of the following: image synthesis size, image synthesis position, image rotation direction, and image synthesis material.
其中,图像合成尺寸可以是在将定制图像和商品图像进行合成后,定制图像在定制效果图像中的尺寸。可以理解的是,图像合成尺寸的大小与商品图像中可定制区域的尺寸有关。示例性的,如果商品图像中只有一个5cm*5cm的区域可以与定制图像进行合成,则定制图像的图像合成尺寸应小于等于5cm*5cm。可以理解的是,如果获取的定制图像的尺寸大于商品图像的可定制区域,则可以对定制图像的尺寸进行调整,以满足商品图像的可定制区域的尺寸要求。图像合成位置可以是在将定制图像和商品图像进行合成之后,定制效果图像中定制图像所在的位置。示例性的,图像合成位置可以是拟在商品上进行定制的定制图像在第一待处理图像正面的可定制区域,也可以是第二待处理图像在第一待处理图像顶面的可定制区域等,本发明实施例对此并不进行限制。图像旋转方向可以是在将定制图像在定制区域多维模型中的旋转方向。可以理解的是,定制图像在定制区域多维模型中可以任意角度旋转。图像合成材质可以是将定制效果图像生产成产品,定制图像在产品中的材质,例如可以是橡胶材质、编织材质或金属材质,以及打印工艺效果如胶印、刺绣、镭射等,本发明实施例对此并不进行限制。The image synthesis size may be the size of the customized image in the customized effect image after synthesizing the customized image and the commodity image. It can be understood that the size of the image composite size is related to the size of the customizable area in the product image. Exemplarily, if only an area of 5cm*5cm in the product image can be combined with the customized image, the combined image size of the customized image should be less than or equal to 5cm*5cm. It can be understood that, if the size of the obtained customized image is larger than the customizable area of the product image, the size of the customized image can be adjusted to meet the size requirement of the customizable area of the product image. The image synthesis position may be the position where the customized image is located in the customized effect image after the customized image and the commodity image are synthesized. Exemplarily, the image synthesis position may be a customizable area on the front of the first image to be processed of the customized image to be customized on the commodity, or it may be a customizable area on the top of the first image to be processed by the second image to be processed. etc., this is not limited in this embodiment of the present invention. The image rotation direction may be the rotation direction in which the custom image is placed in the custom region multidimensional model. It is understood that the custom image can be rotated at any angle in the custom region multidimensional model. The image synthesis material may be a custom effect image produced into a product, the material of the custom image in the product, for example, may be a rubber material, a woven material or a metal material, and a printing process effect such as offset printing, embroidery, laser, etc. This is not limiting.
具体的,在根据商品中定制区域部分对应的商品实物形状,建立多维模型,以得到定制区域多维模型之后,可以进一步获取拟在商品上进行定制的定制图像匹配的图像合成尺寸、图像合成位置、图像旋转方向或图像合成材质,以根据图像合成尺寸、图像合成位置、图像旋转方向以及图像合成材质对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型。Specifically, after establishing a multi-dimensional model according to the physical shape of the commodity corresponding to the customized area in the commodity to obtain the multi-dimensional model of the customized area, it is possible to further obtain the image synthesis size, image synthesis position, Image rotation direction or image synthesis material, to load the customized image to be customized on the commodity according to the image synthesis size, image synthesis position, image rotation direction and image synthesis material into the multi-dimensional model of the customized area corresponding to the commodity.
S240、根据所述图像关联参数对所述拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的所述定制图像多维模型。S240. Load the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity according to the image association parameter, so as to obtain the corresponding multi-dimensional model of the customized image.
在本发明实施例中,在获取拟在商品上进行定制的定制图像匹配的图像关联参数之后,可以进一步根据图像关联参数对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型,从而得到商品对应的定制效果图像。具体的,如果图像关联参数包括图像合成尺寸,则可以根据图像合成尺寸对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。如果图像关联参数包括图像合成位置,则可以根据图像合成位置对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。如果图像关联参数包括图像合成材质,则可以根据图像合成材质对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。In the embodiment of the present invention, after obtaining the image correlation parameters of the customized image matching to be customized on the commodity, the customized image to be customized on the commodity can be further loaded into the multi-dimensional model of the customized area corresponding to the commodity according to the image correlation parameters to obtain the corresponding customized image multi-dimensional model, so as to obtain the customized effect image corresponding to the product. Specifically, if the image association parameter includes the image composite size, the customized image to be customized on the product can be loaded on the multi-dimensional model of the customized area corresponding to the product according to the image composite size to obtain the corresponding customized image multi-dimensional model. If the image correlation parameter includes the image synthesis position, the customized image to be customized on the commodity can be loaded on the multidimensional model of the customized area corresponding to the commodity according to the image synthesis position to obtain the corresponding customized image multidimensional model. If the image-related parameters include the image composite material, the customized image to be customized on the product can be loaded on the multi-dimensional model of the customized area corresponding to the product according to the image composite material to obtain the corresponding customized image multi-dimensional model.
S250、将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。S250. Synthesize the multi-dimensional model of the customized image and the first image to be processed to obtain a customized effect image corresponding to the commodity.
可选的,若拟在商品上进行定制的定制图像匹配的图像关联参数包括图像合成尺寸,则将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,可以包括:根据图像合成尺寸调整定制图像多维模型中目标定制图像的图像大小,得到第一调整定制图像多维模型;将第一调整定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像。Optionally, if the image-related parameters of the customized image matching to be customized on the product include the image synthesis size, the multi-dimensional model of the customized image is synthesized with the first image to be processed to obtain a customized effect image corresponding to the product, which may include: Adjust the image size of the target customized image in the customized image multi-dimensional model according to the image synthesis size to obtain the first adjusted customized image multi-dimensional model; combine the first adjusted customized image multi-dimensional model with the first image to be processed to obtain the customized effect image corresponding to the product .
其中,目标定制图像可以是将定制图像加载于定制区域多维模型上获得的定制图像多维模型中合成在商品图像中的定制图像。第一调整定制图像多维模型可以是图像大小与定制图像的图像合成尺寸相匹配的一个定制图像多维模型,其可以是将定制图像加载于第一待处理图像所含的商品的定制区域进行多维建模形成的定制区域多维模型上得到的图像大小与定制图像的图像合成尺寸相匹配的一个多维度图像。Wherein, the target customized image may be a customized image synthesized in the commodity image in the customized image multi-dimensional model obtained by loading the customized image on the customized area multi-dimensional model. The first adjusted customized image multi-dimensional model may be a customized image multi-dimensional model whose image size matches the image composite size of the customized image. A multi-dimensional image in which the size of the image obtained on the multi-dimensional model of the customized area formed by the mold matches the image composite size of the customized image.
具体的,如果定制图像匹配的图像关联参数包括图像合成尺寸,则可以根据图像合成尺寸调整定制图像多维模型中目标定制图像的图像大小,以得到图像大小与定制图像的图像合成尺寸相匹配的第一调整定制图像多维模型,从而将第一调整定制图像多维模型与第一待处理图像进行合成得到与商品对应的定制效果图像。Specifically, if the image-related parameters of the customized image matching include the image composition size, the image size of the target customized image in the customized image multidimensional model can be adjusted according to the image composition size, so as to obtain the first image size matching the image composition size of the customized image. Adjusting the multi-dimensional model of the customized image, thereby synthesizing the multi-dimensional model of the first adjusted customized image and the first image to be processed to obtain a customized effect image corresponding to the commodity.
上述技术方案,通过根据图像合成尺寸调整定制图像多维模型的图像大小,从而使得定制效果图像能满足用户对定制效果图像的尺寸的需求。In the above technical solution, the image size of the customized image multi-dimensional model is adjusted according to the image synthesis size, so that the customized effect image can meet the user's requirement for the size of the customized effect image.
可选的,若拟在商品上进行定制的定制图像匹配的图像关联参数包括图像合成位置,则将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,可以包括:根据图像合成位置确定定制图像多维模型中目标定制图像在第一待处理图像中的目标位置;在第一待处理图像的目标位置处添加定制图像多维模型中的目标定制图像,得到商品对应的定制效果图像。Optionally, if the image correlation parameter of the customized image matching to be customized on the commodity includes the image synthesis position, then the multi-dimensional model of the customized image is synthesized with the first image to be processed to obtain a customized effect image corresponding to the commodity, which may include: Determine the target position of the target customized image in the first image to be processed in the customized image multidimensional model according to the image synthesis position; add the target customized image in the customized image multidimensional model at the target position of the first image to be processed to obtain the customized image corresponding to the product effect image.
其中,目标位置可以是定制图像多维模型与第一待处理图像进行合成时,定制图像多维模型中的目标定制图像在第一待处理图像中的位置。The target position may be the position of the target customized image in the customized image multi-dimensional model in the first to-be-processed image when the customized image multi-dimensional model is synthesized with the first to-be-processed image.
具体的,如果第二待处理图像匹配的图像关联参数包括图像合成位置,则可以根据图像合成位置确定定制图像多维模型中目标定制图像在第一待处理图像中的目标位置,以在第一待处理图像的目标位置处添加定制图像多维模型中的目标定制图像,从而得到与商品对应的定制效果图像。Specifically, if the image correlation parameter matched by the second image to be processed includes the image synthesis position, the target position of the target customized image in the customized image multi-dimensional model in the first to-be-processed image can be determined according to the image synthesis position, so that the target position of the target customized image in the first to-be-processed image can be determined according to the image synthesis position The target customized image in the multi-dimensional model of the customized image is added to the target position of the processed image, so as to obtain the customized effect image corresponding to the commodity.
上述技术方案,通过根据图像合成位置调整定制图像多维模型的图像位置,从而使得定制效果图像能满足用户对定制效果图像的位置的需求。In the above technical solution, by adjusting the image position of the customized image multi-dimensional model according to the image synthesis position, the customized effect image can meet the user's requirement for the position of the customized effect image.
可选的,若拟在商品上进行定制的定制图像匹配的图像关联参数包括图像合成材质,则将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,可以包括:根据图像合成材质调整定制图像多维模型中目标定制图像的图像材质,得到第二调整定制图像多维模型;将第二定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像。Optionally, if the image-related parameters of the customized image matching to be customized on the commodity include the image synthesis material, the multi-dimensional model of the customized image is synthesized with the first image to be processed to obtain a customized effect image corresponding to the commodity, which may include: The image material of the target customized image in the customized image multi-dimensional model is adjusted according to the image synthesis material to obtain a second adjusted customized image multi-dimensional model; the second customized image multi-dimensional model is synthesized with the first image to be processed to obtain a customized effect image corresponding to the product.
其中,第二调整定制图像多维模型可以是图像材质与定制图像的图像合成材质相匹配的一个定制图像多维模型,其可以是将定制图像加载于第一待处理图像所含的商品的定制区域进行多维建模形成的定制区域多维模型上得到的图像材质与定制图像的图像合成材质相匹配的一个多维度图像。Wherein, the second adjusted customized image multi-dimensional model may be a customized image multi-dimensional model whose image material matches the image composite material of the customized image, which may be performed by loading the customized image into the customized area of the commodity contained in the first to-be-processed image. A multi-dimensional image in which the image material obtained on the customized area multi-dimensional model formed by multi-dimensional modeling matches the image composite material of the customized image.
具体的,如果定制图像匹配的图像关联参数包括图像合成材质,则可以根据图像合成材质调整定制图像多维模型中目标定制图像的图像材质,以得到图像材质与定制图像的图像合成材质相匹配的第二调整定制图像多维模型,从而将第二调整定制图像多维模型与第一待处理图像进行合成得到与商品对应的定制效果图像。Specifically, if the image-related parameters of the customized image matching include the image synthesis material, the image material of the target customized image in the multi-dimensional model of the customized image can be adjusted according to the image synthesis material, so as to obtain the first image material matching the image synthesis material of the customized image. 2. Adjust the multi-dimensional model of the customized image, so as to synthesize the multi-dimensional model of the second adjusted customized image and the first image to be processed to obtain a customized effect image corresponding to the commodity.
上述技术方案,通过根据图像合成材质调整定制图像多维模型的图像材质,以使定制效果图像能展示产品的打印工艺材质效果,从而能更真实的展示定制产品的材质。In the above technical solution, the image material of the customized image multi-dimensional model is adjusted according to the image synthesis material, so that the customized effect image can display the material effect of the printing process of the product, so that the material of the customized product can be displayed more realistically.
可选的,若拟在商品上进行定制的定制图像匹配的图像关联参数包括图像旋转方向,则将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,可以包括:根据图像旋转方向调整定制图像多维模型中目标定制图像的图像旋转方向,得到第三调整定制图像多维模型;将第三调整定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像。Optionally, if the image-related parameters of the customized image matching to be customized on the product include the image rotation direction, the multi-dimensional model of the customized image is synthesized with the first image to be processed to obtain a customized effect image corresponding to the product, which may include: Adjust the image rotation direction of the target customized image in the customized image multi-dimensional model according to the image rotation direction to obtain the third adjusted customized image multi-dimensional model; combine the third adjusted customized image multi-dimensional model with the first image to be processed to obtain the customized effect corresponding to the product image.
其中,第三调整定制图像多维模型可以是图像旋转方向与定制图像的图像旋转方向相匹配的一个定制图像多维模型,其可以是将定制图像加载于第一待处理图像所含的商品的定制区域进行多维建模形成的定制区域多维模型上得到的图像旋转方向与定制图像的图像旋转方向相匹配的一个多维度图像。Wherein, the third adjusted customized image multi-dimensional model may be a customized image multi-dimensional model whose image rotation direction matches the image rotation direction of the customized image, which may be a customized image loaded in the customized area of the commodity contained in the first to-be-processed image A multi-dimensional image in which the image rotation direction obtained on the customized area multi-dimensional model formed by multi-dimensional modeling matches the image rotation direction of the customized image.
具体的,如果定制图像匹配的图像关联参数包括图像旋转方向,则可以根据图像旋转方向调整定制图像多维模型中目标定制图像的图像旋转方向,以得到图像旋转方向与定制图像的图像旋转方向相匹配的第三调整定制图像多维模型,从而将第三调整定制图像多维模型与第一待处理图像进行合成得到与商品对应的定制效果图像。Specifically, if the image correlation parameter of the customized image matching includes the image rotation direction, the image rotation direction of the target customized image in the customized image multi-dimensional model can be adjusted according to the image rotation direction, so that the image rotation direction matches the image rotation direction of the customized image. The third adjusted customized image multi-dimensional model, so that the third adjusted customized image multi-dimensional model and the first to-be-processed image are synthesized to obtain a customized effect image corresponding to the commodity.
上述技术方案,通过根据图像旋转方向调整定制图像多维模型的图像旋转方向,以使定制效果图像能更真实的展示定制商品。In the above technical solution, the image rotation direction of the multi-dimensional model of the customized image is adjusted according to the rotation direction of the image, so that the customized effect image can more realistically display the customized product.
可选的,该方法还可以包括:配置前景层图像,其中,前景层图像的材质包括商品的自身材质;相应的,将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像可以包括:将前景层图像、定制图像多维模型、第一待处理图像,按照从前至后的顺序,在多维渲染引擎场景中叠加渲染,以获得定制效果图像。Optionally, the method may further include: configuring a foreground layer image, wherein the material of the foreground layer image includes the material of the commodity itself; correspondingly, synthesizing the multi-dimensional model of the customized image and the first image to be processed to obtain the customized image corresponding to the commodity. The effect image may include: superimposing and rendering the foreground layer image, the customized image multi-dimensional model, and the first image to be processed in the multi-dimensional rendering engine scene in order from front to back to obtain the customized effect image.
其中,前景层图像可以是处于前景层区域的图像,可选的,前景层图像的材质可以包括商品的自身材质,其中,商品的自身材质可以是商品的定制区域材质和商品的非定制区域材质。The foreground layer image may be an image in the foreground layer area. Optionally, the material of the foreground layer image may include the material of the commodity itself, wherein the material of the commodity may be the material of the customized area of the commodity and the material of the non-customized area of the commodity .
具体的,在对前景层图像进行配置之后,可以进一步将前景层图像、定制图像多维模型、第一待处理图像,按照从前至后的顺序,在多维渲染引擎场景中叠加渲染,以获得定制效果图像。Specifically, after the foreground layer image is configured, the foreground layer image, the multi-dimensional model of the customized image, and the first image to be processed can be further superimposed and rendered in the multi-dimensional rendering engine scene in order from front to back to obtain customized effects. image.
在此,前景层图像在多维渲染引擎场景中处于最前端位置,即摄像机最近的模型部分,用于补充定制图像多维模型与第一待处理图像在合成画面时的高光细节,可以使合成后的画面变得更加真实。Here, the foreground layer image is at the forefront of the multi-dimensional rendering engine scene, that is, the model part closest to the camera, which is used to supplement the highlight details of the multi-dimensional model of the customized image and the first image to be processed when synthesizing the picture, which can make the synthesized image The picture becomes more real.
在此,第一待处理图像在多维渲染引擎场景中处于背景层位置,其在场景中处于定制图像多维模型之后的位置,用于展示商品无定制状态时的图层,配合定制图像多维模型形成有立体定制材质效果的定制效果图像。Here, the first image to be processed is in the background layer position in the multi-dimensional rendering engine scene, and it is in the position behind the customized image multi-dimensional model in the scene, which is used to display the layer when the product is not customized, and is formed with the customized image multi-dimensional model. Custom effects images with stereo custom material effects.
可选的,在得到商品对应的定制效果图像之后,还可以包括:确定商品对应的定制效果图像的待优化图像区域;对待优化图像区域的图像参数进行调整优化。Optionally, after obtaining the customized effect image corresponding to the product, the method may further include: determining an image area to be optimized of the customized effect image corresponding to the product; and adjusting and optimizing image parameters of the image parameter to be optimized.
其中,待优化图像区域可以是定制效果图像中需要进行优化的图像区域,例如可以是定制效果图像中定制图像多维模型中目标定制图像所在的图像区域,也可以是定制效果图像中设定的图像区域等,本发明实施例对此并不进行限制。可以理解的是,将定制图像多维模型与第一待处理图像进行合成时,定制图像多维模型中目标定制图像所在的图像区域由于定制图像多维模型的合成,导致待优化图像区域的图像参数与第一待处理图像的图像参数有所差异,则需要对待优化图像区域的图像参数进行调整优化,以使定制效果图像的显示效果更真实。图像参数可以是图像亮度或图像对比度等参数,本发明实施例对此并不进行限制。The image area to be optimized may be an image area that needs to be optimized in the customized effect image, for example, it may be the image area where the target customized image is located in the customized image multi-dimensional model in the customized effect image, or may be the image set in the customized effect image regions, etc., which are not limited in this embodiment of the present invention. It can be understood that when the customized image multi-dimensional model is synthesized with the first image to be processed, the image area where the target customized image is located in the customized image multi-dimensional model is due to the synthesis of the customized image multi-dimensional model. If the image parameters of the image to be processed are different, the image parameters of the image area to be optimized need to be adjusted and optimized, so that the display effect of the customized effect image is more realistic. The image parameter may be a parameter such as image brightness or image contrast, which is not limited in this embodiment of the present invention.
具体的,在得到商品对应的定制效果图像之后,可以进一步确定商品对应的定制效果图像的待优化图像区域;对待优化图像区域的图像参数进行调整优化,以得到显示效果更真实的定制效果图像。Specifically, after obtaining the customized effect image corresponding to the product, the image area to be optimized of the customized effect image corresponding to the product can be further determined; the image parameters of the image parameter to be optimized are adjusted and optimized to obtain a customized effect image with a more realistic display effect.
可选的,确定商品对应的定制效果图像的待优化图像区域,可以包括:根据拟在商品上进行定制的定制图像在第一待处理图像中的相对位置确定拟在商品上进行定制的定制图像在第一待处理图像中的原始图像区域;根据原始图像区域和预设图像扩展区域确定待优化图像区域。Optionally, determining the image area to be optimized of the customized effect image corresponding to the product may include: determining the customized image to be customized on the product according to the relative position of the customized image to be customized on the product in the first image to be processed. The original image area in the first image to be processed; the image area to be optimized is determined according to the original image area and the preset image extension area.
其中,原始图像区域可以是将拟在商品上进行定制的定制图像和第一待处理图像进行合成之后,拟在商品上进行定制的定制图像在第一待处理图像中的图像区域。预设图像扩展区域可以是预设的在原始图像区域的基础上进行扩展的区域。示例性的,如果原始图像区域的尺寸为4cm*4cm,且预设图像扩展区域的扩展尺寸为长和宽分别扩展1cm,则待优化图像区域的尺寸为5cm*5cm。也即,待优化图像区域包括完整的拟在商品上进行定制的定制图像,且比拟在商品上进行定制的定制图像在第一待处理图像中的区域相对较大。由于第一待处理图像为需要定制的图像,因此,第一待处理图像通常可以作为图像的背景。The original image area may be an image area of the customized image to be customized on the commodity in the first to-be-processed image after synthesizing the customized image to be customized on the commodity and the first to-be-processed image. The preset image expansion area may be a preset area that is expanded on the basis of the original image area. Exemplarily, if the size of the original image area is 4cm*4cm, and the extension size of the preset image extension area is 1cm in length and width respectively, the size of the image area to be optimized is 5cm*5cm. That is, the image area to be optimized includes a complete customized image to be customized on the product, and the area in the first image to be processed is relatively larger than the customized image customized on the product. Since the first image to be processed is an image that needs to be customized, the first image to be processed can usually be used as the background of the image.
具体的,在将拟在商品上进行定制的定制图像与第一待处理图像的进行合成得到定制效果图像之后,可以进一步根据拟在商品上进行定制的定制图像在第一待处理图像中的相对位置确定拟在商品上进行定制的定制图像在第一待处理图像中的原始图像区域,以根据原始图像区域和预设图像扩展区域确定待优化图像区域。Specifically, after synthesizing the customized image to be customized on the commodity and the first image to be processed to obtain a customized effect image, the relative relationship between the customized image to be customized on the commodity in the first to-be-processed image can be further determined. The location determines the original image area of the customized image to be customized on the commodity in the first image to be processed, so as to determine the image area to be optimized according to the original image area and the preset image extension area.
在一个具体示例中,图3是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的一个示例示意图,图4是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的另一个示例示意图,图5是本发明实施例二提供的一种在商品定制场景中获得定制效果图像的方法的又一个示例示意图。以水杯LOGO的定制为例进行说明,相应的,水杯LOGO的定制方法可以是在虚拟物理引擎环境中,利用场景摄像机,以前景层模型、3D定制区域模型以及背景层模型的透视关系将所有场景模型组合成一个属于该定制产品角度的定制模型场景,并通过渲染生成出一张由3D模型和二维平面图组合成有立体定制材质效果的定制渲染图,具体可以包括如下内容:In a specific example, FIG. 3 is an exemplary schematic diagram of a method for obtaining a customized effect image in a commodity customization scene provided by Embodiment 2 of the present invention, and FIG. 4 is a schematic diagram of a method in a commodity customization scene provided by Embodiment 2 of the present invention FIG. 5 is another exemplary schematic diagram of a method for obtaining a customized effect image in a commodity customization scene according to Embodiment 2 of the present invention. Take the customization of the water cup LOGO as an example to illustrate. Correspondingly, the custom method of the water cup LOGO can be in the virtual physics engine environment, using the scene camera, with the perspective relationship of the foreground layer model, the 3D customized area model and the background layer model. The model is combined into a custom model scene belonging to the perspective of the custom product, and a custom rendering image with a three-dimensional custom material effect is generated by combining the 3D model and the two-dimensional floor plan through rendering, which may include the following:
获取如图3所示的第一待处理图像,也即获取如图3所示的被定制的商品的商品图像,并将其置于如图4所示的背景层模型中,可选的,第一待处理图像可以是二维平面图作为与商品对应的定制效果图像的背景层;其中,背景层模型可以是对定制图像和被定制的商品的商品图像进行合成之前,展示被定制的商品的商品图像的一个模型。背景层模型的材质可以依托于平面模型片上,在图像合成场景中处于3D定制区域模型之后的位置,可以展示定制产品无定制状态图层,配合3D定制区域模型形成有立体定制材质效果的定制渲染图,也即背景层模型可以展示被定制的产品图像,而且可以通过与3D定制区域模型配合展示有立体定制材质效果的合成后的图像。Acquire the first image to be processed as shown in FIG. 3, that is, acquire the commodity image of the customized commodity as shown in FIG. 3, and place it in the background layer model as shown in FIG. 4. Optionally, The first image to be processed may be a two-dimensional plan as the background layer of the customized effect image corresponding to the product; wherein, the background layer model may be a model for displaying the customized product before synthesizing the customized image and the product image of the customized product. A mockup of the product image. The material of the background layer model can be based on the plane model sheet, which is located behind the 3D customized area model in the image synthesis scene, and can display the customized product without customization status layer, and cooperate with the 3D customized area model to form a customized rendering with three-dimensional customized material effect. The figure, that is, the background layer model, can display the customized product image, and can display the synthesized image with the stereo customized material effect by cooperating with the 3D customized area model.
获取拟在商品上进行定制的定制图像,并将其置于如图4所示的3D定制区域模型中,以获取定制图像多维模型;可选的,拟在商品上进行定制的定制图像可以是二维平面图,定制图像多维模型可以是三维图像。3D定制区域模型可以在图像合成场景中处于前景层模型之后的位置,可以根据产品定制区域所覆盖的物体表面形状制作出对应的3D模型,定制图案的打印工艺效果可以体现在3D定制区域模型上,同时也可以体现出定制图案的体积感;可选的,3D定制区域模型在建模时可以采用透明材质。Obtain the customized image to be customized on the commodity, and place it in the 3D customized area model as shown in Figure 4 to obtain the customized image multi-dimensional model; Optionally, the customized image to be customized on the commodity can be 2D floor plans, custom images Multidimensional models can be 3D images. The 3D customized area model can be placed behind the foreground layer model in the image synthesis scene, and the corresponding 3D model can be made according to the surface shape of the object covered by the product customized area. The printing process effect of the customized pattern can be reflected in the 3D customized area model. , and can also reflect the volume of the custom pattern; optionally, the 3D custom area model can be modeled with transparent materials.
根据第一待处理图像和拟在商品上进行定制的定制图像确定如图4所示的前景层模型中图像的图像参数;其中,前景层模型可以是对定制效果图像的前景图像区域进行调整的一个模型,可选的,前景图像区域可以是定制效果图像中的待定制图像(如logo)所在的区域,也可以是被定制的商品的商品图像中商品所在的区域,或者还可以是设定的图像区域等,本发明实施例对此并不进行限制。前景层模型的材质可以依托于平面模型片上,在图像合成场景中处于最前端位置,即摄像机最近的模型部分,可以补充3D定制区域模型与背景层合成画面的高光细节,也即前景层模型可以通过对合成后的图像的定制图像区域的图像参数进行调整优化,从而使画面变得更加真实。Determine the image parameters of the image in the foreground layer model as shown in FIG. 4 according to the first image to be processed and the customized image to be customized on the product; wherein, the foreground layer model may be adjusted by adjusting the foreground image area of the customized effect image A model. Optionally, the foreground image area can be the area where the to-be-customized image (such as the logo) is located in the customized effect image, or the area where the product is located in the product image of the customized product, or it can also be a set image area, etc., which are not limited in this embodiment of the present invention. The material of the foreground layer model can be based on the flat model sheet, which is at the forefront of the image synthesis scene, that is, the model part closest to the camera. By adjusting and optimizing the image parameters of the customized image area of the synthesized image, the picture becomes more realistic.
通过将前景层模型、3D定制区域模型和背景层模型叠加渲染,即可得到有立体定制材质效果的二维平面渲染图,也即将通过前景层模型获取的图像参数、通过3D定制区域模型获取的定制图像三维模型、通过背景层确定的第一待处理图像进行合成处理,即可得到如图5所示的商品对应的定制效果图像,可选的,商品对应的定制效果图像可以是二维平面图。By superimposing and rendering the foreground layer model, 3D custom area model and background layer model, a two-dimensional plane rendering with stereo custom material effect can be obtained. The 3D model of the customized image and the first to-be-processed image determined by the background layer are synthesized to obtain the customized effect image corresponding to the product as shown in Figure 5. Optionally, the customized effect image corresponding to the product may be a two-dimensional plan view .
上述技术方案,3D定制区域模型在虚拟物理渲染引擎的作用下,可以展示出商品对应的定制效果图像的表面曲度和角度的光影变化,也可以看出商品对应的定制效果图像的材质的变化和效果,从而使得商品对应的定制效果图像的效果更真实;对于定制产品的生产还原效果而言,能够将定制部分区域与产品结合得更为真实,给定制用户提供更为准确、真实的定制产品图,让用户更早的看到产品定制后的效果,产生购买欲;而且现有技术中在建模时是制作产品本身的3D模型,而上述技术方案仅需要制作产品中定制区域的3D模型,从而能够使得3D建模成本显著降低。In the above technical solution, under the action of the virtual physical rendering engine, the 3D customized area model can display the light and shadow changes of the surface curvature and angle of the customized effect image corresponding to the product, and also can see the change of the material of the customized effect image corresponding to the product. and effect, so that the effect of the customized effect image corresponding to the product is more realistic; for the production restoration effect of customized products, it can combine some customized areas with the product more realistically, and provide customized users with more accurate and real customization. The product map allows users to see the effect of the product customization earlier and generate the desire to buy; and in the existing technology, the 3D model of the product itself is produced during modeling, and the above technical solution only requires the production of the 3D custom area in the product. model, so that the cost of 3D modeling can be significantly reduced.
可以理解的是,在3D定制区域模型上定制的图形是可任意旋转的,且商品对应的定制效果图像并没有必须是正面视图的要求,拍摄视角可以是任意的。图6是本发明实施例二提供的定制效果图像的一个非正视示意图,图7是本发明实施例二提供的定制效果图像的另一个非正视示意图,图8是本发明实施例二提供的定制效果图像的又一个非正视示意图,通过本发明实施例的技术方案得到的非正视的定制效果图像可以如图6、图7以及图8所示。It can be understood that the customized graphics on the 3D customized area model can be arbitrarily rotated, and the customized effect image corresponding to the product does not have to be a frontal view, and the shooting angle can be arbitrary. FIG. 6 is a schematic diagram of a non-front view of a customized effect image provided by Embodiment 2 of the present invention, FIG. 7 is another schematic diagram of a non-front view of a customized effect image provided by Embodiment 2 of the present invention, and FIG. 8 is a schematic diagram of a customized effect image provided by Embodiment 2 of the present invention. Another non-frontal view schematic diagram of the effect image, the non-frontal customized effect image obtained by the technical solution of the embodiment of the present invention may be as shown in FIG. 6 , FIG. 7 , and FIG. 8 .
本实施例的技术方案,通过获取第一待处理图像,并根据商品中定制区域部分对应的商品实物形状,建立多维模型,以得到定制区域多维模型,再获取拟在商品上进行定制的定制图像匹配的图像关联参数,以根据图像关联参数对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,从而获得对应的定制图像多维模型,进而将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,解决现有的个性化定制过程中定制效果图像显示效果差、成本高以及工作量大等问题,能够使得定制效果图像更加真实、贴切的展示图像内容(如能够展示定制商品的材质的变化和效果),提高定制效果图像的真实显示效果,而且能够降低得到定制效果图像的成本和工作量。The technical solution of this embodiment is to obtain the first image to be processed, and establish a multi-dimensional model according to the physical shape of the commodity corresponding to the customized area in the commodity, so as to obtain the multi-dimensional model of the customized area, and then obtain the customized image to be customized on the commodity. The matching image association parameters are used to load the customized image to be customized on the product on the multi-dimensional model of the customized area corresponding to the product according to the image association parameters, so as to obtain the corresponding customized image multi-dimensional model, and then the customized image multi-dimensional model and the first multi-dimensional model. The images to be processed are synthesized to obtain the customized effect image corresponding to the product, which solves the problems of poor display effect, high cost and large workload of the customized effect image in the existing personalized customization process, and can make the customized effect image more realistic and appropriate display. The image content (such as being able to display the change and effect of the material of the customized product) can improve the real display effect of the customized effect image, and can reduce the cost and workload of obtaining the customized effect image.
实施例三Embodiment 3
图9是本发明实施例三提供的一种在商品定制场景中获得定制效果图像的装置的示意图,如图9所示,所述装置包括:待处理图像获取模块910、定制图像多维模型获取模块920以及定制效果图像确定模块930,其中:FIG. 9 is a schematic diagram of a device for obtaining a customized effect image in a commodity customization scene provided by Embodiment 3 of the present invention. As shown in FIG. 9 , the device includes: a to-be-processed
待处理图像获取模块910,用于获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图;a to-be-processed
定制图像多维模型获取模块920,用于将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型;A customized image multi-dimensional
定制效果图像确定模块930,用于将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。The customized effect
本实施例的技术方案,通过获取第一待处理图像,并将拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型,从而将定制图像多维模型与第一待处理图像进行合成,得到商品对应的定制效果图像,解决现有的个性化定制过程中定制效果图像显示效果差、成本高以及工作量大等问题,能够使得定制效果图像更加真实、贴切的展示图像内容(如能够展示定制商品的材质的变化和效果),提高定制效果图像的真实显示效果,而且能够降低得到定制效果图像的成本和工作量。In the technical solution of this embodiment, by acquiring the first image to be processed, and loading the customized image to be customized on the commodity on the multi-dimensional model of the customized area corresponding to the commodity to obtain the corresponding customized image multi-dimensional model, the customized image The multi-dimensional model is synthesized with the first image to be processed to obtain a customized effect image corresponding to the product, which solves the problems of poor display effect, high cost and large workload of the customized effect image in the existing personalized customization process, and can make the customized effect image more efficient. Real and appropriate display image content (such as being able to display the material changes and effects of customized products), improve the real display effect of customized effect images, and can reduce the cost and workload of obtaining customized effect images.
可选的,该装置还可以包括:前景层图像配置模块,用于配置前景层图像,其中,前景层图像的材质包括商品的自身材质;相应的,定制效果图像确定模块930,可以具体用于:将前景层图像、定制图像多维模型、第一待处理图像,按照从前至后的顺序,在多维渲染引擎场景中叠加渲染,以获得定制效果图像。Optionally, the device may further include: a foreground layer image configuration module for configuring a foreground layer image, wherein the material of the foreground layer image includes the material of the commodity itself; correspondingly, the customized effect
可选的,该装置还可以包括:定制区域多维模型确定模块,用于根据商品中定制区域部分对应的商品实物形状,建立多维模型,以得到定制区域多维模型。Optionally, the device may further include: a custom area multi-dimensional model determination module, configured to establish a multi-dimensional model according to the physical shape of the commodity corresponding to the custom area part in the commodity, so as to obtain the custom area multi-dimensional model.
可选的,定制区域多维模型的模型材质可以包括透明材质。Optionally, the model material of the custom area multi-dimensional model may include a transparent material.
可选的,第一待处理图像中商品的拍摄视角可以不受限制。Optionally, the shooting angle of the commodity in the first image to be processed may not be limited.
可选的,定制效果图像可以属于二维平面图。Optionally, the custom effect image may belong to a two-dimensional floor plan.
可选的,该装置还可以包括:定制效果图像提供模块,用于将定制效果图像提供给用户。Optionally, the apparatus may further include: a customized effect image providing module, configured to provide the customized effect image to the user.
可选的,可以将定制效果图像展示于商品在定制场景下的商品信息页面中。Optionally, the customized effect image may be displayed on the product information page of the product in the customized scenario.
可选的,定制图像多维模型获取模块920,可以具体用于:获取拟在商品上进行定制的定制图像匹配的图像关联参数;根据图像关联参数对拟在商品上进行定制的定制图像加载于商品对应的定制区域多维模型上,以获得对应的定制图像多维模型。Optionally, the customized image multi-dimensional
可选的,拟在商品上进行定制的定制图像匹配的图像关联参数可以包括下述至少一项:图像合成尺寸、图像合成位置、图像旋转方向以及图像合成材质。Optionally, the image-related parameters for customized image matching to be customized on the commodity may include at least one of the following: image synthesis size, image synthesis position, image rotation direction, and image synthesis material.
可选的,定制效果图像确定模块930,可以进一步用于:确定商品对应的定制效果图像的待优化图像区域;对待优化图像区域的图像参数进行调整优化。Optionally, the customized effect
可选的,定制效果图像确定模块930,还可以进一步用于:根据商品对应的定制效果图像在第一待处理图像中的相对位置确定商品对应的定制效果图像在第一待处理图像中的原始图像区域;根据原始图像区域和预设图像扩展区域确定待优化图像区域。Optionally, the customizing effect
上述在商品定制场景中获得定制效果图像的装置可执行本发明任意实施例所提供的在商品定制场景中获得定制效果图像的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的在商品定制场景中获得定制效果图像的方法。The above apparatus for obtaining a customized effect image in a commodity customization scene can execute the method for obtaining a customized effect image in a commodity customization scene provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, reference may be made to the method for obtaining a customized effect image in a commodity customization scene provided by any embodiment of the present invention.
由于上述所介绍的在商品定制场景中获得定制效果图像的装置为可以执行本发明实施例中的在商品定制场景中获得定制效果图像的方法的装置,故而基于本发明实施例中所介绍的在商品定制场景中获得定制效果图像的方法,本领域所属技术人员能够了解本实施例的在商品定制场景中获得定制效果图像的装置的具体实施方式以及其各种变化形式,所以在此对于该在商品定制场景中获得定制效果图像的装置如何实现本发明实施例中的在商品定制场景中获得定制效果图像的方法不再详细介绍。只要本领域所属技术人员实施本发明实施例中在商品定制场景中获得定制效果图像的方法所采用的装置,都属于本申请所欲保护的范围。Since the above-mentioned device for obtaining a customized effect image in a commodity customization scene is a device that can execute the method for obtaining a customized effect image in a commodity customization scene in the embodiment of the present invention, it is based on the For the method for obtaining a customized effect image in a commodity customization scene, those skilled in the art can understand the specific implementation of the device for obtaining a customized effect image in a commodity customization scene in this embodiment and various variations thereof. How the apparatus for obtaining a customized effect image in a commodity customization scene implements the method for obtaining a customized effect image in a commodity customization scene in the embodiment of the present invention will not be described in detail. As long as the device used by those skilled in the art to implement the method for obtaining a customized effect image in a commodity customization scene in the embodiment of the present invention falls within the scope of protection of the present application.
实施例四Embodiment 4
图10是本发明实施例四提供的一种电子设备的结构示意图。图10示出了适于用来实现本发明实施方式的示例性电子设备12的框图。图10显示的电子设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 10 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention. Figure 10 shows a block diagram of an exemplary
如图10所示,电子设备12以通用计算设备的形式表现。电子设备12的组件可以包括但不限于:一个或者多个处理器16,存储器28,连接不同系统组件(包括存储器28和处理器16)的总线18。As shown in Figure 10, the
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry StandardArchitecture,ISA)总线,微通道体系结构(Micro Channel Architecture,MCA)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。
电子设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)30和/或高速缓存存储器32。电子设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图10未显示,通常称为“硬盘驱动器”)。尽管图10中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如只读光盘(Compact Disc-Read Only Memory,CD-ROM)、数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/
电子设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该电子设备12交互的设备通信,和/或与使得该电子设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(Input/Output,I/O)接口22进行。并且,电子设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与电子设备12的其它模块通信。应当明白,尽管图10中未示出,可以结合电子设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、(Redundant Arrays of Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The
处理器16通过运行存储在存储器28中的程序,从而执行各种功能应用以及数据处理,实现本发明实施例所提供的在商品定制场景中获得定制效果图像的方法:获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图;将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型;将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。The
在上述实施例的基础上,本公开实施例还提供了一种应用于C2M模式中的在商品定制场景中获得定制效果图像的设备,该设备包括本发明实施例所述的在商品定制场景中获得定制效果图像的装置,该装置包括待处理图像获取模块910、定制图像多维模型获取模块920以及定制效果图像确定模块930。On the basis of the above-mentioned embodiments, the embodiments of the present disclosure further provide a device for obtaining a customized effect image in a commodity customization scene, which is applied in a C2M mode, and the device includes the device in the commodity customization scene described in the embodiment of the present invention. A device for obtaining a customized effect image, the device includes a to-be-processed
实施例五Embodiment 5
本发明实施例五还提供一种存储计算机程序的计算机存储介质,所述计算机程序在由计算机处理器执行时用于执行本发明上述实施例任一所述的在商品定制场景中获得定制效果图像的方法:获取第一待处理图像,其中,所述第一待处理图像包括被定制的商品的商品图像,所述第一待处理图像属于二维平面图;将拟在所述商品上进行定制的定制图像加载于所述商品对应的定制区域多维模型上,以获得对应的定制图像多维模型;将所述定制图像多维模型与所述第一待处理图像进行合成,得到所述商品对应的定制效果图像。The fifth embodiment of the present invention further provides a computer storage medium storing a computer program, when the computer program is executed by a computer processor, the computer program is used to execute any of the above-mentioned embodiments of the present invention to obtain a customized effect image in a commodity customization scene method: acquiring a first image to be processed, wherein the first image to be processed includes a commodity image of the commodity being customized, and the first image to be processed belongs to a two-dimensional plan; The customized image is loaded on the multi-dimensional model of the customized area corresponding to the product to obtain the corresponding customized image multi-dimensional model; the customized image multi-dimensional model is synthesized with the first image to be processed to obtain the customized effect corresponding to the product image.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ReadOnly Memory,ROM)、可擦式可编程只读存储器((Erasable Programmable Read OnlyMemory,EPROM)或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ReadOnly Memory, ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory, EPROM) or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any of the above suitable combination. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional A procedural programming language, such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to connect through the Internet) ).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111237246.7A CN113971598B (en) | 2021-10-21 | 2021-10-21 | Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111237246.7A CN113971598B (en) | 2021-10-21 | 2021-10-21 | Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113971598A CN113971598A (en) | 2022-01-25 |
| CN113971598B true CN113971598B (en) | 2022-09-09 |
Family
ID=79588045
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111237246.7A Active CN113971598B (en) | 2021-10-21 | 2021-10-21 | Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113971598B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107330958A (en) * | 2017-06-01 | 2017-11-07 | 福州魅印数码科技有限公司 | A kind of 3D displayings of customed product and production method for customizing, apparatus and system |
| CN107369068A (en) * | 2017-07-02 | 2017-11-21 | 绍兴原色数码科技有限公司 | Based on internet printing pattern designing, color separation and digit printing fabric custom-built system |
| CN112132599A (en) * | 2019-06-24 | 2020-12-25 | 北京沃东天骏信息技术有限公司 | Image processing method and device, computer readable storage medium and electronic device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130030946A1 (en) * | 2011-07-29 | 2013-01-31 | Flexi Usa, Inc. | Creation of Customized Objects for Pet Products Purchased In-Store and/or Online |
| CN103150656A (en) * | 2013-04-02 | 2013-06-12 | 乐淘奇品网络技术(北京)有限公司 | Method for selecting commodity component by using mask through webpage |
| CN107016596A (en) * | 2017-03-23 | 2017-08-04 | 深圳前海易创艺乐科技有限公司 | A kind of commodity stamp method for customizing and its platform |
| CN111369309B (en) * | 2018-12-10 | 2023-07-07 | 阿里巴巴(上海)有限公司 | Product configuration method, product customization method, device, terminal and server |
| CN111292162A (en) * | 2020-01-21 | 2020-06-16 | 珠海随变科技有限公司 | Commodity customization method, commodity customization device, terminal or server and storage medium |
-
2021
- 2021-10-21 CN CN202111237246.7A patent/CN113971598B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107330958A (en) * | 2017-06-01 | 2017-11-07 | 福州魅印数码科技有限公司 | A kind of 3D displayings of customed product and production method for customizing, apparatus and system |
| CN107369068A (en) * | 2017-07-02 | 2017-11-21 | 绍兴原色数码科技有限公司 | Based on internet printing pattern designing, color separation and digit printing fabric custom-built system |
| CN112132599A (en) * | 2019-06-24 | 2020-12-25 | 北京沃东天骏信息技术有限公司 | Image processing method and device, computer readable storage medium and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113971598A (en) | 2022-01-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7190042B2 (en) | Shadow rendering method, apparatus, computer device and computer program | |
| US10679426B2 (en) | Method and apparatus for processing display data | |
| CN108537889A (en) | Adjustment method, device, storage medium and electronic device for augmented reality model | |
| CN110599593B (en) | Data synthesis method, device, equipment and storage medium | |
| CN110378947B (en) | 3D model reconstruction method and device and electronic equipment | |
| CN109448050B (en) | Method for determining position of target point and terminal | |
| CN114782646B (en) | Modeling method, device, electronic device and readable storage medium for house model | |
| CN112884874A (en) | Method, apparatus, device and medium for applying decals on virtual model | |
| CN117635799A (en) | Rendering method and device of three-dimensional model, electronic equipment and storage medium | |
| CN110363860A (en) | 3D model reconstruction method, device and electronic equipment | |
| WO2025077567A1 (en) | Three-dimensional model output method, apparatus and device, and computer readable storage medium | |
| US11682171B2 (en) | Method and apparatus for acquiring virtual object data in augmented reality | |
| WO2017113729A1 (en) | 360-degree image loading method and loading module, and mobile terminal | |
| CN113436348B (en) | Three-dimensional model processing method and device, electronic equipment and storage medium | |
| CN113971598B (en) | Method, Apparatus and Device for Obtaining Customization Effect Images in Commodity Customization Scenarios | |
| CN114820980A (en) | Three-dimensional reconstruction method and device, electronic equipment and readable storage medium | |
| CN110390717A (en) | 3D model reconstruction method, device and electronic equipment | |
| CN111915714B (en) | Rendering method for virtual scene, client, server and computing device | |
| CN112511815B (en) | Image or video generation method and device | |
| US20110262031A1 (en) | Concave surface modeling in image-based visual hull | |
| US12322058B2 (en) | Electronic device, method and non-transitory storage medium for image processing | |
| CN113992679B (en) | Automobile image display method, system and equipment | |
| CN115861579A (en) | Display method and device thereof | |
| CN115690365A (en) | Method, device, device and medium for managing three-dimensional models | |
| CN111563956A (en) | A three-dimensional display method, device, equipment and medium of a two-dimensional picture |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PP01 | Preservation of patent right | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20250805 Granted publication date: 20220909 |