CN117896626A - Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras - Google Patents
Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras Download PDFInfo
- Publication number
- CN117896626A CN117896626A CN202410298624.XA CN202410298624A CN117896626A CN 117896626 A CN117896626 A CN 117896626A CN 202410298624 A CN202410298624 A CN 202410298624A CN 117896626 A CN117896626 A CN 117896626A
- Authority
- CN
- China
- Prior art keywords
- target
- camera
- motion
- video
- monitoring area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012544 monitoring process Methods 0.000 claims abstract description 97
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 238000002372 labelling Methods 0.000 claims abstract 6
- 238000004590 computer program Methods 0.000 claims description 17
- 238000010276 construction Methods 0.000 claims description 3
- 238000009499 grossing Methods 0.000 claims description 2
- 238000009432 framing Methods 0.000 claims 1
- 238000013507 mapping Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 description 12
- 239000013598 vector Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000000605 extraction Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000003708 edge detection Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/783—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/7837—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using objects detected or recognised in the video content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/7867—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/787—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Closed-Circuit Television Systems (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及运动轨迹检测技术领域,尤其涉及一种多摄像头检测运动轨迹的方法、装置、设备及存储介质。The present application relates to the field of motion trajectory detection technology, and in particular to a method, device, equipment and storage medium for detecting motion trajectories with multiple cameras.
背景技术Background technique
随着摄像头技术的不断发展,摄像头监控技术在公共场所、工厂、商店等领域得到了广泛的应用。然而,传统的摄像头监控技术通常只提供单一摄像头的监控画面,监控可靠性低。With the continuous development of camera technology, camera monitoring technology has been widely used in public places, factories, shops, etc. However, traditional camera monitoring technology usually only provides monitoring images of a single camera, and the monitoring reliability is low.
目前,已经有一些多摄像头监控技术被提出,但是,现有的多摄像头监控技术仅能对目标对象进行跨场景识别,无法准确识别目标对象的行踪。At present, some multi-camera monitoring technologies have been proposed. However, the existing multi-camera monitoring technologies can only identify the target object across scenes and cannot accurately identify the whereabouts of the target object.
发明内容Summary of the invention
本申请提供一种多摄像头检测运动轨迹的方法、装置、设备及存储介质,以解决上述背景技术提出的问题。The present application provides a method, device, equipment and storage medium for detecting motion trajectories with multiple cameras to solve the problems raised by the above-mentioned background technology.
第一方面,本申请提供一种多摄像头检测运动轨迹的方法,用于检测监控区域内的目标对象的运动轨迹,所述监控区域设有多个摄像头,各个所述摄像头设于所述监控区域的不同位置,所述方法包括:In a first aspect, the present application provides a method for detecting motion trajectories with multiple cameras, for detecting the motion trajectory of a target object in a monitoring area, wherein the monitoring area is provided with multiple cameras, each of the cameras being provided at a different position in the monitoring area, and the method comprises:
以所述监控区域的指定点为坐标原点构建空间直角坐标系;Constructing a spatial rectangular coordinate system with the designated point of the monitoring area as the coordinate origin;
针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网;For each of the cameras, generating a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system;
获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个;Acquire a plurality of videos to be identified taken by a plurality of the cameras, and select a target video from the plurality of videos to be identified based on target feature information of the target object; wherein the target object appears in the target video, and the target video includes a plurality of videos;
针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签;For each of the target videos, determine the motion trajectory points of the target object in the monitoring area based on the target video and the pixel coordinate grid corresponding to the target video, and mark each of the motion trajectory points with a time tag;
基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹;Generate a target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and the time tag corresponding to each of the motion trajectory points;
将所述目标运动轨迹存储至预设的数据库。The target motion trajectory is stored in a preset database.
第二方面,本申请提供一种多摄像头检测运动轨迹的装置,用于检测监控区域内的目标对象的运动轨迹,所述监控区域设有多个摄像头,各个所述摄像头设于所述监控区域的不同位置,所述装置包括:In a second aspect, the present application provides a device for detecting motion trajectories with multiple cameras, which is used to detect the motion trajectory of a target object in a monitoring area, wherein the monitoring area is provided with multiple cameras, each of which is provided at a different position in the monitoring area, and the device comprises:
构建模块,用于以所述监控区域的指定点为坐标原点构建空间直角坐标系;A construction module, used to construct a spatial rectangular coordinate system with a designated point of the monitoring area as a coordinate origin;
第一生成模块,用于针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网;A first generating module, configured to generate, for each of the cameras, a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system;
选择模块,用于获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个;A selection module is used to obtain a plurality of videos to be identified taken by a plurality of cameras, and select a target video from the plurality of videos to be identified based on target feature information of the target object; wherein the target object appears in the target video, and the target video includes a plurality of videos;
确定模块,用于针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签;A determination module, configured to determine, for each of the target videos, a motion trajectory point of the target object in the monitoring area based on the target video and a pixel coordinate grid corresponding to the target video, and mark each of the motion trajectory points with a time tag;
第二生成模块,用于基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹;A second generating module, configured to generate a target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and a time tag corresponding to each of the motion trajectory points;
存储模块,用于将所述目标运动轨迹存储至预设的数据库。The storage module is used to store the target motion trajectory in a preset database.
第三方面,本申请提供一种终端设备,所述终端设备包括处理器、存储器以及存储在所述存储器上并可被所述处理器执行的计算机程序,其中所述计算机程序被所述处理器执行时,实现如上所述的多摄像头检测运动轨迹的方法。In a third aspect, the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the method of multi-camera motion trajectory detection as described above is implemented.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,其中,所述计算机程序被处理器执行时,实现如上所述的多摄像头检测运动轨迹的方法。In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for detecting motion trajectories using multiple cameras as described above is implemented.
本申请提供一种多摄像头检测运动轨迹的方法、装置、设备及存储介质,其中,所述方法用于检测监控区域内的目标对象的运动轨迹,所述监控区域设有多个摄像头,各个所述摄像头设于所述监控区域的不同位置,所述方法包括:The present application provides a method, device, equipment and storage medium for detecting motion trajectories with multiple cameras, wherein the method is used to detect the motion trajectory of a target object in a monitoring area, wherein the monitoring area is provided with multiple cameras, and each of the cameras is provided at a different position in the monitoring area, and the method comprises:
以所述监控区域的指定点为坐标原点构建空间直角坐标系;针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网;获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个;针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签;基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹;将所述目标运动轨迹存储至预设的数据库。本实施例,一方面,能够将多个所述摄像头拍摄的待识别视频进行分析和整合,生成所述目标对象在所述监控区域内的运动轨迹,有助于提供更加全面且可靠的安防管理措施,另一方面,通过将所述目标运动轨迹存储至预设的数据库,能够实现监控信息的长期保存和追溯,为日后的安全检查、事故调查、甚至研究分析提供可靠的数据支持。A spatial rectangular coordinate system is constructed with the designated point of the monitoring area as the coordinate origin; for each of the cameras, a pixel coordinate grid corresponding to the shooting area of the camera is generated based on the shooting area of the camera and the rectangular coordinate system; multiple videos to be identified shot by multiple cameras are obtained, and a target video is selected from the multiple videos to be identified based on the target feature information of the target object; wherein the target object appears in the target video, and the target video includes multiple; for each of the target videos, the motion trajectory points of the target object in the monitoring area are determined based on the target video and the pixel coordinate grid corresponding to the target video, and a time tag is marked on each of the motion trajectory points; a target motion trajectory of the target object in the monitoring area is generated based on each of the motion trajectory points and the time tag corresponding to each of the motion trajectory points; and the target motion trajectory is stored in a preset database. In this embodiment, on the one hand, the videos to be identified shot by multiple cameras can be analyzed and integrated to generate the motion trajectory of the target object in the monitoring area, which helps to provide more comprehensive and reliable security management measures. On the other hand, by storing the target motion trajectory in a preset database, the long-term preservation and tracing of monitoring information can be achieved, providing reliable data support for future safety inspections, accident investigations, and even research and analysis.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
图1为本申请实施例提供的多摄像头检测运动轨迹的方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for detecting motion trajectories using multiple cameras provided in an embodiment of the present application;
图2为本申请实施例提供的多摄像头检测运动轨迹的装置的结构示意性框图;FIG2 is a schematic block diagram of the structure of a device for detecting motion trajectories using multiple cameras provided in an embodiment of the present application;
图3为本申请实施例提供的终端设备的结构示意性框图。FIG3 is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments 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.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations/steps, nor must they be executed in the order described. For example, some operations/steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should be further understood that the term “and/or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
随着摄像头技术的不断发展,摄像头监控技术在公共场所、工厂、商店等领域得到了广泛的应用。然而,传统的摄像头监控技术通常只提供单一摄像头的监控画面,监控可靠性低。With the continuous development of camera technology, camera monitoring technology has been widely used in public places, factories, shops, etc. However, traditional camera monitoring technology usually only provides monitoring images of a single camera, and the monitoring reliability is low.
目前,已经有一些多摄像头监控技术被提出,但是,现有的多摄像头监控技术仅能对目标对象进行跨场景识别,无法准确识别目标对象的行踪。为此,本申请提供一种多摄像头检测运动轨迹的方法、装置、设备及存储介质,以解决上述问题。At present, some multi-camera monitoring technologies have been proposed, but the existing multi-camera monitoring technologies can only identify the target object across scenes and cannot accurately identify the whereabouts of the target object. To this end, the present application provides a method, device, equipment and storage medium for detecting motion trajectories with multiple cameras to solve the above problems.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述实施例及实施例中的特征可以相互结合。In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
请参阅图1,图1为本申请实施例提供的多摄像头检测运动轨迹的方法的流程示意图,所述方法用于检测监控区域内的目标对象的运动轨迹,所述监控区域设有多个摄像头,各个所述摄像头设于所述监控区域的不同位置, 如图1所示,本申请实施例提供的多摄像头检测运动轨迹的方法,包括步骤S100至步骤S600。Please refer to Figure 1, which is a flow chart of the method for detecting motion trajectories with multiple cameras provided in an embodiment of the present application. The method is used to detect the motion trajectory of a target object in a monitoring area. The monitoring area is provided with multiple cameras, and each of the cameras is located at a different position of the monitoring area. As shown in Figure 1, the method for detecting motion trajectories with multiple cameras provided in an embodiment of the present application includes steps S100 to S600.
步骤S100、以所述监控区域的指定点为坐标原点构建空间直角坐标系。Step S100: constructing a spatial rectangular coordinate system with the designated point of the monitoring area as the coordinate origin.
步骤S200、针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网。Step S200: for each of the cameras, generate a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system.
步骤S300、获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个。Step S300, obtaining multiple videos to be identified shot by multiple cameras, and selecting a target video from the multiple videos to be identified based on target feature information of the target object; wherein the target object appears in the target video, and the target video includes multiple videos.
步骤S400、针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签。Step S400: for each of the target videos, determine the motion trajectory points of the target object in the monitoring area based on the target video and the pixel coordinate grid corresponding to the target video, and mark each of the motion trajectory points with a time tag.
步骤S500、基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹。Step S500: generating a target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and a time tag corresponding to each of the motion trajectory points.
步骤S600、将所述目标运动轨迹存储至预设的数据库。Step S600: storing the target motion trajectory in a preset database.
在本实施例中,如上述步骤S100所述,以所述监控区域的指定点为坐标原点构建空间直角坐标系,具体地,首先,在所述监控区域内找到指定点,然后,以所述指定点为坐标原点建立X、Y和Z三个直角坐标轴,得到所述直角坐标系。其中,所述指定点可以为所述监控区域的中心或所述监控区域内的其他标志性地点,所述指定点由用户通过监控系统的界面选择或输入。所述监控区域可以为工厂的公共区域或工作车间、商场、医院和学校等的公共区域。In this embodiment, as described in step S100 above, a spatial rectangular coordinate system is constructed with the designated point of the monitoring area as the coordinate origin. Specifically, first, a designated point is found in the monitoring area, and then three rectangular coordinate axes X, Y and Z are established with the designated point as the coordinate origin to obtain the rectangular coordinate system. The designated point may be the center of the monitoring area or other landmark locations within the monitoring area, and the designated point is selected or input by the user through the interface of the monitoring system. The monitoring area may be a public area of a factory or a public area of a workshop, shopping mall, hospital, school, etc.
如上述步骤S200所述,在以所述监控区域的指定点为坐标原点构建空间直角坐标系后,针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网。具体地,针对各个所述摄像头,首先,获取所述摄像头对应的拍摄区域的图像,然后,针对所述图像的每个像素,确定所述像素在所述监控区域对应的目标区域,并在所述空间直角坐标系中确定所述目标区域的中心点对应的坐标点,及在所述像素上标注所述坐标点,得到所述像素坐标网。可以理解地,所述摄像头对应的拍摄区域的图像由所述摄像头拍摄得到,在为所述拍摄区域生成所述像素坐标网时,所述拍摄区域内没有任何移动的人或物体。As described in the above step S200, after constructing a spatial rectangular coordinate system with the designated point of the monitoring area as the coordinate origin, for each of the cameras, a pixel coordinate grid corresponding to the shooting area of the camera is generated based on the shooting area of the camera and the rectangular coordinate system. Specifically, for each of the cameras, first, an image of the shooting area corresponding to the camera is acquired, and then, for each pixel of the image, the target area corresponding to the pixel in the monitoring area is determined, and the coordinate point corresponding to the center point of the target area is determined in the spatial rectangular coordinate system, and the coordinate point is marked on the pixel to obtain the pixel coordinate grid. It can be understood that the image of the shooting area corresponding to the camera is obtained by shooting the camera, and when the pixel coordinate grid is generated for the shooting area, there is no moving person or object in the shooting area.
如上述步骤S300所述,在需要检测目标对象的运动轨迹时,获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频。具体地,首先,在预设数据库中获取多个所述摄像头拍摄的多个待识别视频,然后,确定目标对象的目标特征信息,最后,基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频。其中,所述目标对象在所述监控区域内活动时,多个所述摄像头对所述监控区域进行摄像得到多个所述待识别视频,所述目标对象的目标特征信息包括但不限于所述目标对象的轮廓特征和运行姿态特征。所述目标对象包括行人、顾客、移动机器人等。As described in the above step S300, when it is necessary to detect the motion trajectory of the target object, a plurality of videos to be identified shot by a plurality of the cameras are obtained, and a target video is selected from the plurality of videos to be identified based on the target feature information of the target object. Specifically, first, a plurality of videos to be identified shot by a plurality of the cameras are obtained in a preset database, then the target feature information of the target object is determined, and finally, a target video is selected from the plurality of videos to be identified based on the target feature information of the target object. When the target object is active in the monitoring area, a plurality of the cameras photograph the monitoring area to obtain a plurality of videos to be identified, and the target feature information of the target object includes but is not limited to the contour features and running posture features of the target object. The target objects include pedestrians, customers, mobile robots, etc.
如上述步骤S400所述,在得到多个所述目标视频后,针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签。具体地,针对各个所述目标视频,首先,对所述目标视频进行分帧处理,得到所述目标视频对应的多个视频帧,并基于各个所述视频帧在所述目标视频中对应的时序,对各个所述视频帧标注时间标签,然后,在多个所述视频帧中选择包括所述目标对象的目标视频帧,其次,针对各个所述目标视频帧,获取所述目标对象在所述目标视频帧中对应的图像轮廓的中心点位置,并在所述目标视频帧上标注所述中心点位置,最后,针对各个所述目标视频帧,将所述像素坐标网映射至进行了中心点位置标注的所述目标视频帧,以确定所述目标视频帧对应的中心点位置所处的像素对应的目标坐标点,并为所述目标坐标点标注所述目标视频帧对应的时间标签,及将标注了时间标签的所述目标坐标点作为所述目标视频帧对应的运动轨迹点。可以理解地,由于所述目标对象在不断移动,故在同一所述目标视频中存在所述目标对象的至少一个运动轨迹点。As described in step S400 above, after obtaining a plurality of target videos, for each of the target videos, based on the target video and the pixel coordinate grid corresponding to the target video, the motion trajectory point of the target object in the monitoring area is determined, and a time tag is marked for each of the motion trajectory points. Specifically, for each of the target videos, first, the target video is framed to obtain a plurality of video frames corresponding to the target video, and a time tag is marked for each of the video frames based on the corresponding timing of each of the video frames in the target video, and then, a target video frame including the target object is selected from the plurality of video frames, and then, for each of the target video frames, the center point position of the image contour corresponding to the target object in the target video frame is obtained, and the center point position is marked on the target video frame, and finally, for each of the target video frames, the pixel coordinate grid is mapped to the target video frame with the center point position marked, so as to determine the target coordinate point corresponding to the pixel at the center point position corresponding to the target video frame, and the time tag corresponding to the target video frame is marked for the target coordinate point, and the target coordinate point marked with the time tag is used as the motion trajectory point corresponding to the target video frame. It can be understood that, since the target object is constantly moving, there is at least one motion trajectory point of the target object in the same target video.
如上述步骤S500所述,在得到各个所述运动轨迹点之后,基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹。具体地,首先,将各个所述运动轨迹点标注在所述空间直角坐标系中,然后,基于各个所述运动轨迹点对应的时间标签将各个所述运动轨迹点依序连接,得到所述目标对象的初始运动轨迹,其次,对所述初始运动轨迹进行平滑处理,得到中间运动轨迹,最后,基于各个所述运动轨迹点对应的时间标签在所述中间运动轨迹上标注所述目标对象在所述监控区域内的运动起点和运动终点,得到所述目标运动轨迹。As described in the above step S500, after obtaining each of the motion trajectory points, the target motion trajectory of the target object in the monitoring area is generated based on each of the motion trajectory points and the time tags corresponding to each of the motion trajectory points. Specifically, first, each of the motion trajectory points is marked in the spatial rectangular coordinate system, and then, based on the time tags corresponding to each of the motion trajectory points, each of the motion trajectory points is sequentially connected to obtain the initial motion trajectory of the target object, and then, the initial motion trajectory is smoothed to obtain an intermediate motion trajectory, and finally, based on the time tags corresponding to each of the motion trajectory points, the starting point and the end point of the movement of the target object in the monitoring area are marked on the intermediate motion trajectory to obtain the target motion trajectory.
如上述步骤S600所述,将所述目标运动轨迹存储至预设的数据库。具体地,将所述目标运动轨迹存储至与所述监控区域对应的预设数据库。可以理解地,将所述运动轨迹存储至所述预设数据库的目的是为了方便查询所述运动轨迹。As described in step S600, the target motion trajectory is stored in a preset database. Specifically, the target motion trajectory is stored in a preset database corresponding to the monitoring area. It can be understood that the purpose of storing the motion trajectory in the preset database is to facilitate querying the motion trajectory.
本实施例提供的方法,一方面,能够将多个所述摄像头拍摄的待识别视频进行分析和整合,生成所述目标对象在所述监控区域内的运动轨迹,有助于提供更加全面且可靠的安防管理措施,另一方面,通过将所述目标运动轨迹存储至预设的数据库,能够实现监控信息的长期保存和追溯,为日后的安全检查、事故调查、甚至研究分析提供可靠的数据支持。The method provided in this embodiment, on the one hand, can analyze and integrate the videos to be identified taken by multiple cameras to generate the movement trajectory of the target object in the monitoring area, which helps to provide more comprehensive and reliable security management measures; on the other hand, by storing the target movement trajectory in a preset database, it can achieve long-term preservation and traceability of monitoring information, providing reliable data support for future safety inspections, accident investigations, and even research and analysis.
在一些实施例中,所述基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网,包括以下步骤:In some embodiments, generating a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system comprises the following steps:
获取所述摄像头对应的拍摄区域的图像;Acquire an image of a shooting area corresponding to the camera;
针对所述图像的每个像素,确定所述像素在所述监控区域对应的目标区域,并在所述空间直角坐标系中确定所述目标区域的中心点对应的坐标点,及在所述像素上标注所述坐标点,得到所述像素坐标网。For each pixel of the image, determine the target area corresponding to the pixel in the monitoring area, determine the coordinate point corresponding to the center point of the target area in the spatial rectangular coordinate system, and mark the coordinate point on the pixel to obtain the pixel coordinate grid.
在本实施例中,首先,获取所述摄像头对应的拍摄区域的图像。具体地,在所述监控区域内没有任何移动的人或物体时,通过所述摄像头拍摄其所对应的拍摄区域,得到所述摄像头对应的拍摄区域的图像。In this embodiment, first, an image of the shooting area corresponding to the camera is obtained. Specifically, when there is no moving person or object in the monitoring area, the camera shoots the shooting area corresponding to the camera to obtain the image of the shooting area corresponding to the camera.
然后,在得到所述图像后,针对所述图像的每个像素,确定所述像素在所述监控区域对应的目标区域,并在所述空间直角坐标系中确定所述目标区域的中心点对应的坐标点,及在所述像素上标注所述坐标点,得到所述像素坐标网。具体地,首先,针对所述图像的每个像素,根据摄像头的位置、朝向和成像参数,将所述像素进行几何校正,并将进行几何校正后的所述像素映射到实际监控区域,得到所述像素在所述监控区域对应的目标区域,然后,在所述空间直角坐标系中确定所述目标区域的中心点对应的坐标点,及在所述像素上标注所述坐标点,得到所述像素坐标网。Then, after obtaining the image, for each pixel of the image, determine the target area corresponding to the pixel in the monitoring area, determine the coordinate point corresponding to the center point of the target area in the spatial rectangular coordinate system, and mark the coordinate point on the pixel to obtain the pixel coordinate grid. Specifically, first, for each pixel of the image, according to the position, orientation and imaging parameters of the camera, geometrically correct the pixel, and map the pixel after geometric correction to the actual monitoring area to obtain the target area corresponding to the pixel in the monitoring area, then determine the coordinate point corresponding to the center point of the target area in the spatial rectangular coordinate system, and mark the coordinate point on the pixel to obtain the pixel coordinate grid.
本实施例提供的方法,通过针对每个像素,在所述像素上标注所述像素在所述监控区域内对应的目标区域的中心点的坐标点,能够准确地定位所述像素在所述监控区域内对应的实际位置,有助于准确建立像素与所述空间直角坐标系之间的对应关系,进而有助于准确地检测所述目标对象的运动轨迹。The method provided in this embodiment can accurately locate the actual position of the pixel in the monitoring area by marking the coordinate point of the center point of the target area corresponding to the pixel in the monitoring area on each pixel, which helps to accurately establish the corresponding relationship between the pixel and the spatial rectangular coordinate system, and further helps to accurately detect the motion trajectory of the target object.
在一些实施例中,所述基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频,包括以下步骤:In some embodiments, the step of selecting a target video from a plurality of videos to be identified based on target feature information of the target object comprises the following steps:
针对各个所述待识别视频,播放所述待识别视频,以获取所述待识别视频中的多个待匹配对象;For each of the videos to be identified, play the video to be identified to obtain multiple objects to be matched in the video to be identified;
针对各个所述待识别视频,分别提取所述待识别视频对应的各个所述待匹配对象的待匹配特征信息,并分别获取各个所述待匹配特征信息与所述目标特征信息之间的第一相似度,及选取各个所述第一相似度中的最大相似度;For each of the videos to be identified, extract the to-be-matched feature information of each of the to-be-matched objects corresponding to the videos to be identified, obtain the first similarities between each of the to-be-matched feature information and the target feature information, and select the maximum similarity among the first similarities;
针对各个所述待识别视频,将所述待识别视频对应的最大相似度与第一预设相似度进行比较,并在若所述最大相似度大于所述第一预设相似度时,确定所述待识别视频为目标视频。For each of the videos to be identified, the maximum similarity corresponding to the video to be identified is compared with a first preset similarity, and if the maximum similarity is greater than the first preset similarity, the video to be identified is determined to be a target video.
在本实施例中,首先,针对各个所述待识别视频,播放所述待识别视频,以获取所述待识别视频中的多个待匹配对象。具体地,针对各个所述待识别视频,逐帧播放所述待识别视频,在所述待识别视频的每帧画面中获取待匹配对象。In this embodiment, first, for each video to be identified, the video to be identified is played to obtain multiple objects to be matched in the video to be identified. Specifically, for each video to be identified, the video to be identified is played frame by frame to obtain objects to be matched in each frame of the video to be identified.
然后,针对各个所述待识别视频,分别提取所述待识别视频对应的各个所述待匹配对象的待匹配特征信息,并分别获取各个所述待匹配特征信息与所述目标特征信息之间的第一相似度,及选取各个所述第一相似度中的最大相似度。具体地,针对各个所述待识别视频,首先,将所述待识别视频对应的各个所述待匹配对象分别输入预设的对象特征信息提取模型,得到各个所述待匹配对象的待匹配特征信息,然后,分别将所述目标特征信息和各个所述待匹配特征信息输入预设的特征向量提取模型,得到目标特征向量和多个待匹配特征向量,并分别计算所述目标特征向量和各个所述待匹配特征向量之间的第一相似度,最后,选取各个所述第一相似度中的最大相似度。其中,所述对象特征提取模型包括输入层、特征提取层和输出层,所述特征向量提取模型包括输入层、特征向量生成层和输出层。Then, for each of the videos to be identified, extract the feature information to be matched of each of the objects to be matched corresponding to the videos to be identified, obtain the first similarity between each of the feature information to be matched and the target feature information, and select the maximum similarity among the first similarities. Specifically, for each of the videos to be identified, first, input each of the objects to be matched corresponding to the videos to be identified into a preset object feature information extraction model to obtain the feature information to be matched of each of the objects to be matched, then input the target feature information and each of the feature information to be matched into a preset feature vector extraction model to obtain a target feature vector and multiple feature vectors to be matched, calculate the first similarity between the target feature vector and each of the feature vectors to be matched, and finally select the maximum similarity among the first similarities. Wherein, the object feature extraction model includes an input layer, a feature extraction layer, and an output layer, and the feature vector extraction model includes an input layer, a feature vector generation layer, and an output layer.
最后,针对各个所述待识别视频,将所述待识别视频对应的最大相似度与第一预设相似度进行比较,并在若所述最大相似度大于所述第一预设相似度时,确定所述待识别视频为目标视频。Finally, for each of the videos to be identified, the maximum similarity corresponding to the video to be identified is compared with a first preset similarity, and if the maximum similarity is greater than the first preset similarity, the video to be identified is determined to be a target video.
本实施例提供的方法,能够在多个所述待识别视频中准确地选择所述目标视频,有助于提高运动轨迹检测的准确性。The method provided in this embodiment can accurately select the target video from a plurality of videos to be identified, which helps to improve the accuracy of motion trajectory detection.
在一些实施例中,所述基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签,包括以下步骤:In some embodiments, determining the motion trajectory points of the target object in the monitoring area based on the target video and the pixel coordinate grid corresponding to the target video, and marking a time tag for each of the motion trajectory points, includes the following steps:
对所述目标视频进行分帧处理,得到所述目标视频对应的多个视频帧,并基于各个所述视频帧在所述目标视频中对应的时序,对各个所述视频帧标注时间标签;Performing frame processing on the target video to obtain a plurality of video frames corresponding to the target video, and marking a time tag on each of the video frames based on a time sequence corresponding to each of the video frames in the target video;
在多个所述视频帧中选择目标视频帧;其中,所述目标视频帧包括至少一个,所述目标视频帧的画面中包括所述目标对象;Selecting a target video frame from the plurality of video frames; wherein the target video frame includes at least one, and the target video frame includes the target object in its picture;
针对各个所述目标视频帧,获取所述目标对象在所述目标视频帧中对应的图像轮廓的中心点位置,并在所述目标视频帧上标注所述中心点位置;For each of the target video frames, obtaining the center point position of the image contour corresponding to the target object in the target video frame, and marking the center point position on the target video frame;
针对各个所述目标视频帧,将所述像素坐标网映射至进行了中心点位置标注的所述目标视频帧,以确定所述目标视频帧对应的中心点位置所处的像素对应的目标坐标点,并为所述目标坐标点标注所述目标视频帧对应的时间标签,及将标注了时间标签的所述目标坐标点作为所述目标视频帧对应的运动轨迹点。For each of the target video frames, the pixel coordinate grid is mapped to the target video frame with the center point position marked to determine the target coordinate point corresponding to the pixel at the center point position corresponding to the target video frame, and the target coordinate point is marked with the time tag corresponding to the target video frame, and the target coordinate point marked with the time tag is used as the motion trajectory point corresponding to the target video frame.
在本实施例中,首先,对所述目标视频进行分帧处理,得到所述目标视频对应的多个视频帧,并基于各个所述视频帧在所述目标视频中对应的时序,对各个所述视频帧标注时间标签。具体地,首先,利用视频处理软件对所述目标视频进行分帧处理,将所述目标视频分解成多个视频帧,然后,针对每个所述视频帧,获取所述视频帧的时序信息,并基于所述时序信息对所述视频帧标注时间标签。其中,所述视频处理软件可以为OpenCV或ffmpeg等视频处理软件。In this embodiment, first, the target video is subjected to frame processing to obtain a plurality of video frames corresponding to the target video, and a time tag is marked on each of the video frames based on the timing corresponding to each of the video frames in the target video. Specifically, first, the target video is subjected to frame processing using video processing software to decompose the target video into a plurality of video frames, and then, for each of the video frames, the timing information of the video frame is obtained, and a time tag is marked on the video frame based on the timing information. The video processing software may be OpenCV, ffmpeg or other video processing software.
然后,在多个所述视频帧中选择包括所述目标对象的视频帧为目标视频帧。Then, a video frame including the target object is selected from the plurality of video frames as a target video frame.
其次,针对各个所述目标视频帧,获取所述目标对象在所述目标视频帧中对应的图像轮廓的中心点位置,并在所述目标视频帧上标注所述中心点位置。具体地,针对各个所述目标视频帧,首先,利用边缘检测算法对所述目标视频帧中的所述目标对象进行边缘检测,得到所述目标对象的图像轮廓,然后,构建所述图像轮廓的外接圆,并将所述图像轮廓的外接圆的圆心作为所述图像轮廓的中心点位置,最后,在所述目标视频帧上标注所述中心点位置。Secondly, for each of the target video frames, the center point position of the image contour corresponding to the target object in the target video frame is obtained, and the center point position is marked on the target video frame. Specifically, for each of the target video frames, first, edge detection is performed on the target object in the target video frame using an edge detection algorithm to obtain the image contour of the target object, then a circumscribed circle of the image contour is constructed, and the center of the circumscribed circle of the image contour is used as the center point position of the image contour, and finally, the center point position is marked on the target video frame.
最后,针对各个所述目标视频帧,将所述像素坐标网映射至进行了中心点位置标注的所述目标视频帧,以确定所述目标视频帧对应的中心点位置所处的像素对应的目标坐标点,并为所述目标坐标点标注所述目标视频帧对应的时间标签,及将标注了时间标签的所述目标坐标点作为所述目标视频帧对应的运动轨迹点。可以理解地,一个所述目标视频帧对应一个所述运动轨迹点。Finally, for each target video frame, the pixel coordinate grid is mapped to the target video frame with the center point position marked, so as to determine the target coordinate point corresponding to the pixel at the center point position corresponding to the target video frame, and the target coordinate point is marked with the time tag corresponding to the target video frame, and the target coordinate point marked with the time tag is used as the motion trajectory point corresponding to the target video frame. It can be understood that one target video frame corresponds to one motion trajectory point.
本实施例提供的方法,通过对所述目标视频进行分帧处理,得到所述目标视频对应的多个视频帧,并获取每个所述视频帧上的所述目标对象的运动点轨迹,有助于准确地确定所述目标对象在所述监控区域的运动轨迹。The method provided in this embodiment obtains multiple video frames corresponding to the target video by performing frame processing on the target video, and obtains the motion point trajectory of the target object on each of the video frames, which helps to accurately determine the motion trajectory of the target object in the monitoring area.
在一些实施例中,所述基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹,包括以下步骤:In some embodiments, generating the target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and the time tags corresponding to each of the motion trajectory points includes the following steps:
将各个所述运动轨迹点标注在所述空间直角坐标系中;Marking each of the motion trajectory points in the spatial rectangular coordinate system;
基于各个所述运动轨迹点对应的时间标签将各个所述运动轨迹点依序连接,得到所述目标对象的初始运动轨迹;Connecting the motion trajectory points in sequence based on the time tags corresponding to the motion trajectory points to obtain an initial motion trajectory of the target object;
对所述初始运动轨迹进行平滑处理,得到中间运动轨迹;Smoothing the initial motion trajectory to obtain an intermediate motion trajectory;
基于各个所述运动轨迹点对应的时间标签在所述中间运动轨迹上标注所述目标对象在所述监控区域内的运动起点和运动终点,得到所述目标运动轨迹。The movement start point and the movement end point of the target object in the monitoring area are marked on the intermediate movement trajectory based on the time tags corresponding to the respective movement trajectory points, so as to obtain the target movement trajectory.
在本实施例中,首先,将各个所述运动轨迹点标注在所述空间直角坐标系中。具体地,将各个所述运动轨迹点对应的目标坐标点在所述空间直角坐标系中进行标注。In this embodiment, first, each of the motion trajectory points is marked in the spatial rectangular coordinate system. Specifically, the target coordinate point corresponding to each of the motion trajectory points is marked in the spatial rectangular coordinate system.
然后,基于各个所述运动轨迹点对应的时间标签将各个所述运动轨迹点依序连接,得到所述目标对象的初始运动轨迹。Then, the motion trajectory points are connected in sequence based on the time tags corresponding to the motion trajectory points to obtain the initial motion trajectory of the target object.
其次,对所述初始运动轨迹进行平滑处理,得到中间运动轨迹。具体地,可以采用移动平移法、贝叶斯滤波法或卡尔曼滤波法等方法对所述初始运动轨迹进行平滑处理。Secondly, the initial motion trajectory is smoothed to obtain an intermediate motion trajectory. Specifically, the initial motion trajectory can be smoothed by using a moving translation method, a Bayesian filtering method, a Kalman filtering method, or the like.
最后,基于各个所述运动轨迹点对应的时间标签在所述中间运动轨迹上标注所述目标对象在所述监控区域内的运动起点和运动终点,得到所述目标运动轨迹。Finally, based on the time tags corresponding to the various motion trajectory points, the motion start point and the motion end point of the target object in the monitoring area are marked on the intermediate motion trajectory to obtain the target motion trajectory.
本实施例提供的方法,一方面,通过将各个所述运动轨迹点在所述空间直角坐标系中进行标注,并基于各个所述运动轨迹点对应的时间标签将各个所述运动轨迹点依序连接,得到所述目标对象的初始运动轨迹,随后对所述初始运动轨迹进行平滑处理,可以获得连续且具有一定准确性的中间运动轨迹。这有助于对所述目标对象的运动轨迹进行更加精准的分析。另一方面,在所述中间运动轨迹上标注目标对象在监控区域内的运动起点和运动终点,使得分析人员可以清晰地了解所述目标对象在所述监控区域内的运动轨迹。The method provided in this embodiment, on the one hand, obtains the initial motion trajectory of the target object by marking each of the motion trajectory points in the spatial rectangular coordinate system, and sequentially connects each of the motion trajectory points based on the time tags corresponding to each of the motion trajectory points, and then smoothes the initial motion trajectory to obtain a continuous intermediate motion trajectory with a certain degree of accuracy. This helps to analyze the motion trajectory of the target object more accurately. On the other hand, the starting point and the end point of the target object in the monitoring area are marked on the intermediate motion trajectory, so that the analyst can clearly understand the motion trajectory of the target object in the monitoring area.
在一些实施例中,所述将所述目标运动轨迹存储至预设的数据库,包括以下步骤:In some embodiments, storing the target motion trajectory in a preset database comprises the following steps:
获取所述监控区域的区域标识和各个所述摄像头的摄像头标识;Obtaining an area identifier of the monitoring area and a camera identifier of each of the cameras;
基于各个所述摄像头标识对应的摄像头在所述监控区域内的位置将各个所述摄像头标识依序排列,得到摄像头标识序列;Arrange the camera identifiers in sequence based on the positions of the cameras corresponding to the camera identifiers in the monitoring area to obtain a camera identifier sequence;
针对所述区域标识的每个区域标识字符,构建一个空白集合;For each region identification character of the region identification, construct a blank set;
针对各个所述空白集合,分别获取所述空白集合对应的区域标识字符与所述摄像头标识序列的各个摄像头标识字符之间的第二相似度,并将各个所述第二相似度与第二预设相似度进行比较,及在所述第二相似度大于所述第二预设相似度时,将所述第二相似度对应的摄像头标识字符作为所述空白集合对应的目标摄像头标识字符;For each of the blank sets, respectively obtain a second similarity between the region identification character corresponding to the blank set and each camera identification character of the camera identification sequence, and compare each of the second similarities with a second preset similarity, and when the second similarity is greater than the second preset similarity, use the camera identification character corresponding to the second similarity as the target camera identification character corresponding to the blank set;
针对各个所述空白集合,基于所述空白集合对应的各个目标摄像头标识字符在所述摄像头标识序列中的排序,将各个所述空白集合对应的各个目标摄像头标识字符依序填入所述空白集合,得到待选集合;For each of the blank sets, based on the order of each of the target camera identification characters corresponding to the blank set in the camera identification sequence, each of the target camera identification characters corresponding to the blank set is sequentially filled into the blank set to obtain a to-be-selected set;
在所有所述待选集合中确定目标集合;所述目标集合对应最多的目标摄像头标识字符;Determine a target set from all the candidate sets; the target set corresponds to the most target camera identification characters;
基于所述目标集合对所述目标运动轨迹进行加密处理,并将进行加密处理后的所述目标运动轨迹存储至预设的数据库。The target motion trajectory is encrypted based on the target set, and the encrypted target motion trajectory is stored in a preset database.
本实施例提供的方法,通过所述区域标识和所述摄像头标识生成所述目标集合,并基于所述目标集合对所述目标运动轨迹进行加密处理,及将进行加密处理后的所述目标运动轨迹存储至预设的数据库。能够提高所述目标运动轨迹的安全性,防止所述目标运动轨迹被窃取,实现了对所述目标运动轨迹的有效管理。The method provided in this embodiment generates the target set through the area identifier and the camera identifier, encrypts the target motion trajectory based on the target set, and stores the encrypted target motion trajectory in a preset database. This can improve the security of the target motion trajectory, prevent the target motion trajectory from being stolen, and achieve effective management of the target motion trajectory.
请参阅图2,图2为本申请实施例提供的多摄像头检测运动轨迹的装置100的结构示意性框图,多摄像头检测运动轨迹的装置100用于检测监控区域内的目标对象的运动轨迹,所述监控区域设有多个摄像头,各个所述摄像头设于所述监控区域的不同位置,如图2所示,多摄像头检测运动轨迹的装置100,包括:Please refer to FIG. 2 , which is a schematic block diagram of the structure of a multi-camera motion trajectory detection device 100 provided in an embodiment of the present application. The multi-camera motion trajectory detection device 100 is used to detect the motion trajectory of a target object in a monitoring area. The monitoring area is provided with multiple cameras, and each of the cameras is provided at a different position of the monitoring area. As shown in FIG. 2 , the multi-camera motion trajectory detection device 100 includes:
构建模块110,用于以所述监控区域的指定点为坐标原点构建空间直角坐标系。The construction module 110 is used to construct a spatial rectangular coordinate system with the designated point of the monitoring area as the coordinate origin.
第一生成模块120,用于针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网。The first generating module 120 is configured to generate, for each of the cameras, a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system.
选择模块130,用于获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个。The selection module 130 is used to obtain multiple videos to be identified taken by multiple cameras, and select a target video from the multiple videos to be identified based on target feature information of the target object; wherein the target object appears in the target video, and the target video includes multiple videos.
确定模块140,用于针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签。The determination module 140 is used to determine, for each of the target videos, the motion trajectory points of the target object in the monitoring area based on the target video and the pixel coordinate grid corresponding to the target video, and mark each of the motion trajectory points with a time tag.
第二生成模块150,用于基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹。The second generating module 150 is configured to generate a target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and a time tag corresponding to each of the motion trajectory points.
存储模块160,用于将所述目标运动轨迹存储至预设的数据库。The storage module 160 is used to store the target motion trajectory in a preset database.
需要说明的是,所属技术领域的技术人员可以清楚了解到,为了描述的方便和简洁,上述描述的装置和各个模块的具体工作过程,可以参考前述多摄像头检测运动轨迹的方法实施例中的对应过程,在此不再赘述。It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned multi-camera motion trajectory detection method embodiment, and will not be repeated here.
上述实施例提供的多摄像头检测运动轨迹的装置100可以实现为一种计算机程序的形式,该计算机程序可以在如图3所示的终端设备200上运行。The apparatus 100 for detecting motion trajectories using multiple cameras provided in the above embodiment may be implemented in the form of a computer program, and the computer program may be run on a terminal device 200 as shown in FIG. 3 .
请参阅图3,图3为本申请实施例提供的终端设备200的结构示意性框图,终端设备200包括处理器201和存储器202,处理器201和存储器202通过系统总线203连接,其中,存储器202可以包括非易失性存储介质和内存储器。Please refer to Figure 3, which is a schematic block diagram of the structure of a terminal device 200 provided in an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a system bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.
非易失性存储介质可存储计算机程序。该计算机程序包括程序指令,该程序指令被处理器201执行时,可使得处理器201执行上述任一种多摄像头检测运动轨迹的方法。The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned methods for detecting motion trajectories using multiple cameras.
处理器201用于提供计算和控制能力,支撑整个终端设备200的运行。The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.
内存储器为非易失性存储介质中的计算机程序的运行提供环境,该计算机程序被处理器201执行时,可使得处理器201执行上述任一种多摄像头检测运动轨迹的方法。The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned methods for detecting motion trajectories using multiple cameras.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所涉及的终端设备200的限定,具体的终端设备200可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 3 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
应当理解的是,处理器201可以是中央处理单元 (Central Processing Unit,CPU),该处理器201还可以是其他通用处理器、数字信号处理器 (Digital SignalProcessor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
其中,在一些实施例中,处理器201用于运行存储在存储器中的计算机程序,以实现如下步骤:In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps:
以所述监控区域的指定点为坐标原点构建空间直角坐标系;Constructing a spatial rectangular coordinate system with the designated point of the monitoring area as the coordinate origin;
针对各个所述摄像头,基于所述摄像头的拍摄区域和所述直角坐标系生成所述摄像头的拍摄区域对应的像素坐标网;For each of the cameras, generating a pixel coordinate grid corresponding to the shooting area of the camera based on the shooting area of the camera and the rectangular coordinate system;
获取多个所述摄像头拍摄的多个待识别视频,并基于目标对象的目标特征信息在多个所述待识别视频中选择目标视频;其中,所述目标对象出现在所述目标视频中,所述目标视频包括多个;Acquire a plurality of videos to be identified taken by a plurality of the cameras, and select a target video from the plurality of videos to be identified based on target feature information of the target object; wherein the target object appears in the target video, and the target video includes a plurality of videos;
针对各个所述目标视频,基于所述目标视频和所述目标视频对应的像素坐标网确定所述目标对象在所述监控区域的运动轨迹点,并对各个所述运动轨迹点标注时间标签;For each of the target videos, determine the motion trajectory points of the target object in the monitoring area based on the target video and the pixel coordinate grid corresponding to the target video, and mark each of the motion trajectory points with a time tag;
基于各个所述运动轨迹点及各个所述运动轨迹点对应的时间标签生成所述目标对象在所述监控区域内的目标运动轨迹;Generate a target motion trajectory of the target object in the monitoring area based on each of the motion trajectory points and the time tag corresponding to each of the motion trajectory points;
将所述目标运动轨迹存储至预设的数据库。The target motion trajectory is stored in a preset database.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端设备200的具体工作过程,可以参考前述多摄像头检测运动轨迹的方法的对应过程,在此不再赘述。It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the terminal device 200 described above can refer to the corresponding process of the aforementioned multi-camera motion trajectory detection method, and will not be repeated here.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时使所述一个或多个处理器实现如本申请实施例提供的多摄像头检测运动轨迹的方法。An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the method for detecting motion trajectories with multiple cameras as provided in an embodiment of the present application.
其中,所述计算机可读存储介质可以是前述实施例终端设备200的内部存储单元,例如终端设备200的硬盘或内存。所述计算机可读存储介质也可以是终端设备200的外部存储设备,例如终端设备200配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410298624.XA CN117896626B (en) | 2024-03-15 | 2024-03-15 | Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410298624.XA CN117896626B (en) | 2024-03-15 | 2024-03-15 | Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117896626A true CN117896626A (en) | 2024-04-16 |
CN117896626B CN117896626B (en) | 2024-05-14 |
Family
ID=90641583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410298624.XA Active CN117896626B (en) | 2024-03-15 | 2024-03-15 | Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117896626B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118509719A (en) * | 2024-07-19 | 2024-08-16 | 深圳市积加创新技术有限公司 | Method and system for realizing multi-angle recording based on multiple cameras |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112686178A (en) * | 2020-12-30 | 2021-04-20 | 中国电子科技集团公司信息科学研究院 | Multi-view target track generation method and device and electronic equipment |
WO2021168809A1 (en) * | 2020-02-28 | 2021-09-02 | 深圳市大疆创新科技有限公司 | Tracking method, movable platform, apparatus, and storage medium |
CN113628243A (en) * | 2020-05-08 | 2021-11-09 | 广州海格通信集团股份有限公司 | Motion trajectory acquisition method and device, computer equipment and storage medium |
CN113850750A (en) * | 2020-06-10 | 2021-12-28 | 腾讯科技(深圳)有限公司 | Target track checking method, device, equipment and storage medium |
CN114741595A (en) * | 2022-04-12 | 2022-07-12 | 京东城市(北京)数字科技有限公司 | Information pushing method and device |
US20230351794A1 (en) * | 2020-06-29 | 2023-11-02 | Zte Corporation | Pedestrian tracking method and device, and computer-readable storage medium |
-
2024
- 2024-03-15 CN CN202410298624.XA patent/CN117896626B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021168809A1 (en) * | 2020-02-28 | 2021-09-02 | 深圳市大疆创新科技有限公司 | Tracking method, movable platform, apparatus, and storage medium |
CN113628243A (en) * | 2020-05-08 | 2021-11-09 | 广州海格通信集团股份有限公司 | Motion trajectory acquisition method and device, computer equipment and storage medium |
CN113850750A (en) * | 2020-06-10 | 2021-12-28 | 腾讯科技(深圳)有限公司 | Target track checking method, device, equipment and storage medium |
US20230351794A1 (en) * | 2020-06-29 | 2023-11-02 | Zte Corporation | Pedestrian tracking method and device, and computer-readable storage medium |
CN112686178A (en) * | 2020-12-30 | 2021-04-20 | 中国电子科技集团公司信息科学研究院 | Multi-view target track generation method and device and electronic equipment |
CN114741595A (en) * | 2022-04-12 | 2022-07-12 | 京东城市(北京)数字科技有限公司 | Information pushing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118509719A (en) * | 2024-07-19 | 2024-08-16 | 深圳市积加创新技术有限公司 | Method and system for realizing multi-angle recording based on multiple cameras |
Also Published As
Publication number | Publication date |
---|---|
CN117896626B (en) | 2024-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10963041B2 (en) | Gesture recognition using multi-sensory data | |
JP6430064B2 (en) | Method and system for aligning data | |
CN112950667B (en) | Video labeling method, device, equipment and computer readable storage medium | |
JP6464934B2 (en) | Camera posture estimation apparatus, camera posture estimation method, and camera posture estimation program | |
US9418480B2 (en) | Systems and methods for 3D pose estimation | |
CN107633526B (en) | Image tracking point acquisition method and device and storage medium | |
US9420265B2 (en) | Tracking poses of 3D camera using points and planes | |
US9953225B2 (en) | Image processing apparatus and image processing method | |
CN110111388B (en) | Three-dimensional object pose parameter estimation method and visual equipment | |
US11145080B2 (en) | Method and apparatus for three-dimensional object pose estimation, device and storage medium | |
WO2019042426A1 (en) | Augmented reality scene processing method and apparatus, and computer storage medium | |
JP2019509545A (en) | Live person face verification method and device | |
WO2021136386A1 (en) | Data processing method, terminal, and server | |
Lin et al. | Efficient detection and tracking of moving objects in geo-coordinates | |
CN110197149B (en) | Ear key point detection method and device, storage medium and electronic equipment | |
CN117896626B (en) | Method, device, equipment and storage medium for detecting motion trajectory with multiple cameras | |
JP6662382B2 (en) | Information processing apparatus and method, and program | |
CN111753766A (en) | Image processing method, device, equipment and medium | |
JP2014102805A (en) | Information processing device, information processing method and program | |
KR20140043159A (en) | Line tracking with automatic model initialization by graph matching and cycle detection | |
CN112184766B (en) | Object tracking method and device, computer equipment and storage medium | |
Gorovyi et al. | Advanced image tracking approach for augmented reality applications | |
CN111382650B (en) | Commodity shopping processing system, method and device and electronic equipment | |
CN113887384A (en) | Pedestrian trajectory analysis method, device, equipment and medium based on multi-trajectory fusion | |
Rao et al. | A heterogeneous feature-based image alignment method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250205 Address after: 5th Floor, Qingxiu Business Building, No. 100 Wuyun Road, High Speed Rail New City, Xiangcheng District, Suzhou City, Jiangsu Province, 215000 Patentee after: Helio (Suzhou) Technology Co.,Ltd. Country or region after: China Address before: 518000, 6th Floor, Building A, Vitality Treasure Factory, No. 31 North Gaoxin 6th Road, Songpingshan Community, Xili Street, Nanshan District, Shenzhen, Guangdong Province Patentee before: SHENZHEN HANKVISION TECHNOLOGY CO.,LTD. Country or region before: China |