CN114791964B - House decoration video processing method and device, electronic equipment and storage medium - Google Patents

House decoration video processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114791964B
CN114791964B CN202210294361.6A CN202210294361A CN114791964B CN 114791964 B CN114791964 B CN 114791964B CN 202210294361 A CN202210294361 A CN 202210294361A CN 114791964 B CN114791964 B CN 114791964B
Authority
CN
China
Prior art keywords
model
decoration
house
soft
information
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
CN202210294361.6A
Other languages
Chinese (zh)
Other versions
CN114791964A (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.)
Beijing Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin Information Technology 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 Beijing Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN202210294361.6A priority Critical patent/CN114791964B/en
Publication of CN114791964A publication Critical patent/CN114791964A/en
Application granted granted Critical
Publication of CN114791964B publication Critical patent/CN114791964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/787Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Abstract

The embodiment of the invention provides a house decoration video processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a user browses the decoration effect of a house on line, the terminal can generate model adjustment information for adjusting the house decoration model according to the position information of the house decoration model in the three-dimensional house space and the position information of the target roaming point in the three-dimensional house space in the process of loading house decoration data, then perform model adjustment on an initial key frame corresponding to the house decoration model to generate a target key frame, and then play the target key frame before the loading of the data is completed, so that poor experience of the user when waiting for loading the data can be reduced by playing the corresponding house decoration video, the user is prevented from exiting browsing due to overlong waiting time, the effective display rate of the decoration data is improved, and the user can have preliminary feeling on the decoration effect by playing the house decoration video corresponding to the target house.

Description

House decoration video processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image processing technology, and in particular, to a method for processing a house decoration video, a device for processing a house decoration video, an electronic device, and a computer readable storage medium.
Background
With the rapid development of the home decoration industry, the house decoration requirements are more and more diversified. As an ordinary consumer, it is expected to intuitively feel different decoration styles, and as a merchant, it is also expected to quickly and intuitively display the field display effect of various furniture in different display modes. In the on-line home decoration process, a user can carry out virtual decoration of a house according to own requirements, then different decoration styles are felt through the display effect after the decoration is finished, compared with the off-line decoration, the on-line decoration can flexibly carry out decoration style change according to the requirements of the user, the decoration styles of the house can be timely and flexibly adjusted in real time according to the requirements of the user, after the off-line decoration is finished, if the user is unsatisfied with the decoration of the house, the user needs to demolish again to finish, the decoration cost is greatly reduced, and the flexibility of the house decoration is improved. When a user wants to browse decoration effects after finishing decoration of a house or browse the decoration effects of an existing house, the terminal needs to load related data of the house and then display the data, and the loaded data often needs a certain time, so that on one hand, the user cannot do other things in the waiting process, bad waiting experience is brought to the user, and on the other hand, under the condition of long loading time, the user can easily and directly withdraw from current data loading, and therefore the effective display rate of the data is easily reduced, and the loss of the user is caused.
Disclosure of Invention
The embodiment of the invention provides a house decoration video processing method, a house decoration video processing device, electronic equipment and a computer readable storage medium, which are used for solving or partially solving the problems that a user is easy to bring poorer waiting experience to the user and the effective display rate of data is easy to be reduced due to long data loading time when the user browses house decoration effects.
The embodiment of the invention discloses a house decoration video processing method, which comprises the following steps:
responding to a browsing request operation of a three-dimensional house space of a target house, acquiring house decoration data corresponding to the three-dimensional house space, wherein the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model types of the house decoration models are soft package models;
acquiring initial key frames corresponding to each home decoration model;
determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model;
performing video frame processing on the initial key frame according to the model adjustment information to generate a target key frame corresponding to the home decoration model;
And generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before loading the house decoration data.
Optionally, the method further comprises:
and if the house decoration data is detected to be loaded, displaying the three-dimensional house space.
Optionally, the model adjustment information includes model translation information, and determining the model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model includes:
and determining the model translation information of the soft package model according to the first position information of the target roaming point and the second position information of the reference point of the home package model or according to the second position information of the reference point of the home package model.
Optionally, the determining the model translation information of the soft-packaged model according to the second position information of the reference point of the home-packaged model includes:
if the home decoration model is a first type soft decoration model which is not fixed, acquiring a model orientation corresponding to second position information of a reference point of the home decoration model and a translation distance corresponding to the first type soft decoration model;
And generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
Optionally, the determining the model translation information of the soft-packaged model according to the first position information of the target roaming point and the second position information of the reference point of the home-packaged model includes:
if the home decoration model is a non-fixed second type soft package model, determining a translation route corresponding to the second type soft package model by adopting first position information of the target roaming point and second position information of a reference point of the model of the second type soft package model;
obtaining a translation distance corresponding to the second type of soft package model;
and generating model translation information corresponding to the second type of soft-loading model by adopting the translation route and the translation distance.
Optionally, the video frame processing is performed on the initial keyframe according to the model adjustment information, and generating a target keyframe corresponding to the home decoration model includes:
obtaining model scaling information for the soft-packaged model;
and carrying out translation and/or scaling treatment on the soft-loading model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-loading model.
Optionally, the first type of soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models; the second type of soft-package model is a soft-package model positioned in front of the observation view angle corresponding to the target roaming point in the three-dimensional house space.
The embodiment of the invention also discloses a device for processing house decoration video, which comprises:
the system comprises a decoration data acquisition module, a display module and a display module, wherein the decoration data acquisition module is used for responding to a browsing request operation of a three-dimensional house space of a target house, acquiring house decoration data corresponding to the three-dimensional house space, wherein the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model type of the house decoration models is a soft package model;
the information acquisition module is used for acquiring initial key frames corresponding to the home decoration models;
the adjustment information determining module is used for determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model;
The key frame processing module is used for carrying out video frame processing on the initial key frame according to the model adjustment information and generating a target key frame corresponding to the home decoration model;
and the decoration video playing module is used for generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before loading house decoration data is completed.
Optionally, the method further comprises:
and the house space display module is used for displaying the three-dimensional house space if the house decoration data are detected to be loaded.
Optionally, the model adjustment information includes model translation information, and the adjustment information determining module includes:
and the translation information generation sub-module is used for determining the model translation information of the soft package model according to the first position information of the target roaming point and the second position information of the reference point of the home package model or according to the second position information of the reference point of the home package model.
Optionally, the translation information generating sub-module is specifically configured to:
if the home decoration model is a first type soft decoration model which is not fixed, acquiring a model orientation corresponding to second position information of a reference point of the home decoration model and a translation distance corresponding to the first type soft decoration model;
And generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
Optionally, the translation information generating sub-module is specifically configured to:
if the home decoration model is a non-fixed second type soft package model, determining a translation route corresponding to the second type soft package model by adopting first position information of the target roaming point and second position information of a reference point of the model of the second type soft package model;
obtaining a translation distance corresponding to the second type of soft package model;
and generating model translation information corresponding to the second type of soft-loading model by adopting the translation route and the translation distance.
Optionally, the key frame processing module includes:
the scaling information acquisition sub-module is used for acquiring model scaling information aiming at the soft package model;
and the key frame generation sub-module is used for carrying out translation and/or scaling treatment on the soft-package model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-package model.
Optionally, the first type of soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models; the second type of soft-package model is a soft-package model positioned in front of the observation view angle corresponding to the target roaming point in the three-dimensional house space.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method according to the embodiments of the present invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when a user browses the decoration effect of a house on line, the terminal can generate the model adjustment information for adjusting the house decoration model according to the position information of the house decoration model in the three-dimensional house space and the position information of the target roaming point in the three-dimensional house space in the loaded three-dimensional house space in the process of loading house decoration data, then perform model adjustment on the initial keyframe corresponding to the house decoration model to generate the target keyframe, and then play the target keyframe before the loading of the data is completed.
Drawings
FIG. 1 is a flow chart of steps of a method for processing house decoration video according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a translation of a model provided in an embodiment of the present invention;
FIG. 3 is a schematic illustration of a translation of a model provided in an embodiment of the present invention;
fig. 4 is a block diagram of a house decoration video processing device according to an embodiment of the present invention;
FIG. 5 is a block diagram of an electronic device provided in an embodiment of the invention;
fig. 6 is a schematic diagram of a computer-readable storage medium provided in an embodiment of the invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
As an example, when a user wants to browse decoration effects or browse decoration effects of an existing house after finishing decoration of the house, the terminal needs to load related data of the house and then display the data, and the loaded data often needs a certain time, so that on one hand, the user cannot do other things in the waiting process, and bad waiting experience is brought to the user, and on the other hand, under the condition of long loading time, the user easily and directly exits from current data loading, thereby easily reducing the effective display rate of the data and leading to loss of the user.
In this regard, one of the key points of the embodiments of the present invention is that when a user browses the decoration effect of a house online, the terminal may generate model adjustment information for adjusting the house decoration model according to the position information of the house decoration model in the loaded three-dimensional house space and the position information of the target roaming point in the three-dimensional house space during loading house decoration data, then perform model adjustment on an initial keyframe corresponding to the house decoration model to generate a target keyframe, and then play the target keyframe before loading the data is completed.
Specifically, referring to fig. 1, a step flowchart of a method for processing a house decoration video according to an embodiment of the present invention may specifically include the following steps:
step 101, responding to a browse request operation of a three-dimensional house space of a target house, and acquiring house decoration data corresponding to the three-dimensional house space, wherein the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model type of the house decoration models is a soft package model;
In the embodiment of the invention, the corresponding application program can be operated in the terminal, and the application program can provide the on-line decoration function of the house, browse the existing house decoration effect and the like. For example, in one case, a user may input corresponding house type data in an application program, then the terminal may generate a corresponding three-dimensional house space, and then different furniture model controls may be provided in a graphical user interface, so that the user adds a corresponding virtual furniture model in the three-dimensional house space through the furniture model controls, and thus the user may perform online decoration on the house according to own requirements; in another case, if the user does not know what style should be decorated, the user can browse the existing three-dimensional house space with different decoration styles provided by the application program to perform space perception on the house with different decoration styles.
In the embodiment of the present invention, the user browses the existing three-dimensional house space with the decoration style as an example, and it is understood that the user may browse the three-dimensional house space after performing virtual decoration on line according to the own needs, and the present invention is not limited to this.
The method comprises the steps that no matter a user decorates a house of a relevant house type online or browses an existing three-dimensional house space, a terminal is required to load house decoration data, then the corresponding three-dimensional house space is rendered, and then the three-dimensional house space is displayed, so that the user can roam in the three-dimensional house space and feel the house of the corresponding decoration style. Therefore, there is a need to reduce the adverse experience of the user during waiting.
In a specific implementation, the terminal may respond to a browsing request operation for a three-dimensional room space of a target room, acquire room decoration data corresponding to the three-dimensional room space, and load the room decoration data. The house decoration data may include first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of home decoration models located in the three-dimensional house space. Specifically, for the target house, the method can be used for decorating the house provided by the application program according to the corresponding decoration style, and also can be used for decorating the house designed by the user according to the self demand in the application program, and correspondingly, the three-dimensional house space can be used for constructing the three-dimensional virtual space (such as panoramic space, virtual reality space, augmented reality space and the like) of the terminal according to the house decoration data corresponding to the target house, so that the user can browse the three-dimensional house space corresponding to the house designed by the user or the house with the preset style through browsing request operation, and the user can perceive different decoration styles.
For the target roaming point, the target roaming point may be a default location point when entering the three-dimensional room space, for example, when the terminal displays the three-dimensional room space, one location point may be selected from the three-dimensional room space as the default roaming point, and content corresponding to the roaming point is presented, for example, different functional spaces such as a living room, a dining room, a bedroom, a kitchen, a bathroom and the like may be included in the three-dimensional room space, each functional space may correspond to at least one location point, and then the location point of the living room may be used as the target roaming point, so that a roaming atmosphere from outside to inside may be created, and a user may gradually go deep into each different functional space of the room from the entrance. For the home decoration model, the home decoration model can be a home decoration model related to personalized repair of a target house by a user, and also can be a home decoration model designed by a designer according to corresponding decoration styles, wherein the model types can comprise a hard decoration model, a soft decoration model and the like, and different decoration styles can correspond to different home decoration models; the reference point of the home decoration model can be a model center point of the home decoration model, any coordinate point positioned on the home decoration model can be selected as the reference point, and it can be understood that the position information of the target roaming point and the reference point can be coordinate information obtained by establishing a space coordinate system for a three-dimensional house space and mapping furniture and point positions in the space. Optionally, in the embodiment of the present invention, the reference point is taken as a model center point of the home decoration model as an example for illustration.
102, acquiring initial key frames corresponding to each home decoration model;
for a three-dimensional house space with a corresponding decoration style, the three-dimensional house space can correspond to a decoration video, and the decoration video can be a video designed by a designer or a developer according to the family decoration sequence information. The finishing video may include a number of initial key frames corresponding to the frames, such as a carpet appearing in the first frame, then swinging the carpet to a proper position over 2 frames, then a tea table appearing in the 3 rd frame and swinging to a proper position over the corresponding adjacent key frames, finally a sofa appearing in the 5 th frame, and so on. In order to improve the decoration effect, the home decoration model related to the key frame can be processed, for example, through translation, zooming and the like, so that the decoration effect of the home decoration model can be further optimized in a dynamic display mode in the play process of the decoration video, and the dynamic display effect of house decoration is constructed.
Alternatively, for the house decoration model, it may include a hard-packed model, which may be a model fixed and not movable in the house, such as a wall surface, a ceiling, a lamp decoration, etc., and a soft-packed model, which may include a model movable in the house, etc. For the soft-packaged models, the soft-packaged models can comprise a soft-packaged model with fixed positions, a soft-packaged model with unfixed positions and the like, the soft-packaged model with unfixed positions can further comprise a first soft-packaged model and a second soft-packaged model, wherein the first soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models, for example, the single model can comprise a tea table, a floor, wallpaper and the like, and the associated model can comprise a combined sofa, a television, a sound and the like; the second type of soft-packaged model is a soft-packaged model located in front of an observation view angle corresponding to a target roaming point in a three-dimensional house space, for example, a furniture model located right in front of the roaming point, and the like.
Step 103, determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model;
in the embodiment of the invention, for the home decoration model with the model type being a soft decoration model, after the first position information of the target roaming point and the second position information of the reference point of the home decoration model are selected from the three-dimensional house space, the model adjustment information of the home decoration model can be determined according to the first position information and the second position information, so that the model adjustment is carried out on the home decoration model related to the corresponding initial key frame according to the model adjustment information, the decoration video is optimized, and the dynamic decoration display effect of the three-dimensional house space is constructed.
In a specific implementation, the model adjustment information may include model translation information, and for a hard-packaged model in the three-dimensional room space, since the position is relatively fixed, the model adjustment may not be performed, and the model adjustment information may be information for a soft-packaged model in the three-dimensional room space. Specifically, the terminal may determine the model translation information of the soft-loading model according to the first position information of the target roaming point and the second position information of the reference point of the home-loading model, or according to the second position information of the reference point of the home-loading model.
If the home decoration model is a first type soft decoration model which is not fixed, the model orientation corresponding to the second position information of the reference point of the home decoration model and the translation distance corresponding to the first type soft decoration model are obtained; and generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
If the home decoration model is a non-fixed second type soft package model, determining a translation route corresponding to the second type soft package model by adopting the first position information of the target roaming point and the second position information of the reference point of the second type soft package model, acquiring a translation distance corresponding to the second type soft package model, and generating model translation information corresponding to the second type soft package model by adopting the translation route and the translation distance.
In a specific implementation, the reference point is taken as a model center point of the home decoration model, and since the three-dimensional house space can be a three-dimensional virtual space constructed based on a space coordinate system, for each soft-package model, the coordinates of the center point in the space coordinate system can be a center point, that is, the soft-package model is located at the position of the three-dimensional house space, and for each soft-package model, the corresponding model orientation includes a front orientation of the soft-package model, for example, a front orientation of a sofa, a front orientation of a television, and the like. Specifically, for a first type of soft-packaging model with an unfixed position in a three-dimensional house space, a model center point of the soft-packaging model can be determined, a preset translation distance (for example, 50 cm) can be obtained, then the model center point of the soft-packaging model is taken as a displacement end point, a displacement start point can be obtained along a distance corresponding to the reverse or forward translation of the model, so that model translation information of the soft-packaging model is obtained, for example, for a first type of soft-packaging model such as a tea table in the three-dimensional house space, the position coordinates of the model center point are (x, y, z), the distance corresponding to the unit coordinates is 1 cm, the front direction of the tea table is positive to the right (for example, parallel to an x axis), the translation distance is 50 cm, then the (x-50, y, z) can be taken as a displacement start point of the tea table, so that model translation information of the tea table is obtained is translated from the start point coordinates (x-50, y, z) by a preset distance to the end point coordinates (x, y, z), and then the terminal can determine model translation information of the soft-packaging model according to the model center point and the model direction, so that frame processing can be performed, and specifically, the position coordinates of the tea table is shown in the opposite direction (x, the first translation information of the model is shown in the graph is shown by the opposite direction (2) according to the position) of the graph, and the opposite translation information is shown in the opposite direction (2) to the graph, and the translation state is shown in the opposite direction. In addition, for house ornamentation models such as sofas, televisions and the like, the model can translate by referring to a translation mode of a tea table after the corresponding zooming process is completed.
For a second type of soft package model with an unfixed position, the second type of soft package model can be a soft package model in front of an observation view angle corresponding to a roaming position point, if the model adopts translation processing of the first type of soft package model, the effect is poor, for this purpose, a translation route between the model center point and the roaming position point can be constructed by acquiring the model center point of the second type of soft package model, and then the model center point can be taken as a starting point, the roaming position point is taken as an end point, and a preset distance is translated, so that model translation information of the second type of soft package model can be obtained. For example, for a chair in three-dimensional house space, the position coordinates of the center point of the model are (x, y, z), the distance corresponding to the unit coordinates is 1 cm, the translation distance is 50 cm, and the coordinates of the roaming position point are (0, 0), the (x, y, z) can be used as the displacement starting point of the chair, so that the model translation information of the chair is obtained as the end point coordinates (0, 0) translated by a preset distance from the starting point coordinates (x, y, z), and then the terminal can determine the model translation information of the soft-package model according to the center point of the model and the roaming position point, so as to perform frame processing of the key frame. Referring to fig. 3, a schematic diagram of model translation provided in an embodiment of the present invention is shown, where a process of translating a home decoration model according to model translation information is shown, where (1) shows a position where a chair appears for the first time, and corresponding position coordinates may be (x, y, z), and according to the above process, after a roaming position point (0, 0) is obtained, the chair may be controlled to translate from (x, y, z) to (0, 0), so that the state shown in (2) is obtained by translating the chair.
104, performing video frame processing on the initial key frame according to the model adjustment information to generate a target key frame corresponding to the home decoration model;
after the model adjustment information for the home decoration model is obtained, the model scaling information for the home decoration model can be further obtained, then the model translation information and/or the model scaling information are adopted to translate and/or scale the soft decoration model in the initial key frame, and a target key frame corresponding to the soft decoration model is generated, so that the model in the decoration video is subjected to translation, scaling and other treatments, the decoration effect of the home decoration model can be further optimized in a dynamic display mode in the playing process of the decoration video, and the dynamic display effect of house decoration is constructed. The model scaling information may be a scaling factor set for the soft-packaged model, such as scaling the model size from 0% to 100%, from 30% to 100%, etc.
Optionally, for the initial key frame, the position of the home decoration model displayed by the initial key frame is fixed, the size of the home decoration model is unchanged, the home decoration model related in the initial key frame is translated and/or zoomed through model adjustment information, and the translation effect and the zoom effect are added into the home decoration model, so that the decoration effect of the home decoration model can be further optimized in a dynamic display mode, and a dynamic display effect of house decoration is constructed. For example, a target key frame corresponding to a soft-packaged model may be generated by constructing an empty sequence, and then performing a translation and/or scaling process on the soft-packaged model in the initial key frame according to the model translation information and the model scaling information.
And 105, generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before the house decoration data are loaded.
After the translation and/or scaling treatment is completed on the soft-loading model related to each initial key frame, all target key frames can be combined to obtain a house decoration video corresponding to a target house, and then the terminal can play house decoration video in a graphical user interface in the process of loading house decoration data, so that the target key frames can be played before the completion of loading the data, on one hand, bad experience of a user when waiting for loading the data can be reduced by playing the corresponding house decoration video, the user is prevented from exiting browsing due to overlong waiting time, the effective display rate of decoration data is improved, and on the other hand, the user can have preliminary feeling on the decoration effect by playing the house decoration video corresponding to the target house.
In addition, if the terminal detects that the house decoration data is loaded, the playing of the house decoration video can be canceled, and then the three-dimensional house space is displayed in the graphical user interface, so that a user can roam in the three-dimensional house space and browse the decoration effect of the target house.
It should be noted that the embodiments of the present invention include, but are not limited to, the foregoing examples, and it is to be understood that, under the guidance of the concept of the embodiments of the present invention, those skilled in the art may further set the embodiments according to actual requirements, which is not limited to the foregoing examples.
In the embodiment of the invention, when a user browses the decoration effect of a house on line, the terminal can generate the model adjustment information for adjusting the house decoration model according to the position information of the house decoration model in the three-dimensional house space and the position information of the target roaming point in the three-dimensional house space in the process of loading house decoration data, then perform model adjustment on the initial keyframe corresponding to the house decoration model to generate the target keyframe, and then play the target keyframe before the loading of the data is completed, so that on one hand, the bad experience of the user when waiting for loading the data can be reduced by playing the corresponding house decoration video, the user is prevented from exiting the browsing due to overlong waiting time, the effective display rate of the decoration data is improved, and on the other hand, the user can have preliminary feeling on the decoration effect by playing the house decoration video corresponding to the target house.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a block diagram of a device for processing house decoration video according to an embodiment of the present invention may specifically include the following modules:
a decoration data obtaining module 401, configured to obtain, in response to a browsing request operation for a three-dimensional room space of a target room, room decoration data corresponding to the three-dimensional room space, where the room decoration data includes first location information of a target roaming point corresponding to the three-dimensional room space and second location information of reference points of a plurality of home decoration models located in the three-dimensional room space, and a model class of the home decoration models is a soft package model;
An information obtaining module 402, configured to obtain initial key frames corresponding to each home decoration model;
an adjustment information determining module 403, configured to determine model adjustment information of the home decoration model according to the first location information of the target roaming point and the second location information of the reference point of the home decoration model;
the key frame processing module 404 is configured to perform video frame processing on the initial key frame according to the model adjustment information, and generate a target key frame corresponding to the home decoration model;
and the decoration video playing module 405 is configured to generate a house decoration video corresponding to the target house by using the target key frames corresponding to the home decoration models, and play the house decoration video before loading the house decoration data is completed.
In an alternative embodiment, further comprising:
and the house space display module is used for displaying the three-dimensional house space if the house decoration data are detected to be loaded.
In an alternative embodiment, the model adjustment information includes model translation information, and the adjustment information determining module 403 includes:
and the translation information generation sub-module is used for determining the model translation information of the soft package model according to the first position information of the target roaming point and the second position information of the reference point of the home package model or according to the second position information of the reference point of the home package model.
In an alternative embodiment, the translation information generating sub-module is specifically configured to:
if the home decoration model is a first type soft decoration model which is not fixed, acquiring a model orientation corresponding to second position information of a reference point of the home decoration model and a translation distance corresponding to the first type soft decoration model;
and generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
In an alternative embodiment, the translation information generating sub-module is specifically configured to:
if the home decoration model is a non-fixed second type soft package model, determining a translation route corresponding to the second type soft package model by adopting first position information of the target roaming point and second position information of a reference point of the model of the second type soft package model;
obtaining a translation distance corresponding to the second type of soft package model;
and generating model translation information corresponding to the second type of soft-loading model by adopting the translation route and the translation distance.
In an alternative embodiment, the key frame processing module 404 includes:
the scaling information acquisition sub-module is used for acquiring model scaling information aiming at the soft package model;
And the key frame generation sub-module is used for carrying out translation and/or scaling treatment on the soft-package model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-package model.
In an alternative embodiment, the first type of soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models; the second type of soft-package model is a soft-package model positioned in front of the observation view angle corresponding to the target roaming point in the three-dimensional house space.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In addition, the embodiment of the invention also provides an electronic device, as shown in fig. 5, which comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete communication with each other through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to execute the program stored in the memory 503, and implement the following steps:
Responding to a browsing request operation of a three-dimensional house space of a target house, acquiring house decoration data corresponding to the three-dimensional house space, wherein the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model types of the house decoration models are soft package models;
acquiring initial key frames corresponding to each home decoration model;
determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model;
performing video frame processing on the initial key frame according to the model adjustment information to generate a target key frame corresponding to the home decoration model;
and generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before loading the house decoration data.
In an alternative embodiment, further comprising:
and if the house decoration data is detected to be loaded, displaying the three-dimensional house space.
In an alternative embodiment, the model adjustment information includes model translation information, and determining the model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model includes:
and determining the model translation information of the soft package model according to the first position information of the target roaming point and the second position information of the reference point of the home package model or according to the second position information of the reference point of the home package model.
In an alternative embodiment, the determining the model translation information of the soft-package model according to the second position information of the reference point of the home-package model includes:
if the home decoration model is a first type soft decoration model which is not fixed, acquiring a model orientation corresponding to second position information of a reference point of the home decoration model and a translation distance corresponding to the first type soft decoration model;
and generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
In an alternative embodiment, the determining the model translation information of the soft-packaged model according to the first location information of the target roaming point and the second location information of the reference point of the home-packaged model includes:
If the home decoration model is a non-fixed second type soft package model, determining a translation route corresponding to the second type soft package model by adopting first position information of the target roaming point and second position information of a reference point of the model of the second type soft package model;
obtaining a translation distance corresponding to the second type of soft package model;
and generating model translation information corresponding to the second type of soft-loading model by adopting the translation route and the translation distance.
In an optional embodiment, the video frame processing is performed on the initial keyframe according to the model adjustment information, and generating a target keyframe corresponding to the home decoration model includes:
obtaining model scaling information for the soft-packaged model;
and carrying out translation and/or scaling treatment on the soft-loading model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-loading model.
In an alternative embodiment, the first type of soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models; the second type of soft-package model is a soft-package model positioned in front of the observation view angle corresponding to the target roaming point in the three-dimensional house space.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, as shown in fig. 6, there is also provided a computer-readable storage medium 601 having instructions stored therein, which when run on a computer, cause the computer to perform the house-finishing video processing method described in the above embodiment.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to perform the house decoration video processing method described in the above embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (9)

1. A method for processing house decoration video, comprising:
responding to a browsing request operation of a three-dimensional house space of a target house, acquiring house decoration data corresponding to the three-dimensional house space, wherein each three-dimensional house space corresponds to a decoration video, and the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model type of the house decoration models is a soft package model;
acquiring initial key frames containing each home decoration model from the decoration video;
determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model, wherein the model adjustment information comprises model translation information and model scaling information; performing translation and/or scaling treatment on the soft-loading model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-loading model;
And generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before loading the house decoration data.
2. The method as recited in claim 1, further comprising:
and if the house decoration data is detected to be loaded, displaying the three-dimensional house space.
3. The method of claim 1, wherein the determining the model adjustment information of the home decoration model based on the first location information of the target roaming point and the second location information of the reference point of the home decoration model comprises:
and determining the model translation information of the soft package model according to the first position information of the target roaming point and the second position information of the reference point of the home package model or according to the second position information of the reference point of the home package model.
4. A method according to claim 3, wherein said determining model translation information of the soft-packaged model from the second position information of the reference point of the house-hold model comprises:
if the home decoration model is a first type soft decoration model which is not fixed, acquiring a model orientation corresponding to second position information of a reference point of the home decoration model and a translation distance corresponding to the first type soft decoration model;
And generating model translation information corresponding to the first type of soft-loading model by adopting the translation distance and the model orientation.
5. A method according to claim 3, wherein said determining the model translation information of the soft-packaged model based on the first location information of the target roaming point and the second location information of the reference point of the home-packaged model comprises:
if the home decoration model is a second type soft package model which is not fixed, determining a translation route corresponding to the second type soft package model by adopting the first position information of the target roaming point and the second position information of the reference point of the second type soft package model;
obtaining a translation distance corresponding to the second type of soft package model;
and generating model translation information corresponding to the second type of soft-loading model by adopting the translation route and the translation distance.
6. The method according to claim 4 or 5, wherein the first type of soft-packaged model is a single model comprising only one soft-packaged model and a combined model comprising at least two soft-packaged models; the second type of soft-package model is a soft-package model positioned in front of the observation view angle corresponding to the target roaming point in the three-dimensional house space.
7. A house decoration video processing apparatus, comprising:
the system comprises a decoration data acquisition module, a display module and a display module, wherein the decoration data acquisition module is used for responding to browsing request operation of a three-dimensional house space of a target house, acquiring house decoration data corresponding to the three-dimensional house space, wherein each three-dimensional house space corresponds to a decoration video, the house decoration data comprises first position information of a target roaming point corresponding to the three-dimensional house space and second position information of reference points of a plurality of house decoration models in the three-dimensional house space, and the model type of the house decoration models is a soft package model;
the information acquisition module is used for acquiring initial key frames containing each home decoration model from the decoration video;
the adjustment information determining module is used for determining model adjustment information of the home decoration model according to the first position information of the target roaming point and the second position information of the reference point of the home decoration model, and the model adjustment information comprises model translation information and model scaling information;
the key frame processing module is used for carrying out translation and/or scaling processing on the soft-package model in the initial key frame by adopting the model translation information and/or the model scaling information to generate a target key frame corresponding to the soft-package model;
And the decoration video playing module is used for generating house decoration videos corresponding to the target houses by adopting target key frames corresponding to the house decoration models, and playing the house decoration videos before loading house decoration data is completed.
8. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to any one of claims 1-6 when executing a program stored on a memory.
9. A computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any of claims 1-6.
CN202210294361.6A 2022-03-24 2022-03-24 House decoration video processing method and device, electronic equipment and storage medium Active CN114791964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210294361.6A CN114791964B (en) 2022-03-24 2022-03-24 House decoration video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210294361.6A CN114791964B (en) 2022-03-24 2022-03-24 House decoration video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114791964A CN114791964A (en) 2022-07-26
CN114791964B true CN114791964B (en) 2023-05-09

