CN113824882A - Camera parameter determination method and device, electronic equipment and program product - Google Patents

Camera parameter determination method and device, electronic equipment and program product Download PDF

Info

Publication number
CN113824882A
CN113824882A CN202111138970.4A CN202111138970A CN113824882A CN 113824882 A CN113824882 A CN 113824882A CN 202111138970 A CN202111138970 A CN 202111138970A CN 113824882 A CN113824882 A CN 113824882A
Authority
CN
China
Prior art keywords
virtual
camera
parameters
configuration parameters
scene
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.)
Pending
Application number
CN202111138970.4A
Other languages
Chinese (zh)
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202111138970.4A priority Critical patent/CN113824882A/en
Publication of CN113824882A publication Critical patent/CN113824882A/en
Priority to PCT/CN2022/116506 priority patent/WO2023045726A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application provides a method and a device for determining camera parameters, electronic equipment and a program product, relates to the technical field of computers, and comprises the following steps: obtaining a scene model for simulating a target scene, deploying a virtual camera in the scene model; simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. By applying the scheme provided by the embodiment of the application, the accuracy of the determined camera parameters can be improved.

Description

Camera parameter determination method and device, electronic equipment and program product
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for determining parameters of a camera, an electronic device, and a program product.
Background
In scenes such as a residential quarter, a construction site, a traffic intersection and the like, a camera is generally deployed and is used for controlling the scenes.
In the related art, when selecting a camera for monitoring, configuration parameters of the camera to be deployed, such as a horizontal field angle, a vertical field angle, and a focal length, are generally empirically determined by a human, and deployment parameters of the camera to be deployed, such as an installation position and an installation angle, are empirically determined by a human.
Thus, the parameters of the camera are determined by the human according to experience, which may cause the determined parameters of the camera not to match with the scene, and further cause poor monitoring effect of the subsequently deployed camera.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device and a program product for determining camera parameters, so as to improve the accuracy of the determined camera parameters. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for determining parameters of a camera, where the method includes:
obtaining a scene model for simulating a target scene, deploying a virtual camera in the scene model;
simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters;
and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene.
In an embodiment of the present application, the simulating, according to the virtual parameter of the virtual camera, the virtual camera to perform deployment control in the scene model to obtain a simulated monitoring image includes:
determining the field of view direction of the virtual camera according to the virtual deployment parameters of the virtual camera, and projecting the scene model along the field of view direction to obtain a projected image;
and determining the field of view range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the field of view range to obtain a cut simulation monitoring image.
In an embodiment of the application, after determining the virtual configuration parameters of the virtual camera as the reference configuration parameters of the camera to be deployed in the target scene, the method further includes:
and determining a recommended camera type with configuration parameters matched with the reference configuration parameters from the camera types of different models obtained in advance.
In one embodiment of the application, after determining the recommended camera type whose configuration parameters match the reference configuration parameters, the method further comprises:
and aiming at any recommended camera type, updating the virtual configuration parameters of the virtual camera according to the configuration parameters of the camera corresponding to the recommended camera type, and executing the step of simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image.
In one embodiment of the present application, the scene model and the state of the virtual camera in the scene model are displayed in a first window of a first interface;
the simulation monitoring image is displayed in a second window of the first interface;
after the determining the virtual configuration parameters of the virtual camera as the reference configuration parameters of the camera to be deployed in the target scene, the method further includes:
switching from the first interface to a second interface, and displaying a recommended camera type with configuration parameters matched with the reference configuration parameters in a third window of the second interface;
the second interface further comprises a fourth window, and the fourth window displays the scene model and the state of the virtual camera in the scene model.
In one embodiment of the present application, the method further comprises:
under the condition that the simulated monitoring image does not meet the monitoring requirement, adjusting virtual deployment parameters and/or virtual configuration parameters of the virtual camera, and returning to the step of simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain the simulated monitoring image until the simulated monitoring image meets the monitoring requirement; and/or
A plurality of virtual cameras are deployed in the scene model, and the method further comprises:
determining monitoring blind areas among the view field ranges of different virtual cameras;
adjusting a virtual deployment parameter and/or a virtual configuration parameter of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area; and/or
The obtaining of the scene model for simulating the target scene includes:
obtaining scene design information of a target scene;
analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information;
and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
In a second aspect, an embodiment of the present application provides an apparatus for determining parameters of a camera, where the apparatus includes:
the scene model obtaining module is used for obtaining a scene model for simulating a target scene;
a virtual camera deployment module to deploy a virtual camera in the scene model;
the image obtaining module is used for simulating the virtual camera to perform deployment control in the scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters;
and the parameter determining module is used for determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene under the condition that the simulated monitoring image meets the monitoring requirement.
In an embodiment of the application, the image obtaining module is specifically configured to:
determining the field of view direction of the virtual camera according to the virtual deployment parameters of the virtual camera, and projecting the scene model along the field of view direction to obtain a projected image;
and determining the field of view range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the field of view range to obtain a cut simulation monitoring image.
In an embodiment of the present application, the apparatus further includes a type recommendation module, configured to:
after the virtual configuration parameters of the virtual camera are determined as the reference configuration parameters of the camera to be deployed in the target scene, determining a recommended camera type with configuration parameters matched with the reference configuration parameters from the camera types of different models obtained in advance.
In an embodiment of the present application, the apparatus further includes a parameter updating module, configured to:
after the recommended camera type with the configuration parameters matched with the reference configuration parameters is determined, for any recommended camera type, the virtual configuration parameters of the virtual camera are updated according to the configuration parameters of the camera corresponding to the recommended camera type, and the image obtaining module is triggered.
In one embodiment of the present application, the scene model and the state of the virtual camera in the scene model are displayed in a first window of a first interface;
the simulation monitoring image is displayed in a second window of the first interface;
the device also comprises an interface switching module used for:
after the virtual configuration parameters of the virtual camera are determined to be the reference configuration parameters of the camera to be deployed in the target scene, switching from the first interface to a second interface, and displaying a recommended camera type with configuration parameters matched with the reference configuration parameters in a third window of the second interface;
the second interface further comprises a fourth window, and the fourth window displays the scene model and the state of the virtual camera in the scene model.
In an embodiment of the present application, the apparatus further includes a parameter adjusting module, configured to:
under the condition that the simulated monitoring image does not meet the monitoring requirement, adjusting virtual deployment parameters and/or virtual configuration parameters of the virtual camera, and triggering the image obtaining module until the simulated monitoring image meets the monitoring requirement; and/or
A plurality of virtual cameras are deployed in the scene model, and the device further comprises a blind area elimination module for:
determining monitoring blind areas among the view field ranges of different virtual cameras; adjusting a virtual deployment parameter and/or a virtual configuration parameter of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area; and/or
The scene model obtaining module is specifically configured to:
obtaining scene design information of a target scene;
analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information;
and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory;
a memory for storing a computer program;
a processor for implementing the method of any of the first aspects when executing a program stored in the memory.
In a fourth aspect, embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method of any one of the first aspect.
In a fifth aspect, this application further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program performs the method of any one of the first aspect.
The embodiment of the application has the following beneficial effects:
in the parameter determination scheme provided by the embodiment of the application, a scene model for simulating a target scene can be obtained, and a virtual camera is deployed in the scene model; simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is also obvious for a person skilled in the art to obtain other embodiments according to the drawings.
Fig. 1 is a schematic flowchart of a method for determining parameters of a camera according to an embodiment of the present disclosure;
FIG. 2 is a schematic view of a first interface provided in an embodiment of the present application;
FIG. 3 is a schematic view of another first interface provided in an embodiment of the present application;
FIG. 4 is a schematic view of a second interface provided in an embodiment of the present application;
FIG. 5 is a schematic view of a first viewing mode provided by an embodiment of the present application;
fig. 6 is a schematic flowchart of another method for determining parameters of a camera according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a parameter determining apparatus of a camera according to an embodiment of the present disclosure;
fig. 8a and 8b are schematic structural diagrams of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
In order to improve the accuracy of the determined camera parameters, embodiments of the present application provide a method, an apparatus, an electronic device, and a program product for determining camera parameters, which are respectively described below.
The embodiment of the application provides a method for determining parameters of a camera, which can be applied to electronic equipment such as computers, servers, mobile phones and the like, and comprises the following steps:
obtaining a scene model for simulating a target scene, and deploying a virtual camera in the scene model;
simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters;
and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene.
In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment.
The parameter determination method of the above-described camera is described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for determining parameters of a camera according to an embodiment of the present application, where the method includes the following steps S101 to S103:
s101, obtaining a scene model for simulating a target scene, and deploying a virtual camera in the scene model.
Wherein, the target scene refers to: a real scene in which the camera is to be deployed, for example, the target scene may be any one of the following scenes: residential areas, construction sites, traffic intersections, factories, shopping malls and the like.
The virtual camera described above refers to: a model for simulating a real camera, said virtual camera may comprise one or more of the following virtual cameras: gunlock, dome camera, wide angle camera, fisheye camera, and the like.
Specifically, a three-dimensional model of a target scene may be obtained as a scene model by using a three-dimensional modeling technique, and one or more virtual cameras may be deployed in the scene model, so as to simulate a real camera being deployed in an actual target scene.
S102, simulating the virtual camera to perform set control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image.
The virtual parameters comprise virtual deployment parameters and virtual configuration parameters.
The virtual deployment parameter refers to at least one of the following parameters: the installation position, height, orientation, installation mode and the like of the virtual camera in the scene model, wherein the installation mode comprises any one of the following modes: wall-mounted, hoisted, mounted on vertical poles, etc.
The virtual configuration parameters refer to parameters of the camera itself, including at least one of the following parameters: focal length, monitor mode, vertical field of view, horizontal field of view, etc. The monitoring mode at least comprises a corridor mode and a normal mode.
The above corridor pattern means: the image acquired by the camera is rotated by 90 °, so that the monitoring range of the camera in the longitudinal direction is increased, for example, assuming that the width and the height of the image acquired by the camera are 1920 × 1080, after the image is rotated by 90 °, the width and the height of the acquired image are 1080 × 1920.
The normal mode mentioned above refers to: the image captured by the camera is not rotated.
The above-mentioned analog monitoring image refers to: and simulating the monitoring image in the scene model which can be shot by the virtual camera.
Specifically, the virtual camera may be simulated to set control in the scene model according to the configuration parameters of the virtual camera itself and the deployment parameters in the scene model, so as to obtain an image acquired by the virtual camera as a simulated monitoring image, where the image may reflect the monitoring range of the virtual camera in the scene model.
S103, under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene.
Wherein, the monitoring requirement refers to: the requirement for the camera monitoring range may be, for example, at least one of the following requirements: the target object is located in the monitoring range, the target channel is located in the monitoring range, and the like, and the target object can be at least one of the following objects: cash registers, bayonet gates, valuables counters, etc., said target pathway may be at least one of the following: fire-fighting passageways, passenger flow passageways, and the like.
Specifically, the simulated monitoring image may reflect a monitoring range of the virtual camera, and according to the simulated monitoring image, it may be determined whether the monitoring range of the virtual camera meets monitoring requirements, and if so, it is indicated that the virtual deployment parameter and the virtual configuration parameter of the current virtual camera are matched with the scene model, so on one hand, the virtual deployment parameter of the current virtual camera may be determined as a reference deployment parameter of the camera to be deployed in the target scene, and then the selected camera may be deployed in the scene model based on the reference deployment parameter;
on the other hand, the virtual configuration parameters of the current virtual camera may be determined as reference configuration parameters of the cameras to be deployed in the target scene, so that the type of the cameras to be deployed in the target scene may be subsequently selected based on the reference configuration parameters. Therefore, the virtual deployment parameters can be used for guiding the camera to be actually installed in the target scene, and the camera can meet the monitoring requirement after being installed.
In an embodiment of the application, when judging whether the simulation monitoring image corresponding to the virtual camera meets the monitoring requirement, the simulation monitoring image can be displayed, an instruction input by a user through an external input device is received, the instruction carries information meeting the monitoring requirement or not, and whether the simulation monitoring image meets the monitoring requirement or not can be judged according to the instruction. Wherein the external input device may be any one of the following devices: keyboard, mouse, touch pad, microphone.
In addition, when judging whether the simulated monitoring image corresponding to the virtual camera meets the monitoring requirement, the target detection can be carried out on the simulated monitoring image, whether the image content of the simulated monitoring image contains a complete target object is judged based on the detection result, if so, the monitoring range of the virtual camera covers the complete target object, and then the monitoring requirement is considered to be met, otherwise, the monitoring range of the virtual camera is difficult to cover the complete target object, and then the monitoring requirement is considered to be not met. The target object is a preset object to be monitored, and may be, for example, an entrance, a cashier, a shelf, or the like.
In the scheme provided by the embodiment, a scene model for simulating a target scene can be obtained, and a virtual camera is deployed in the scene model; simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment.
In an embodiment of the application, under the condition that the simulated monitoring image does not meet the monitoring requirement, the virtual deployment parameter and/or the virtual configuration parameter of the virtual camera are/is adjusted, and the step S102 is returned until the simulated monitoring image meets the monitoring requirement.
Specifically, the simulated monitoring image can reflect the monitoring range of the virtual camera, and according to the simulated monitoring image, whether the monitoring range of the virtual camera meets the monitoring requirement can be judged, if not, the virtual deployment parameter and/or the virtual configuration parameter of the virtual camera can be adjusted, based on the adjusted parameter, the simulated monitoring image corresponding to the virtual camera with the adjusted parameter is obtained again, and whether the simulated monitoring image of the virtual camera with the adjusted parameter meets the monitoring requirement is judged again until the obtained simulated monitoring image meets the monitoring requirement.
In one embodiment of the present application, when adjusting the virtual parameters of the virtual camera, an adjustment instruction input by a user through an external input device may be received, and the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera are adjusted according to the adjustment instruction.
In addition, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera may also be adjusted according to a preset adjustment step size. For example, assuming that the parameter to be adjusted is a focal length and the preset adjustment step is 1 meter, the focal length of the virtual camera may be adjusted by 1 meter each time the focal length of the virtual camera is adjusted.
In an embodiment of the application, a plurality of virtual cameras may be deployed in a scene model, and in this case, monitoring blind areas between field ranges of different virtual cameras may be determined; and adjusting the virtual deployment parameters and/or the virtual configuration parameters of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area.
Specifically, whether a blind area exists in the monitoring areas of the plurality of virtual cameras may be detected, and if so, the virtual parameters of at least one of the plurality of virtual cameras may be adjusted according to the determined blind area. Therefore, the virtual deployment parameters and/or the virtual configuration parameters of at least one virtual camera are adjusted according to the blind areas among different virtual cameras, so that no monitoring blind area exists among different virtual cameras after the parameters are adjusted, the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed, which are obtained based on the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera, are better matched with an actual target scene, and the monitoring effect of the camera to be actually deployed is improved.
In an embodiment of the present application, when determining the monitoring blind area between the view field ranges of different virtual cameras, the monitoring blind area between the view field ranges of different virtual cameras may be determined according to the analog monitoring images corresponding to the plurality of virtual cameras.
Specifically, the analog monitoring image corresponding to each virtual camera may reflect a range of the virtual camera, and in the case that there are multiple virtual cameras, the monitoring blind areas between the monitoring areas of the multiple virtual cameras may be determined according to the monitoring areas reflected by the analog monitoring images corresponding to the multiple virtual cameras.
In addition, the monitoring areas of the virtual cameras can be directly determined according to the virtual deployment parameters and the virtual configuration parameters of the virtual cameras, so that the dead zones among the monitoring areas of the virtual cameras are obtained, and the monitoring dead zones among the view field ranges of different virtual cameras are obtained.
In addition, the monitoring blind area input by the user through the external input device may also be directly received, which is not limited in the embodiment of the present application.
In one embodiment of the application, when the simulated monitoring image is obtained, the view field direction of the virtual camera can be determined according to the virtual deployment parameters of the virtual camera, and the scene model is projected along the view field direction to obtain a projected image; and determining the field of view range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the field of view range to obtain a cut simulated monitoring image.
Specifically, based on the virtual deployment parameters of the virtual camera, the installation position and the orientation of the virtual camera can be determined, so that the field of view direction of the virtual camera is obtained, the scene model is projected along the field of view direction, a projected image can be obtained, the field of view range of the virtual camera can be obtained according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, the projected image is cut according to the field of view range, and a cut image is obtained, wherein the cut image is a simulated monitoring image acquired by the simulated virtual camera.
In addition, in an embodiment of the present application, a field of view range of the virtual camera may also be determined directly according to the virtual deployment parameter and the virtual configuration parameter of the virtual camera, then the scene model is segmented along the field of view range to obtain a scene model in an image acquisition range of the virtual camera, and then the model is projected along a field of view direction of the virtual camera to obtain a simulated monitoring image corresponding to the virtual camera.
In an embodiment of the present application, after determining that the virtual configuration parameters of the virtual camera are the reference configuration parameters of the camera to be deployed in the target scene in step S103, the method may further include:
and determining a recommended camera type with configuration parameters matched with the reference configuration parameters from the camera types of different models obtained in advance.
Specifically, the camera types of cameras of different models and the configuration parameters of the cameras of different camera types may be obtained in advance, and then the camera type whose configuration parameter matches the reference configuration parameter is determined from the camera types as a recommended camera type for recommending a camera installed in the target scene. This facilitates the user in selecting the camera actually deployed in the target scene according to the recommended camera type.
In one embodiment of the present application, when determining a recommended camera type in which the configuration parameter matches the reference configuration parameter, a camera type with the smallest difference between the configuration parameter and the reference configuration parameter may be selected as the recommended camera type;
in addition to this, a camera type with configuration parameters covering the reference configuration parameters may also be selected as the recommended camera type. For example, assuming that the horizontal angle of view in the reference configuration parameters is 60 °, a camera type having a horizontal angle of view of 60 ° or more may be selected as the recommended camera type.
In an embodiment of the application, when determining the recommended camera type, a plurality of recommended camera types matched with the reference configuration parameter may be determined according to the reference configuration parameter of the virtual camera, a selection operation of a user on the plurality of recommended camera types is received, and the camera type selected by the user is used as an actually recommended target camera type. Thus, at least one recommended camera type can be determined by the electronic equipment, and then the user selects the actually needed target camera type from the plurality of recommended camera types.
In an embodiment of the present application, after obtaining the recommended camera type, further:
for any recommended camera type, updating the virtual configuration parameters of the virtual camera according to the configuration parameters of the camera corresponding to the recommended camera type, and executing step S102.
Specifically, for any recommended camera type, the configuration parameters of the camera corresponding to the recommended camera type can be obtained, then the virtual configuration parameters of the virtual camera are updated to the configuration parameters of the camera corresponding to the recommended camera type, and the step S102 is returned to obtain a new simulated monitoring image, wherein the simulated monitoring image can reflect the monitoring range of the camera corresponding to the recommended camera type in practical application, so that a user can conveniently adjust the recommended camera, and the situation that the recommended camera type is not matched with a target scene due to the fact that the configuration parameters of the camera corresponding to the recommended camera type are not matched with reference configuration parameters is avoided.
For example, if the vertical field angle of the determined reference configuration parameter is 90 °, and the maximum vertical field angle of the existing cameras is 75 °, the vertical field angle of the camera corresponding to the recommended camera type cannot reach 90 °, and therefore, when the deployment is performed by using the camera corresponding to the recommended camera type, the simulated monitoring image of the camera may not meet the monitoring requirement. In the above scheme, the virtual configuration parameters of the virtual camera are updated based on the configuration parameters of the camera corresponding to the recommended camera type, so as to obtain a new simulated monitoring image, and the user can conveniently judge whether the camera corresponding to the recommended camera type meets the monitoring requirement through the simulated monitoring image, so that the recommended camera type can be conveniently adjusted, and the reliability of the recommended camera type can be improved.
In an embodiment of the present application, when updating the virtual configuration parameters of the virtual camera based on the configuration parameters of the camera corresponding to the recommended camera type, in one case, only the virtual configuration parameters of the virtual camera may be adjusted; in another case, the virtual configuration parameters and the virtual deployment parameters of the virtual camera can be synchronously adjusted, so that the configuration parameters and the deployment parameters of the virtual camera after adjustment are more matched, and the monitoring effect of the camera is further improved.
In an embodiment of the application, when a simulated monitoring image obtained by using a configuration parameter of a camera corresponding to any recommended camera type as a current virtual configuration parameter meets a monitoring requirement, the recommended camera type is determined to be a target camera type.
Specifically, after the virtual configuration parameters of the virtual camera are updated to the configuration parameters of the camera corresponding to the recommended camera type, the process returns to the step S102, the simulated monitoring image is obtained again, whether the obtained simulated monitoring image meets the monitoring requirement is judged, if yes, the recommended camera type is matched with the target scene, and the recommended camera type can be used as the target camera type of the camera actually deployed in the target scene.
In an embodiment of the application, when a simulated monitoring image obtained by using a configuration parameter of a camera corresponding to any recommended camera type as a current virtual configuration parameter meets a monitoring requirement, a virtual deployment parameter of the current virtual camera may be determined as a target deployment parameter.
Specifically, under the condition that a simulated monitoring image obtained by using a configuration parameter of a camera corresponding to any recommended camera type as a current virtual configuration parameter meets a monitoring requirement, the recommended camera type can be determined as a target camera type, the virtual deployment parameter of the current virtual camera can be determined as a target deployment parameter, and then the camera corresponding to the determined target camera type can be deployed in a target scene according to the target deployment parameter. Therefore, the type of the deployed camera can be matched with the deployment parameters, and the monitoring effect of the camera in a target scene is improved.
In addition, on the basis of the above scheme, when the simulated monitoring image obtained by using the configuration parameter of the camera corresponding to any recommended camera type as the current virtual configuration parameter meets the monitoring requirement, the virtual configuration parameter of the current virtual camera can be obtained as the target configuration parameter.
Specifically, under the condition that the simulated monitoring image obtained by using the configuration parameters of the camera corresponding to any recommended camera type as the current virtual configuration parameters meets the monitoring requirement, it may be determined that the recommended camera type is the target camera type, and the virtual configuration parameters of the current virtual camera are taken as target configuration parameters, the virtual deployment parameters of the current virtual camera are taken as target deployment parameters, so that the camera corresponding to the determined target camera type can be deployed in the target scene according to the target deployment parameter, and the deployed camera is subjected to parameter configuration according to the target configuration parameter, for example, assume that the focal length supported by the camera corresponding to the target camera type is 6 meters to 12 meters, and if the focal length in the determined target configuration parameters is 10 meters, the focal length of the camera corresponding to the target camera type can be configured to be 10 meters. Therefore, the deployed camera can be better matched with a target scene, and the monitoring effect of the camera is improved.
In an embodiment of the present application, when the scene model is obtained in step S101, a user may create a model of a target scene by self-definition, or obtain a model of an externally imported target scene, which is described in detail below.
In an embodiment of the application, for each object used for forming a target scene, according to an actual position of the object in the target scene, the object is drawn at a canvas position corresponding to the actual position in a 2D canvas, preset attribute information of the object is edited, and then 3D rendering is performed on each drawn object to obtain a scene model of the target scene.
Wherein the object refers to: objects used to construct the target scene. For example, assuming that the target scene is a parking lot, the object may be at least one of the following objects: toll gate, diversion line, stop sign, etc.
The preset attribute information of each object may include a general attribute and a private attribute of the object;
the general attribute refers to an attribute that each object has, and may include at least one of the following attributes, for example: name, type, material, identification, location, angle of rotation, status information, etc. The above-mentioned types may include at least one of the following types: buildings, exterior walls, cars, women, men, trees, roads, cameras, custom cubes, custom cylinders, custom prompts, floors, roofs, windows, doors, etc.
For different types of objects, the private attributes are different, for example, assuming that the type of the object is a building, the private attributes may include at least one of the following attributes: floor height, floor number, floor list and the like; assuming that the type of object is a car, the private attributes may include at least one of the following attributes: vehicle type, body length, body height, etc.
The state information comprises a locking state or a non-locking state, wherein the locking state refers to whether the object is changeable or not, and when the object is in the locking state, the object is not changeable; when the object is in the unlocked state, the object is described as being alterable.
The state information may further include a hidden state in which the object is in an invisible state or a non-hidden state in which the object is in a visible state.
Specifically, the distribution of each object in the target scene may be referred to, the shape of each object may be drawn in the 2D canvas, the attribute information of each drawn object may be set, then, the 3D rendering may be performed on each drawn 2D object with the attribute information of each object as a reference, so as to obtain each 3D object, and the target scene may be composed of the 3D objects.
In an embodiment of the application, when the scene model is edited, a customized 3D entity object may be added to the scene model, for example, a 3D entity object such as a fence, a lawn, a street lamp, or the like may be added to the scene model. The 3D entity object is a 3D modeling template used for being customized in advance. When the position of the 3D entity object to be added is determined, the 3D entity object can be added to the designated position in a mouse clicking or dragging mode, the horizontal position of the object to be added can be picked up by clicking the mouse, and then the self-defined 3D entity object is added according to the horizontal position.
In an embodiment of the present application, when obtaining a scene model for simulating a target scene, the method may further include:
obtaining scene design information of a target scene; analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information; and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
The scene design information may be a CAD file of the target scene, and the format of the CAD file may be dwg format or dxf format.
The modeling protocol described above refers to: the protocol is suitable for 3D modeling, for example, preset attribute information of each object described in a CAD file is parsed.
Specifically, scene design information of the target scene can be obtained, the scene design information is used for describing positions, shapes, attributes and the like of all objects in the target scene, the scene design information is analyzed according to a modeling protocol, scene analysis information can be obtained, and then a 3D engine is used for rendering the scene analysis information, so that a 3D model of the target scene can be obtained and used as the scene model.
In one embodiment of the application, editing operation on an object drawn in a 2D canvas can be received, and then 3D rendering is performed based on the edited object, so that a 3D scene model is updated synchronously;
additionally, an editing operation on the 3D scene model may also be received, and then the objects rendered in the 2D canvas are updated based on the edited synchronization.
In an embodiment of the application, the obtained scene model supports import and export, and after the scene model is exported, the obtained scene model can be used as a template for subsequent use in obtaining a new scene model.
The parameter determination method provided by the application can be applied to a client, and an interface of the client is introduced below.
In one embodiment of the application, a scene model and a state of a virtual camera for controlling in the scene model are displayed in a first window of a first interface;
the simulated monitoring image is displayed in a second window of the first interface.
Specifically, the first interface may include a first window and a second window, where the first window may be used to display a scene model and a deployed virtual camera, and the second window may be used to display a simulation monitoring image, etc.;
after the scene model of the target scene is obtained in step S101, the scene model may be displayed in a first window of a first interface of the client;
correspondingly, after the virtual camera is deployed in the scene model, the scene model after the virtual camera is deployed can be displayed in the first window of the first interface;
after the analog monitoring image is obtained in step S102, the analog monitoring image may be displayed in a second window.
In an embodiment of the application, a visual area of the virtual camera may be determined according to the virtual deployment parameter and the virtual configuration parameter of the virtual camera, and then the visual area is displayed in the first window, so that a user can visually observe the monitoring range of the virtual camera from the first window.
In one embodiment of the present application, the second window may also show options of the virtual camera to be deployed in the scene model and virtual parameters of the deployed virtual camera. Therefore, the user can select the virtual camera from the second window to be deployed in the scene model, and the subsequent user can adjust the virtual parameters of the deployed virtual camera through the second window.
Referring to fig. 2, fig. 2 is a schematic view of a first interface according to an embodiment of the present disclosure. The left side of the first interface is a first window, and a scene model of a target scene is displayed in the first window; and a second window is arranged below the right side of the first interface, and an addable virtual camera list is displayed on the second window. The user can select the virtual camera to be added from the second window through the external input device, and then the selected virtual camera is deployed into the scene model of the first window, so that the virtual camera is deployed in the scene model. It should be noted that fig. 2 is only an example of the layout of different windows in the first interface, and the text in fig. 2 does not substantially affect the solution of the present application.
Referring to fig. 3, fig. 3 is a schematic view of another first interface provided in the embodiment of the present application. The left side of the first interface is provided with a first window, and the first window displays a scene model of a target scene and a virtual camera deployed in the scene model; the right side of the first interface is provided with a second window, the second window displays identification, installation mode, distance to a target, target height, installation height and horizontal visual field of the virtual camera, and also displays a simulated monitoring image acquired by simulating the virtual camera, and the simulated monitoring image is used as the simulated monitoring image of the virtual camera, so that a user can conveniently view information of the virtual camera. It should be noted that fig. 3 is only an example of the layout of different windows in the first interface, and the text in fig. 3 does not substantially affect the solution of the present application.
In one embodiment of the application, after determining the reference configuration parameters, switching may be performed from the first interface to the second interface, and the recommended camera type with configuration parameters matching the reference configuration parameters is shown in a third window of the second interface.
Specifically, after the reference configuration parameters are determined in step S103, the first interface may be switched to a second interface, where the second interface includes a third window, and a plurality of recommended camera types to be recommended that are matched with the reference configuration parameters may be displayed in the third window, so that the user may select a camera type of a camera to be actually deployed from the plurality of recommended camera types.
In an embodiment of the application, the second interface further includes a fourth window, and the fourth window is used for displaying the scene model and a state of the virtual camera controlling in the scene model.
Specifically, the second interface may include a third window and a fourth window, where the third window may be used to show the recommended camera type, and the fourth window may be used to show a scene model of the target scene and a virtual camera corresponding to the selected camera type and deployed in the scene model. Therefore, the user can conveniently view the recommended camera type and the deployment effect of the recommended camera type in the scene model in the second interface, and the user can conveniently select the recommended camera type.
Besides, the third window may show the configuration parameters of the camera corresponding to the recommended camera type.
Referring to fig. 4, fig. 4 is a schematic view of a second interface provided in the embodiment of the present application. The left side of the second interface is provided with a fourth window, the fourth window displays a scene model of a target scene and a virtual camera corresponding to the selected camera type deployed in the scene model, the right side of the second interface is provided with a third window, and the third window displays the recommended camera type and parameter information of the camera corresponding to the recommended camera type. It should be noted that fig. 4 is only an example of the layout of different windows in the second interface, and the text in fig. 4 does not substantially affect the solution of the present application.
In an embodiment of the application, the fourth window supports multiple viewing modes, which are a first viewing mode, a second viewing mode, a third viewing mode, and a fourth viewing mode, respectively, where:
the first viewing mode refers to viewing the scene model and the deployed camera in a top-down direction; referring to fig. 5, fig. 5 is a schematic view of a first viewing mode provided by the embodiment of the present application, in which a scene model can be viewed from a fourth window in a top-down direction; it should be noted that fig. 5 is only an example of the layout of the second interface in the first viewing mode, and the text in fig. 5 does not substantially affect the solution of the present application.
The second viewing mode refers to viewing the scene model and the deployed camera in a side-looking direction;
the third viewing mode refers to viewing the scene model in the direction of the field of view of the deployed camera;
the fourth viewing mode refers to: and taking the position of the deployed camera as a reference, viewing the scene model in a surrounding way, and in the mode, a user can control the viewing direction through a mouse, a keyboard, a touch screen and the like.
Referring to fig. 6, fig. 6 is a schematic flowchart of another method for determining parameters of a camera according to an embodiment of the present application, where the method includes the following steps:
s601, obtaining a scene model for simulating a target scene, and displaying the scene model in a first window of a first interface;
s602, determining a virtual camera selected by a user from a second window of the first interface, and deploying the selected virtual camera in a scene model;
s603, simulating the virtual camera to perform set control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image, and displaying the simulated monitoring image and the virtual parameters of the virtual camera in a second window;
s604, under the condition that the simulated monitoring image does not meet the preset monitoring requirement, adjusting the virtual parameters of the virtual camera, and returning to the step S603 until the obtained simulated monitoring image meets the monitoring requirement;
s605, switching from the first interface to a second interface, and selecting a recommended camera type matched with the virtual configuration parameters of the virtual camera in the second interface;
and S606, obtaining the virtual deployment parameters in the adjusted virtual parameters of the virtual camera, and taking the virtual deployment parameters as the deployment parameters of the camera corresponding to the selected recommended camera type and installed in the target scene.
In the scheme provided by the embodiment, a scene model for simulating a target scene can be obtained, and a virtual camera is deployed in the scene model; simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment.
The present application further provides a parameter determining apparatus, which is described in detail below.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a parameter determining apparatus of a camera according to an embodiment of the present application, where the apparatus includes:
a scene model obtaining module 701, configured to obtain a scene model for simulating a target scene;
a virtual camera deployment module 702 for deploying a virtual camera in the scene model;
an image obtaining module 703, configured to simulate, according to virtual parameters of the virtual camera, the virtual camera to perform deployment control in the scene model, so as to obtain a simulated monitoring image, where the virtual parameters include virtual deployment parameters and virtual configuration parameters;
a parameter determining module 704, configured to determine, when the simulated monitoring image meets the monitoring requirement, a virtual deployment parameter and/or a virtual configuration parameter of the virtual camera as a reference deployment parameter and/or a reference configuration parameter of a camera to be deployed in the target scene.
In an embodiment of the present application, the image obtaining module 703 is specifically configured to:
determining the field of view direction of the virtual camera according to the virtual deployment parameters of the virtual camera, and projecting the scene model along the field of view direction to obtain a projected image;
and determining the field of view range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the field of view range to obtain a cut simulation monitoring image.
In an embodiment of the present application, the apparatus further includes a type recommendation module, configured to:
after the virtual configuration parameters of the virtual camera are determined as the reference configuration parameters of the camera to be deployed in the target scene, determining a recommended camera type with configuration parameters matched with the reference configuration parameters from the camera types of different models obtained in advance.
In an embodiment of the present application, the apparatus further includes a parameter updating module, configured to:
after determining the recommended camera type with configuration parameters matching the reference configuration parameters, for any recommended camera type, according to the configuration parameters of the camera corresponding to the recommended camera type, the virtual configuration parameters of the virtual camera are updated, and the image obtaining module 703 is triggered.
In one embodiment of the present application, the scene model and the state of the virtual camera in the scene model are displayed in a first window of a first interface;
the simulation monitoring image is displayed in a second window of the first interface;
the device also comprises an interface switching module used for:
after the virtual configuration parameters of the virtual camera are determined to be the reference configuration parameters of the camera to be deployed in the target scene, switching from the first interface to a second interface, and displaying a recommended camera type with configuration parameters matched with the reference configuration parameters in a third window of the second interface;
the second interface further comprises a fourth window, and the fourth window displays the scene model and the state of the virtual camera in the scene model.
In an embodiment of the present application, the apparatus further includes a parameter adjusting module, configured to:
under the condition that the simulated monitoring image does not meet the monitoring requirement, adjusting virtual deployment parameters and/or virtual configuration parameters of the virtual camera, and triggering the image obtaining module 703 until the simulated monitoring image meets the monitoring requirement; and/or
A plurality of virtual cameras are deployed in the scene model, and the device further comprises a blind area elimination module for:
determining monitoring blind areas among the view field ranges of different virtual cameras; adjusting a virtual deployment parameter and/or a virtual configuration parameter of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area; and/or
The scene model obtaining module 701 is specifically configured to:
obtaining scene design information of a target scene;
analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information;
and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
In the scheme provided by the embodiment, a scene model for simulating a target scene can be obtained, and a virtual camera is deployed in the scene model; simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment.
Embodiments of the present application also provide an electronic device, as shown in fig. 8a, comprising a processor 801 and a memory 803,
a memory 803 for storing a computer program; the processor 801 is configured to implement the above-described method for determining parameters of the camera when executing the program stored in the memory 803.
Optionally, as shown in fig. 8b, the electronic device further includes a communication interface 802 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804. The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the parameter determination method of any one of the above-mentioned cameras.
In a further embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for determining parameters of any of the above-described embodiments.
In the scheme provided by the embodiment, a scene model for simulating a target scene can be obtained, and a virtual camera is deployed in the scene model; simulating a virtual camera to perform set control in a scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters; and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene. In this way, a virtual camera can be deployed in the scene model, a monitoring image is obtained through simulation of virtual parameters of the virtual camera, whether the virtual parameters of the virtual camera meet monitoring requirements or not is judged according to the simulated monitoring image, if so, the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera can be determined as reference deployment parameters and/or reference configuration parameters of the camera to be deployed in the target scene actually, and then the deployment parameters and/or the configuration parameters of the camera to be deployed in the target scene actually can be determined based on the reference deployment parameters and/or the reference configuration parameters, so that the determined parameters of the camera are matched with the real target scene. Therefore, the accuracy of the determined camera parameters can be improved by applying the scheme provided by the embodiment.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, apparatus embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments are substantially similar to method embodiments and therefore are described with relative ease, as appropriate, with reference to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A method for determining parameters of a camera, the method comprising:
obtaining a scene model for simulating a target scene, deploying a virtual camera in the scene model;
simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters;
and under the condition that the simulated monitoring image meets the monitoring requirement, determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene.
2. The method according to claim 1, wherein the simulating the virtual camera according to the virtual parameters of the virtual camera to deploy in the scene model to obtain a simulated monitoring image comprises:
determining the field of view direction of the virtual camera according to the virtual deployment parameters of the virtual camera, and projecting the scene model along the field of view direction to obtain a projected image;
and determining the field of view range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the field of view range to obtain a cut simulation monitoring image.
3. The method of claim 1, wherein after determining the virtual configuration parameters of the virtual camera as the reference configuration parameters of the camera to be deployed in the target scene, the method further comprises:
and determining a recommended camera type with configuration parameters matched with the reference configuration parameters from the camera types of different models obtained in advance.
4. The method of claim 3, wherein after determining the recommended camera type for which configuration parameters match the reference configuration parameters, the method further comprises:
and aiming at any recommended camera type, updating the virtual configuration parameters of the virtual camera according to the configuration parameters of the camera corresponding to the recommended camera type, and executing the step of simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain a simulated monitoring image.
5. The method of claim 3,
the scene model and the state of the virtual camera in the scene model are displayed in a first window of a first interface;
the simulation monitoring image is displayed in a second window of the first interface;
after the determining the virtual configuration parameters of the virtual camera as the reference configuration parameters of the camera to be deployed in the target scene, the method further includes:
switching from the first interface to a second interface, and displaying a recommended camera type with configuration parameters matched with the reference configuration parameters in a third window of the second interface;
the second interface further comprises a fourth window, and the fourth window displays the scene model and the state of the virtual camera in the scene model.
6. The method according to any one of claims 1-5, further comprising:
under the condition that the simulated monitoring image does not meet the monitoring requirement, adjusting virtual deployment parameters and/or virtual configuration parameters of the virtual camera, and returning to the step of simulating the virtual camera to perform deployment control in the scene model according to the virtual parameters of the virtual camera to obtain the simulated monitoring image until the simulated monitoring image meets the monitoring requirement; and/or
A plurality of virtual cameras are deployed in the scene model, and the method further comprises:
determining monitoring blind areas among the view field ranges of different virtual cameras;
adjusting a virtual deployment parameter and/or a virtual configuration parameter of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area; and/or
The obtaining of the scene model for simulating the target scene includes:
obtaining scene design information of a target scene;
analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information;
and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
7. An apparatus for determining parameters of a camera, the apparatus comprising:
the scene model obtaining module is used for obtaining a scene model for simulating a target scene;
a virtual camera deployment module to deploy a virtual camera in the scene model;
the image obtaining module is used for simulating the virtual camera to perform deployment control in the scene model according to virtual parameters of the virtual camera to obtain a simulated monitoring image, wherein the virtual parameters comprise virtual deployment parameters and virtual configuration parameters;
and the parameter determining module is used for determining the virtual deployment parameters and/or the virtual configuration parameters of the virtual camera as the reference deployment parameters and/or the reference configuration parameters of the camera to be deployed in the target scene under the condition that the simulated monitoring image meets the monitoring requirement.
8. The apparatus according to claim 7, wherein the image acquisition module is specifically configured to:
determining the field of view direction of the virtual camera according to the virtual deployment parameters of the virtual camera, and projecting the scene model along the field of view direction to obtain a projected image;
determining a view field range of the virtual camera according to the virtual deployment parameters and the virtual configuration parameters of the virtual camera, and cutting the projected image according to the view field range to obtain a cut simulation monitoring image;
the apparatus also includes a type recommendation module to:
after the virtual configuration parameters of the virtual camera are determined as reference configuration parameters of the camera to be deployed in the target scene, determining a recommended camera type with configuration parameters matched with the reference configuration parameters from camera types of different types obtained in advance;
the apparatus further comprises a parameter update module to:
after the recommended camera type with the configuration parameters matched with the reference configuration parameters is determined, updating the virtual configuration parameters of the virtual camera according to the configuration parameters of the camera corresponding to the recommended camera type aiming at any recommended camera type, and triggering the image obtaining module;
the scene model and the state of the virtual camera in the scene model are displayed in a first window of a first interface;
the simulation monitoring image is displayed in a second window of the first interface;
the device also comprises an interface switching module used for:
after the virtual configuration parameters of the virtual camera are determined to be the reference configuration parameters of the camera to be deployed in the target scene, switching from the first interface to a second interface, and displaying a recommended camera type with configuration parameters matched with the reference configuration parameters in a third window of the second interface;
the second interface further comprises a fourth window, and the fourth window displays the scene model and the state of the virtual camera in the scene model;
the apparatus further comprises a parameter adjustment module configured to:
under the condition that the simulated monitoring image does not meet the monitoring requirement, adjusting virtual deployment parameters and/or virtual configuration parameters of the virtual camera, and triggering the image obtaining module until the simulated monitoring image meets the monitoring requirement; and/or
A plurality of virtual cameras are deployed in the scene model, and the device further comprises a blind area elimination module for:
determining monitoring blind areas among the view field ranges of different virtual cameras; adjusting a virtual deployment parameter and/or a virtual configuration parameter of at least one virtual camera in the plurality of virtual cameras according to the determined monitoring blind area; and/or
The scene model obtaining module is specifically configured to:
obtaining scene design information of a target scene;
analyzing the scene design information according to a preset modeling protocol to obtain scene analysis information;
and establishing a 3D model by using a 3D engine according to the scene analysis information to obtain a scene model.
9. An electronic device comprising a processor and a memory;
a memory for storing a computer program;
a processor for implementing the method of any one of claims 1 to 6 when executing a program stored in a memory.
10. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-6.
CN202111138970.4A 2021-09-27 2021-09-27 Camera parameter determination method and device, electronic equipment and program product Pending CN113824882A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111138970.4A CN113824882A (en) 2021-09-27 2021-09-27 Camera parameter determination method and device, electronic equipment and program product
PCT/CN2022/116506 WO2023045726A1 (en) 2021-09-27 2022-09-01 Method and apparatus for determining camera parameters, electronic device and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138970.4A CN113824882A (en) 2021-09-27 2021-09-27 Camera parameter determination method and device, electronic equipment and program product

