Intelligent control method and system of PTZ camera
By generating predicted trajectories and generating PTZ cameras based on this, the problem of poor user experience caused by environmental uncertainty caused by PTZ cameras when automatically tracking target objects is solved, achieving more accurate control and better user experience.
Patent Information
- Application Number
- CN202210480825.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-05-05
AI Technical Summary
When existing PTZ cameras automatically track target objects, they face on-site environmental uncertainty, resulting in frequent changes in target size, speed and direction, and frequent adjustment of PTZ cameras has caused poor user experience.
The target object information is obtained by monitoring the image, a predicted trajectory is generated, and an intelligent control scheme of the PTZ camera is generated based on the predicted trajectory, and the control scheme is executed to realize intelligent control of the PTZ camera. The control scheme includes several position data, which avoids the overshoot problem of speed control and reduces shaking.
A more accurate PTZ camera control solution is realized, and automatic tracking control of the target object is achieved, avoiding tracking screen shaking, greatly improving the user experience.
Smart Images

Figure CN115002404B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to an intelligent control method, system, electronic device and storage medium of a PTZ camera. Background Art
[0002] PTZ cameras can track moving targets through panning, tilting, and zooming. This function is already available on high-end intelligent tracking PTZ cameras. It identifies targets through image analysis and controls the PTZ camera to continuously track the target while keeping the target in the center of the image and at an appropriate size. This function can solve the problem of untimely manual intervention when the target appears, reduce the workload of video surveillance personnel, and improve user experience.
[0003] However, the user experience of this function is not good at present. Although it is a real demand of users, it has not been widely promoted. The main reason is that this function faces "uncertainty of the on-site environment". The main difficulties include: 1) Differences in the size of targets such as people and cars; 2) Differences in image size and speed caused by the distance of the target; 3) Changes in the actual speed of the target, even sudden changes and changes in direction; 4) In order to keep the target in the center of the image and at the appropriate size, frequent adjustments to PTZ result in poor user experience.
[0004] Through the above analysis, it can be known that the technology of controlling the PTZ camera to automatically track the target object in the prior art still has many technical problems and is difficult to meet actual needs. Summary of the invention
[0005] In order to at least solve the technical problems existing in the above-mentioned background technology, the present invention provides an intelligent control method, system, electronic device and storage medium of a PTZ camera.
[0006] A first aspect of the present invention provides an intelligent control method for a PTZ camera, comprising the following steps:
[0007] Acquire target object information according to the monitoring image, and generate a predicted trajectory according to the target object information;
[0008] generating a control scheme for the PTZ camera according to the predicted trajectory, and executing the control scheme to achieve intelligent control of the PTZ camera;
[0009] Wherein, the control scheme includes a number of position data.
[0010] Optionally, the target object information includes a first position and a first direction;
[0011] The generating a predicted trajectory according to the target object information includes:
[0012] Predicting a prediction data set according to the first position and the first direction, wherein the prediction data set includes a plurality of second positions and second directions;
[0013] The first position and each of the second positions are connected in sequence to obtain the predicted trajectory.
[0014] Optionally, predicting and obtaining a prediction data set according to the first position and the first direction includes:
[0015] A second position and a second direction are predicted based on the first position and the first direction, and then a next set of second positions and second directions are predicted based on the second position and the second direction, and the predicted data set is obtained by calculation in this way.
[0016] Optionally, generating a control scheme for the PTZ camera according to the predicted trajectory includes:
[0017] Using the position data in the predicted trajectory as a first target control position, the position data including a first position and a second position;
[0018] Determine that a control target is a center of a screen of the PTZ camera that coincides with the target control position in sequence, and generate the control scheme according to the first target control position and the control target.
[0019] Optionally, the target object information further includes a first speed, and the prediction data set includes a plurality of second speeds;
[0020] The generating of the predicted trajectory according to the target object information further includes: calculating a plurality of second moments according to the first speed and the second speed, and associating the second moments with the second positions in the predicted trajectory;
[0021] Correspondingly, determining that the control target is such that the center of the screen of the PTZ camera coincides with the first target control position in sequence includes:
[0022] Determine that the control target is that the center of the screen of the PTZ camera coincides with the first target control position in sequence according to a plurality of the second moments.
[0023] Optionally, the method further comprises:
[0024] Determine a movable area according to the monitoring image, and determine a target movable area according to the predicted trajectory;
[0025] Calculate a predicted passing time according to the target movable area, the first speed, and the second speed;
[0026] Then the control scheme of generating the PTZ camera according to the predicted trajectory further includes:
[0027] It is determined whether the predicted passing time is greater than or equal to a first threshold. If so, a second target control position is determined according to the predicted passing time, and the control target of the second target control position is set to also include a close-up zoom control target.
[0028] Optionally, the generating a control scheme for the PTZ camera according to the predicted trajectory further includes:
[0029] Determine whether the second target control position is a fork, and if so, obtain the first speed and the real-time third speed of the target object before the second target control position;
[0030] Predicting a fourth speed according to the first speed and the third speed;
[0031] If the fourth speed is less than the second speed corresponding to the second target control position, and the difference is greater than or equal to a second threshold, the close-up zoom control target in the control target of the second target control position is cancelled.
[0032] The second aspect of the present invention provides an intelligent control system for a PTZ camera, comprising a processing module, a storage module, and a communication module, wherein the processing module is connected to the storage module and the communication module respectively; wherein:
[0033] The storage module is used to store executable computer program code;
[0034] The communication module is used to receive the monitoring image and transmit it to the processing module, and output the control instructions of the processing module;
[0035] The processing module is used to execute the method as described in any of the preceding items by calling the executable computer program code in the storage module.
[0036] A third aspect of the present invention provides an electronic device, comprising:
[0037] A memory storing executable program code;
[0038] a processor coupled to the memory;
[0039] The processor calls the executable program code stored in the memory to execute the method as described in any of the preceding items.
[0040] A fourth aspect of the present invention provides a computer storage medium having a computer program stored thereon, and the computer program, when executed by a processor, executes any of the methods described above.
[0041] The solution of the present invention obtains target object information based on the monitoring image, generates a predicted trajectory based on the target object information; generates a control scheme for the PTZ camera based on the predicted trajectory, and executes the control scheme to achieve intelligent control of the PTZ camera, wherein the control scheme includes a number of position data. The solution of the present invention can generate a more accurate control scheme for the PTZ camera, which can achieve automatic tracking control of the target object on the one hand, and the tracking screen will not shake on the other hand, greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a flow chart of an intelligent control method of a PTZ camera disclosed in an embodiment of the present invention.
[0044] Figure 2 It is a structural schematic diagram of an intelligent control system of a PTZ camera disclosed in an embodiment of the present invention.
[0045] Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0048] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the accompanying drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the system or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0049] The terms "first", "second", "third", and "fourth" in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order of the objects. For example, the first input, the second input, the third input, and the fourth input are used to distinguish different inputs rather than to describe a specific order of the inputs.
[0050] In the embodiments of the present invention, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0051] In the description of the embodiments of the present invention, unless otherwise specified, “multiple” means two or more than two. For example, multiple processing units refer to two or more processing units; multiple elements refer to two or more elements, etc.
[0052] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0053] Embodiment 1
[0054] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an intelligent control method for a PTZ camera disclosed in an embodiment of the present invention. Figure 1 As shown, an intelligent control method of a PTZ camera according to an embodiment of the present invention comprises the following steps:
[0055] Acquire target object information according to the monitoring image, and generate a predicted trajectory according to the target object information;
[0056] generating a control scheme for the PTZ camera according to the predicted trajectory, and executing the control scheme to achieve intelligent control of the PTZ camera;
[0057] Wherein, the control scheme includes a number of position data.
[0058] In the embodiment of the present invention, the mainstream PTZ cameras on the market mainly adopt speed control. However, when controlled by SDK, for example, the actual speed gears are very few, resulting in a mismatch between the actual speed and the nominal speed. Moreover, speed control usually requires sampling and control frequencies at the millisecond level, which puts a lot of pressure on network interaction. Due to the lack of precise speed control capabilities, overshoot is inevitable, causing the target object to shake in the center area, resulting in a poor user experience.
[0059] In view of this, the present invention predicts the moving trajectory of the target object based on the identified target object information, and then generates a control scheme for the position point set of the PTZ camera based on the predicted moving trajectory. The PTZ camera only needs to move to the specified position point at the predetermined time, avoiding the overshoot problem of speed control and no shaking. Therefore, the scheme of the present invention can generate a more accurate control scheme for the PTZ camera. On the one hand, it can realize automatic tracking control of the target object, and on the other hand, the tracking picture will not shake, which greatly improves the user experience.
[0060] It should be noted that the solution of the present invention has two main implementation modes, namely the field end and the server end. Among them, the field end can be the control module of the PTZ camera, or other control devices with communication and processing functions, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, etc.; the server end can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. In addition, a communication connection can be achieved between the field end and the server end, so that the data processing function of the field end can be transferred to the server end, which can effectively reduce the requirements for the data processing capabilities of the field end.
[0061] Optionally, the target object information includes a first position and a first direction;
[0062] The generating a predicted trajectory according to the target object information includes:
[0063] Predicting a prediction data set according to the first position and the first direction, wherein the prediction data set includes a plurality of second positions and second directions;
[0064] The first position and each of the second positions are connected in sequence to obtain the predicted trajectory.
[0065] In an embodiment of the present invention, after the target object enters the surveillance image and is successfully identified, the first position and the first direction of the target object can be obtained, based on which the position data of the target object at the next moment can be predicted, and these positions can be connected in sequence to obtain the predicted trajectory.
[0066] It should be noted that the first position and the first direction in the present invention can be the data of a single position point or the data of multiple position points. That is, subsequent position point prediction can be performed based on a certain position information of the target object, or subsequent position information prediction can be performed based on several position information of the target object identified in the early stage. The present invention is not limited to this.
[0067] Optionally, predicting and obtaining a prediction data set according to the first position and the first direction includes:
[0068] A second position and a second direction are predicted based on the first position and the first direction, and then a next set of second positions and second directions are predicted based on the second position and the second direction, and the predicted data set is obtained by calculation in this way.
[0069] In the embodiment of the present invention, after obtaining the first position and the first direction of the target object, the second position and the second direction of the target object at the next moment can be predicted based on the first position and the first direction of the target object at the next moment. By performing prediction calculations step by step, the predicted position point of the target object in a certain subsequent period of time can be obtained. The trajectory prediction method of the present invention performs step-by-step prediction based on the previous prediction, and the accuracy of the position point prediction is higher. The present invention does not limit the prediction method used.
[0070] Optionally, generating a control scheme for the PTZ camera according to the predicted trajectory includes:
[0071] Using the position data in the predicted trajectory as a first target control position, the position data including a first position and a second position;
[0072] Determine that a control target is a center of a screen of the PTZ camera that coincides with the target control position in sequence, and generate the control scheme according to the first target control position and the control target.
[0073] In an embodiment of the present invention, after determining the predicted trajectory of the target object, the position point in the predicted trajectory can be used as the first target control position of the PTZ camera. At the same time, in order to make the target object always in the center of the camera screen as much as possible, the present invention also sets the control target so that the center of the PTZ camera screen coincides with the first target control position in sequence, which can bring users a better monitoring and viewing effect.
[0074] Optionally, the target object information further includes a first speed, and the prediction data set includes a plurality of second speeds;
[0075] The generating of the predicted trajectory according to the target object information further includes: calculating a plurality of second moments according to the first speed and the second speed, and associating the second moments with the second positions in the predicted trajectory;
[0076] Correspondingly, determining that the control target is such that the center of the screen of the PTZ camera coincides with the first target control position in sequence includes:
[0077] Determine that the control target is that the center of the screen of the PTZ camera coincides with the first target control position in sequence according to a plurality of the second moments.
[0078] In an embodiment of the present invention, after determining the target control position of the PTZ camera, the present invention further determines the moment when the PTZ camera rotates to the target control position, specifically: obtaining the speed data of the target object, and the subsequent predicted position points also include the speed data, based on which the moment when the target object arrives at each position point can be obtained, and accordingly the PTZ camera can be controlled to rotate to the corresponding position point at that moment, thereby achieving synchronous tracking of the target object.
[0079] Optionally, the method further comprises:
[0080] Determine a movable area according to the monitoring image, and determine a target movable area according to the predicted trajectory;
[0081] Calculate a predicted passing time according to the target movable area, the first speed, and the second speed;
[0082] Then the control scheme of generating the PTZ camera according to the predicted trajectory further includes:
[0083] It is determined whether the predicted passing time is greater than or equal to a first threshold. If so, a second target control position is determined according to the predicted passing time, and the control target of the second target control position is set to also include a close-up zoom control target.
[0084] In an embodiment of the present invention, when the target object moves in the monitoring image, its details (such as a face) need to be obtained, and at this time, the PTZ camera needs to be zoomed. Specifically, the present invention first determines the movable area (excluding immovable areas such as walls) according to the monitoring image, and the possible target moving area of the target object can be determined according to the predicted trajectory, and then the predicted passing time of the target object in the monitoring image can be determined according to the length of the target moving area and the speed data of the target object in the predicted trajectory. When the predicted passing time is short, it may be "too late" to control the zoom of the PTZ camera, and the picture will be jittery and blurred during the zooming process, resulting in the inability to obtain usable information. In view of this, the present invention is set to control the PTZ camera at the target control position when the predicted passing time is greater than or equal to the first threshold. The control target also includes a close-up zoom control target; and when the predicted passing time is less than the first threshold, other schemes can be adopted, such as controlling the PTZ camera or other synchronously deployed snapshot cameras to capture high-frequency pictures, etc., which will not be repeated in the present invention.
[0085] It should be noted that the second target control position in the present invention is included in the first target control position, that is, only a part of the first target control position is used as the implementation position of the zoom control. The number of the second target control positions can be determined according to various factors such as the speed of the target object, the attributes of the monitoring scene, and the number of the first target control positions, which will not be elaborated in the present invention.
[0086] Optionally, the generating a control scheme for the PTZ camera according to the predicted trajectory further includes:
[0087] Determine whether the second target control position is a fork, and if so, obtain the first speed and the real-time third speed of the target object before the second target control position;
[0088] Predicting a fourth speed according to the first speed and the third speed;
[0089] If the fourth speed is less than the second speed corresponding to the second target control position, and the difference is greater than or equal to a second threshold, the close-up zoom control target in the control target of the second target control position is cancelled.
[0090] In an embodiment of the present invention, in some monitoring scenarios, a PTZ camera may be responsible for monitoring a larger area, and these areas usually include multiple channels. At this time, the credibility of the predicted trajectory of the target object predicted above will be greatly reduced. In view of this, the present invention further obtains the real speed data of the target object during the movement, namely the first speed and the third speed, and can predict the fourth speed of the target object when it reaches the second target control position, and then compare it with the second speed predicted before. When the fourth speed is significantly lower than the second speed, it means that the target object may change direction at the fork, otherwise the probability of changing direction is low. At the same time, when the target object has a large probability of changing direction, it is not appropriate to control the PTZ camera for close-up zoom control, but should switch to long-range zoom control to avoid "losing" when the target object suddenly changes direction. Therefore, when the solution of the present invention determines that the second target control position is a fork, it calculates the new predicted speed of the target object at the second target control position according to the actual speed of the target object, thereby determining whether it is possible to change direction. If so, the original close-up zoom control target can be canceled (the standard focal length is restored, or changed to a long-range zoom control target), thereby avoiding the target object from disappearing from the monitoring image.
[0091] In addition, after canceling the close-up zoom control target, the predicted trajectory can be recalculated and the control scheme of the PTZ camera can be adjusted accordingly, thereby achieving more accurate tracking of the target object.
[0092] Embodiment 2
[0093] See also Figure 2 , Figure 2 Schematic diagram of the structure of an intelligent control system of a PTZ camera disclosed in an embodiment of the present invention. Figure 2 As shown, an intelligent control system 100 of a PTZ camera according to an embodiment of the present invention comprises a processing module 101, a storage module 102, and a communication module 103, wherein the processing module 101 is connected to the storage module 102 and the communication module 103; wherein,
[0094] The storage module 102 is used to store executable computer program code;
[0095] The communication module 103 is used to receive the monitoring image and transmit it to the processing module 101, and output the control instruction of the processing module 101;
[0096] The processing module 101 is used to execute the method as described in the first embodiment by calling the executable computer program code in the storage module 102 .
[0097] The specific functions of the intelligent control system of a PTZ camera in this embodiment refer to the above-mentioned embodiment 1. Since the system in this embodiment adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.
[0098] Embodiment 3
[0099] See also Figure 3 , Figure 3 An electronic device disclosed in an embodiment of the present invention includes:
[0100] A memory storing executable program code;
[0101] a processor coupled to the memory;
[0102] The processor calls the executable program code stored in the memory to execute the method described in the first embodiment.
[0103] Embodiment 4
[0104] The embodiment of the present invention further discloses a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first embodiment is executed.
[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input system, and at least one output system, and transmit data and instructions to the storage system, the at least one input system, and the at least one output system.
[0106] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing system, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0107] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, system, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0108] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display system (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing system (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of systems can also be used to provide interaction with a user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0109] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0110] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0112] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An intelligent control method for a PTZ camera, characterized in that: The steps include: Acquire target object information according to the monitoring image, and generate a predicted trajectory according to the target object information; generating a control scheme for the PTZ camera according to the predicted trajectory, and executing the control scheme to achieve intelligent control of the PTZ camera; Wherein, the control scheme includes a number of position data; The target object information also includes a first speed, and the target object information includes a first position and a first direction; a prediction data set is obtained based on the prediction of the first position and the first direction, and the prediction data set includes a plurality of second speeds; the first position and the first direction are data of multiple position points; The method further comprises: Determine a movable area according to the monitoring image, and determine a target movable area according to the predicted trajectory; Calculate a predicted passing time according to the target movable area, the first speed, and the second speed; Then the control scheme of generating the PTZ camera according to the predicted trajectory further includes: It is determined whether the predicted passing time is greater than or equal to a first threshold. If so, a second target control position is determined according to the predicted passing time, and the control target of the second target control position is set to also include a close-up zoom control target.
2. The intelligent control method of a PTZ camera according to claim 1, characterized in that: The target object information includes a first position and a first direction; The generating a predicted trajectory according to the target object information includes: A prediction data set is obtained according to the first position and the first direction, wherein the prediction data set includes a plurality of second positions and second directions; The first position and each of the second positions are connected in sequence to obtain the predicted trajectory.
3. The intelligent control method of a PTZ camera according to claim 2, characterized in that: The step of predicting a prediction data set according to the first position and the first direction includes: A second position and a second direction are predicted based on the first position and the first direction, and then a next set of second positions and second directions are predicted based on the second position and the second direction, and the predicted data set is obtained by calculation in this way.
4. The intelligent control method of a PTZ camera according to claim 2 or 3, characterized in that: The step of generating a control scheme for the PTZ camera according to the predicted trajectory includes: Using the position data in the predicted trajectory as a first target control position, the position data including a first position and a second position; The control target is determined to be that the center of the screen of the PTZ camera coincides with the target control position in sequence, and the control scheme is generated according to the first target control position and the control target.
5. The intelligent control method of a PTZ camera according to claim 4, characterized in that: The target object information further includes a first speed, and the prediction data set includes a plurality of second speeds; The generating of the predicted trajectory according to the target object information further includes: calculating a plurality of second moments according to the first speed and the second speed, and associating the second moments with the second positions in the predicted trajectory; Correspondingly, determining that the control target is such that the center of the screen of the PTZ camera coincides with the first target control position in sequence includes: Determine that the control target is that the center of the screen of the PTZ camera coincides with the first target control position in sequence according to a plurality of the second moments.
6. The intelligent control method of a PTZ camera according to claim 5, characterized in that: The control scheme of generating the PTZ camera according to the predicted trajectory also includes: Determine whether the second target control position is a fork, and if so, obtain the first speed and the real-time third speed of the target object before the second target control position; Predicting a fourth speed according to the first speed and the third speed; If the fourth speed is less than the second speed corresponding to the second target control position, and the difference is greater than or equal to a second threshold, the close-up zoom control target in the control target of the second target control position is cancelled.
7. An intelligent control system for a PTZ camera, comprising a processing module, a storage module, and a communication module, wherein the processing module is connected to the storage module and the communication module respectively; wherein: The storage module is used to store executable computer program code; The communication module is used to receive the monitoring image and transmit it to the processing module, and output the control instructions of the processing module; It is characterized in that: the processing module is used to execute the method according to any one of claims 1-6 by calling the executable computer program code in the storage module.
8. An electronic device, comprising: A memory storing executable program code; a processor coupled to the memory; It is characterized in that: the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1-6.
9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Camera control method and device, electronic equipment and storage medium
CN113744299A
Camera video recording method and camera
CN113923364A