CN112149660A - Gun recognition system - Google Patents
Gun recognition system Download PDFInfo
- Publication number
- CN112149660A CN112149660A CN202010767929.2A CN202010767929A CN112149660A CN 112149660 A CN112149660 A CN 112149660A CN 202010767929 A CN202010767929 A CN 202010767929A CN 112149660 A CN112149660 A CN 112149660A
- Authority
- CN
- China
- Prior art keywords
- gun
- firearm
- image
- information
- data
- 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
- 238000012545 processing Methods 0.000 claims abstract description 37
- 238000012216 screening Methods 0.000 claims abstract description 12
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000003384 imaging method Methods 0.000 claims description 18
- 238000004519 manufacturing process Methods 0.000 claims description 17
- 238000005286 illumination Methods 0.000 claims description 10
- 239000005337 ground glass Substances 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000012544 monitoring process Methods 0.000 claims description 4
- 230000000007 visual effect Effects 0.000 claims 1
- 238000000034 method Methods 0.000 abstract description 18
- 239000005338 frosted glass Substances 0.000 description 22
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 238000007792 addition Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000013456 study Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/28—Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/751—Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/09—Recognition of logos
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
本发明提出一种枪支识别系统,包括枪支信息采集分系统、枪支信息数据库、中央处理控制分系统;枪支信息采集分系统,用于采集枪支的数据,并将数据发送给中央处理控制分系统;枪支信息数据库,用于存储枪支的数据,并与中央处理控制分系统进行数据交互;中央处理控制分系统,用于进行管理和枪支识别。本方案能够针对各种不同的枪支进行识别,适用范围广,在具体的识别方法上,先通过轮廓图像的面积、周长、两点间最大距离等数据快速筛查数据库,然后结合轮廓图像的Hu矩匹配算法,进一步筛查数据库,最后检验人员对返回结果进行人工甄别鉴定,通过从直观到复杂、从机器到人工的结合,保证了识别的高效和准确。
The invention provides a gun identification system, which includes a gun information collection subsystem, a gun information database, and a central processing control subsystem; a gun information collection subsystem is used to collect the data of the gun and send the data to the central processing control subsystem; The firearms information database is used to store the data of firearms and to carry out data interaction with the central processing and control subsystem; the central processing and control subsystem is used for management and firearms identification. This scheme can identify a variety of different firearms, and has a wide range of applications. In terms of specific identification methods, the database is quickly screened by the area, perimeter, and maximum distance between two points of the contour image, and then combined with the contour image. The Hu moment matching algorithm further screens the database, and finally the inspectors conduct manual screening and identification of the returned results. Through the combination from intuitive to complex, and from machine to manual, the efficiency and accuracy of identification are ensured.
Description
技术领域technical field
本发明涉及枪支识别技术领域,特别涉及一种枪支识别系统。The invention relates to the technical field of gun identification, in particular to a gun identification system.
背景技术Background technique
枪支是强大的暴力工具,严格管控枪支是维护国家安全与社会稳定的重要需求。每年我国海关缴获大量非法走私入境的枪支(包括大杀伤力气枪)及枪弹,枪支及枪弹的快速准确识别和检验鉴定,对于案情的研判、分析、侦破非常重要。Guns are powerful tools of violence, and strict control of guns is an important requirement for maintaining national security and social stability. Every year, my country's customs seize a large number of illegally smuggled guns (including mass-destruction air guns) and bullets. The rapid and accurate identification and inspection of guns and bullets is very important for the study, analysis and detection of the case.
然而,缴获走私枪支的生产地不明,种类各异,型号众多,结构复杂,给枪支的识别鉴定带来了极大的困难,特别是近年来气动力枪支大量走私入境,海关人员对气枪甄别缺乏经验、相关部门缺乏完备的气枪数据库,枪支识别鉴定和管控面临新挑战。传统的单纯依靠人眼和经验进行枪支识别、鉴定已经不能满足新形势需求,亟需发展对枪支进行快速识别鉴定的新方法。目前,也存在一些技术方案来试图解决该技术问题:However, the production sites of the seized smuggled firearms are unknown, with various types, numerous models and complex structures, which have brought great difficulties to the identification and identification of firearms. Experience and relevant departments lack a complete airsoft database, and new challenges are faced in the identification, identification and control of firearms. The traditional firearm identification and identification relying solely on human eyes and experience can no longer meet the needs of the new situation, and it is urgent to develop a new method for rapid identification and identification of firearms. At present, there are also some technical solutions to try to solve this technical problem:
申请号为CN201811120409.1的发明专利,公开了一种枪支识别管理装置。包括壳体、控制器和射频识别器,所述壳体内部的底端活动安装有充电机构,所述壳体的内部固定安装有蓄电池,且蓄电池位于充电机构的顶端,所述壳体的内部固定安装有控制器,且控制器位于蓄电池的顶端,所述壳体内部的顶端固定安装有射频识别器,所述壳体的顶端活动安装有清洁机构,所述壳体表面的顶端固定安装有显示屏,所述壳体的表面固定安装有控制按钮,且控制按钮与控制器活动连接,所述壳体表面的底端活动安装有辅助机构。此外,申请号为CN200710090704.2的发明专利,提出了一种枪支识别管理系统。该系统是在枪支上安装信息卡,放置在信息读写手柄上进行枪支信息管理,该系统面包括枪支注册模块、枪支注销模块、枪支信息查询模块、人员注册模块、人员注销模块、人员信息查询模块、指纹借还枪模块、身份卡借还枪模块、借还枪信息查询模块。The invention patent with the application number CN201811120409.1 discloses a firearm identification management device. It includes a casing, a controller and a radio frequency identifier. The bottom end of the casing is movably installed with a charging mechanism. The interior of the casing is fixedly installed with a battery, and the battery is located at the top of the charging mechanism. The controller is fixedly installed, and the controller is located at the top of the battery, the top of the inside of the casing is fixedly installed with a radio frequency identifier, the top of the casing is movably installed with a cleaning mechanism, and the top of the casing surface is fixedly installed with a A display screen, a control button is fixedly installed on the surface of the casing, and the control button is movably connected with the controller, and an auxiliary mechanism is movably installed on the bottom end of the casing surface. In addition, the invention patent with the application number CN200710090704.2 proposes a gun identification management system. The system is to install an information card on the firearm and place it on the information read-write handle for firearm information management. The system includes a firearm registration module, a firearm cancellation module, a firearm information query module, a personnel registration module, a personnel cancellation module, and personnel information query. Module, fingerprint borrowing and returning gun module, identity card borrowing and returning gun module, borrowing and returning gun information query module.
具体的,申请号为CN201811120409.1的发明专利,是通过装置扫描到枪支表面所贴的电子标签获取枪支的信息,至于申请号为CN200710090704.2的发明专利,则是通过在枪支上放置信息卡、信息读取手柄读取信息卡获取枪支信息,这些方法不仅需要电子标签(信息卡)和电子标签(信息卡)读取装置,硬件成本增加,而且只能用于内部监管枪支的识别,无法应用于缴获非法枪支的识别,无法满足走私枪支的快速识别需求。Specifically, the invention patent with the application number CN201811120409.1 obtains the information of the gun by scanning the electronic label affixed on the surface of the gun with the device. As for the invention patent with the application number CN200710090704.2, it is obtained by placing an information card on the gun , The information reading handle reads the information card to obtain the gun information. These methods not only require the electronic label (information card) and the electronic label (information card) reading device, the hardware cost increases, and can only be used for the identification of internal supervision guns, and cannot be used. Applied to the identification of seized illegal firearms, it cannot meet the needs of rapid identification of smuggled firearms.
由此,目前需要一种更好的方案来解决该技术问题。Therefore, a better solution is currently required to solve this technical problem.
发明内容SUMMARY OF THE INVENTION
针对现有技术的缺陷,本发明提出了一种枪支识别系统,能够针对各种不同的枪支进行图形化的识别,在具体的识别方法上,先通过轮廓图像的面积、周长、两点间最大距离等数据快速筛查数据库,然后结合轮廓图像的Hu矩匹配算法,进一步筛查数据库,最后检验人员对返回结果进行人工甄别鉴定,通过从直观到复杂、从机器到人工的结合,保证了识别的高效和准确。In view of the defects of the prior art, the present invention proposes a firearm identification system, which can perform graphical identification of various firearms. In the specific identification method, the area, perimeter, and distance between two points of the contour image are first analyzed. The database is quickly screened with data such as the maximum distance, and then combined with the Hu moment matching algorithm of contour images, the database is further screened, and finally the inspection personnel manually screen and identify the returned results. Efficient and accurate identification.
具体的,本发明提出了以下具体的实施例:Specifically, the present invention proposes the following specific embodiments:
本发明实施例提出了一种枪支识别系统,包括枪支信息采集分系统、枪支信息数据库、中央处理控制分系统;其中,An embodiment of the present invention provides a gun identification system, including a gun information collection subsystem, a gun information database, and a central processing control subsystem; wherein,
所述枪支信息采集分系统,用于采集枪支的数据,并将所述数据发送给所述中央处理控制分系统;The gun information collection subsystem is used to collect the data of the gun and send the data to the central processing control subsystem;
所述枪支信息数据库,用于存储枪支的数据,并与所述中央处理控制分系统进行数据交互;The firearm information database is used to store firearm data and perform data interaction with the central processing control subsystem;
所述中央处理控制分系统,用于对待识别枪支在规定视角的轮廓图像进行二值化处理,得到二值化轮廓图像;The central processing control subsystem is used for binarizing the contour image of the gun to be identified at a specified viewing angle to obtain a binarized contour image;
根据拍摄所述轮廓图像的相机的焦距、所述相机与所述待识别枪支的距离确定尺寸系数;Determine the size coefficient according to the focal length of the camera that captures the contour image and the distance between the camera and the firearm to be identified;
确定所述二值化轮廓图像中枪支所占区域的面积、周长以及两点间最大距离;determining the area, perimeter and maximum distance between two points of the area occupied by the gun in the binarized contour image;
根据所述尺寸系数、所述面积、所述周长及所述两点间最大距离在所述枪支信息数据库中进行匹配;Matching in the firearm information database according to the size factor, the area, the perimeter and the maximum distance between the two points;
若匹配得到候选枪支数据集合,则对所述候选枪支数据集合中的各枪支以及所述待识别枪支进行二值化轮廓图像的Hu矩计算;If the candidate firearm data set is obtained by matching, the Hu moment calculation of the binarized contour image is performed on each firearm in the candidate firearm data set and the firearm to be identified;
基于所述Hu矩计算加权平方误差;Calculate a weighted squared error based on the Hu moments;
基于所述加权平方误差在所述候选枪支数据集合中筛选与所述待识别枪支的Hu矩匹配的枪支;Screening firearms matching the Hu moments of the firearms to be identified in the candidate firearms data set based on the weighted squared error;
若筛选得到筛选枪支集合,对所述筛选枪支集合中的枪支按照加权平方误差从低到高进行排序,并将排序后的枪支的数据返回给检验人员,以便检验人员进行人工鉴定。If the screening firearm set is obtained, the firearms in the screening firearm set are sorted according to the weighted square error from low to high, and the data of the sorted firearms are returned to the inspector, so that the inspector can perform manual identification.
在一个具体的实施例中,所述轮廓图像为轮廓灰度图像;In a specific embodiment, the outline image is an outline grayscale image;
所述二值化轮廓图像中灰度值为0的区域为枪支区域,灰度值为255的区域为背景区域;所述面积对应所述二值化轮廓图像中灰度值为0的所有像素点对应的区域大小;所述周长为所述二值化轮廓图像中灰度值为0的区域的边缘的长度积分;所述两点间最大距离为所述二值化轮廓图像中灰度值为0的像素点之间的最大距离;The area with a grayscale value of 0 in the binarized contour image is the gun area, and the area with a grayscale value of 255 is the background area; the area corresponds to all pixels with a grayscale value of 0 in the binarized contour image The size of the area corresponding to the point; the perimeter is the length integral of the edge of the area with a gray value of 0 in the binarized contour image; the maximum distance between the two points is the grayscale in the binarized contour image The maximum distance between pixels with a value of 0;
所述Hu矩是通过对轮廓二值化图像按照Hu矩定义计算得到的。The Hu moment is obtained by calculating the contour binarized image according to the definition of Hu moment.
在一个具体的实施例中,In a specific embodiment,
所述尺寸系数是基于以下公式来计算的:The size factor is calculated based on the following formula:
k=H/f;其中,k为尺寸系数;所述H为所述相机与所述待识别枪支在成像方向上的距离;所述f为所述相机的成像镜头焦距;k=H/f; wherein, k is the size coefficient; the H is the distance between the camera and the gun to be identified in the imaging direction; the f is the focal length of the imaging lens of the camera;
所述匹配是基于下述公式来进行的:The matching is based on the following formula:
其中, in,
所述待识别枪支的二值化轮廓图像的面积为S,所述待识别枪支的二值化轮廓图像的周长为C,所述待识别枪支的两点间最大距离为L;所述待识别枪支的尺寸系数为k;所述枪支信息数据库中的所述枪支的面积为S1,所述枪支的周长为C1,所述枪支的两点间最大距离为L1,所述枪支的尺寸系数为k1;γs、γC、γL分别为面积、周长、两点间最大距离的误差控制系数;The area of the binarized contour image of the firearm to be identified is S, the perimeter of the binarized contour image of the firearm to be identified is C, and the maximum distance between two points of the firearm to be identified is L; The size coefficient for identifying the gun is k; the area of the gun in the gun information database is S 1 , the perimeter of the gun is C 1 , the maximum distance between two points of the gun is L 1 , the gun The size coefficient of is k 1 ; γ s , γ C , γ L are the error control coefficients of area, perimeter, and maximum distance between two points, respectively;
所述加权平方误差是通过如下公式进行计算的:The weighted squared error is calculated by the following formula:
其中,所述候选枪支数据集合中的枪支的轮廓二值化图像的Hu矩为M;所述待识别枪支的轮廓二值化图像的Hu矩为N;k代表Hu矩不同分量;w为Hu矩不同分量的权重;WSE为加权平方误差;Wherein, the Hu moment of the contour binarized image of the firearm in the candidate firearm data set is M; the Hu moment of the contour binarized image of the firearm to be identified is N; k represents different components of the Hu moment; w is Hu The weights of different components of the moment; WSE is the weighted squared error;
筛选得到筛选枪支集合为所述候选枪支数据集合中符合WSE<WT的枪支集合,其中WT为预设阈值。The set of firearms obtained by screening is the set of firearms in the candidate firearm data set that conforms to WSE< WT , where WT is a preset threshold.
在一个具体的实施例中,所述枪支信息采集分系统包括:基础属性采集模块、轮廓图像采集模块、彩色图像采集模块及内载有信息采集软件的信息采集计算机。In a specific embodiment, the gun information collection subsystem includes: a basic attribute collection module, a contour image collection module, a color image collection module, and an information collection computer with information collection software.
在一个具体的实施例中,所述基础属性采集模块,用于采集枪支的基础属性信息;In a specific embodiment, the basic attribute collection module is used to collect basic attribute information of firearms;
所述基础属性信息包括以下一个或多个的任意组合:名称、型号、表面标识、LOGO文字描述、尺寸、口径、结构、种类、生产国信息、产商信息、生产年代。The basic attribute information includes any combination of one or more of the following: name, model, surface identification, LOGO text description, size, caliber, structure, type, production country information, manufacturer information, and production year.
在一个具体的实施例中,所述轮廓图像采集模块,用于采集枪支的轮廓图像。In a specific embodiment, the profile image acquisition module is used to acquire profile images of the firearm.
在一个具体的实施例中,所述彩色图像采集模块,用于采集枪支外观的彩色图像。In a specific embodiment, the color image acquisition module is used to acquire a color image of the appearance of the gun.
在一个具体的实施例中,所述轮廓图像采集模块或所述彩色图像采集模块为图像获取装置;In a specific embodiment, the contour image acquisition module or the color image acquisition module is an image acquisition device;
所述图像获取装置包括:可升降的支撑架、三维可调节支架、用于放置枪支的毛玻璃平板、高清彩色相机、背照光源、白光照明光源;其中,The image acquisition device includes: a liftable support frame, a three-dimensional adjustable support frame, a frosted glass plate for placing guns, a high-definition color camera, a backlight source, and a white light illumination source; wherein,
所述三维可调节支架设置在所述支撑架的顶部;the three-dimensional adjustable bracket is arranged on the top of the support frame;
所述毛玻璃平板水平设置在所述支撑架的中部;The frosted glass plate is horizontally arranged in the middle of the support frame;
所述背照光源设置在所述毛玻璃平板的下方,从下往上照射所述毛玻璃平板;The backlight light source is arranged below the frosted glass plate, and illuminates the frosted glass plate from bottom to top;
所述高清彩色相机以及所述白光照明光源均设置在所述三维可调节支架上。The high-definition color camera and the white light illumination light source are both arranged on the three-dimensional adjustable bracket.
在一个具体的实施例中,所述中央处理控制分系统包括:系统管理模块、枪支信息管理模块、枪支识别模块;其中,In a specific embodiment, the central processing control subsystem includes: a system management module, a firearm information management module, and a firearm identification module; wherein,
所述系统管理模块,用于账号与权限管理、系统状态监测、数据查询、报表管理;The system management module is used for account and authority management, system status monitoring, data query, and report management;
所述枪支信息管理模块,用于枪支信息的采集、数据传输、建档、添加、删除、修改、查询检索、统计;The firearm information management module is used for firearm information collection, data transmission, filing, addition, deletion, modification, query and retrieval, and statistics;
所述枪支识别模块,用于对待识别枪支进行识别。The firearm identification module is used for identifying firearms to be identified.
在一个具体的实施例中,所述枪支信息数据库存储的枪支的数据包括:序号、二值化轮廓图像、面积、周长、两点间最大距离、尺寸系数、彩色图像。In a specific embodiment, the gun data stored in the gun information database includes: serial number, binarized contour image, area, perimeter, maximum distance between two points, size coefficient, and color image.
在一个具体的实施例中,所述枪支信息数据库存储的枪支的数据还包括:枪支名称、型号、种类、结构、生产国、产商、生产年代、标识。In a specific embodiment, the firearm data stored in the firearm information database further includes: firearm name, model, type, structure, production country, manufacturer, production year, and identification.
以此,相较于现有技术,本发明具有如下效果:能够针对各种不同的枪支进行图形化的识别,适用范围广,在具体的识别方法上,先通过轮廓图像的面积、周长、两点间最大距离等数据快速筛查数据库,然后结合轮廓图像的Hu矩匹配算法,进一步筛查数据库,最后检验人员对返回结果进行人工甄别鉴定,通过从直观到复杂、从机器到人工的结合,保证了识别的高效和准确。Therefore, compared with the prior art, the present invention has the following effects: it can perform graphical identification for various guns, and has a wide range of applications. In terms of specific identification methods, the area, perimeter, The database is quickly screened with data such as the maximum distance between two points, and then combined with the Hu moment matching algorithm of contour images, the database is further screened, and finally the inspection personnel manually screen and identify the returned results. , to ensure the efficient and accurate identification.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提出的一种枪支识别系统的基本架构组成示意图;FIG. 1 is a schematic diagram of the basic structure of a gun identification system proposed by an embodiment of the present invention;
图2为本发明实施例提出的一种枪支识别系统中枪支信息采集分系统的基本架构组成示意图;2 is a schematic diagram of the basic structure of a gun information collection subsystem in a gun identification system proposed by an embodiment of the present invention;
图3为本发明实施例提出的一种枪支识别系统的中枪支轮廓图像的意图;FIG. 3 is a schematic diagram of a gun outline image in a gun identification system proposed by an embodiment of the present invention;
图4为本发明实施例提出的一种枪支识别系统中图像采集装置的结构示意图;4 is a schematic structural diagram of an image acquisition device in a gun identification system according to an embodiment of the present invention;
图5为本发明实施例提出的一种枪支识别系统中的中央处理控制分系统基本组成框架;FIG. 5 is a basic composition framework of a central processing control subsystem in a gun identification system proposed by an embodiment of the present invention;
图6为本发明实施例提出的一种枪支识别系统中枪支信息数据的格式定义的示意图。FIG. 6 is a schematic diagram of the format definition of gun information data in a gun identification system according to an embodiment of the present invention.
具体实施方式Detailed ways
在下文中,将更全面地描述本公开的各种实施例。本公开可具有各种实施例,并且可在其中做出调整和改变。然而,应理解:不存在将本公开的各种实施例限于在此公开的特定实施例的意图,而是应将本公开理解为涵盖落入本公开的各种实施例的精神和范围内的所有调整、等同物和/或可选方案。Hereinafter, various embodiments of the present disclosure will be described more fully. The present disclosure is capable of various embodiments, and adaptations and changes may be made therein. It should be understood, however, that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but the present disclosure should be construed to cover various embodiments falling within the spirit and scope of the present disclosure. All adjustments, equivalents and/or alternatives.
在本公开的各种实施例中使用的术语仅用于描述特定实施例的目的并且并非意在限制本公开的各种实施例。如在此所使用,单数形式意在也包括复数形式,除非上下文清楚地另有指示。除非另有限定,否则在这里使用的所有术语(包括技术术语和科学术语)具有与本公开的各种实施例所属领域普通技术人员通常理解的含义相同的含义。所述术语(诸如在一般使用的词典中限定的术语)将被解释为具有与在相关技术领域中的语境含义相同的含义并且将不被解释为具有理想化的含义或过于正式的含义,除非在本公开的各种实施例中被清楚地限定。The terminology used in the various embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the various embodiments of the present disclosure. As used herein, the singular is intended to include the plural as well, unless the context clearly dictates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this disclosure belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless explicitly defined in various embodiments of the present disclosure.
实施例Example
本发明实施例公开了一种枪支识别系统,如图1所示,包括枪支信息采集分系统、枪支信息数据库、中央处理控制分系统;其中,An embodiment of the present invention discloses a gun identification system, as shown in FIG. 1 , including a gun information collection subsystem, a gun information database, and a central processing control subsystem; wherein,
所述枪支信息采集分系统,用于采集枪支的数据,并将所述数据发送给所述中央处理控制分系统;The gun information collection subsystem is used to collect the data of the gun and send the data to the central processing control subsystem;
所述枪支信息数据库,用于存储枪支的数据,并与所述中央处理控制分系统进行数据交互;The firearm information database is used to store firearm data and perform data interaction with the central processing control subsystem;
具体的,如图1所示,系统主要由枪支信息采集分系统、中央处理控制分系统、枪支信息数据库组成。枪支信息采集分系统负责采集枪支的基础信息和二维图像,并将这些数据传送到中央处理控制分系统。枪支信息数据库负责存储枪支信息,并与中央处理控制分系统进行信息交换。Specifically, as shown in Figure 1, the system is mainly composed of a gun information collection subsystem, a central processing control subsystem, and a gun information database. The gun information collection subsystem is responsible for collecting the basic information and two-dimensional images of guns, and transmits these data to the central processing control subsystem. The firearm information database is responsible for storing firearm information and exchanging information with the central processing control subsystem.
中央处理控制分系统负责信息处理及管理控制,是进行枪支识别鉴定以及协调控制各分系统工作的中枢。具体的,中央处理控制分系统用于执行以下功能:The central processing and control sub-system is responsible for information processing and management control, and is the center for the identification and identification of firearms and the coordination and control of the sub-systems. Specifically, the central processing control subsystem is used to perform the following functions:
功能1、枪支的识别鉴定,具体的,枪支信息采集分系统采集待识别枪支的轮廓图像,并将轮廓图像传送到中央处理控制分系统,中央处理控制分系统按照智能分析流程和算法,对轮廓图像进行处理和特征提取,并对枪支信息数据库进行检索比对,如果比对成功,则返回匹配枪支的具体信息,然后检验人员通过观察分析匹配枪支的彩色图像,肉眼甄别鉴定匹配枪支与待识别枪支是否相符合,如果符合则判断识别成功,否则判断数据库中无此枪支数据。Function 1. Identification and identification of guns. Specifically, the gun information collection subsystem collects the contour images of the guns to be identified, and transmits the contour images to the central processing control subsystem. The central processing control subsystem analyzes the contour according to the intelligent analysis process and algorithm. The image is processed and feature extraction is performed, and the firearm information database is retrieved and compared. If the comparison is successful, the specific information of the matched firearm will be returned, and then the inspector will observe and analyze the color image of the matched firearm, and visually identify the matched firearm and the to-be-identified firearm. Whether the firearm matches, if it matches, it is judged that the identification is successful, otherwise it is judged that there is no such firearm data in the database.
功能2、枪支信息管理。包括枪支信息采集、数据库建立、数据完善、数据修改、数据删除、数据查询、数据统计以及其他的涉枪信息管理。Function 2. Gun information management. Including gun information collection, database establishment, data improvement, data modification, data deletion, data query, data statistics and other gun-related information management.
具体的,枪支识别方法的基本流程为:获取待识别枪支在规定视角的轮廓图像,对其进行二值化处理,得到枪支的二值化轮廓图像。根据拍摄时相机的高度比例关系,计算尺寸系数k。计算二值化轮廓图像的枪支所占区域的面积S、周长C、两点间最大距离L。对枪支信息数据库进行检索和比对,挑选与面积S、周长C、两点间最大距离L匹配的枪支数据,形成候选枪支数据集合A。若A不为空,计算待识别枪支和候选枪支的Hu矩,并计算加权平方误差WSE。建立WSE<阈值WT的枪支集合B。若B不为空,将枪支按照WSE从低到高排列并依序返回,检验人员通过观察分析匹配枪支的彩色图像,肉眼甄别鉴定匹配枪支与待识别枪支是否相符合,如果判断相符合,则识别成功,如果所有枪支都不符合,则判断数据库中无待识别枪支数据。Specifically, the basic process of the firearm identification method is as follows: obtaining a contour image of the firearm to be identified at a specified viewing angle, and performing a binarization process on it to obtain a binarized contour image of the firearm. Calculate the size factor k according to the height ratio of the camera at the time of shooting. Calculate the area S, perimeter C, and maximum distance L between two points of the area occupied by the gun in the binarized contour image. The firearms information database is retrieved and compared, and the firearms data matching the area S, the perimeter C, and the maximum distance L between the two points are selected to form the candidate firearms data set A. If A is not empty, calculate the Hu moments of the firearm to be identified and the candidate firearm, and calculate the weighted squared error WSE. Build a set B of guns with WSE < threshold WT . If B is not empty, arrange the guns according to the WSE from low to high and return them in sequence. The inspectors can visually identify whether the matching guns match the to-be-identified guns by observing and analyzing the color images of the matching guns. If they match, then If the identification is successful, if all the firearms do not match, it is judged that there is no firearm data to be identified in the database.
具体的,以识别枪支为例,所述中央处理控制分系统,用于对待识别枪支在规定视角的轮廓图像进行二值化处理,得到二值化轮廓图像;具体的,所述轮廓图像为轮廓灰度图像;所述二值化轮廓图像中灰度值为0的区域为枪支区域,灰度值为255的区域为背景区域;所述面积对应所述二值化轮廓图像中灰度值为0的所有像素点对应的区域大小;所述周长为所述二值化轮廓图像中灰度值为0的区域的边缘的长度积分;所述两点间最大距离为所述二值化轮廓图像中灰度值为0的像素点之间的最大距离;Specifically, taking the identification of firearms as an example, the central processing control subsystem is used to perform binarization processing on the contour image of the firearm to be identified at a specified viewing angle to obtain a binarized contour image; specifically, the contour image is a contour Grayscale image; the area with the grayscale value of 0 in the binarized contour image is the gun area, and the area with the grayscale value of 255 is the background area; the area corresponds to the grayscale value in the binarized contour image. The size of the region corresponding to all pixels of 0; the perimeter is the length integral of the edge of the region with a gray value of 0 in the binarized contour image; the maximum distance between the two points is the binarized contour The maximum distance between pixels with a gray value of 0 in the image;
根据拍摄所述轮廓图像的相机的焦距、所述相机与所述待识别枪支的距离确定尺寸系数;Determine the size coefficient according to the focal length of the camera that captures the contour image and the distance between the camera and the firearm to be identified;
具体的,所述尺寸系数是基于以下公式来计算的:Specifically, the size factor is calculated based on the following formula:
k=H/f;其中,k为尺寸系数;所述H为所述相机与所述待识别枪支在成像方向上的距离;所述f为所述相机的成像镜头焦距;k=H/f; wherein, k is the size coefficient; the H is the distance between the camera and the gun to be identified in the imaging direction; the f is the focal length of the imaging lens of the camera;
确定所述二值化轮廓图像中枪支所占区域的面积、周长以及两点间最大距离;determining the area, perimeter and maximum distance between two points of the area occupied by the gun in the binarized contour image;
根据所述尺寸系数、所述周长、所述面积及所述两点间最大距离在所述枪支信息数据库中进行匹配;matching in the firearm information database according to the size factor, the perimeter, the area and the maximum distance between the two points;
若匹配得到候选枪支数据集合,则对所述候选枪支数据集合中的各枪支以及所述待识别枪支进行二值化轮廓图像的Hu矩计算;具体的,所述Hu矩是通过对轮廓二值化图像按照Hu矩定义计算得到的;If the candidate firearm data set is obtained by matching, the Hu moment calculation of the binarized contour image is performed on each firearm in the candidate firearm data set and the firearm to be identified; The transformed image is calculated according to the definition of Hu moment;
基于所述Hu矩计算加权平方误差;Calculate a weighted squared error based on the Hu moments;
其中,所述匹配是基于下述公式来进行的:Wherein, the matching is based on the following formula:
其中, in,
所述待识别枪支的二值化轮廓图像的面积为S,所述待识别枪支的二值化轮廓图像的周长为C,所述待识别枪支的两点间最大距离为L;所述待识别枪支的尺寸系数为k;所述枪支信息数据库中的所述枪支的面积为S1,所述枪支的周长为C1,所述枪支的两点间最大距离为L1,所述枪支的尺寸系数为k1;γs、γC、γL分别为面积、周长、两点间最大距离的误差控制系数;The area of the binarized contour image of the firearm to be identified is S, the perimeter of the binarized contour image of the firearm to be identified is C, and the maximum distance between two points of the firearm to be identified is L; The size coefficient for identifying the gun is k; the area of the gun in the gun information database is S 1 , the perimeter of the gun is C 1 , the maximum distance between two points of the gun is L 1 , the gun The size coefficient of is k 1 ; γ s , γ C , γ L are the error control coefficients of area, perimeter, and maximum distance between two points, respectively;
所述加权平方误差是通过如下公式进行计算的:The weighted squared error is calculated by the following formula:
其中,所述候选枪支数据集合中的枪支的轮廓二值化图像的Hu矩为M;所述待识别枪支的轮廓二值化图像的Hu矩为N;k代表Hu矩不同分量;w为Hu矩不同分量的权重;WSE为加权平方误差;Wherein, the Hu moment of the contour binarized image of the firearm in the candidate firearm data set is M; the Hu moment of the contour binarized image of the firearm to be identified is N; k represents different components of the Hu moment; w is Hu The weights of different components of the moment; WSE is the weighted squared error;
筛选得到筛选枪支集合为所述候选枪支数据集合中符合WSE<WT的枪支集合,其中WT为预设阈值。若筛选得到筛选枪支集合,对所述筛选枪支集合中的枪支按照加权平方误差从低到高进行排序,并将排序后的枪支的数据返回给检验人员,以便检验人员进行人工鉴定。The set of firearms obtained by screening is the set of firearms in the candidate firearm data set that conforms to WSE< WT , where WT is a preset threshold. If the screening firearm set is obtained, the firearms in the screening firearm set are sorted according to the weighted square error from low to high, and the data of the sorted firearms are returned to the inspector, so that the inspector can perform manual identification.
在实际的过程中,对于待识别的枪支,在枪支信息采集分系统上进行基础属性信息、轮廓图像、彩色图像的采集。如果轮廓图像是彩色相机拍摄的,则先将彩色图像转化为灰度图像。对于轮廓灰度图像,设计合适的阈值T,使得灰度值大于等于T的像素点,灰度值重新设为255;至于灰度值小于T的像素点,灰度值重新设为0;从而得到一幅二值化轮廓图像p。图像中枪支区域的灰度值为0,其余背景为255。阈值T根据经验进行选取。轮廓图像采集相机的成像镜头焦距为f,相机与枪支在成像方向上的距离为H,计算尺寸系数k=H/f。对二值化轮廓图像,计算枪支区域的面积S、周长C、两点间最大距离L。面积S定义为图像中所有灰度值为0的像素点数之和,周长C定义为图像中灰度值为0的区域的边缘的长度积分,两点间最大距离L定义为图像中灰度值为0的像素点之间的最大距离。In the actual process, for the firearms to be identified, basic attribute information, contour images and color images are collected on the firearms information collection subsystem. If the contour image was taken with a color camera, first convert the color image to grayscale. For contour grayscale images, an appropriate threshold T is designed, so that the grayscale value of pixels whose grayscale value is greater than or equal to T is reset to 255; as for the pixels whose grayscale value is less than T, the grayscale value is reset to 0; thus Obtain a binarized contour image p. The grayscale value of the gun area in the image is 0, and the rest of the background is 255. The threshold value T is selected according to experience. The focal length of the imaging lens of the contour image acquisition camera is f, the distance between the camera and the gun in the imaging direction is H, and the size coefficient k=H/f is calculated. For the binarized contour image, calculate the area S, perimeter C, and maximum distance L between two points of the gun area. The area S is defined as the sum of all pixels with a gray value of 0 in the image, the perimeter C is defined as the length integral of the edge of the area with a gray value of 0 in the image, and the maximum distance L between two points is defined as the gray level in the image. The maximum distance between pixels with a value of 0.
对枪支信息数据库中的枪支数据进行检索,检索枪支的面积为S1,枪支的周长为C1,两点间最大距离为L1,尺寸系数为k1。寻找满足如下关系的枪支数据:其中,γs、γC、γL分别为面积、周长、两点间最大距离的误差控制系数,主要是考虑到枪支零部件的加工误差、枪支的装配误差、磨损误差、图像采集和计算误差等的影响。阈值γS、γC和γL根据经验进行选取。The firearm data in the firearms information database is retrieved. The area of the firearm to be retrieved is S 1 , the perimeter of the firearm is C 1 , the maximum distance between two points is L 1 , and the size coefficient is k 1 . Find gun data that satisfy the following relationship: Among them, γ s , γ C , γ L are the error control coefficients of area, perimeter, and the maximum distance between two points, respectively, mainly considering the processing error of gun parts, gun assembly error, wear error, image acquisition and calculation. effects of errors, etc. The thresholds γ S , γ C and γ L are chosen empirically.
通过以上方法,寻找与待识别的枪支的面积S、面积C、区域内两点间最大距离L匹配的枪支数据集合,记为A。如果A为空,说明枪支信息数据库中不存在与待识别枪支的面积、周长、区域内两点间最大距离匹配的枪支,判断没有与待识别枪支匹配的枪支,并返回结果。如果A不为空,对集合内的每种枪支,读取其轮廓二值化图像m对其求取Hu矩。Hu矩由图像的二阶及三阶中心矩计算得到,具有图像缩放、平移、旋转、镜像不变性。Hu矩一共有7个:M={M1,M2,M3,M4,M5,M6,M7}。对待识别枪支,读取其轮廓二值化图像n,对其求取Hu矩:N={N1,N2,N3,N4,N5,N6,N7}。计算M和N的加权平方误差Through the above method, find the firearm data set that matches the area S, area C, and maximum distance L between two points in the area of the firearm to be identified, denoted as A. If A is empty, it means that there is no gun in the gun information database that matches the area, perimeter, and the maximum distance between the two points in the area. It is judged that there is no gun that matches the gun to be identified, and the result is returned. If A is not empty, for each gun in the set, read its contour binarized image m to obtain the Hu moment. The Hu moment is calculated from the second-order and third-order central moments of the image, and has image scaling, translation, rotation, and mirror image invariance. There are altogether 7 Hu moments: M={M 1 , M 2 , M 3 , M 4 , M 5 , M 6 , M 7 }. For the gun to be identified, read its contour binarized image n, and obtain the Hu moment for it: N={N 1 , N 2 , N 3 , N 4 , N 5 , N 6 , N 7 }. Calculate the weighted squared error of M and N
所述候选枪支数据集合中的枪支的轮廓二值化图像的Hu矩为M;所述待识别枪支的轮廓二值化图像的Hu矩为N;k代表Hu矩不同分量;w为Hu矩不同分量的权重;WSE为加权平方误差;对集合A中的所有枪支计算加权平方误差WSE。设计合适的阈值WT,建立WSE<WT的枪支集合B。如果B为空,说明枪支信息数据库中不存在与待识别枪支的二值化轮廓图像的Hu矩匹配的枪支,判断没有与待识别枪支匹配的枪支,并返回结果。阈值WT根据经验进行选取。如果B不为空,将B中的枪支按照WSE从低到高进行排序,并依序返回详细信息。The Hu moment of the contour binarized image of the guns in the candidate gun data set is M; the Hu moment of the contour binarized image of the gun to be identified is N; k represents different components of Hu moments; w is different Hu moments The weights of the components; WSE is the weighted squared error; the weighted squared error WSE is calculated for all guns in set A. Design an appropriate threshold WT to establish a gun set B with WSE< WT . If B is empty, it means that there is no firearm in the firearm information database that matches the Hu moment of the binarized contour image of the firearm to be identified, judges that there is no firearm that matches the firearm to be identified, and returns the result. The threshold WT is selected according to experience. If B is not empty, sort the guns in B by WSE from low to high, and return the detailed information in order.
最后由检验人员对返回来的枪支信息进行人工甄别鉴定,人工甄别鉴定的方法是观察返回来枪支的正反面高分辨率彩色图像,与待识别枪支的正反面高分辨率彩色图像,判断是否属于同一种枪支。如果判断属于同一种枪支,则识别比对成功,如若判断所有返回来的枪支都与待识别枪支不符合,则数据库中不存在待识别枪支信息。Finally, the inspectors conduct manual identification and identification of the returned firearm information. The method of manual identification and identification is to observe the high-resolution color images of the front and back of the returned firearm, and the high-resolution color images of the front and back of the firearm to be identified to determine whether it belongs to The same gun. If it is determined that they belong to the same type of firearms, the identification and comparison are successful. If it is determined that all the returned firearms do not match the firearms to be identified, there is no firearms information to be identified in the database.
以下针对整个枪支识别系统的各个部分来进行说明,所述枪支信息采集分系统包括:基础属性采集模块、轮廓图像采集模块、彩色图像采集模块及内载有信息采集软件的信息采集计算机。其中,所述基础属性采集模块,用于采集枪支的基础属性信息;所述基础属性信息包括以下一个或多个的任意组合:名称、型号、表面标识、LOGO文字描述、尺寸、口径、结构、种类、生产国信息、产商信息、生产年代。至于所述轮廓图像采集模块,用于采集枪支的轮廓图像。所述彩色图像采集模块,用于采集枪支外观的彩色图像。The following describes each part of the entire gun identification system. The gun information collection subsystem includes: a basic attribute collection module, a contour image collection module, a color image collection module, and an information collection computer with information collection software. Wherein, the basic attribute collection module is used to collect the basic attribute information of the gun; the basic attribute information includes any combination of one or more of the following: name, model, surface identification, LOGO text description, size, caliber, structure, Type, country of manufacture information, manufacturer information, production year. As for the profile image acquisition module, it is used to acquire profile images of guns. The color image acquisition module is used for acquiring color images of the appearance of the gun.
枪支信息采集分系统主要由基础属性采集模块、轮廓图像采集模块、彩色图像采集模块以及信息采集计算机、信息采集软件组成。如附图2所示。其中,基础属性信息采集模块负责采集枪支的基础属性信息,例如枪支的名称、型号、表面标识、LOGO文字描述、尺寸、口径、结构、种类、生产国、产商、生产年代等。上述信息对于待采集枪支,有些是已知的,有些是未知的,例如对于缴获的非法枪支,这些信息可能大部分都是未知的,而对于监管枪支建库,大部分信息可能是已知的。所以信息的采集是选择性的(能确定就采集,不能确定就不采集)。The gun information collection subsystem is mainly composed of basic attribute collection module, contour image collection module, color image collection module, information collection computer and information collection software. As shown in Figure 2. Among them, the basic attribute information collection module is responsible for collecting the basic attribute information of the gun, such as the name, model, surface identification, LOGO text description, size, caliber, structure, type, production country, manufacturer, production age, etc. of the gun. For the firearms to be collected, some of the above information is known and some is unknown. For example, for the seized illegal firearms, most of the information may be unknown, while for the supervision of firearms, most of the information may be known. . Therefore, the collection of information is selective (collect it if it can be determined, and not if it cannot be determined).
轮廓图像采集模块负责采集枪支的轮廓图像。所谓轮廓图像,就是采用背照式照明成像方式,对枪支表面进行成像,图像中被枪支遮挡区域将几乎全黑,而没有被遮挡区域则几乎全亮。如附图3所示为枪支轮廓图像的示例。轮廓图像采集模块主要包括背照光源、毛玻璃平板、三维可调节支架、高清相机。待采集枪支放置在毛玻璃平板上,背照光源安装在毛玻璃平板下方,从毛玻璃平板下方向上照射。背照光源可以为单个大面积光源,也可以为照明光源阵列。高清相机从毛玻璃平板上方朝下对枪支进行成像。相机安装在三维可调节支架上,可在平行毛玻璃平板方向做二维调节,在垂直毛玻璃平板方向做一维调节。通过在平行毛玻璃的方向调节相机的位置,使枪支基本位于相机成像视场中心,通过在垂直毛玻璃的方向调节相机的位置,使枪支充满相机大部分成像视场。高清相机由大景深成像镜头、大面阵高像素分辨率工业相机组成。工业相机可以为黑白相机,也可以为彩色相机。The contour image acquisition module is responsible for acquiring the contour image of the gun. The so-called contour image is to use the back-illuminated illumination imaging method to image the surface of the gun. The area covered by the gun in the image will be almost completely dark, while the area not covered by the gun will be almost completely bright. An example of a gun profile image is shown in Figure 3. The contour image acquisition module mainly includes a backlight source, a frosted glass plate, a three-dimensional adjustable bracket, and a high-definition camera. The guns to be collected are placed on the frosted glass plate, and the backlight light source is installed under the frosted glass plate to illuminate upwards from the bottom of the frosted glass plate. The backlight source can be a single large-area light source or an array of illumination light sources. The high-definition camera images the gun from above the frosted glass plate facing down. The camera is installed on a three-dimensional adjustable bracket, which can be adjusted in two dimensions in the direction parallel to the ground glass plate and one-dimensional adjustment in the direction perpendicular to the ground glass plate. By adjusting the position of the camera in the direction parallel to the frosted glass, the gun is basically located in the center of the imaging field of view of the camera, and by adjusting the position of the camera in the direction perpendicular to the frosted glass, the gun fills most of the imaging field of view of the camera. The high-definition camera consists of a large depth-of-field imaging lens and a large area array high-pixel resolution industrial camera. Industrial cameras can be black and white cameras or color cameras.
彩色图像采集模块负责采集枪支外观的彩色图像。彩色图像采集模块主要包括白光照明光源、底板、三维可调节支架、高清彩色相机。待采集枪支放置在底板上,白光照明光源从底板上方朝下照射,高清彩色相机从底板上方朝下对枪支进行成像。彩色相机安装在三维可调节支架上,可在平行底板方向做二维调节,在垂直底板方向做一维调节。通过在平行底板的方向调节相机的位置,使枪支基本位于相机成像视场中心,通过在垂直底板的方向调节相机的位置,使枪支充满相机大部分成像视场。高清彩色相机由大景深成像镜头、大面阵高像素分辨率彩色工业相机组成。The color image acquisition module is responsible for acquiring color images of the appearance of the gun. The color image acquisition module mainly includes a white light illumination source, a base plate, a three-dimensional adjustable bracket, and a high-definition color camera. The guns to be collected are placed on the bottom plate, the white light source illuminates downward from the top of the bottom plate, and the high-definition color camera images the guns from above the bottom plate. The color camera is installed on a three-dimensional adjustable bracket, which can be adjusted in two dimensions in the direction parallel to the bottom plate and one-dimensional adjustment in the direction perpendicular to the bottom plate. By adjusting the position of the camera in the direction parallel to the base plate, the gun is basically located in the center of the imaging field of view of the camera, and by adjusting the position of the camera in the direction of the vertical base plate, the gun fills most of the imaging field of view of the camera. The high-definition color camera consists of a large depth-of-field imaging lens and a large area array high-pixel resolution color industrial camera.
在一个具体的实施例中,所述轮廓图像采集模块与所述彩色图像采集模块可以合二为一,所述轮廓图像采集模块或所述彩色图像采集模块为图像获取装置;所述图像获取装置包括:可升降的支撑架、三维可调节支架、用于放置枪支的毛玻璃平板、高清彩色相机、背照光源、白光照明光源;其中所述三维可调节支架设置在所述支撑架的顶部(具体的支撑架本身可升降,而三维可调节支架也可升降);所述毛玻璃平板水平设置在所述支撑架的中部;所述背照光源设置在所述毛玻璃平板的下方,从下往上照射所述毛玻璃平板;所述高清彩色相机以及所述白光照明光源均设置在所述三维可调节支架上。In a specific embodiment, the contour image acquisition module and the color image acquisition module may be combined into one, and the contour image acquisition module or the color image acquisition module is an image acquisition device; the image acquisition device Including: a liftable support frame, a three-dimensional adjustable support frame, a frosted glass plate for placing guns, a high-definition color camera, a backlight source, and a white light illumination source; wherein the three-dimensional adjustable support frame is arranged on the top of the support frame (specifically The support frame itself can be raised and lowered, and the three-dimensional adjustable support can also be raised and lowered); the frosted glass plate is horizontally arranged in the middle of the support frame; the backlight light source is arranged below the frosted glass plate, illuminating from bottom to top The frosted glass plate; the high-definition color camera and the white light illumination source are all arranged on the three-dimensional adjustable bracket.
本发明提出的图像获取装置将轮廓图像采集模块和彩色图像采集模块合二为一。图像获取装置结构如附图4所示。图像采集装置由支撑架、毛玻璃平板、背照光源、白光照明光源、三维可调节支架、高清彩色相机组成。待采集枪支放置在毛玻璃平板中央。背照光源位于毛玻璃平板下方,从下方往上照射毛玻璃平板。高清彩色相机安装在三维可调节支架上,三维可调节支架可在平行毛玻璃平板方向进行二维调节,从而调节相机的视场中心位置,可在垂直毛玻璃平板方向进行一维调节,从而调节毛玻璃平板在相机的成像区域大小。通过三维可调节支架调整相机的位置,使枪支基本位于相机成像中心并充满大部分视场。两个白光照明光源也安装在三维可调节支架上,分别位于高清彩色相机两侧,从上方朝下照射毛玻璃平板。三维可调节支架的调节位置可以通过刻度读数获得。The image acquisition device proposed by the present invention combines a contour image acquisition module and a color image acquisition module into one. The structure of the image acquisition device is shown in FIG. 4 . The image acquisition device is composed of a support frame, a frosted glass plate, a backlight source, a white light illumination source, a three-dimensional adjustable bracket, and a high-definition color camera. The gun to be collected is placed in the center of the frosted glass plate. The backlight source is located under the frosted glass plate, and illuminates the frosted glass plate from below. The high-definition color camera is installed on a three-dimensional adjustable bracket. The three-dimensional adjustable bracket can be adjusted in two dimensions in the direction parallel to the ground glass plate, so as to adjust the center position of the camera's field of view, and can be adjusted in one dimension in the direction perpendicular to the ground glass plate to adjust the ground glass plate. The size of the imaging area of the camera. The position of the camera is adjusted by the three-dimensional adjustable bracket so that the gun is substantially centered on the camera's imaging and fills most of the field of view. Two white light illumination sources are also installed on the three-dimensional adjustable bracket, located on both sides of the high-definition color camera, and illuminate the frosted glass plate from above. The adjustment position of the three-dimensional adjustable bracket can be obtained by the scale reading.
图像采集装置采集图像的过程为:将待采集枪支放置在毛玻璃平板中央,打开背照光源和高清彩色相机,通过三维可调节支架调整相机位置,使枪支基本位于相机成像视场中心并充满大部分视场。拍摄枪支的轮廓图像并保存。关闭背照光源,打开白光照明光源,拍摄枪支的彩色图像并保存,将枪支翻过来另一面朝上放置,拍摄枪支的彩色图像并保存。读取三维可调节支架在垂直毛玻璃方向的位置刻度,计算相机与枪支在高度方向的距离H并保存。枪支信息采集分系统还可以包括信息采集计算机和采集软件。采集软件安装在采集计算机上。The process of image acquisition by the image acquisition device is as follows: place the gun to be collected in the center of the frosted glass plate, turn on the backlight source and the high-definition color camera, and adjust the position of the camera through the three-dimensional adjustable bracket, so that the gun is basically located in the center of the camera's imaging field of view and fills most of it. field of view. Take an outline image of the gun and save it. Turn off the backlight, turn on the white light source, take a color image of the gun and save, turn the gun upside down, take a color image of the gun and save. Read the position scale of the three-dimensional adjustable bracket in the vertical frosted glass direction, calculate the distance H between the camera and the gun in the height direction and save it. The firearm information collection subsystem may also include an information collection computer and collection software. The acquisition software is installed on the acquisition computer.
在一个具体的实施例中,所述中央处理控制分系统包括:系统管理模块、枪支信息管理模块、枪支识别模块;其中,所述系统管理模块,用于账号与权限管理、系统状态监测、数据查询、报表管理;In a specific embodiment, the central processing control subsystem includes: a system management module, a gun information management module, and a gun identification module; wherein, the system management module is used for account and authority management, system status monitoring, data Inquiry and report management;
所述枪支信息管理模块,用于枪支信息的采集、数据传输、建档、添加、删除、修改、查询检索、统计;The firearm information management module is used for firearm information collection, data transmission, filing, addition, deletion, modification, query and retrieval, and statistics;
所述枪支识别模块,用于对待识别枪支进行识别。The firearm identification module is used for identifying firearms to be identified.
具体的,中央处理控制分系统,如附图5所示,主要由中央处理服务器和控制处理软件组成。中央处理服务器具有强大的计算能力,根据应用需求、布置条件,可以为本地物理服务器,也可以为云服务器。控制处理软件负责实现系统的核心控制、管理和信息处理。按照实现功能不同,控制处理软件主要划分为以下模块:(1)系统管理模块。包括账号与权限管理、系统状态监测、数据查询、报表管理等。(2)枪支信息管理模块。主要是枪支信息数据库的管理,包括枪支信息的采集、数据传输、建档、添加、删除、修改、查询检索、统计等。(3)枪支识别模块。负责利用图像处理、智能识别算法对采集枪支二维图像进行处理、特征提取,并与枪支信息数据库的数据进行检索比对,最终实现对枪支的快速识别。Specifically, the central processing control subsystem, as shown in FIG. 5 , is mainly composed of a central processing server and control processing software. The central processing server has powerful computing power. According to application requirements and layout conditions, it can be a local physical server or a cloud server. The control processing software is responsible for realizing the core control, management and information processing of the system. According to different realization functions, the control processing software is mainly divided into the following modules: (1) System management module. Including account and authority management, system status monitoring, data query, report management, etc. (2) Gun information management module. Mainly is the management of firearms information database, including firearms information collection, data transmission, filing, addition, deletion, modification, query retrieval, statistics, etc. (3) Gun identification module. Responsible for using image processing and intelligent identification algorithms to process and extract features from the collected two-dimensional images of firearms, and to retrieve and compare the data with the firearms information database, and finally realize the rapid identification of firearms.
在一个具体的实施例中,所述枪支信息数据库存储的枪支的数据包括:序号、二值化轮廓图像、面积、周长、两点间最大距离、尺寸系数、彩色图像。此外,所述枪支信息数据库存储的枪支的数据还包括:枪支名称、型号、种类、结构、生产国、产商、生产年代、标识。In a specific embodiment, the gun data stored in the gun information database includes: serial number, binarized contour image, area, perimeter, maximum distance between two points, size coefficient, and color image. In addition, the firearm data stored in the firearm information database also includes: firearm name, model, type, structure, production country, manufacturer, production year, and identification.
具体的,枪支信息数据库主要由数据库服务器和数据库系统管理软件组成。数据库服务器具有强大的存储能力、快速存取数据速度,根据应用需求、布置条件,可以为本地物理服务器,也可以为云服务器。服务器上装有数据库管理软件,例如Oracle,SQL Server,MySQL等。枪支信息数据的格式定义如下:对于枪支整枪,数据至少包括序号、二值化轮廓图像、面积、周长、两点间最大距离、尺寸系数、彩色图像等条目(必填),可以包括枪支名称、型号、种类、结构、生产国、产商、生产年代、标识等条目(选填)。枪支信息数据的格式定义可以如附图6所示。Specifically, the firearms information database is mainly composed of a database server and database system management software. The database server has powerful storage capacity and fast data access speed. According to application requirements and layout conditions, it can be a local physical server or a cloud server. Database management software such as Oracle, SQL Server, MySQL, etc. are installed on the server. The format of gun information data is defined as follows: For the whole gun, the data should at least include items such as serial number, binarized contour image, area, perimeter, maximum distance between two points, size factor, color image, etc. (required), and can include guns Items such as name, model, type, structure, country of manufacture, manufacturer, year of manufacture, and logo (optional). The format definition of firearm information data can be as shown in Figure 6.
下面对系统功能及工作模式进行详述。The system functions and working modes are described in detail below.
针对枪支识别的功能,对于待识别的枪支,在枪支信息采集分系统上进行基础属性、轮廓图像、彩色图像采集,通过信息采集软件将以上采集数据打包发送到中央处理控制分系统,中央处理控制分系统对枪支信息数据库进行检索比对,是否与上述采集数据匹配;如果发现匹配数据,则返回匹配枪支的具体信息,然后检验人员通过观察分析匹配枪支的彩色图像,肉眼甄别鉴定匹配枪支与待识别枪支是否相符合,如果符合则判断识别成功,否则判断数据库中无此枪支数据。For the function of gun identification, for the guns to be identified, basic attributes, contour images, and color images are collected on the gun information collection subsystem, and the above collected data is packaged and sent to the central processing control subsystem through the information collection software. The sub-system searches and compares the firearm information database to see if it matches the above-mentioned collected data; if matching data is found, the specific information of the matched firearm will be returned, and then the inspectors will observe and analyze the color images of the matched firearms to visually identify and identify the matched firearms and the pending firearms. Identify whether the firearms match, and if they match, determine that the identification is successful, otherwise, determine that there is no firearm data in the database.
针对枪支信息管理的功能,1、对于新增的枪支,在枪支信息采集分系统上进行基础属性信息、轮廓图像、彩色图像采集,通过信息采集软件将以上采集数据打包发送到中央处理控制分系统,中央处理控制分系统对枪支信息数据库进行检索比对,是否与上述采集数据匹配;如果没有发现匹配数据,说明数据库未曾对该型号枪支建档,在数据库新建该枪支数据档案。2、根据系统应用的发展,逐步对数据库的枪支数据进行更新,包括数据补充、修改、删除等。3、对枪支的信息进行查询、统计、监督、分析,例如种类统计、结构统计、来源地统计,并可以关联涉枪案件。For the functions of gun information management, 1. For newly added guns, basic attribute information, contour images, and color images are collected on the gun information collection subsystem, and the above collected data is packaged and sent to the central processing control subsystem through the information collection software. , the central processing and control sub-system searches and compares the firearm information database to see if it matches the above-mentioned collected data; if no matching data is found, it means that the database has not created a file for the type of firearm, and a new firearm data file is created in the database. 2. According to the development of system application, gradually update the firearm data in the database, including data supplement, modification, deletion, etc. 3. Query, count, supervise, and analyze information on firearms, such as type statistics, structure statistics, and source statistics, and can correlate gun-related cases.
本方案与现有技术相比,其优点包括:(1)采用图像识别方式,能够实现各种枪支的识别。(2)且基于基础属性、轮廓图像信息、彩色图像等信息多管齐下,共同发挥作用,提高识别的准确性和可靠性。(3)在识别方法上,先通过轮廓图像的面积、周长、两点间最大距离等数据快速筛查数据库,然后结合轮廓图像的Hu矩特征匹配算法,进一步筛查数据库,最后检验人员对返回结果进行人工甄别鉴定,通过从直观到复杂、从机器到人工的结合,保证了识别的高效和准确。Compared with the prior art, the advantages of this solution include: (1) The image recognition method is adopted, which can realize the recognition of various firearms. (2) Based on basic attributes, contour image information, color images and other information, the multi-pronged approach plays a role together to improve the accuracy and reliability of recognition. (3) In the identification method, the database is quickly screened by the area, perimeter, and the maximum distance between two points of the contour image, and then the Hu moment feature matching algorithm of the contour image is used to further screen the database. The results are returned for manual screening and identification. Through the combination from intuitive to complex, and from machine to manual, the efficient and accurate identification is guaranteed.
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary to implement the present invention.
本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes. The modules of the above implementation scenarios may be combined into one module, or may be further split into multiple sub-modules.
上述本发明序号仅仅为了描述,不代表实施场景的优劣。The above serial numbers of the present invention are only for description, and do not represent the pros and cons of the implementation scenarios.
以上公开的仅为本发明的几个具体实施场景,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010767929.2A CN112149660B (en) | 2020-08-03 | 2020-08-03 | Gun identification system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010767929.2A CN112149660B (en) | 2020-08-03 | 2020-08-03 | Gun identification system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112149660A true CN112149660A (en) | 2020-12-29 |
CN112149660B CN112149660B (en) | 2024-07-12 |
Family
ID=73887816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010767929.2A Active CN112149660B (en) | 2020-08-03 | 2020-08-03 | Gun identification system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112149660B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114299484A (en) * | 2021-12-30 | 2022-04-08 | 中国人民解放军陆军工程大学 | A stencil character recognition device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1643264A1 (en) * | 1996-09-18 | 2006-04-05 | MacAleese Companies, Inc. | Concealed weapons detection system |
US20170242148A1 (en) * | 2016-02-22 | 2017-08-24 | Rapiscan Systems, Inc. | Systems and Methods for Detecting Threats and Contraband in Cargo |
CN107256404A (en) * | 2017-06-09 | 2017-10-17 | 王翔宇 | A kind of case-involving gun rifle recognition methods |
CN110471919A (en) * | 2019-08-02 | 2019-11-19 | 合肥保安集团有限公司 | Signature safe early warning method is kept in arms based on big data and image recognition |
-
2020
- 2020-08-03 CN CN202010767929.2A patent/CN112149660B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1643264A1 (en) * | 1996-09-18 | 2006-04-05 | MacAleese Companies, Inc. | Concealed weapons detection system |
US20170242148A1 (en) * | 2016-02-22 | 2017-08-24 | Rapiscan Systems, Inc. | Systems and Methods for Detecting Threats and Contraband in Cargo |
CN107256404A (en) * | 2017-06-09 | 2017-10-17 | 王翔宇 | A kind of case-involving gun rifle recognition methods |
CN110471919A (en) * | 2019-08-02 | 2019-11-19 | 合肥保安集团有限公司 | Signature safe early warning method is kept in arms based on big data and image recognition |
Non-Patent Citations (2)
Title |
---|
张树江;颜景龙;邢慧;: "一种基于图像检索的枪弹识别系统", 兵工学报, no. 04, 15 April 2008 (2008-04-15), pages 78 - 82 * |
陈慧;: "基于RFID及组态软件的智能枪支管理系统研发", 制造业自动化, no. 01, 10 January 2013 (2013-01-10), pages 120 - 123 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114299484A (en) * | 2021-12-30 | 2022-04-08 | 中国人民解放军陆军工程大学 | A stencil character recognition device |
CN114299484B (en) * | 2021-12-30 | 2025-02-28 | 中国人民解放军陆军工程大学 | Embossed seal character recognition device |
Also Published As
Publication number | Publication date |
---|---|
CN112149660B (en) | 2024-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109145901B (en) | Article identification method, apparatus, computer readable storage medium and computer device | |
CN102110332B (en) | Book registering and managing device based on computer vision and radio frequency identification technology | |
CN111949809B (en) | Intelligent processing method for infrared inspection data of power transmission line | |
CN106203415B (en) | bank card number automatic identification device based on digital image processing | |
CN102509118B (en) | Method for monitoring video retrieval | |
CN113608378B (en) | Full-automatic defect detection method and system based on LCD (liquid crystal display) process | |
CN107389701A (en) | A kind of PCB visual defects automatic checkout system and method based on image | |
CN108491797A (en) | A kind of vehicle image precise search method based on big data | |
CN111914634A (en) | A method and system for automatic detection of manhole cover types against interference of complex scenes | |
CN109191421A (en) | Cylindricality lithium battery periphery pit visible detection method | |
CN111242899A (en) | Image-based flaw detection method and computer-readable storage medium | |
CN114937266A (en) | Hard shell clam biological sign identification method based on YOLOX-S | |
CN109146859A (en) | A kind of pavement crack detection system based on machine vision | |
CN111882332A (en) | Information verification method and device | |
CN111723656A (en) | Smoke detection method and device based on YOLO v3 and self-optimization | |
CN118644466A (en) | A real-time detection method for weld quality defects based on deep learning | |
CN112149660A (en) | Gun recognition system | |
CN109815784A (en) | A kind of intelligent method for classifying based on thermal infrared imager, system and storage medium | |
CN115526883A (en) | LED lamp bead detection method and device, computer equipment and storage medium | |
CN119206198A (en) | Cow small target recognition method and system based on improved YOLOv11 | |
CN110163081A (en) | SSD-based real-time regional intrusion detection method, system and storage medium | |
CN119273992A (en) | Mobile phone screen glass defect detection method based on improved YOLOv8 | |
CN116580026B (en) | Automatic optical detection method, equipment and storage medium for appearance defects of precision parts | |
CN111507177B (en) | Identification method and device for metering turnover cabinet | |
CN113409297A (en) | Aggregate volume calculation method, particle form grading data generation method, system and equipment |
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 |