CN116208735A - Multi-camera control method, device, system, storage medium and electronic equipment - Google Patents

Multi-camera control method, device, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN116208735A
CN116208735A CN202111435602.6A CN202111435602A CN116208735A CN 116208735 A CN116208735 A CN 116208735A CN 202111435602 A CN202111435602 A CN 202111435602A CN 116208735 A CN116208735 A CN 116208735A
Authority
CN
China
Prior art keywords
camera
remote control
control data
target
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111435602.6A
Other languages
Chinese (zh)
Inventor
姚俊银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202111435602.6A priority Critical patent/CN116208735A/en
Publication of CN116208735A publication Critical patent/CN116208735A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Abstract

The embodiment of the application provides a multi-camera control method, a device, a system, a storage medium and electronic equipment, wherein the method comprises the following steps: receiving a plurality of first camera remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving a plurality of first camera remote control data; obtaining target shooting remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first shooting remote control data and a plurality of first shooting remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head; and sending the target remote control instruction to the target cameras, so that each camera can obtain shooting remote control data, thereby conveniently and rapidly realizing the control of any one camera and reducing the control cost.

Description

Multi-camera control method, device, system, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of camera control, in particular to a multi-camera control method, a device, a system, a storage medium and electronic equipment.
Background
One camera is usually arranged in the conference room to capture the picture in the monitoring conference room, and generally, the area of capturing the monitoring by a single camera is limited; when the conference room is large so that the image capturing area becomes large, a single camera obviously cannot meet the requirements, and therefore, a plurality of cameras need to be arranged for capturing and monitoring.
When capturing and monitoring are performed by adopting a plurality of cameras, the plurality of cameras need to be identified and controlled; in some technologies, a plurality of remote controllers are required to be used for respectively identifying and controlling a plurality of cameras, or complex identification and control algorithms are required to be used, so that the cost is increased, and the plurality of cameras cannot be controlled rapidly and conveniently.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a multi-camera control method, a device, a system, a storage device and an electronic device, which can reduce cost and rapidly and conveniently control a plurality of cameras.
According to a first aspect of embodiments of the present application, there is provided a multi-camera control method, including the steps of:
receiving a plurality of first camera remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving a plurality of first camera remote control data;
Obtaining target shooting remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first shooting remote control data and a plurality of first shooting remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head;
and sending the target remote control instruction to the target camera.
According to a second aspect of embodiments of the present application, there is provided a multi-camera control apparatus, including:
the data receiving module is used for receiving a plurality of first shooting remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving the plurality of first shooting remote control data;
the target data acquisition module is used for acquiring one target camera remote control data corresponding to one remote control event according to the time difference of receiving a plurality of first camera remote control data and a plurality of first camera remote control data; the target shooting remote control data are used for indicating to send a target remote control instruction to the target camera;
and the remote control instruction sending module is used for sending the target remote control instruction to the target camera.
According to a third aspect of embodiments of the present application, a multi-camera remote control system is provided, including a plurality of cameras, a camera remote control device, and a multi-camera control device; the cameras are respectively connected with the camera remote control equipment and the multi-camera control equipment; the camera remote control device is used for sending out first camera remote control data; the cameras are used for transmitting the collected first camera remote control signals to the multi-camera control equipment; the multi-camera control apparatus performs the multi-camera control method as described above.
According to a fourth aspect of embodiments of the present application, there is provided an electronic device comprising a processor and a memory; the memory stores a computer program adapted to be loaded by the processor and to perform the multi-camera control method as described above.
According to a fifth aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements a multi-camera control method as described above.
According to the embodiment of the application, the first camera remote control data transmitted by the cameras respectively in the preset time are received, and the time for receiving the first camera remote control data is acquired; obtaining target camera remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first camera remote control data and a plurality of first camera remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head; and the target remote control instruction is sent to the target cameras, so that each camera can obtain the first shooting remote control data, and further, the control of any one camera can be conveniently and quickly realized, and the cost is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic block diagram of an application environment of a multi-camera control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a multi-camera control method according to one embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of establishing a mapping relationship according to one embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of obtaining target camera remote control data according to one embodiment of the present application;
FIG. 5 is a flow chart illustrating a method of obtaining target camera remote control data according to another embodiment of the present application;
FIG. 6 is a functional block diagram of a multi-camera control method according to another embodiment of the present application;
FIG. 7 is a schematic block diagram of a multi-camera control apparatus shown in one embodiment of the present application;
FIG. 8 is a schematic block diagram of a multi-camera control system shown in one embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the embodiments of the present application, are within the scope of the embodiments of the present application.
When the following description refers to the accompanying drawings, like numerals refer to the same or similar elements throughout the various drawings unless otherwise indicated. In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination".
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Please refer to fig. 1, which is a schematic block diagram of an application environment of a multi-camera control method according to an embodiment of the present application; the application environment of the multi-camera control method in the embodiment of the present application includes a camera remote control device 110, a plurality of cameras 120, and a multi-camera control device 130; the cameras 120 are respectively connected with the camera remote control device 110 and the multi-camera control device 130; the camera remote control device 110 is configured to send out first camera remote control data; the plurality of cameras 120 respectively transmit the collected first camera remote control data to the multi-camera control device 130; the multi-camera control device controls the action of the target camera according to the first camera remote control data and the time for receiving the first camera remote control data.
The cameras 120 generally have the basic functions of video shooting/spreading, still image capturing and the like; after the camera collects the image by the lens, the photosensitive component circuit and the control component in the camera process the image and convert the image into digital signals which can be identified by the multi-camera control equipment 130, and then the digital signals are input to the multi-camera control equipment 130 by the parallel port or USB connection to restore the image. The cameras 120 may be identical cameras or different cameras, which is not limited in this application.
The camera remote control device 110 establishes wireless connection with a plurality of cameras 120 in a wireless manner; alternatively, the wireless mode may be various modes such as infrared remote control, bluetooth remote control, etc., so that the plurality of cameras 120 may receive the image capturing remote control signal sent by the camera remote control device 110. Specifically, the camera remote control device 110 may be an infrared remote control, a remote control with bluetooth communication function, or the like.
The multi-camera control apparatus 130 may be implemented in software and/or hardware, and the multi-camera control apparatus 130 may be configured by two or more physical entities or may be configured by one physical entity. In terms of hardware, the multi-camera control apparatus 130 is essentially a computer apparatus having the performance of a personal computer, and includes a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device, and is a hardware device of the necessary components disclosed by von neumann's principle; the computer program is stored in the memory, and the central processing unit calls the computer program stored in the memory to run, executes instructions in the computer program and interacts with the input and output equipment, thereby completing specific functions.
Optionally, the multi-camera control device 130 is provided with a display 140, i.e. the display 140 is present as part of the multi-camera control device 130; or the multi-camera control apparatus 130 is also connected with a display 140, i.e. the display 140 exists independently of the components of the multi-camera control apparatus 130. The display 140 is configured to receive an instruction of the multi-camera control device 130, and display information such as a picture captured by a camera or a working state of each camera.
It should be noted that, the multi-camera control method of the present application may be applied to a conference and an educational scene, and the embodiment of the present application uses the conference scene as an example to describe the multi-camera control method of the present application, specifically, a plurality of cameras 120 are disposed in a conference room, and the plurality of cameras 120 are respectively connected with a camera remote control device 110 and a multi-camera control device 130; identification and control of one or more cameras in the conference room is achieved through the camera remote control device 110 and the multi-camera control device 130.
Example 1
The following describes in detail the multi-camera control method provided in the embodiment of the present application with reference to fig. 2 to 6.
Referring to fig. 2, a flowchart of a multi-camera control method according to an embodiment of the present application is shown; the multi-camera control method provided by the embodiment of the application comprises the following steps:
Step S101: and receiving a plurality of first shooting remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving a plurality of first shooting remote control data.
When a remote control event is generated on the camera remote control device, for example, when a user presses a key, the camera remote control device generates a corresponding camera remote control instruction, so that the camera remote control device broadcasts and sends out first camera remote control data; and the cameras which are in wireless connection with the camera remote control equipment can acquire the first camera remote control data in the wireless receiving range. And then, the plurality of cameras transmit the first camera remote control data acquired respectively to the multi-camera control equipment.
It can be understood that the first camera remote control data respectively collected by the plurality of cameras is the same first camera remote control data, and the first camera remote control data corresponds to a remote control event and is used for controlling one or more cameras to act.
It can be understood that when the plurality of cameras transmit the first camera remote control data acquired respectively to the multi-camera control device, the multi-camera remote control device receives the plurality of first camera remote control data within a preset time, and at this time, the multi-camera remote control device can record the time of receiving the plurality of first camera remote control data respectively.
Step S102: obtaining target shooting remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first shooting remote control data and a plurality of first shooting remote control data; the target camera remote control data are used for indicating to send a target remote control instruction to the target camera.
Obviously, when the plurality of cameras transmit the first shooting remote control data acquired respectively to the multi-camera control device, in a preset time, the plurality of first shooting remote control data acquired by the multi-remote control device may correspond to one remote control event or may correspond to a plurality of remote control events, so that one target shooting remote control data corresponding to one remote control event is obtained by distinguishing according to the time difference of receiving the plurality of first shooting remote control data and the plurality of first shooting remote control data, so as to realize control of the target cameras.
The target remote control instruction can be any instruction for controlling the action of the camera, such as an instruction for controlling the opening of the camera, an instruction for controlling the closing of the camera, an instruction for adjusting the steering of the camera, an instruction for controlling the photographing of the camera, an instruction for controlling the video of the camera, and the like.
Step S103: and sending the target remote control instruction to a target camera corresponding to the target camera identification.
According to the embodiment of the application, the first camera remote control data transmitted by the cameras respectively in the preset time are received, and the time for receiving the first camera remote control data is acquired; obtaining target camera remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first camera remote control data and a plurality of first camera remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head; and the target remote control instruction is sent to the target cameras, so that each camera can obtain the first shooting remote control data, and further, the control of any one camera can be conveniently and quickly realized, and the cost is reduced.
In one embodiment, before the step of receiving the plurality of first image capturing remote control data respectively transmitted by the plurality of cameras within the preset time and the step of obtaining the time of receiving the plurality of first image capturing remote control data in step S101, the method further includes the following steps:
Step S100: when monitoring that a camera is accessed, acquiring equipment information of the camera, configuring a camera number for the camera, and establishing a mapping relation between the equipment information of the camera and the camera number; wherein the camera number corresponds to one or more of the device information.
The device information includes one or more of information of the camera, such as an IP address of the camera, a mac address of the camera, or a socket (socket) of a communication channel correspondingly connected to the camera, which may enable the multi-camera control device to identify the camera. When the device information includes various information, the camera mapping information may be updated or the camera related information may be obtained through any of the above information.
The camera numbers are serial numbers which are set for the camera according to actual needs, so that a user can intuitively identify the camera. Optionally, the camera configuration may be numbered sequentially according to the time sequence of the access of the camera, such as 1,2,3, etc.
In an application scene, because the position and the action of each camera are different, the camera number uniquely corresponds to one piece of equipment information, and therefore the control of the unique camera is realized according to the camera number. In another application scenario, the cameras can be classified into the same group according to the direction or action, for example, the left camera is started, the monitoring teaching camera is started, and the like, and the camera numbers can be corresponding to a plurality of pieces of equipment information, so that control of a plurality of cameras with the same camera number is realized.
The step of sending the target remote control command to the target camera in step S103 includes the following steps S1031-S1033:
step S1031: and obtaining the number of the target camera.
Step S1032: and obtaining the equipment information of the target camera corresponding to the target camera number according to the mapping relation between the equipment information of the camera and the camera number.
Step S1033: and sending the target remote control instruction to the target camera according to the equipment information of the target camera.
According to the method and the device for controlling the camera, the mapping relation between the equipment information of the camera and the camera number is established, interaction between a user and the multi-camera control equipment and interaction between the user and the camera can be achieved, and the multi-camera control equipment can control the corresponding camera according to the camera number input by the user.
Optionally, the step of obtaining the number of the target camera in step S1031 includes: and acquiring a target camera number set by default. In one application scenario, the multi-camera device defaults to a target camera number, and when receiving target image remote control data, the multi-camera device controls a corresponding target camera according to the target camera number. It can be appreciated that the user can change the default target camera number in the multi-camera device according to actual needs, thereby realizing control of the required target cameras.
Optionally, the target camera remote control data includes a target camera number; the step of obtaining the number of the target camera in step S1031 includes: and acquiring a target camera number from the target camera remote control number. In an application scene, the camera remote control equipment sends a remote control instruction and simultaneously sends a target camera number to be controlled, so that a corresponding target camera can be directly designated and controlled in the camera remote control equipment, and the control of the target camera is realized.
Referring to fig. 3, in one embodiment, the device information of the camera further includes a camera mac address; when the camera access is monitored in the step S100, acquiring the equipment information of the camera, configuring a camera number for the camera, and establishing a mapping relationship between the equipment information of the camera and the camera number, wherein the steps S1001-S1003 are as follows:
s1001: when the access of the cameras is monitored, the mac addresses of all cameras which are accessed currently are obtained, and whether the corresponding mapping relation is established among all cameras which are accessed currently is judged according to the mac addresses.
Alternatively, mac addresses of all cameras currently accessed can be obtained through a multicast mode.
S1002: if the camera does not establish a corresponding mapping relation, acquiring current equipment connection information of the camera, configuring a camera number for the camera, and establishing a mapping relation among the camera mac address, the equipment connection information and the camera number.
S1003: if the camera has established a corresponding mapping relation, acquiring current equipment connection information of the camera and the equipment connection information in the mapping relation; when the current equipment connection information of the camera is different from the equipment connection information in the mapping relation, replacing the equipment connection information in the mapping relation with the current equipment connection information, and updating the mapping relation corresponding to the mac address of the camera.
Optionally, the camera may be connected to the multi-camera control device by hot plug, and in particular, the multi-camera control device may include a plurality of USB interfaces; the camera may include a UVC (USB Video Class) interface; the multi-camera control equipment is connected with the cameras in a pluggable manner through the USB interfaces and the UVC interfaces; i.e. the camera can be plugged into the running multi-camera control device or pulled out of the USB interface of the running multi-camera control device.
Wherein, the sockets corresponding to different USB interfaces are the same; the sockets corresponding to the same USB interface are the same. In an application scenario, for the same camera, after the first USB interface is inserted, the same camera may be pulled out and then inserted into the first USB interface, where, although the multi-camera device may monitor the access of the camera twice, the device information of the camera actually obtained is the same as the IP address of the camera, the mac address of the camera, or the socket of the communication channel correspondingly connected to the camera. In another application scenario, for the same camera, after the first USB interface is inserted, the same camera may be pulled out and then inserted into the second USB interface, at this time, the multi-camera device may monitor the access of the camera twice, but the mac addresses of the cameras are the same, but the IP addresses of the cameras are different from the socket of the communication channel correspondingly connected to the cameras, so that whether the mapping relationship needs to be established or not and whether the mapping relationship needs to be updated is judged through the unique mac address of the camera, thereby realizing accurate control of the camera.
It can be understood that when the current device connection information of the camera is the same as the device connection information in the mapping relationship, the mapping relationship is kept unchanged.
In one embodiment of the present invention, in one embodiment, in step S101, the step of receiving a plurality of first image capturing remote control data respectively transmitted by a plurality of cameras within a preset time and obtaining a time for receiving a plurality of first image capturing remote control data includes:
step S1011: and acquiring target transmission equipment information.
The target transmission device information may include one or more of an IP address of the camera, a mac address of the camera, a socket (socket) of a communication channel correspondingly connected to the camera, or the like, which may enable the multi-camera control device to recognize the camera.
Step S1012: receiving a plurality of first shooting remote control data which are respectively transmitted by a plurality of cameras corresponding to target transmission equipment information in preset time, and acquiring time for receiving the plurality of first shooting remote control data.
In an application scene, the position of the user is relatively fixed, for example, in a conference room, a presenter or conference personnel walks to the front to carry out a lecture, at this time, only the first image capturing remote control data collected by one camera in front of the conference room is needed to be obtained, and then the first image capturing remote control data collected by the camera is directly used as target remote control data, so that the control of the target camera is realized, at this time, the first image capturing remote control data transmitted by other cameras are obviously superfluous, therefore, the target transmission equipment information can be set, and only the first image capturing remote control data transmitted by the camera corresponding to the target transmission equipment information is received to determine the target remote control data, so that the acquisition and identification of the first image capturing remote control data are reduced, and the identification and control efficiency of the camera are improved.
Referring to fig. 4, in one embodiment, the step of obtaining, in step S102, target remote control data corresponding to a remote control event according to a time difference of receiving a plurality of first remote control data and a plurality of first remote control data includes steps S10211 to S10212 as follows:
s10211: calculating time differences of receiving a plurality of first shooting remote control data, and obtaining a plurality of second shooting remote control data of which the time differences are within a preset time threshold.
Optionally, the time difference of the received plurality of first image capturing remote control data may be calculated one by one after receiving the plurality of first image capturing remote control data in sequence within a preset time, so as to determine whether the time difference is within a preset time threshold, so that the plurality of first image capturing remote control data with the time difference within the preset time threshold is used as the plurality of second image capturing remote control data.
S10212: and combining a plurality of second camera shooting remote control data into one target camera shooting remote control data.
In an application scene, when a user needs to control one or more than two target cameras, the target cameras cannot receive first image capturing remote control data sent by the image capturing remote control equipment because the positions of the target cameras are far away from the user; at this time, control over the target camera may be achieved by acquiring a plurality of first camera remote control data acquired by a plurality of cameras near the user. Specifically, for a remote control event, the plurality of cameras collect the plurality of first camera remote control data, and when the plurality of first camera remote control data are to be forwarded to the multi-camera control device, the time of the plurality of first camera remote control data reaching the multi-camera device is almost the same, so that the plurality of second camera remote control data which acquire the time difference within a preset time threshold can be combined into one camera remote control data to serve as target camera remote control data, and the target camera is controlled by the target camera remote control data.
According to the method and the device for controlling the target camera, the time difference of receiving the plurality of first camera remote control data is calculated, the plurality of second camera remote control data with the time difference within the preset time threshold are obtained, the plurality of second camera remote control data are combined into the target camera remote control data, and the target remote control data can be accurately and rapidly obtained after the plurality of first camera remote control data transmitted by the plurality of cameras are received, so that the control of the target camera is realized.
Referring to fig. 5, in another embodiment, in step S102, the step of obtaining target remote control data corresponding to a remote control event according to the time difference of receiving a plurality of the first remote control data and a plurality of the first remote control data includes the following steps S10221-S10223:
s10221: calculating time differences of receiving a plurality of first shooting remote control data, and obtaining a plurality of second shooting remote control data of which the time differences are within a preset time threshold.
Optionally, the time difference of the received plurality of first image capturing remote control data may be calculated one by one after receiving the plurality of first image capturing remote control data in sequence within a preset time, so as to determine whether the time difference is within a preset time threshold, so that the plurality of first image capturing remote control data with the time difference within the preset time threshold is used as the plurality of second image capturing remote control data.
S10222: and acquiring equipment information of the camera transmitting the second camera remote control data.
The device information includes one or more of information of the camera, such as an IP address of the camera, a mac address of the camera, or a socket (socket) of a communication channel correspondingly connected to the camera, which may enable the multi-camera control device to identify the camera.
Wherein, the IP address (nternet Protocol Address) refers to an Internet protocol address, and is translated into an Internet protocol address being an IP protocol. The IP address is a unified address format provided by the IP protocol, which assigns a logical address to each network and each host on the internet.
The mac address (Media Access Control Address ) is also called a physical address or a hardware address, and is burned on an EPROM (a flash memory chip, which may be typically erased by a program) of the network card (Network lnterface Card) when produced by a manufacturer of the network device, and is used to uniquely identify the device.
The socket is one end of the communication of the process on the network, and provides a mechanism for the application layer process to exchange data by using the network protocol. In terms of the position, the socket is connected with the application process in an upper mode, the lower network protocol stack is an interface for the application program to communicate through a network protocol, is an interface for the application program to interact with a network protocol root, and can also be regarded as endpoints in respective communication connection when the two network application programs communicate.
In this embodiment of the present application, the device information of the camera that transmits the second remote control data for image capturing, acquired in step S10222, is a socket of a communication channel correspondingly connected to the camera. Specifically, the cameras and the multi-camera control device communicate through respective communication channels, and each communication channel is correspondingly provided with a thread, so that the work of each communication channel is monitored through the thread; when first shooting remote control data are received in a communication channel, a socket corresponding to the communication channel can be obtained through a thread, meanwhile, the time difference of receiving a plurality of first shooting remote control data is calculated, a plurality of second shooting remote control data of which the time difference is within a preset time threshold are obtained, and then equipment information of a camera transmitting the second shooting remote control data is obtained.
S10223: and respectively taking a plurality of second shooting remote control data with the same equipment information of the cameras transmitting the second shooting remote control data as target shooting remote control data, and combining the plurality of second shooting remote control data with different equipment information of the cameras transmitting the first shooting remote control data into one target shooting remote control data.
In an application scenario, there may be multiple key operations on the camera remote control device in a preset time to generate multiple remote control events, so as to generate multiple first camera remote control data, where the same camera may continuously transmit multiple first camera remote control data in the preset time. The socket of each camera is different, so that the plurality of second camera remote control data transmitted by the camera corresponding to the same socket are respectively used as target remote control data, and the plurality of second camera remote control data transmitted by the cameras corresponding to different sockets are combined into one target remote control data.
According to the method and the device for identifying the target shooting remote control data, in the process of obtaining the plurality of second shooting remote control data with the time difference within the preset time threshold, the target shooting remote control data are further identified by combining the equipment information of the cameras for transmitting the second shooting remote control data, and the accuracy of identifying the target shooting remote control data can be further improved.
The following describes the multi-camera control method in detail with reference to fig. 6.
As shown in fig. 6, when the multi-camera control device monitors an event with camera access, acquiring mac addresses of all cameras currently accessed in a multicast mode, and judging whether corresponding mapping relations are established for all cameras currently accessed according to the mac addresses; if the camera does not establish a corresponding mapping relation, acquiring the current IP address of the camera and the socket corresponding to the camera, configuring the camera number for the camera, and establishing the mapping relation of the camera mac address, the IP address of the camera and the socket corresponding to the camera and the camera number.
When a remote control event is generated on the camera remote control device, for example, when a user presses one of the control keys, the camera remote control device generates a corresponding camera remote control instruction, so that the camera remote control device broadcasts and sends out first camera remote control data; and the cameras are in wireless connection with the camera remote control equipment, and the first camera remote control data are acquired in the wireless receiving range of the cameras. The plurality of cameras transmit the first camera remote control data acquired respectively to the multi-camera control equipment, and at the moment, the multi-camera control equipment receives the plurality of first camera remote control data transmitted by the plurality of cameras, and obtains sockets corresponding to the cameras and the time for receiving the first camera remote control data through threads; then, the multi-camera control equipment leads a plurality of first camera remote control data, sockets corresponding to all cameras and time for receiving the first camera remote control data into a remote control filter to obtain target camera remote control data corresponding to a remote control event; and obtaining a target remote control instruction according to the target shooting remote control data. Meanwhile, the multi-camera control equipment acquires a target camera number set by default, acquires a socket corresponding to the target camera number according to the camera mac address, the IP address of the camera and the mapping relation of the socket corresponding to the camera and the camera number, and then sends a target remote control instruction to the target camera through the socket corresponding to the target camera number so as to control the target camera.
Example 2
The following are examples of apparatus that may be used to perform the method of example 1 of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method in embodiment 1 of the present application.
Referring to fig. 7, a multi-camera control apparatus 200 disclosed in an embodiment of the present application includes:
the data receiving module 201 is configured to receive a plurality of first remote control data for shooting, which are respectively transmitted by a plurality of cameras in a preset time, and obtain a time for receiving a plurality of the first remote control data for shooting;
a target camera remote control data obtaining module 202, configured to obtain one target camera remote control data corresponding to a remote control event according to a time difference of receiving a plurality of the first camera remote control data and a plurality of the first camera remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head;
and the remote control instruction sending module 203 is configured to send the target remote control instruction to the target camera.
According to the embodiment of the application, the first camera remote control data transmitted by the cameras respectively in the preset time are received, and the time for receiving the first camera remote control data is acquired; obtaining target camera remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first camera remote control data and a plurality of first camera remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head; and the target remote control instruction is sent to the target cameras, so that each camera can obtain the first shooting remote control data, and further, the control of any one camera can be conveniently and quickly realized, and the cost is reduced.
In one embodiment, the target camera remote control data acquisition module 202 includes:
the first calculation module is used for calculating the time difference of receiving a plurality of first shooting remote control data and acquiring a plurality of second shooting remote control data of which the time difference is within a preset time threshold.
And the first target data acquisition module is used for combining a plurality of second shooting remote control data into one target shooting remote control data.
In another embodiment, the target camera remote control data acquisition module 202 includes:
the second calculation module is used for calculating the time difference of receiving a plurality of first shooting remote control data and acquiring a plurality of second shooting remote control data of which the time difference is within a preset time threshold.
And the equipment information acquisition module is used for acquiring equipment information of the camera transmitting the second camera remote control data.
The first target data acquisition module is used for respectively taking a plurality of second shooting remote control data with the same equipment information of the cameras transmitting the second shooting remote control data as target shooting remote control data, and combining a plurality of second shooting remote control data with different equipment information of the cameras transmitting the first shooting remote control data into one target shooting remote control data.
In one embodiment, the data receiving module 201 includes:
and the transmission equipment information acquisition module is used for acquiring the target transmission equipment information.
The target data receiving module is used for receiving a plurality of first shooting remote control data which are respectively transmitted by a plurality of cameras corresponding to target transmission equipment information in preset time and acquiring time for receiving the plurality of first shooting remote control data.
In one embodiment, the data receiving module 201 includes:
the monitoring module is used for acquiring equipment information of the camera when the camera is accessed, configuring a camera number for the camera, and establishing a mapping relation between the equipment information of the camera and the camera number; wherein the camera number corresponds to one or more of the device information.
The remote control instruction transmitting module 203 includes:
the target camera number acquisition module is used for acquiring the target camera number.
The equipment information acquisition module is used for acquiring the equipment information of the target camera corresponding to the target camera number according to the mapping relation between the equipment information of the camera and the camera number.
And the instruction sending module is used for sending the target remote control instruction to the target camera according to the equipment information of the target camera.
In one embodiment, the device information of the camera further includes a camera mac address; the monitoring module comprises:
and the mac address acquisition module is used for acquiring mac addresses of all cameras which are accessed currently when the access of the cameras is monitored, and judging whether the corresponding mapping relation is established among all cameras which are accessed currently according to the mac addresses.
And the mapping relation establishing module is used for acquiring the current equipment connection information of the camera if the corresponding mapping relation is not established by the camera, configuring the camera number for the camera, and establishing the mapping relation among the camera mac address, the equipment connection information and the camera number.
The mapping relation updating module is used for acquiring current equipment connection information of the camera and equipment connection information in the mapping relation if the camera has established a corresponding mapping relation; when the current equipment connection information of the camera is different from the equipment connection information in the mapping relation, replacing the equipment connection information in the mapping relation with the current equipment connection information, and updating the mapping relation corresponding to the mac address of the camera.
Example 3
The following are system embodiments of the present application that may be used to perform the method of embodiment 1 of the present application. For details not disclosed in the system embodiments of the present application, please refer to the content of the method in embodiment 1 of the present application.
Referring to fig. 8, the embodiment of the present application further provides a multi-camera remote control system 300, including a camera remote control device 301, a plurality of cameras 302, and a multi-camera control device 303; the cameras 302 are respectively connected with the camera remote control device 301 and the multi-camera control device 303; the camera remote control device 301 is configured to send out first camera remote control data; the cameras 302 are configured to transmit the collected first camera remote control signal to the multi-camera control device 303; the multi-camera control device 303 performs the method steps of the above-described embodiment 1, and the specific implementation process may be referred to the specific description of embodiment 1, which is not described herein.
Example 4
The following are device embodiments of the present application that may be used to perform the method of embodiment 1 of the present application. For details not disclosed in the embodiment of the apparatus of the present application, please refer to the content of the method in embodiment 1 of the present application.
Referring to fig. 9, the present application further provides an electronic device 400, where the electronic device 400 may be specifically a computer, a mobile phone, a tablet computer, an interactive tablet, etc., and in an exemplary embodiment of the present application, the electronic device 400 is prepared for multiple cameras. The electronic device 400 may include: at least one processor 401, at least one memory 402, at least one display 403, at least one network interface 404, a user interface 405, and at least one communication bus 406.
The user interface 405 is mainly used for providing an input interface for a user, and acquiring data input by the user. Optionally, the user interface 405 may also include a standard wired interface, a wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the communication bus 406 is used to enable connected communication between these components.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects various portions of the overall electronic device 400 using various interfaces and lines, executing various functions of the electronic device 400, and processing data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 402, and invoking data stored in the memory 402. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 402 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 402 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 402 may be used to store instructions, programs, code sets, or instruction sets. The memory 402 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 402 may also optionally be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 9, an operating system, a network communication module, a user may be included in the memory 402, which is one type of computer storage medium.
The processor 401 may be configured to call an application program of the multi-camera control device stored in the memory 402, and specifically execute the method steps of the foregoing embodiment 1, and the specific execution process may refer to the specific description shown in embodiment 1, which is not repeated herein.
Example 5
The present application further provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment 1, and the specific execution process may refer to the specific description shown in the embodiment, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above described embodiments of the apparatus are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e. may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (12)

