Channel matching method and device of video equipment and storage medium

By obtaining the shooting field of view of the video recording device in the security system and matching it on the electronic map, the problem of low playback efficiency and accuracy of multi-channel video recording data is solved, and fast and accurate channel matching and video recording data playback are achieved.

CN119693858AInactive Publication Date: 2025-03-25ZHEJIANG DAHUA TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202510193564.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the security field, the playback efficiency and accuracy of multi-channel video data are low, making it difficult for users to quickly find the corresponding channel to facilitate replaying videos from specific locations.

Method used

By obtaining the shooting field of view of the video recording devices on the channels to be matched in the target scene, drawing the corresponding field of view on the electronic map, and generating map marking areas. In response to the map frame selection command, draw the box selection area on the electronic map, search for the matching target mark area from the map mark area, determine the target channel and play the corresponding video data.

Benefits of technology

The precise matching of the target channel is achieved, saving time for manual query confirmation, improving the efficiency of channel matching, thereby improving the efficiency and accuracy of multi-channel video data playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119693858A_ABST
    Figure CN119693858A_ABST
Patent Text Reader

Abstract

The invention relates to a channel matching method and device for video equipment and a storage medium, and the method comprises the steps: obtaining the shooting view range of the video equipment on each to-be-matched channel in a target scene; on an electronic map of the target scene, drawing a shooting view field range corresponding to each to-be-matched channel, and generating a map marking area; responding to a received map frame selection instruction, and drawing a map frame selection area indicated by the map frame selection instruction on the electronic map; and searching a target mark area matched with the map frame selection area from the map mark areas, determining a target channel corresponding to the target mark area in the to-be-matched channels, and playing video data which is stored in the target channel and is shot by corresponding video equipment. According to the invention, the problem of low efficiency and accuracy of multi-channel video data playing is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of security, and in particular to a channel matching method, device and storage medium for video recording equipment. Background Art

[0002] In the field of security, channel is a crucial concept. In short, a channel represents the video shot by a video recording device. In practical applications, people often need to monitor multiple different locations and even different angles at the same time. In order to quickly distinguish these different video streams, the channel in the network video recorder (NVR) plays a key role. It can accurately store different video streams in the corresponding channel. When it is necessary to play back the video of a specific location, the user only needs to find the corresponding channel to easily call up and view the required video playback.

[0003] However, it may not be so convenient for users to quickly find the corresponding channel. For example, when a user wants to view the picture of a certain intersection, he needs to compare the pictures one by one through the channels to determine whether it is the place he wants to view, or record a table of the correspondence between the intersection and the channel in advance for query. Especially when there are a large number of channels, this task becomes more complicated and arduous, resulting in low efficiency and accuracy in the playback of multi-channel video data.

[0004] Currently, no effective solution has been proposed for the problem of low efficiency and accuracy of multi-channel video data playback in related technologies. Summary of the invention

[0005] The embodiments of the present application provide a channel matching method, device and storage medium for a video recording device, so as to at least solve the problem of low efficiency and accuracy of multi-channel video data playback in the related art.

[0006] In a first aspect, an embodiment of the present application provides a channel matching method for a video recording device, the method comprising: Obtain the shooting field of view of the video recording device on each channel to be matched in the target scene; On the electronic map of the target scene, draw the shooting field of view corresponding to each of the to-be-matched channels, and generate a map marking area; In response to the received map frame selection instruction, drawing the map frame selection area indicated by the map frame selection instruction on the electronic map; Search the target marked area that matches the map framed area from each of the map marked areas, determine the target channel corresponding to the target marked area in the to-be-matched channel, and play the video data stored in the target channel and captured by the corresponding video recording device.

[0007] In some embodiments, obtaining the shooting field of view of the video recording device on each channel to be matched in the target scene includes: Get the device type information of the video recording device; In the case where the device type information indicates that the video recording device is a PTZ video recording device, subscribing to the field of view direction change information of the PTZ video recording device, and recording the direction change time point of the field of view direction change information; determining the shooting field of view range based on the field of view direction change information and the direction change time point; When the device type information indicates that the video recording device is a non-PTZ video recording device, a shooting field of view of the non-PTZ video recording device is obtained.

[0008] In some embodiments, when the device type information indicates that the video recording device is a non-PTZ video recording device, the method further includes: When the device posture information and the device field of view information pushed by the non-PTZ recording device are detected, determining the shooting field of view range based on the device posture information and the device field of view information; In the case where the device posture information and the device field of view information pushed by the non-PTZ recording device fail to be detected, in response to the received field of view calibration instruction, a shooting field of view range indicated by the field of view calibration instruction is determined.

[0009] In some embodiments, determining the shooting field of view range based on the field of view direction change information and the direction change time point includes: Get the query time range; According to the direction change time points within the query time range, the field of view direction change information corresponding to the direction change time points is merged and processed to determine the shooting field of view range.

