Judgment method, device, electronic equipment and the storage medium of camera visible range

文档序号:1775600 发布日期:2019-12-03 浏览:21次 中文

阅读说明:本技术 摄像头可视域的判断方法、装置、电子设备与存储介质 (Judgment method, device, electronic equipment and the storage medium of camera visible range ) 是由 徐震 杜凯 李科霖 李昆 于 2019-08-22 设计创作,主要内容包括:本发明提供的摄像头可视域的判断方法、装置、电子设备与存储介质中,能够在确定所述三维场景中的摄像头的位置参数与视角参数后,根据位置参数与视角参数确定摄像头在任意之一第一实体元素表面的拍摄覆盖范围,进而在拍摄覆盖范围中可计算出被第二实体元素遮挡的不可视区域与未被其他实体元素遮挡的可视区域,从而可对可视区域与不可视区域进行区别显示,通过该区别显示,可以指导摄像头的安装,相较于现有相关技术,本发明可更直观地以可视区域作为指导摄像头安装的依据,从而能够更准确地显示出摄像头实际发生作用的范围,有利于指导用户更合理、准确地配置摄像头。(The judgment method of camera visible range provided by the invention, device, in electronic equipment and storage medium, it can be after determining the location parameter and view parameter of the camera in the three-dimensional scenic, determine camera in the shooting coverage area on one of any first instance element surface according to location parameter and view parameter, and then it can be calculated in shooting coverage area by the not visible region that second instance element blocks and the visible area that do not blocked by other entity elements, so as to which visible area and not visible region are differently shown, it is distinctly displayed by this, it can instruct the installation of camera, compared to existing the relevant technologies, the present invention can be more intuitively using visible area as the foundation for instructing camera to install, so as to which the range that camera actually occurs effect is more accurately displayed out, be conducive to instruct user more reasonable, accurately Ground configures camera.)

1. a kind of judgment method of camera visible range characterized by comprising

Determine the entity elements in virtual three-dimensional scenic;

Determine the location parameter and view parameter of the camera in the three-dimensional scenic;

According to the location parameter and the view parameter, camera first instance element in the three-dimensional scenic is determined The shooting coverage area on surface;

In the shooting coverage area, the not visible region blocked by second instance element is calculated and not by other entity elements The visible area blocked;The second instance element is between the camera and the first instance element;

The shooting coverage area is shown in the three-dimensional scenic, and makes the visible area and the not visible region quilt It distinctly displays.

2. the method according to claim 1, wherein calculating in the shooting coverage area by second instance The not visible region that element blocks and the visible area that do not blocked by other entity elements, comprising:

Determine that each target incident line of the camera and the intersection point on first instance element surface, the target incident line are It is described to shoot the incident line blocked in the corresponding all incident lines of coverage area by the second instance element;The incident line is It is determined according to the location parameter and the view parameter;

It determines that the set of the intersection point forms the not visible region, and determines in the shooting coverage area except described not visible Region other than region forms the visible area.

3. according to the method described in claim 2, it is characterized in that, determining each target incident line and described the of the camera Before the intersection point on one entity elements surface, further includes:

Determine all incident lines of the camera corresponding to the shooting coverage area;

In all incident lines, if the three-dimensional point weight of the coordinate of each three-dimensional point of the incident line and the second instance element It closes, it is determined that the incident line that the coincidence occurs is the target incident line.

4. the method according to claim 1, wherein determining the position of camera virtual in the three-dimensional scenic Parameter and view parameter, comprising:

If the camera is set to the entity elements of movement, according to the entity elements of the movement in the three-dimensional scenic First location information and the camera in the second location information of the entity elements of the movement, determine the position Parameter;

According to the second location information, the turned position of the entity elements of the movement and the camera in the fortune The setting angle of dynamic entity elements determines the view parameter.

5. according to the method described in claim 4, it is characterized in that, the first location information is with the second location information The position of the entity elements of the movement according to reality scene and the camera the determines or customized determination of user 's.

