CN112149660A - Gun recognition system - Google Patents

Gun recognition system Download PDF

Info

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
image
data
firearm
information
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
Application number
CN202010767929.2A
Other languages
Chinese (zh)
Other versions
CN112149660B (en
Inventor
周志盛
刘鹏
袁红兵
马东升
韦霄立
舒新
梁立景
韩军
罗阿郁
董玉明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN202010767929.2A priority Critical patent/CN112149660B/en
Priority claimed from CN202010767929.2A external-priority patent/CN112149660B/en
Publication of CN112149660A publication Critical patent/CN112149660A/en
Application granted granted Critical
Publication of CN112149660B publication Critical patent/CN112149660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation 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/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/09Recognition of logos
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Signal Processing (AREA)
  • Evolutionary Biology (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a gun identification system, which comprises a gun information acquisition subsystem, a gun information database and a central processing control subsystem, wherein the gun information acquisition subsystem is used for acquiring gun information; the gun information acquisition subsystem is used for acquiring the data of the gun and sending the data to the central processing control subsystem; the gun information database is used for storing gun data and performing data interaction with the central processing control subsystem; and the central processing control subsystem is used for managing and identifying guns. The scheme can be used for identifying different guns, the application range is wide, the database is quickly screened according to the data such as the area, the perimeter and the maximum distance between two points of the contour image on the specific identification method, then the database is further screened by combining with the Hu moment matching algorithm of the contour image, finally, the inspection personnel manually screens and identifies the returned result, and the high efficiency and accuracy of identification are ensured by combining from a machine to a worker from intuition to complexity.

Description

Gun recognition system
Technical Field
The invention relates to the technical field of gun identification, in particular to a gun identification system.
Background
Firearms are powerful violence tools, and strict control of firearms is an important requirement for maintaining national safety and social stability. A great amount of guns (including air guns with high lethality) and bullets which are illegally smuggled into the border are paid by customs in China every year, and the guns and the bullets are quickly and accurately identified, checked and identified, and are very important for researching, analyzing and detecting cases.
However, the production place of the gun for paying smuggling is unknown, the gun is different in type, the gun is numerous in model and complex in structure, great difficulty is brought to the identification and the identification of the gun, especially in recent years, a lot of aerodynamic guns are smuggled to enter the country, customs personnel lack experience in air gun screening, relevant departments lack complete air gun databases, and the gun identification, the identification and the management and the control face new challenges. The traditional gun identification and identification which only depends on human eyes and experience cannot meet the new requirements, and a new method for quickly identifying and identifying guns needs to be developed urgently. At present, there are also some technical solutions trying to solve the technical problem:
the invention patent with the application number of CN201811120409.1 discloses a gun identification management device. Including casing, controller and radio frequency identification ware, the inside bottom movable mounting of casing has charging mechanism, the inside fixed mounting of casing has the battery, and the battery is located charging mechanism's top, the inside fixed mounting of casing has the controller, and the controller is located the top of battery, the inside top fixed mounting of casing has radio frequency identification ware, the top movable mounting of casing has clean mechanism, housing face's top fixed mounting has the display screen, the fixed surface of casing installs control button, and control button and controller swing joint, housing face's bottom movable mounting has complementary unit. In addition, the invention patent with application number CN200710090704.2 proposes a gun identification management system. The system is characterized in that an information card is installed on a gun and is placed on an information reading and writing handle to manage gun information, and the system comprises a gun registration module, a gun logout module, a gun information inquiry module, a personnel registration module, a personnel logout module, a personnel information inquiry module, a fingerprint borrowing and returning gun module, an identity card borrowing and returning gun module and a borrowing and returning gun information inquiry module.
Specifically, the invention with application number CN201811120409.1 obtains the information of the gun by scanning the electronic tag attached to the surface of the gun through the device, and as for the invention with application number CN200710090704.2, the information card is placed on the gun and the information reading handle reads the information card to obtain the information of the gun.
Thus, there is a need for a better solution to this technical problem.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a gun identification system which can carry out graphical identification on different guns, and on the specific identification method, a database is quickly screened according to the data such as the area, the perimeter, the maximum distance between two points and the like of a contour image, then the database is further screened by combining a Hu moment matching algorithm of the contour image, finally an inspector carries out manual discrimination and identification on a returned result, and the high efficiency and the accuracy of identification are ensured by combining from intuition to complexity and from a machine to manual operation.
Specifically, the present invention proposes the following specific examples:
the embodiment of the invention provides a gun identification system, which comprises a gun information acquisition subsystem, a gun information database and a central processing control subsystem, wherein the gun information acquisition subsystem is used for acquiring gun information; wherein the content of the first and second substances,
the gun information acquisition subsystem is used for acquiring gun data and sending the data to the central processing control subsystem;
the gun information database is used for storing gun data and performing data interaction with the central processing control subsystem;
the central processing control subsystem is used for carrying out binarization processing on the contour image of the gun to be identified at a specified visual angle to obtain a binarized contour image;
determining a size coefficient according to a focal length of a camera for shooting the contour image and a distance between the camera and the gun to be identified;
determining the area and the perimeter of a region occupied by the gun in the binary contour image and the maximum distance between two points;
matching in the firearm information database according to the size coefficient, the area, the perimeter and the maximum distance between the two points;
if a candidate gun data set is obtained through matching, performing Hu moment calculation on each gun in the candidate gun data set and the gun to be identified;
calculating a weighted square error based on the Hu moment;
screening guns that match the Hu moment of the gun to be identified in the gun candidate data set based on the weighted square error;
and if the screened gun set is obtained through screening, sorting the guns in the screened gun set from low to high according to the weighted square error, and returning the data of the sorted guns to the inspector so as to facilitate the inspector to perform manual identification.
In a specific embodiment, the contour image is a contour grayscale image;
the area with the gray value of 0 in the binary contour image is a gun area, and the area with the gray value of 255 is a background area; the area corresponds to the size of an area corresponding to all pixel points with the gray scale value of 0 in the binary contour image; the circumference is the length integral of the edge of the area with the gray value of 0 in the binaryzation contour image; the maximum distance between the two points is the maximum distance between pixel points with the gray value of 0 in the binary contour image;
the Hu moment is obtained by calculating the contour binary image according to the Hu moment definition.
In a particular embodiment of the present invention,
the size factor is calculated based on the following formula:
k is H/f; wherein k is a size coefficient; the H is the distance between the camera and the gun to be identified in the imaging direction; f is the focal length of an imaging lens of the camera;
the matching is based on the following formula:
Figure BDA0002615386910000041
wherein the content of the first and second substances,
the area of the binarization contour image of the gun to be identified is S, the perimeter of the binarization contour image of the gun to be identified is C, and the maximum distance between two points of the gun to be identified is L; the size coefficient of the gun to be identified is k; the area of the firearm in the firearm information database is S1The perimeter of the gun is C1The maximum distance between two points of the gun is L1The gun has a size coefficient of k1;γs、γC、γLRespectively, area, perimeter, maximum between two pointsError control coefficients for large distances;
the weighted square error is calculated by the following formula:
Figure BDA0002615386910000042
wherein the Hu moment of the contour binary image of the gun in the gun candidate data set is M; the Hu moment of the contour binary image of the gun to be identified is N; k represents the different components of the Hu moment; w is the weight of different components of the Hu moment; WSE is the weighted square error;
screening to obtain a screened gun set which is in accordance with WSE in the candidate gun data set<WTA collection of firearms of wherein WTIs a preset threshold.
In one embodiment, the firearm information collection subsystem comprises: the system comprises a basic attribute acquisition module, a contour image acquisition module, a color image acquisition module and an information acquisition computer internally loaded with information acquisition software.
In a specific embodiment, the basic attribute collecting module is used for collecting 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 description, size, caliber, structure, type, country of production information, manufacturer information, and year of production.
In a specific embodiment, the outline image acquisition module is used for acquiring an outline image of a gun.
In a specific embodiment, the color image acquisition module is used for acquiring a color image of the appearance of a gun.
In a specific embodiment, the contour image acquisition module or the color image acquisition module is an image acquisition device;
the image acquisition apparatus includes: the device comprises a lifting support frame, a three-dimensional adjustable support frame, a ground glass flat plate for placing guns, a high-definition color camera, a backlight source and a white light illumination light source; wherein the content of the first and second substances,
the three-dimensional adjustable bracket is arranged at the top of the support frame;
the ground glass flat plate is horizontally arranged in the middle of the support frame;
the back light source is arranged below the ground glass plate and irradiates the ground glass plate from bottom to top;
the high-definition color camera and the white light illuminating light source are both arranged on the three-dimensional adjustable support.
In one embodiment, the central processing control subsystem comprises: the system comprises a system management module, a gun information management module and a gun identification module; wherein the content of the first and second substances,
the system management module is used for account number and authority management, system state monitoring, data query and report management;
the gun information management module is used for acquiring gun information, transmitting data, filing, adding, deleting, modifying, inquiring, retrieving and counting;
and the gun identification module is used for identifying the gun to be identified.
In a specific embodiment, the firearm information database stores firearm data including: serial number, binary outline image, area, perimeter, maximum distance between two points, size coefficient and color image.
In a specific embodiment, the firearm information database stores firearm data further including: gun name, model, kind, structure, country of production, producer, year of production, sign.
Therefore, compared with the prior art, the invention has the following effects: the method can be used for carrying out graphical identification on various guns, is wide in application range, firstly quickly screens a database through data such as the area, the perimeter and the maximum distance between two points of a contour image on the basis of a specific identification method, then further screens the database in combination with a Hu moment matching algorithm of the contour image, finally, an inspector carries out manual screening and identification on a returned result, and high efficiency and accuracy of identification are guaranteed through combination from intuition to complexity and from a machine to manual operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating a basic architecture of a gun recognition system according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a basic architecture of a gun information collecting subsystem in a gun recognition system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a contour image of a middle gun support of a gun identification system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image acquisition device in a gun recognition system according to an embodiment of the present invention;
FIG. 5 is a basic component framework of a central processing control subsystem in a gun recognition system according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating format definition of gun count information data in a gun identification system according to an embodiment of the present invention.
Detailed Description
Various embodiments of the present disclosure will be described more fully hereinafter. The present disclosure is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit the various embodiments of the disclosure to the specific embodiments disclosed herein, but rather, the disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the various embodiments of the disclosure.
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 be limiting of the various embodiments of the present disclosure. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates 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 the various embodiments of the present disclosure belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined in various embodiments of the present disclosure.
Examples
The embodiment of the invention discloses a gun identification system, which comprises a gun information acquisition subsystem, a gun information database and a central processing control subsystem as shown in figure 1; wherein the content of the first and second substances,
the gun information acquisition subsystem is used for acquiring gun data and sending the data to the central processing control subsystem;
the gun information database is used for storing gun data and performing data interaction with the central processing control subsystem;
specifically, as shown in fig. 1, the system mainly comprises a gun information acquisition subsystem, a central processing control subsystem and a gun information database. The gun information acquisition subsystem is responsible for acquiring basic information and two-dimensional images of the gun and transmitting the data to the central processing control subsystem. And the gun information database is used for storing gun information and exchanging information with the central processing control subsystem.
The central processing control subsystem is responsible for information processing and management control, and is a central hub for identifying and identifying guns and coordinating and controlling the work of each subsystem. Specifically, the central processing control subsystem is configured to perform the following functions:
function 1, the discernment appraisal of gun, it is specific, gun information acquisition divides the system collection to wait to discern the outline image of gun, and convey the outline image to central processing control branch system, central processing control branch system is according to intelligent analysis flow and algorithm, handle and the feature extraction to the outline image, and retrieve the comparison to gun information database, if compare successfully, then return the concrete information that matches the gun, then the inspector matches the color image of gun through the observation analysis, whether naked eye is discriminated the appraisal and is matched the gun and wait to discern the gun and accord with, if accord with then judge the discernment success, otherwise judge not to have this gun data in the database.
Function 2, gun information management. The method comprises gun information acquisition, database establishment, data perfection, data modification, data deletion, data query, data statistics and other gun-related information management.
Specifically, the basic flow of the gun identification method is as follows: and acquiring the contour image of the gun to be identified at a specified visual angle, and performing binarization processing on the contour image to obtain a binarization contour image of the gun. And calculating a size coefficient k according to the height proportional relation of the camera during shooting. And calculating the area S, the perimeter C and the maximum distance L between two points of the area occupied by the gun of the binary contour image. And retrieving and comparing the gun information database, and selecting the gun data matched with the area S, the perimeter C and the maximum distance L between the two points to form a candidate gun data set A. And if A is not null, calculating Hu moments of the gun to be identified and the candidate gun, and calculating a weighted square error WSE. Establishing WSE<Threshold value WTGun set B. If B is not empty, arrange gun according to WSE from low to high and return according to preface, the color image of examining person through observation analysis matching gun, whether the naked eye discrimination appraisal matches with the gun of waiting to discern, if judge and match, then the discernment is successful, if all guns do not match, then judge not to wait to discern the gun data in the database.
Specifically, taking gun identification as an example, the central processing control subsystem is configured to perform binarization processing on a contour image of the gun to be identified at a specified viewing angle to obtain a binarized contour image; specifically, the contour image is a contour gray image; the area with the gray value of 0 in the binary contour image is a gun area, and the area with the gray value of 255 is a background area; the area corresponds to the size of an area corresponding to all pixel points with the gray scale value of 0 in the binary contour image; the circumference is the length integral of the edge of the area with the gray value of 0 in the binaryzation contour image; the maximum distance between the two points is the maximum distance between pixel points with the gray value of 0 in the binary contour image;
determining a size coefficient according to a focal length of a camera for shooting the contour image and a distance between the camera and the gun to be identified;
specifically, the size coefficient is calculated based on the following formula:
k is H/f; wherein k is a size coefficient; the H is the distance between the camera and the gun to be identified in the imaging direction; f is the focal length of an imaging lens of the camera;
determining the area and the perimeter of a region occupied by the gun in the binary contour image and the maximum distance between two points;
matching in the firearm information database according to the size coefficient, the perimeter, the area and the maximum distance between the two points;
if a candidate gun data set is obtained through matching, performing Hu moment calculation on each gun in the candidate gun data set and the gun to be identified; specifically, the Hu moment is obtained by calculating a contour binarization image according to the Hu moment definition;
calculating a weighted square error based on the Hu moment;
wherein the matching is based on the following formula:
Figure BDA0002615386910000091
wherein the content of the first and second substances,
the area of the binarization contour image of the gun to be identified is S, the perimeter of the binarization contour image of the gun to be identified is C, and the maximum distance between two points of the gun to be identified is L; the size coefficient of the gun to be identified is k; the area of the firearm in the firearm information database is S1The perimeter of the gun is C1The maximum distance between two points of the gun is L1The gun has a size coefficient of k1;γs、γC、γLError control coefficients of area, perimeter and maximum distance between two points are respectively;
the weighted square error is calculated by the following formula:
Figure BDA0002615386910000101
wherein the Hu moment of the contour binary image of the gun in the gun candidate data set is M; the Hu moment of the contour binary image of the gun to be identified is N; k represents the different components of the Hu moment; w is the weight of different components of the Hu moment; WSE is the weighted square error;
screening to obtain a screened gun set which is in accordance with WSE in the candidate gun data set<WTA collection of firearms of wherein WTIs a preset threshold. And if the screened gun set is obtained through screening, sorting the guns in the screened gun set from low to high according to the weighted square error, and returning the data of the sorted guns to the inspector so as to facilitate the inspector to perform manual identification.
In the actual process, for the gun to be identified, basic attribute information, a contour image and a color image are acquired on a gun information acquisition subsystem. If the contour image is shot by a color camera, the color image is converted into a gray image. For the contour gray image, designing a proper threshold value T, so that the gray value is larger than or equal to the gray value of the pixel point of T, and resetting the gray value to be 255; as for the pixel points with the gray value smaller than T, the gray value is reset to 0; thereby obtaining a binary contour image p. The grey value of the gun area in the image is 0 and the remaining background is 255. The threshold T is chosen empirically. The focal length of an 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 is calculated to be H/f. And calculating the area S, the perimeter C and the maximum distance L between two points of the gun region for the binary contour image. The area S is defined as the sum of the number of pixels with a gray value of 0 in the image, the perimeter C is defined as the length integral of the edge of the region with a gray value of 0 in the image, and the maximum distance L between two points is defined as the maximum distance between the pixels with a gray value of 0 in the image.
The gun data in the gun information database is retrieved, and the area of the retrieved gun is S1Gun circumference C1Maximum distance between two points is L1Coefficient of size k1. Gun data satisfying the following relationships are searched for:wherein, γs、γC、γLThe error control coefficients are respectively the area, the perimeter and the maximum distance between two points, and mainly take the influences of machining errors of parts of the gun, assembly errors of the gun, abrasion errors, image acquisition, calculation errors and the like into consideration. Threshold value gammaS、γCAnd gammaLThe selection is made empirically.
Through the method, a gun data set matched with the area S and the area C of the gun to be identified and the maximum distance L between two points in the area is searched and marked as A. And if A is empty, the gun matched with the gun to be identified is judged not to exist in the gun information database, the gun matched with the gun to be identified does not exist in the area, the perimeter and the maximum distance between two points in the area, and the result is returned. If A is not empty, reading the contour binary image m of each gun in the set and solving the Hu moment for the contour binary image m. The Hu moment is obtained by calculating the second-order and third-order central moments of the image, and has the invariance of image zooming, translation, rotation and mirror image. The Hu moments total 7: m ═ M1,M2,M3,M4,M5,M6,M7}. Reading a contour binary image n of the gun to be identified, and solving Hu moment of the gun to be identified: n ═ N1,N2,N3,N4,N5,N6,N7}. Computing weighted square error of M and N
Figure BDA0002615386910000112
In the collection of candidate firearm dataThe Hu moment of the contour binary image of the gun is M; the Hu moment of the contour binary image of the gun to be identified is N; k represents the different components of the Hu moment; w is the weight of different components of the Hu moment; WSE is the weighted square error; the weighted square error WSE is calculated for all guns in set a. Design proper threshold value WTBuilding a WSE<WTGun set B. And if the B is empty, the gun matched with the Hu moment of the binary contour image of the gun to be identified does not exist in the gun information database, the gun not matched with the gun to be identified is judged, and a result is returned. Threshold value WTThe selection is made empirically. If B is not empty, the guns in B are sequenced from low to high according to WSE, and the detailed information is returned in sequence.
And finally, manually discriminating and identifying the returned gun information by an inspector, wherein the manual discrimination and identification method is to observe the front and back high-resolution color images of the returned gun and the front and back high-resolution color images of the gun to be identified to judge whether the returned gun belongs to the same gun. If the firearms belong to the same type of firearms, the identification and the comparison are successful, if all the returned firearms are judged not to be matched with the firearms to be identified, the information of the firearms to be identified does not exist in the database.
The following description is directed to various portions of an overall gun identification system, the gun information collection subsystem including: the system comprises a basic attribute acquisition module, a contour image acquisition module, a color image acquisition module and an information acquisition computer internally loaded with information acquisition software. The basic attribute acquisition module is used for acquiring 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 description, size, caliber, structure, type, country of production information, manufacturer information, and year of production. And the outline image acquisition module is used for acquiring an outline image of the gun. The color image acquisition module is used for acquiring a color image of the appearance of the gun.
The gun information acquisition subsystem mainly comprises a basic attribute acquisition module, a contour image acquisition module, a color image acquisition module, an information acquisition computer and information acquisition software. As shown in fig. 2. The basic attribute information acquisition module is responsible for acquiring basic attribute information of the gun, such as the name, the model, the surface identification, LOGO character description, the size, the caliber, the structure, the type, the country of production, the manufacturer, the year of production and the like of the gun. The information may be largely unknown for the guns to be collected, some known and some unknown, for example for illegal guns being paid for, and for regulatory gun banking. The collection of information is selective (collection with certainty, not).
The contour image acquisition module is responsible for acquiring contour images of the gun. The outline image is formed by imaging the surface of the gun by adopting a back-illuminated illumination imaging mode, wherein the area shielded by the gun in the image is almost totally black, and the area not shielded in the image is almost totally bright. An example of a gun profile image is shown in figure 3. The contour image acquisition module mainly comprises a backlight source, a ground glass flat plate, a three-dimensional adjustable bracket and a high-definition camera. The gun to be collected is placed on the ground glass flat plate, and the backlight source is installed below the ground glass flat plate and irradiates from the lower side of the ground glass flat plate. The backlight source can be a single large-area light source or an illumination light source array. The high-definition camera images the gun from the top of the ground glass plate downwards. The camera is arranged on the three-dimensional adjustable support, and can be adjusted in two dimensions in the direction parallel to the ground glass plate and in one dimension in the direction perpendicular to the ground glass plate. The gun is basically positioned in the center of the imaging field of view of the camera by adjusting the position of the camera in the direction parallel to the ground glass, and the gun is filled with most of the imaging field of view of the camera by adjusting the position of the camera in the direction vertical to the ground glass. The high-definition camera consists of a large depth-of-field imaging lens and a large-area-array high-pixel-resolution industrial camera. The industrial camera may be a black and white camera or a color camera.
The color image acquisition module is responsible for acquiring color images of the appearance of the gun. The color image acquisition module mainly comprises a white light illumination light source, a bottom plate, a three-dimensional adjustable bracket and a high-definition color camera. The gun to be collected is placed on the bottom plate, the white light illuminating light source irradiates downwards from the upper side of the bottom plate, and the high-definition color camera images the gun downwards from the upper side of the bottom plate. The color camera is arranged on the three-dimensional adjustable support, and can be adjusted in two dimensions in the direction parallel to the bottom plate and in one dimension in the direction vertical to the bottom plate. The gun is basically positioned in the center of the imaging field of view of the camera by adjusting the position of the camera in the direction parallel to the bottom plate, and the gun is filled with most of the imaging field of view of the camera by adjusting the position of the camera in the direction vertical to the bottom plate. 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 integrated into one, and the contour image acquisition module or the color image acquisition module is an image acquisition device; the image acquisition apparatus includes: the device comprises a lifting support frame, a three-dimensional adjustable support frame, a ground glass flat plate for placing guns, a high-definition color camera, a backlight source and a white light illumination light source; wherein the three-dimensional adjustable bracket is arranged on the top of the support frame (the specific support frame can be lifted, and the three-dimensional adjustable bracket can also be lifted); the ground glass flat plate is horizontally arranged in the middle of the support frame; the back light source is arranged below the ground glass plate and irradiates the ground glass plate from bottom to top; the high-definition color camera and the white light illuminating light source are both arranged on the three-dimensional adjustable support.
The image acquisition device provided by the invention integrates the contour image acquisition module and the color image acquisition module into a whole. The image acquisition device is structurally shown in fig. 4. The image acquisition device consists of a support frame, a ground glass flat plate, a backlight source, a white light illumination source, a three-dimensional adjustable support and a high-definition color camera. The gun to be collected is placed in the center of the ground glass plate. The back light source is positioned below the frosted glass plate and irradiates the frosted glass plate from the lower part to the upper part. The high-definition color camera is installed on the three-dimensional adjustable support, and the three-dimensional adjustable support can carry out two-dimensional adjustment in the direction parallel to the ground glass flat plate, so that the center position of the visual field of the camera is adjusted, one-dimensional adjustment can be carried out in the direction perpendicular to the ground glass flat plate, and the size of the ground glass flat plate in the imaging area of the camera is adjusted. The position of the camera is adjusted through the three-dimensional adjustable support, so that the gun is basically positioned in the imaging center of the camera and fills most of the field of view. And the two white light illuminating light sources are also arranged on the three-dimensional adjustable bracket, are respectively positioned at two sides of the high-definition color camera, and irradiate the ground glass flat plate downwards from the upper part. The adjustment position of the three-dimensional adjustable support can be obtained by scale reading.
The process of the image acquisition device for acquiring the image comprises the following steps: the gun to be collected is placed in the center of the ground glass flat plate, the back-lighting source and the high-definition color camera are turned on, and the position of the camera is adjusted through the three-dimensional adjustable support, so that the gun is basically located in the center of the imaging view field of the camera and is full of most of the view field. And shooting and storing the outline image of the gun. And closing the backlight source, opening the white light illumination source, shooting and storing the color image of the gun, turning over the gun and placing the gun with the other side upwards, and shooting and storing the color image of the gun. And reading the position scale of the three-dimensional adjustable support in the direction vertical to the ground glass, and calculating and storing the distance H between the camera and the gun in the height direction. The gun information acquisition subsystem can also comprise an information acquisition computer and acquisition software. The acquisition software is installed on the acquisition computer.
In one embodiment, the central processing control subsystem comprises: the system comprises a system management module, a gun information management module and a gun identification module; the system management module is used for account number and authority management, system state monitoring, data query and report management;
the gun information management module is used for acquiring gun information, transmitting data, filing, adding, deleting, modifying, inquiring, retrieving and counting;
and the gun identification module is used for identifying the gun to be identified.
Specifically, the central processing control subsystem, as shown in fig. 5, mainly comprises a central processing server and control processing software. The central processing server has strong computing power, and can be a local physical server or a cloud server according to application requirements and arrangement conditions. The control processing software is responsible for realizing the core control, management and information processing of the system. According to different implementation functions, the control processing software is mainly divided into the following modules: (1) and a system management module. The method comprises account number and authority management, system state monitoring, data query, report management and the like. (2) Gun information management module. The gun information management method is mainly used for managing a gun information database, and comprises gun information acquisition, data transmission, profiling, adding, deleting, modifying, query retrieval, statistics and the like. (3) Gun identification module. The gun recognition system is responsible for processing and feature extraction of the acquired gun two-dimensional image by using an image processing and intelligent recognition algorithm, and retrieving and comparing the acquired gun two-dimensional image with data of a gun information database, so that the gun is finally recognized quickly.
In a specific embodiment, the firearm information database stores firearm data including: serial number, binary outline image, area, perimeter, maximum distance between two points, size coefficient and color image. In addition, the gun information database stores gun data including: gun name, model, kind, structure, country of production, producer, year of production, sign.
Specifically, the gun information database mainly comprises a database server and database system management software. The database server has strong storage capacity and high data access speed, and can be a local physical server or a cloud server according to application requirements and arrangement conditions. The Server is provided with database management software, such as Oracle, SQL Server, MySQL, etc. The format of the gun information data is defined as follows: for the gun, the data at least comprises items (filling must) such as serial numbers, binary contour images, areas, circumferences, maximum distances between two points, size coefficients, color images and the like, and can comprise items (filling must) such as gun names, models, types, structures, production countries, manufacturers, production times, identifications and the like. The format definition of the gun information data may be as shown in fig. 6.
The system function and operation mode will be described in detail below.
Aiming at the gun identification function, basic attribute, contour image and color image acquisition is carried out on a gun information acquisition subsystem for the gun to be identified, the acquired data are packaged and sent to a central processing control subsystem through information acquisition software, and the central processing control subsystem carries out retrieval comparison on a gun information database and judges whether the acquired data are matched with the acquired data; if the matching data are found, the specific information of the matched gun is returned, then the inspector analyzes the color image of the matched gun through observation, and visually discriminates whether the matched gun is consistent with the gun to be identified, if so, the identification is judged to be successful, otherwise, the data of the gun is not stored in the database.
Aiming at the function of gun information management, 1, for newly added guns, acquiring basic attribute information, contour images and color images on a gun information acquisition subsystem, packaging the acquired data through information acquisition software and sending the data to a central processing control subsystem, and searching and comparing a gun information database by the central processing control subsystem to determine whether the acquired data are matched with the acquired data; if no matching data is found, the gun data file is created in the database, wherein the gun data file indicates that the gun data file of the model has not been created in the database. 2. According to the development of system application, gun data of the database is gradually updated, and data supplement, modification, deletion and the like are included. 3. The information of the gun is queried, counted, supervised, analyzed, such as category statistics, structure statistics, source statistics, and gun related cases can be associated.
Compared with the prior art, the scheme has the advantages that: (1) and by adopting an image recognition mode, the recognition of various guns can be realized. (2) And the method and the device play a role together based on multiple information such as basic attributes, contour image information, color images and the like, and improve the accuracy and reliability of identification. (3) In the identification method, a database is quickly screened according to the data such as the area, the perimeter, the maximum distance between two points and the like of a contour image, then the database is further screened by combining with a Hu moment feature matching algorithm of the contour image, finally, an inspector carries out manual screening and identification on a returned result, and the efficiency and the accuracy of identification are ensured by combining from intuition to complexity and from a machine to manual work.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (11)

1. A gun identification system is characterized by comprising a gun information acquisition subsystem, a gun information database and a central processing control subsystem; wherein the content of the first and second substances,
the gun information acquisition subsystem is used for acquiring gun data and sending the data to the central processing control subsystem;
the gun information database is used for storing gun data and performing data interaction with the central processing control subsystem;
the central processing control subsystem is used for carrying out binarization processing on the contour image of the gun to be identified at a specified visual angle to obtain a binarized contour image;
determining a size coefficient according to a focal length of a camera for shooting the contour image and a distance between the camera and the gun to be identified;
determining the area and the perimeter of a region occupied by the gun in the binary contour image and the maximum distance between two points;
matching in the firearm information database according to the size coefficient, the area, the perimeter and the maximum distance between the two points;
if a candidate gun data set is obtained through matching, performing Hu moment calculation on each gun in the candidate gun data set and the gun to be identified;
calculating a weighted square error based on the Hu moment;
screening guns that match the Hu moment of the gun to be identified in the gun candidate data set based on the weighted square error;
and if the screened gun set is obtained through screening, sorting the guns in the screened gun set from low to high according to the weighted square error, and returning the data of the sorted guns to the inspector so as to facilitate the inspector to perform manual identification.
2. A gun recognition system as claimed in claim 1 wherein said outline image is a gray-scale outline image;
the area with the gray value of 0 in the binary contour image is a gun area, and the area with the gray value of 255 is a background area; the area corresponds to the size of an area corresponding to all pixel points with the gray scale value of 0 in the binary contour image; the circumference is the length integral of the edge of the area with the gray value of 0 in the binaryzation contour image; the maximum distance between the two points is the maximum distance between pixel points with the gray value of 0 in the binary contour image;
the Hu moment is obtained by calculating the contour binary image according to the Hu moment definition.
3. A gun recognition system according to claim 1 or 2,
the size factor is calculated based on the following formula:
k is H/f; wherein k is a size coefficient; the H is the distance between the camera and the gun to be identified in the imaging direction; f is the focal length of an imaging lens of the camera;
the matching is based on the following formula:
Figure RE-FDA0002774892670000021
|k1C1/kC-1|<γC,|k1L1/kL-1|<γL(ii) a Wherein the content of the first and second substances,
the area of the binarization contour image of the gun to be identified is S, the perimeter of the binarization contour image of the gun to be identified is C, and the maximum distance between two points of the gun to be identified is L; the size coefficient of the gun to be identified is k; the area of the firearm in the firearm information database is S1The perimeter of the gun is C1The maximum distance between two points of the gun is L1The gun has a size coefficient of k1;γs、γC、γLError control coefficients of area, perimeter and maximum distance between two points are respectively;
the weighted square error is calculated by the following formula:
Figure RE-FDA0002774892670000022
wherein the Hu moment of the contour binary image of the gun in the gun candidate data set is M; the Hu moment of the contour binary image of the gun to be identified is N; k represents the different components of the Hu moment; w is the weight of different components of the Hu moment; WSE is the weighted square error;
screening to obtain a screened gun set which is in accordance with WSE in the candidate gun data set<WTA collection of firearms of wherein WTIs a preset threshold.
4. A firearm identification system in accordance with claim 1 wherein said firearm information collection subsystem comprises: the system comprises a basic attribute acquisition module, a contour image acquisition module, a color image acquisition module and an information acquisition computer internally loaded with information acquisition software.
5. A firearm identification system in accordance with claim 4 wherein said basic attribute collection module is adapted to collect basic attribute information for a firearm;
the basic attribute information includes any combination of one or more of the following: name, model, surface identification, LOGO description, size, caliber, structure, type, country of production information, manufacturer information, and year of production.
6. A firearm identification system in accordance with claim 4 wherein said outline image capture module is adapted to capture an outline image of the firearm.
7. A firearm identification system in accordance with claim 4 wherein the color image capture module is adapted to capture a color image of the appearance of the firearm.
8. A gun identification system as claimed in claim 4 wherein said outline image capture module or said color image capture module is an image capture device;
the image acquisition apparatus includes: the device comprises a lifting support frame, a three-dimensional adjustable support frame, a ground glass flat plate for placing guns, a high-definition color camera, a backlight source and a white light illumination light source; wherein the content of the first and second substances,
the three-dimensional adjustable bracket is arranged at the top of the support frame;
the ground glass flat plate is horizontally arranged in the middle of the support frame;
the back light source is arranged below the ground glass plate and irradiates the ground glass plate from bottom to top;
the high-definition color camera and the white light illuminating light source are both arranged on the three-dimensional adjustable support.
9. A firearm identification system in accordance with claim 1 wherein said central processing control subsystem comprises: the system comprises a system management module, a gun information management module and a gun identification module; wherein the content of the first and second substances,
the system management module is used for account number and authority management, system state monitoring, data query and report management;
the gun information management module is used for acquiring gun information, transmitting data, filing, adding, deleting, modifying, inquiring, retrieving and counting;
and the gun identification module is used for identifying the gun to be identified.
10. A firearm identification system in accordance with claim 1 wherein said firearm information database stores firearm data comprising: serial number, binary outline image, area, perimeter, maximum distance between two points, size coefficient and color image.
11. A firearm identification system in accordance with claim 10 wherein said firearm information database stores firearm data further comprising: gun name, model, kind, structure, country of production, producer, year of production, sign.
CN202010767929.2A 2020-08-03 Gun identification system Active CN112149660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010767929.2A CN112149660B (en) 2020-08-03 Gun identification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010767929.2A CN112149660B (en) 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=

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
张树江;颜景龙;邢慧;: "一种基于图像检索的枪弹识别系统", 兵工学报, no. 04, 15 April 2008 (2008-04-15), pages 78 - 82 *
陈慧;: "基于RFID及组态软件的智能枪支管理系统研发", 制造业自动化, no. 01, 10 January 2013 (2013-01-10), pages 120 - 123 *

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
CA3130587A1 (en) Neural network based physical condition evaluation of electronic devices, and associated systems and methods
CN105701519A (en) Realogram scene analysis of images: superpixel scene analysis
CN106203415B (en) bank card number automatic identification device based on digital image processing
CN108918532A (en) A kind of through street traffic sign breakage detection system and its detection method
JPWO2019130642A1 (en) Shape identification device and delivery box
CN116188475B (en) Intelligent control method, system and medium for automatic optical detection of appearance defects
WO2021238102A1 (en) Bullet information management system and terminal
CN111882332A (en) Information verification method and device
EP3171990A1 (en) Method for sorting postal items in a sorting rack with automatic counting of the items sorted
US20220036371A1 (en) Identifying and grading system and related methods for collectable items
DE202013012149U1 (en) Device for recycling electronic devices
CN112149660A (en) Gun recognition system
CN112149660B (en) Gun identification system
US20230152781A1 (en) Manufacturing intelligence service system connected to mes in smart factory
CN110826473A (en) Neural network-based automatic insulator image identification method
CN116110127A (en) Multi-linkage gas station cashing behavior recognition system
CN113627393B (en) Commodity identification method based on dual neural network and intelligent vending system
CN111507177B (en) Identification method and device for metering turnover cabinet
CN107389511A (en) A kind of crop seed phenotype measuring method and portable unit
CN117934453B (en) Method and system for diagnosing defects of backlight foreign matters of mobile phone screen
CN116452517A (en) Yellow pearl grading method, system, terminal equipment and storage medium
CN112492105B (en) Video-based vehicle appearance part self-service damage assessment acquisition method and system
CN118097647A (en) License plate number shielding detection method and system

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