Object monitoring method and apparatus, and monitoring device
Patent Information
- Application Number
- PCT/CN2025/076606
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-04
- Filing Date
- 2025-02-10
- Publication Date
- 2025-10-02
AI Technical Summary
When viewing real-time surveillance video on a mobile phone screen, users need to adjust the camera or move the mobile phone screen canvas to get a closer look at the monitored object. This operation is inconvenient and the key area easily exceeds the display area after zooming, resulting in a poor surveillance video experience.
The target monitoring object is determined through the monitoring screen, and an instruction to rotate the camera is generated so that the target object is located at the target position of the camera lens. The monitoring equipment is used to obtain a new monitoring screen to achieve accurate and fast monitoring.
This avoids the inconvenience of users adjusting the camera or moving the mobile phone screen, ensures that the target object is displayed in the center of the monitoring screen, and improves the user experience.
Smart Images

Figure CN2025076606_02102025_PF_FP_ABST
Abstract
Description
Object monitoring method, device and monitoring equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 4, 2024, with application number 202410244979.0 and titled “Object Monitoring Method, Apparatus and Monitoring Equipment,” the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of camera technology, and in particular to an object monitoring method, device and monitoring equipment. Background Art
[0003] With the development of society, security issues are gaining increasing attention. To improve the safety of their living environments, people often install surveillance cameras. With the development of cameras, they are becoming increasingly intelligent. Many of them have dual cameras: a telephoto lens and a wide-angle lens. They can detect objects in the field of view based on deep learning models, allowing users to instantly understand the subject being captured by the camera.
[0004] In practice, real-time surveillance video is typically viewed on a mobile phone screen. To get a closer look at a monitored object, the telephoto lens camera needs to be zoomed in. However, due to the small display area of mobile phone screens, the key area the user wants to examine may be outside the screen or off-center. This requires the user to adjust the camera or move the screen, which is inconvenient. Furthermore, after zooming, the key area can easily exceed the screen display area, resulting in a poor viewing experience for real-time surveillance video.
[0005] Application Contents
[0006] The present application provides an object monitoring method, apparatus and monitoring equipment to accurately and quickly display the target monitoring object through the center position of the monitoring screen, thereby accurately and quickly monitoring the target monitoring object and improving the user experience.
[0007] In a first aspect, the present application provides an object monitoring method, the method comprising:
[0008] Displaying the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen;
[0009] Determining a target camera in the monitoring device that monitors the target monitoring object, and determining an initial position of the target monitoring object captured by the target camera in a lens of the target camera;
[0010] When it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, generating an instruction to rotate the target camera so that the target surveillance object photographed by the target camera is located at the target position in the lens of the target camera;
[0011] Based on the target position, a new monitoring picture of the target monitoring object is obtained through the monitoring device, so as to monitor the target monitoring object according to the new monitoring picture.
[0012] In conjunction with the first aspect, in a first possible implementation of the first aspect, displaying a current monitoring screen of the monitoring device and determining a target monitoring object from the monitoring screen includes:
[0013] Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device;
[0014] Receiving a trigger operation from a user on any monitored object in the monitoring screen;
[0015] In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size;
[0016] The object contained in the object frame is determined as a target monitoring object.
[0017] In combination with the first aspect, in a second possible implementation manner of the first aspect, determining the initial position of the target surveillance object captured by the target camera in the lens of the target camera includes:
[0018] Acquire the monitoring coordinates of the target monitoring object in the monitoring picture relative to the display screen of the target terminal device;
[0019] Determining the camera resolution of the target camera and the terminal resolution of the target terminal device;
[0020] Determining the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the imaging resolution, and the terminal resolution;
[0021] The position corresponding to the camera coordinates is determined as the initial position of the target monitoring object photographed by the target camera in the lens of the target camera.
[0022] In combination with the first aspect, in a third possible implementation manner of the first aspect, determining the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the imaging resolution, and the terminal resolution includes:
[0023] Determining, according to the camera resolution and the terminal resolution, a width ratio and a height ratio of a display image between the target camera and the target terminal device;
[0024] Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate;
[0025] The vertical coordinate of the monitoring coordinate is multiplied by the height ratio to obtain the vertical coordinate of the camera coordinate.
[0026] With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the target position in the lens is a center position of the lens, and determining that the distance between the initial position and the target position in the lens is greater than a preset distance threshold includes:
[0027] determining the center coordinates of the center position;
[0028] Determine a first difference between the abscissa of the camera coordinate and the abscissa of the center coordinate, and a second difference between the ordinate of the camera coordinate and the ordinate of the center coordinate;
[0029] If the first difference is greater than a first preset distance threshold, and / or the second difference is greater than the first preset distance threshold, determining that the distance between the initial position and the target position is greater than the preset distance threshold;
[0030] or,
[0031] Determine the distance between a position corresponding to the camera coordinates and a position corresponding to the center coordinates according to the abscissa and ordinate of the camera coordinates and the abscissa and ordinate of the center coordinates;
[0032] If the distance value is greater than a second preset distance threshold, it is determined that the distance between the initial position and the target position is greater than the preset distance threshold.
[0033] In conjunction with the first aspect, in a fifth possible implementation manner of the first aspect, the target camera is a pan-tilt camera, and generating an instruction to rotate the target camera includes:
[0034] Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates;
[0035] Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter;
[0036] The method further comprises:
[0037] The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction.
[0038] In conjunction with the first aspect, in a sixth possible implementation of the first aspect, the monitoring device includes at least two cameras, and obtaining, by the monitoring device, a new monitoring image of the target monitored object based on the target position includes:
[0039] Get the monitoring function selected by the user;
[0040] Determining a surveillance camera from the surveillance devices according to the surveillance function;
[0041] If the surveillance camera is not the target camera, generating a switching instruction for instructing to switch from the target camera to the surveillance camera;
[0042] The switching instruction is sent to the monitoring device, so that the monitoring device obtains a new monitoring picture of the target monitoring object through the monitoring camera based on the target position of the target camera.
[0043] In conjunction with the first aspect, a seventh possible implementation of the first aspect further includes:
[0044] Creating a pan / tilt rotation view from the target terminal device;
[0045] Acquiring a captured image of the target camera while the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction;
[0046] The shooting picture is synchronized to the pan / tilt rotation view for display.
[0047] In a second aspect, an embodiment of the present application provides an object monitoring device, the device comprising:
[0048] A first determining module is used to display the current monitoring screen of the monitoring device and determine the target monitoring object from the monitoring screen;
[0049] A second determining module is configured to determine a target camera in the monitoring device that monitors the target monitoring object, and to determine an initial position of the target monitoring object captured by the target camera in a lens of the target camera;
[0050] a rotation module, configured to generate an instruction to rotate the target camera when it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, so that the target surveillance object photographed by the target camera is located at the target position in the lens of the target camera;
[0051] The monitoring module is used to obtain a new monitoring picture of the target monitoring object through the monitoring device based on the target position, so as to monitor the target monitoring object according to the new monitoring picture.
[0052] In conjunction with the second aspect, in a first possible implementation manner of the second aspect, the first determining module is specifically configured to:
[0053] Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device;
[0054] Receiving a trigger operation from a user on any monitored object in the monitoring screen;
[0055] In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size;
[0056] The object contained in the object frame is determined as a target monitoring object.
[0057] With reference to the second aspect, in a second possible implementation of the second aspect, the second determining module includes:
[0058] An acquisition submodule, configured to acquire the monitoring coordinates of the target monitoring object in the monitoring screen relative to the display screen of the target terminal device;
[0059] A first determining submodule is used to determine the camera resolution of the target camera and the terminal resolution of the target terminal device;
[0060] A second determining submodule is configured to determine the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the imaging resolution, and the terminal resolution;
[0061] The third determining submodule is configured to determine the position corresponding to the camera coordinates as the initial position of the target monitoring object captured by the target camera in the lens of the target camera.
[0062] In conjunction with the second aspect, in a third possible implementation manner of the second aspect, the second determining submodule is specifically configured to:
[0063] Determining, according to the camera resolution and the terminal resolution, a width ratio and a height ratio of a display image between the target camera and the target terminal device;
[0064] Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate;
[0065] The vertical coordinate of the monitoring coordinate is multiplied by the height ratio to obtain the vertical coordinate of the camera coordinate.
[0066] In combination with the second aspect, in a fourth possible implementation manner of the second aspect, the target position in the lens is a center position of the lens, and the rotation module is specifically configured to:
[0067] determining the center coordinates of the center position;
[0068] Determine a first difference between the abscissa of the camera coordinate and the abscissa of the center coordinate, and a second difference between the ordinate of the camera coordinate and the ordinate of the center coordinate;
[0069] If the first difference is greater than a first preset distance threshold, and / or the second difference is greater than the first preset distance threshold, determining that the distance between the initial position and the target position is greater than the preset distance threshold;
[0070] or,
[0071] Determine the distance between a position corresponding to the camera coordinates and a position corresponding to the center coordinates according to the abscissa and ordinate of the camera coordinates and the abscissa and ordinate of the center coordinates;
[0072] If the distance value is greater than a second preset distance threshold, it is determined that the distance between the initial position and the target position is greater than the preset distance threshold.
[0073] In conjunction with the second aspect, in a fifth possible implementation of the second aspect, the target camera is a pan-tilt camera, and the rotation module is specifically configured to:
[0074] Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates;
[0075] Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter;
[0076] The method further comprises:
[0077] The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction.
[0078] In conjunction with the second aspect, in a sixth possible implementation of the second aspect, the monitoring device includes at least two cameras, and the monitoring module is specifically configured to:
[0079] Get the monitoring function selected by the user;
[0080] Determining a surveillance camera from the surveillance devices according to the surveillance function;
[0081] If the surveillance camera is not the target camera, generating a switching instruction for instructing to switch from the target camera to the surveillance camera;
[0082] The switching instruction is sent to the monitoring device, so that the monitoring device obtains a new monitoring picture of the target monitoring object through the monitoring camera based on the target position of the target camera.
[0083] In conjunction with the second aspect, in a seventh possible implementation of the second aspect, the apparatus further includes:
[0084] A creation module, configured to create a pan / tilt rotation view from the target terminal device;
[0085] A picture acquisition module, configured to acquire a picture taken by the target camera while the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction;
[0086] A synchronization module is used to synchronize the shooting picture to the pan-tilt rotation view for display.
[0087] In a third aspect, an embodiment of the present application provides a monitoring device, comprising: a camera, a processor, and a memory, wherein the processor is used to execute an object monitoring program stored in the memory to implement the object monitoring method described in any one of the first aspects.
[0088] In a fourth aspect, an embodiment of the present application provides a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the object monitoring method described in any one of the first aspects.
[0089] By adopting the object monitoring method, device and monitoring equipment provided by the present application, the target monitoring object to be monitored is determined through the monitoring screen, and the camera is rotated so that the target monitoring object is at the target position of the camera lens, so that the camera can focus on monitoring the target monitoring object, avoiding the inconvenience of operation caused by the user needing to adjust the camera or move the mobile phone screen when wanting to view the target monitoring object, as well as the poor monitoring effect experience, and realizes the accurate and rapid display of the target monitoring object through the center position of the monitoring screen, thereby realizing accurate and rapid monitoring of the target monitoring object and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0091] FIG1 is a schematic diagram of an application scenario of an object monitoring method provided in an embodiment of the present application;
[0092] FIG2 is a flow chart of an embodiment of an object monitoring method provided in an embodiment of the present application;
[0093] FIG3 is a flow chart of another object monitoring method according to an embodiment of the present application;
[0094] FIG4 is a flow chart of another embodiment of an object monitoring method provided in an embodiment of the present application;
[0095] FIG5 is a block diagram of an embodiment of an object monitoring device provided in an embodiment of the present application;
[0096] FIG6 is a schematic structural diagram of a monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] In the embodiments of the present application, in order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of this application.
[0098] The disclosure below provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, these are merely examples and are not intended to limit the present application. In addition, the present application may repeat reference numbers and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or settings discussed.
[0099] In order to solve the technical problems in the prior art that when viewing real-time monitoring videos through a mobile phone screen and wanting to take a closer look at a certain monitoring object, the user needs to adjust the camera or move the mobile phone screen canvas, which is inconvenient to operate, and the key area after zooming easily exceeds the display area of the mobile phone screen, resulting in a poor viewing experience of the real-time monitoring video, the present application provides an object monitoring method, device and monitoring equipment, which can determine the target monitoring object to be monitored through the monitoring screen, and rotate the camera so that the target monitoring object is at the target position of the camera lens, so that the camera can focus on monitoring the target monitoring object, avoiding the inconvenience caused by the need to adjust the camera or move the mobile phone screen when the user wants to view the target monitoring object, as well as the poor monitoring effect experience, and realizes the accurate and rapid display of the target monitoring object through the center position of the monitoring screen, thereby realizing accurate and rapid monitoring of the target monitoring object and improving the user experience.
[0100] To facilitate understanding of the object monitoring method provided in the embodiments of the present application, the following first illustrates an application scenario involved in the embodiments of the present application:
[0101] 1 , which is a schematic diagram of an application scenario of an object monitoring method provided by an embodiment of the present application. As shown in FIG1 , the application scenario may include a terminal 11 , a monitoring device 12 , and a monitored object 13 .
[0102] The terminal 11 can be a hardware device or software that supports network connection and provides various network services. If the terminal 11 is hardware, it can support various electronic devices with display screens, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, etc. Figure 1 only uses smartphones as an example. If the terminal 11 is software, it can be installed in the electronic devices listed above.
[0103] The monitoring device 12 can be a device used for daily monitoring, and can include dual cameras or a single camera, which is not limited in the present embodiment. Further, the monitoring device 12 can be a pan-tilt camera.
[0104] The monitoring object 13 is an object monitored by the monitoring device 12 and may include, but is not limited to, a person, a vehicle, and an animal, etc., which is not limited in the present embodiment.
[0105] In an embodiment of the present application, the monitoring device 12 can monitor the above-mentioned monitoring object 13 and send the generated corresponding monitoring video to the terminal 11 for display, so that the user can view the monitoring video through the terminal 11 to monitor the monitoring object 13.
[0106] In practice, because monitored object 13 is mobile, when a user views the surveillance video of monitored object 13 from monitoring device 12 through terminal 11, monitored object 13 may be located at the edge of terminal 11's screen, such as monitored object 111 on terminal 11's screen in Figure 1 . In the prior art, if a user wants to get a closer look at monitored object 13 through terminal 11, they must manually adjust the surveillance camera of monitoring device 12 or move the screen canvas of terminal 11. However, this method is not only inconvenient to operate, but also easily causes monitored object 13 to exceed the screen of terminal 11 after zooming, resulting in a poor user experience when viewing real-time monitored video.
[0107] In this regard, an embodiment of the present application provides an object monitoring method, which can automatically adjust the position of the camera in the monitoring device 12 when it is determined that the monitoring object 13 needs to be monitored, so that the monitoring object 13 photographed by the monitoring device 12 can be located at the target position of the lens, so that the monitoring object 13 can be displayed in the center of the monitoring screen displayed by the terminal 11 (for example, the monitoring object 112 on the screen of the terminal 11 in Figure 1), which facilitates the user to monitor the monitoring object 13 in more detail and accurately.
[0108] The object monitoring method provided in the present application is further explained below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.
[0109] See Figure 2, which is a flowchart of an embodiment of an object monitoring method provided in an embodiment of the present application. In one embodiment, the object monitoring method can be applied to a monitoring device or terminal, such as the monitoring device 12 or terminal 11 shown in Figure 1. As shown in Figure 2, the process may include the following steps:
[0110] Step 201: Display the current monitoring screen of the monitoring device and determine the target monitoring object from the monitoring screen.
[0111] The monitoring device is a device installed by a user for monitoring a set scene, and may be the monitoring device 12 shown in FIG. 1 .
[0112] The target monitoring object is any object in the scene monitored by the monitoring device, and can be a person (such as the monitoring object 13 shown in Figure 1), an animal, or an object such as a vehicle or a sofa. This embodiment of the present application does not limit this.
[0113] In one embodiment, the target monitoring object can be specified by the user. Based on this, the execution subject of the embodiment of the present application can obtain the current monitoring screen of the monitoring device and display the monitoring screen through the target terminal device (such as the terminal 11 shown in Figure 1).
[0114] Afterwards, the user can determine the object to be monitored from the monitoring screen and perform a click operation in the monitoring screen. When the execution subject of the embodiment of the present application receives a trigger operation from the user for any monitoring object in the monitoring screen, it can output an object frame of a preset size in response to the trigger point corresponding to the trigger operation, and determine the object contained in the object frame as the target monitoring object. Among them, the above-mentioned click operation can be a single-click operation or a double-click operation, and the embodiment of the present application does not limit this. The above-mentioned object frame can be a square frame with a side length of 80 pixels, or a rectangular frame with a length of 80 pixels and a width of 90 pixels, or an object frame of other sizes and other shapes, and the embodiment of the present application does not limit this.
[0115] Furthermore, after the execution subject of the embodiment of the present application outputs the object frame, the user can determine whether the object contained in the object frame is the target monitoring object to be monitored.
[0116] Optionally, if the object contained in the object box is determined to be the target monitoring object specified by the user, the user may not perform any operation or click a preset confirmation button. Based on this, the execution subject of the embodiment of the present application determines the object contained in the object box as the target monitoring object when a click operation of the confirmation button is detected or no user operation is detected within a preset time period.
[0117] On the contrary, if it is determined that the object contained in the object frame is not the target monitoring object specified by the user, or contains part of the target monitoring object, the user can click a preset modification button, or manually move the object frame or modify the size of the object frame by dragging, etc. Based on this, the execution subject of the embodiment of the present application can determine the object contained in the modified object frame as the target monitoring object.
[0118] In another embodiment, the target monitoring object can be determined by the execution entity of the embodiment of the present application. Based on this, the execution entity of the embodiment of the present application can obtain the current monitoring screen of the monitoring device and identify the object in the monitoring screen. Optionally, when a preset object is identified in the monitoring screen, the execution entity of the embodiment of the present application can determine the identified preset object as the target monitoring object. The preset object here can be an object pre-stored by the user, or an object whose corresponding object information is stored in a database.
[0119] Step 202: Determine a target camera in the monitoring device that monitors a target monitoring object, and determine an initial position of the target monitoring object captured by the target camera in the lens of the target camera.
[0120] The target camera is the camera currently monitoring the monitored object in the monitoring device.
[0121] The above-mentioned initial position refers to the position of the target monitoring object in the lens of the target camera when the target camera is shooting the target monitoring object. It is not the position of the target monitoring object in the actual application scenario, but the current position of the target monitoring object in the lens of the target camera after imaging.
[0122] In one embodiment, the monitoring device may include at least two cameras. For example, the monitoring device may be a dual-camera system, which may include a telephoto lens and a wide-angle lens, supporting a maximum zoom of 8x. The telephoto lens, also known as a telephoto lens, refers to a photographic lens with a longer focal length than a standard lens. The wide-angle lens is a photographic lens with a shorter focal length than a standard lens and a larger viewing angle than a standard lens, and a longer focal length than a fisheye lens and a smaller viewing angle than a fisheye lens.
[0123] Based on this, the execution subject of the embodiment of the present application can determine the target camera currently monitoring the target monitoring object in the monitoring device, and determine the initial position of the target monitoring object photographed by the target camera in the lens of the target camera.
[0124] As an exemplary implementation, the execution subject of the embodiment of the present application may determine the initial position of the target monitoring object photographed by the target camera in the lens of the target camera according to the position of the target monitoring object in the current monitoring screen.
[0125] In other words, the initial position can also indirectly represent the positional relationship between the target monitored object and the shooting area of the target camera in the actual scene.
[0126] As for how to determine the initial position of the target monitoring object captured by the target camera in the lens of the target camera, it can be explained below through the process shown in Figure 3, which is not described in detail here.
[0127] Step 203: When it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, an instruction to rotate the target camera is generated so that the target monitoring object photographed by the target camera is located at the target position in the lens of the target camera.
[0128] Step 204: Based on the target position, a new monitoring image of the target monitoring object is obtained through the monitoring device, so as to monitor the target monitoring object according to the new monitoring image.
[0129] The following is a unified description of step 203 and step 204:
[0130] The target position refers to a position in the lens of a preset target camera where the target monitoring object can be placed at a preset position in the monitoring screen, such as the center position of the lens.
[0131] In an embodiment of the present application, in order to make the target monitoring object be at a preset position (for example, the center position of the monitoring screen) in the monitoring screen, the execution subject of the embodiment of the present application may compare the initial position in the lens with the target position.
[0132] Optionally, when the distance between the initial position and the target position is greater than a preset distance threshold, it means that the target monitoring object is located at a remote location compared to the shooting area of the target camera, which may easily cause the target monitoring object in the monitoring screen to be located in the edge area of the monitoring screen. Therefore, the target camera needs to be rotated.
[0133] On the contrary, when the distance between the initial position and the target position is less than or equal to the preset distance threshold, it means that the position of the target monitoring object at this time is closer to the center point than the shooting area of the target camera, so that the target monitoring object in the monitoring screen is located in the central area of the monitoring screen and is easy to observe. Therefore, the target camera does not need to be rotated.
[0134] In one embodiment, the execution subject of the embodiment of the present application can rotate the target camera so that the target monitoring object photographed by the target camera is located at the above-mentioned target position in the lens of the target camera.
[0135] As for how to generate the instruction to rotate the target camera and rotate the target camera, it can be explained below through the process shown in Figure 4, which will not be described in detail here.
[0136] Based on this, the execution subject of the embodiment of the present application can obtain a new monitoring screen of the current target monitoring object through the monitoring device based on the target position, so that the user can monitor the target monitoring object according to the new monitoring screen.
[0137] As an exemplary embodiment, the monitoring device in the embodiment of the present application may include at least two cameras. Based on this, the user can select the corresponding monitoring function according to actual needs. The above-mentioned monitoring function may be a gear corresponding to the zoom magnification, and the gear may be one or more, and the embodiment of the present application does not limit this. Among them, when the gear is low (for example, there are eight gears, and the zoom degree corresponding to each gear increases in sequence. When the gear is one to four, the zoom degree is low), the monitoring device can use a wide-angle lens; when the gear is high (for example, the fifth to eighth of the eight gears mentioned above), the monitoring device can use a telephoto lens.
[0138] Afterwards, the execution subject of the embodiment of the present application can determine the monitoring camera from the monitoring device according to the monitoring function, that is, the camera that currently needs to monitor the target monitoring object.
[0139] Then, it can be determined whether the surveillance camera is the target camera. Optionally, if the surveillance camera is the target camera, the current new surveillance image of the target surveillance object can be directly obtained by directly using the current position of the target camera (that is, the target surveillance object photographed by the target camera is at the target position of the target camera lens).
[0140] On the contrary, if the surveillance camera is not the target camera, a switching instruction can be generated to instruct the switch from the target camera to the surveillance camera, and the switching instruction can be sent to the monitoring device so that the monitoring device obtains a new monitoring screen of the current target monitoring object through the surveillance camera based on the above-mentioned target position of the target camera.
[0141] It should be noted that when the monitoring device is a multi-camera (for example, a dual camera), the executing entity of the embodiment of the present application can adjust multiple cameras at the same time when the target monitoring object photographed by the target camera is located at the target position of the target camera lens, so that the target monitoring object photographed by each camera is located at the target position of the camera lens, thereby realizing the direct switching of the camera to monitor the target monitoring object.
[0142] The technical solution provided by the embodiment of the present application is to display the current monitoring screen of the monitoring device, determine the target monitoring object from the monitoring screen, determine the target camera in the monitoring device that monitors the target monitoring object, and determine the initial position of the target monitoring object photographed by the target camera in the lens of the target camera. When it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, generate an instruction to rotate the target camera so that the target monitoring object photographed by the target camera is located at the target position in the lens of the target camera. Based on the target position, the monitoring device obtains a new monitoring screen of the target monitoring object so that the target monitoring object is monitored according to the above new monitoring screen. This technical solution determines the target monitoring object to be monitored through the monitoring screen and rotates the camera so that the target monitoring object is at the target position of the lens of the camera, so that the camera can focus on monitoring the target monitoring object, avoiding the inconvenience of the user having to adjust the camera or move the mobile phone screen when wanting to view the target monitoring object, as well as the poor monitoring effect experience. It realizes the accurate and rapid display of the target monitoring object in the center position of the monitoring screen, thereby realizing accurate and rapid monitoring of the target monitoring object and improving the user experience.
[0143] See Figure 3, which is a flowchart of another embodiment of an object monitoring method provided by an embodiment of the present application. The process shown in Figure 3, based on the process shown in Figure 2, describes how to determine the initial position of the target monitoring object captured by the target camera within the lens of the target camera. As shown in Figure 3, the process may include the following steps:
[0144] Step 301: Acquire the monitoring coordinates of the target monitoring object in the monitoring image relative to the display screen of the target terminal device.
[0145] The above-mentioned monitoring coordinates refer to the coordinates of the target monitoring object in the monitoring picture currently displayed on the monitoring screen displayed by the target terminal device.
[0146] In one embodiment, the executing entity of the embodiment of the present application may establish a coordinate system on the display screen of the target terminal device, and determine the coordinates of the target monitoring object on the display screen in this coordinate system (for ease of description, hereinafter referred to as monitoring coordinates).
[0147] As an exemplary implementation, the execution subject of the embodiment of the present application may establish a rectangular coordinate system with the vertices of the display screen of the target terminal device as the origin.
[0148] As another exemplary implementation, the execution subject of the embodiment of the present application may establish a rectangular coordinate system with the midpoint of the display screen of the target terminal device as the origin.
[0149] Step 302: Determine the camera resolution of the target camera and the terminal resolution of the target terminal device.
[0150] Step 303: Determine the camera coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the camera resolution, and the terminal resolution.
[0151] Step 304: Determine the position corresponding to the camera coordinates as the initial position of the target monitored object captured by the target camera in the lens of the target camera.
[0152] The following is a unified description of steps 302 to 304:
[0153] The above-mentioned camera resolution refers to the resolution corresponding to the target camera when shooting.
[0154] The terminal resolution mentioned above refers to the resolution corresponding to the display screen of the target terminal device mentioned above.
[0155] In one embodiment, after determining the camera resolution of the target camera and the terminal resolution of the target terminal device, the executing entity of the embodiment of the present application can determine the camera coordinates of the target monitoring object photographed by the target camera under the lens of the target camera based on the above-mentioned monitoring coordinates, camera resolution, and terminal resolution, and determine the position corresponding to the camera coordinates as the initial position of the target monitoring object photographed by the target camera in the lens of the target camera.
[0156] The image resolution of the target camera refers to the pixel size of the image that can be captured by the target camera, which is usually expressed in the form of width*height, such as 1920*1080.
[0157] The terminal resolution of the target terminal device (ie, the display resolution of the target terminal device) is determined to be the pixel size that can be displayed on the screen of the target terminal device, which is also expressed in the form of width*height.
[0158] As an exemplary embodiment, when the executing entity of the embodiment of the present application determines the camera coordinates of the target monitoring object captured by the target camera in the lens of the target camera, it can determine the width ratio and height ratio of the display screen between the target camera and the target terminal device according to the camera resolution and the terminal resolution.
[0159] Furthermore, the above-mentioned camera resolution can represent the resolution corresponding to the video stream transmitted between the monitoring device and the target terminal device. Therefore, the ratio between the wide pixels corresponding to the camera resolution and the wide pixels corresponding to the terminal resolution can be directly determined as the width ratio; and the ratio between the high pixels corresponding to the camera resolution and the high pixels corresponding to the terminal resolution can be determined as the height ratio.
[0160] Among them, the above-mentioned width ratio (i.e., width scaling ratio) is determined by dividing the terminal width (i.e., display width) of the target terminal device by the width of the image captured by the target camera. This ratio will be used to adjust the width of the image to make it fit the screen of the target terminal device.
[0161] Similarly, the height ratio (i.e., height scaling ratio) is determined by dividing the terminal height (i.e., display height) of the target terminal device by the height of the image captured by the target camera. This ratio will be used to adjust the height of the image to fit the screen of the target terminal device.
[0162] Afterwards, the horizontal coordinate of the above-mentioned monitoring coordinates can be multiplied by the width ratio to obtain the horizontal coordinate of the camera coordinates, and the vertical coordinate of the monitoring coordinates can be multiplied by the height ratio to obtain the vertical coordinate of the camera coordinates, thereby mapping the monitoring coordinates of the target monitoring object on the display screen of the target terminal device to the camera coordinates of the target monitoring object in the lens of the target camera.
[0163] The technical solution provided by the embodiment of the present application obtains the monitoring coordinates of the target monitoring object in the monitoring screen relative to the display screen of the target terminal device, determines the camera resolution of the target camera, and the terminal resolution of the target terminal device, and determines the camera coordinates of the target monitoring object photographed by the target camera in the lens of the target camera based on the monitoring coordinates, the camera resolution, and the terminal resolution, and determines the position corresponding to the camera coordinates as the initial position of the target monitoring object photographed by the target camera in the lens of the target camera. This technical solution, by mapping the corresponding monitoring coordinates of the target monitoring object in the displayed monitoring screen to the lens of the target camera, thereby obtaining the camera coordinates of the target monitoring object photographed by the target camera in the lens of the target camera, achieves the ability to quickly and accurately determine the initial position of the target monitoring object photographed by the target camera in the lens of the target camera.
[0164] See Figure 4, which is a flowchart of another embodiment of an object monitoring method provided by an embodiment of the present application. The process shown in Figure 4 is based on the process shown in Figure 3 and describes how to generate an instruction to rotate the target camera and how to rotate the target camera when the target position in the lens is the center position of the lens and the target camera is a pan-tilt camera. As shown in Figure 4, the process may include the following steps:
[0165] Step 401: Determine the center coordinates of the lens center position of the target camera.
[0166] The above center position is the exact center position of the lens of the target camera.
[0167] In the embodiment of the present application, in order to display the target monitored object in the center of the monitoring screen, the execution subject of the embodiment of the present application may use the center position of the lens of the target camera as the target position. Based on this, the execution subject of the embodiment of the present application may obtain the coordinates of the center position of the lens of the target camera (hereinafter referred to as the center coordinates for ease of description).
[0168] As an exemplary embodiment, when the lens of the target camera establishes a coordinate system, it can be synchronized with the display screen of the target terminal device. That is, if the display screen of the target terminal device establishes a rectangular coordinate system with vertices, then the lens of the target camera also establishes a rectangular coordinate system with vertices.
[0169] Based on this, the execution entity of the embodiment of the present application can determine the center coordinates of the center position in the rectangular coordinate system.
[0170] Step 402: When it is determined that the distance between the initial position and the center position is greater than a preset distance threshold, the pan-tilt rotation parameters of the pan-tilt camera are determined according to the camera coordinates and the center coordinates.
[0171] The preset distance threshold may be a distance threshold preset by the user, such as 5 pixels.
[0172] In one embodiment, after determining the initial position and target position of the target surveillance object captured by the target camera within the lens of the target camera, the execution subject of the embodiment of the present application may determine the distance between the initial position and the target position. Thereafter, if the distance is greater than a preset distance threshold, the PTZ rotation parameters of the PTZ camera may be determined based on the image coordinates and the center coordinates.
[0173] As an exemplary implementation, the execution subject of the embodiment of the present application may determine a first difference between the horizontal coordinate of the camera coordinate and the horizontal coordinate of the center coordinate, and a second difference between the vertical coordinate of the camera coordinate and the vertical coordinate of the center coordinate.
[0174] Optionally, if it is determined that the first difference is greater than a first preset distance threshold, and / or the second difference is greater than the first preset distance threshold, it can be determined that the distance between the initial position and the target position is greater than the preset distance threshold. The first preset distance threshold may be a distance threshold determined based on the preset distance threshold, and may be the same as or different from the preset distance threshold, and this embodiment of the present application is not limited thereto.
[0175] As another exemplary embodiment, the execution subject of the embodiment of the present application can determine the distance value between the corresponding position of the camera coordinates and the corresponding position of the center coordinates based on the horizontal and vertical coordinates of the camera coordinates and the horizontal and vertical coordinates of the center coordinates.
[0176] Optionally, if the distance value is greater than a second preset distance threshold, it can be determined that the distance between the initial position and the target position is greater than the preset distance threshold. The second preset distance threshold may be the same as the first preset distance threshold, or may be a distance value greater than the first preset distance threshold, and this embodiment of the present application does not impose any limitation on this.
[0177] Afterwards, the execution subject of the embodiment of the present application can determine the pan-tilt rotation parameters of the pan-tilt camera according to the camera coordinates and the center coordinates.
[0178] As an exemplary embodiment, the execution subject of the embodiment of the present application can determine the horizontal coordinate difference and the vertical coordinate difference between the camera coordinates and the center coordinates, and determine the horizontal coordinate difference and the vertical coordinate difference as the pan-tilt rotation parameters of the pan-tilt camera.
[0179] Step 403: Generate an instruction for rotating the target camera based on the pan / tilt rotation parameters.
[0180] Step 404: Send the above instruction to the target camera through a preset network communication protocol, so that the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction.
[0181] The following is a unified description of step 403 and step 404:
[0182] The above-mentioned network communication protocol can be a preset communication protocol, and can be P2P (peer to peer lending, point-to-point network communication) or TCP / IP (Transmission Control Protocol / Internet Protocol, Transmission Control Protocol / Internet Protocol) network protocol, which is not limited in the embodiments of the present application.
[0183] Furthermore, in order to speed up the transmission speed, the execution entity of the embodiment of the present application can send the pan-tilt rotation instruction to the target camera through the P2P protocol.
[0184] Based on this, the executing entity of the embodiment of the present application can generate an instruction to rotate the target camera according to the determined pan-tilt rotation parameters, and send the instruction to the target camera through the P2P protocol, so that the pan-tilt of the target camera rotates according to the pan-tilt rotation parameters in the instruction.
[0185] Furthermore, to allow users to gain a detailed understanding of the monitoring footage during the pan / tilt rotation process, the execution entity of the embodiment of the present application can create a pan / tilt rotation view from the target terminal device. Based on this, while the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction, the execution entity of the embodiment of the present application can obtain the target camera's captured footage and synchronize this footage to the pan / tilt rotation view for display, thereby enabling the rotation animation of the pan / tilt camera to be played on the target terminal device.
[0186] The technical solution provided by the embodiment of the present application determines the center coordinates of the center position of the lens of the target camera, and when it is determined that the distance between the initial position and the above-mentioned center position is greater than a preset distance threshold, determines the pan-tilt rotation parameters of the pan-tilt camera based on the shooting coordinates and the center coordinates, generates an instruction to rotate the target camera based on the above-mentioned pan-tilt rotation parameters, and sends the above-mentioned instruction to the target camera through a preset network communication protocol, so that the pan-tilt of the target camera rotates according to the pan-tilt rotation parameters in the instruction. This technical solution determines whether the distance between the initial position and the target position is greater than a preset distance threshold based on the shooting coordinates corresponding to the initial position of the target monitoring object photographed by the target camera in the lens of the target camera and the center coordinates corresponding to the target position, and when the distance is greater than the preset distance threshold, rotates the pan-tilt according to the shooting coordinates and the center coordinates, so that the target monitoring object photographed by the target camera is at the target position in the lens of the target camera, thereby achieving accurate and rapid rotation of the target camera.
[0187] Refer to Figure 5, which is a block diagram of an embodiment of an object monitoring device provided in an embodiment of the present application. As shown in Figure 5, the device may include:
[0188] A first determining module 51 is configured to display a current monitoring screen of the monitoring device and determine a target monitoring object from the monitoring screen;
[0189] A second determining module 52 is configured to determine a target camera in the monitoring device that monitors the target monitoring object, and to determine an initial position of the target monitoring object captured by the target camera in the lens of the target camera;
[0190] a rotation module 53 for generating an instruction to rotate the target camera when it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, so that the target monitored object photographed by the target camera is located at the target position in the lens of the target camera;
[0191] The monitoring module 54 is configured to obtain a new monitoring image of the target monitoring object through the monitoring device based on the target position, so as to monitor the target monitoring object according to the new monitoring image.
[0192] As a possible implementation, the first determining module 51 is specifically configured to:
[0193] Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device;
[0194] Receiving a trigger operation from a user on any monitored object in the monitoring screen;
[0195] In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size;
[0196] The object contained in the object frame is determined as a target monitoring object.
[0197] As a possible implementation, the second determining module 52 includes:
[0198] An acquisition submodule, configured to acquire the monitoring coordinates of the target monitoring object in the monitoring screen relative to the display screen of the target terminal device;
[0199] A first determining submodule is used to determine the camera resolution of the target camera and the terminal resolution of the target terminal device;
[0200] A second determining submodule is configured to determine the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the imaging resolution, and the terminal resolution;
[0201] The third determining submodule is configured to determine the position corresponding to the camera coordinates as the initial position of the target monitoring object captured by the target camera in the lens of the target camera.
[0202] As a possible implementation, the second determining submodule is specifically configured to:
[0203] Determining, according to the camera resolution and the terminal resolution, a width ratio and a height ratio of a display image between the target camera and the target terminal device;
[0204] Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate;
[0205] The vertical coordinate of the monitoring coordinate is multiplied by the height ratio to obtain the vertical coordinate of the camera coordinate.
[0206] As a possible implementation, the target position in the lens is the center position of the lens, and the rotation module 53 is specifically configured to:
[0207] determining the center coordinates of the center position;
[0208] Determine a first difference between the abscissa of the camera coordinate and the abscissa of the center coordinate, and a second difference between the ordinate of the camera coordinate and the ordinate of the center coordinate;
[0209] If the first difference is greater than a first preset distance threshold, and / or the second difference is greater than the first preset distance threshold, determining that the distance between the initial position and the target position is greater than the preset distance threshold;
[0210] or,
[0211] Determine the distance between a position corresponding to the camera coordinates and a position corresponding to the center coordinates according to the abscissa and ordinate of the camera coordinates and the abscissa and ordinate of the center coordinates;
[0212] If the distance value is greater than a second preset distance threshold, it is determined that the distance between the initial position and the target position is greater than the preset distance threshold.
[0213] As a possible implementation, the target camera is a pan-tilt camera, and the rotation module 53 is specifically used to:
[0214] Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates;
[0215] Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter;
[0216] The method further comprises:
[0217] The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction.
[0218] As a possible implementation, the monitoring device includes at least two cameras, and the monitoring module 54 is specifically configured to:
[0219] Get the monitoring function selected by the user;
[0220] Determining a surveillance camera from the surveillance devices according to the surveillance function;
[0221] If the surveillance camera is not the target camera, generating a switching instruction for instructing to switch from the target camera to the surveillance camera;
[0222] The switching instruction is sent to the monitoring device, so that the monitoring device obtains a new monitoring picture of the target monitoring object through the monitoring camera based on the target position of the target camera.
[0223] As a possible implementation, the device further includes (not shown in the figure):
[0224] A creation module, configured to create a pan / tilt rotation view from the target terminal device;
[0225] A picture acquisition module, configured to acquire a picture taken by the target camera while the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction;
[0226] A synchronization module is used to synchronize the shooting picture to the pan-tilt rotation view for display.
[0227] As shown in FIG6 , a schematic diagram of the structure of a monitoring device provided in an embodiment of the present application includes a processor 61, a communication interface 62, a memory 63, a communication bus 64, and a camera 65. The processor 61, the communication interface 62, and the memory 63 communicate with each other via the communication bus 64.
[0228] Memory 63, for storing computer programs;
[0229] In one embodiment of the present application, the processor 61 is configured to execute a program stored in the memory 63 to implement the object monitoring method provided by any of the aforementioned method embodiments, including:
[0230] Displaying the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen;
[0231] Determining a target camera in the monitoring device that monitors the target monitoring object, and determining an initial position of the target monitoring object captured by the target camera in a lens of the target camera;
[0232] When it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, generating an instruction to rotate the target camera so that the target surveillance object photographed by the target camera is located at the target position in the lens of the target camera;
[0233] Based on the target position, a new monitoring picture of the target monitoring object is obtained through the monitoring device, so as to monitor the target monitoring object according to the new monitoring picture.
[0234] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in the aforementioned embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0235] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0236] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiment.
[0237] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0238] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.
[0239] The above-described embodiments of the present application do not constitute a limitation on the scope of protection of the present application.
Claims
1. A method for monitoring an object, characterized in that: The method comprises: Displaying the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen; Determining a target camera in the monitoring device that monitors the target monitoring object, and determining an initial position of the target monitoring object captured by the target camera in a lens of the target camera; When it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, generating an instruction to rotate the target camera so that the target surveillance object photographed by the target camera is located at the target position in the lens of the target camera; Based on the target position, a new monitoring picture of the target monitoring object is obtained through the monitoring device, so as to monitor the target monitoring object according to the new monitoring picture.
2. The method according to claim 1, characterized in that The displaying of the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen includes: Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device; Receiving a trigger operation from a user on any monitored object in the monitoring screen; In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size; The object contained in the object frame is determined as a target monitoring object.
3. The method according to claim 2, characterized in that Determining the initial position of the target surveillance object captured by the target camera in the lens of the target camera includes: Acquire the monitoring coordinates of the target monitoring object in the monitoring picture relative to the display screen of the target terminal device; Determining the camera resolution of the target camera and the terminal resolution of the target terminal device; Determining the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera based on the monitoring coordinates, the imaging resolution, and the terminal resolution; The position corresponding to the camera coordinates is determined as the initial position of the target monitoring object photographed by the target camera in the lens of the target camera.
4. The method according to claim 3, characterized in that The determining, based on the monitoring coordinates, the imaging resolution, and the terminal resolution, the imaging coordinates of the target monitoring object captured by the target camera in the lens of the target camera includes: Determining, according to the camera resolution and the terminal resolution, a width ratio and a height ratio of a display image between the target camera and the target terminal device; Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate; The vertical coordinate of the monitoring coordinate is multiplied by the high ratio to obtain the vertical coordinate of the camera coordinate.
5. The method according to claim 3, characterized in that The target position in the lens is a center position of the lens, and determining that the distance between the initial position and the target position in the lens is greater than a preset distance threshold includes: determining the center coordinates of the center position; Determine a first difference between the abscissa of the camera coordinate and the abscissa of the center coordinate, and a second difference between the ordinate of the camera coordinate and the ordinate of the center coordinate; If the first difference is greater than a first preset distance threshold, and / or the second difference is greater than the first preset distance threshold, determining that the distance between the initial position and the target position is greater than the preset distance threshold; or, Determine the distance between a position corresponding to the camera coordinates and a position corresponding to the center coordinates according to the abscissa and ordinate of the camera coordinates and the abscissa and ordinate of the center coordinates; If the distance value is greater than a second preset distance threshold, it is determined that the distance between the initial position and the target position is greater than the preset distance threshold.
6. The method according to claim 5, characterized in that The target camera is a pan-tilt camera, and the generating of the instruction to rotate the target camera includes: Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates; Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter; The method further comprises: The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction.
7. The method according to claim 1, characterized in that The monitoring device includes at least two cameras, and obtaining a new monitoring image of the target monitoring object through the monitoring device based on the target position includes: Get the monitoring function selected by the user; Determining a surveillance camera from the surveillance devices according to the surveillance function; If the surveillance camera is not the target camera, generating a switching instruction for instructing to switch from the target camera to the surveillance camera; The switching instruction is sent to the monitoring device, so that the monitoring device obtains a new monitoring picture of the target monitoring object through the monitoring camera based on the target position of the target camera.
8. The method according to claim 6, characterized in that Also includes: Creating a pan / tilt rotation view from the target terminal device; Acquiring a captured image of the target camera while the pan / tilt of the target camera rotates according to the pan / tilt rotation parameters in the instruction; The shooting picture is synchronized to the pan / tilt rotation view for display.
9. An object monitoring device, characterized in that: The device comprises: A first determining module is used to display the current monitoring screen of the monitoring device and determine the target monitoring object from the monitoring screen; A second determining module is configured to determine a target camera in the monitoring device that monitors the target monitoring object, and to determine an initial position of the target monitoring object captured by the target camera in a lens of the target camera; a rotation module, configured to generate an instruction to rotate the target camera when it is determined that the distance between the initial position and the target position in the lens is greater than a preset distance threshold, so that the target surveillance object photographed by the target camera is located at the target position in the lens of the target camera; The monitoring module is used to obtain a new monitoring picture of the target monitoring object through the monitoring device based on the target position, so as to monitor the target monitoring object according to the new monitoring picture.
10. A monitoring device, characterized in that: include: A camera, a processor and a memory, wherein the processor is used to execute an object monitoring program stored in the memory to implement the object monitoring method according to any one of claims 1 to 8.