Camera device control method, camera device position processing method, and related device

By obtaining the visual area and position of the camera device model in the target space, and automatically determining the target camera device using electronic devices, the problem of inefficient management of camera equipment in the security system is solved, and efficient and accurate equipment search and installation are achieved.

WO2025152814A1PCT designated stage expired Publication Date: 2025-07-24BOE TECHNOLOGY GROUP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/070987
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-18
Filing Date
2025-01-07
Publication Date
2025-07-24

AI Technical Summary

Technical Problem

The location setting and search management of camera equipment in existing security systems rely on manual experience, low processing efficiency, and difficult to guarantee search accuracy.

Method used

By obtaining the field of sight and target position of the camera device model associated with the target space, the target camera device model is automatically determined using electronic devices, and based on the corresponding relationship between the camera device model and the camera device, the video of the target camera device is quickly found and obtained.

Benefits of technology

It improves the efficiency and search accuracy of camera equipment management, reduces the dependence on manual experience, and simplifies the installation and debugging process of camera equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025070987_24072025_PF_FP_ABST
    Figure CN2025070987_24072025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a camera device control method, a camera device position processing method, and a related device, which can improve the management efficiency of camera devices by a security and protection system, and provides a relatively high accuracy in terms of finding a camera device. The camera device control method comprises: acquiring a field of view of each camera device model among camera device models associated with a target space, wherein the target space is any space in a preset scene model, the scene model comprising at least one space and a plurality of camera device models (S101); acquiring a target position, wherein the target position is any position in the target space (S102); on the basis of the target position, determining at least one target camera device model from among the associated camera device models, wherein a target field of view of the target camera device model and the target position satisfy a position relationship condition (S103); on the basis of a correspondence between the camera device models and camera devices, determining a target camera device corresponding to any target camera device model from among the at least one target camera device model (S104); and acquiring a video captured by the target camera device (S105).
Need to check novelty before this filing date? Find Prior Art

Description

Camera device control method, camera device position processing method and related equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on January 18, 2024, with application number 202410072654.9 and entitled "Camera Device Control Method, Camera Device Position Processing Method and Related Devices," the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of electronic technology and discloses a camera device control method, a camera device position processing method and related devices. Background Art

[0004] With the widespread use of video-based security systems, the demand for security system management is increasing. The deployment of video cameras in security systems generally relies on manual experience. After the cameras are installed on-site, repeated physical debugging is performed to determine the ideal installation point, height, angle, and other location information. In addition, when using the security system to retrieve video footage captured by cameras in a certain area, it is necessary to rely on manual memory or the names of the cameras to find the cameras in that area among the many cameras. If the location information of the camera is not accurately recorded or the name of the camera is not accurately named, it is impossible to accurately find the correct camera. It is necessary to retrieve the videos captured by the camera multiple times and manually compare them to find the camera in the area.

[0005] It can be seen that the location setting and search management methods of camera equipment in existing security systems all rely on manual experience, resulting in low processing efficiency and difficulty in ensuring the accuracy of searching for camera equipment. Summary of the Invention

[0006] The present application provides a camera device control method, a camera device position processing method and related equipment, which are used to improve the efficiency of camera device management in a security system and have a high accuracy rate in finding camera devices.

[0007] In a first aspect, embodiments of the present application provide a camera device control method that can be executed by an electronic device. The method can be applied to a security system to control multiple cameras in the security system. The method may include:

[0008] Obtaining the field of view of each camera model in the camera models associated with a target space, wherein the target space is any space in a preset scene model, and the scene model includes at least one space and multiple camera models;

[0009] Acquire a target position, where the target position is any position in the target space;

[0010] Based on the target position, determining at least one target camera device model from the associated camera device models, wherein a target field of view of the target camera device model satisfies a positional relationship condition with the target position;

[0011] Based on the correspondence between the camera device models and the camera devices, determining the target camera device corresponding to any target camera device model from at least one target camera device model;

[0012] Obtain the video captured by the target camera device.

[0013] In one possible implementation, in the camera device control method provided in an embodiment of the present application, the camera device model associated with the target space includes multiple types of camera device models, and the multiple types are configured with multiple filtering orders, wherein the filtering order of each type is different;

[0014] The step of determining a target camera device model from the associated camera device models based on the target position includes:

[0015] Based on the sorting of the screening orders of the multiple types, determining whether the target camera device model is included in the camera device model of the first type, the first type being the first order corresponding type in the sorting;

[0016] And for the types corresponding to each order in the sorting, when it is determined that the camera device model of the type corresponding to each order does not include the target camera device model, it is determined whether the camera device model of the type corresponding to the next order includes the target camera device model.

[0017] In a possible implementation, in the camera device control method provided in the embodiment of the present application, the position relationship condition includes any one of the following conditions:

[0018] The target visual area includes the target position; or,

[0019] The field of view of each camera model does not include the target position, and among the distances between the field of view of each camera model and the target position, the distance between the target field of view and the target position is the smallest.

[0020] In one possible implementation, in the camera device control method provided in an embodiment of the present application, in a preset three-dimensional coordinate system, if the number of intersections between the target ray and the target field of view is an odd number, then the target field of view includes the target position, wherein the endpoint position of the target ray is the target position, and the extension direction of the target ray is parallel to any coordinate axis in the three-dimensional coordinate system.

[0021] In a possible implementation, in the camera device control method provided in an embodiment of the present application, the at least one target camera model includes a plurality of target camera device models;

[0022] The determining, based on the correspondence between the camera device models and the camera devices, a target camera device corresponding to any target camera device model from at least one target camera device model includes:

[0023] selecting a target camera device model from the plurality of target camera device models according to a selection rule;

[0024] Based on the correspondence between the camera device model and the camera device, the target camera device corresponding to the selected target camera device model is determined.

[0025] In a second aspect, embodiments of the present application provide a method for processing the position of a camera device, which can be performed by an electronic device. The method can be applied to a security system to assist in determining the installation location of the camera device. The method may include:

[0026] Display a scene model corresponding to the target scene, wherein the scene model includes at least one space;

[0027] receiving a position configuration instruction for any camera device model, wherein the position configuration instruction includes a selected position in any space of the at least one space;

[0028] determining a viewing area of ​​any one of the camera device models according to the selected position and operating parameters corresponding to the camera device model, the operating parameters corresponding to the camera device model being the same as operating parameters of the camera device corresponding to the camera device model;

[0029] The viewing area of ​​the camera model is displayed in the any space.

[0030] In a possible implementation manner, the camera device position processing method provided in the embodiment of the present application may further include:

[0031] The camera device model is displayed at the selected position.

[0032] In a possible implementation manner, the camera device position processing method provided in the embodiment of the present application may further include:

[0033] receiving an installation angle configuration instruction of any camera device model, wherein the installation angle configuration instruction includes an installation angle parameter;

[0034] generating a simulation image corresponding to a target viewpoint, wherein the target viewpoint is determined based on the selected position in the any space and the installation angle parameter;

[0035] The simulation image is displayed.

[0036] In a possible implementation, in the camera device position processing method provided in an embodiment of the present application, displaying the viewing area of ​​the camera device model in the space includes:

[0037] Performing collision detection between the viewing area and an object model in the space;

[0038] determining an actual viewing area of ​​the viewing area in any one of the spaces based on a detection result of the collision detection;

[0039] The actual viewing area of ​​the camera model is displayed in the any space.

[0040] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;

[0041] The memory is used to store computer program instructions;

[0042] The processor executes the computer program instructions to implement the steps or operations in the first aspect and any possible implementation manner thereof.

[0043] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;

[0044] The memory is used to store computer program instructions;

[0045] The processor executes the computer program instructions to implement the steps or operations in the second aspect and any possible implementation manner thereof.

[0046] In a fifth aspect, an embodiment of the present application provides an electronic device, which may include the electronic device provided in the third aspect and multiple camera devices.

[0047] The electronic device is configured to obtain a field of view of each camera model in a camera model associated with a target space, wherein the target space is any space in a preset scene model, and the scene model includes at least one space and a plurality of camera models;

[0048] Acquire a target position, where the target position is any position in the target space;

[0049] Based on the target position, determining at least one target camera device model from the associated camera device models, wherein a target field of view of the target camera device model satisfies a positional relationship condition with the target position;

[0050] Based on the correspondence between the camera device models and the camera devices, determining the target camera device corresponding to any target camera device model from at least one target camera device model;

[0051] Obtain the video captured by the target camera device.

[0052] In a sixth aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the steps or operations in the first aspect and any possible implementation thereof.

[0053] In the seventh aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the steps or operations in the second aspect and any possible implementation thereof.

[0054] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, which, when executed by an electronic device, implements the steps or operations described above in the first aspect and any possible implementation thereof.

[0055] In a ninth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when executed by a network device, implements the steps or operations described above in the second aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0057] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0058] FIG2 is a flow chart of a method for controlling an imaging device according to an embodiment of the present application;

[0059] FIG3 is a schematic diagram of a scene model provided in an embodiment of the present application;

[0060] FIG4A is a schematic diagram of the relationship between a space and a camera device model provided in an embodiment of the present application;

[0061] FIG4B is a schematic diagram of the relationship between a space and a camera device model provided in an embodiment of the present application;

[0062] FIG5 is a flow chart of a camera device control method provided by an embodiment of the present application;

[0063] FIG6A is a schematic diagram of a position relationship between a position and a viewing area provided in an embodiment of the present application;

[0064] FIG6B is a schematic diagram of a position relationship between a position and a viewing area provided in an embodiment of the present application;

[0065] FIG7 is a flow chart of a method for processing the position of an imaging device provided in an embodiment of the present application;

[0066] FIG8 is a schematic diagram of a viewing area provided in an embodiment of the present application;

[0067] FIG9 is a schematic diagram of the relationship between a camera coordinate system and an image coordinate system provided in an embodiment of the present application;

[0068] FIG10 is a schematic diagram of a viewpoint coordinate system provided in an embodiment of the present application;

[0069] FIG11 is a schematic diagram showing the effect of displaying a visual field in a scene model according to an embodiment of the present application;

[0070] FIG12A is a simulation image provided by an embodiment of the present application;

[0071] FIG12B is an image captured by a camera device according to an embodiment of the present application;

[0072] FIG13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0074] In addition, in the embodiments of the present application, relational terms such as "first" and "second" are used to distinguish one entity from another entity. This is only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.

[0075] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0076] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of the technical solutions of this application, but not all of them. Based on the embodiments described in this application document, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the technical solutions of this application.

[0077] This application provides a camera device control method, a camera device location processing method, and related devices for use in security systems to improve camera device management efficiency and achieve high accuracy in locating camera devices. The method and related devices are based on the same technical concept. Since the method and related devices solve similar problems, the implementation of the devices and method can refer to each other, and any repetitions will not be repeated.

[0078] FIG1 is a schematic diagram illustrating an exemplary application scenario. The present application provides a security system, as shown in FIG1 . The security system 100 generally includes a control device and one or more camera devices. Camera devices may also be generally referred to as video cameras, cameras, etc. In the embodiments of the present application, a camera device may refer to an electronic device with a camera function.

[0079] The camera device can send the captured image (or collected image) to the storage device. The camera device and the storage device can interact based on any data transmission protocol, and the data transmission protocol may include a video transmission protocol, an image transmission protocol, etc. The camera device can send the captured image to the storage device in real time or periodically. Optionally, the control device can be integrated with the storage device. Alternatively, the control device has a storage function, and the control device can be implemented as the storage device. The control device can obtain (or retrieve) the captured image of any camera device from itself or from the storage device.

[0080] In the embodiments of the present application, the camera device can be a camera device based on any imaging technology. The camera device may include, but is not limited to, video capture, recording, and storage functions, and the embodiments of the present application do not specifically limit these functions. The camera device can be any type of camera device, such as a cylindrical camera device, a hemispherical camera device, or a spherical camera device.

[0081] Optionally, the aforementioned multiple camera devices may include one or more types of camera devices.

[0082] FIG2 exemplarily shows a camera device control method that can be executed by an electronic device and can be applied to the management of camera devices in a security system. The camera device control method may include the following steps:

[0083] Step S101 : obtaining the field of view of each camera model in the camera models associated with a target space, wherein the target space is any space in a preset scene model, and the scene model includes at least one space and a plurality of camera models.

[0084] Step S102: Acquire a target position, where the target position is any position in the target space.

[0085] Step S103 : Based on the target position, determine at least one target camera device model from the associated camera device models, wherein a target field of view of the target camera device model satisfies a positional relationship condition with the target position.

[0086] Step S104 : Based on the correspondence between the camera device models and the camera devices, a target camera device corresponding to any target camera device model is determined from at least one target camera device model.

[0087] Step S105: Acquire the video captured by the target camera device.

[0088] In the camera device control method provided in the embodiment of the present application, based on virtual reality simulation technology, the user can set the target position in the space of the scene model so that the electronic device can collect the field of view of the camera device model and determine the target camera device model corresponding to the camera device that meets the user's needs from the camera device models associated with the space. The electronic device can determine the target camera device based on the correspondence between the camera device model and the camera device. In this way, the user does not need to compare the relationship between the position and the camera device by himself. The user can simply select the position from the scene model, and the electronic device can provide the user with a camera device that is close to the position, or a camera device that can capture the position. It can be seen that the camera device control method provided in the embodiment of the present application can reduce the dependence on manual experience, and has a higher accuracy rate in finding camera devices and management efficiency.

[0089] The following is a detailed introduction to the camera device control method provided in the embodiment of the present application.

[0090] In step S101, the electronic device may obtain the field of view of each camera model in the camera models associated with a target space, where the target space is any space in a preset scene model, and the scene model includes at least one space and multiple camera models.

[0091] In specific implementations, the electronic device may pre-store scene models. The scene models may be three-dimensional simulation models of preset scenes. Pre-set scenes may include, but are not limited to, airports, train stations, stadiums, shopping malls, supermarkets, buildings, and other architectural scenes; transportation scenes such as highways and railways; and other scenes such as squares, rivers, and pipelines.

[0092] The scene model may include one or more spaces, wherein the scope of each space may be divided according to the building structure or pre-configured. The scopes of the spaces do not overlap or overlap. The scene model may include multiple camera device models, and the field of view information of each camera device model is predetermined. Each camera device model may be implemented as a three-dimensional simulation model of the camera device. Optionally, the scene model may also include models of scene-related objects, such as tables, chairs, trees, flower beds, pools, sculptures, and other objects that can form the scene layout.

[0093] In some examples, an electronic device can model a scene based on the original AutoCAD drawing of the scene, and the origin coordinates of the scene model can be the same as the coordinates of the AutoCAD drawing of the scene. Figure 3 illustrates a schematic diagram of a scene model. The scene model shows multiple spaces, such as building spaces, green spaces, road spaces, etc. Optionally, the electronic device can use the scene model to display roaming perspectives of different angles, different methods, and different speeds to the user, allowing the user to observe the scene and surrounding environment as if they were there.

[0094] Any space in a scene model can be configured with a camera model. In other words, any space can have an associated camera model. The number of camera models associated with different spaces can vary, and the camera models associated with each space can be related based on the camera configured in that space in the actual scene.

[0095] In some examples, a camera model associated with a space may be a camera model located within the space, as shown in FIG4A . In other examples, a camera model associated with a space may be a camera model located within a preset range outside the space, as shown in FIG4B . For example, the preset range outside the space may be a range outside the space whose distance from any location within the space is less than a first distance threshold. The first distance threshold may be configured based on actual application circumstances.

[0096] The electronic device may pre-store the correspondence between each camera device and the camera device model in the preset scene, wherein a camera device model can uniquely represent (or represent, or refer to) a camera device. In other words, in the embodiment of the present application, the camera devices in the scene and the camera device models in the scene model are in a one-to-one correspondence.

[0097] Optionally, the camera device model and the physical appearance of the camera device corresponding to the camera device model are identical or similar. Alternatively, the camera device model is a preset three-dimensional simulation model that can represent the model of the camera device. The camera device model and the physical appearance of the camera device corresponding to the camera device model may be partially similar or completely different. This embodiment of the present application does not specifically limit this.

[0098] An electronic device can display a scene model, allowing users to control the camera within the scene model, such as by retrieving video, by operating the scene model. Users can operate the camera in any space within the scene model. For ease of description, the space currently selected by the user can be referred to as the target space.

[0099] In step S102, the electronic device can obtain the target position. The user can select any position in the scene model, and the selected position can be recorded as the target position for the convenience of introduction. In some examples, the user can select any position in the scene model through a command input device connected to the electronic device. Optionally, the command input device may include but is not limited to a mouse, a keyboard, and a touch component. In other examples, the electronic device may include a touch display, and the user can select any position in the scene model by operating on the touch display. In some other examples, the electronic device may have a voice recognition function and an audio acquisition function. The user can indicate the position selected by the user to the electronic device through voice, and the electronic device can determine the position selected by the user in the model scene by recognizing the position information contained in the voice.

[0100] In step S103 , the electronic device may determine at least one target camera device model from the camera device models associated with the target space based on the target position, wherein the target field of view and the target position of each target camera device model meet the position relationship condition.

[0101] For example, there are multiple camera models associated with the target space. The electronic device can determine at least one target camera model from the multiple camera models associated with the target space. In the embodiment of the present application, the target camera model can represent a camera model whose field of view and target position meet the positional relationship condition.

[0102] The location relationship conditions can be flexibly configured according to the actual application. In some examples, the location relationship conditions may include but are not limited to one or more of the following conditions:

[0103] Condition 1: The target field of view contains the target position, that is, the target position is within the spatial range of the target field of view.

[0104] Condition 2: The fields of view of each camera model associated with the target space do not include the target position, and among the distances between the fields of view of each camera model and the target position, the distance between the target field of view and the target position is the smallest.

[0105] Optionally, when the electronic device determines the distance between any field of view and the target position, the minimum distance value among the multiple distance values ​​between each position in the field of view and the target position can be used as the distance between the field of view and the target position. Alternatively, when the electronic device determines the distance between any field of view and the target position, the distance between the center position of the field of view and the target position can be used as the distance between the field of view and the target position. Alternatively, when the electronic device determines the distance between any field of view and the target position, the distance between a specified position (such as the farthest position or the nearest position) of the field of view in a preset direction in a preset coordinate system and the target position can be used as the distance between the field of view and the target position. This embodiment of the application does not specifically limit this.

[0106] In one possible design, if the fields of view of all camera device models associated with the target space do not include the target position, the electronic device can display a prompt message to prompt that no camera device has a field of view that includes the target position, that is, no camera device covers the target position, and / or to prompt to reselect another position.

[0107] The electronic device may determine the imaging device model that meets condition 1 or condition 2 as the target imaging device model.

[0108] In some examples, the positional relationship condition may include condition 1. Assume that the camera models associated with the target space include camera model 1, camera model 2, and camera model 3. The field of view of camera model 1 includes the target location, the field of view of camera model 2 does not include the target location, and the field of view of camera model 3 includes the target location. The target camera models that can be determined by the electronic device may include camera model 1 and camera model 3.

[0109] In other examples, the position relationship condition may include condition 2. Assume that the camera models associated with the target space include camera model 1, camera model 2, and camera model 3. Among them, the field of view of camera model 1 does not include the target position, the field of view of camera model 2 does not include the target position, and the field of view of camera model 3 does not include the target position. Among the distances between the fields of view of each camera model in camera models 1, 2, and 3 and the target position, the distance between the field of view of camera model 1 and the target position is the smallest, that is, the field of view of camera model 1 is closest to the target position. The target camera model determined by the electronic device may include camera model 1.

[0110] Optionally, the electronic device may display the determined target camera model in a scene model according to a preset display method, so that the target camera model can be visually distinguished from other camera models. Optionally, the preset display method may include, but is not limited to, one or more combinations of display methods, such as changing color, using dynamic display effects, and increasing the display scale. The electronic device may select any target camera model in the scene model.