6. method according to any one of claims 1 to 5, which is characterized in that the visible area and the invisible range Domain can be distinguished for display by different display parameters;

The different display parameters include at least one of:

Different color parameters;

Different luminance parameters;

Different transparency parameters;

The edge lines of different colours;

The not edge lines of synteny.

7. method according to any one of claims 1 to 5, which is characterized in that show the bat in the three-dimensional scenic Coverage area is taken the photograph, and makes the visible area and after the not visible region is distinguished for display, further includes:

According to the visible area of each camera, at least one of location parameter and view parameter of the camera are adjusted.

8. a kind of judgment means of camera visible range characterized by comprising

Entity elements determining module, for determining the entity elements in virtual three-dimensional scenic;

Camera parameter determining module, for determining the location parameter and view parameter of the camera in the three-dimensional scenic;

Coverage determining module, for determining the camera described according to the location parameter and the view parameter The shooting coverage area on first instance element surface in three-dimensional scenic;

Area calculation module, for calculating the not visible region blocked by second instance element in the shooting coverage area With the visible area that do not blocked by other entity elements;The second instance element is in the camera and the first instance Between element;

Region display module for showing the shooting coverage area in the three-dimensional scenic, and makes the visible area It is distinguished for display with the not visible region.

9. a kind of electronic equipment, which is characterized in that including memory and processor;

The memory, for storing the executable instruction of the processor;

The processor is configured to carry out perform claim 1 to 7 described in any item camera shootings of requirement via the execution executable instruction The judgment method of head visible range.

10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor The judgment method of the described in any item camera visible ranges of claim 1 to 7.

Technical field

The present invention relates to the field of virtual scene more particularly to a kind of judgment methods of camera visible range, device, electronics Equipment and storage medium.

Background technique

In three-dimensional virtual scene, in the virtual scene especially for example based on true scape three-dimensional smart city, it can arrange Softcam, the installation site of camera and mounting means can be used for instructing camera in reality scene in virtual scene Installation site and mounting means.

It is existing in the related technology, usually can be according to the installation position for artificially checking camera in order to instruct the installation of camera Subjectivity is set to be judged, such as judges whether the distributing position of camera is uniform, rule of thumb judges whether its position is in Preferable commanding elevation etc..

However, since the position for being based only upon camera is judged, it is difficult to which whether the distribution of accurate judgement camera can have Range needed for effect covers.

Summary of the invention

The present invention provides judgment method, device, electronic equipment and the storage medium of a kind of camera visible range, to solve difficulty The problem of whether capable of effectively covering required range with the distribution of accurate judgement camera.

According to the first aspect of the invention, a kind of judgment method of camera visible range is provided, comprising:

Determine the entity elements in virtual three-dimensional scenic;

Determine the location parameter and view parameter of the camera in the three-dimensional scenic;

According to the location parameter and the view parameter, camera first instance in the three-dimensional scenic is determined The shooting coverage area on element surface;

In the shooting coverage area, the not visible region blocked by second instance element is calculated and not by other entities The visible area that element blocks;The second instance element is between the camera and the first instance element;

The shooting coverage area is shown in the three-dimensional scenic, and makes the visible area and the invisible range Domain is distinguished for display.

Optionally, in the shooting coverage area, calculate the not visible region blocked by second instance element with not by The visible area that other entity elements are blocked, comprising:

Determine each target incident line of the camera and the intersection point on first instance element surface, the target projection Line is the incident line blocked in the corresponding all incident lines of the shooting coverage area by the second instance element;The projection Line is determined according to the location parameter and the view parameter;

Determine that the set of the intersection point forms the not visible region, and determine removed in the shooting coverage area described in not Region other than visible area forms the visible area.

Optionally, before determining each target incident line of the camera and the intersection point on first instance element surface, Further include:

Determine all incident lines of the camera corresponding to the shooting coverage area;

In all incident lines, if the three-dimensional point of the coordinate of each three-dimensional point of the incident line and the second instance element It is overlapped, it is determined that the incident line that the coincidence occurs is the target incident line.

Optionally, the location parameter and view parameter of camera virtual in the three-dimensional scenic are determined, comprising:

If the camera is set to the entity elements of movement, according to the entity elements of the movement in the three dimensional field First location information and the camera in scape in the second location information of the entity elements of the movement, determine described in Location parameter;

According to the second location information, the turned position of the entity elements of the movement and the camera in institute The setting angle for stating the entity elements of movement determines the view parameter.

Optionally, the first location information and the second location information are the realities of the movement according to reality scene It is that the position of element of volume and the camera determines or the customized determination of user.

Optionally, the visible area can be distinguished for display from the not visible region by different display parameters;

The different display parameters include at least one of:

Different color parameters;

Different luminance parameters;

Different transparency parameters;

The edge lines of different colours;

The not edge lines of synteny.

Optionally, the shooting coverage area is shown in the three-dimensional scenic, and make the visible area with it is described After not visible region is distinguished for display, further includes:

According to the visible area of each camera, at least one of location parameter and view parameter of the camera are adjusted.

According to the second aspect of the invention, a kind of judgment means of camera visible range are provided, comprising:

Entity elements determining module, for determining the entity elements in virtual three-dimensional scenic;

Camera parameter determining module, for determining the location parameter and view parameter of the camera in the three-dimensional scenic;

Coverage determining module, for determining that the camera exists according to the location parameter and the view parameter The shooting coverage area on first instance element surface in the three-dimensional scenic;

Area calculation module, in the shooting coverage area, calculating to be blocked not visible by second instance element Region and the visible area that do not blocked by other entity elements;The second instance element is in the camera and described first Between entity elements;

Region display module for showing the shooting coverage area in the three-dimensional scenic, and makes described visual Region is distinguished for display with the not visible region.

The third aspect provided according to the present invention, providing a kind of electronic equipment includes memory and processor;

The memory, for storing the executable instruction of the processor;

The processor is configured to be related to via the execution executable instruction to execute first aspect and its optinal plan Camera visible range judgment method.

The fourth aspect provided according to the present invention provides a kind of storage medium, is stored thereon with computer program, the journey The judgment method for the camera visible range that first aspect and its optinal plan are related to is realized when sequence is executed by processor.

It, can be true in the judgment method of camera visible range provided by the invention, device, electronic equipment and storage medium After the location parameter and view parameter of camera in the fixed three-dimensional scenic, is determined and imaged according to location parameter and view parameter Head and then can calculate in shooting coverage area by second in the shooting coverage area on one of any first instance element surface The not visible region that entity elements are blocked and the visible area that do not blocked by other entity elements, so as to visible area and not Visible area is differently shown, and is distinctly displayed by this, can instruct the installation of camera, compared to existing the relevant technologies, The present invention can image more intuitively using visible area as the foundation for instructing camera to install so as to be more accurately displayed out Head actually occurs the range of effect, be conducive to instruct user more rationally, accurately configure camera.

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 only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.

Fig. 1 is the flow diagram of the judgment method of camera visible range in one embodiment of the invention;

Fig. 2 is the flow diagram of step S12 in one embodiment of the invention;

Fig. 3 is the flow diagram of step S14 in one embodiment of the invention;

Fig. 4 is the Forming Theory schematic diagram one that coverage area is shot in one embodiment of the invention;

Fig. 5 is the Forming Theory schematic diagram two that coverage area is shot in one embodiment of the invention;

Fig. 6 is the Forming Theory schematic diagram three that coverage area is shot in one embodiment of the invention;

Fig. 7 is the Forming Theory schematic diagram four that coverage area is shot in one embodiment of the invention;

Fig. 8 is the program module schematic diagram of the judgment means of camera visible range in one embodiment of the invention;

Fig. 9 is the organigram of electronic equipment in one embodiment of the invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种裸眼立体显示系统闪烁率的评价方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类