Publications (1)

Publication Number Publication Date
CN113824882A true CN113824882A (en) 2021-12-21

Family

ID=78921371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138970.4A Pending CN113824882A (en) 2021-09-27 2021-09-27 Camera parameter determination method and device, electronic equipment and program product

Country Status (2)

Country Link
CN (1) CN113824882A (en)
WO (1) WO2023045726A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115461707A (en) * 2022-07-08 2022-12-09 上海莉莉丝科技股份有限公司 Video acquisition method, electronic device, storage medium, and program product
WO2023045726A1 (en) * 2021-09-27 2023-03-30 杭州海康威视数字技术股份有限公司 Method and apparatus for determining camera parameters, electronic device and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002662A1 (en) * 2003-07-01 2005-01-06 Sarnoff Corporation Method and apparatus for placing sensors using 3D models
CN102685394A (en) * 2011-01-31 2012-09-19 霍尼韦尔国际公司 Sensor placement and analysis using a virtual environment
CN102867086A (en) * 2012-09-10 2013-01-09 安科智慧城市技术(中国)有限公司 Automatic deploying method for monitoring camera, system and electronic equipment
US9665800B1 (en) * 2012-10-21 2017-05-30 Google Inc. Rendering virtual views of three-dimensional (3D) objects
CN113438469A (en) * 2021-05-31 2021-09-24 深圳市大工创新技术有限公司 Automatic testing method and system for security camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076320A (en) * 2016-11-17 2018-05-25 天津凯溢华升科技发展有限公司 A kind of city technological service safety protection method
CN113824882A (en) * 2021-09-27 2021-12-21 杭州海康威视数字技术股份有限公司 Camera parameter determination method and device, electronic equipment and program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002662A1 (en) * 2003-07-01 2005-01-06 Sarnoff Corporation Method and apparatus for placing sensors using 3D models
CN102685394A (en) * 2011-01-31 2012-09-19 霍尼韦尔国际公司 Sensor placement and analysis using a virtual environment
CN102867086A (en) * 2012-09-10 2013-01-09 安科智慧城市技术(中国)有限公司 Automatic deploying method for monitoring camera, system and electronic equipment
US9665800B1 (en) * 2012-10-21 2017-05-30 Google Inc. Rendering virtual views of three-dimensional (3D) objects
CN113438469A (en) * 2021-05-31 2021-09-24 深圳市大工创新技术有限公司 Automatic testing method and system for security camera

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045726A1 (en) * 2021-09-27 2023-03-30 杭州海康威视数字技术股份有限公司 Method and apparatus for determining camera parameters, electronic device and program product
CN115461707A (en) * 2022-07-08 2022-12-09 上海莉莉丝科技股份有限公司 Video acquisition method, electronic device, storage medium, and program product
CN115461707B (en) * 2022-07-08 2023-10-13 上海莉莉丝科技股份有限公司 Video acquisition method, electronic device and storage medium
WO2024007290A1 (en) * 2022-07-08 2024-01-11 上海莉莉丝科技股份有限公司 Video acquisition method, electronic device, storage medium, and program product
US11914837B2 (en) 2022-07-08 2024-02-27 Shanghai Lilith Technology Corporation Video acquisition method, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2023045726A1 (en) 2023-03-30