[0111] Alternatively, the electronic device may determine the camera corresponding to each target camera model based on the correspondence between the camera model and the camera, for easy distinction, and record the camera corresponding to the target camera model as the target camera.

[0112] The electronic device may display a list of information about each target camera. The list may include the name of each target camera or its location in space. In practical applications, the location information of the camera may include a description of its location in space, such as "east side of a room." The user may select any target camera from the list.

[0113] In step S104 , the electronic device may determine a target imaging device corresponding to any target imaging device model from at least one target imaging device model based on the correspondence between the imaging device models and the imaging devices.

[0114] The correspondence between the camera model and the camera may include a camera model identifier and an identifier of the camera corresponding to the camera model. One camera model identifier corresponds to one camera identifier, and one camera identifier corresponds to one camera model identifier.

[0115] In one possible implementation, a user selects a target camera model from a scene model. The electronic device may obtain the target camera selected by the user. Based on the correspondence between camera models and camera devices, the electronic device may determine the target camera corresponding to the selected target camera model. The electronic device may obtain a video captured by the target camera and access the captured image of the target camera.

[0116] In another possible implementation, the electronic device may determine the camera corresponding to each target camera model based on the correspondence between the camera model and the camera. The electronic device may display a list of information about each target camera. The electronic device may receive a user selecting a target camera from the list. The electronic device may obtain a video captured by the target camera, thereby accessing the captured image of the target camera.

[0117] In another possible implementation, the electronic device may select a target camera model from the multiple target camera models according to a selection rule. The electronic device may determine the target camera corresponding to the selected target camera model based on a correspondence between camera models and camera devices.

[0118] Optionally, the selection rules can be set based on one or more dimensions, such as the installation time of the camera device, the distance between the camera device model's field of view and the target location, the camera device type, the priority of pre-configured camera devices, and so on. Pre-set selection rules may include, but are not limited to, any of the aforementioned dimensions. Pre-set selection rules can also be configured based on actual applications.

[0119] In step S105 , the electronic device may obtain the video captured by the target camera device determined in step S104 .

[0120] Optionally, the electronic device can obtain the video currently captured by the target camera device, that is, obtain the current shooting picture of the target camera device. Alternatively, the electronic device can obtain the video previously captured by the target camera device, that is, the previous shooting picture of the target camera device.

[0121] In some examples, each camera device has its own storage function and can store the captured video. The electronic device can retrieve the captured video from the target camera device. In other examples, the electronic device has a large-capacity storage space, and each camera device can send the captured video to the electronic device, which stores the video provided by each camera device. The electronic device can obtain the video of the target camera device from its own storage space. In still other examples, each camera device can send the captured video to a storage device. The storage device stores the video provided by each camera device. The electronic device can obtain the video of the target camera device from the storage device. Optionally, the storage device can be implemented as a server or a storage structure.

[0122] FIG5 exemplarily illustrates a camera device control method that can be executed by an electronic device. Multiple types of camera device models in a scene model can be configured with multiple screening orders, wherein the screening order of each type of camera device model is different. The camera device control method can include the following steps:

[0123] Step S101 : obtaining the field of view of each camera model in the camera models associated with a target space, wherein the target space is any space in a preset scene model, and the scene model includes at least one space and a plurality of camera models.

[0124] Step S102: Acquire a target position, where the target position is any position in the target space.

[0125] Step S203A: Based on the sorting of the screening orders of the multiple types, it is determined whether the target camera device model is included in the camera device model of the first type, where the first type is the type corresponding to the first order in the sorting.

[0126] Step S203B, for the types corresponding to each order in the sorting, when it is determined that the camera device model of the type corresponding to each order does not include the target camera device model, determine whether the camera device model of the type corresponding to the next order includes the target camera device model.

[0127] Step S104 : Based on the correspondence between the camera device models and the camera devices, a target camera device corresponding to any target camera device model is determined from at least one target camera device model.

[0128] Step S105: Acquire the video captured by the target camera device.

[0129] In the embodiment of the present application, the execution process of steps S101, S102, S104, and S105 can refer to the relevant introduction in the aforementioned embodiment and will not be repeated here.

[0130] In an embodiment of the present application, the multiple camera device models in the scene model may include a camera device model of at least one type of camera device. The at least one type may include, but is not limited to, a cylindrical type, a hemispherical type, and a spherical type. Each type is configured with a screening order for searching (or screening). When determining a target camera device model, the electronic device may determine the target camera device model from each type of camera device model, one by one, based on the type of camera device.

[0131] The screening order may represent the order (or sequence) of the electronic device in determining the target camera device model from the camera device models of various types one by one. In other words, the screening order of different types may reflect the order in which the electronic device screens the types.

[0132] For example, the sorting order of the screening order of each type may be cylindrical, hemispherical, and spherical. When the electronic device determines the target camera device model from the camera device models associated with the target space, the electronic device may first determine whether the target camera device model exists from the cylindrical camera device model associated with the target space, then determine whether the target camera device model exists from the hemispherical camera device model associated with the target space, and finally determine whether the target camera device model exists from the spherical camera device model associated with the target space.

[0133] In practical applications, the camera device model associated with the target space includes at least one type of camera device model. In some examples, the camera device model associated with the target space includes one type of camera device model.

[0134] In some other examples, the camera device model associated with the target space includes multiple types of camera device models. In this case, the electronic device can perform the operations in step S203A and step S203B.

[0135] In step S203A, the electronic device can determine the type corresponding to the first order based on the target sorting of the screening order of all types included in the camera device model associated with the target space. For ease of description, the type corresponding to the first order is recorded as the first type.

[0136] For example, suppose the sorting order of the various types is cylindrical, hemispherical, and spherical. The camera model associated with the target space includes both cylindrical and spherical types. Therefore, the first type is cylindrical. For another example, suppose the sorting order of the various types is cylindrical, hemispherical, and spherical. The camera model associated with the target space includes both hemispherical and spherical types. Therefore, the first type is hemispherical.

[0137] The electronic device may first determine whether the first type of camera device models includes a target camera device model.

[0138] In step S203B, for the types corresponding to each order in the target sorting, the electronic device may determine that the target camera device model is not included in the camera device model of the type corresponding to the current order, and then determine whether the target camera device model is included in the camera device model of the type corresponding to the next order. Optionally, the electronic device may determine that the target camera device model is included in the camera device model of the type corresponding to the current order, and then not perform the operation of determining whether the target camera device model is included in the camera device model of the type corresponding to each order after the current order.

[0139] Optionally, if the electronic device determines that the field of view of each camera device model in the type camera device model corresponding to the current order does not include the target position, the electronic device may determine that the type camera device model corresponding to the current order does not include the target camera device model. If the electronic device determines that the field of view of a camera device model in the type camera device model corresponding to the current order includes the target position, the electronic device may determine that the type camera device model corresponding to the current order includes the target camera device model.

[0140] For example, if the electronic device determines that the target camera model is not included in the camera model corresponding to the first type, the electronic device determines whether the target camera model is included in the camera model corresponding to the type of the next order after the first type in the target sorting. If the electronic device determines that the target camera model is included in the camera model corresponding to the first type, the electronic device may not perform the determination operation on whether the camera model of each type of camera model after the first type in the target sorting includes the target camera model.

[0141] In one possible implementation, the order in which camera models of various types are filtered within the scene model can be preconfigured. Optionally, the order in which camera models of various types are filtered can be related to the field of view of each camera type. Typically, the field of view of a cylindrical camera is smaller than that of a hemispherical camera, which in turn is smaller than that of a spherical camera. Regarding the processing speed of electronic devices, the larger the field of view, the longer it takes to determine the relationship between the field of view and the position.

[0142] The sorting order of the camera device models of each type of the scene model is configured as cylindrical, hemispherical, and spherical. The electronic device can determine the target camera device by performing the operations of step S203A and step S203B, and the processing time is usually short.

[0143] Based on any of the above embodiments, in a preset three-dimensional coordinate system, if the number of intersection points between a target ray and the field of view of any camera model is an odd number, then the field of view of any camera model includes the target position, wherein the endpoint position of the target ray is the target position, and the extension direction of the target ray is parallel to any coordinate axis in the three-dimensional coordinate system. The electronic device can determine whether any field of view includes the target position based on this characteristic.

[0144] If the number of intersections between the target ray and the field of view of any camera model is even, then the field of view of any camera model does not include the target position. In this embodiment of the present application, an odd number refers to a positive integer that is not divisible by 2. An even number can be 0 or a positive integer that is divisible by 2.

[0145] Please refer to Figure 6A, which shows the field of view M1 of the cylindrical camera model in a preset three-dimensional coordinate system. Assume that position S1 is the target position, and the extension direction of target ray L1 is parallel to the X-axis of the three-dimensional coordinate system. If target ray L1 intersects with field of view M1 at two points (indicated by white circles), field of view M1 does not contain target position S1. In other words, target position S1 is not within field of view M1.

[0146] Please refer to Figure 6B, which shows the field of view M1 of the cylindrical camera model in a preset three-dimensional coordinate system. Assume that position S2 is the target position, and the extension direction of target ray L2 is parallel to the X-axis of the three-dimensional coordinate system. If the number of intersections between target ray L2 and field of view M1 is one (indicated by the white circle), then field of view M1 contains target position S2. In other words, target position S2 is within field of view M1.

[0147] In one possible design, the electronic device may determine that the field of view of any camera model includes the target location when the field of view of any camera model satisfies one or more of the following conditions:

[0148] Condition a: The number of intersections between the first ray and the field of view of the camera model is an odd number, wherein the endpoint position of the first ray is the target position, and the extension direction of the first ray is parallel to the X-axis in the three-dimensional coordinate system;

[0149] Condition b: The number of intersection points between the second ray and the field of view of the camera model is an odd number, wherein the endpoint position of the second ray is the target position, and the extension direction of the second ray is parallel to the Y coordinate axis in the three-dimensional coordinate system;

[0150] Condition c: The number of intersections between the third ray and the field of view of the camera model is an odd number, wherein the endpoint position of the third ray is the target position, and the extension direction of the third ray is parallel to the Z coordinate axis in the three-dimensional coordinate system.

[0151] When the electronic device determines that the viewing area of ​​any camera model does not satisfy one or more of conditions a, b, and c, it may determine that the viewing area of ​​the camera model does not include the target position.

[0152] In some examples, the viewing angle of a hemispherical camera device is relatively large. In some scenarios, the viewing angle can reach up to 150 degrees. The electronic device can adjust the viewing angle of the hemispherical camera device by controlling the pan / tilt. The viewing angle of the hemispherical camera device and its position in the scene can be preconfigured. The electronic device can configure the viewing angle of each hemispherical camera device and the current viewing angle of each hemispherical camera device to the viewing angle of the camera device model corresponding to each hemispherical camera device and the current viewing angle of each hemispherical camera device.

[0153] Optionally, in an embodiment of the present application, the field of view of the hemispherical camera device model may refer to the spatial area corresponding to the viewing angle range of the hemispherical camera device model, or the field of view of the hemispherical camera device model may refer to the spatial area corresponding to the current viewing angle of the camera device model.

[0154] In one possible design, the field of view of the hemispherical camera model may refer to the spatial region corresponding to the viewing angle range of the hemispherical camera model. The electronic device may divide the spatial region corresponding to the viewing angle range of the hemispherical camera model into spatial regions corresponding to multiple viewing angles. The spatial region corresponding to each viewing angle is the same as or similar to the field of view of the cylindrical camera model. For ease of distinction, in this example, the spatial region corresponding to each viewing angle is referred to as a sub-field of view. The field of view of the hemispherical camera model includes multiple sub-fields of view, and the sub-fields of view do not overlap.

[0155] The electronic device can determine whether each sub-viewing area of ​​a hemispherical camera model contains a target location. If any sub-viewing area contains the target location, the electronic device can determine that the view of the hemispherical camera model contains the target location. If each sub-viewing area does not contain the target location, the electronic device can determine that the view of the hemispherical camera model does not contain the target location.

[0156] Optionally, when the electronic device determines that the field of view of the hemispherical camera model includes the target location, the electronic device may determine whether the field of view corresponding to the current viewing angle of the hemispherical camera model includes the target location. When the electronic device determines that the field of view corresponding to the current viewing angle of the hemispherical camera model does not include the target location, the electronic device may determine a target adjustment parameter, and use the target adjustment parameter to adjust the viewing angle of the hemispherical camera model so that the field of view corresponding to the adjusted viewing angle includes the target location.

[0157] Optionally, if the target camera device determined by the electronic device is a hemispherical camera device, the electronic device can also send a rotation command to the pan / tilt head, so that the pan / tilt head can adjust the parameters according to the target and adjust the viewing angle of the hemispherical camera device, so that the field of view corresponding to the adjusted viewing angle of the hemispherical camera device can include the target position. Thus, the hemispherical camera device can capture the situation of the target position at the corresponding position in the scene. The electronic device can also obtain the situation of the target position at the corresponding position in the scene. The electronic device links the camera device to check the situation at the specified position, which can achieve the effect of "point and shoot".

[0158] In some examples, the spherical camera has a large viewing angle, and in some scenes, the viewing angle can reach up to 360 degrees. The electronic device can adjust the viewing angle of the spherical camera by controlling the pan / tilt. The viewing angle and position of the spherical camera in the scene can be preconfigured. The electronic device can configure the viewing angle of each spherical camera and the current viewing angle of each spherical camera to the viewing angle and current viewing angle of the camera model corresponding to each spherical camera.

[0159] Optionally, in an embodiment of the present application, the field of view of the spherical camera device model may refer to the spatial area corresponding to the viewing angle range of the spherical camera device model, or the field of view of the spherical camera device model may refer to the spatial area corresponding to the current viewing angle of the camera device model.

[0160] In one possible design, the field of view of the spherical camera model may refer to the spatial region corresponding to the viewing angle range of the spherical camera model. The electronic device may divide the spatial region corresponding to the viewing angle range of the spherical camera model into multiple spatial regions corresponding to multiple viewing angles. The spatial region corresponding to each viewing angle is the same as or similar to the field of view of the cylindrical camera model. For ease of distinction, in this example, the spatial region corresponding to each viewing angle is referred to as a sub-field of view. The field of view of the spherical camera model includes multiple sub-fields of view, and the sub-fields of view do not overlap.

[0161] The electronic device can determine whether each sub-viewing area of ​​a spherical camera model contains a target location. If any sub-viewing area contains the target location, the electronic device can determine that the view of the spherical camera model contains the target location. If each sub-viewing area does not contain the target location, the electronic device can determine that the view of the spherical camera model does not contain the target location.

[0162] Optionally, when the electronic device determines that the field of view of the spherical camera model includes the target location, the electronic device may determine whether the field of view corresponding to the current viewing angle of the spherical camera model includes the target location. When the electronic device determines that the field of view corresponding to the current viewing angle of the spherical camera model does not include the target location, the electronic device may determine a target adjustment parameter and use the target adjustment parameter to adjust the viewing angle of the spherical camera model so that the field of view corresponding to the adjusted viewing angle includes the target location.

[0163] Optionally, the electronic device determines that the target camera device is a spherical camera device, and the electronic device can also send a rotation command to the pan-tilt head so that the pan-tilt head can adjust the parameters according to the target and adjust the viewing angle of the spherical camera device so that the field of view corresponding to the adjusted viewing angle of the spherical camera device can include the target position.

[0164] In the camera device control method provided in any of the above embodiments, the electronic device can provide a preset scene model. When the user selects a target position in the preset scene, the electronic device can quickly determine the target camera device whose field of view includes the target position, and can obtain the video images captured by the target camera device in the actual scene. It can be seen that the electronic device can provide a visual way to manage camera, improve management efficiency and accuracy, and reduce dependence on manual experience.

[0165] Based on the same inventive concept, an embodiment of the present application also provides a method for processing the position of a camera device, which can be executed by an electronic device to reduce the number of times the camera device is debugged in a scene and improve the efficiency of installing the camera device. Figure 7 exemplifies a method for processing the position of a camera device, which can include the following steps:

[0166] Step S301: Display a scene model corresponding to a target scene, where the scene model includes at least one space.

[0167] Step S302: receiving a position configuration instruction of any camera device model, wherein the position configuration instruction includes a selected position in any space of the at least one space.

[0168] Step S303 , determining the field of view of any camera model according to the selected position and the working parameters corresponding to the camera model, wherein the working parameters corresponding to the camera model are the same as the working parameters of the camera corresponding to the camera model.

[0169] Optionally, the electronic device may display the camera device model at the selected position.

[0170] Step S304: Display the field of view of the camera device model in any space.

[0171] In an embodiment of the present application, the electronic device can set the position of the camera model in any space of the scene model and display the field of view of the camera model. Displaying the field of view of the camera model in the scene model of the target scene can simulate the field of view of the camera corresponding to the camera model at the corresponding position in the target scene, making it easier for users to plan or design the installation position of each camera in the target scene.

[0172] The following is a detailed introduction to the camera device position processing method provided in the embodiment of the present application.

[0173] In step S301, the present embodiment does not specifically limit the process of determining the scene model. The scene model and the target scene have a corresponding relationship, and the conversion relationship (or mapping relationship) between the position in the scene model and the position in the target scene is predetermined. The present embodiment does not specifically limit this, and the scene model can be regarded as a visualization model of the target scene.

[0174] In step S302, the electronic device may receive a position configuration instruction of any camera device model, where the position configuration instruction includes a selected position in any space of the at least one space.

[0175] The user can use the electronic device to select any location in any space in the scene model, and the location selected by the user in the scene model is recorded as the selected location. Optionally, the electronic device may include a touch display, and the user can trigger the location configuration instruction by clicking on the touch display. Alternatively, the electronic device can display the scene model, and the user can trigger the location configuration instruction by clicking on the location in the scene model using a command input device. The command input device may include but is not limited to a mouse, keyboard, and other devices.

[0176] Optionally, the type of the camera device model may be, but is not limited to: cylindrical, hemispherical, or spherical.

[0177] In step S303, the electronic device may determine the viewing area of ​​any camera device model according to the selected position and the working parameters corresponding to any camera device model.

[0178] The working parameters corresponding to the camera model may be the working parameters of the camera corresponding to the camera model. The working parameters may include but are not limited to focal length.

[0179] The electronic device can obtain the working parameters of the camera device corresponding to any camera device model. Optionally, the working parameters may include but are not limited to focal length, horizontal field of view angle, and vertical field of view angle.

[0180] The horizontal field of view angle and the vertical field of view angle can be determined based on parameters such as the image sensor (Charge Coupled Device, CCD) target surface width (w), the CCD target surface height (h), and the focal length of the camera device.

[0181] In some examples, the electronic device can obtain the focal length, CCD target surface width, and CCD target surface height of the camera device corresponding to any camera device model. The electronic device can determine the horizontal field of view and vertical field of view of the camera device based on the focal length, CCD target surface width, and CCD target surface height of the camera device. The horizontal field of view angle = 2×arctan(w / 2f), and the vertical field of view angle = 2×arctan(h / 2f), where w represents the width of the camera device's CCD target surface, h represents the height of the camera device's CCD target surface, and f is the lens focal length. Thus, the electronic device can indirectly obtain the operating parameters of the camera device.

[0182] In other examples, the electronic device can obtain the focal length, horizontal field of view angle, and vertical field of view angle of the camera device corresponding to any camera device model, that is, the electronic device can directly obtain the working parameters of the camera device.

[0183] The electronic device can use the selected position as the position of the camera device model. In one possible design, the electronic device can determine the field of view of the camera device model based on the selected position and the working parameters of the camera device model. In conjunction with Figure 8, the electronic device can characterize the field of view by the coordinates of the vertices of the field of view in a preset coordinate system. Figure 8 shows the field of view of a cylindrical camera device. Generally, the field of view of a passing camera device can be described by five vertices (as shown by the black dots in Figure 8). The position of one of the five vertices is the position of the camera device, and the other four vertices can be determined based on the position of the camera device and the working parameters of the camera device. Similarly, the field of view of the camera device model can also be described by five vertices, one of which is the position of the camera device model, and the other four vertices can be determined based on the working parameters of the camera device model. The electronic device can determine the field of view or field of view of the camera device based on the existing field of view or field of view determination method, and this application does not make specific limitations on this.

[0184] In some examples, the electronic device can determine the position of the vertex of the field of view of the camera device model based on the conversion relationship between the lens coordinate system and the image coordinate system, the geometric projection relationship, the focal length, the horizontal field of view angle, the vertical field of view angle, etc.

[0185] Based on the focal length, horizontal field of view angle, and vertical field of view angle, the electronic device can determine the field of view of the camera model in the image coordinate system. By converting between the image coordinate system and the camera coordinate system, the vertices of the viewing area corresponding to the field of view can be obtained.

[0186] Please refer to Figure 9 to convert the camera coordinates to image coordinates. Generally, the geometric relationship of similar triangles can be used to calculate it. In actual applications, the camera lens may be distorted, and the distortion needs to be described by a nonlinear function. Figure 9 shows the geometric projection relationship between the camera coordinate system and the image coordinate system. The camera coordinates are two-dimensional and need to be mapped to obtain the image coordinates. The coordinate system oxy in Figure 9 is the image coordinate system, and the coordinate system O is the image coordinate system. c X c Y c z c is the camera coordinate system. Line segment oO c Characterizes the focal length f.

[0187] In this geometric projection relationship, △ABO c With △oCO c There is a similar relationship between them, △PBO c and △pCO c There is a similar relationship between them. Based on these two sets of similarity relationships, we can get visible, From this, the transformation relationship between the camera coordinate system and the image coordinate system can be obtained as follows:

[0188] Optionally, the electronic device may determine the coordinates of the vertices of the camera model's field of view in the scene model according to a default viewpoint. Alternatively, the electronic device may determine the coordinates of the vertices of the camera model's field of view in the scene model according to a user-configured viewpoint. The viewpoint may reflect the position of the vertices of the camera coordinate system in the scene model, and the viewpoint may reflect the orientation of the camera device.

[0189] The electronic device can use the installation angle parameters and the installation position to characterize the viewpoint. In conjunction with Figure 10, the installation angle parameters of the camera device model may include but are not limited to the yaw angle (H), the roll angle (R), and the pitch angle (P). In an embodiment of the present application, the position of the scene model and the position of the camera device model may be coordinate positions in a preset three-dimensional coordinate system. Optionally, the preset three-dimensional coordinate system can be implemented as a viewpoint coordinate system. For example, Figure 10 exemplarily shows a viewpoint coordinate system, in which the yaw angle H, the pitch angle P, and the roll angle R in the installation angle parameters of the camera device model are all 0, the top of the camera device model faces the positive direction of the Z axis, and the viewpoint faces the positive direction of the Y axis.

[0190] On this basis, when the yaw angle changes, the viewpoint rotates around the Z axis, and the rotation plane is parallel to the plane of the X axis and the Y axis, in a clockwise direction as shown by F1 in Figure 10. If the yaw angle H increases, the viewpoint rotates counterclockwise, and if the yaw angle H decreases, the viewpoint rotates clockwise.

[0191] When the pitch angle changes, the X-axis is rotated, and the rotation plane is parallel to the plane of the Y-axis and the Z-axis. The clockwise direction is shown as F2 in Figure 10. If the pitch angle P increases, the viewpoint rotates counterclockwise. If the pitch angle P decreases, the viewpoint rotates clockwise.

[0192] When the roll angle changes, the viewpoint rotates around the Y axis, with the rotation plane parallel to the plane of the X and Z axes, in a clockwise direction, as shown by F3 in Figure 10. If the roll angle R increases, the viewpoint rotates clockwise, and if the roll angle R decreases, the viewpoint rotates counterclockwise.

[0193] In one possible design, the electronic device can determine the coordinates of the vertices of the field of view of the camera model in the scene model based on the selected position, the default installation angle parameters, and the operating parameters of the camera model. Optionally, the default installation angle parameters can be pre-stored by the electronic device. The default installation angle parameters of different types of camera models can be the same or different, and this is not specifically limited in the embodiments of the present application.

[0194] In another possible design, the electronic device can receive an installation angle parameter configuration instruction of any of the camera device models, and the installation angle parameter configuration instruction includes an installation angle parameter. The installation angle parameter configuration instruction includes an installation angle parameter, which is simply referred to as an installation angle parameter. The electronic device can determine the coordinates of the vertex of the field of view of the camera device model in the scene model based on the selected position, the configured installation angle parameters, and the working parameters of the camera device model. Among them, the configured installation angle parameters can be received by the electronic device. The user can configure the installation angle parameters of the camera device corresponding to the camera device model through the electronic device. For example, the electronic device can display an installation angle parameter configuration interface or window, so that the user can enter the installation angle parameters in the interface or window to configure the installation angle parameters. The electronic device can determine the field of view of the camera device model in combination with the configured installation angle parameters.

[0195] After the electronic device determines the field of view of the camera model, it can display the field of view in the scene model. In some examples, the electronic device can use the three-dimensional simulation engine software VegaPrime to load the target scene model file, including terrain, building model and camera model files, etc., to display the scene model corresponding to the target scene. The electronic device can call the VegaPrime API to draw the field of view line and the field of view surface in the scene model based on the coordinates of the determined vertex of the field of view, as shown in Figure 11. Optionally, the electronic device can display the field of view surface according to the transparency. The transparency can be adjustable.

[0196] Optionally, the electronic device can perform collision detection on the determined field of view and the object model in the space. Collision detection is used to detect whether the field of view of the camera device collides with an actual object in the target scene. Objects may cause obstructions, and the field of view cannot penetrate objects.

[0197] The electronic device can determine the actual field of view of the camera model, which can be understood as the real field of view, by performing collision detection between the field of view of the camera model and object models in the scene model. For example, the electronic device can determine the actual field of view of the field of view in the space based on the detection results of the collision detection. The electronic device displays the actual field of view of the camera model in the space.

[0198] In one possible implementation, the electronic device may receive an installation angle configuration instruction for any of the camera device models, the installation angle configuration instruction including installation angle parameters. The electronic device may generate a simulated image corresponding to a target viewpoint, the target viewpoint being determined based on the selected position in the any of the spaces and the installation angle parameters. The electronic device may display the generated simulated image.

[0199] The generated simulated image can be understood as a simulation or simulation of an image captured by the camera corresponding to the camera model at a real viewpoint corresponding to the target viewpoint in the target scene. It is clear that the simulated image is actually a virtual image or a simulated image. The simulated image can reflect to a certain extent the actual situation of the camera capturing the image in the target scene. Figure 12A is a simulated image corresponding to the target viewpoint of the scene model shown in Figure 11. If the camera corresponding to the camera model is installed on-site in the target scene with reference to the target viewpoint, the image captured by the camera is shown in Figure 12B.