[0010] In some embodiments, in response to the received map frame selection instruction, drawing the map frame selection area indicated by the map frame selection instruction on the electronic map includes: Displaying the electronic map on a display interface, and detecting the map frame selection instruction for the electronic map via the display interface; The map frame selection instruction is parsed to obtain a corresponding map frame selection area, and the map frame selection area is drawn on the electronic map.

[0011] In some embodiments, detecting the map frame selection instruction for the electronic map via the display interface includes: In response to the automatic matching instruction received by the display interface, entering the automatic matching mode; In the automatic matching mode, the map frame selection instruction is detected via the display interface.

[0012] In some embodiments, searching for a target marked area matching the map framed area from each of the map marked areas includes: Respectively calculating the overlapping information between each of the map marked areas and the map framed area; Based on the overlapping information, the target marking area is determined.

[0013] In some embodiments, the method further comprises: In the case where the search for the target marked area from among the map marked areas fails, a reminder message is generated and sent to a display interface for display.

[0014] In a second aspect, an embodiment of the present application provides a channel matching device for a video recording device, comprising: An acquisition module is used to acquire the shooting field of view of the video recording device on each channel to be matched in the target scene; A map marking module, used to draw the shooting field of view corresponding to each of the to-be-matched channels on the electronic map of the target scene, and generate a map marking area; A map frame selection module, configured to draw a map frame selection area indicated by the map frame selection instruction on the electronic map in response to the received map frame selection instruction; A matching module is used to search for a target marked area that matches the map framed area from each of the map marked areas, determine a target channel corresponding to the target marked area in the to-be-matched channels, and play the video data stored in the target channel and captured by the corresponding video recording device.

[0015] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the program is executed by a processor, the channel matching method of the video recording device as described in the first aspect above is implemented.

[0016] Compared with the related art, the channel matching method, device and storage medium of the recording device provided in the embodiments of the present application obtain the shooting field of view of the recording device on each channel to be matched in the target scene; draw the shooting field of view corresponding to each channel to be matched on the electronic map of the target scene, and generate a map marking area; in response to the received map frame selection instruction, draw the map frame selection area indicated by the map frame selection instruction on the electronic map; search for the target marked area matching the map frame selection area from each map marked area, determine the target channel corresponding to the target marked area in the channel to be matched, and play the recording data stored in the target channel and captured by the corresponding recording device.

[0017] Based on this, it is ensured that the video data stored on the matched target channel can include the content of the framed area that the user wants to query, thereby achieving accurate matching of the target channel and saving the time for manual query and confirmation, effectively improving the efficiency of channel matching, thereby effectively solving the problem of low efficiency and accuracy of multi-channel video data playback, and realizing an accurate and efficient method for matching the back-end channel of the video device based on the map framed area.

[0018] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 It is a hardware structure block diagram of a terminal of a channel matching method of a video recording device according to an embodiment of the present application; Figure 2 is a flow chart of a channel matching method of a video recording device according to an embodiment of the present application; Figure 3 is a schematic diagram of a map marking area display according to an embodiment of the present application; Figure 4 is a schematic diagram of a map marking area display according to an embodiment of the present application; Figure 5A is a schematic diagram of an electronic map display according to an embodiment of the present application; Figure 5B is a schematic diagram of another electronic map display according to an embodiment of the present application; Figure 6 is a flow chart of a method for drawing a map marking area according to an embodiment of the present application; Figure 7 is a flow chart of another channel matching method of a video recording device according to an embodiment of the present application; Figure 8 It is a structural block diagram of a channel matching device of a video recording device according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.

[0021] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0022] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application means greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0023] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. Taking running on a terminal as an example, Figure 1 1 is a hardware structure block diagram of a terminal of a channel matching method for a video recording device according to an embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the channel matching method of the video recording device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0026] This embodiment provides a channel matching method for a video recording device. Figure 2 is a flow chart of a channel matching method of a video recording device according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps: Step S210, obtaining the shooting field of view of the video recording device on each channel to be matched in the target scene.

[0027] For the above-mentioned multi-channel video recording equipment, multiple video recording equipment deployed on site are usually linked to shoot a certain target scene. For example, multi-channel video recording equipment can be used in a security monitoring system. By installing multiple video recording equipment, comprehensive coverage of the monitoring area can be achieved, including setting up multiple cameras to monitor the flow of people in public places such as shopping malls, parks, banks, and traffic intersections.

[0028] The matching channel of each video recording device can be understood as a bridge between the video recording device and the control system. It is responsible for transmitting the video signal or data stream of the video recording device to the system for processing and storage. In a multi-channel video recording device control system, each video recording device corresponds to a device channel, which are independent and configurable in the system. In actual application, the system can obtain a single-channel image collected by the corresponding video recording device from each device channel to provide input for subsequent detection and processing.

[0029] Specifically, it is necessary to collect the shooting field of view information of the video recording devices on all the channels to be matched in the target scene, which usually includes the physical location, shooting angle, focal length and other parameters of the video recording devices. Based on these parameters, a geographic information system (GIS) or a dedicated video surveillance system software can be used to calculate the specific shooting field of view of each video recording device. In an optional embodiment, the above-mentioned shooting field of view can be determined based on the visual angle and field of view direction of the video recording device. The visual angle and field of view direction can be automatically pushed by the video recording device, and then the shooting field of view corresponding to the video recording device is calculated based on the obtained visual angle and field of view direction; or, the visual angle can also be manually calibrated by the user.

[0030] Step S220: Draw the shooting field of view corresponding to each to-be-matched channel on the electronic map of the target scene, and generate a map marking area.

[0031] The electronic map is a map generated for real-time display by gridding the target scene monitored by each video recording device. After obtaining the shooting field of view of each video recording device through the above step S210, the corresponding map mark area is automatically drawn on the electronic map according to the shooting field of view; each channel to be matched will have a corresponding map mark area, indicating the shooting field of view of the video recording device on the channel.

[0032] See also Figure 3, the figure shows the map mark area drawn and generated to represent the shooting field of view of each recording device; specifically, it includes the map mark area of ​​channel 1 and the map mark area of ​​channel 2; channel 1 and channel 2 are both channels to be matched. Each map mark area is a sector-shaped area, the central angle of the sector is determined by the visual angle of the recording device, and the direction of the sector area is determined by the field of view direction of the recording device.

[0033] Step S230, in response to the received map frame selection instruction, drawing a map frame selection area indicated by the map frame selection instruction on the electronic map.

[0034] In this step, a display interface for user interaction is provided, allowing the user to draw a selection area on the electronic map displayed on the display interface through a mouse or other input device. When the user triggers the map selection command through the above interactive operation, the map selection command is captured, and the user-defined selection area is drawn in real time on the electronic map. The map selection area can be a rectangle, a circle, or other shapes, depending on user needs and application scenarios.

[0035] Specifically, after the user performs a selection operation on the electronic map display interface through a mouse, touch screen or other input device, the map selection instruction is triggered; the system parses the map selection instruction to obtain the starting point, end point and possible intermediate point (used to define irregular shaped areas) of the user's selection area. Based on this type of analysis, the location coordinates are obtained and the boundaries of the selection area are calculated. For rectangular selection, the coordinates of the upper left corner and the lower right corner need to be determined; for circular selection, the center and radius need to be determined; for irregular shapes, the coordinates of all points need to be recorded. Finally, the graphics drawing function of the electronic map is used to draw the boundaries of the selection area on the map. This usually involves adding a new graphic element (such as a polygon, circle, or path) to the rendering layer of the map.

[0036] In addition, during the process of drawing the selection area, visual feedback can be provided, such as displaying the boundaries of the selection in real time, so that the user can adjust the range of the selection.

[0037] Step S240, searching for a target marked area that matches the map framed area from each map marked area, determining a target channel corresponding to the target marked area in the to-be-matched channel, and playing the video data stored in the target channel and captured by the corresponding video recording device.

[0038] Among them, all map mark areas that have been drawn on the electronic map are traversed, and these areas represent the shooting field of view of each channel to be matched. A matching algorithm is executed on each map mark area to determine whether it intersects or overlaps with the map framed area; this process can be achieved by comparing the coordinate range, shape, area or perimeter and other parameters of the two. The map mark area that is traversed and searched and determined to have an intersecting or overlapping part with the map framed area is taken as the target mark area, and the target channel corresponding to the target mark area is determined based on the one-to-one correspondence between the map mark area and the channel to be matched.

[0039] Finally, according to the information of the target channel, the video data stored in the channel is retrieved from the video storage system, such as a hard disk recorder, and the retrieved video data is played back. Specifically, a video player or other media playback tool can be used to play the video data within the time period specified by the user. It should be noted that in an optional embodiment, the played video data can also be synchronously displayed with the map framed area on the electronic map, so that the user can intuitively see the corresponding relationship between the video data and the map framed area.

[0040] After entering the intelligent era, some smart devices can analyze images in real time and generate video structured data, which is generally called smart events. Smart events are also stored on the hard disk recorder according to channel classification. After matching the target channel corresponding to the map selection area through the above steps, the video data stored in the target channel can be retrieved and played, without the user having to compare the images channel by channel.

[0041] In the related art, when reading video data for multiple channels, users are usually required to query and compare channels one by one, or record a table of the correspondence between each monitoring location and channel in advance and then query, resulting in low channel matching efficiency when the number of channels is large.

[0042] The embodiment of the present application uses the channel matching method of the above-mentioned recording device to match the map marked area corresponding to each channel to be matched with the map framed area input by the user. Therefore, the user only needs to frame the map area where the video is to be queried on the electronic map, and the computer program can be used to calculate and automatically match it to the corresponding target channel, thereby ensuring that the video data stored on the matched target channel can include the content of the framed area that the user wants to query, achieving accurate matching of the target channel, and saving the time for manual query and confirmation, effectively improving the efficiency of channel matching, and further effectively improving the efficiency and accuracy of multi-channel video data playback.

[0043] In some embodiments, the above-mentioned obtaining the shooting field of view range of the video recording device on each channel to be matched in the target scene may also include the following steps: Obtain device type information of the recording device; when the device type information indicates that the recording device is a pan-tilt recording device, subscribe to the field of view direction change information of the pan-tilt recording device, and record the direction change time point corresponding to the field of view direction change information; determine the shooting field of view range based on the field of view direction change information and the direction change time point; when the device type information indicates that the recording device is a non-pan-tilt recording device, obtain the shooting field of view range of the non-pan-tilt recording device.

[0044] The recording devices to be matched are connected to the NVR host device for communication, so as to add each recording device on the NVR. The NVR can generally obtain the device type information of each recording device through the protocol, and identify whether the added recording device is a PTZ recording device according to the obtained device type.

[0045] The PTZ recording device refers to a recording device installed on a rotatable structure such as a PTZ. Since the PTZ in the PTZ recording device drives the recording device it carries to rotate, the field of view direction of the recording device is not fixed; therefore, in this embodiment, if the PTZ recording device is identified in each recording device, the information of the currently identified PTZ recording device is subscribed. When subscribing for the first time, or detecting that the field of view direction of the PTZ recording device has changed (specifically, the field of view direction information of the PTZ recording device currently received is different from the field of view direction information of the PTZ recording device received at the last moment), the system receives and records the latest field of view direction change information of the PTZ recording device in real time, and records the latest field of view direction change information received into the database according to the corresponding direction change time point. Finally, according to the field of view direction change information corresponding to different direction change time points, the shooting field of view range of the PTZ recording device can be determined. In an optional embodiment, the shooting field of view range of the PTZ recording device can be drawn in real time on the electronic map along with the direction change time point, thereby generating a dynamic map marking area.

[0046] In order to better understand this solution, the following is an example, as shown in Table 1: Table 1 List of viewing directions of PTZ recording equipment time Central field of view direction (clockwise from true north) October 18, 2024 08:05:32 90 October 18, 2024 09:00:00 30 October 18, 2024 14:00:00 120 October 19, 2024 09:00:00 30 For the above example, after the NVR controller successfully adds and subscribes to the field of view direction change information of the PTZ recording device, the PTZ recording device will first reply with an initial direction information, such as the 90-degree clockwise direction recorded at 08:05:32 on October 18, 2024. Then, when the direction of the PTZ recording device changes, the PTZ recording device actively notifies the NVR controller of the latest direction information, such as the 30-degree clockwise direction of due north recorded at 08:05:32 on October 18, 2024, and the subsequent information is similar. It should be understood that under normal circumstances, the field of view direction change information corresponding to each direction change time point refers to the direction angle toward which the field of view center of the PTZ recording device is facing.

[0047] On the contrary, if a non-PTZ recording device is detected among the recording devices, it means that the field of view direction of the detected recording device is fixed. Therefore, the fixed shooting field of view range can be directly calculated based on the device posture, field of view direction, viewing angle and other parameters of the non-PTZ recording device.

[0048] Through the above embodiments, the device type of each recording device is identified to determine whether the recording device is a pan-tilt recording device, and different methods for acquiring the shooting field of view are respectively executed for the pan-tilt recording device and the non-pan-tilt recording device, thereby effectively expanding the application scenarios of the channel matching method of the recording device.

[0049] In some embodiments, when the device type information indicates that the video recording device is a non-PTZ video recording device, the channel matching method of the video recording device further includes the following steps: When the device posture information and device field of view information pushed by the non-PTZ recording device are detected, the shooting field of view range is determined based on the device posture information and the device field of view information; when the detection of the device posture information and the device field of view information pushed by the non-PTZ recording device fails, in response to the received field of view calibration instruction, the shooting field of view range indicated by the field of view calibration instruction is determined.

[0050] Specifically, if it is detected through the above steps that there is a non-PTZ recording device among the added recording devices, it can be determined whether the posture information, viewing angle, field of view direction and other information of the non-PTZ recording device can be automatically obtained; the above-mentioned device field of view information includes the viewing angle and field of view direction. It should be understood that the device posture information and device field of view information of this type of recording device can be sent to the NVR by the non-PTZ recording device through the corresponding protocol it supports, and the NVT processes and calculates the received information to obtain the corresponding shooting field of view range.

[0051] Alternatively, there may be non-PTZ recording devices that do not support the device information sending protocol. In this case, the user needs to manually calibrate the shooting field of view for the non-PTZ recording device. Specifically, the electronic map and the recording screen of the target scene monitored by the recording devices on each channel to be matched can be displayed synchronously on the display interface. The user can manually draw an approximate field of view calibration range at the display position of the non-PTZ recording device on the electronic map by viewing the recording screen corresponding to the non-PTZ recording device to be calibrated, and trigger the field of view calibration instruction. The system detects the triggered field of view calibration instruction and parses it to obtain the corresponding shooting field of view range.

[0052] Through the above embodiments, the corresponding shooting field of view is obtained through the device information pushed by the non-pan-tilt recording device, or the field of view calibration command input by the user, thereby ensuring that the shooting field of view of the device can be accurately obtained for recording devices of different types and supporting different protocols, which helps to improve the accuracy of channel matching of the recording device and effectively expands the application scenarios.

[0053] In some embodiments, determining the shooting field of view range based on the field of view direction change information and the direction change time point includes: Obtain a query time range; merge and process the field of view direction change information corresponding to the direction change time points according to the direction change time points within the query time range to determine the shooting field of view range.

[0054] The above query time range refers to the time range for the user to query the video playback; the user can interact and enter the query time range on the display interface; for example, if the user wants to query the video data within the two days of October 18 to 19, 2024, just enter the time period of October 18 to 19, 2024. Specifically, if there is a PTZ video device among the various video devices, then before displaying the shooting field of view of the PTZ video device, the field of view direction of the corresponding PTZ video device is searched from the above-mentioned saved database according to the query time range set by the user, and merged into a large field of view.

[0055] Still taking the example in Table 1 above as an example, assuming that the viewing angle of the PTZ camera is 120 degrees. If the query time range entered by the user is 08:05:32-23:59:59 on October 18, 2024, then according to the query time range, the center field of view directions (i.e. the field of view direction change information) in Table 1 whose direction change time points are within the query time range are merged to obtain the corresponding shooting time range. Please refer to Figure 4The shooting field of view determined based on the query time range is obtained by merging the three fields of view with a central field of view direction of 90 degrees, a central field of view direction of 30 degrees, and a central field of view direction of 120 degrees. The center angles of these three fields of view are all 120 degrees. Figure 4 Shown in the figure is a map marked area where a large shooting field of view is located, with a central field of view direction ranging from 30 degrees to 120 degrees.

[0056] It should be understood that the total field of view of the generated PTZ recording device may be different due to different query time ranges, so different channel matching results may be returned for the same map area selected by the user. This is equivalent to filtering in advance according to the shooting field of view of the PTZ recording device.

[0057] For example, if the query time range is 08:05:32-23:59:59 on October 18, 2024, the following is generated: Figure 4 If a map mark area of ​​a PTZ recording device is shown, after selecting a rectangular map mark area on the electronic map, map mark areas overlapping with the map mark area are detected, including the map mark area of ​​channel 1 corresponding to the PTZ recording device and the map mark area of ​​channel 2 corresponding to another recording device. For the display positions of the map mark area of ​​channel 1, the map mark area of ​​channel 2 and the map mark area on the electronic map, please refer to Figure 5A .

[0058] In another example, if the query time range is 14:00:00-23:59:59 on October 18, 2024, the field of view of channel 1 will become smaller during this time period; at this time, for the same map frame selection area as the previous example, the map mark area of ​​channel 1 will no longer overlap with it. For the display positions of the map mark area of ​​channel 1, the map mark area of ​​channel 2, and the map frame selection area on the electronic map in this example, please refer to Figure 5B Therefore, the final query result returned will only include channel 2 with overlapping regions, and channel 1 will not be returned. It can be seen that the query time range will also affect the final channel search return results. Due to the rotatable nature of the PTZ recording device, its shooting field of view is not fixed, which further increases the difficulty of channel matching. In related technologies, it is often necessary to call up the video data stored on the channel of the PTZ recording device before confirming whether it is the viewing angle that the user wants to view. In the embodiment of the present application, by automatically generating the total shooting field of view of the PTZ recording device within the query time range, it is possible to automatically match the corresponding map marked area, without the need to query the recording confirmation in advance, and an effective filtering can be performed first, further improving the efficiency and accuracy of the channel matching of the recording device.

[0059] In some embodiments, in response to the received map frame selection instruction, drawing the map frame selection area indicated by the map frame selection instruction on the electronic map may further include the following steps: The electronic map is displayed on the display interface, and a map frame selection instruction for the electronic map is detected through the display interface; the map frame selection instruction is parsed to obtain a corresponding map frame selection area, and the map frame selection area is drawn on the electronic map.

[0060] First, display the electronic map on the system's display interface. The electronic map should contain all necessary information about the target scene, such as streets, buildings, markers, etc., as well as the map marker areas corresponding to each channel to be matched, generated by the above steps. Through this display interface, the user's input actions are continuously detected, including mouse movement, clicks, drags, and touch screen sliding and clicking. When the user performs a frame selection operation (such as dragging the mouse to draw a rectangular frame, or sliding a finger on the touch screen to draw an irregular shape), the system should be able to recognize this action and use it as a map frame selection instruction.

[0061] The received map selection instructions generally contain a series of coordinate points or action parameters (such as starting point, end point, shape type, etc.). The system needs to parse these instructions and calculate the boundaries of the selection area. Finally, based on the parsed boundary information, the corresponding selection area is drawn on the electronic map. This process usually involves adding a new graphic element, such as a polygon, circle, or rectangle, to the rendering layer of the map to represent the selection area.

[0062] Through the above embodiments, an interactive mode between the user and the display interface is provided, so that the user can conveniently select the area range that he wants to query on the map, thereby effectively improving the operational convenience of the channel matching of the recording device.

[0063] In some embodiments, the channel matching method of the video recording device may further include the following steps: In response to the automatic matching instruction received by the display interface, the automatic matching mode is entered; in the automatic matching mode, the map frame selection instruction is detected via the display interface.

[0064] Specifically, in this step, when selecting a channel, the user can interact with the display interface and select the channel matching mode actually required. If the user triggers the automatic matching instruction by clicking the automatic matching button displayed on the display interface or other interactive operations, the system enters the automatic matching mode in response to the automatic matching instruction, and detects the map selection instruction through the display interface in the automatic matching mode, and then automatically matches the channel according to the map selection area selected by the user. On the contrary, it means that the user is relatively certain about the recording device corresponding to the intersection or other locations that need to be viewed, or the number of channels that need to be viewed is small, and the channel number selected by the user can be directly received and the recording data stored on the channel can be played back.

[0065] Through the above method, the user can freely select the automatic matching mode according to the actual situation, or manually select the channel under specific circumstances, thereby improving the flexibility of the channel matching of the recording device.

[0066] In some embodiments, searching for a target marked area matching the map framed area from each map marked area includes: The overlapping information between each map marked area and the map frame selected area is calculated respectively; based on the overlapping information, the target marked area is determined.

[0067] Specifically, for each map mark area, the overlap between it and the map frame area is calculated. This process can be achieved by comparing parameters such as the coordinate range, shape and area of ​​the two. The overlap information can be a numerical value (such as the overlap area) or a Boolean value (such as whether it overlaps). In some cases, the specific coordinates or shape information of the overlapping part can also be included. Afterwards, based on the calculated overlap information, the target mark area that matches the map frame area is determined. If the overlap information is a numerical value, the map mark area with the largest overlap area can be selected as the target mark area. If the overlap information is a Boolean value, it is only necessary to check whether there is a map mark area overlapping with the map frame area, and select the first (or all) overlapping mark areas as the target mark areas, thereby realizing the channel automatic matching method based on the map frame area.

[0068] In some embodiments, the channel matching method of the video recording device further includes the following steps: In the case of failure in searching for the target marked area from among the map marked areas, a reminder message is generated and sent to the display interface for display.

[0069] In this step, an additional processing method is provided for when the channel matching of the recording device fails. In the case that the search for the target marked area from the map marked areas fails (that is, no marked area matching the map framed area is found), a reminder message is generated. The reminder message can be a simple text message, such as "No matching marked area found" or "Please adjust the framed area and try again."

[0070] Next, the generated reminder information is sent to the display interface for display. This can be achieved by displaying a pop-up window on the electronic map, displaying a status bar message at the bottom of the screen, or recording an error message in a log file. The purpose of displaying the reminder information is to inform the user of the search failure and prompt the user to take appropriate actions, such as adjusting the selected area, checking the accuracy of the map marked area, or re-executing the search operation, which helps to enhance the user experience.

[0071] The present application is described and illustrated below in conjunction with specific embodiments. Taking the above-mentioned video recording device using a camera as an example, Figure 6 is a flow chart of a method for drawing a map marking area according to an embodiment of the present application. Figure 6 As shown, the process includes the following steps: Step S601, start the process; add the front-end camera to the NVR.

[0072] Step S602, traverse the added front-end cameras.

[0073] Step S603, determining whether the currently traversed front-end camera is a pan-tilt camera.

[0074] Step S604, if the judgment result of the above step S603 is yes, subscribe to the central field of view direction change information of the front-end camera, and record it in the database according to the direction change time point, and return to the above step S602 to continue traversing and detecting the next added front-end camera.

[0075] Step S605, if the judgment result of the above step S603 is no, then determine whether the device posture information, viewing angle and field of view direction information of the camera can be automatically obtained.

[0076] Step S606: If the judgment result of the above step S605 is no, manually mark the camera position directly in the camera position configuration interface of the NVR, and continue to execute the subsequent step S607.

[0077] Step S607, if the judgment result of the above step S605 is yes, mark the camera's position, field of view direction, and visible range (visible range needs to be marked manually) on the map, and return to the above step S602 to continue traversing and detecting the next added front-end camera.

[0078] Step S608: All added front-end cameras are traversed; the process ends.

[0079] On the other hand, see Figure 7 The process of automatically matching channels by selecting a map includes the following steps: Step S701, start the process; the user first sets the required query time range on the display interface, and when selecting a channel, can select the automatic matching mode of automatically matching channels according to the map area.

[0080] Step S702, determining whether there is a PTZ camera among the front-end cameras added to the NVR.

[0081] Step S703, if the judgment result of the above step S702 is yes, then search the corresponding field of view direction of the gimbal camera from the database according to the query time range set by the user, and merge them into a large shooting field of view range, and then execute the subsequent step S704.

[0082] Step S704: If the judgment result of the above step S702 is no, after the map is loaded, it is displayed in a grid format, and the shooting field of view of each camera is marked on the map to generate a map marking area.

[0083] Step S705 , determining whether there is a target marked area in each map marked area that overlaps with the map frame selected by the user.

[0084] Step S706: If the judgment result of the above step S705 is no, the user is prompted that there is no matching channel in this area; and the process ends.

[0085] Step S707: If the judgment result of the above step S705 is yes, then all the overlapping channel numbers are returned for the subsequent video retrieval step; and the process ends.

[0086] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0087] This embodiment also provides a channel matching device for a video recording device, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0088] Figure 8 is a structural block diagram of a channel matching device of a video recording device according to an embodiment of the present application, such as Figure 8 As shown, the device comprises: An acquisition module 81 is used to acquire the shooting field of view of the video recording device on each channel to be matched in the target scene; A map marking module 82 is used to draw the shooting field of view corresponding to each to-be-matched channel on the electronic map of the target scene and generate a map marking area; A map frame selection module 83, configured to draw a map frame selection area indicated by the map frame selection instruction on the electronic map in response to the received map frame selection instruction; The matching module 84 is used to search for a target marked area that matches the map framed area from each map marked area, determine the target channel corresponding to the target marked area in the to-be-matched channel, and play the video data stored in the target channel and captured by the corresponding video recording device.

[0089] In some embodiments, the acquisition module 81 is further used to acquire device type information of the video recording device; The acquisition module 81 is also used to subscribe to the field of view direction change information of the pan-tilt recording device and record the direction change time point of the field of view direction change information when the device type information indicates that the recording device is a pan-tilt recording device; determine the shooting field of view range based on the field of view direction change information and the direction change time point; The acquisition module 81 is further configured to acquire the shooting field of view of the non-PTZ recording device when the device type information indicates that the recording device is a non-PTZ recording device.

[0090] In some embodiments, the acquisition module 81 is further used to determine the shooting field of view range based on the device posture information and the device field of view information when the device posture information and the device field of view information pushed by the non-PTZ recording device are detected; The acquisition module 81 is also used to determine the shooting field of view range indicated by the field of view calibration instruction in response to the received field of view calibration instruction when the detection of the device posture information and device field of view information pushed by the non-PTZ recording device fails.

[0091] In some embodiments, the acquisition module 81 is further used to acquire a query time range; The acquisition module 81 is further used to merge the field of view direction change information corresponding to the direction change time points within the query time range, so as to determine the shooting field of view range.

[0092] In some embodiments, the map frame selection module 83 is further used to display the electronic map on the display interface, and detect the map frame selection instruction for the electronic map via the display interface; The map frame selection module 83 is also used to parse the map frame selection instruction, obtain the corresponding map frame selection area, and draw the map frame selection area on the electronic map.

[0093] In some embodiments, the channel matching device of the video recording device further includes: A mode selection module, configured to enter an automatic matching mode in response to an automatic matching instruction received by the display interface; The map frame selection module 83 is also used to detect the map frame selection instruction via the display interface in the automatic matching mode.

[0094] In some embodiments, the matching module 84 is further used to respectively calculate the overlap information between each map marked area and the map framed area; The matching module 84 is further configured to determine a target marking area based on the overlapping information.

[0095] In some embodiments, the channel matching device of the video recording device further includes: The reminder module is used to generate reminder information when the search for the target marked area from each map marked area fails, and send the reminder information to the display interface for display.

[0096] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0097] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0098] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0099] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program: S1, obtaining the shooting field of view of the video recording device on each channel to be matched in the target scene.

[0100] S2, on the electronic map of the target scene, draw the shooting field of view corresponding to each channel to be matched, and generate a map marking area.

[0101] S3, in response to the received map frame selection instruction, drawing a map frame selection area indicated by the map frame selection instruction on the electronic map.

[0102] S4, searching for a target marked area that matches the map framed area from each map marked area, determining a target channel corresponding to the target marked area in the to-be-matched channel, and playing the video data stored in the target channel and captured by the corresponding video recording device.

[0103] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0104] In addition, in combination with the channel matching method of the video recording device in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any channel matching method of the video recording device in the above embodiment is implemented.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0106] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0107] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A channel matching method for a video recording device, characterized in that: The method comprises: Obtain the shooting field of view of the video recording device on each channel to be matched in the target scene; On the electronic map of the target scene, draw the shooting field of view corresponding to each of the to-be-matched channels, and generate a map marking area; In response to the received map frame selection instruction, drawing a map frame selection area indicated by the map frame selection instruction on the electronic map; Search the target marked area that matches the map framed area from each of the map marked areas, determine the target channel corresponding to the target marked area in the to-be-matched channel, and play the video data stored in the target channel and captured by the corresponding video recording device.

2. The channel matching method according to claim 1, characterized in that: The step of obtaining the shooting field of view of the video recording device on each channel to be matched in the target scene includes: Get the device type information of the video recording device; In the case where the device type information indicates that the video recording device is a PTZ video recording device, subscribing to the field of view direction change information of the PTZ video recording device, and recording the direction change time point corresponding to the field of view direction change information; determining the shooting field of view range based on the field of view direction change information and the direction change time point; When the device type information indicates that the video recording device is a non-PTZ video recording device, a shooting field of view of the non-PTZ video recording device is obtained.

3. The channel matching method according to claim 2, characterized in that: When the device type information indicates that the video recording device is a non-PTZ video recording device, the method further includes: When the device posture information and the device field of view information pushed by the non-PTZ recording device are detected, determining the shooting field of view range based on the device posture information and the device field of view information; In the case where the device posture information and the device field of view information pushed by the non-PTZ recording device fail to be detected, in response to the received field of view calibration instruction, a shooting field of view range indicated by the field of view calibration instruction is determined.

4. The channel matching method according to claim 2, characterized in that: The determining the shooting field of view range based on the field of view direction change information and the direction change time point includes: Get the query time range; According to the direction change time points within the query time range, the field of view direction change information corresponding to the direction change time points is merged and processed to determine the shooting field of view range.

5. The channel matching method according to claim 1, characterized in that: In response to the received map frame selection instruction, drawing the map frame selection area indicated by the map frame selection instruction on the electronic map includes: Displaying the electronic map on a display interface, and detecting the map frame selection instruction for the electronic map via the display interface; The map frame selection instruction is parsed to obtain a corresponding map frame selection area, and the map frame selection area is drawn on the electronic map.

6. The channel matching method according to claim 5, characterized in that: The detecting, via the display interface, the map frame selection instruction for the electronic map includes: In response to the automatic matching instruction received by the display interface, entering the automatic matching mode; In the automatic matching mode, the map frame selection instruction is detected via the display interface.

7. The channel matching method according to claim 1, characterized in that: The step of searching the map marked areas for a target marked area that matches the map framed area includes: Respectively calculating the overlapping information between each of the map marked areas and the map framed area; Based on the overlapping information, the target marking area is determined.

8. The channel matching method according to any one of claims 1 to 7, characterized in that: The method further comprises: In the case where the search for the target marked area from among the map marked areas fails, a reminder message is generated and sent to a display interface for display.

9. A channel matching device for a video recording device, characterized in that: include: An acquisition module is used to acquire the shooting field of view of the video recording device on each channel to be matched in the target scene; A map marking module, used to draw the shooting field of view corresponding to each of the to-be-matched channels on the electronic map of the target scene, and generate a map marking area; A map frame selection module, configured to draw a map frame selection area indicated by the map frame selection instruction on the electronic map in response to the received map frame selection instruction; A matching module is used to search for a target marked area that matches the map framed area from each of the map marked areas, determine a target channel corresponding to the target marked area in the to-be-matched channels, and play the video data stored in the target channel and captured by the corresponding video recording device.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the channel matching method of the video recording device according to any one of claims 1 to 8 when running.

Citation Information

Patent Citations

  • Monitor video searching method based on geographic information system

    CN101576926A

  • Implementation methods and devices for intelligent monitoring

    CN102263933A

  • Video tracking analysis method and system

    CN103595958A

  • Supervision video extraction method and device

    CN104717462A

  • Method, device and system for tracking target across surveillance cameras

    CN105245850A