CN110428017B - Object recognition method for dynamically setting similarity threshold - Google Patents

Object recognition method for dynamically setting similarity threshold Download PDF

Info

Publication number
CN110428017B
CN110428017B CN201910732173.5A CN201910732173A CN110428017B CN 110428017 B CN110428017 B CN 110428017B CN 201910732173 A CN201910732173 A CN 201910732173A CN 110428017 B CN110428017 B CN 110428017B
Authority
CN
China
Prior art keywords
similarity threshold
similarity
recognition
time
video frame
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.)
Active
Application number
CN201910732173.5A
Other languages
Chinese (zh)
Other versions
CN110428017A (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.)
Jiangsu Tiancheng Intelligent Group Co ltd
Original Assignee
Shanghai Tiancheng Biji Technology Co ltd
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 Shanghai Tiancheng Biji Technology Co ltd filed Critical Shanghai Tiancheng Biji Technology Co ltd
Priority to CN201910732173.5A priority Critical patent/CN110428017B/en
Publication of CN110428017A publication Critical patent/CN110428017A/en
Application granted granted Critical
Publication of CN110428017B publication Critical patent/CN110428017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an object identification method for dynamically setting a similarity threshold, which comprises the following steps: s1, formulating a similarity threshold according to a time period in a day; s2, acquiring a video frame of a video; s3, obtaining time T corresponding to the video frame, and calculating a similarity threshold Y at the moment according to the value of the time T and the relationship between the time T and the similarity threshold Y in the step S1; s4, carrying out image recognition on the video frame, obtaining the object category x, calculating the recognition similarity w, and comparing the recognition similarity w with a similarity threshold y to obtain an object recognition conclusion. According to the change characteristics of light rays and scenes in one day, the invention provides an object recognition optimization mechanism for dynamically setting the similarity threshold, and sets the object recognition similarity threshold in different time periods, so that the false alarm rate of object recognition in the intelligent community alarm event monitoring application scene is reduced, the false alarm rate of an intelligent recognition application system is reduced, and a better effect is achieved.

Description

Object recognition method for dynamically setting similarity threshold
Technical Field
The invention relates to an image recognition method, in particular to an object recognition method with high recognition accuracy and low false alarm rate for dynamically setting a similarity threshold.
Background
With the development of society and the construction of towns, urban population has the characteristics of large base, high mobility, scattered living positions and high management and control difficulty, and in order to more efficiently cope with the problems in urban management, more and more intelligent technologies and schemes are in the standardization and construction of intelligent communities. In particular, in the field of intelligent video analysis, intelligent software products are increasingly well-developed, such as face recognition, license plate recognition, object recognition and the like, in the application fields of intelligent access control, intelligent detection, intelligent alarm and the like. However, any application of intelligent products has certain false alarm conditions, which are unavoidable. For example, in the process of object recognition, the objects which can be recognized by the trained object recognition model are of multiple types, and in the process of object recognition, the recognized objects are recognized as a certain type of objects by taking the high probability as a standard. That is, the recognition results are in terms of object type, score, and object frame coordinates. In an actual application scene, a certain recognition probability exists in object recognition, face recognition and license plate recognition, and the recognition probability is not hundred percent correct, and is related to the position, angle, light and other surrounding environment factors of a recognized target. The light is greatly influenced, particularly at night, the light change is complex, and the false alarm condition of intelligent application often occurs in a time period with low exposure and complex environmental change.
Accordingly, there is a need for an improvement that overcomes the shortcomings of the prior art.
Disclosure of Invention
The object recognition method aims to solve the problems in the prior art and provides an object recognition method for dynamically setting a similarity threshold with high recognition accuracy and low false alarm rate.
The technical scheme of the invention is as follows: the object recognition method for dynamically setting the similarity threshold comprises the following steps: s1, formulating a similarity threshold according to a time period in a day; the relationship between time T and similarity threshold Y is: if 0 < T.ltoreq.5, Y=0.5+0.04T; if 5 < T.ltoreq.7, Y=0.5; if 7 < T is less than or equal to 17, Y=0.5+|T-12| 0.1; if 17 < T is less than or equal to 19, Y=0.5; if 19 < T is less than or equal to 24, y=0.5+0.04 (24-T); s2, acquiring a video frame of a video; s3, obtaining time T corresponding to the video frame, and calculating a similarity threshold Y at the moment according to the value of the time T and the relationship between the time T and the similarity threshold Y in the step S1; s4, carrying out image recognition on the video frame, obtaining the object category x, calculating the recognition similarity w, and comparing the recognition similarity w with a similarity threshold y to obtain an object recognition conclusion.
As a preferable technical solution, the time t in step S3 is a whole-point timing, that is, the number of hours of the time t corresponding to the video frame is taken.
In step S4, the method for performing image recognition on the frame of the video frame and calculating the recognition similarity w may be an SSIM method.
As a further preferable technical solution, the method for calculating the recognition similarity w includes the following steps:
a. obtaining a frame of base map containing comparison objects; b. and calculating the structural similarity of the video frame and the base map according to the SSIM formula, wherein the structural similarity is the identification similarity w.
As a further preferable technical solution, in the step a, the obtained base map is different according to the time t.
As a further preferable technical solution, the base map is divided into 5 types, the 5 types of base maps correspond to the 5 time periods of the time T in the step S1, and the corresponding base map is selected according to the time T corresponding to the video frame.
In step S4, if w is greater than y, determining that there is a detected object in the frame of the video frame, and storing the object type x and the similarity threshold y; if w is less than or equal to y, no treatment is carried out.
As a further preferable technical scheme, in step S4, if w is greater than y, after determining that there is a detected object in the video frame, an alarm is given and the object class x and the similarity threshold y information are uploaded.
According to the object recognition method for dynamically setting the similarity threshold, the object recognition similarity threshold in different time periods is set according to the light in one day and the change characteristics of the scene, so that the false alarm rate of object recognition in the intelligent community alarm event monitoring application scene is reduced. The object recognition method for dynamically setting the similarity threshold provided by the invention is used for solving the problems encountered in practical product application, and an object recognition optimization mechanism for dynamically setting the similarity threshold is provided, so that the false alarm rate of an intelligent recognition application system is reduced, and a better effect is achieved.
Drawings
FIG. 1 is a flowchart of an embodiment of an object recognition method for dynamically setting a similarity threshold according to the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
As shown in fig. 1, the object recognition method for dynamically setting a similarity threshold according to the present invention includes the following steps:
s1, formulating a similarity threshold according to a time period in a day. According to statistics of the occurrence time period of the recognition false alarm in one day, a recognition similarity threshold is formulated, and the specific description is as follows:
Figure BDA0002160953780000051
also the relationship between time T and similarity threshold Y is: if 0 < T.ltoreq.5, Y=0.5+0.04T; if 5 < T.ltoreq.7, Y=0.5; if 7 < T is less than or equal to 17, Y=0.5+|T-12| 0.1; if 17 < T is less than or equal to 19, Y=0.5; if 19 < T.ltoreq.24, Y=0.5+0.04 (24-T).
S2, acquiring a video frame of the video.
S3, obtaining time T corresponding to the video frame, and calculating the similarity threshold Y at the moment according to the value of the time T and the relationship between the time T and the similarity threshold Y in the step S1. Judging the time T of the video frame and the time period of the time T in the step S1, obtaining a calculation formula of a similarity threshold Y corresponding to T, and obtaining the similarity threshold Y at the moment through the calculation formula.
S4, carrying out image recognition on the video frame, obtaining the object category x, calculating the recognition similarity w, and comparing the recognition similarity w with a similarity threshold y to obtain an object recognition conclusion.
According to the object recognition method for dynamically setting the similarity threshold, the object recognition similarity threshold in different time periods is set according to the light in one day and the change characteristics of the scene, so that the false alarm rate of object recognition in the intelligent community alarm event monitoring application scene is reduced.
As a preferred technical solution, in order to simplify the calculation, in this embodiment, the time t in step S3 is the whole-point time, i.e. the number of hours of the time t corresponding to the video frame is taken, for example, 17:35 is t=17.
In this embodiment, in step S4, image recognition is performed on the frame of the video frame, and the method for calculating the recognition similarity w may be an SSIM method. At this time, the method of calculating the recognition similarity w includes the steps of:
a. obtaining a frame of base map containing comparison objects;
b. and calculating the structural similarity of the video frame and the base map according to the SSIM formula, wherein the structural similarity is the identification similarity w.
Specifically, a modified SSIM formula may be employed: w=s (X, Y) = (δxy+c3)/(δxδy+c3) to calculate the structural similarity of the image X and the image Y; where s (X, Y) is the covariance of X and Y, δx, δy are the standard deviations of X, Y, respectively, and c3 is a constant. In this embodiment, the image X is a base image, and the image Y is a video frame. The conventional SSIM formula is w= [ l (X, Y)] α [c(X,Y)] β [s(X,Y)] θ Wherein alpha, beta, theta>0. Where l (x, y) is the luminance comparison, c (x, y) is the contrast comparison, and s (x, y) is the structure comparison. In order to adapt to the specific requirements of object recognition, only structural comparison is made here, i.e., α=β=0, θ=1, and the modified SSIM formula is w=s (X, Y) = (δxy+c3)/(δxδy+c3). The constant c3 is set to avoid systematic errors caused by a denominator of 0. w is a number between 0 and 1, and a larger number indicates a smaller structural gap between two frames of images to be compared.
In order to avoid the influence of light changes in different time periods on the base map, and improve the object recognition accuracy, in step a of the embodiment, the obtained base map is different according to different time t. As a preferred scheme, the base graphs are divided into 5 types, the 5 types of base graphs correspond to 5 time periods of the time T in the step S1, and the corresponding base graphs are selected according to the time T corresponding to the video frame.
In this embodiment, in step S4, the specific scheme of "comparing the recognition similarity w with the similarity threshold y to obtain the object recognition conclusion" is that if w is greater than y, it is determined that there is a detected object in the frame of the video frame, and the object class x and the similarity threshold y are synchronously stored; if w is less than or equal to y, the corresponding object is not recognized, and no treatment is performed.
And if w is larger than y, alarming and uploading information of the object type x and the similarity threshold y after judging that the detected object exists in the video frame. In practical application, the detection and operation of the follow-up intelligent alarm event can be performed.
The object recognition method for dynamically setting the similarity threshold can be applied to object recognition in a video segment, can be applied to object recognition of a real-time monitoring video, and can be applied to object recognition in a single image. In practical application, the steps S2 to S4 may be circularly processed until the object identification of the whole video is completed, or the real-time monitoring of the object identification is terminated.
According to the object recognition method for dynamically setting the similarity threshold, the object recognition similarity threshold in different time periods is set according to the light in one day and the change characteristics of the scene, so that the false alarm rate of object recognition in the intelligent community alarm event monitoring application scene is reduced. The object recognition method for dynamically setting the similarity threshold provided by the invention is used for solving the problems encountered in practical product application, and an object recognition optimization mechanism for dynamically setting the similarity threshold is provided, so that the false alarm rate of an intelligent recognition application system is reduced, and a better effect is achieved.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Equivalent changes and modifications of the invention are intended to fall within the scope of the present invention.

Claims (8)

1. An object recognition method for dynamically setting a similarity threshold is characterized in that: the method comprises the following steps:
s1, formulating a similarity threshold according to a time period in a day; the relationship between time T and similarity threshold Y is: if 0 < T.ltoreq.5, Y=0.5+0.04T; if 5 < T.ltoreq.7, Y=0.5; if 7 < T is less than or equal to 17, Y=0.5+|T-12| 0.1; if 17 < T is less than or equal to 19, Y=0.5; if 19 < T is less than or equal to 24, y=0.5+0.04 (24-T);
s2, acquiring a video frame of a video;
s3, obtaining time T corresponding to the video frame, and calculating a similarity threshold Y at the moment according to the value of the time T and the relationship between the time T and the similarity threshold Y in the step S1;
s4, carrying out image recognition on the video frame, obtaining the object category x, calculating the recognition similarity w, and comparing the recognition similarity w with a similarity threshold y to obtain an object recognition conclusion.
2. The method for dynamically setting a similarity threshold according to claim 1, wherein: the time t in step S3 is the whole point timing, i.e. the number of hours of the time t corresponding to the video frame is taken.
3. The method for dynamically setting a similarity threshold according to claim 1, wherein: in step S4, image recognition is performed on the video frame, and the method for calculating the recognition similarity w may be an SSIM method.
4. A method of object recognition according to claim 3, wherein the similarity threshold is dynamically set by: the method for calculating the recognition similarity w comprises the following steps of:
a. obtaining a frame of base map containing comparison objects;
b. and calculating the structural similarity of the video frame and the base map according to the SSIM formula, wherein the structural similarity is the identification similarity w.
5. The method for dynamically setting a similarity threshold according to claim 4, wherein: in step a, the obtained base map is different according to the time t.
6. The method for dynamically setting a similarity threshold according to claim 5, wherein: the base pictures are divided into 5 types, the 5 types of base pictures correspond to 5 time periods of the time T in the step S1, and the corresponding base pictures are selected according to the time T corresponding to the video frame.
7. An object recognition method according to any one of claims 1 to 6, wherein the similarity threshold is dynamically set, and characterized in that: in step S4, if w is greater than y, determining that there is a detected object in the frame of the video frame, and storing the object class x and the similarity threshold y; if w is less than or equal to y, no treatment is carried out.
8. The method for dynamically setting a similarity threshold according to claim 7, wherein: in step S4, if w is greater than y, after determining that there is a detected object in the frame of the video frame, alarming is performed and the object class x and the similarity threshold y information are uploaded.
CN201910732173.5A 2019-08-09 2019-08-09 Object recognition method for dynamically setting similarity threshold Active CN110428017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910732173.5A CN110428017B (en) 2019-08-09 2019-08-09 Object recognition method for dynamically setting similarity threshold

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910732173.5A CN110428017B (en) 2019-08-09 2019-08-09 Object recognition method for dynamically setting similarity threshold

Publications (2)

Publication Number Publication Date
CN110428017A CN110428017A (en) 2019-11-08
CN110428017B true CN110428017B (en) 2023-05-12

Family

ID=68415208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910732173.5A Active CN110428017B (en) 2019-08-09 2019-08-09 Object recognition method for dynamically setting similarity threshold

Country Status (1)

Country Link
CN (1) CN110428017B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414744B (en) * 2020-03-25 2023-04-07 上海擎创信息技术有限公司 Operation and maintenance alarm scene generation method based on community detection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136533A (en) * 2011-11-28 2013-06-05 汉王科技股份有限公司 Face recognition method and device based on dynamic threshold value
CN107844779A (en) * 2017-11-21 2018-03-27 重庆邮电大学 A kind of video key frame extracting method
CN108734125A (en) * 2018-05-21 2018-11-02 杭州杰视科技有限公司 A kind of cigarette smoking recognition methods of open space
CN109977824A (en) * 2019-03-15 2019-07-05 百度在线网络技术(北京)有限公司 Article picks and places recognition methods, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222780B (en) * 2017-06-23 2020-11-27 中国地质大学(武汉) Method for comprehensive state perception and real-time content supervision of live broadcast platform
CN107618533A (en) * 2017-09-29 2018-01-23 兰州交通大学 A kind of machine vision detection device and method of the discrete defect of Rail Surface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136533A (en) * 2011-11-28 2013-06-05 汉王科技股份有限公司 Face recognition method and device based on dynamic threshold value
CN107844779A (en) * 2017-11-21 2018-03-27 重庆邮电大学 A kind of video key frame extracting method
CN108734125A (en) * 2018-05-21 2018-11-02 杭州杰视科技有限公司 A kind of cigarette smoking recognition methods of open space
CN109977824A (en) * 2019-03-15 2019-07-05 百度在线网络技术(北京)有限公司 Article picks and places recognition methods, device and equipment

Also Published As

Publication number Publication date
CN110428017A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN109784150B (en) Video driver behavior identification method based on multitasking space-time convolutional neural network
Boult et al. Into the woods: Visual surveillance of noncooperative and camouflaged targets in complex outdoor settings
TWI416068B (en) Object tracking method and apparatus for a non-overlapping-sensor network
CN109886994B (en) Self-adaptive occlusion detection system and method in video tracking
CN116092018B (en) Fire-fighting hidden danger monitoring method and system based on intelligent building
CN107545256B (en) Camera network pedestrian re-identification method combining space-time and network consistency
CN110287907B (en) Object detection method and device
CN108647587B (en) People counting method, device, terminal and storage medium
CN101237522A (en) Motion detection method and device
CN112906483B (en) Target re-identification method, device and computer readable storage medium
CN108986142A (en) Shelter target tracking based on the optimization of confidence map peak sidelobe ratio
CN112396044B (en) Method for training lane line attribute information detection model and detecting lane line attribute information
WO2022048572A1 (en) Target identification method and apparatus, and electronic device
CN110869942A (en) Self-feedback deep learning method and system
CN116311063A (en) Personnel fine granularity tracking method and system based on face recognition under monitoring video
CN114049383A (en) Multi-target tracking method and device and readable storage medium
CN113723229A (en) Signal lamp detection method and device and computer readable storage medium
CN111753702A (en) Target detection method, device and equipment
CN110428017B (en) Object recognition method for dynamically setting similarity threshold
CN112562315B (en) Method, terminal and storage medium for acquiring traffic flow information
CN116704490B (en) License plate recognition method, license plate recognition device and computer equipment
CN117423031A (en) Target detection and tracking system based on improved YOLOv7 and deep SORT
CN112001300A (en) Building monitoring method and device based on cross entropy according to position and electronic equipment
CN113761981B (en) Automatic driving visual perception method, device and storage medium
CN113313016B (en) Camera dirt recognition method, electronic equipment and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231205

Address after: No.2252, Shaling Road, Shatou, Jiangsu Province

Patentee after: JIANGSU TC SMART SYSTEMS GROUP Co.,Ltd.

Address before: Room 904, building 2, No. 618, Guangxing Road, Songjiang District, Shanghai 201613

Patentee before: SHANGHAI TIANCHENG BIJI TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.2252, Shaling Road, Shatou, Jiangsu Province

Patentee after: Jiangsu Tiancheng Intelligent Group Co.,Ltd.

Country or region after: China

Address before: No.2252, Shaling Road, Shatou, Jiangsu Province

Patentee before: JIANGSU TC SMART SYSTEMS GROUP Co.,Ltd.

Country or region before: China