Object monitoring method and device and monitoring equipment
By determining the target monitoring object in the monitoring screen and rotating the camera so that it is located at the target position in the lens, the inconvenience of users having to adjust the camera or move the screen canvas in the existing technology is solved, and the viewing experience of the monitoring video is improved.
Patent Information
- Application Number
- CN202410244979.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2025-09-05
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 take a closer look at a monitored object. This operation is inconvenient and the key area easily exceeds the display area after zooming, resulting in a poor viewing experience.
The target monitoring object is determined through the monitoring picture, the initial position of the target camera is determined, and an instruction to rotate the camera is generated so that the target monitoring object is located at the target position in the lens, and a new monitoring picture is obtained for monitoring.
It achieves accurate and rapid display of the target monitoring object in the center of the monitoring screen, avoids user operation inconvenience and improves the monitoring experience.
Smart Images

Figure CN120602780A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera technology, and in particular to an object monitoring method, device and monitoring equipment. Background Art
[0002] 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.
[0003] 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. Summary of the Invention
[0004] The present application provides an object monitoring method, apparatus, and monitoring device to solve the technical problem in the prior art that when viewing real-time monitoring video through a mobile phone screen and wanting to take a closer look at a monitored 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 for real-time monitoring video.
[0005] In a first aspect, the present application provides an object monitoring method, the method comprising:
[0006] Displaying the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen;
[0007] 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;
[0008] 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;
[0009] 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.
[0010] As an optional implementation, displaying the current monitoring screen of the monitoring device and determining the target monitoring object from the monitoring screen includes:
[0011] Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device;
[0012] Receiving a trigger operation from a user on any monitored object in the monitoring screen;
[0013] In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size;
[0014] The object contained in the object frame is determined as a target monitoring object.
[0015] As an optional implementation manner, determining the initial position of the target surveillance object captured by the target camera in the lens of the target camera includes:
[0016] Acquire the monitoring coordinates of the target monitoring object in the monitoring picture relative to the display screen of the target terminal device;
[0017] Determining the camera resolution of the target camera and the terminal resolution of the target terminal device;
[0018] 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;
[0019] 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.
[0020] As an optional implementation, determining 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 includes:
[0021] 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;
[0022] Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate;
[0023] The vertical coordinate of the monitoring coordinate is multiplied by the high ratio to obtain the vertical coordinate of the camera coordinate.
[0024] As an optional implementation, the target position in the lens is the 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:
[0025] determining the center coordinates of the center position;
[0026] 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;
[0027] 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;
[0028] or,
[0029] 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;
[0030] 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.
[0031] As an optional implementation, the target camera is a pan-tilt camera, and generating an instruction to rotate the target camera includes:
[0032] Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates;
[0033] Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter;
[0034] The method further comprises:
[0035] The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt head of the target camera rotates according to the pan / tilt head rotation parameters in the instruction.
[0036] As an optional implementation, 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:
[0037] Get the monitoring function selected by the user;
[0038] Determining a surveillance camera from the surveillance devices according to the surveillance function;
[0039] 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;
[0040] 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.
[0041] As an optional implementation, it also includes:
[0042] Creating a pan / tilt rotation view from the target terminal device;
[0043] 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;
[0044] The shooting picture is synchronized to the pan / tilt rotation view for display.
[0045] In a second aspect, an embodiment of the present application provides an object monitoring device, the device comprising:
[0046] 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;
[0047] 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;
[0048] 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;
[0049] 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.
[0050] As a possible implementation, the first determining module is specifically configured to:
[0051] Obtaining the current monitoring screen of the monitoring device and displaying the monitoring screen through the target terminal device;
[0052] Receiving a trigger operation from a user on any monitored object in the monitoring screen;
[0053] In response to a trigger point corresponding to the trigger operation, outputting an object frame of a preset size;
[0054] The object contained in the object frame is determined as a target monitoring object.
[0055] As a possible implementation, the second determining module includes:
[0056] 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;
[0057] A first determining submodule is used to determine the camera resolution of the target camera and the terminal resolution of the target terminal device;
[0058] 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;
[0059] 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.
[0060] As a possible implementation, the second determining submodule is specifically configured to:
[0061] 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;
[0062] Multiplying the horizontal coordinate of the monitoring coordinate by the width ratio to obtain the horizontal coordinate of the camera coordinate;
[0063] The vertical coordinate of the monitoring coordinate is multiplied by the high ratio to obtain the vertical coordinate of the camera coordinate.
[0064] As a possible implementation, the target position in the lens is the center position of the lens, and the rotation module is specifically configured to:
[0065] determining the center coordinates of the center position;
[0066] 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;
[0067] 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;
[0068] or,
[0069] 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;
[0070] 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.
[0071] As a possible implementation, the target camera is a pan-tilt camera, and the rotation module is specifically used to:
[0072] Determining a pan / tilt rotation parameter of the pan / tilt camera according to the camera coordinates and the center coordinates;
[0073] Generate an instruction to rotate the target camera based on the pan / tilt rotation parameter;
[0074] The method further comprises:
[0075] The instruction is sent to the target camera via a preset network communication protocol, so that the pan / tilt head of the target camera rotates according to the pan / tilt head rotation parameters in the instruction.
[0076] As a possible implementation, the monitoring device includes at least two cameras, and the monitoring module is specifically configured to:
[0077] Get the monitoring function selected by the user;
[0078] Determining a surveillance camera from the surveillance devices according to the surveillance function;
[0079] 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;
[0080] 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.
[0081] As a possible implementation, the device further includes:
[0082] A creation module, configured to create a pan / tilt rotation view from the target terminal device;
[0083] 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;
[0084] A synchronization module is used to synchronize the shooting picture to the pan-tilt rotation view for display.
[0085] 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.
[0086] 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.
[0087] 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0089] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0090] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0091] Figure 1 A schematic diagram of an application scenario of an object monitoring method provided in an embodiment of the present application;
[0092] Figure 2 A flowchart of an embodiment of an object monitoring method provided in an embodiment of the present application;
[0093] Figure 3 A flowchart of another object monitoring method provided in an embodiment of the present application;
[0094] Figure 4 A flowchart of another object monitoring method provided in an embodiment of the present application;
[0095] Figure 5 A block diagram of an embodiment of an object monitoring device provided in an embodiment of the present application;
[0096] Figure 6 A schematic diagram of the structure of a monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are 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] See also Figure 1 , is a schematic diagram of an application scenario of an object monitoring method provided in an embodiment of the present application. Figure 1 As shown, the application scenario may include a terminal 11 , a monitoring device 12 , and a monitoring object 13 .
[0102] The terminal 11 can be a hardware device or software that supports network connection and provides various network services. When the terminal 11 is hardware, it can support various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. Figure 1 Only a smart phone is used as an example. When 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 the object monitored by the monitoring device 12, and may include but is not limited to: people, vehicles, and animals, etc., which are not limited in this embodiment of the present application. Figure 1 The application scenario shown is illustrated by taking the monitored object 13 as a person.
[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 actual applications, since the monitored object 13 is mobile, when the user views the monitoring video of the monitored object 13 by the monitoring device 12 through the terminal 11, the monitored object 13 may be located at the edge area of the terminal 11 screen, for example Figure 1 Monitored object 111 on the screen of terminal 11. In the prior art, if a user wants to take a closer look at monitored object 13 through terminal 11, they need to manually adjust the surveillance camera of monitoring device 12 or the screen canvas of mobile 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 surveillance 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, Figure 1 The monitoring object 112 on the screen of the terminal 11 is displayed, so that the user can 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 also Figure 2 , is a flow chart 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 Figure 1 The monitoring device 12 or terminal 11 shown. Figure 2 As shown, 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 above monitoring equipment is a device installed by the user to monitor the set scene, which can be Figure 1 The monitoring device 12 is shown.
[0112] The target monitoring object is any object in the scene monitored by the monitoring device, and can be a person (e.g. Figure 1The monitored object 13) shown can also be an animal, or an object such as a vehicle or a sofa, which is not limited in this embodiment of the present application.
[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 target monitoring object through the target terminal device (for example, Figure 1 The terminal 11) shown displays the monitoring screen.
[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 described in the following. Figure 3 The process shown is explained below and will not be 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, you can refer to the following Figure 4 The process shown is explained below and 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 also Figure 3 , which is a flow chart of an embodiment of another object monitoring method provided in an embodiment of the present application. Figure 3 The process shown in Figure 2 Based on the process shown in FIG, it is described how to determine the initial position of the target monitoring object captured by the target camera in the lens of the target camera. Figure 3 As shown, 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 also Figure 4 , which is a flow chart of another embodiment of an object monitoring method provided in an embodiment of the present application. Figure 4 The process shown in Figure 3 Based on the process shown in the figure, it describes how to generate the 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. Figure 4 As shown, 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] See also Figure 5 , is a block diagram of an embodiment of an object monitoring device provided in an embodiment of the present application. Figure 5 As shown, 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 high 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 head of the target camera rotates according to the pan / tilt head 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] like Figure 6 As shown, it is a structural diagram of a monitoring device provided by an embodiment of the present application, including a processor 61, a communication interface 62, a memory 63, a communication bus 64, and a camera 65, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through 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] An embodiment of the present application further provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the object monitoring method provided in any of the aforementioned method embodiments are implemented.
[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.
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 height 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.
Citation Information
Patent Citations
Video intelligent linkage method and server
CN110113560A
Target monitoring method and device, equipment and storage medium
CN113766175A
Shooting method for multi-camera module with built-in holder
CN114125256A
Video image resolution adaptive conversion device
CN115002304A
Methods and apparatus relating to camera switching and / or making a decision to switch between cameras
US20180225537A1