Similar Documents

Publication Publication Date Title
KR101937096B1 (en) 3D monitoring server using 3D BIM object model and 3D monitoring system comprising it
Roh et al. An object-based 3D walk-through model for interior construction progress monitoring
US20230245393A1 (en) Methods and systems for wireframes of a structure or element of interest and wireframes generated therefrom
CA3054299C (en) Improved building model with capture of as built features and experiential data
WO2023045726A1 (en) Method and apparatus for determining camera parameters, electronic device and program product
US20160286351A1 (en) Indoor navigation anomaly detection
CN107767108A (en) LOD saddlebags
CN111222190A (en) Ancient building management system
US20190050502A1 (en) Building model with capture of as built features and experiential data
US20150186559A1 (en) X-ray vision for buildings
US20230245412A1 (en) Method and system for curating a virtual model for feature identification
CA3203691A1 (en) System and method to process and display information related to real estate by developing and presenting a photogrammetric reality mesh
Liu et al. Image-based semantic construction reconstruction
Sepasgozar et al. Utilisation of a new terrestrial scanner for reconstruction of as-built models: A comparative study
KR102231640B1 (en) Smart building construction site and building monitoring and control system
CN114186011A (en) Management method and device based on electronic fence, computer equipment and storage medium
CN112396997B (en) Intelligent interactive system for shadow sand table
KR20160059243A (en) Simulation system for integrated monitoring using 3D modeling
WO2020068156A1 (en) Method and apparatus for orienteering
JP5406773B2 (en) Security measure support device
EP3069175A1 (en) Photovoltaic shade impact prediction
CN114090147A (en) Data processing method based on geographic information platform
CN114528425A (en) Three-dimensional visualization system and method for intelligent building
KR20160059246A (en) 3D modeling system for integrated monitoring
CN110826120A (en) Processing method of house structure image and related device

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