1. The multi-camera control method is characterized by comprising the following steps of:
receiving a plurality of first camera remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving a plurality of first camera remote control data;
Obtaining target shooting remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first shooting remote control data and a plurality of first shooting remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head;
and sending the target remote control instruction to the target camera.
2. The multi-camera control method according to claim 1, wherein:
the step of obtaining target image capturing remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first image capturing remote control data and a plurality of first image capturing remote control data comprises the following steps:
calculating time differences of receiving a plurality of first camera remote control data, and acquiring a plurality of second camera remote control data of which the time differences are within a preset time threshold;
and combining a plurality of second camera shooting remote control data into one target camera shooting remote control data.
3. The multi-camera control method according to claim 1, wherein:
the step of obtaining target image capturing remote control data corresponding to a remote control event according to the time difference of receiving a plurality of first image capturing remote control data and a plurality of first image capturing remote control data comprises the following steps:
Calculating time differences of receiving a plurality of first camera remote control data, and acquiring a plurality of second camera remote control data of which the time differences are within a preset time threshold;
acquiring equipment information of a camera transmitting the second camera remote control data;
and respectively taking a plurality of second shooting remote control data with the same equipment information of the cameras transmitting the second shooting remote control data as target shooting remote control data, and combining the plurality of second shooting remote control data with different equipment information of the cameras transmitting the first shooting remote control data into one target shooting remote control data.
4. The multi-camera control method according to claim 1, wherein:
before the steps of receiving the plurality of first shooting remote control data respectively transmitted by the plurality of cameras within the preset time and obtaining the time for receiving the plurality of first shooting remote control data, the method further comprises the following steps:
when monitoring that a camera is accessed, acquiring equipment information of the camera, configuring a camera number for the camera, and establishing a mapping relation between the equipment information of the camera and the camera number; wherein the camera number corresponds to one or more pieces of equipment information;
The step of sending the target remote control instruction to the target camera comprises the following steps:
acquiring the number of a target camera;
obtaining equipment information of a target camera corresponding to the target camera number according to the mapping relation between the equipment information of the camera and the camera number;
and sending the target remote control instruction to the target camera according to the equipment information of the target camera.
5. The multi-camera control method according to claim 4, wherein:
the target camera remote control data comprise a target camera number;
the step of obtaining the number of the target camera comprises the following steps:
acquiring a target camera number from the target camera remote control number; or alternatively, the process may be performed,
and obtaining the target camera number of the default setting.
6. The multi-camera control method according to claim 4, wherein:
the device information includes device connection information; the equipment connection information comprises one or two of an IP address of the camera and a socket connected with the camera.
7. The multi-camera control method according to claim 6, wherein:
the equipment information also comprises the mac address of the camera;
When monitoring that the camera is accessed, acquiring equipment information of the camera, configuring a camera number for the camera, and establishing a mapping relation between the equipment information of the camera and the camera number, wherein the step comprises the following steps:
when monitoring access of cameras, acquiring mac addresses of all cameras which are currently accessed, and judging whether all cameras which are currently accessed establish corresponding mapping relations according to the mac addresses;
if the camera does not establish a corresponding mapping relation, acquiring current equipment connection information of the camera, configuring a camera number for the camera, and establishing a mapping relation among the camera mac address, the equipment connection information and the camera number;
if the camera has established a corresponding mapping relation, acquiring current equipment connection information of the camera and the equipment connection information in the mapping relation; when the current equipment connection information of the camera is different from the equipment connection information in the mapping relation, replacing the equipment connection information in the mapping relation with the current equipment connection information, and updating the mapping relation corresponding to the mac address of the camera.
8. The multi-camera control method according to any one of claims 1 to 7, characterized in that:
the step of receiving a plurality of first shooting remote control data respectively transmitted by a plurality of cameras within a preset time and obtaining the time for receiving a plurality of first shooting remote control data comprises the following steps:
acquiring target transmission equipment information;
receiving a plurality of first shooting remote control data which are respectively transmitted by a plurality of cameras corresponding to target transmission equipment information in preset time, and acquiring time for receiving the plurality of first shooting remote control data.
9. A multiple camera control apparatus, comprising:
the data receiving module is used for receiving a plurality of first shooting remote control data transmitted by a plurality of cameras respectively in preset time and acquiring time for receiving the plurality of first shooting remote control data;
the target data acquisition module is used for acquiring one target camera remote control data corresponding to one remote control event according to the time difference of receiving a plurality of first camera remote control data and a plurality of first camera remote control data; the target camera shooting remote control data are used for indicating to send a target remote control instruction to the target camera shooting head;
And the remote control instruction sending module is used for sending the target remote control instruction to the target camera.
10. A multi-camera remote control system, characterized by: the system comprises a plurality of cameras, a camera remote control device and a multi-camera control device; the cameras are respectively connected with the camera remote control equipment and the multi-camera control equipment; the camera remote control device is used for sending out first camera remote control data; the cameras are used for transmitting the collected first camera remote control signals to the multi-camera control equipment; the multi-camera control apparatus performs the multi-camera control method according to any one of claims 1 to 8.
11. An electronic device includes a processor and a memory; characterized in that the memory stores a computer program adapted to be loaded by the processor and to perform the multi-camera control method according to any one of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the multi-camera control method according to any one of claims 1 to 8.
CN202111435602.6A 2021-11-29 2021-11-29 Multi-camera control method, device, system, storage medium and electronic equipment Pending CN116208735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111435602.6A CN116208735A (en) 2021-11-29 2021-11-29 Multi-camera control method, device, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111435602.6A CN116208735A (en) 2021-11-29 2021-11-29 Multi-camera control method, device, system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116208735A true CN116208735A (en) 2023-06-02

Family

ID=86509942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111435602.6A Pending CN116208735A (en) 2021-11-29 2021-11-29 Multi-camera control method, device, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116208735A (en)

Similar Documents

Publication Publication Date Title
CN107358007B (en) It controls the method, apparatus of smart home system and calculates readable storage medium storing program for executing
EP3329352B1 (en) User terminal apparatus and controlling method thereof
JP6298930B2 (en) Method and apparatus for measuring state of network connection channel, electronic device, program, and recording medium
CN109032039B (en) Voice control method and device
CN109669372B (en) Configuration method and device
WO2015137740A1 (en) Home network system using robot and control method thereof
EP3112983A1 (en) Hand gesture recognition method, device, system, and computer storage medium
EP3112984A1 (en) Hand gesture recognition method, device, system, and computer storage medium
US20190051147A1 (en) Remote control method, apparatus, terminal device, and computer readable storage medium
WO2019057089A1 (en) Network card image packet capture method, terminal, and readable storage medium
US20070283040A1 (en) Electronic device, network connecting system, network connecting method, and program product therefor
US11765469B2 (en) Image capturing apparatus, device, control method, and computer-readable storage medium
EP2869584A1 (en) Method and device for realizing distributed remote control, and television terminal and mobile terminal thereof
CN113170301A (en) Temporarily adding light devices to an entertainment group
US9927785B2 (en) Device control method and system thereof
WO2016062191A1 (en) Information publication method, information receiving method and apparatus, and information sharing system
TW201716975A (en) Method and apparatus for real-time video interaction
CN116208735A (en) Multi-camera control method, device, system, storage medium and electronic equipment
CN114915511B (en) Control method and device of split equipment
CN109873958B (en) Camera shutter control method, device and system
TWI543626B (en) Mobile device remote image-monitoring system and method thereof
CN113827953A (en) Game control system
CN116366932A (en) Camera-based image processing method, storage medium and related equipment
KR100922338B1 (en) Data intergrated apparatus
CN117880334A (en) Device management method, master control device, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination