CN112135058B - Mobile terminal and method for controlling PTZ camera by using mobile terminal - Google Patents

Mobile terminal and method for controlling PTZ camera by using mobile terminal Download PDF

Info

Publication number
CN112135058B
CN112135058B CN202011059465.6A CN202011059465A CN112135058B CN 112135058 B CN112135058 B CN 112135058B CN 202011059465 A CN202011059465 A CN 202011059465A CN 112135058 B CN112135058 B CN 112135058B
Authority
CN
China
Prior art keywords
component
ptz camera
mobile terminal
gyroscope
control
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.)
Active
Application number
CN202011059465.6A
Other languages
Chinese (zh)
Other versions
CN112135058A (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202011059465.6A priority Critical patent/CN112135058B/en
Publication of CN112135058A publication Critical patent/CN112135058A/en
Application granted granted Critical
Publication of CN112135058B publication Critical patent/CN112135058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

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

Abstract

The application discloses a mobile terminal. The mobile terminal includes: a gyroscope. And the communication circuit is used for connecting the PTZ camera. And the control circuit is connected with the gyroscope and the communication circuit and is used for detecting two types of induction information of the gyroscope, sending a first control instruction to the communication circuit to control the zooming parameter of the PTZ camera when detecting the first type of induction information, and sending a second control instruction to the communication circuit to control the rotation of the PTZ camera when detecting the second type of induction information. The mobile terminal provided by the application can control the PTZ camera more flexibly and cheaply.

Description

Mobile terminal and method for controlling PTZ camera by using mobile terminal
Technical Field
The invention relates to the field of sensor technology and digital video monitoring, in particular to a mobile terminal and a method for controlling a PTZ camera by using the mobile terminal.
Background
With the rapid development of multimedia technology and network communication technology, video monitoring technology has been widely used in various fields of national production and life. At present, a camera is generally installed on a pan-tilt head, the pan-tilt head controls the camera to rotate in the horizontal and vertical directions, a pan-tilt control system controls the pan-tilt head to drive the camera to rotate to an area to be monitored, and a video stream of a shot scene is returned to realize remote monitoring.
The traditional control of the pan-tilt has the modes of keys, rocking bars, direct input of control commands and the like. With the great popularization of intelligent mobile terminals and the rapid development of wireless networks such as third-generation mobile communication technology, wireless local area network technology and the like, the remote control of monitoring equipment by using intelligent mobile terminals such as smart phones and other equipment through the wireless networks appears, so that the limitation of regions and time is broken through in the control of a holder, and a mobile terminal user can monitor the remote condition anytime and anywhere.
Disclosure of Invention
The invention mainly solves the technical problem of providing a mobile terminal which can flexibly control the steering and focusing of a PTZ camera (Pan/Tilt/Zoom camera).
In order to solve the technical problems, the invention adopts a technical scheme that: there is provided a mobile terminal including: a gyroscope. And the communication circuit is used for connecting the PTZ camera. And the control circuit is connected with the gyroscope and the communication circuit and is used for detecting two types of induction information of the gyroscope, sending a first control instruction to the communication circuit to control the zooming parameter of the PTZ camera when detecting the first type of induction information, and sending a second control instruction to the communication circuit to control the rotation of the PTZ camera when detecting the second type of induction information.
Further, when the first type of sensing information is detected, controlling the zoom parameter of the PTZZ camera specifically is: and if the angular velocity of the gyroscope on the first component is detected, acquiring a zoom parameter corresponding to the rotation angle on the first component by using the mapping relation between the rotation angle of the gyroscope on the first component and the zoom magnification of the PTZ camera. Wherein the angle of rotation of the gyroscope on the first component is integrated from the angular velocity of the gyroscope on the first component.
Further, the mapping relationship is such that the zoom parameter is proportional to the rotation angle of the gyroscope on the first component. Acquiring the zoom parameter corresponding to the rotation angle on the first component includes: and multiplying the integral value of the ratio of the rotating angle of the first component to the maximum rotating angle of the gyroscope on the first component by the multiplying factor constant of the PTZ camera to obtain the zooming parameter.
Further, when the second type of sensing information is detected, controlling the rotation of the PTZ camera specifically comprises:
and if the modular length of the resultant angular velocity of the second component and the third component is smaller than a preset threshold value, carrying out differential operation on the resultant angular velocity to obtain a corresponding differential value. And if the difference value is larger than zero, generating an instruction of adding one to the rotation step length of the PTZ camera, and otherwise, generating an instruction of subtracting one from the rotation step length of the PTZ camera.
Further, the PTZ camera is a PTZ binocular camera including a first PTZ camera and a second PTZ camera which are symmetrically disposed.
The mobile terminal further includes: the display screen, the one end connection control circuit of display screen, including first display portion and second display portion, first display portion is used for showing the surveillance video of first PTZ camera, and the second display portion is used for showing the surveillance video of second PTZ camera. And if the mode lengths of the resultant angular velocities on the second component and the third component are detected to be larger than a preset threshold value, controlling the screen occupation ratio of the first PTZ camera and the second PTZ camera according to the direction of the resultant angular acceleration corresponding to the resultant angular velocity. If the direction of the resultant angular acceleration is positive, the screen occupation ratio of the first PTZ camera is increased by one gear, and otherwise, the screen occupation ratio of the second PTZ camera is increased by one gear.
Further, if the direction of the resultant angular acceleration is positive, increasing the screen occupancy of the first PTZ camera by one gear, and if the direction of the resultant angular acceleration is negative, increasing the screen occupancy of the second PTZ camera by one gear includes: and carrying out difference operation on the combined angular velocity of the second component and the third component to obtain a corresponding difference value. And if the difference value is larger than 0, increasing the screen occupation ratio of the first PTZ camera by one gear, and conversely, increasing the screen occupation ratio of the second PTZ camera by one gear.
Further, before detecting the first sensing information, the second sensing information and the third sensing information and sending the first control instruction, the second control instruction to the communication circuit or sending the third control instruction to the display screen, the control circuit is configured to:
and respectively integrating the angular velocities of the first component, the second component and the third component to obtain the rotation angles corresponding to the first component, the second component and the third component. And if the rotating angle of any one component is larger than a preset threshold value, starting the remote control of the PTZ camera.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a method of controlling a PTZ camera using a mobile terminal, the method including:
and acquiring the induction information of the mobile terminal. And generating a control command corresponding to the induction information according to the induction information so as to control the PTZ camera. The mobile terminal is the mobile terminal provided by the application.
The invention has the beneficial effects that: different from the situation of the prior art, the mobile terminal provided by the invention senses the operation of a user on the mobile terminal by utilizing the gyroscope arranged in the mobile terminal, and generates two types of sensing information, wherein one type of sensing information controls the PTZ camera to rotate, and the other type of sensing information can adjust the zooming parameter of the PTZ camera. The mobile terminal provided by the invention not only solves the problem of high operation complexity of a traditional cradle head operating rod, a key and the like in a manner of internally arranging the gyroscope, but also can control the zooming process of the PTZ camera through the parameter information of the gyroscope, so that the control of the PTZ camera is more flexible and cheaper.
Different from the situation of the prior art, the mobile terminal provided by the invention can control the screen occupation ratio of the first PTZ camera and the second PTZ camera of the PTZ binocular camera by detecting the third sensing information of the gyroscope when detecting the third sensing information, so that the problem that the screen occupation ratio of the PTZ binocular camera cannot be self-adaptively distributed is solved.
Different from the prior art, the mobile terminal provided by the invention starts the remote control of the PTZ camera by setting a 'wake-up' control condition for the PTZ camera, namely if the rotation angle of any one of the first component, the second component and the third component is greater than a preset threshold value. Thereby improving the operational accuracy of the mobile device.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a mobile terminal according to the present application;
FIG. 2 is a schematic structural diagram of an embodiment of a display screen of a mobile terminal according to the present application;
FIG. 3 is a schematic diagram of the construction of one embodiment of the PTZ camera of the present application;
FIG. 4 is a flow chart diagram illustrating one embodiment of a method for controlling a PTZ camera using a mobile terminal provided herein;
fig. 5 is a flowchart of step S2 in fig. 4.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The inventor of the application finds that the PTZ camera remote pan-tilt control is generally controlled by manually sending network commands through a network keyboard, a Web browser, a mobile phone or a PC client, and the flexibility is poor. Moreover, if the mobile or wearable monitoring terminal carried by a security guard or a patrol police is too small, the operation is inconvenient, and if the mobile or wearable monitoring terminal is too large, the carrying is inconvenient, and the contradiction exists. Meanwhile, to achieve high-quality remote monitoring, multiple parameters such as zoom ratio, rotation, screen occupation ratio and the like of the PTZ camera need to be controlled, and at present, the rotation of the PTZ camera is mostly controlled only.
Referring to fig. 1 and fig. 2 together, fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 in the present embodiment includes: a gyroscope 11, a control circuit 12, a communication circuit 13, and a display 14. The control circuit 12 is electrically coupled to the gyroscope 11, the communication circuit 13 and the display 14.
The gyroscope 11 is also called an angular velocity sensor, and is an angular motion detection device that uses a moment-of-momentum sensitive housing of a high-speed rotation body to sense angular motion about one or two axes orthogonal to a rotation axis with respect to an inertia space, and the physical quantity measured by the gyroscope is a rotation angular velocity at the time of yaw and tilt. The present embodiment records the angular velocity measured by the gyroscope 11 as V (x, y, z).
Alternatively, the present embodiment may sample the angular velocity in the following manner:
the first step is as follows: setting a sampling interval;
the second step is that: the parameter values of the gyroscope 11 are sampled: the angular velocity V (X, Y, Z) of the gyroscope 11 at each component (X, Y, Z) can be obtained in the Android or IOS operating system by calling a system API function.
The third step: in terms of the sampling interval, a parameter n is set to prevent the PTZ camera 20 from being erroneously controlled due to slight shaking of the mobile terminal 10, the parameter n being set on the principle of: for the sampling values of the i gyroscopes 11, the angular velocity is averaged for each n-th sampling group, and the average value is used as the angular velocity parameter for the period of time.
A communication circuit 13 for connecting the PTZ camera 20. The PTZ camera 20 herein is specifically a camera supporting pan/tilt omni-directional movement and zoom control of a lens. The PTZ camera 20 may be a PTZ monocular camera or a PTZ monocular camera.
The control circuit 12 is connected to the gyroscope 11, and is further connected to the communication circuit 13, and is configured to detect two types of sensing information of the gyroscope 11, send a first control command to the communication circuit 13 to control a zoom parameter of the PTZ camera 20 when detecting a first type of sensing information, and send a second control command to the communication circuit 13 to control rotation of the PTZ camera 20 when detecting a second type of sensing information.
Imaging using a zoom lens varies in various focal ranges. The wide-angle end can expand the shooting range, the telephoto end can enlarge the object, and the shooting range can be freely changed even if the photographer does not move. This variation is referred to in photographic terminology as zoom magnification. The manner in which the mobile terminal controls the zoom magnification of the PTZ camera 20 may be as follows:
when the mobile terminal 10 detects the first type of sensing information, which may be an angular velocity of the gyroscope 11 on the first component, the zoom parameter corresponding to the rotation angle on the first component is obtained by using a mapping relationship between the rotation angle of the gyroscope on the first component and the zoom magnification of the PTZ camera 20. Wherein the rotation angle of the gyroscope 11 on the first component is integrated from the angular velocity of the gyroscope 11 on the first component.
The mapping may be such that the zoom parameter is proportional to the rotation angle of the gyroscope 11 on the first component, for example. Specifically, the zoom parameter is obtained by multiplying the integral of the ratio of the rotation angle of the first component to the maximum rotation angle of the gyroscope 11 on the first component by the magnification constant of the PTZ camera 20.
Is formulated as:
Figure BDA0002711841260000061
wherein, ZoonxRepresenting a zoom parameter, v, corresponding to the angle of rotation of the first componentz(t) represents a component of the tth angular velocity sampling point on the first component, i represents that when the angular velocity of the gyroscope 11 on the first component is zero, the mobile terminal 10 acquires i angular velocity sampling points altogether, S represents the maximum rotation angle of the mobile terminal 10 on the first component, and Zoon represents a magnification constant of the PTZ camera 20, such as 43 times.
Alternatively, the first type of sensing information may be the angular velocity of the gyroscope 11 in the Z-axis. Zoom parameter zoom obtained according to calculationxAnd transmits the first control instruction to the communication circuit 13, and the communication circuit 13 transmits the received first control instruction to the PTZ camera 20 to adjust the zoom magnification of the PTZ camera 20.
The way that the mobile terminal 10 controls the rotation of the PTZ camera 20 is specifically:
when the second type of sensing information is detected, if the modular length of the resultant angular velocity on the second component and the third component is smaller than a preset threshold, the second type of sensing information is obtained by performing differential operation on the resultant angular velocity to obtain a corresponding differential value. If the above-mentioned differential value is greater than zero, the control circuit 12 sends a second control command, i.e., a control command for adding one to the rotation step of the PTZ camera 20, to the communication circuit 13. On the contrary, if the above-mentioned differential value is smaller than zero, the control circuit 12 sends a second control instruction, i.e., a control command to decrease the rotation step of the PTZ camera 20 by one, to the communication circuit 13. The purpose of adjusting the step size of the rotation of the PTZ camera 20 is finally achieved.
More specifically, the second type of sensing information may be, for example, if it is detected that the combined angular velocity modulo length on the X-Y plane is smaller than a preset threshold, that is, the following is satisfied:
Figure BDA0002711841260000071
wherein X and Y respectively represent an X component and a Y component of the angular velocity parameter obtained by sampling, and K represents a preset threshold value. If the above conditions are satisfied, further performing a difference operation on the resultant angular velocity on the X-Y plane to obtain a corresponding difference value.
In a specific application scenario, if the PTZ camera 20 monitors a suspicious target, but the suspicious target is rushing to escape, the security personnel can control the rotation speed of the PTZ camera 20 by shaking or shaking the mobile terminal 10 carried by the PTZ camera, so as to track the suspicious target more quickly, so that the suspicious target cannot be out of the sight range of the monitoring personnel in a short time, thereby providing a greater possibility for arresting the suspicious target.
The screen occupation ratio is the ratio of the screen area to the whole area. Calculating the formula: the screen area is the screen area/the whole machine area. Obviously, the larger the screen area, the larger the screen occupation ratio, and thus the more advantageous for the user to view the video or image on the screen through the mobile terminal 10. The present embodiment can flexibly adjust the screen duty ratio of the PTZ camera 20.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic structural diagram of an embodiment of a display screen of a mobile terminal. Fig. 3 is a schematic structural diagram of an embodiment of the PTZ camera of the present application. The PTZ camera 20 is a PTZ binocular camera 21 in this embodiment, and the PTZ binocular camera 21 includes a first PTZ camera 211 and a second PTZ camera 212 that are symmetrically disposed.
In a specific embodiment, the second PTZ camera 212 is used as a main monitoring camera for monitoring a panorama and tracking a suspected target with a low resolution, for example, the second PTZ camera 212 may be a PTZ panorama camera. The first PTZ camera 211 serves as a slave monitoring camera, and is controlled by the master monitoring camera to track the suspected target at a higher resolution by continuously estimating and adjusting parameters of the first PTZ camera 211, for example, the first PTZ camera 211 is a PTZ long-focus detail camera.
The mobile terminal 10 further comprises a display 14, and the display 14 is connected with the control circuit 12 and used for displaying the monitoring picture of the PTZ binocular camera 21. The display screen 14 includes a first display section 141 and a second display section 142 for displaying monitoring videos of the first PTZ camera 211 and the second PTZ camera 212, respectively.
If the mobile terminal 10 detects the third type of sensing information, a third control command is transmitted to the communication circuit 13 to control the screen ratio of the first PTZ camera 211 and the second PTZ camera 212.
Optionally, the third type of sensing information is that the modulus of the resultant angular velocity on the second component and the third component is greater than a preset threshold, and if it is detected that the resultant angular velocity satisfies the above condition, the screen occupation ratio of the first PTZ camera 211 and the second PTZ camera 212 is further controlled according to the direction of the resultant angular acceleration corresponding to the resultant angular velocity.
For example, if the direction of the resultant angular acceleration is positive, the screen duty of the first PTZ camera 211 is increased by one gear, whereas the screen duty of the second PTZ camera 212 is increased by one gear.
Since the angular velocity parameter value of the gyroscope 11 obtained by the mobile terminal 10 through sampling is discrete, the process of deriving the resultant angular velocity on the second component and the third component to determine the positive or negative of the resultant acceleration may be approximated as performing a differential operation on the resultant angular velocity on the second component and the third component to obtain a corresponding differential value. If the differential value is greater than 0, the screen occupancy of the first PTZ camera 211 is increased by one gear, whereas the screen occupancy of the second PTZ camera 212 is increased by one gear.
The third type of sensing information may be, for example, if the sum of the angular velocities on the X-Y plane is detected to be greater than a preset threshold, the following formula is satisfied:
Figure BDA0002711841260000081
wherein X and Y respectively represent an X component and a Y component of the angular velocity parameter obtained by sampling, and K represents a preset threshold value. If the above conditions are satisfied, the screen duty ratios of the first PTZ camera 211 and the second PTZ camera 212 are further controlled according to the direction of the resultant angular acceleration on the X-Y plane.
If the direction of the resultant angular acceleration on the X-Y plane is positive, the screen duty of the first PTZ camera 211 is increased by one gear, whereas if the screen duty of the second PTZ camera 212 is increased by one gear.
Since the angular velocity parameter value of the gyroscope 11 obtained by the mobile terminal 10 through sampling is discrete, the process of deriving the resultant angular velocity on the X-Y plane to determine the positive or negative of the resultant acceleration on the X-Y plane can be approximated as performing a differential operation on the resultant angular velocity on the X-Y plane to obtain a corresponding differential value. If the differential value is greater than 0, the screen occupancy of the first PTZ camera 211 is increased by one gear, whereas the screen occupancy of the second PTZ camera 212 is increased by one gear. Specifically, this operation can be simplified as making a difference between the front and rear of the resultant angular velocity on the X-Y plane, that is, subtracting the previous sampling angular velocity from the subsequent sampling angular velocity, and if the difference is greater than zero, the screen occupancy of the first PTZ camera 211 is increased by one gear, whereas the screen occupancy of the second PTZ camera 212 is increased by one gear.
In a specific application scenario, the first PTZ camera 211 is a wide-angle panoramic camera and the second PTZ camera 212 is a tele detail camera. When the current monitoring object is moving towards the PTZ binocular camera 21, security personnel can throw or shake the mobile terminal 10 by force, so that the control circuit 12 detects the third sensing information of the gyroscope 11, and then the PTZ binocular camera 21 is controlled to correspondingly increase the screen duty ratio of the wide-angle scene camera, namely, the area of the second display part 142 is increased, so that the security personnel can better observe the movement trend of the target in the panoramic image and take the detail observation effect into account, when the current monitoring object moves away from the PTZ binocular camera 21, the PTZ binocular camera 21 correspondingly increases the screen duty ratio of the long-focus detail camera, namely, the area of the first display part 141 is increased, so that the security personnel can observe the detail information of the moving target more clearly.
Preferably, in order to reduce misjudgment caused by the moving process of walking, driving and the like of the security personnel, the rotation of the PTZ camera 20 is multiplied. For example, when the user walks or sits on a traveling vehicle, the angular velocity output from the gyroscope 11 may change, and it is likely that the remote control of the PTZ camera 20 by the human-operated mobile terminal 10 is mistaken, and the PTZ camera 20 may also move and zoom. The control circuit 12 of the present embodiment may further be configured to, before detecting various types of sensing information, sending the first control command, the second control command or sending the third control command to the communication circuit 13 and sending the third control command to the display 14: and integrating the angular velocities of the first component, the second component and the third component respectively to obtain the rotation angles corresponding to the first component, the second component and the third component. If the rotation angle of any of the above components is greater than a preset threshold, remote control of the PTZ camera 20 is initiated.
Since angular velocity is a discrete sampling point, in the time domain, integration for the discrete point is a summation process, for example, the way to obtain the rotation angle on the X component is:
Figure BDA0002711841260000101
wherein, thetaxRepresents the rotation angle, v, of the mobile terminal 10 in the x-componentx(t) represents the component of the t-th angular velocity sample point on the x-axis, and i represents that there are i angular velocity sample points. The rotation angles of the mobile terminal 10 on the X-axis, the Y-axis and the Z-axis can be calculated and obtained from the above formula, if:
x>f)∪(θy>f)∪(θy>f)
remote control of the PTZ camera 20 is initiated. Wherein f represents a preset threshold value, which can be defined by the user. By setting this "wake-up" condition, the mobile terminal 10 will only turn on the control of the PTZ camera 20 if the above conditions are satisfied, so that the user can use the mobile terminal with ease, and it is difficult to cause false triggering control of the PTZ camera 20 unless the mobile terminal 10 is intentionally moved by a large amount, such as flicking or shaking.
The application provides a mobile terminal 10, through measuring its built-in gyroscope 11's angular velocity parameter, realizes rotation, the screen of remote control PTZ camera 20 and the multiplying power that zooms, not only makes the control process more nimble, and is convenient, can also effectively reduce the false triggering of user to PTZ camera 20.
Referring to fig. 4, fig. 4 is a flowchart illustrating an embodiment of a method for controlling a PTZ camera by using a mobile terminal according to the present application, the method including the following steps:
s1: and respectively integrating the angular velocities of the first component, the second component and the third component to obtain the rotation angles corresponding to the first component, the second component and the third component.
S2: if the rotation angle of any of the above components is greater than a preset threshold, remote control of the PTZ camera 20 is initiated. For example, if the rotation angle of the gyroscope 11 on the X axis is greater than pi/3, the control of the PTZ camera 20 is turned on.
S3: sensing information of the mobile terminal 10 is acquired.
S4: based on the detected type of the sensed information, a control command corresponding to the sensed information is generated to control the PTZ camera 20. Among them, the mobile terminal 10 that controls the PTZ camera 20 is the mobile terminal 10 provided in the present application.
Referring to fig. 5, fig. 5 is a schematic flowchart of step S4 in fig. 4. Specifically, step S2 may be performed by the following sub-steps:
s41: if the detected sensing information is the first type of sensing information, a first control command is sent to the PTZ camera 20 to control the zoom parameters of the PTZ camera 20.
S42: if the detected sensing information is the second type of sensing information, a second control command is sent to the PTZ camera 20 to control the rotation of the PTZ camera 20.
S43: and if the detected sensing information is the third type of sensing information, sending a third control instruction to the PTZ camera 20 to control the screen occupation ratio of the PTZ camera 20.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (5)

1. A mobile terminal, comprising:
a gyroscope;
a communication circuit for connecting the PTZ camera; the PTZ camera is a PTZ binocular camera, and the PTZ binocular camera comprises a first PTZ camera and a second PTZ camera which are symmetrically arranged;
the control circuit is connected with the gyroscope and the communication circuit and is used for detecting two types of induction information of the gyroscope, sending a first control instruction to the communication circuit to control the zooming parameter of the PTZ camera when detecting the first type of induction information, and sending a second control instruction to the communication circuit to control the rotation of the PTZ camera when detecting the second type of induction information;
one end of the display screen is connected with the control circuit and comprises a first display part and a second display part, the first display part is used for displaying the monitoring video of the first PTZ camera, and the second display part is used for displaying the monitoring video of the second PTZ camera;
the control circuit is further configured to detect a third type of sensing information of the gyroscope, and when the third type of sensing information is detected, send a third control instruction to the communication circuit to control the screen occupation ratio of the first PTZ camera and the second PTZ camera, including: if the modulus of the combined angular velocity of the second component and the third component is larger than a preset threshold, carrying out differential operation on the combined angular velocity of the second component and the angular velocity of the third component to obtain a corresponding differential value; if the difference value is larger than 0, increasing the screen occupation ratio of the first PTZ camera by one gear, and otherwise, increasing the screen occupation ratio of the second PTZ camera by one gear;
before the control circuit detects the first type of the sensing information, the second type of the sensing information and the third sensing information and sends the first control instruction, the second control instruction to the communication circuit or sends the third control instruction to the display screen, the control circuit is configured to: respectively integrating angular velocities of the gyroscope on a first component, a second component and a third component to obtain rotation angles corresponding to the first component, the second component and the third component; and if the rotating angle on any one component is larger than a preset threshold value, starting remote control on the PTZ camera.
2. The mobile terminal of claim 1,
when the first type of the induction information is detected, controlling zoom parameters of the PTZ camera specifically comprises the following steps:
if the angular velocity of the gyroscope on the first component is detected, acquiring the zoom parameter corresponding to the rotation angle on the first component by using the mapping relation between the rotation angle of the gyroscope on the first component and the zoom magnification of the PTZ camera;
wherein the angle of rotation of the gyroscope on the first component is integrated from the angular velocity of the gyroscope on the first component.
3. The mobile terminal of claim 2, wherein the mapping is such that the zoom parameter is proportional to the angle of rotation of the gyroscope on the first component;
the obtaining the zoom parameter corresponding to the angle of rotation on the first component comprises:
and multiplying the integral value of the ratio of the rotating angle of the first component to the maximum rotating angle of the gyroscope on the first component by the multiplying factor constant of the PTZ camera to obtain the zooming parameter.
4. The mobile terminal of claim 1,
when the second type of sensing information is detected, controlling the rotation of the PTZ camera specifically comprises:
if the modular length of the resultant angular velocity of the second component and the third component is smaller than a preset threshold value, carrying out differential operation on the resultant angular velocity to obtain a corresponding differential value;
and if the differential value is larger than zero, generating an instruction of adding one to the rotation step length of the PTZ camera, and otherwise, generating an instruction of subtracting one from the rotation step length of the PTZ camera.
5. A method for controlling a PTZ camera using a mobile terminal, comprising:
respectively integrating angular velocities of a gyroscope arranged on the mobile terminal on a first component, a second component and a third component to obtain rotation angles corresponding to the first component, the second component and the third component; if the rotation angle on any one component is larger than a preset threshold value, starting control over the PTZ camera;
acquiring induction information of the mobile terminal;
generating a control command corresponding to the induction information according to the induction information so as to control the PTZ camera;
wherein the mobile terminal is the mobile terminal of any one of claims 1-4.
CN202011059465.6A 2020-09-30 2020-09-30 Mobile terminal and method for controlling PTZ camera by using mobile terminal Active CN112135058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011059465.6A CN112135058B (en) 2020-09-30 2020-09-30 Mobile terminal and method for controlling PTZ camera by using mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011059465.6A CN112135058B (en) 2020-09-30 2020-09-30 Mobile terminal and method for controlling PTZ camera by using mobile terminal

Publications (2)

Publication Number Publication Date
CN112135058A CN112135058A (en) 2020-12-25
CN112135058B true CN112135058B (en) 2022-04-19

Family

ID=73844967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011059465.6A Active CN112135058B (en) 2020-09-30 2020-09-30 Mobile terminal and method for controlling PTZ camera by using mobile terminal

Country Status (1)

Country Link
CN (1) CN112135058B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470069B (en) * 2021-06-08 2024-08-30 浙江大华技术股份有限公司 Target tracking method, electronic device, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201330610A (en) * 2012-01-11 2013-07-16 Hon Hai Prec Ind Co Ltd System and method for controlling PTZ camera devices
CN103246290A (en) * 2012-02-01 2013-08-14 深圳中兴力维技术有限公司 PTZ control method and system
CN103458184A (en) * 2013-08-25 2013-12-18 浙江大学 Method for carrying out long-range control on pan-tilt with cell phone
CN110784651A (en) * 2019-11-15 2020-02-11 维沃移动通信有限公司 Anti-shake method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3387326B2 (en) * 1996-08-30 2003-03-17 ミノルタ株式会社 Video observation system
CN101662667A (en) * 2008-08-29 2010-03-03 北京创先泰克科技有限公司 Control system and control method for controlling camera device by telephone terminal
CN101699858A (en) * 2009-11-06 2010-04-28 深圳华为通信技术有限公司 Control method of camera head, control terminal and camera system
CN105335627A (en) * 2014-08-06 2016-02-17 杭州海康威视数字技术股份有限公司 PTZ rotation control method and device
CN108388414B (en) * 2018-02-05 2020-05-12 Oppo广东移动通信有限公司 Screen-off control method and device for terminal, computer-readable storage medium and terminal
CN109361794B (en) * 2018-11-19 2021-04-20 Oppo广东移动通信有限公司 Zoom control method and device of mobile terminal, storage medium and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201330610A (en) * 2012-01-11 2013-07-16 Hon Hai Prec Ind Co Ltd System and method for controlling PTZ camera devices
CN103246290A (en) * 2012-02-01 2013-08-14 深圳中兴力维技术有限公司 PTZ control method and system
CN103458184A (en) * 2013-08-25 2013-12-18 浙江大学 Method for carrying out long-range control on pan-tilt with cell phone
CN110784651A (en) * 2019-11-15 2020-02-11 维沃移动通信有限公司 Anti-shake method and electronic equipment

Also Published As

Publication number Publication date
CN112135058A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US10638046B2 (en) Wearable device, control apparatus, photographing control method and automatic imaging apparatus
KR101648564B1 (en) Potable terminal, Remote camera, and PTZ control method of remote camera by potable terminal
KR101299613B1 (en) Control device, control method, camera system, and recording medium
WO2011139070A2 (en) Method and apparatus for recognizing location of user
CN110933303B (en) Photographing method and electronic equipment
US20110090341A1 (en) Intruding object detection system and controlling method thereof
CN100551046C (en) The method and apparatus of information processing
WO2023072088A1 (en) Focusing method and apparatus
JP7352733B2 (en) Photography method and electronic equipment
CN111031248A (en) Shooting method and electronic equipment
CN112135058B (en) Mobile terminal and method for controlling PTZ camera by using mobile terminal
CN110769156A (en) Picture display method and electronic equipment
JP2012109852A (en) Remote image display system, apparatus, and method
JP2013183433A (en) Client terminal, server, and program
CN114430453B (en) Camera anti-shake system, control method, equipment and medium
JP5631065B2 (en) Video distribution system, control terminal, network camera, control method and program
CN117221693A (en) Camera module, electronic device, shooting processing method and storage medium
JP2012119971A (en) Monitoring video display unit
KR101677699B1 (en) Camera module and mobile phone comprising it
JP7131541B2 (en) Image processing device, image processing method and image processing program
KR20140111079A (en) Method and System for Controlling Camera
KR20140075963A (en) Apparatus and Method for Remote Controlling Camera using Mobile Terminal
WO2015060605A1 (en) Operating method and apparatus for detachable lens type camera
JP2017038243A (en) Imaging apparatus
CN112989868A (en) Monitoring method, device, system and computer 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
GR01 Patent grant
GR01 Patent grant