Family

ID=82460261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210294361.6A Active CN114791964B (en) 2022-03-24 2022-03-24 House decoration video processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114791964B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035321A (en) * 2019-04-11 2019-07-19 北京大生在线科技有限公司 A kind of trailing and system of online real-time video
CN111125807A (en) * 2019-11-06 2020-05-08 贝壳技术有限公司 Decoration three-dimensional model rendering display method and system
CN111626811A (en) * 2020-04-16 2020-09-04 北京城市网邻信息技术有限公司 Method and device for displaying house source information
CN111882649A (en) * 2020-06-23 2020-11-03 北京城市网邻信息技术有限公司 Furniture display method and device
CN112596836A (en) * 2020-12-23 2021-04-02 北京城市网邻信息技术有限公司 House source data processing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8628423B2 (en) * 2011-06-28 2014-01-14 United Video Properties, Inc. Systems and methods for generating video hints for segments within an interactive video gaming environment
CN107993289B (en) * 2017-12-06 2021-04-13 重庆欧派信息科技有限责任公司 Decoration system based on AR augmented reality technology
US10939084B2 (en) * 2017-12-22 2021-03-02 Magic Leap, Inc. Methods and system for generating and displaying 3D videos in a virtual, augmented, or mixed reality environment
CN108769727B (en) * 2018-06-15 2021-12-21 北京奇艺世纪科技有限公司 Live video preloading method and device
CN108955715A (en) * 2018-07-26 2018-12-07 广州建通测绘地理信息技术股份有限公司 navigation video generation method, video navigation method and system
CN109829977A (en) * 2018-12-30 2019-05-31 贝壳技术有限公司 Method, apparatus, electronic equipment and the medium in room are seen in virtual three-dimensional space
CN111695057A (en) * 2019-03-12 2020-09-22 青岛海尔多媒体有限公司 Method and device for virtual home decoration and computer readable storage medium
CN111028333B (en) * 2019-11-25 2020-11-27 贝壳找房(北京)科技有限公司 Method and device for generating article placement effect image
CN111951374B (en) * 2020-07-10 2023-01-24 北京城市网邻信息技术有限公司 House decoration data processing method and device, electronic equipment and storage medium
CN112016903A (en) * 2020-09-03 2020-12-01 长江勘测规划设计研究有限责任公司 Three-dimensional assembly operation instruction data management platform and work flow thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035321A (en) * 2019-04-11 2019-07-19 北京大生在线科技有限公司 A kind of trailing and system of online real-time video
CN111125807A (en) * 2019-11-06 2020-05-08 贝壳技术有限公司 Decoration three-dimensional model rendering display method and system
CN111626811A (en) * 2020-04-16 2020-09-04 北京城市网邻信息技术有限公司 Method and device for displaying house source information
CN111882649A (en) * 2020-06-23 2020-11-03 北京城市网邻信息技术有限公司 Furniture display method and device
CN112596836A (en) * 2020-12-23 2021-04-02 北京城市网邻信息技术有限公司 House source data processing method and device

Also Published As

Publication number Publication date
CN114791964A (en) 2022-07-26

Similar Documents

Publication Publication Date Title
EP3039642B1 (en) Image processing device and method
CN105518740B (en) Image processing apparatus and method
CN108986233B (en) Method and system for rapidly drawing indoor preview
CN111414225B (en) Three-dimensional model remote display method, first terminal, electronic device and storage medium
JP7121811B2 (en) Method, apparatus, and storage medium for displaying three-dimensional spatial views
US11080935B2 (en) Systems and methods for scene-independent augmented reality interfaces
US20160163107A1 (en) Augmented Reality Method and System, and User Mobile Device Applicable Thereto
CN111369664A (en) Method, device, equipment and storage medium for displaying house type scene
CN111369424A (en) Method, device, equipment and storage medium for generating three-dimensional space of target house
CN109191592B (en) Method and device for changing decoration in virtual three-dimensional space
US10404778B2 (en) Session hand-off for mobile applications
CN114511668A (en) Method, device and equipment for acquiring three-dimensional decoration image and storage medium
CN112596694A (en) Method and device for processing house source information
CN113344677A (en) Method and device for controlling live interface, storage medium and electronic equipment
KR102629330B1 (en) Display apparatus and control method thereof
CN109408851B (en) Furniture display method and device, storage medium and electronic equipment
CN114791964B (en) House decoration video processing method and device, electronic equipment and storage medium
WO2024055462A1 (en) Vr scene processing method and apparatus, electronic device and storage medium
WO2020114297A1 (en) Vr video playing control method and related apparatus
CN116980714A (en) Background image generation method and device, electronic equipment and storage medium
CN115373570B (en) Image processing method, device, electronic equipment and storage medium
CN113961066B (en) Visual angle switching method and device, electronic equipment and readable medium
JP6915030B2 (en) Story video presentation program, method and system
CN113962758A (en) Processing method and device for live broadcast of house source, electronic equipment and readable medium
CN114462117A (en) House decoration processing method and device, electronic equipment and storage medium

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