Monitoring image playing method
By determining the best terminal equipment for monitoring image playback in real time, the problem of poor flexibility in monitoring image transmission is solved, and the security of the first object to timely view outdoor conditions is improved.
Patent Information
- Application Number
- CN202311569563.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the transmission flexibility of monitoring images is poor, and it is impossible to provide alarm information and real-time detection capabilities in a timely and effective manner.
Video is collected by the first monitoring device, the position of the first object is determined, and based on the position of the first object, the target travel route and the position of the terminal device, the best terminal device for playing the second video is determined in real time.
The flexibility of sending the second video is improved, allowing the first object to view the outdoor situation through the second video in a timely manner, enhancing security.
Smart Images

Figure CN120034617A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to a monitoring image playing method. Background Art
[0002] Nowadays, security has become an important concern in people's daily life and work. In particular, people living in cities or public residential areas are more likely to face various security risks, such as intrusion, theft, etc. Traditional security measures usually install equipment such as alarms or cameras in a certain area, but alarms or cameras often cannot provide timely and effective warning information and real-time detection capabilities.
[0003] In the related art, user images are usually collected through an electronic peephole, and the collected user images are sent to a terminal device bound to the electronic peephole. The received user images are played through the terminal device, so that the user of the terminal device can identify the user's identity through the user image.
[0004] However, in the above-mentioned related technologies, the collected user images are sent to a fixed terminal device for playback, which results in poor flexibility in sending images. Summary of the invention
[0005] In view of the problems existing in the prior art, an embodiment of the present invention provides a monitoring image playback method.
[0006] The present invention provides a monitoring image playback method, which is applied to a first monitoring device, and the method comprises:
[0007] Collect the first video;
[0008] Upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video;
[0009] A first target terminal device is determined based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0010] According to a monitoring image playback method provided by the present invention, the method further includes:
[0011] Determine the location of each of the terminal devices based on the first video;
[0012] An electronic map is determined based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device; the electronic map is used to determine a travel route.
[0013] According to a monitoring image playback method provided by the present invention, determining a first target terminal device based on the position of the first object, a target travel route from the first object to the second monitoring device, and the position of at least one terminal device includes:
[0014] For each of the terminal devices, based on the position of the terminal device and the position of the second monitoring device, determine a first distance between the terminal device and the second monitoring device, and based on the position of the first object and the position of the terminal device, determine a target distance corresponding to the terminal device and the first object;
[0015] Determine at least one route from the first object to the second monitoring device based on the electronic map; the route includes at least one terminal device;
[0016] Based on the first distance and the target distance, determining the target travel route with the shortest route among the at least one travel route;
[0017] A terminal device on the target travel route is determined as the first target terminal device.
[0018] According to a monitoring image playback method provided by the present invention, the method further includes:
[0019] Upon receiving feedback information sent by the first target terminal device, a third target terminal device on the second shortest travel route is obtained; the feedback information is used to indicate that no response triggered by the first object has been received; the third target terminal device is used to receive and play the second video.
[0020] According to a monitoring image playback method provided by the present invention, determining a target distance between the terminal device and the first object based on the position of the first object and the position of the terminal device includes:
[0021] Determine a second distance between the terminal device and the first object based on the position of the first object and the position of the terminal device;
[0022] The target distance between the terminal device and the first object is determined based on the first distance, the second distance, a first proportional coefficient corresponding to the first monitoring area of the first monitoring device, and a second proportional coefficient corresponding to the first object.
[0023] According to a monitoring image playback method provided by the present invention, the first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device;
[0024] After determining the first target terminal device based on the position of the first object, the target travel route from the first object to the second monitoring device, and the position of at least one terminal device, the method further includes:
[0025] When the first monitoring sub-device detects that the first object disappears and determines that the second monitoring device does not detect the first object, determining whether there is a second monitoring sub-device that detects that the first object disappears;
[0026] When it is determined that the second monitoring sub-device detects the disappearance of the first object, a control instruction is sent to the second monitoring sub-device; the control instruction is used to instruct the second monitoring sub-device to determine the disappearance position of the first object in the second monitoring area of the second monitoring sub-device, and determine the second target terminal device in the second monitoring area that is closest to the disappearance position; the second target terminal device is used to receive and play the second video.
[0027] According to a monitoring image playback method provided by the present invention, the electronic map is determined based on the position of each of the terminal devices, the position of the first object and the position of the second monitoring device, including:
[0028] Determining an initial electronic map based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device;
[0029] Acquire all terminal devices that are in the same network as the first monitoring device and are currently running;
[0030] In the case that there are different terminal devices among all the terminal devices currently in operation compared with all the terminal devices acquired last time, the initial electronic map is updated based on the difference types of the different terminal devices to obtain the electronic map.
[0031] According to a monitoring image playback method provided by the present invention, the updating of the initial electronic map based on the difference type of the difference terminal device to obtain the electronic map includes:
[0032] In a case where the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is a second monitoring sub-device in the second monitoring area, each terminal device in the second monitoring area is moved from a first device list corresponding to the second monitoring area to a second device list corresponding to the unclassified area, and the initial electronic map is updated based on the updated first device list and the updated second device list to obtain the electronic map;
[0033] When the difference type includes that the difference terminal device is a missing terminal device and the missing terminal device is not a monitoring device, the missing terminal device is deleted from a third device list including the missing terminal device, and the initial electronic map is updated based on the updated third device list to obtain the electronic map.
[0034] According to a monitoring image playback method provided by the present invention, the updating of the initial electronic map based on the difference type of the difference terminal device to obtain the electronic map includes:
[0035] When the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is not a second monitoring sub-device in the second monitoring area, determining whether the newly added terminal device is in a target monitoring area based on a location of the newly added terminal device; the target monitoring area includes the first monitoring area or the second monitoring area;
[0036] When it is determined that the newly added terminal device is in the target monitoring area, the newly added terminal device is added to a device list corresponding to the target monitoring area, and the initial electronic map is updated based on the added device list to obtain the electronic map;
[0037] When it is determined that the newly added terminal device is not in the target monitoring area, the newly added terminal device is added to the second device list corresponding to the unclassified area, and the initial electronic map is updated based on the added second device list to obtain the electronic map.
[0038] According to a monitoring image playback method provided by the present invention, the method further includes:
[0039] In a case where the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is a second monitoring sub-device in the second monitoring area, determining a third proportional coefficient corresponding to the second monitoring area based on a distance between the second monitoring sub-device and the second monitoring device; the third proportional coefficient is used to determine a distance between the first object and the terminal device in the second monitoring area;
[0040] The terminal devices in the second monitoring area included in the second device list are moved to the first device list, and the initial electronic map is updated based on the moved second device list and the moved first device list to obtain the electronic map.
[0041] The present invention also provides a monitoring image playback device, comprising:
[0042] A collection unit, used for collecting a first video;
[0043] A first determining unit, configured to determine a position of a first object based on the first video when receiving prompt information sent by a second monitoring device;
[0044] The second determination unit is used to determine a first target terminal device based on the position of the first object, the target route of the first object walking to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0045] The present invention also provides a monitoring device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the monitoring image playback methods described above is implemented.
[0046] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the monitoring image playback method described in any one of the above is implemented.
[0047] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the monitoring image playback method described above is implemented.
[0048] The monitoring image playback method provided by the present invention is that when the first monitoring device receives the prompt information sent by the second monitoring device, it determines the position of the first object based on the collected first video, and determines the first target terminal device based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, and receives and plays the second video collected by the second monitoring device through the first target terminal device. The present invention determines the best terminal device for playing the second video in real time based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, thereby improving the flexibility of sending the second video, allowing the first object to view the outdoor situation through the second video in a timely manner, thereby improving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is an example diagram of an environment provided by an embodiment of the present invention;
[0051] Figure 2is a schematic diagram of a three-point positioning technology provided by an embodiment of the present invention;
[0052] Figure 3 This is one of the flow charts of the monitoring image playback method provided by an embodiment of the present invention;
[0053] Figure 4 This is a second flow chart of the monitoring image playback method provided by an embodiment of the present invention;
[0054] Figure 5 This is a third flow chart of the monitoring image playback method provided by an embodiment of the present invention;
[0055] Figure 6 This is a fourth flow chart of the monitoring image playback method provided by an embodiment of the present invention;
[0056] Figure 7 This is a fifth flow chart of the monitoring image playback method provided by an embodiment of the present invention;
[0057] Figure 8 This is a sixth flow chart of the monitoring image playback method provided by an embodiment of the present invention;
[0058] Fig. 9 is a schematic diagram of the structure of a monitoring image playback device provided by an embodiment of the present invention;
[0059] Fig.10 It is a schematic diagram of the physical structure of the monitoring device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Figure 1 is an example diagram of an environment provided by an embodiment of the present invention, such as Figure 1As shown, taking the example of a first monitoring device including a first monitoring sub-device and at least one second monitoring sub-device, the first monitoring area of the first monitoring sub-device 101 is represented by 1011, the monitoring area of the second monitoring device 102 is represented by 1021, and the second monitoring area of the second monitoring sub-device 103 is represented by 1031. Area 104, area 105 and area 106 are all areas that cannot be monitored, wherein the first monitoring sub-device 101 can be a main monitoring device, the second monitoring device 102 can be a monitoring device installed on the entrance door, and the second monitoring sub-device 103 can be a slave monitoring device.
[0062] Figure 2 is a schematic diagram of a three-point positioning technology provided by an embodiment of the present invention, such as Figure 2 As shown, the first monitoring device 201 captures a picture to establish a plane coordinate system, and the coordinate position A of the first monitoring device 201 is used as the origin A (0, 0) of the plane coordinate system, and the routing device 202 is used as a fixed point. The first monitoring device 201 captures and identifies the routing device 202, and the distance and direction between the routing device 202 and the first monitoring device 201 can be obtained, and the coordinate position B (x b ,y b ), and then the first monitoring device 201 captures and identifies the terminal device used by the user, so as to obtain the distance and direction between the terminal device used by the user and the first monitoring device 201, and obtain the coordinate position of the terminal device. Then the coordinate position A of the first monitoring device 201, the coordinate position B of the routing device 202, and the coordinate position of the terminal device are all sent to the second monitoring device 203, and the second monitoring device 203 respectively obtains the signal strength of the first monitoring device 201 with the hotspot turned on, the signal strength of the routing device 202, and the signal strength of the terminal device with the hotspot turned on, and corresponds the signal strength of the first monitoring device 201 to the coordinate position A of the first monitoring device, the signal strength of the routing device 202 to the coordinate position B of the routing device 202, and the signal strength of the terminal device to the coordinate position of the terminal device. Finally, based on the correspondence between the signal strength of the first monitoring device 201 and the coordinate position A of the first monitoring device, the correspondence between the signal strength of the routing device 202 and the coordinate position B of the routing device 202, and the correspondence between the signal strength of the terminal device and the coordinate position of the terminal device, the coordinate position C (x) of the second monitoring device 203 is determined. c ,y c ), and sends the coordinate position of the second monitoring device 203 to the first monitoring device 201, thereby completing the establishment of the three key points of the first monitoring device 201, the routing device 202 and the second monitoring device 203.
[0063] It should be noted that the first monitoring device 202 obtains the distance and direction between the terminal device used by the user and the first monitoring device 201, obtains the coordinate position of the terminal device, and obtains the distance and direction between the routing device 202 and the first monitoring device 201. The specific implementation of obtaining the coordinate position of the routing device 202 can refer to the relevant technology, and the present invention will not go into details here.
[0064] It should be noted that, based on the correspondence between the signal strength of the first monitoring device 201 and the coordinate position A of the first monitoring device, the correspondence between the signal strength of the routing device 202 and the coordinate position B of the routing device 202, and the correspondence between the signal strength of the terminal device and the coordinate position of the terminal device, the specific implementation of determining the coordinate position of the second monitoring device 203 can refer to the relevant technology, and the present invention will not go into details here.
[0065] It should be noted that before establishing the above three key points, it is necessary to execute the initialization logic, that is, to complete the registration of the first monitoring device and the second monitoring device on the terminal device under the same network so that the first monitoring device and the second monitoring device can communicate with each other.
[0066] Combine the following Figure 3-Figure 8 The monitoring image playing method of the present invention is described.
[0067] Figure 3 is one of the flow charts of the monitoring image playback method provided by an embodiment of the present invention, which is applied to a first monitoring device, such as Figure 3 As shown, the monitoring image playback method includes the following steps:
[0068] Step 301: Capture a first video.
[0069] For example, the first monitoring device collects a first video corresponding to the monitoring area in real time.
[0070] Step 302: upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video.
[0071] Among them, the prompt information is triggered when the second monitoring device captures a second video including the second object, or when the second object presses the doorbell on the second monitoring device; the first object may be the owner who needs to be monitored; the second object may be a person passing through the monitoring range of the second monitoring device, and the second monitoring device may be an electronic cat's eye with a camera function or an electronic lock with a camera function, etc., which has human recognition and network push functions, and the second monitoring device is installed on the entrance door of a residence or the main door of an office.
[0072] For example, the second monitoring device detects in real time whether there is a second object within the monitoring range. When it is determined that there is a second object within the monitoring range, or when it is determined that the second object presses the doorbell on the second monitoring device, a prompt message is sent to the first monitoring device. The prompt message indicates that the monitoring image collected by the second monitoring device includes the second object, so that when the first monitoring device receives the prompt message, it detects each frame image in the first video to determine whether the first video includes the first object. When it is determined that the first video includes the first object, it searches for the personnel information corresponding to the first object in the preset personnel list, and determines the distance between the first object in the first video and the first monitoring device. Based on the coordinate position of the first monitoring device and the distance between the first object and the first monitoring device, the position of the first object in the first video can be determined.
[0073] Step 303: determine a first target terminal device based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0074] The terminal device may be a TV, a computer, a tablet, a refrigerator with a display device, a range hood with a display device, a washing machine with a display device, etc. These devices all have a communication module and can support the installation of application programs.
[0075] For example, generally speaking, after the second object presses the doorbell of the second monitoring device, the first object will walk to the door where the second monitoring device is installed to greet the second object. Therefore, while considering selecting the terminal device closest to the first object to play the second video, it is necessary to avoid the first object's round-trip movement in the process of walking to the door as much as possible (that is, the route from the first object to the terminal device that plays the second video is not in line with the shortest route from the first object to the door). Therefore, the present invention needs to jointly determine the best first target terminal device for playing the second video based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device. Specifically, the method of the first monitoring device determining the routing device can be used to determine the locations of all terminal devices, and then the best first target terminal device can be determined based on the location of the first object, the location of each terminal device, and the target route of the first object walking to the second monitoring device. At this time, the first monitoring device sends the identification information of the first target terminal device to the second monitoring device, so that when the second monitoring device receives the identification information of the first target terminal device, it sends the second video to the first target terminal device, and the first target terminal device plays the second video when it receives the second video sent by the first monitoring device, so that the first object can view the second video in time, and determine the identity of the second object based on the facial information and behavior information of the second object in the second video. When it is determined that the identity of the second object is illegal, corresponding measures can be taken in time for emergency processing.
[0076] It should be noted that the prompt information may also include a second video, so that when the first monitoring device determines the first target terminal device, it directly sends the second video to the first target terminal device without sending the second video to the first target terminal device through the second monitoring device. The present invention is not limited to this.
[0077] It should be noted that the second monitoring device can also detect the behavior information of the second object in real time. When it is determined that the second object has an abnormality based on the behavior information of the second object, an alarm message can be sent to the first target terminal device, so that the first object can promptly be informed of the abnormal second object. This real-time detection and tracking capability will greatly enhance the security protection capability and protect the life and property safety of users.
[0078] It should be noted that the first monitoring device can be a panoramic camera, or the first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device. The first monitoring sub-device and each second monitoring sub-device have human recognition and network push functions. The first monitoring sub-device can be a main network camera (IP Camera, IPC), and each second monitoring sub-device can be a slave IPC. The first monitoring sub-device and each second monitoring sub-device communicate with each other to determine the first target terminal device based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device. The present invention is not limited to this.
[0079] The monitoring image playback method provided by the present invention is that when the first monitoring device receives the prompt information sent by the second monitoring device, it determines the position of the first object based on the collected first video, and determines the first target terminal device based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, and receives and plays the second video collected by the second monitoring device through the first target terminal device. The present invention determines the best terminal device for playing the second video in real time based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, thereby improving the flexibility of sending the second video, allowing the first object to view the outdoor situation through the second video in a timely manner, improving safety, and allowing people to obtain more comprehensive, convenient and intelligent security protection, and improving the safety and comfort of living and working environments.
[0080] In one embodiment, before the above step 301, the monitoring image playback method further includes the following steps:
[0081] The location of each of the terminal devices is determined based on the first video; an electronic map is determined based on the location of each of the terminal devices, the location of the first object and the location of the second monitoring device; and the electronic map is used to determine a travel route.
[0082] For example, regardless of whether the terminal device is a fixed terminal device (for example, a refrigerator or a television, etc.) or a mobile terminal device (for example, a mobile phone), the above-mentioned method of determining the routing device by the first monitoring device can be adopted to determine the positions of all terminal devices and the position of the first object based on the first video, and then construct an electronic map in real time based on the position of the first object, the position of each terminal device and the predetermined position of the second monitoring device. The user's route can then be determined based on the current position of the first object, the current position of each terminal device and the position of the second monitoring device in the electronic map.
[0083] In this embodiment, the position of each terminal device and the position of the first object can be determined based on the first video, and the electronic map can be determined in real time based on the position of each terminal device, the position of the first object and the position of the second monitoring device, so as to facilitate the subsequent determination of the user's route based on the electronic map and improve the accuracy of determining the route.
[0084] In one embodiment, the above step 303 determines the first target terminal device based on the position of the first object, the target travel route from the first object to the second monitoring device, and the position of at least one terminal device, which can be specifically implemented by the following steps:
[0085] For each of the terminal devices, based on the position of the terminal device and the position of the second monitoring device, a first distance between the terminal device and the second monitoring device is determined, and based on the position of the first object and the position of the terminal device, a target distance corresponding to the terminal device and the first object is determined; based on the electronic map, at least one route for the first object to walk to the second monitoring device is determined; the route includes at least one terminal device; based on the first distance and the target distance, the target route with the shortest route is determined among the at least one route; and the terminal device on the target route is determined as the first target terminal device.
[0086] For example, for each terminal device, the first distance between the terminal device and the second monitoring device can be determined based on the position of the terminal device and the position of the second monitoring device, and the target distance corresponding to the terminal device and the first object can be determined based on the position of the first object and the position of the terminal device, thereby obtaining the first distance between each terminal device and the second monitoring device and the target distance corresponding to the first object; further, based on the electronic map constructed in real time, all routes that may pass by the terminal device when the first object walks to the second monitoring device are determined, and the terminal devices in all the routes are stored in the order of the routes from short to long in a push list, and based on each first distance and each target distance, the target route with the shortest route is screened out from all the routes, and finally the terminal device on the target route is determined as the best first target terminal device for playing the second video. For example, after the doorbell of the second monitoring device is triggered, the user has just walked from the bedroom to the living room. If the mobile phone in the bedroom is the terminal device closest to the user, but the user has already come to the living room, if the second video is played through the mobile phone in the bedroom, the user needs to return from the living room to the bedroom to watch the second video, and then walk from the bedroom to the door. Therefore, in order to avoid the user's return, the first target terminal device finally determined should be the TV in the living room. In this way, the user can watch the second video on TV in the living room and then walk to the door, so that the user's walking route to the door is the shortest route.
[0087] In this embodiment, based on the first distance between the terminal device and the second monitoring device and the target distance corresponding to the first object and the terminal device, a target travel route with the shortest route is determined in at least one travel route to avoid the user turning back when walking to the door, so that the determined travel route is more in line with user habits.
[0088] In one embodiment, after the above step 303, the monitoring image playback method further includes the following steps:
[0089] Upon receiving feedback information sent by the first target terminal device, a third target terminal device on the second shortest travel route is obtained; the feedback information is used to indicate that no response triggered by the first object has been received; the third target terminal device is used to receive and play the second video.
[0090] For example, after playing the second video, if the first target terminal device does not receive a viewed response from the first object within a preset time period, it sends feedback information to the first monitoring device to indicate that a viewed response triggered by the first object has not been received. When the first monitoring device receives the feedback information, it determines that the first object may not have viewed the second video due to being busy or other reasons. At this time, the second terminal device is obtained from the previously determined push list, that is, the terminal device on the second shortest route is determined as the third target terminal device. The first monitoring device sends the identification information of the third target terminal device to the second monitoring device, so that the second monitoring device sends the second video to the third target terminal device when receiving the identification information of the third target device. When the third target terminal device receives the second video, it plays the second video, so that the first object can view the second video through the third target terminal device on the second shortest route, ensuring that the first object can view the second video in real time.
[0091] In this embodiment, when feedback information sent by the first target terminal device is received, the second video is sent to the third target terminal device on the second shortest travel route, ensuring that the first object can view the second video in real time, further promptly determine the identity of the second object, and improve safety.
[0092] In one embodiment, the determining of the target distance between the terminal device and the first object based on the position of the first object and the position of the terminal device may be implemented in the following manner:
[0093] Based on the position of the first object and the position of the terminal device, determine the second distance between the terminal device and the first object; based on the first distance, the second distance, the first proportional coefficient corresponding to the first monitoring area of the first monitoring device and the second proportional coefficient corresponding to the first object, determine the target distance between the terminal device and the first object.
[0094] Among them, the first proportional coefficient is a preset coefficient set for the first monitoring area, and the second proportional coefficient is a preset coefficient set for the personal information of all people in the home. For example, all people in the home include the husband, the wife and the children, then the second proportional coefficient can be set for the husband, the wife and the children respectively. The specific values of the first proportional coefficient and the second proportional coefficient can be set based on demand, and the present invention is not limited to this.
[0095] For example, when calculating the distance, whether the first object is the owner and the calculation error of the monitoring area are taken into consideration, so the target distance corresponding to the first object and each terminal device can also be understood as the distance between the first object and the terminal device determined by the following formula (1).
[0096] Load = Hi * (S device - second monitoring device + Pi * S device - first object) (1)
[0097] In the above formula (1), the proportional coefficient Hi of the spatial area is prioritized. Secondly, in order to push the second video to the terminal device closest to the second monitoring device and achieve a fast push response, the distance factor between the S device and the second monitoring device is added. Under this factor, considering that the distance from the S device to the second monitoring device is relatively important, this factor is not multiplied by the proportional coefficient and is calculated based on the actual distance.
[0098] Among them, Load represents the target distance corresponding to the first object and the terminal device, Hi represents the first proportional coefficient, Pi represents the second proportional coefficient, S device-second monitoring device represents the first distance between the terminal device and the second monitoring device, and S device-first object represents the second distance between the terminal device and the first object.
[0099] Generally speaking, the host will go to the door to greet the guests. Therefore, while considering choosing the terminal device closest to the host to play the second video, it is necessary to avoid the host's return movement as much as possible (that is, the route from the host to the terminal device playing the second video is not in line with the shortest route from the host to the door). Compared with the existing technology, this embodiment is more in line with people's living habits.
[0100] It should be noted that, when the first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device, the first monitoring sub-device is a master device and each second monitoring sub-device is a slave device. Therefore, the priority of the first monitoring area of the first monitoring sub-device is higher than the priority of each second monitoring sub-device, that is, the first proportional coefficient of the first monitoring area is greater than the third proportional coefficient of each second monitoring area; in addition, the priority of each second monitoring area can also be divided, and the third proportional coefficient of each second monitoring area can be determined based on the priority of each second monitoring area.
[0101] In this embodiment, the target distance between the first object and the terminal device is calculated in combination with the scale coefficient of the monitoring area, the scale coefficient of the object, and the distance between the terminal device and the second monitoring device, so that the determined target distance is more accurate, thereby achieving a fast push response of the second video.
[0102] In one embodiment, Figure 4 FIG. 3 is a flow chart of the monitoring image playback method provided by an embodiment of the present invention. Figure 4 As shown, before step 301, the monitoring image playback method further includes the following steps:
[0103] Step 401: Determine an initial electronic map based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device.
[0104] Step 402: Acquire all terminal devices that are in the same network as the first monitoring device and are currently running.
[0105] For example, considering that the terminal device may be offline or malfunction, and it cannot be determined based on the first video alone, the first monitoring device needs to further obtain all terminal devices that are in the same local area network as itself and are currently running.
[0106] Step 403: When there are different terminal devices between all the terminal devices currently in operation and all the terminal devices acquired last time, the initial electronic map is updated based on the difference types of the different terminal devices to obtain the electronic map.
[0107] For example, the IP addresses of all currently running terminal devices are compared with the IP addresses of all terminal devices acquired last time, and the terminal devices that are different from all terminal devices acquired last time among all currently running terminal devices are determined, which are called difference terminal devices, and then the initial electronic map is updated based on the difference types of the difference terminal devices, that is, the terminal devices that have been offline or faulty included in the initial electronic map are deleted to obtain the electronic map. Among them, the difference type includes that the difference terminal device is a missing terminal device or the difference terminal device is a newly added terminal device. For example, all terminal devices acquired last time include terminal device 1, terminal device 2 and terminal device 3, and all terminal devices acquired currently include terminal device 1, terminal device 3 and terminal device 4, then terminal device 2 is determined to be a missing terminal device, and terminal device 4 is a newly added terminal device.
[0108] In this embodiment, the initial electronic map is updated based on the difference type of the determined difference terminal devices, so as to prevent the terminal device that needs to receive the second video from being a terminal device that is not currently running based on the initial electronic map, thereby improving the accuracy of sending the second video.
[0109] In one embodiment, the first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device. Figure 5 FIG. 2 is a flow chart of the monitoring image playback method provided by an embodiment of the present invention. Figure 5 As shown, after step 303, the monitoring image playback method further includes the following steps:
[0110] Step 304: When the first monitoring sub-device detects that the first object disappears and it is determined that the second monitoring device does not detect the first object, determine whether there is a second monitoring sub-device that detects that the first object disappears.
[0111] Among them, the second monitoring sub-device can be a slave IPC, and the second monitoring sub-device needs to have human recognition and network push functions.
[0112] For example, the first monitoring sub-device detects the first object in real time, and when it is determined that the first object has walked out of the first monitoring area of the first monitoring sub-device, the first monitoring sub-device determines that the first object has disappeared; at the same time, the second monitoring device also detects the first object in real time, and when it is determined that the first object has not been detected, no notification information is sent to the first monitoring sub-device, and when the first object is detected, notification information is sent to the first monitoring sub-device. Therefore, when the first monitoring sub-device does not receive the notification information sent by the second monitoring device, it determines that the second monitoring device has not detected the first object, that is, it determines that the second monitoring device has not detected a person leaving the house, and the first monitoring sub-device needs to determine whether there is a second monitoring sub-device that detects the disappearance of the first object. The second monitoring sub-device detects the first object in real time, and when it detects that the first object enters the second monitoring area of the second monitoring sub-device and disappears from the second monitoring area of the second monitoring sub-device, it sends a message of the disappearance of the first object to the first monitoring sub-device, so that when the first monitoring sub-device receives the message, it determines that there is a second monitoring sub-device that detects the disappearance of the first object.
[0113] It should be noted that, when the first monitoring sub-device detects that the first object disappears and determines that the second monitoring device has not detected the first object, a monitoring instruction can also be sent to each second monitoring sub-device, so that each second monitoring sub-device detects the first object in real time. If a second monitoring sub-device detects that the first object enters the second monitoring area and disappears from the second monitoring area, the second monitoring sub-device determines the disappearance position of the first object in the second monitoring area, and determines the second target terminal device in the second monitoring area that is closest to the disappearance position. The second monitoring sub-device sends an image request to the first monitoring sub-device; when the first monitoring sub-device receives the image request, it sends the second video to the second monitoring sub-device, so that the second monitoring sub-device sends the second video to the second target terminal device, and the second target terminal device plays the second video when it receives it, so that the first object closest to the second target terminal device can view the second video in time. The present invention is not limited to this.
[0114] Step 305: When it is determined that the second monitoring sub-device detects the disappearance of the first object, a control instruction is sent to the second monitoring sub-device; the control instruction is used to instruct the second monitoring sub-device to determine the disappearance position of the first object in the second monitoring area of the second monitoring sub-device, and determine the second target terminal device in the second monitoring area that is closest to the disappearance position; the second target terminal device is used to receive and play the second video.
[0115] For example, when the first monitoring sub-device determines that there is a second monitoring sub-device that detects the disappearance of the first object, it sends a control instruction to the second monitoring sub-device. When the second monitoring sub-device receives the control instruction, it determines the position where the first object walks out of the second monitoring area, and determines the position where the first object walks out of the second monitoring area as the disappearance position of the first object in the second monitoring area, and then determines the second target terminal device in the second monitoring area that is closest to the disappearance position, and sends the second video to the second target terminal device. The second target terminal device plays the second video when it receives it, so that the first object closest to the second target terminal device can view the second video in time. For example, Figure 1 As shown, the first subject first watches TV in the first monitoring area, and then walks into area 104 through the second monitoring area. Area 104 is an area that the second monitoring sub-device corresponding to the second monitoring area cannot capture, so it can be determined Figure 1 If the dotted line position 107 in the image is the disappearing position, the second target terminal device closest to the dotted line position 107 is determined in the second monitoring area through which the first object passes, and the second video is sent to the second target terminal device, so that the first object in area 104 can view the second video through the nearest second target terminal device.
[0116] It should be noted that when the first monitoring sub-device detects that a human figure disappears, and the second monitoring device does not detect that a human figure leaves the house, it is determined whether the second monitoring sub-device detects that a human figure appears and disappears. If the second monitoring sub-device only detects that a human figure appears, but does not detect that a human figure disappears, then there is no disappearance position in the second monitoring area of the second monitoring sub-device; if the second monitoring sub-device detects that a human figure appears and disappears, it is determined that there is a disappearance position in the second monitoring area. This situation occurs when the first object enters an area that cannot be monitored by the first monitoring area and the second monitoring area. When the first object is in the first monitoring area or the second monitoring area again, the disappearance position does not exist.
[0117] In this embodiment, when the first monitoring sub-device detects that the first object disappears and determines that the second monitoring device has not detected the first object, it is determined whether there is a second monitoring sub-device that detects the disappearance of the first object. When the second monitoring sub-device detects that the first object disappears, a control instruction is sent to the second monitoring sub-device, so that the second monitoring sub-device determines the second target terminal device that is closest to the disappearance position in the second monitoring area, and sends the second video to the second target terminal device, so that the first object can view the second video through the nearest terminal device in real time.
[0118] In one embodiment, when the first object is not included in the first video and it is determined that the second monitoring device has not detected the first object, it is determined whether there is a second monitoring sub-device that detects the first object. When it is determined that there is a second monitoring sub-device that detects the first object, an instruction is sent to the second monitoring sub-device; the instruction is used to instruct the second monitoring sub-device to determine the target terminal device that is closest to the first object in the second monitoring area; the target terminal device is used to receive the second video. For example, the first monitoring area is the living room, and the second monitoring area is the master bedroom. If the first monitoring sub-device determines that there is no first object in the living room when receiving the prompt information, but detects the first object in the master bedroom, then the target terminal device closest to the first object is determined in the master bedroom; if there is no terminal device in the master bedroom, the terminal device closest to the first object in the entire room is determined, and the terminal device closest to the first object in the entire room is determined as the target terminal device.
[0119] In one embodiment, Figure 6 FIG. 4 is a flow chart of the monitoring image playback method provided by an embodiment of the present invention. Figure 6 As shown, in the above step 403, based on the difference types of the different terminal devices, the initial electronic map is updated to obtain the electronic map, which can be specifically implemented by the following steps:
[0120] Step 4031. When the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is a second monitoring sub-device in the second monitoring area, each terminal device in the second monitoring area is moved from a first device list corresponding to the second monitoring area to a second device list corresponding to the unclassified area, and the initial electronic map is updated based on the updated first device list and the updated second device list to obtain the electronic map.
[0121] For example, when the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is a second monitoring sub-device in the second monitoring area, that is, when the missing terminal device is determined to be a slave IPC, since the second monitoring sub-device is offline, the terminal device located in the second monitoring area cannot be determined as a device playing the second video, so each terminal device in the second monitoring area is moved from the first device list corresponding to the second monitoring area to the second device list corresponding to the unclassified area, and then the initial electronic map is updated based on the updated first device list and the updated second device list to obtain an electronic map, so that the terminal devices in the updated electronic map are all running terminal devices.
[0122] Step 4032: When the difference type includes that the difference terminal device is a missing terminal device and the missing terminal device is not a monitoring device, delete the missing terminal device from the third device list including the missing terminal device.
[0123] For example, when the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is not a monitoring device, for example, the missing terminal device is a television, and since there is no association between the television and other terminal devices in the same monitoring area as the television, it is only necessary to delete the missing terminal device from the third device list including the missing terminal device, and update the initial electronic map based on the updated third device list to obtain the electronic map, so that the terminal devices in the updated electronic map are all running terminal devices. The third device list can be the first device list corresponding to the second monitoring area, or the device list corresponding to the first monitoring area, or the second device list corresponding to the unclassified area.
[0124] In this embodiment, when the difference type includes that the difference terminal device is a missing terminal device, the terminal devices included in each device list are changed in real time, and the initial electronic map is updated based on the updated device list, so that the terminal device for playing the second video finally determined based on the updated electronic map is more accurate.
[0125] In one embodiment, Figure 7 FIG. 5 is a flowchart of a monitoring image playback method provided by an embodiment of the present invention. Figure 7 As shown, in the above step 403, based on the difference types of the different terminal devices, the initial electronic map is updated to obtain the electronic map, which can be specifically implemented by the following steps:
[0126] Step 4033: When the difference type includes that the difference terminal device is a newly added terminal device and the newly added terminal device is not a second monitoring sub-device in the second monitoring area, determine whether the newly added terminal device is in the target monitoring area based on the location of the newly added terminal device; the target monitoring area includes the first monitoring area or the second monitoring area.
[0127] For example, when the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is not the second monitoring sub-device in the second monitoring area, that is, when it is determined that the newly added terminal device is not a slave IPC in the second monitoring area, it is necessary to first determine the position of the newly added terminal device based on the distance and direction between the first monitoring sub-device and the newly added terminal device, and determine whether the newly added terminal device is in the first monitoring area or the second monitoring area based on the position of the newly added terminal device.
[0128] Step 4034: When it is determined that the newly added terminal device is in the target monitoring area, the newly added terminal device is added to the device list corresponding to the target monitoring area, and the initial electronic map is updated based on the added device list to obtain the electronic map.
[0129] For example, when it is determined that the newly added terminal device is in the first monitoring area, the newly added terminal device is added to the device list corresponding to the first monitoring area, and the initial electronic map is finally updated based on the added device list to obtain the electronic map. When it is determined that the newly added terminal device is in the second monitoring area, the newly added terminal device is added to the device list corresponding to the second monitoring area, and the initial electronic map is finally updated based on the added device list to obtain the electronic map.
[0130] Step 4035: When it is determined that the newly added terminal device is not in the target monitoring area, the newly added terminal device is added to the second device list corresponding to the unclassified area, and the initial electronic map is updated based on the added second device list to obtain the electronic map.
[0131] For example, when it is determined that the newly added terminal device is not in the first monitoring area and the second monitoring area, the newly added terminal device is added to the second device list corresponding to the unclassified area, and the initial electronic map is updated based on the added second device list to obtain the electronic map.
[0132] In this embodiment, when the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is not the second monitoring sub-device in the second monitoring area, the terminal devices included in each device list are changed in real time, and the initial electronic map is updated based on the added device list, so that the terminal device for playing the second video finally determined based on the updated electronic map is more accurate.
[0133] In one embodiment, Figure 8 FIG. 6 is a flowchart of a monitoring image playback method according to an embodiment of the present invention. Figure 8 As shown, in the above step 403, based on the difference types of the different terminal devices, the initial electronic map is updated to obtain the electronic map, which can be specifically implemented by the following steps:
[0134] Step 4036: When the difference type includes that the difference terminal device is a newly added terminal device and the newly added terminal device is a second monitoring sub-device in the second monitoring area, determine the third proportional coefficient corresponding to the second monitoring area based on the distance between the second monitoring sub-device and the second monitoring device; the third proportional coefficient is used to determine the distance between the first object and the terminal device in the second monitoring area.
[0135] For example, when the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is a second monitoring sub-device in the second monitoring area, that is, when the newly added terminal device is determined to be a slave IPC in the second monitoring area, since there can be multiple second monitoring sub-devices and the corresponding second monitoring areas can be multiple, the third proportional coefficient of the corresponding second monitoring area can be determined based on the distance between the second monitoring sub-device and the second monitoring device. The third proportional coefficient is used to determine the distance between the first object and the terminal device in the second monitoring area, and the above formula (1) can be referred to; for example, the number of second monitoring sub-devices is three, namely IPC1 installed in the master bedroom, IPC2 installed in the second bedroom, and IPC3 installed in the study. Assuming that the master bedroom is farthest from the second monitoring device and the study is closest to the second monitoring device, the third proportional coefficient of the second monitoring area corresponding to IPC1 is smaller than the third proportional coefficient of the second monitoring area corresponding to IPC2; the third proportional coefficient of the second monitoring area corresponding to IPC2 is smaller than the third proportional coefficient of the second monitoring area corresponding to IPC1.
[0136] Step 4037: Move the terminal devices in the second monitoring area included in the second device list to the first device list, and update the initial electronic map based on the moved second device list and the moved first device list to obtain the electronic map.
[0137] For example, after traversing all newly added terminal devices, it is also necessary to traverse the terminal devices in the second monitoring area included in the second device list corresponding to the unclassified area. Since the second monitoring sub-device in the second monitoring area is already running, the terminal devices in the second monitoring area included in the second device list can be moved to the first device list corresponding to the second monitoring area. Finally, the initial electronic map is updated based on the moved second device list and the moved first device list to obtain the electronic map.
[0138] In this embodiment, when the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is a second monitoring sub-device in the second monitoring area, the third proportional coefficient corresponding to the second monitoring area is determined based on the distance between the second monitoring sub-device and the second monitoring device, so that the distance subsequently determined based on the third proportional coefficient is more accurate.
[0139] The monitoring image playback device provided by the present invention is described below. The monitoring image playback device described below and the monitoring image playback method described above can be referred to each other.
[0140] Fig. 9 is a schematic diagram of the structure of a monitoring image playback device provided by an embodiment of the present invention, such as Fig. 9As shown, the monitoring image playback device 900 includes a collection unit 901, a first determination unit 902 and a second determination unit 903; wherein:
[0141] A collection unit 901 is used to collect a first video;
[0142] A first determining unit 902 is configured to determine a position of a first object based on the first video when receiving prompt information sent by a second monitoring device;
[0143] The second determination unit 903 is used to determine a first target terminal device based on the position of the first object, the target route of the first object walking to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0144] The monitoring image playback device provided by the present invention determines the position of the first object based on the first video collected when the first monitoring device receives the prompt information sent by the second monitoring device, and determines the first target terminal device based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, and receives and plays the second video collected by the second monitoring device through the first target terminal device. The present invention determines the best terminal device for playing the second video in real time based on the position of the first object, the target route from the first object to the second monitoring device, and the position of at least one terminal device, thereby improving the flexibility of sending the second video, enabling the first object to view the outdoor situation through the second video in a timely manner, and improving safety.
[0145] Based on any of the above embodiments, the monitoring image playback device 900 further includes:
[0146] A third determining unit, configured to determine a position of each of the terminal devices based on the first video;
[0147] A fourth determining unit is used to determine an electronic map based on the location of each of the terminal devices, the location of the first object and the location of the second monitoring device; the electronic map is used to determine the travel route
[0148] Based on any of the foregoing embodiments, the second determining unit 903 is specifically configured to:
[0149] For each of the terminal devices, based on the position of the terminal device and the position of the second monitoring device, determine a first distance between the terminal device and the second monitoring device, and based on the position of the first object and the position of the terminal device, determine a target distance corresponding to the terminal device and the first object;
[0150] Determine at least one route from the first object to the second monitoring device based on the electronic map; the route includes at least one terminal device;
[0151] Based on the first distance and the target distance, determining the target travel route with the shortest route among the at least one travel route;
[0152] A terminal device on the target travel route is determined as the first target terminal device.
[0153] Based on any of the above embodiments, the monitoring image playback device 900 further includes:
[0154] An acquisition unit is used to acquire a third target terminal device on the second shortest travel route when feedback information sent by the first target terminal device is received; the feedback information is used to indicate that no response triggered by the first object has been received; the third target terminal device is used to receive and play the second video.
[0155] Based on any of the foregoing embodiments, the second determining unit 903 is specifically configured to:
[0156] Determine a second distance between the terminal device and the first object based on the position of the first object and the position of the terminal device;
[0157] The target distance between the terminal device and the first object is determined based on the first distance, the second distance, a first proportional coefficient corresponding to the first monitoring area of the first monitoring device, and a second proportional coefficient corresponding to the first object.
[0158] Based on any of the above embodiments, the first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device; the monitoring image playback device 900 also includes:
[0159] a fifth determining unit, configured to determine whether there is a second monitoring sub-device detecting that the first object disappears, if the first monitoring sub-device detects that the first object disappears and determines that the second monitoring device does not detect the first object;
[0160] The first sending unit is used to send a control instruction to the second monitoring sub-device when it is determined that the second monitoring sub-device detects the disappearance of the first object; the control instruction is used to instruct the second monitoring sub-device to determine the disappearance position of the first object in the second monitoring area of the second monitoring sub-device, and determine the second target terminal device in the second monitoring area that is closest to the disappearance position; the second target terminal device is used to receive and play the second video.
[0161] Based on any of the foregoing embodiments, the fourth determining unit is specifically configured to:
[0162] Determining an initial electronic map based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device;
[0163] Acquire all terminal devices that are in the same network as the first monitoring device and are currently running;
[0164] In the case that there are different terminal devices among all the terminal devices currently in operation compared with all the terminal devices acquired last time, the initial electronic map is updated based on the difference types of the different terminal devices to obtain the electronic map.
[0165] Based on any of the foregoing embodiments, the fourth determining unit is specifically configured to:
[0166] In a case where the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is a second monitoring sub-device in the second monitoring area, each terminal device in the second monitoring area is moved from a first device list corresponding to the second monitoring area to a second device list corresponding to the unclassified area, and the initial electronic map is updated based on the updated first device list and the updated second device list to obtain the electronic map;
[0167] When the difference type includes that the difference terminal device is a missing terminal device and the missing terminal device is not a monitoring device, the missing terminal device is deleted from a third device list including the missing terminal device, and the initial electronic map is updated based on the updated third device list to obtain the electronic map.
[0168] Based on any of the foregoing embodiments, the fourth determining unit is specifically configured to:
[0169] When the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is not a second monitoring sub-device in the second monitoring area, determining whether the newly added terminal device is in a target monitoring area based on a location of the newly added terminal device; the target monitoring area includes the first monitoring area or the second monitoring area;
[0170] When it is determined that the newly added terminal device is in the target monitoring area, the newly added terminal device is added to a device list corresponding to the target monitoring area, and the initial electronic map is updated based on the added device list to obtain the electronic map;
[0171] When it is determined that the newly added terminal device is not in the target monitoring area, the newly added terminal device is added to the second device list corresponding to the unclassified area, and the initial electronic map is updated based on the added second device list to obtain the electronic map.
[0172] Based on any of the foregoing embodiments, the fourth determining unit is specifically configured to:
[0173] In a case where the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is a second monitoring sub-device in the second monitoring area, determining a third proportional coefficient corresponding to the second monitoring area based on a distance between the second monitoring sub-device and the second monitoring device; the third proportional coefficient is used to determine a distance between the first object and the terminal device in the second monitoring area;
[0174] The terminal devices in the second monitoring area included in the second device list are moved to the first device list, and the initial electronic map is updated based on the moved second device list and the moved first device list to obtain the electronic map.
[0175] Fig.10 is a schematic diagram of the physical structure of the monitoring device provided by an embodiment of the present invention, such as Fig.10 As shown, the monitoring device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the monitoring image playback method, which includes:
[0176] Collect the first video;
[0177] Upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video;
[0178] A first target terminal device is determined based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0179] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0180] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the monitoring image playback method provided by the above methods, the method includes:
[0181] Collect the first video;
[0182] Upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video;
[0183] A first target terminal device is determined based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0184] In another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the monitoring image playback method provided by the above methods is implemented, and the method includes:
[0185] Collect the first video;
[0186] Upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video;
[0187] A first target terminal device is determined based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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 some parts of the embodiments.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A monitoring image playback method, It is characterized in that Applied to a first monitoring device, the method comprises: Collect the first video; Upon receiving the prompt information sent by the second monitoring device, determining the position of the first object based on the first video; A first target terminal device is determined based on the position of the first object, the target route of the first object to the second monitoring device, and the position of at least one terminal device; the first target terminal device is used to receive and play the second video captured by the second monitoring device.
2. The monitoring image playback method according to claim 1, It is characterized in that The method further comprises: Determine the location of each of the terminal devices based on the first video; An electronic map is determined based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device; the electronic map is used to determine a travel route.
3. The monitoring image playback method according to claim 2, It is characterized in that The determining of a first target terminal device based on the position of the first object, a target travel route from the first object to the second monitoring device, and a position of at least one terminal device includes: For each of the terminal devices, based on the position of the terminal device and the position of the second monitoring device, determine a first distance between the terminal device and the second monitoring device, and based on the position of the first object and the position of the terminal device, determine a target distance corresponding to the terminal device and the first object; Determine at least one route from the first object to the second monitoring device based on the electronic map; the route includes at least one terminal device; Based on the first distance and the target distance, determining the target travel route with the shortest route among the at least one travel route; A terminal device on the target travel route is determined as the first target terminal device.
4. The monitoring image playback method according to claim 3, It is characterized in that The method further comprises: Upon receiving feedback information sent by the first target terminal device, a third target terminal device on the second shortest travel route is obtained; the feedback information is used to indicate that no response triggered by the first object has been received; the third target terminal device is used to receive and play the second video.
5. The monitoring image playback method according to claim 3, It is characterized in that The determining, based on the position of the first object and the position of the terminal device, a target distance corresponding to the terminal device and the first object includes: Determine a second distance between the terminal device and the first object based on the position of the first object and the position of the terminal device; The target distance between the terminal device and the first object is determined based on the first distance, the second distance, a first proportional coefficient corresponding to the first monitoring area of the first monitoring device, and a second proportional coefficient corresponding to the first object.
6. The monitoring image playback method according to claim 1, It is characterized in that The first monitoring device includes a first monitoring sub-device and at least one second monitoring sub-device; After determining the first target terminal device based on the position of the first object, the target travel route of the first object walking to the second monitoring device, and the position of at least one terminal device, the method further includes: When the first monitoring sub-device detects that the first object disappears and determines that the second monitoring device does not detect the first object, determining whether there is a second monitoring sub-device that detects that the first object disappears; When it is determined that the second monitoring sub-device detects the disappearance of the first object, a control instruction is sent to the second monitoring sub-device; the control instruction is used to instruct the second monitoring sub-device to determine the disappearance position of the first object in the second monitoring area of the second monitoring sub-device, and determine the second target terminal device in the second monitoring area that is closest to the disappearance position; the second target terminal device is used to receive and play the second video.
7. The monitoring image playback method according to claim 2, It is characterized in that The determining of the electronic map based on the position of each of the terminal devices, the position of the first object and the position of the second monitoring device includes: Determining an initial electronic map based on the location of each of the terminal devices, the location of the first object, and the location of the second monitoring device; Acquire all terminal devices that are in the same network as the first monitoring device and are currently running; In the case that there are different terminal devices among all the terminal devices currently in operation compared with all the terminal devices acquired last time, the initial electronic map is updated based on the difference types of the different terminal devices to obtain the electronic map.
8. The monitoring image playback method according to claim 7, It is characterized in that The updating of the initial electronic map based on the difference type of the difference terminal devices to obtain the electronic map includes: In a case where the difference type includes that the difference terminal device is a missing terminal device, and the missing terminal device is a second monitoring sub-device in the second monitoring area, each terminal device in the second monitoring area is moved from a first device list corresponding to the second monitoring area to a second device list corresponding to the unclassified area, and the initial electronic map is updated based on the updated first device list and the updated second device list to obtain the electronic map; When the difference type includes that the difference terminal device is a missing terminal device and the missing terminal device is not a monitoring device, the missing terminal device is deleted from a third device list including the missing terminal device, and the initial electronic map is updated based on the updated third device list to obtain the electronic map.
9. The monitoring image playback method according to claim 8, It is characterized in that The updating of the initial electronic map based on the difference type of the difference terminal device to obtain the electronic map includes: When the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is not a second monitoring sub-device in the second monitoring area, determining whether the newly added terminal device is in a target monitoring area based on a location of the newly added terminal device; the target monitoring area includes the first monitoring area or the second monitoring area; When it is determined that the newly added terminal device is in the target monitoring area, the newly added terminal device is added to a device list corresponding to the target monitoring area, and the initial electronic map is updated based on the added device list to obtain the electronic map; When it is determined that the newly added terminal device is not in the target monitoring area, the newly added terminal device is added to the second device list corresponding to the unclassified area, and the initial electronic map is updated based on the added second device list to obtain the electronic map.
10. The monitoring image playback method according to claim 9, It is characterized in that The method further comprises: In a case where the difference type includes that the difference terminal device is a newly added terminal device, and the newly added terminal device is a second monitoring sub-device in the second monitoring area, determining a third proportional coefficient corresponding to the second monitoring area based on a distance between the second monitoring sub-device and the second monitoring device; the third proportional coefficient is used to determine a distance between the first object and the terminal device in the second monitoring area; The terminal devices in the second monitoring area included in the second device list are moved to the first device list, and the initial electronic map is updated based on the moved second device list and the moved first device list to obtain the electronic map.