[0200] FIG12B shows the camera device corresponding to the camera device model in the target scene.

[0201] The simulated image can assist the user in modifying or adjusting the installation position of the camera device in the target scene.

[0202] In some examples, electronic devices can use the 3D simulation engine software VegaPrime to load target scene model files, including terrain, building models, and camera model files. The electronic device can drive and control the 3D model by calling VegaPrime's API interface. The electronic device can use VegaPrime's observer simulation camera function to generate observer viewpoint coordinates (such as (X, Y, Z, H, P, R) from the selected position coordinates, set the observer's horizontal field of view and vertical field of view (HFOV, VFOV), and call the VegaPrime API interface to generate a simulated image from the viewpoint in the scene model.

[0203] Users can use electronic devices to set the camera model's installation position or angle within the scene model. This simulates the field of view or captured image of the camera installed in the target scene, providing a reference for users to determine the camera's installation position and angle within the target scene. This process eliminates the need to adjust the camera's position in the actual target scene, reducing labor costs and streamlining the installation process.

[0204] Based on the same technical concept, an embodiment of the present application provides an electronic device that executes any camera device control method or any camera device position processing method of the above embodiments and can achieve the same technical effect, which will not be repeated here.

[0205] Referring to Figure 13, the electronic device includes a processor 1301, a memory 1302 and a communication interface 1303. The processor 1301, the memory 1302 and the communication interface are connected via a bus 1304. The communication interface 1303 is used to communicate with the opposite electronic device, including but not limited to sending requests and receiving responses. The memory 1302 stores a computer program, and the processor 1301 executes any one of the camera device control methods or any one of the camera device position processing methods in the above-mentioned embodiments according to the computer program.

[0206] The processor involved in Figure 13 of the embodiment of the present application can be a central processing unit (CPU), a general-purpose processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

[0207] As used in the embodiments of the present application, the terms “when…” or “after…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0208] In the embodiments provided in the present application above, the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject. In order to implement the various functions in the methods provided in the embodiments of the present application above, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0209] In addition, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is run on a computer, the computer executes the steps in any of the above methods, such as the method executed by the electronic device.

[0210] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0211] The present application also provides a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)). In the absence of conflict, the solutions of the above embodiments can be used in combination.

[0212] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0213] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0214] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0215] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0216] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0217] Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if such changes and modifications of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A method for controlling a camera device, wherein, Including: Obtain the field of view of each camera device model in the camera device models associated with the target space, where the target space is any space in a preset scene model, and the scene model includes at least one space and multiple camera device models; Obtain a target position, where the target position is any position in the target space; Based on the target position, determine at least one target camera device model from the associated camera device models, where the target field of view of the target camera device model satisfies a position relationship condition with the target position; Based on the correspondence between the camera device model and the camera device, determine the target camera device corresponding to any target camera device model from at least one target camera device model; Obtain the video collected by the target camera device.

2. The method according to claim 1, wherein, The camera device models associated with the target space include multiple types of camera device models, and the multiple types are configured with multiple screening orders, where the screening orders of each type are different; The determining the target camera device model from the associated camera device models based on the target position includes: Based on the sorting of the multiple screening orders, determine whether the target camera device model is included in the camera device models of the first type, where the first type is the type corresponding to the first order in the sorting; And for the types corresponding to each order in the sorting, in the case where the target camera device model is not included in the camera device models of the types corresponding to each order, determine whether the target camera device model is included in the camera device models of the type corresponding to the next order.

3. The method according to claim 1 or 2, wherein The position relationship condition includes any one of the following conditions: The target field of view includes the target position; or, The fields of view of each camera device model do not include the target position, and among the distances between the fields of view of each camera device model and the target position, the distance between the target field of view and the target position is the smallest.

4. The method according to claim 3, wherein In a preset three-dimensional coordinate system, if the number of intersection points of the target ray and the target field of view is odd, then the target field of view includes the target position, where the endpoint position of the target ray is the target position, and the extending direction of the target ray is parallel to any coordinate axis in the three-dimensional coordinate system.

5. The method according to claim 1 or 2, wherein The at least one target camera model includes multiple target camera device models; The determining the target camera device corresponding to any target camera device model from at least one target camera device model based on the correspondence between the camera device model and the camera device includes: Select a target camera device model from the multiple target camera device models according to a selection rule; Based on the correspondence between the camera device model and the camera device, determine the target camera device corresponding to the selected target camera device model.

6. A method for processing the position of a camera device, wherein, Including: Display the scene model corresponding to the target scene, where the scene model includes at least one space; Receive a position configuration instruction of any camera device model, where the position configuration instruction includes a selected position in any space among the at least one space; Determine the field of view of any one of the camera device models according to the selected position and the working parameters corresponding to the camera device model, where the working parameters corresponding to the camera device model are the same as the working parameters of the camera device corresponding to the camera device model; Display the field of view of the camera device model in any one of the spaces.

7. The method according to claim 6, wherein The method further includes: Receiving an installation angle configuration instruction for any one of the camera device models, where the installation angle configuration instruction includes installation angle parameters; Generating a simulation image corresponding to a target viewpoint, where the target viewpoint is determined based on the selected position and the installation angle parameters in any one of the spaces; Displaying the simulation image.

8. The method according to claim 6, wherein, The displaying the field of view of the camera device model in the space includes: Performing a collision detection on the field of view and an object model in the space; Based on the detection result of the collision detection, determining the actual field of view of the field of view in any one of the spaces; Displaying the actual field of view of the camera device model in any one of the spaces.

9. An electronic device, wherein, Comprising a memory and a processor; The memory is used for storing computer program instructions; The processor executes the computer program instructions to implement the method according to any one of claims 1-8.

10. A security system, wherein, The security system includes: an electronic device and a plurality of camera devices; The electronic device is used for obtaining the field of view of each camera device model in the camera device models associated with the target space, where the target space is any one of the spaces in a preset scene model, and the scene model includes at least one space and a plurality of camera device models; Obtaining a target position, where the target position is any position in the target space; Based on the target position, determining at least one target camera device model from the associated camera device models, where the target field of view of the target camera device model satisfies a position relationship condition with the target position; Based on the correspondence between the camera device model and the camera device, determining the target camera device corresponding to any one of the target camera device models from at least one target camera device model; Obtaining the video collected by the target camera device.

11. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer instructions, and when the computer instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Camera visual range judgment method and device, electronic equipment and storage medium

    CN110536126A

  • Target object positioning virtual-real fusion method and device

    CN111199584A

  • Three-dimensional augmented reality panorama fusion method and system

    CN111696216A

  • Display method and device, equipment and storage medium

    CN113012299A

  • Camera equipment control method, camera equipment position processing method and related equipment

    CN117915182A