A monitoring method and system for a target area

Through the linkage between the camera device and the mobile robot, the homography matrix and map information are used to determine the pixel position of the target area, solving the problem of monitoring unmarked target areas, achieving flexible monitoring of the indoor environment and improving the security of the smart home system.

CN113676696BActive Publication Date: 2024-08-30HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010406182.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-14
Publication Date
2024-08-30
Estimated Expiration
2040-05-14

AI Technical Summary

Technical Problem

Existing target monitoring methods cannot be applied to situations without specific identification, especially in indoor environments, such as home environments, and cannot effectively monitor target areas without clear boundaries.

Method used

Through the linkage between the camera device and the mobile robot, the pose calibration information of the camera device is obtained, the homography matrix and map information are used to determine the position of the target area, and the pixel position in the image is mapped for monitoring. The method includes capturing image frames of the mobile robot at different locations, solving the homography matrix, determining the posture and position of the camera device, setting the boundaries of the target area based on the map, and realizing monitoring of the unmarked target area.

Benefits of technology

It achieves effective monitoring of unmarked target areas, improves the deployment flexibility and monitoring convenience of camera devices, and is suitable for applications such as preventing young children from entering dangerous areas in smart home systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676696B
    Figure CN113676696B
Patent Text Reader

Abstract

The present application discloses a method for monitoring a target area, characterized in that the method includes, on the side of a camera device used for monitoring, obtaining the position calibration information of the camera device, determining the pixel position in the image captured by the camera device mapped with the position information of the target area in the map associated with the calibration information, based on the internal parameters of the camera device and the calibration information, determining the target area in the captured image according to the pixel position, and monitoring the target area in the captured image, wherein the calibration information is calibrated based on the image frame of the mobile robot captured by the camera device and the position of the mobile robot in the image frame obtained by interacting with the mobile robot. The camera device is incorporated into the global map so that the camera device and the mobile robot are associated through the map, and the user can flexibly set the target area based on the map, which facilitates the deployment of the camera device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image monitoring, and in particular to a method for monitoring a target area. Background Art

[0002] With the maturity of image monitoring technology, target image monitoring has also become one of the widely used applications in the monitoring field. Existing target monitoring includes target behavior monitoring, target object monitoring, target area monitoring, etc. These monitoring are usually achieved through video analysis of the target and are mostly used in outdoor and public areas. For example, road driving monitoring, entrance and exit monitoring of stations and docks, etc., because these monitoring are based on the video analysis of the designated target area identification, they are not suitable for occasions without specific identification, such as indoors and home environments. Summary of the invention

[0003] The present application provides a method for monitoring a target area to solve the problem of monitoring a target area without a mark.

[0004] The present invention provides a method for monitoring a target area, the method comprising: obtaining position and posture calibration information of the camera device on the camera device side used for monitoring;

[0005] According to the location information of the target area in the map associated with the calibration information, based on the internal parameters of the camera device and the calibration information, determine the pixel position in the image captured by the camera device mapped with the location information of the target area,

[0006] Determine the target area in the acquired image according to the pixel position, monitor the target area in the acquired image,

[0007] The calibration information is calibrated based on the image frames of the mobile robot captured by the camera device and the position of the mobile robot in the image frames obtained by interacting with the mobile robot.

[0008] Preferably, the calibration of the position of the mobile robot in the image frames of the mobile robot captured by the camera device and the image frames obtained by interacting with the mobile robot includes:

[0009] capturing at least 4 image frames of the mobile robot at different positions, at least three of the positions being not collinear,

[0010] Interact with the mobile robot to obtain the position information of the mobile robot in the image frame,

[0011] Solve the homography matrix according to the acquired position information and the pixel position of the center of the mobile robot in the image frame;

[0012] Determine the calibration information based on the homography matrix.

[0013] Preferably, the capturing of at least 4 image frames of the mobile robot at different positions and the interaction with the mobile robot to obtain the position information of the mobile robot in the image frames include:

[0014] The camera device detects that the captured image includes the mobile robot, requests the mobile robot for current position information of the mobile robot, and captures the current image frame when receiving the position information fed back by the mobile robot;

[0015] Track the movement of the mobile robot, receive the current position information sent when the distance moved by the mobile robot is greater than the set threshold, capture the current image frame,

[0016] Repeating the steps of tracking the movement of the mobile robot, receiving the current position information sent when the distance moved by the mobile robot is greater than a set threshold, and capturing the current image frame until at least 4 image frames and the position of the mobile robot in the image frames are obtained; wherein the current position information is determined by the mobile robot according to the map;

[0017] The method of solving the homography matrix according to the acquired position information and the pixel position of the center of the mobile robot in the image frame includes:

[0018] According to the relationship that the product of the homography matrix and the position coordinate matrix corresponds to the pixel coordinate matrix, the homography matrix is ​​solved, where the homography matrix is ​​a 3×3 matrix;

[0019] Determining the calibration information according to the homography matrix includes:

[0020] Perform singular value decomposition on the homography matrix to obtain a rotation matrix and a translation vector, wherein the rotation matrix is ​​the posture of the camera device, and the translation vector is the three-dimensional space position of the camera device.

[0021] Preferably, the location information of the target area includes at least three non-collinear location information based on map settings.

[0022] The method of determining the pixel position in the image captured by the camera device mapped with the position information of the target area in the map based on the internal parameters of the camera device and the calibration information includes:

[0023] Multiplying the intrinsic parameter matrix of the camera device by the product of the rotation matrix in the calibration information and the homogeneous coordinate matrix of any position information of the target area and the translation matrix in the calibration information to obtain the pixel coordinates mapped to the position;

[0024] Determining the target area in the captured image according to the pixel positions includes taking the area within a closed curve formed by sequentially connecting the coordinates of each pixel as the target area in the captured image.

[0025] Preferably, the location information of the target area includes the starting point and the ending point of the boundary line between the areas set based on the map.

[0026] Determining the target area in the captured image according to the pixel position includes taking a line connecting the pixel coordinates of the starting point and the pixel coordinates of the ending point as a boundary of the target in the captured image.

[0027] Preferably, the mobile robot is a sweeping robot, and the map is constructed by the sweeping robot.

[0028] The method further includes the camera device sending the result of monitoring the target area in the captured image to the user terminal or outputting voice information through the mobile robot.

[0029] Preferably, the obtaining of the position and posture calibration information of the camera device comprises reading the calibration information from the camera device body;

[0030] The map associated with the calibration information is determined as follows:

[0031] The camera device sends the calibration information to the mobile robot, so that the mobile robot determines the associated map according to the calibration information; the camera device receives the associated map from the mobile robot and saves it in the main body;

[0032] or,

[0033] The camera device requests a map from the mobile robot, receives the map fed back by the mobile robot, determines the associated map according to the calibration information, and stores the associated map in the main body.

[0034] Preferably, the number of the camera devices is n, where n is a natural number greater than 1, and the calibration information, identification, and associated map of each camera device are stored in the server.

[0035] The obtaining of the position and posture calibration information of the camera device comprises:

[0036] receiving calibration information of the camera device sent from the server,

[0037] Among them, the selection of camera devices includes:

[0038] The client sends a query request to the server, and the server feeds back a query request result to the client, wherein the query request result includes at least one of a camera device associated with the map, calibration information of the camera device, and an identifier of the camera device.

[0039] Selecting at least one camera device according to the query request result;

[0040] The location information of the target area in the map associated with the calibration information is sent by the server according to the identification of the camera device, wherein the map associated with the calibration information is determined by the client according to the calibration information of the selected camera device;

[0041] The method further includes each camera transmitting a monitored image to a server, so that the server superimposes the monitored images of more than two cameras associated with the target area.

[0042] A monitoring system provided by the present invention includes a server, a client and at least one camera device, and is characterized in that the monitoring system also includes a mobile robot for building a map and calibrating the position and posture of the camera device, and the camera device includes a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of the above-mentioned target area monitoring method.

[0043] The present invention also provides a smart home system, comprising a mobile robot and at least one camera device, characterized in that the mobile robot is used to construct a map and perform posture calibration of the camera device, the camera device comprises a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of the above-mentioned target area monitoring method.

[0044] The present invention provides a computer-readable storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the target area monitoring method are implemented.

[0045] The present application provides a method for monitoring a target area, which determines the installation position of the camera device through the linkage between the mobile robot and the camera device, so that the camera device is associated with the map used by the mobile robot for navigation and positioning. In this way, the camera device is incorporated into the global map, so that the camera device and the mobile robot are associated through the map. The user can flexibly set the target area based on the map, which facilitates the deployment of the camera device and realizes the monitoring of the target area by the camera device. When this method is applied to the smart home system, it can effectively prevent young children from entering relatively dangerous areas such as balconies and kitchens. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of the original map constructed for the sweeping robot.

[0047] Figure 2 A schematic diagram of the map after editing.

[0048] Figure 3 A schematic diagram of a flow chart for implementing target boundary monitoring in a target area for this application.

[0049] Figure 4 A schematic diagram for obtaining at least 4 coordinate positions.

[0050] Figure 5 A flow chart of the monitoring method of the second embodiment of the present application.

[0051] Figure 6a and 6b A schematic diagram of a camera device setting a target area based on a map associated with the camera device.

[0052] Figure 7 A schematic diagram of the smart home system of this application.

[0053] Figure 8 A schematic diagram of the monitoring system of this application. DETAILED DESCRIPTION

[0054] In order to make the objectives, technical means and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings.

[0055] The present application determines a target area based on map information; based on the linkage between a mobile robot and a camera device, the camera device obtains its calibration information, and the calibration information reflects the position and posture of the camera device in a world coordinate system; based on the calibration information, the target area in the physical space is mapped to the target area in the image coordinate system of the camera device, and monitoring is performed according to the target area in the image coordinate system; further, the boundary of the target area in the physical space is determined based on the map, and the target boundary in the physical space is mapped to the target boundary in the image coordinate system of the camera device according to the calibration information; target detection is performed on the target area and / or target boundary, and a reminder is triggered when a target is detected.

[0056] To facilitate the understanding of the technical solution of the present application, the following explanation is given by taking target area monitoring in a home environment as an example. It should be understood that the present application is not limited to target area monitoring in a home environment, but may also be applicable to other indoor monitoring and target area monitoring in an unmarked environment.

[0057] Embodiment 1

[0058] In this embodiment, the mobile robot is a sweeping robot, which detects the environment based on the sensors it carries (laser radar, camera, TOF, etc.), thereby establishing a cleaning map of the environment. Figure 1 As shown, Figure 1 A schematic diagram of the original map constructed by the sweeping robot. Generally, the map constructed by the sweeping robot is a two-dimensional map that is consistent with the actual floor plan.

[0059] After constructing the original map, the sweeping robot can send the original map to the user terminal, and the user can edit the cleaning map to determine each functional area and its boundaries. Alternatively, the sweeping robot can determine the functional area based on the acquired feature image, for example, determine the bedroom based on the feature image of the bed, and determine the boundary of the functional area based on the features of the door.

[0060] See also Figure 2 As shown, Figure 2 This is a schematic diagram of the edited map. In the figure, different grayscale areas represent different functional attributes of the area, and the black thick line segment is the target boundary. Users can set the target area based on the edited map. For example, the bathroom and kitchen contain water and electricity facilities that are dangerous to young children. For families with young children, the kitchen and bathroom can be set as target areas where young children are prohibited from entering. In this way, the boundary line where the kitchen and the living room are connected can be considered as the target boundary where young children are prohibited from entering. The starting point coordinate of the target boundary is marked as (x s ,y s , 0) and the end point coordinates are marked as (x e ,y e , 0), since the cleaned map is a two-dimensional plane, the third dimension coordinate is set to 0.

[0061] See also Figure 3 As shown, Figure 3 A flow chart of a target boundary monitoring method in a target area for the present application. The method includes:

[0062] Step 300: After the camera device is started, it is determined whether the camera body has stored the calibration information of its installation posture. If so, step 304 is executed. Otherwise, step 301 is executed.

[0063] Step 301, the camera device detects a target in the current image, and when a sweeping robot is detected in the image, collects at least 4 frames of the sweeping robot image;

[0064] In this step, the interaction process between the camera device and the sweeping robot can be as follows:

[0065] The camera device detects the sweeping robot as a target, and when detecting that the sweeping robot is included in the image, requests the sweeping robot for its current spatial position information, and when receiving the position information fed back by the sweeping robot, captures the current image frame;

[0066] Track the movement of the sweeping robot. When the translation distance of the sweeping robot is greater than a set threshold, the current spatial position information based on the map is sent to the camera device. After receiving the current spatial position information, the camera device captures the current second image frame. The set threshold is used to avoid the captured position being too close to affect the accuracy of the calibration information.

[0067] The process is repeated until 4 image frames and the position information of the sweeping robot in the frames are collected, and the three positions are not collinear, which are respectively recorded as: (x1, y1, 0), (x2, y2, 0), (x3, y3, 0), (x4, y4, 0); the camera device instructs the sweeping robot to pause reporting of the current spatial position information, or stops receiving the spatial position information and image collection reported by the sweeping robot.

[0068] See also Figure 4 As shown, Figure 4 A schematic diagram for obtaining at least 4 coordinate positions. A camera installed at a certain position captures the image of the sweeping robot within its field of view and receives the position information of the sweeping robot according to the map.

[0069] Step 302: calibrate the position and posture of the camera device according to the position information of the sweeping robot in the world coordinate system, where the position and posture includes the spatial position and posture (orientation).

[0070] In the existing monitoring system, since the position and posture of the camera device is not calibrated, it cannot be directly associated with the map of the monitored target area. In other words, the camera device itself cannot select the target area for monitoring based on the map.

[0071] Given that the camera device can capture images of motion information relative to the sweeping robot and the camera device, by capturing different position information of the sweeping robot, based on the correspondence between the physical spatial position and the image imaging position, the calibration posture of the camera device, that is, the spatial position and posture of the camera device can be obtained.

[0072] Since the sweeping robot moves in a plane, the spatial position coordinates (x1, y1, 0), (x2, y2, 0), (x3, y3, 0), and (x4, y4, 0) are in the same plane z=0, so the installation position of the camera device can be obtained by solving a homography matrix.

[0073] Dedistort each captured image frame and determine the pixel position of the center of the sweeping robot in the image frame, recorded as (u1, v1), (u2, v2) (u3, v3) (u4, v4). Then, the product of the homography matrix and the spatial position coordinate matrix corresponds to the pixel coordinate matrix, which can be expressed mathematically as follows:

[0074]

[0075] The degree of freedom of the homography matrix is ​​8. Through the correspondence between the 4 spatial positions and the pixel positions, the value of each element in the homography matrix can be obtained. By performing singular value decomposition (SVD) on the homography matrix, the corresponding rotation matrix R and translation vector T can be obtained, that is, the orientation of the camera in the camera device and the installation position in the three-dimensional space, that is, the external parameters of the camera.

[0076] Step 303: The camera device interacts with the cleaning robot to obtain map information;

[0077] In this step, in one implementation mode, the camera device sends the calibration information to the sweeping robot, so that the sweeping robot determines the associated map according to the calibration information, sends the associated map to the camera device, and the camera device stores the associated map in the main body. This implementation mode only sends the map associated with the camera device, which is conducive to reducing air interface transmission resources.

[0078] In a second implementation mode, the camera device requests a map from the sweeping robot, and saves the map fed back by the sweeping robot in the main body. Furthermore, an associated map is determined according to calibration information, and the associated map is saved in the camera device.

[0079] The associated map may include a map of the vicinity of the location where the camera is installed and / or a map of the direction toward which the camera is facing.

[0080] Step 304: The camera device calculates the pixel position of the target boundary on the image based on the target boundary position determined by the map and the camera intrinsic parameters and extrinsic parameters, which can be calculated by the following formula:

[0081]

[0082] in is the intrinsic parameter matrix of the camera, is the homogeneous coordinate of the starting point of the target boundary on the map,

[0083] Similarly, Substituting the above formula, we can get the pixel position p of the end point of the target boundary on the image: e .

[0084] The target boundary position may be set by a user, or may be determined by a camera device according to a map.

[0085] Step 305, determine the boundary line segment of the target in the image based on the line segment of the pixel position of the starting point and the ending point, and detect the pixel information of the target to determine whether the child enters the boundary of the target.

[0086] In this step, target detection is used to extract the pixel part belonging to the target, determine whether the target is a child, and determine whether the target posture is walking upright or crawling.

[0087] If the object is walking upright, all pixels belonging to the feet are tracked; if the object is crawling, all pixels belonging to the limbs are tracked.

[0088] It is determined whether the pixel distance between all tracked pixels and the target boundary segment is less than the set second threshold value. If the minimum distance is less than the second threshold value, an alarm message is triggered; otherwise, monitoring continues.

[0089] Among them, the alarm information can be sent as a push message to the user terminal or directly linked to the sweeping machine, which will issue a warning voice to remind the user.

[0090] Although this embodiment takes one camera device as an example, it should be understood that multiple cameras in a home system can be monitored according to the implementation of this embodiment. Through the linkage between the camera device in the home system and the sweeping robot, the installation position of the camera device in the home system can be calibrated, so that the camera device is associated with the home map, which provides convenience for users to set the monitoring of the target area and / or target boundary based on the map, improves the convenience and flexibility of monitoring, enables the camera device to be flexibly deployed, and is conducive to the improvement of the intelligence of the home system.

[0091] Embodiment 2

[0092] In this embodiment, the installation positions of more than one camera device can be calibrated as in steps 301 to 302 during deployment and installation, and the calibration information of each camera device can be stored on the server side. In addition, the map associated with each camera device is also stored on the server side.

[0093] For example, when n cameras are deployed in a building, the calibration information of each camera can be obtained by linkage with a mobile robot in accordance with steps 301 to 302; the map associated with each camera is determined based on the calibration information; on the server side, the calibration information of each camera, the associated map, and the correspondence between the camera identification and the calibration information, and the associated map are stored.

[0094] See also Figure 5 As shown, Figure 5 This is a flow chart of the monitoring method of the second embodiment of the present application. When it is necessary to monitor any target area and / or target boundary, the following steps are included:

[0095] Step 501: A user sends a map query request to a server through a client, the request including description information of a target area and / or a target boundary, and / or sends a camera query request including an identification of the camera.

[0096] Step 502, the server responds to the query request;

[0097] For a map query request, a map including the target area and / or the target boundary is retrieved according to the description information of the target area and / or the target boundary, and the camera device associated with the map and the calibration information of the camera device are returned to the client;

[0098] For camera device query requests, the associated map and calibration information are determined based on the camera device identifier and returned to the client;

[0099] Step 503: The client selects at least one camera according to the query result, for example, according to the calibration information, sets the coordinate points of the target area and / or the target boundary based on the map associated with the selected camera, and sends the set coordinate point information and the selected camera identification to the server.

[0100] For example, see Figure 6a As shown, for camera device i, based on its associated map, m coordinate points within the target area are set. Preferably, at least three coordinate points on the boundary of the target area that are not in a straight line are set, so that a closed area connected by the three coordinate points in sequence is used as the target area.

[0101] For example, see Figure 6b As shown, for the first camera device, based on the map associated with it, s coordinate points on the boundary of the target area are set, and for the second camera device, based on the map associated with it, t coordinate points on the boundary of the target area are set, so that the closed area formed by the s+t coordinate points connected in sequence is used as the target area, where s and t are natural numbers;

[0102] For the target boundary, two coordinate points of the boundary segment are determined based on the map;

[0103] Step 504: the server sends the set coordinate points and calibration information to the corresponding camera device according to the received camera device identification information, so that the camera device starts monitoring;

[0104] Step 505, after the camera device receives the coordinate point information and calibration information from the server, it calculates the pixel coordinate points of each coordinate point on the image based on the calibration information and the coordinate point information. When the number of pixel coordinate points is greater than or equal to 3 and is not in the same straight line, the closed area formed by the pixel coordinate points connected in sequence is taken as the target area and the target area is monitored; otherwise, the line segment connected by the pixel coordinate points is taken as the target boundary.

[0105] Furthermore, the camera transmits the monitored images to the server, and the server may superimpose the monitored images of more than two camera devices associated with the target area.

[0106] Step 506: The camera device performs target detection on the target in the monitoring image of the target area and / or the target boundary. When an abnormality is detected, the camera device triggers an alarm, or triggers an alarm to the server side.

[0107] This embodiment can configure the target area and / or target boundary of the camera device based on the map associated with the camera device through the interaction between the client and the server, thereby improving the flexibility of monitoring and helping to reduce the operating cost of system monitoring.

[0108] See also Figure 7 As shown, Figure 7 This is a schematic diagram of the smart home system of the present application. In the smart home system, a mobile robot and at least one camera device are included, wherein the mobile robot may be a sweeping robot, the mobile robot is used to construct a map and perform position calibration of the camera device, the camera device includes a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of the target area monitoring method described in the embodiment.

[0109] See also Figure 8 As shown, Figure 8 This is a schematic diagram of the monitoring system of the present application. The monitoring system includes a server, a client, and at least one camera device, the monitoring system also includes a mobile robot for building a map and performing position and posture calibration of the camera device, the camera device includes a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of the target area monitoring method described in Example 2.

[0110] In the above embodiments, the camera device and the movable cleaning robot can communicate via a local area network / Internet / Bluetooth and the like, and exchange information via a certain protocol.

[0111] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0112] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0113] An embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned target area monitoring method are implemented.

[0114] As for the apparatus / network-side device / storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0115] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for monitoring a target area, characterized in that: The method comprises, at a camera device for monitoring, Obtain the position and posture calibration information of the camera device, According to the location information of the target area in the map associated with the calibration information, based on the internal parameters of the camera device and the calibration information, determine the pixel position in the image captured by the camera device mapped with the location information of the target area, Determine the target area in the acquired image according to the pixel position, and monitor the target area in the acquired image, wherein: The calibration information is calibrated based on the image frame of the mobile robot captured by the camera device and the position of the mobile robot in the image frame obtained by interacting with the mobile robot. The location information of the map target area associated with the calibration information is determined by the client according to the map information from the mobile robot, wherein the map associated with the calibration information is obtained in the following manner: The camera device sends the calibration information to the mobile robot, so that the mobile robot determines the associated map according to the calibration information; the camera device receives the associated map from the mobile robot and stores it in the main body; or, The camera device requests a map from the mobile robot, receives the map fed back by the mobile robot, determines the associated map according to the calibration information, and saves the associated map in the main body; or, The location information of the map target area associated with the calibration information is determined by the client according to the map information queried from the server, and is sent by the server according to the identification of the camera device, wherein the map associated with the calibration information is determined by the client according to the calibration information of the selected camera device; The map is constructed by a mobile robot, The location information of the map target area is determined based on the map constructed by the mobile robot; The step of determining a target area in the acquired image according to pixel positions and monitoring the target area in the acquired image comprises: Use target detection to extract the pixel part belonging to the target and determine whether the target posture is walking upright or crawling. If the object is walking upright, track all pixels belonging to the feet; if the object is crawling, track all pixels belonging to the limbs; It is determined whether the pixel distance between all tracked pixels and the target boundary of the target area is less than a set second threshold value. If the minimum pixel distance is less than the second threshold value, an alarm message is triggered.

2. The method according to claim 1, characterized in that The method of calibrating the position of the mobile robot in the image frames of the mobile robot captured by the camera device and the image frames obtained by interacting with the mobile robot includes: capturing at least 4 image frames of the mobile robot at different positions, at least three of the positions being not collinear, Interact with the mobile robot to obtain the position information of the mobile robot in the image frame, Solve the homography matrix according to the acquired position information and the pixel position of the center of the mobile robot in the image frame; Determine the calibration information based on the homography matrix.

3. The method according to claim 2, characterized in that The capturing of at least 4 image frames of the mobile robot at different positions and interacting with the mobile robot to obtain position information of the mobile robot in the image frames include: The camera device detects that the captured image includes the mobile robot, requests the mobile robot for current position information of the mobile robot, and captures the current image frame when receiving the position information fed back by the mobile robot; Track the movement of the mobile robot, receive the current position information sent when the distance moved by the mobile robot is greater than the set threshold, capture the current image frame, Repeating the steps of tracking the movement of the mobile robot, receiving the current position information sent when the distance moved by the mobile robot is greater than a set threshold, and capturing the current image frame until at least 4 image frames and the position of the mobile robot in the image frames are obtained; wherein the current position information is determined by the mobile robot according to the map; The method of solving the homography matrix according to the acquired position information and the pixel position of the center of the mobile robot in the image frame includes: According to the relationship that the product of the homography matrix and the position coordinate matrix corresponds to the pixel coordinate matrix, the homography matrix is ​​solved, where the homography matrix is ​​a 3×3 matrix; Determining the calibration information according to the homography matrix includes: Perform singular value decomposition on the homography matrix to obtain a rotation matrix and a translation vector, wherein the rotation matrix is ​​the posture of the camera device, and the translation vector is the three-dimensional space position of the camera device.

4. The method according to claim 3, characterized in that The location information of the target area includes at least three non-collinear location information based on map settings. The method of determining the pixel position in the image captured by the camera device mapped with the position information of the target area in the map based on the internal parameters of the camera device and the calibration information includes: Multiplying the intrinsic parameter matrix of the camera device by the product of the rotation matrix in the calibration information and the homogeneous coordinate matrix of any position information of the target area and the translation matrix in the calibration information to obtain the pixel coordinates mapped to the position; Determining the target area in the captured image according to the pixel positions includes taking the area within a closed curve formed by sequentially connecting the coordinates of each pixel as the target area in the captured image.

5. The method according to claim 4, characterized in that The location information of the target area includes the starting point and the ending point of the boundary line between the areas set based on the map. Determining the target area in the captured image according to the pixel position includes taking a line connecting the pixel coordinates of the starting point and the pixel coordinates of the ending point as a boundary of the target in the captured image.

6. The method according to claim 1, characterized in that The mobile robot is a sweeping robot, The method further includes the camera device sending the result of monitoring the target area in the captured image to the user terminal or outputting voice information through the mobile robot.

7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of the position and posture calibration information of the camera device includes reading the calibration information from the camera device body.

8. The method according to any one of claims 1 to 5, characterized in that: The number of the camera devices is n, where n is a natural number greater than 1, and the calibration information, identification, and associated map of each camera device are stored in the server. The obtaining of the position and posture calibration information of the camera device comprises: receiving calibration information of the camera device sent from the server, Among them, the selection of camera devices includes: The client sends a query request to the server, and the server feeds back a query request result to the client, wherein the query request result includes at least one of a camera device associated with the map, calibration information of the camera device, and an identifier of the camera device. Selecting at least one camera device according to the query request result; The method further includes each camera transmitting a monitored image to a server, so that the server superimposes the monitored images of more than two cameras associated with the target area.

9. A monitoring system, comprising a server, a client, and at least one camera device, characterized in that: The monitoring system also includes a mobile robot for constructing a map and performing position calibration of a camera device, wherein the camera device includes a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of a monitoring method for a target area as described in any one of claims 1 to 8.

10. A smart home system, comprising a mobile robot and at least one camera device, characterized in that: The mobile robot is used to construct a map and perform position calibration of a camera device, the camera device includes a memory and a processor, the memory is used to store a computer program, and the processor executes the computer program to implement the steps of a monitoring method for a target area as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the target area monitoring method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Violation display monitoring method based on video geofence

    CN110166744A

  • Calibration method and device for camera device and calibration equipment

    CN110910459A