Movatterモバイル変換


[0]ホーム

URL:


CN111383343B - Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology - Google Patents

Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology
Download PDF

Info

Publication number
CN111383343B
CN111383343BCN201811634717.6ACN201811634717ACN111383343BCN 111383343 BCN111383343 BCN 111383343BCN 201811634717 ACN201811634717 ACN 201811634717ACN 111383343 BCN111383343 BCN 111383343B
Authority
CN
China
Prior art keywords
model
coloring
network
generated
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811634717.6A
Other languages
Chinese (zh)
Other versions
CN111383343A (en
Inventor
吕李娜
刘镇
梅向东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Cudatec Co ltd
Original Assignee
Jiangsu Cudatec Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Cudatec Co ltdfiledCriticalJiangsu Cudatec Co ltd
Priority to CN201811634717.6ApriorityCriticalpatent/CN111383343B/en
Publication of CN111383343ApublicationCriticalpatent/CN111383343A/en
Application grantedgrantedCritical
Publication of CN111383343BpublicationCriticalpatent/CN111383343B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention aims to provide a home decoration design-oriented augmented reality image rendering and coloring method based on a generation countermeasure network technology. The coloring method has the effects of high coloring speed and smoothness, and the color integrity of the colored augmented reality target object can be ensured in translation and scaling; the coloring method supports machine learning, can learn composition, drawing and color habit of different designers to form a style model, and can realize rendering coloring according to the style influence; the coloring method adopts parallel design, and can realize quick rendering and coloring; the method of fusing the virtual object and the video stream background can be used for tracking and positioning the object, so that real-time coloring is achieved. The user can simulate the decoration house according to own preference, and the method can realize the rendering of the three-dimensional home life-like image in the heterogeneous network environment.

Description

Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology
Technical Field
The invention belongs to the field of computer digital images, and relates to an augmented reality image coloring method based on a generated countermeasure network technology for home decoration design.
Background
In the display software of augmented reality, there are two common coloring modes, one is microsoft surface view coloring, and the other is OpenGL coloring. The Microsoft surface view uses the Microsoft application programming interface, so that the support of the coloring function is perfect, and a good smoothing effect can be achieved after the coloring. But as the augmented reality object to be colored is continuously moved, scaled in the background, the speed of the geometric transformation is not followed by the speed of the surface view coloring. The phenomenon of jamming can be caused, and the experience of a user is affected. Particularly, when global movement and scaling are performed, each picture needs to be traversed, each picture is updated in a coloring mode one by one on a surface view, the whole coloring speed can be reduced along with the increase of the number of images, and the pictures can be blocked more and more. The OpenGL has very high coloring speed and is widely applied to application scenes of games and some animation effects. Even on the order of milliseconds. In particular, for the coloring of a picture, picture texture data is stored in a video memory, and the OpenGL hardly consumes time when the OpenGL is colored. So OpenGL will not get stuck. But OpenGL has no smooth effect on the lines. The colored edges have color spots when the lines are thick. In the prior art, if only a single coloring mode is used, the production and application requirements are difficult to achieve. Deep learning has received increasing attention from businesses and research and development personnel in recent years. Wherein the derived generated antagonism network can utilize the generated network and the antagonism network to game to complete some coloring tasks. Production also has its limitations against the coloring of the network. A significant amount of model pre-training time is required.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method has the advantages that the coloring of the generated countermeasure network has the effects of high coloring speed and smoothness, the color integrity of the colored augmented reality target object can be ensured in translation and scaling, and the vivid coloring of different styles can be performed according to different requirements. The coloring method supports machine learning, can learn composition, drawing and color habit of different designers to form a style model, and can realize rendering coloring according to the style influence; the coloring method adopts parallel design, and can realize quick rendering and coloring; the method of fusing the virtual object and the video stream background can be used for tracking and positioning the object, so that real-time coloring is achieved.
In order to achieve the above object, the present invention provides a home decoration design-oriented augmented reality image coloring method based on a generated countermeasure network technology, comprising the steps of:
s101: collecting real-time video;
s102: scanning the digitized marker;
s103: identifying the marker by an augmented reality procedure;
s104: the marker is matched with the three-dimensional virtual object;
s105: adjusting the position of the three-dimensional virtual model according to the position of the marker;
s106: determining style requirements;
s107: matching a pre-training coloring model library;
s108: the virtual object is fused with the video stream background;
s109: the virtual object is colored into the video stream.
The first implementation method of the matching pre-training coloring model library comprises the following steps:
s201: inputting the vertex coordinates of the three-dimensional model to be colored;
s202: placing the three-dimensional model in a three-dimensional scene verification position;
s203: setting the angle and the visual angle of a camera;
s204: setting the position, color and direction parameters of illumination;
s205: setting color parameters of the three-dimensional model;
s206: inputting the colored model to generate an countermeasure network model;
s207: the model passing through the discrimination network is stored in a pre-training model library.
In the invention, a matching pre-training coloring model library implementation method II comprises the following steps:
s401: inputting different types of images of different authors;
s402: generating an antagonism network model from the input image;
s403: the model passing through the discrimination network is stored in a pre-training model library.
In the invention, a method for fusing a virtual object with a video stream background comprises the following steps:
s601: identifying a background object profile of the video stream using an identification program;
s602: extracting the position coordinate of a background object of the video stream;
s603: and displaying the virtual object on the background object of the video stream in a superimposed manner by taking the position coordinates as reference points.
The home decoration design-oriented augmented reality image coloring method based on the generation countermeasure network technology has the characteristics and beneficial effects that:
1. the method used in the method is characterized in that the coloring time is in millisecond level, and the rapid coloring can be realized;
2. the method disclosed by the invention can realize tracking and positioning of the object by using the method of fusing the virtual object and the video stream background, so that real-time coloring is achieved;
3. the method can realize the style coloring of different authors according to different requirements;
4. the method of the present invention uses a pre-trained coloring model for generating an countermeasure network, which can be invoked more quickly than manual feature coloring.
Drawings
Fig. 1 is a flow chart of a method of coloring an augmented reality image based on generating an countermeasure network technique in accordance with the present invention.
FIG. 2 is a flow chart of a first implementation of the matching pre-trained coloring model base of the present invention.
FIG. 3 is a flow chart of generating an antagonism network model from the colored model input in the present invention.
FIG. 4 is a flow chart of a second implementation of the matching pre-trained coloring model base of the present invention.
Fig. 5 is a flow chart of generating an countermeasure network model from an input image in the present invention.
Fig. 6 is a flow chart of a method of virtual object and video stream background fusion in the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The invention relates to an augmented reality image coloring method based on a generated countermeasure network technology for home decoration design, which comprises the following steps of, as shown in fig. 1:
s101, acquiring real-time video streams by using video acquisition equipment;
s102, scanning the digital marker;
s103, identifying the marker through an augmented reality program, and primarily determining the position and the direction of the three-dimensional virtual object;
s104, matching the identifier with the three-dimensional virtual object;
s105, adjusting the position of the three-dimensional virtual model again according to the position of the marker;
s106, determining style requirements;
s107, matching a pre-training coloring model library;
s108, fusing the virtual object with the video stream background by using a contour method, and determining the position to track and position the object;
s109, coloring the virtual object into the video stream.
Compared with a calling mode of storing textures in a video memory, the pre-training coloring method provided by the invention has the advantages that the pre-training method is used for accelerating the coloring speed, and the pre-training coloring model library is matched to quickly call the existing models.
In the invention, the implementation method of the matching pre-training coloring model library comprises the following steps of:
s201, inputting the vertex coordinates of a three-dimensional model to be colored;
s202, placing the three-dimensional model at a three-dimensional scene verification position;
s203, setting a camera angle and a view angle in a scene;
s204, setting the position, color and direction parameters of illumination;
s205, setting color parameters of the three-dimensional model;
s206, inputting the colored model to generate an countermeasure network model;
s207, storing the model passing through the discrimination network into a pre-training model library.
The method for inputting the colored model into the generated countermeasure network model comprises the following steps of:
s301, firstly, inputting a colored three-dimensional model;
s302, storing the color model into a discrimination network model library, wherein the discrimination network stores a color model with set parameters;
s303, generating a network output single three-dimensional model;
s304, the discrimination network calculates the similarity value of the generated model and the model library;
and S305, if the similarity value of the generated model and the model library is larger than or equal to a preset threshold value, judging that the generated colored three-dimensional model is close to a real model. And if the similarity value is smaller than a preset threshold value, judging that the three-dimensional model colored on the network is generated as an unreal model. Repeating the step S303 and the step S304 until the judgment network gives that the generated coloring model is true;
s306, outputting the three-dimensional coloring model passing through the step S405.
In the invention, a second implementation method of matching the pre-training coloring model library comprises the following steps, as shown in fig. 4:
s401, inputting different types of images of different known authors;
s402, generating an antagonism network model from the input image;
s403, storing the model passing through the discrimination network in a pre-training model library.
Generating an countermeasure network model from the input image includes the steps of:
s501, inputting a finished product image model;
s502, storing the color model into a discrimination network model library, wherein the discrimination network stores a color model with set parameters;
s503, generating a network output single model;
s504, the discrimination network calculates the similarity value of the generated model and the model library;
s505, if the similarity value of the generated model and the model library is larger than or equal to a preset threshold value, judging that the generated colored image model is close to a real model. And if the similarity value is smaller than a preset threshold value, judging that the image model colored on the network is generated as an unreal model. And repeating the steps of S503 and S504 until the judgment network gives that the generated coloring model is true.
The pre-training coloring model library provided by the invention is realized by using a deep learning-based generation countermeasure network. The coloring method provided by the invention can track the real-time fusion and scene of the target.
The method for fusing the virtual object and the video stream background provided by the invention comprises the following steps of:
s601, recognizing the background object outline of the video stream by using a recognition program;
s602, extracting the position coordinates of a background object of the video stream;
s603, superposing the virtual object on the video stream background object by taking the position coordinates as reference points;
in addition to the implementation method, the invention can also have other implementation modes, and all the technical schemes which are formed by adopting equivalent substitution or equivalent transformation belong to the protection scope of the invention.

Claims (4)

CN201811634717.6A2018-12-292018-12-29Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technologyActiveCN111383343B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811634717.6ACN111383343B (en)2018-12-292018-12-29Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811634717.6ACN111383343B (en)2018-12-292018-12-29Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology

Publications (2)

Publication NumberPublication Date
CN111383343A CN111383343A (en)2020-07-07
CN111383343Btrue CN111383343B (en)2024-01-16

Family

ID=71220562

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811634717.6AActiveCN111383343B (en)2018-12-292018-12-29Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology

Country Status (1)

CountryLink
CN (1)CN111383343B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113223186B (en)*2021-07-072021-10-15江西科骏实业有限公司Processing method, equipment, product and device for realizing augmented reality
CN113379869B (en)*2021-07-232023-03-24浙江大华技术股份有限公司License plate image generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103489214A (en)*2013-09-102014-01-01北京邮电大学Virtual reality occlusion handling method, based on virtual model pretreatment, in augmented reality system
CN106814457A (en)*2017-01-202017-06-09杭州青杉奇勋科技有限公司Augmented reality glasses and the method that household displaying is carried out using the glasses
CN108597030A (en)*2018-04-232018-09-28新华网股份有限公司Effect of shadow display methods, device and the electronic equipment of augmented reality AR
CN108711138A (en)*2018-06-062018-10-26北京印刷学院A kind of gray scale picture colorization method based on generation confrontation network
CN108805648A (en)*2017-04-192018-11-13苏州宝时得电动工具有限公司Virtual reality system and its control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103489214A (en)*2013-09-102014-01-01北京邮电大学Virtual reality occlusion handling method, based on virtual model pretreatment, in augmented reality system
CN106814457A (en)*2017-01-202017-06-09杭州青杉奇勋科技有限公司Augmented reality glasses and the method that household displaying is carried out using the glasses
CN108805648A (en)*2017-04-192018-11-13苏州宝时得电动工具有限公司Virtual reality system and its control method
CN108597030A (en)*2018-04-232018-09-28新华网股份有限公司Effect of shadow display methods, device and the electronic equipment of augmented reality AR
CN108711138A (en)*2018-06-062018-10-26北京印刷学院A kind of gray scale picture colorization method based on generation confrontation network

Also Published As

Publication numberPublication date
CN111383343A (en)2020-07-07

Similar Documents

PublicationPublication DateTitle
WO2022121645A1 (en)Method for generating sense of reality of virtual object in teaching scene
CN110163942B (en)Image data processing method and device
US20210345016A1 (en)Computer vision based extraction and overlay for instructional augmented reality
US9036898B1 (en)High-quality passive performance capture using anchor frames
CN110926334B (en)Measuring method, measuring device, electronic device and storage medium
JP5299173B2 (en) Image processing apparatus, image processing method, and program
EP3533218B1 (en)Simulating depth of field
CN108876886B (en)Image processing method and device and computer equipment
US11663775B2 (en)Generating physically-based material maps
CN114066715B (en) Image style transfer method, device, electronic device and storage medium
CN118071968B (en)Intelligent interaction deep display method and system based on AR technology
CN111145341A (en)Single light source-based virtual-real fusion illumination consistency drawing method
US11461968B2 (en)Method of inferring microdetail on skin animation
CN111383343B (en)Home decoration design-oriented augmented reality image rendering coloring method based on generation countermeasure network technology
WO2014170757A2 (en)3d rendering for training computer vision recognition
CN108628455A (en)A kind of virtual husky picture method for drafting based on touch-screen gesture identification
CN109712246B (en) A Coloring Method for Augmented Reality Images Based on Generative Adversarial Network Technology
TaoA VR/AR-based display system for arts and crafts museum
US12340476B2 (en)Method of learning a target object by detecting an edge from a digital model of the target object and setting sample points, and method of augmenting a virtual model on a real object implementing the target object using the learning method
CN114185431B (en)Intelligent media interaction method based on MR technology
Chang et al.A Decision Tree based Real-time Hand Gesture Recognition Method using Kinect
KR20100138193A (en) Augmented reality content providing system and device supporting touch screen based user interaction
Zhou et al.3D scan-based animation techniques for Chinese opera facial expression documentation
WangResearch on Interior Design Platform Based on 3D Virtual Vision
CN118317065A (en)Stereoscopic vision optimization method and system for naked eye 3D liquid crystal display screen

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp