CN110097539A - A kind of method and device intercepting picture in virtual three-dimensional model - Google Patents
A kind of method and device intercepting picture in virtual three-dimensional model Download PDFInfo
- Publication number
- CN110097539A CN110097539A CN201910318892.2A CN201910318892A CN110097539A CN 110097539 A CN110097539 A CN 110097539A CN 201910318892 A CN201910318892 A CN 201910318892A CN 110097539 A CN110097539 A CN 110097539A
- Authority
- CN
- China
- Prior art keywords
- viewing angle
- target
- objective function
- picture
- score value
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Abstract
Embodiment of the invention discloses a kind of in virtual three-dimensional model intercepts the method and device of picture, multiple viewing angles are respectively provided between each shooting point objective function, combination to either objective shooting point and target viewing angle obtains evaluating between the evaluation result of viewing effect objective function by the influence factor by viewing effect between influence objective function in the visible area between combination viewing objective function.Best evaluation result is chosen from each shooting point and the corresponding evaluation result of combination of viewing angle, picture is intercepted in virtual three-dimensional model with the corresponding best shooting point of best evaluation result and best viewing angle, obtains the optimal viewing angle picture between viewing objective function.This method accurately calculates the picture collection for guaranteeing to carry out to house with optimal viewing angle by reliable, does not need artificially to participate in, realizes the automation collection of optimal viewing angle picture.
Description
Technical field
The present invention relates to technical field of image processing, more particularly, to a kind of side for intercepting picture in virtual three-dimensional model
Method and device.
Background technique
It can show the structure and details in house more conveniently by the virtual three-dimensional model in house, however there are still need
Show the scene of the 2D picture (two-dimension picture) in house.In general, even having had the virtual three-dimensional model in house, still
It needs photographer to remove the 2D picture in collection in worksite house, or manually adjusts the 2D figure in the virtual three-dimensional model interception house in house
Piece.It can be seen that the existing this method for obtaining house 2D picture is cumbersome, take time and effort.And the 2D picture in artificial acquisition house
When not can guarantee be the picture collection carried out with optimal viewing angle to house.
In actual application, the method for the artificial acquisition house 2D picture of inventor's discovery is cumbersome, and can not protect
Demonstrate,prove the picture collection carried out with optimal viewing angle to house.
Summary of the invention
The embodiment of the present invention provides a kind of method and device that picture is intercepted in virtual three-dimensional model, existing to solve
The method that house 2D picture is manually acquired in technology is cumbersome, and not can guarantee and adopted with the picture that optimal viewing angle carries out house
The problem of collection.
Against the above technical problems, the embodiment provides a kind of in virtual three-dimensional model intercepts the side of picture
Method, comprising:
Between the objective function of picture to be intercepted, at least one is obtained from the virtual three-dimensional model between the objective function
Point is shot, point is shot to the either objective in the shooting point, obtains watching from target shooting point for setting
At least one viewing angle between the objective function;
To the either objective viewing angle in the viewing angle, point is shot according in the target, with the target
The influence factor of viewing effect is commented between the influence objective function in the visible area that viewing angle is watched between the objective function
Valence obtains corresponding to by target shooting point and the target viewing angle shape between the viewing effect the objective function
At combined evaluation result;
Each corresponding evaluation result of combination formed by the shooting point and the viewing angle is obtained, from acquisition
The corresponding best shooting point of best evaluation result and best viewing angle are obtained in evaluation result, it will be in the best shooting point
Position is using the picture that the best viewing angle intercepts in the virtual three-dimensional model as the best view between the objective function
Angle picture exports the optimal viewing angle picture.
The embodiment provides a kind of in virtual three-dimensional model intercepts the device of picture, comprising:
Module is obtained, for the virtual three-dimensional model the objective function between picture to be intercepted, between the objective function
It is middle to obtain at least one shooting point, point is shot to the either objective in the shooting point, obtain setting from the mesh
Mark shooting point watches at least one viewing angle between the objective function;
Evaluation module, for the either objective viewing angle in the viewing angle, according in the target shooting point
, viewing effect between the objective function is influenced in the visible area watched between the objective function with the target viewing angle
Influence element assessment between the viewing effect the objective function, obtain corresponding to point and the mesh shot by the target
Mark the combined evaluation result that viewing angle is formed;
Interception module, for obtaining each corresponding evaluation of combination formed by the shooting point and the viewing angle
It, will be as a result, obtain the corresponding best shooting point of best evaluation result and best viewing angle from the evaluation result of acquisition
The best shooting point is using the picture that the best viewing angle intercepts in the virtual three-dimensional model as the target
Optimal viewing angle picture between function exports the optimal viewing angle picture.
The embodiment provides a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the processor are realized above-described in virtual three-dimensional when executing described program
The step of method of picture is intercepted in model.
The embodiment provides a kind of non-transient computer readable storage mediums, are stored thereon with computer journey
Sequence, the computer program realize the step of the above-described method that picture is intercepted in virtual three-dimensional model when being executed by processor
Suddenly.
The embodiment provides a kind of in virtual three-dimensional model intercepts the method and device of picture, to target function
Each shooting point between energy is respectively provided with multiple viewing angles, the combination to either objective shooting point and target viewing angle,
It is commented by the influence factor by viewing effect between influence objective function in the visible area between combination viewing objective function
Valence is between the evaluation result of viewing effect objective function.From the corresponding evaluation result of combination of each shooting point and viewing angle
It is middle to choose best evaluation result, with the corresponding best shooting point of best evaluation result and best viewing angle in virtual three-dimensional mould
Picture is intercepted in type, obtains the optimal viewing angle picture between viewing objective function.This method by it is reliable accurately calculate guarantee with
The picture collection that optimal viewing angle carries out house does not need artificially to participate in, realizes the automation collection of optimal viewing angle picture.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is that a kind of process of method that picture is intercepted in virtual three-dimensional model provided by one embodiment of the present invention is shown
It is intended to;
Fig. 2 is the shooting point schematic diagram in the parlor that another embodiment of the present invention provides;
Fig. 3 is the shooting point using A point as target that another embodiment of the present invention provides, and is seen using ∠ EAD as target
See the schematic diagram between angle viewing objective function;
Fig. 4 is the shooting point using B point as target that another embodiment of the present invention provides, and is seen using ∠ KBL as target
See the schematic diagram between angle viewing objective function;
Fig. 5 be another embodiment of the present invention provide determine the schematic diagram of direction of visual lines in shooting point A;
Fig. 6 is the schematic diagram that viewing angle is determined to direction of visual lines AG that another embodiment of the present invention provides;
Fig. 7 is a kind of structure for device that picture is intercepted in virtual three-dimensional model that another embodiment of the present invention provides
Block diagram;
Fig. 8 is the structural block diagram for the electronic equipment that another embodiment of the present invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram of method that picture is intercepted in virtual three-dimensional model provided in this embodiment, ginseng
See Fig. 1, this method comprises:
101: between the objective function of picture to be intercepted, being obtained at least from the virtual three-dimensional model between the objective function
One shooting point shoots point to the either objective in the shooting point, and obtain setting shoots point from the target
Watch at least one viewing angle between the objective function;
102: to the either objective viewing angle in the viewing angle, point is shot according in the target, with described
Target viewing angle watch in the visible area between the objective function influence of viewing effect between influencing the objective function because
Element evaluation obtains corresponding to by target shooting point and the target viewing angle between the viewing effect the objective function
Spend the combined evaluation result formed;
103: obtain it is each by the shooting point and the corresponding evaluation result of combination that is formed of the viewing angle, from obtaining
The corresponding best shooting point of best evaluation result and best viewing angle are obtained in the evaluation result taken, it will be in the best bat
Take the photograph point using the picture that the best viewing angle intercepts in the virtual three-dimensional model as between the objective function most
Good multi-perspective picture exports the optimal viewing angle picture.
Method provided in this embodiment is executed by the equipment for being equipped with the program for executing above-mentioned steps 101-103, the equipment
It can be server or terminal.It is a certain house between function, for example, parlor, bedroom, toilet, kitchen or factory
A certain workshop, the present embodiment are without limitation.The function of interception optimal viewing angle picture is intended between objective function in the present embodiment
Between energy.Shooting point is the video camera institute that is shot when between being shot objective function to generate virtual three-dimensional model
Position, usually have multiple shooting points between each function, for example, under normal circumstances, the shooting point in a room is from ten
Several to dozens of are differed, and the location information of each shooting point can be saved in the virtual three-dimensional model between function, utilizes the position
Confidence breath, can determine the relative position of the shooting point in virtual three-dimensional model in the threedimensional model after modeling.
In method provided in this embodiment, surely multiple viewing angles are all provided between each shooting point objective function,
Each viewing angle evaluates the viewing effect by viewing angle viewing house, obtains evaluation result.From all
Best evaluation result is chosen in evaluation result, will be cut with the corresponding best shooting point of best evaluation result and best viewing angle
The picture taken is as the optimal viewing angle picture between objective function.Wherein, target function is watched with either objective viewing angle in evaluation
The influence factor that viewing effect between objective function is influenced when viewing effect between energy, in visible area not only includes being watched with target
Angle watches the size of the visible area between objective function, it is also contemplated that other influence factors for influencing viewing effect, for example, packet
It whether includes it can be seen that window, it is seen that the area of window is much, if there are sights the factors such as to block.With the sight of target viewing angle
When seeing between objective function, the range of visible area is bigger, and objective appraisal result is better, and the model of window can be seen in visible area
Enclose bigger, then objective appraisal result is better.
A kind of method and device that picture is intercepted in virtual three-dimensional model is present embodiments provided, between objective function
Each shooting point is respectively provided with multiple viewing angles, to either objective shooting point and target viewing angle combination, by by
The influence factor of viewing effect obtains evaluating to mesh between influence objective function in visible area between combination viewing objective function
The evaluation result of viewing effect between mark function.It is chosen from each shooting point and the corresponding evaluation result of combination of viewing angle
Best evaluation result is cut in virtual three-dimensional model with the corresponding best shooting point of best evaluation result and best viewing angle
Picture is taken, the optimal viewing angle picture between viewing objective function is obtained.This method is guaranteed by reliable accurately calculate most preferably to regard
The picture collection that angle carries out house does not need artificially to participate in, realizes the automation collection of optimal viewing angle picture.
For example, Fig. 2 be parlor provided in this embodiment shooting point schematic diagram, between this objective function of parlor in deposit
It is the shooting point A near the door of parlor and the bat near parlor and bedroom junction respectively in two shooting points
Take the photograph point B.
Further, on the basis of the above embodiments,
The basis shoots point in the target, is watched with the target viewing angle visual between the objective function
The influence element assessment of viewing effect obtains the viewing effect the objective function between the influence objective function in region
Corresponding to the combined evaluation result for shooting point by the target and the target viewing angle is formed, comprising:
It in the virtual three-dimensional model, obtains and shoots point in the target, institute is watched with the target viewing angle
The projecting figure of plane where stating ground of the visible area between the objective function between objective function, by the projecting figure
Area as the visible area area between watching the objective function;
The first score value is calculated according to the floor area between the visible area area and the objective function, and obtains institute
Each influence factor corresponding second for stating the influence viewing effect in visible area in addition to the visible area area is commented
Score value, calculates general comment score value by first score value and each second score value, shoots point by the target as corresponding to
The combined evaluation result formed with the target viewing angle.
It is usually blocked by house inner wall body, when target shoots point, watches house with a certain target viewing angle
There are sight blind areas, and when obtaining the optimal viewing angle picture between objective function, generally require visible area as big as possible.This
The method that embodiment provides characterizes the size of visible area with the area of visible area projecting figure of plane where ground,
Pass through the size of visible area cartographic represenation of area visible area.Evaluating the sight watched between objective function by target viewing angle
When seeing effect, the general comment score value for indicating viewing effect is calculated according to the corresponding score value of each influence factor, passes through each shooting point
The comparison of the corresponding general comment score value of the combination of position and viewing angle can determine best evaluation result.
Fig. 3 is the shooting point provided in this embodiment using A point as target, is watched using ∠ EAD as target viewing angle
Schematic diagram between objective function, referring to Fig. 3, when using ∠ EAD as target viewing angle, visible area area be by AD, DI,
The area for the polygon that IF, MN, NE and EA are surrounded, the i.e. area for the polygon filled in Fig. 3.The sight blind area blocked by wall
The region surrounded for IF, wall IM and wall MN.It can be seen that window and being only capable of seeing width for FH institute in the target viewing angle
Part window.If the influence factor except place's visible area size of setting includes window and with the presence or absence of blocking,
When using ∠ EAD as target viewing angle, since there are windows in visible area, it can therefore improve target shooting point and be somebody's turn to do
The corresponding general comment score value of the combination of target viewing angle, but blocked due to existing in visible area, it can therefore reduce the combination
General comment score value.
A kind of method for intercepting picture in virtual three-dimensional model is present embodiments provided, is characterized by visible area area
The size of visible area obtains corresponding first score value in visible area by visible area area and floor area, in conjunction with
Corresponding second score value of other influence factors calculates general comment score value.By on the factor amount of progress that can respectively influence viewing effect
Change, fast and easy accurately comments the effect watched between objective function by target shooting point and target viewing angle
Valence.
Further, described according to the visible area area and the target function on the basis of the various embodiments described above
Floor area between energy calculates the first score value, and obtains the influence in the visible area in addition to the visible area area
Corresponding second score value of each influence factor of the viewing effect is calculated total by first score value and each second score value
Score value is wrapped as the combined evaluation result formed by target shooting point and the target viewing angle is corresponded to
It includes:
The first ratio for calculating the visible area area Yu the floor area determines described by first ratio
One score value;Wherein, first ratio is bigger, and first score value is higher;
Calculate the second ratio of the middle window gross area between the window areas and the objective function in the visible area, root
Corresponding second score value of window is determined according to second ratio;Wherein, second ratio is bigger, and window corresponding second is commented
Score value is bigger;
According to the first weight set to the first score value and the second weight for being set to corresponding second score value of window,
The general comment score value is calculated by first score value and corresponding second score value of window, is clapped as corresponding to by the target
Take the photograph the combined evaluation result of point and target viewing angle formation.
Further, first score value is closed according to the mapping between preset first ratio and the first score value
System determines.
Further, corresponding second score value of window is commented according to preset second ratio and window corresponding second
Mapping relations between score value determine.
First weight and the second weight are setting value.Such as, if it is desired to output is using big visible area as major demands
Picture when, the first weight can be increased.It, can if want output to see window as much as possible as the picture of major demands
To increase the second weight.
Fig. 4 is the shooting point provided in this embodiment using B point as target, is watched using ∠ KBL as target viewing angle
Schematic diagram between objective function, referring to fig. 4, when using ∠ KBL as target viewing angle, visible area area is blank map in Fig. 4
The area of the polygon of case covering, although visible area area when using ∠ KBL as target viewing angle is larger, with ∠
When KBL is target viewing angle, window can't see in target viewing angle.When in Fig. 3 using ∠ EAD as target viewing angle
It is compared between viewing objective function, can be using ∠ EAD as target viewing angle by adjusting the first weight and the decision of the second weight
The picture of interception is spent as optimal viewing angle picture, or the picture intercepted using ∠ KBL as target viewing angle is as optimal viewing angle
Picture.
A kind of method for intercepting picture in virtual three-dimensional model is present embodiments provided, will be seen in target viewing angle
Window areas generate the second score value as influence factor, and pass through the setting regulating calculation of the first weight and the second weight
Each viewing angle viewing objective function between general comment score value.
Further, on the basis of the various embodiments described above, the first weight that the basis sets the first score value and
Second weight of the second score value setting corresponding to window, by first score value and the corresponding second score value meter of window
Calculate the general comment score value, comprising:
Judgement surround in the side of the projecting figure with the presence or absence of in addition to the target viewing angle angular bounds line and
Line of the wall except plane projection line where ground between the objective function, if so, with target viewing angle viewing
Exist between the objective function and block, generates using the score value of negative number representation as blocking corresponding second score value;
According to first weight, second weight and to the third weight for blocking the setting of corresponding second score value,
By first score value, corresponding second score value of window and block the corresponding second score value calculating general comment score value.
Further, if surrounding in the side of the projecting figure, there is no the angular bounds in addition to the target viewing angle
Line of the wall except plane projection line where ground between line and the objective function does not generate then and blocks corresponding second scoring
Value, that is, blocking corresponding second score value is zero.
Further, if surrounding the angular bounds line in the side of the projecting figure in addition to the target viewing angle and institute
The quantity for stating line of the wall except plane projection line where ground between objective function is more, blocks corresponding second score value
Absolute value is bigger.
Due to there is the effect blocked between usually will affect viewing objective function, when in the presence of blocking, the screening of generation
Keeping off corresponding second score value is negative.
A kind of method that picture is intercepted in virtual three-dimensional model is present embodiments provided, between influencing to watch objective function
Consider to block in the influence factor of effect, will block and be added in general comment score value as deduction item, further improve overall score
The authenticity of value reaction viewing effect evaluation.
Further, on the basis of the various embodiments described above, the acquisition is each by the shooting point and the viewing
The corresponding evaluation result of combination that angle is formed, obtains the corresponding best shooting of best evaluation result from the evaluation result of acquisition
Point and best viewing angle, will the best shooting point with the best viewing angle in the virtual three-dimensional model
The picture of interception exports the optimal viewing angle picture as the optimal viewing angle picture between the objective function, comprising:
Each corresponding general comment score value of combination formed by the shooting point and the viewing angle is obtained, by overall score
It is worth highest evaluation result as the best evaluation result, obtains the corresponding best shooting point of best evaluation result and best
Viewing angle, the picture that will be intercepted in the virtual three-dimensional model in the best shooting point with the best viewing angle
As the optimal viewing angle picture between the objective function, the optimal viewing angle picture is exported.
A kind of method that picture is intercepted in virtual three-dimensional model is present embodiments provided, it can be quick by general comment score value
Best evaluation result is obtained, the treatment effeciency for obtaining optimal viewing angle picture is improved.
Further, on the basis of the various embodiments described above, the either objective in described pair of shooting point shoots point, obtains
Take at least one viewing angle of setting watched between the objective function from target shooting point, comprising:
Point is shot to the either objective in shooting point, setting watches the objective function from target shooting point
Between at least one direction of visual lines will include the angle where the line of sight direction and sight to either objective direction of visual lines
Range of the size equal to predetermined angle size is spent as the viewing angle for corresponding to the line of sight direction, is obtained corresponding to every
The viewing angle of one direction of visual lines.
Further, on the basis of the various embodiments described above, the line of sight direction with correspond to the line of sight
The angular bisector of the viewing angle in direction is overlapped.
Further, the predetermined angle size is 80 °.
Fig. 5 determines that the schematic diagram of direction of visual lines determines sight side referring to Fig. 5 in shooting point A to be provided in this embodiment
To when a ray can be determined every certain angle (for example, every 10 degree), as sight side centered on shooting point A
To.One viewing angle is determined to each direction of visual lines, determining viewing angle includes the direction of visual lines and angular dimension is pre-
If angular dimension.Fig. 6 is the schematic diagram that viewing angle is determined to direction of visual lines AG that embodiment provides, referring to Fig. 6, to view
The viewing angle that line direction AG is determined includes direction of visual lines AG, and ∠ α and ∠ β's and are equal to predetermined angle size.Wherein,
∠ α and ∠ β can be unequal, can also be equal, and the present embodiment is not particularly limited this.
Further, convenient that viewing angle is faster determined according to direction of visual lines, it can be using direction of visual lines as determination
Viewing angle angular bisector, that is, require ∠ α and ∠ β equal.
A kind of method that picture is intercepted in virtual three-dimensional model is present embodiments provided, in the base of determining direction of visual lines
It further determines that viewing angle, direction of visual lines can be distributed on the direction of 360 degree centered on shooting point on plinth, guarantees
It considers during determining best shooting point and best viewing angle and is watched between objective function from each shooting point
All possibilities.
For example, when obtaining the optimal viewing angle picture between objective function, first between objective function as shown in Figure 2
The position that window is determined in plan view shoots point to some target, takes one in the shooting point with multiple and different angles
A 80 degree of range, i.e., as shown in fig. 6, ∠ α and ∠ β's and be equal to 80 degree.Consider from the shooting point with certain target viewing angle
The visible area area of screenshot is spent, whether has wall to obstruct the view, whether there are the factors such as window, by these factors to by the shooting
Point is determined best shooting point by the comparison of general comment score value and is most preferably seen with the general comment score value of the target viewing angle screenshot
See angle.
Fig. 7 shows a kind of structure of device that picture is intercepted in virtual three-dimensional model of the embodiment of the present invention offer
Block diagram, referring to Fig. 7, the device provided in this embodiment that picture is intercepted in virtual three-dimensional model, including judgment module 201, choosing
Select module 202 and sending module 203, wherein
Module 701 is obtained, for the objective function between picture to be intercepted, from the virtual three-dimensional mould between the objective function
At least one shooting point is obtained in type, and point is shot to the either objective in the shooting point, is obtained described in oneself of setting
Target shooting point watches at least one viewing angle between the objective function;
Evaluation module 702, for being shot according in the target to the either objective viewing angle in the viewing angle
Point influences in the visible area watched between the objective function with the target viewing angle to watch effect between the objective function
The influence element assessment of fruit obtains corresponding to and shoots point and described by the target between the viewing effect the objective function
The combined evaluation result that target viewing angle is formed;
Interception module 703, it is corresponding for obtaining each combination formed by the shooting point and the viewing angle
Evaluation result obtains the corresponding best shooting point of best evaluation result and best viewing angle from the evaluation result of acquisition,
By the picture intercepted in the virtual three-dimensional model in the best shooting point using the best viewing angle described in
Optimal viewing angle picture between objective function exports the optimal viewing angle picture.
What the device provided in this embodiment that picture is intercepted in virtual three-dimensional model was provided suitable for above-described embodiment
The method that picture is intercepted in virtual three-dimensional model, details are not described herein.
The embodiment provides a kind of in virtual three-dimensional model intercepts the device of picture, between objective function
Each shooting point is respectively provided with multiple viewing angles, to either objective shooting point and target viewing angle combination, by by
The influence factor of viewing effect obtains evaluating to mesh between influence objective function in visible area between combination viewing objective function
The evaluation result of viewing effect between mark function.It is selected in the evaluation result corresponding from the combination of each shooting point and viewing angle
Best evaluation result is taken, with the corresponding best shooting point of best evaluation result and best viewing angle in virtual three-dimensional model
Picture is intercepted, the optimal viewing angle picture between viewing objective function is obtained.This method is guaranteed by reliable accurately calculate with best
The picture collection that visual angle carries out house does not need artificially to participate in, realizes the automation collection of optimal viewing angle picture.
Fig. 8 is the structural block diagram for showing electronic equipment provided in this embodiment.
Referring to Fig. 8, the electronic equipment includes: processor (processor) 810, communication interface (Communications
Interface) 820, memory (memory) 830 and communication bus 840, wherein processor 810, communication interface 820, storage
Device 830 completes mutual communication by communication bus 840.Processor 810 can call the logical order in memory 830,
To execute following method: between the objective function of picture to be intercepted, being obtained from the virtual three-dimensional model between the objective function
At least one shooting point shoots point to the either objective in the shooting point, obtains shooting from the target for setting
Point watches at least one viewing angle between the objective function;To the either objective viewing angle in the viewing angle,
Point is shot according in the target, influences institute in the visible area watched between the objective function with the target viewing angle
The influence element assessment of viewing effect between objective function is stated between the viewing effect the objective function, obtains corresponding to by described
The combined evaluation result that target shoots point and the target viewing angle is formed;It obtains each by the shooting point and institute
The corresponding evaluation result of combination for stating viewing angle formation, it is corresponding most to obtain best evaluation result from the evaluation result of acquisition
Good shooting point and best viewing angle, will in the best shooting point with the best viewing angle in the virtual three-dimensional
The picture intercepted in model exports the optimal viewing angle picture as the optimal viewing angle picture between the objective function.
In addition, the logical order in above-mentioned memory 830 can be realized by way of SFU software functional unit and conduct
Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally
Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention
The form of software product embodies, which is stored in a storage medium, including some instructions to
So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention
The all or part of the steps of example the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various
It can store the medium of program code.
The present embodiment provides a kind of non-transient computer readable storage mediums, are stored thereon with computer program, the calculating
Machine program is executed by processor following method: between the objective function of picture to be intercepted, from virtual three between the objective function
At least one shooting point is obtained in dimension module, and point is shot to the either objective in the shooting point, obtains setting oneself
The target shooting point watches at least one viewing angle between the objective function;To any mesh in the viewing angle
Viewing angle is marked, point is shot according in the target, is watched with the target viewing angle visual between the objective function
The influence element assessment of viewing effect obtains the viewing effect the objective function between the influence objective function in region
Corresponding to the combined evaluation result for shooting point by the target and the target viewing angle is formed;It obtains each by described
The corresponding evaluation result of combination for shooting point and viewing angle formation obtains best evaluation from the evaluation result of acquisition
As a result corresponding best shooting point and best viewing angle will be existed in the best shooting point with the best viewing angle
The picture intercepted in the virtual three-dimensional model exports the optimal viewing angle as the optimal viewing angle picture between the objective function
Picture.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, it may for example comprise: to picture to be intercepted
Between objective function, at least one shooting point is obtained from the virtual three-dimensional model between the objective function, to the shooting point
Either objective in position shoots point, obtains at least one watched between the objective function from target shooting point of setting
A viewing angle;To the either objective viewing angle in the viewing angle, point is shot according in the target, with the mesh
Mark viewing angle watches in the visible area between the objective function influence factor of viewing effect between influencing the objective function
Evaluation obtains corresponding to by target shooting point and the target viewing angle between the viewing effect the objective function
The combined evaluation result of formation;Obtain each corresponding evaluation of combination formed by the shooting point and the viewing angle
It, will be as a result, obtain the corresponding best shooting point of best evaluation result and best viewing angle from the evaluation result of acquisition
The best shooting point is using the picture that the best viewing angle intercepts in the virtual three-dimensional model as the target
Optimal viewing angle picture between function exports the optimal viewing angle picture.
The embodiments such as electronic equipment described above are only schematical, wherein it is described as illustrated by the separation member
Unit may or may not be physically separated, and component shown as a unit may or may not be object
Manage unit, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound
In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than it is right
It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field
Personnel are it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part
Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution
The range of each embodiment technical solution of the embodiment of the present invention.
Claims (10)
1. a kind of method for intercepting picture in virtual three-dimensional model characterized by comprising
Between the objective function of picture to be intercepted, at least one shooting is obtained from the virtual three-dimensional model between the objective function
Point shoots point to the either objective in the shooting point, obtains shooting described in point viewing from the target for setting
At least one viewing angle between objective function;
To the either objective viewing angle in the viewing angle, point is shot according in the target, with target viewing
Angle watches in the visible area between the objective function influence element assessment pair of viewing effect between influencing the objective function
Viewing effect between the objective function, obtains corresponding to and shoots what point and the target viewing angle were formed by the target
Combined evaluation result;
Each corresponding evaluation result of combination formed by the shooting point and the viewing angle is obtained, from the evaluation of acquisition
As a result the best corresponding best shooting point of evaluation result and best viewing angle are obtained in, will the best shooting point with
The picture that the best viewing angle intercepts in the virtual three-dimensional model is as the optimal viewing angle figure between the objective function
Piece exports the optimal viewing angle picture.
2. the method according to claim 1 for intercepting picture in virtual three-dimensional model, which is characterized in that the basis exists
The target shoots point, influences the target in the visible area watched between the objective function with the target viewing angle
The influence element assessment of viewing effect is obtained corresponding to and be clapped by the target between the viewing effect the objective function between function
Take the photograph the combined evaluation result of point and target viewing angle formation, comprising:
It in the virtual three-dimensional model, obtains and shoots point in the target, the mesh is watched with the target viewing angle
The projecting figure of plane where marking ground of the visible area between function between the objective function, by the face of the projecting figure
Product is as the visible area area between watching the objective function;
The first score value is calculated according to the floor area between the visible area area and the objective function, and can described in acquisition
Corresponding second score value of each influence factor of the influence viewing effect in viewed area in addition to the visible area area,
General comment score value is calculated by first score value and each second score value, point and described is shot by the target as corresponding to
The combined evaluation result that target viewing angle is formed.
3. the method according to claim 2 for intercepting picture in virtual three-dimensional model, which is characterized in that described according to institute
The floor area stated between visible area area and the objective function calculates the first score value, and obtains and remove in the visible area
Corresponding second score value of each influence factor of the influence viewing effect except the visible area area, by described first
Score value and each second score value calculate general comment score value, shoot point and the target viewing angle by the target as corresponding to
Spend the combined evaluation result formed, comprising:
The first ratio for calculating the visible area area Yu the floor area determines that described first comments by first ratio
Score value;Wherein, first ratio is bigger, and first score value is higher;
The second ratio for calculating the middle window gross area between the window areas and the objective function in the visible area, according to institute
It states the second ratio and determines corresponding second score value of window;Wherein, second ratio is bigger, corresponding second score value of window
It is bigger;
According to the first weight set to the first score value and the second weight for being set to corresponding second score value of window, by institute
It states the first score value and corresponding second score value of window calculates the general comment score value, as corresponding to by the target shooting point
The combined evaluation result that position and the target viewing angle are formed.
4. the method according to claim 3 for intercepting picture in virtual three-dimensional model, which is characterized in that described according to right
The first weight and the second weight set to corresponding second score value of window of first score value setting, are scored by described first
It is worth the second score value corresponding with window and calculates the general comment score value, comprising:
Judgement surrounds in the side of the projecting figure with the presence or absence of angular bounds line in addition to the target viewing angle and described
Line of the wall except plane projection line where ground between objective function, if so, determining target viewing angle viewing institute
It states to exist between objective function and block, generate using the score value of negative number representation as blocking corresponding second score value;
According to first weight, second weight and to the third weight for blocking corresponding second score value setting, by institute
It states corresponding second score value of the first score value, window and blocks corresponding second score value and calculate the general comment score value.
5. the method according to claim 2 for intercepting picture in virtual three-dimensional model, which is characterized in that described to obtain often
The one corresponding evaluation result of combination formed by the shooting point and the viewing angle, obtains from the evaluation result of acquisition
The best corresponding best shooting point of evaluation result and best viewing angle, will be in the best shooting point with the best sight
Picture that angle intercepts in the virtual three-dimensional model is seen as the optimal viewing angle picture between the objective function, described in output
Optimal viewing angle picture, comprising:
Each corresponding general comment score value of combination formed by the shooting point and the viewing angle is obtained, most by general comment score value
High evaluation result obtains the corresponding best shooting point of best evaluation result and best viewing as the best evaluation result
Angle, by the best shooting point using the picture that the best viewing angle intercepts in the virtual three-dimensional model as
Optimal viewing angle picture between the objective function exports the optimal viewing angle picture.
6. the method according to claim 1 for intercepting picture in virtual three-dimensional model, which is characterized in that described to described
The either objective shot in point shoots point, obtains watching between the objective function from target shooting point for setting
At least one viewing angle, comprising:
Point is shot to the either objective in shooting point, setting is watched between the objective function from target shooting point
At least one direction of visual lines will be big including the angle where the line of sight direction and sight to either objective direction of visual lines
The small range equal to predetermined angle size obtains as the viewing angle for corresponding to the line of sight direction and corresponds to each view
The viewing angle in line direction.
7. the method according to claim 6 for intercepting picture in virtual three-dimensional model, which is characterized in that the target view
Line direction is overlapped with the angular bisector for the viewing angle for corresponding to the line of sight direction.
8. a kind of device for intercepting picture in virtual three-dimensional model characterized by comprising
Module is obtained, for being obtained the objective function between picture to be intercepted from the virtual three-dimensional model between the objective function
It takes at least one to shoot point, point is shot to the either objective in the shooting point, obtains clapping from the target for setting
Take the photograph at least one viewing angle that point is watched between the objective function;
Evaluation module, for shooting point according in the target to the either objective viewing angle in the viewing angle, with
The target viewing angle watches in the visible area between the objective function shadow of viewing effect between influencing the objective function
Factor evaluation is rung between the viewing effect the objective function, is obtained corresponding to and be seen by target shooting point and the target
See the combined evaluation result that angle is formed;
Interception module is tied for obtaining the corresponding evaluation of each combination formed by the shooting point and the viewing angle
Fruit obtains the corresponding best shooting point of best evaluation result and best viewing angle from the evaluation result of acquisition, will be in institute
Best shooting point is stated using the picture that the best viewing angle intercepts in the virtual three-dimensional model as the target function
Optimal viewing angle picture between energy exports the optimal viewing angle picture.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor is realized as described in any one of claim 1 to 7 in void when executing described program
The step of method of picture is intercepted in quasi-3-dimensional model.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer
The side as described in any one of claim 1 to 7 that picture is intercepted in virtual three-dimensional model is realized when program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910318892.2A CN110097539B (en) | 2019-04-19 | 2019-04-19 | Method and device for capturing picture in virtual three-dimensional model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910318892.2A CN110097539B (en) | 2019-04-19 | 2019-04-19 | Method and device for capturing picture in virtual three-dimensional model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110097539A true CN110097539A (en) | 2019-08-06 |
CN110097539B CN110097539B (en) | 2020-09-11 |
Family
ID=67445296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910318892.2A Active CN110097539B (en) | 2019-04-19 | 2019-04-19 | Method and device for capturing picture in virtual three-dimensional model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110097539B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246109A (en) * | 2020-02-06 | 2020-06-05 | 贝壳技术有限公司 | Automatic screenshot method and system |
CN112328150A (en) * | 2020-11-18 | 2021-02-05 | 贝壳技术有限公司 | Automatic screenshot method, device and equipment, and storage medium |
CN113591313A (en) * | 2021-08-05 | 2021-11-02 | 北京房江湖科技有限公司 | View angle point determining method and device, electronic equipment and storage medium |
CN114972652A (en) * | 2022-06-14 | 2022-08-30 | 深圳市固有色数码技术有限公司 | Virtual image modeling method |
CN115272483A (en) * | 2022-07-22 | 2022-11-01 | 北京城市网邻信息技术有限公司 | Image generation method and device, electronic equipment and storage medium |
CN115880464A (en) * | 2022-11-25 | 2023-03-31 | 如你所视(北京)科技有限公司 | Method for generating online house-watching video data, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102227748A (en) * | 2008-10-03 | 2011-10-26 | 3M创新有限公司 | Systems and methods for multi-perspective scene analysis |
US20150292887A1 (en) * | 2014-04-14 | 2015-10-15 | SAAB Vricon System AB | Navigation based on at least one sensor and a three dimensional map |
WO2017085360A1 (en) * | 2015-11-18 | 2017-05-26 | Teknologian Tutkimuskeskus Vtt Oy | Methods and apparatuses for penetrating imaging |
CN107146197A (en) * | 2017-03-31 | 2017-09-08 | 北京奇艺世纪科技有限公司 | A kind of reduced graph generating method and device |
CN108093174A (en) * | 2017-12-15 | 2018-05-29 | 北京臻迪科技股份有限公司 | Patterning process, device and the photographing device of photographing device |
CN108184108A (en) * | 2018-01-12 | 2018-06-19 | 盎锐(上海)信息科技有限公司 | Image generating method and device based on 3D imagings |
CN108513066A (en) * | 2018-03-28 | 2018-09-07 | 努比亚技术有限公司 | It takes pictures composition guidance method, mobile terminal and storage medium |
CN108958609A (en) * | 2018-07-24 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot |
CN109035385A (en) * | 2018-06-06 | 2018-12-18 | 链家网(北京)科技有限公司 | Panorama sketch screenshot method and system in a kind of source of houses virtual three-dimensional model |
CN109064545A (en) * | 2018-06-06 | 2018-12-21 | 链家网(北京)科技有限公司 | The method and device that a kind of pair of house carries out data acquisition and model generates |
-
2019
- 2019-04-19 CN CN201910318892.2A patent/CN110097539B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102227748A (en) * | 2008-10-03 | 2011-10-26 | 3M创新有限公司 | Systems and methods for multi-perspective scene analysis |
US20150292887A1 (en) * | 2014-04-14 | 2015-10-15 | SAAB Vricon System AB | Navigation based on at least one sensor and a three dimensional map |
WO2017085360A1 (en) * | 2015-11-18 | 2017-05-26 | Teknologian Tutkimuskeskus Vtt Oy | Methods and apparatuses for penetrating imaging |
CN107146197A (en) * | 2017-03-31 | 2017-09-08 | 北京奇艺世纪科技有限公司 | A kind of reduced graph generating method and device |
CN108093174A (en) * | 2017-12-15 | 2018-05-29 | 北京臻迪科技股份有限公司 | Patterning process, device and the photographing device of photographing device |
CN108184108A (en) * | 2018-01-12 | 2018-06-19 | 盎锐(上海)信息科技有限公司 | Image generating method and device based on 3D imagings |
CN108513066A (en) * | 2018-03-28 | 2018-09-07 | 努比亚技术有限公司 | It takes pictures composition guidance method, mobile terminal and storage medium |
CN109035385A (en) * | 2018-06-06 | 2018-12-18 | 链家网(北京)科技有限公司 | Panorama sketch screenshot method and system in a kind of source of houses virtual three-dimensional model |
CN109064545A (en) * | 2018-06-06 | 2018-12-21 | 链家网(北京)科技有限公司 | The method and device that a kind of pair of house carries out data acquisition and model generates |
CN108958609A (en) * | 2018-07-24 | 2018-12-07 | 百度在线网络技术(北京)有限公司 | Generation method, device, storage medium and the terminal device of three-dimensional panorama surface plot |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246109A (en) * | 2020-02-06 | 2020-06-05 | 贝壳技术有限公司 | Automatic screenshot method and system |
CN112328150A (en) * | 2020-11-18 | 2021-02-05 | 贝壳技术有限公司 | Automatic screenshot method, device and equipment, and storage medium |
CN112328150B (en) * | 2020-11-18 | 2022-03-29 | 贝壳技术有限公司 | Automatic screenshot method, device and equipment, and storage medium |
CN113591313A (en) * | 2021-08-05 | 2021-11-02 | 北京房江湖科技有限公司 | View angle point determining method and device, electronic equipment and storage medium |
CN113591313B (en) * | 2021-08-05 | 2022-07-15 | 贝壳找房(北京)科技有限公司 | View angle point determining method and device, electronic equipment and storage medium |
CN114972652A (en) * | 2022-06-14 | 2022-08-30 | 深圳市固有色数码技术有限公司 | Virtual image modeling method |
CN114972652B (en) * | 2022-06-14 | 2023-11-10 | 深圳市固有色数码技术有限公司 | Virtual image modeling method |
CN115272483A (en) * | 2022-07-22 | 2022-11-01 | 北京城市网邻信息技术有限公司 | Image generation method and device, electronic equipment and storage medium |
CN115880464A (en) * | 2022-11-25 | 2023-03-31 | 如你所视(北京)科技有限公司 | Method for generating online house-watching video data, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110097539B (en) | 2020-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110097539A (en) | A kind of method and device intercepting picture in virtual three-dimensional model | |
EP3108449B1 (en) | View independent 3d scene texturing | |
CN105303514B (en) | Image processing method and device | |
US20210075963A1 (en) | Method and apparatus for obtaining binocular panoramic image, and storage medium | |
CN104835138B (en) | Make foundation drawing picture and Aerial Images alignment | |
US9307221B1 (en) | Settings of a digital camera for depth map refinement | |
CN111274943B (en) | Detection method, detection device, electronic equipment and storage medium | |
CN110276317B (en) | Object size detection method, object size detection device and mobile terminal | |
CN108027975B (en) | Fast cost aggregation for dense stereo matching | |
CN107980138A (en) | A kind of false-alarm obstacle detection method and device | |
US20140036039A1 (en) | Techniques for producing creative stereo parameters for stereoscopic computer animation | |
CN108761994A (en) | The detection method and device of the assembling of camera module and virtual reality device | |
CN110782507A (en) | Texture mapping generation method and system based on face mesh model and electronic equipment | |
CN108961387A (en) | A kind of display methods and terminal device of house virtual three-dimensional model | |
CN109286758A (en) | A kind of generation method of high dynamic range images, mobile terminal and storage medium | |
CN110619660A (en) | Object positioning method and device, computer readable storage medium and robot | |
CN111583118A (en) | Image splicing method and device, storage medium and electronic equipment | |
CN108182660A (en) | A kind of region weather radar network data fusion method and device | |
CN109035423A (en) | A kind of method for partitioning storey and device of the virtual three-dimensional model in house | |
CN106709862B (en) | A kind of image processing method and device | |
CN111798374A (en) | Image splicing method, device, equipment and medium | |
JP7247573B2 (en) | 3D geometric model generation device, 3D geometric model generation method, and program | |
CN110060282B (en) | Point cloud registration method and device | |
CN110009751A (en) | A kind of method for partitioning storey and device of house virtual three-dimensional model | |
CN115205411A (en) | Occlusion body generation method and device, electronic equipment and 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20191211 Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing Applicant after: Seashell Housing (Beijing) Technology Co., Ltd. Address before: 300 457 days Unit 5, Room 1, 112, Room 1, Office Building C, Nangang Industrial Zone, Binhai New Area Economic and Technological Development Zone, Tianjin Applicant before: Shell Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |