TWI798815B - Target re-identification method, device, and computer readable storage medium - Google Patents

Target re-identification method, device, and computer readable storage medium Download PDF

Info

Publication number
TWI798815B
TWI798815B TW110133172A TW110133172A TWI798815B TW I798815 B TWI798815 B TW I798815B TW 110133172 A TW110133172 A TW 110133172A TW 110133172 A TW110133172 A TW 110133172A TW I798815 B TWI798815 B TW I798815B
Authority
TW
Taiwan
Prior art keywords
target
bull
image
recognition library
eye
Prior art date
Application number
TW110133172A
Other languages
Chinese (zh)
Other versions
TW202230215A (en
Inventor
任培銘
劉金傑
樂振滸
林誥
Original Assignee
大陸商中國銀聯股份有限公司
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 大陸商中國銀聯股份有限公司 filed Critical 大陸商中國銀聯股份有限公司
Publication of TW202230215A publication Critical patent/TW202230215A/en
Application granted granted Critical
Publication of TWI798815B publication Critical patent/TWI798815B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • 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/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/53Recognition of crowd images, e.g. recognition of crowd congestion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Transition And Organic Metals Composition Catalysts For Addition Polymerization (AREA)

Abstract

This invention provides a target re-identification method, apparatus, and computer readable storage medium, and the method includes obtaining a multiple of current frames collected by a multiple of cameras installed in the monitoring area; performing a target detection based on the current frames to confirm the image of a target icon captured by each camera; performing a quantitative detection based on the image of the target icon captured by each camera to obtain the number of global targets; performing a target re-recognition according to the image of the target icon and a target recognition library, wherein the target recognition library includes at least one target ID and characteristic data; confirming at least one image of an unidentified target icon according to the target re-identification result to create a new ID and label at least one unidentified target icon when the quantity of detected global targets satisfies the preset increase condition; updating the target recognition library according to the new ID and the characteristic data of the at least one image of the unidentified target icon. This method can improve the accuracy and stability of the target re-identification.

Description

目標重識別方法、裝置及電腦可讀存儲介質Target re-identification method, device and computer-readable storage medium

本發明屬於識別領域,具體涉及一種目標重識別方法、裝置及電腦可讀存儲介質。The invention belongs to the field of identification, and in particular relates to a target re-identification method, device and computer-readable storage medium.

本部分旨在為請求項中陳述的本發明的實施方式提供背景或上下文。此處的描述不因為包括在本部分中就承認是現有技術。This section is intended to provide a background or context for implementations of the invention that are set forth in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.

目前,隨著視頻監控技術的普及以及不斷提升的安防需求,應用於視頻監控領域中的目標重識別逐漸成為電腦視覺研究領域的熱點之一。At present, with the popularization of video surveillance technology and the ever-increasing security requirements, target re-identification applied in the field of video surveillance has gradually become one of the hot spots in the field of computer vision research.

在諸如資料中心、商場等的安全需求較高的監控場所中實現跨攝像頭的目標重識別顯得非常重要。在目標重識別過程中,當新的目標進入監控區域時,需要為該新的目標分配一個新ID以便後續進行識別,業界通常採用計算靶心圖表像和目標識別庫中的特徵資料之間的特徵相似度的方法來判斷是否創建並分配新ID,而有些場景下,由於目標遮擋、拍攝角度等問題會對上述判斷的準確度造成較大的影響,進而可能造成目標重識別不準確的問題。It is very important to achieve cross-camera target re-identification in monitoring places with high security requirements such as data centers and shopping malls. In the target re-identification process, when a new target enters the monitoring area, it is necessary to assign a new ID to the new target for subsequent identification. The industry usually uses the calculation of the characteristics between the bull's-eye image and the feature data in the target recognition library. The method of similarity is used to judge whether to create and assign a new ID. In some scenarios, the accuracy of the above judgment will be greatly affected by problems such as target occlusion and shooting angle, which may cause inaccurate target re-identification.

針對上述現有技術中存在的問題,提出了一種目標重識別方法、裝置及電腦可讀存儲介質,利用這種方法、裝置及電腦可讀存儲介質,能夠解決上述問題。Aiming at the above-mentioned problems existing in the prior art, a target re-identification method, device and computer-readable storage medium are proposed, and the above-mentioned problems can be solved by using the method, device and computer-readable storage medium.

本發明提供了以下方案。The present invention provides the following solutions.

第一方面,提供一種目標重識別方法,包括:獲取設置於監控區域內的多個攝像頭採集的多個當前幀;根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量;根據靶心圖表像和目標識別庫進行目標重識別,目標識別庫包括至少一個目標的身份標識和特徵資料;當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識對至少一個未識別靶心圖表像進行標記;根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫。In the first aspect, a target re-identification method is provided, including: acquiring a plurality of current frames collected by a plurality of cameras arranged in a monitoring area; performing target detection according to the plurality of current frames, and determining a bull's-eye image captured by each camera; Quantity detection is carried out according to the bull's-eye chart image captured by each camera to obtain the number of targets in the whole area; target re-identification is performed according to the bull's-eye chart image and the target recognition library, and the target recognition library includes at least one target's identity and characteristic data; when the global target is detected When the number of targets meets the preset increase conditions, at least one unrecognized bull's-eye image is determined according to the result of target re-identification, and a new identity is created to mark at least one unrecognized bull's-eye image; according to the new identity and at least one unidentified The feature data of the bull's-eye image is updated to the object recognition library.

在一種可能的實施方式中,根據多個當前幀進行目標檢測,還包括:將多個當前幀輸入經訓練的目標檢測模型,以提取出每個攝像頭捕獲到的靶心圖表像;其中,目標檢測模型為基於YOLOv4-tiny網路創建的人體檢測模型。In a possible implementation manner, performing target detection according to a plurality of current frames further includes: inputting a plurality of current frames into a trained target detection model to extract a bull's-eye image captured by each camera; wherein, the target detection The model is a human detection model based on the YOLOv4-tiny network.

在一種可能的實施方式中,方法還包括:根據監控區域內的真實採集圖像對YOLOv4-tiny網路進行訓練,得到目標檢測模型。In a possible implementation manner, the method further includes: training the YOLOv4-tiny network according to the real collected images in the monitoring area to obtain a target detection model.

在一種可能的實施方式中,靶心圖表像為當前幀中包含目標特徵的局部圖像,根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,還包括:根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,得到每個攝像頭捕獲到的靶心圖表像對應的全域位置;確定由不同攝像頭各自捕獲的靶心圖表像的全域位置重合度,根據全域位置重合度對不同攝像頭各自捕獲的靶心圖表像進行篩選,檢測篩選後保留的靶心圖表像的數量。In a possible implementation manner, the bull's-eye chart image is a partial image containing target features in the current frame, and the quantity detection is performed according to the bull's-eye chart images captured by each camera, and further includes: Convert the position of the bull's-eye chart image to obtain the global position corresponding to the bull's-eye chart image captured by each camera; determine the global position coincidence degree of the bull's-eye chart image captured by different cameras, and compare the global position coincidence degree of the different cameras according to the global position coincidence degree The bull's-eye chart images are screened to detect the number of bull-eye chart images retained after filtering.

在一種可能的實施方式中,方法還包括:當數量檢測的結果少於在先全域目標數量時,則根據多個攝像頭採集的多個當前幀和多個當前幀的上一幀,判斷是否存在從預定區域離開監控區域的目標;若不存在目標,則仍然保留在先全域目標數量作為本次確定的全域目標數量;若存在目標,則將數量檢測的結果作為本次確定的全域目標數量;其中,在先全域目標數量根據對多個當前幀的上一幀進行目標檢測和數量檢測得到。In a possible implementation manner, the method further includes: when the result of the number detection is less than the number of previous global targets, judging whether there are The target that leaves the monitoring area from the predetermined area; if there is no target, the number of previous global targets will still be retained as the number of global targets determined this time; if there are targets, the result of the number detection will be used as the number of global targets determined this time; Wherein, the number of previous global objects is obtained by performing object detection and number detection on previous frames of multiple current frames.

在一種可能的實施方式中,根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,還包括:根據每個攝像頭的取景位置對當前幀中的靶心圖表像的底部中心點進行投影變換,從而確定每個靶心圖表像的地面座標。In a possible implementation manner, performing position conversion on the captured bull's-eye chart image according to the viewing position of each camera further includes: projecting the bottom center point of the bull's-eye chart image in the current frame according to the viewing position of each camera Transform to determine the ground coordinates of each bull's-eye chart image.

在一種可能的實施方式中,方法還包括:將多個當前幀輸入經訓練的目標數量檢測模型,以執行目標檢測和數量檢測,得到全域目標數量;其中,目標數量檢測模型為基於YOLOv4-tiny網路創建的行人數量檢測模型。In a possible implementation, the method further includes: inputting a plurality of current frames into the trained target quantity detection model to perform target detection and quantity detection to obtain the global target quantity; wherein, the target quantity detection model is based on YOLOv4-tiny A pedestrian count detection model created by the network.

在一種可能的實施方式中,根據靶心圖表像和目標識別庫進行目標重識別,還包括:計算靶心圖表像與目標識別庫中的特徵資料之間的相似度,並依據計算得到的相似度,對靶心圖表像進行目標重識別;當目標重識別的結果指示第一靶心圖表像與目標識別庫中的第一目標匹配時,根據第一目標的身份標識對第一靶心圖表像進行標記。In a possible implementation manner, performing target re-identification according to the bull's-eye chart image and the target recognition library further includes: calculating the similarity between the bull's-eye chart image and the characteristic data in the target recognition library, and according to the calculated similarity, Performing target re-identification on the bull's-eye chart image; when the result of target re-identification indicates that the first bull's-eye chart image matches the first target in the target recognition library, mark the first bull's-eye chart image according to the identity of the first target.

在一種可能的實施方式中,方法還包括:若當前幀為非首幀,且當前幀對應的全域目標數量相較於上一幀對應的全域目標數量增加時,則全域目標數量符合預設增加條件;若當前幀為首幀時,預設全域目標數量符合預設增加條件。In a possible implementation manner, the method further includes: if the current frame is not the first frame, and the number of global objects corresponding to the current frame increases compared with the number of global objects corresponding to the previous frame, then the number of global objects conforms to the preset increase Condition; if the current frame is the first frame, the number of preset global targets meets the preset increase condition.

在一種可能的實施方式中,根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫,還包括:判斷至少一個未識別靶心圖表像是否滿足預設圖像品質條件;將新的身份標識和滿足預設圖像品質條件的未識別靶心圖表像對應存入目標識別庫。In a possible implementation manner, updating the target recognition library according to the new identity and the feature data of at least one unrecognized bull's-eye image also includes: judging whether the at least one unrecognized bull-eye image satisfies a preset image quality condition; The new identity mark and the unrecognized bull's-eye image meeting the preset image quality conditions are correspondingly stored in the target recognition library.

在一種可能的實施方式中,根據靶心圖表像和目標識別庫進行目標重識別之後,方法還包括:根據第一靶心圖表像或第一靶心圖表像的特徵值對目標識別庫中的第一目標的特徵資料進行動態更新。In a possible implementation manner, after performing target re-identification according to the bull's-eye chart image and the target recognition library, the method further includes: re-identifying the first target in the target recognition library according to the first bull's-eye chart image or the feature value of the first bull-eye chart image The feature data is updated dynamically.

在一種可能的實施方式中,方法還包括對目標識別庫進行替換更新,具體包括:根據目標識別庫中的每個目標的特徵資料對應的來源時間和當前時間的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的特徵資料對應的全域位置和每個目標的當前全域位置的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的多個特徵資料之間的特徵相似度,對目標識別庫進行替換更新。In a possible implementation manner, the method further includes replacing and updating the target recognition library, specifically including: performing an update on the target recognition library according to the comparison result of the source time corresponding to the characteristic data of each target in the target recognition library and the current time. Replace and update; and/or, according to the comparison result of the global position corresponding to the feature data of each target in the target recognition library and the current global position of each target, replace and update the target recognition library; and/or, according to the target recognition The feature similarity between multiple feature data of each target in the library is used to replace and update the target recognition library.

在一種可能的實施方式中,方法還包括:任意一個目標的特徵資料的數量超過預設閾值之後,啟動替換更新。In a possible implementation manner, the method further includes: after the quantity of the feature data of any one target exceeds a preset threshold, starting a replacement update.

第二方面,提供一種目標重識別裝置,包括:獲取模組,用於獲取設置於監控區域內的多個攝像頭採集的多個當前幀;目標檢測模組,用於根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;數量檢測模組,用於根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量;目標重識別模組,用於根據靶心圖表像和目標識別庫進行目標重識別,目標識別庫包括至少一個目標的身份標識和特徵資料;身份標識模組,用於當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識對至少一個未識別靶心圖表像進行標記;目標識別庫更新模組,用於根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫。In a second aspect, a target re-identification device is provided, including: an acquisition module, configured to acquire a plurality of current frames captured by a plurality of cameras arranged in a monitoring area; a target detection module, configured to perform target detection based on a plurality of current frames. Detection, to determine the bull's-eye chart image captured by each camera; the quantity detection module is used to perform quantity detection based on the bull's-eye chart image captured by each camera, and obtain the number of targets in the whole area; the target re-identification module is used to use the bull's-eye chart Image and target recognition library for target re-identification, the target recognition library includes at least one target's identity and characteristic data; the identity identification module is used for when the number of targets in the whole domain is detected to meet the preset increase conditions, according to the result of target re-identification Determine at least one unrecognized bull's-eye image, and create a new identity to mark at least one of the unrecognized bull's-eye image; target recognition library update module, used for feature data according to the new identity and at least one unrecognized bull's-eye image Update object recognition library.

在一種可能的實施方式中,目標檢測模組,還用於:將多個當前幀輸入經訓練的目標檢測模型,以提取出每個攝像頭捕獲到的靶心圖表像;其中,目標檢測模型為基於YOLOv4-tiny網路創建的人體檢測模型。In a possible implementation, the target detection module is also used to: input multiple current frames into the trained target detection model to extract the bull's-eye image captured by each camera; wherein, the target detection model is based on A human detection model created by the YOLOv4-tiny network.

在一種可能的實施方式中,目標檢測模組,還用於:根據監控區域內的真實採集圖像對YOLOv4-tiny網路進行訓練,得到目標檢測模型。In a possible implementation manner, the target detection module is also used to: train the YOLOv4-tiny network according to the real collected images in the monitoring area to obtain a target detection model.

在一種可能的實施方式中,靶心圖表像為當前幀中包含目標特徵的局部圖像,數量檢測模組還用於:根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,得到每個攝像頭捕獲到的靶心圖表像對應的全域位置;確定由不同攝像頭各自捕獲的靶心圖表像的全域位置重合度,根據全域位置重合度對不同攝像頭各自捕獲的靶心圖表像進行篩選,檢測篩選後保留的靶心圖表像的數量。In a possible implementation manner, the bull's-eye image is a partial image containing target features in the current frame, and the quantity detection module is also used to: perform position conversion on the captured bull's-eye image according to the viewing position of each camera to obtain The global position corresponding to the bull's-eye chart image captured by each camera; determine the global position coincidence degree of the bull's-eye chart image captured by different cameras, and filter the bull's-eye chart images captured by different cameras according to the global position coincidence degree, and detect and filter The number of bullseye chart images to keep.

在一種可能的實施方式中,數量檢測模組還用於:當數量檢測的結果少於在先全域目標數量時,則根據多個攝像頭採集的多個當前幀和多個當前幀的上一幀,判斷是否存在從預定區域離開監控區域的目標;若不存在目標,則仍然保留在先全域目標數量作為本次確定的全域目標數量;若存在目標,則將數量檢測的結果作為本次確定的全域目標數量;其中,在先全域目標數量根據對多個當前幀的上一幀進行目標檢測和數量檢測得到。In a possible implementation manner, the number detection module is also used for: when the result of the number detection is less than the number of previous global objects, then according to the multiple current frames collected by multiple cameras and the last frame of the multiple current frames , to determine whether there is a target that leaves the monitoring area from the predetermined area; if there is no target, the number of previous global targets is still retained as the number of global targets determined this time; if there is a target, the result of the number detection is used as the determined The number of global objects; wherein, the number of previous global objects is obtained by performing object detection and number detection on previous frames of multiple current frames.

在一種可能的實施方式中,數量檢測模組還用於:根據每個攝像頭的取景位置對當前幀中的靶心圖表像的底部中心點進行投影變換,從而確定每個靶心圖表像的地面座標。In a possible implementation, the number detection module is also used for: performing projective transformation on the bottom central point of the bull's-eye image in the current frame according to the viewing position of each camera, so as to determine the ground coordinates of each bull's-eye image.

在一種可能的實施方式中,裝置還用於:將多個當前幀輸入經訓練的目標數量檢測模型,以執行目標檢測和數量檢測,得到全域目標數量;其中,目標數量檢測模型為基於YOLOv4-tiny網路創建的行人數量檢測模型。In a possible implementation, the device is also used to: input multiple current frames into the trained target quantity detection model to perform target detection and quantity detection to obtain the global target quantity; wherein, the target quantity detection model is based on YOLOv4- Pedestrian count detection model created by tiny network.

在一種可能的實施方式中,目標重識別模組還用於:計算靶心圖表像與目標識別庫中的特徵資料之間的相似度,並依據計算得到的相似度,對靶心圖表像進行目標重識別;當目標重識別的結果指示第一靶心圖表像與目標識別庫中的第一目標匹配時,根據第一目標的身份標識對第一靶心圖表像進行標記。In a possible implementation, the target re-identification module is also used to: calculate the similarity between the bull's-eye chart image and the feature data in the target recognition library, and perform target re-targeting on the bull's-eye chart image according to the calculated similarity. Recognition: when the result of target re-identification indicates that the first bull's-eye chart image matches the first target in the target recognition library, mark the first bull's-eye chart image according to the identity of the first target.

在一種可能的實施方式中,身份標識模組還用於:若當前幀為非首幀,且當前幀對應的全域目標數量相較於上一幀對應的全域目標數量增加時,則全域目標數量符合預設增加條件;若當前幀為首幀時,預設全域目標數量符合預設增加條件。In a possible implementation, the identification module is also used to: if the current frame is not the first frame, and the number of global objects corresponding to the current frame increases compared with the number of global objects corresponding to the previous frame, then the number of global objects Meet the preset increase conditions; if the current frame is the first frame, the preset number of global targets meets the preset increase conditions.

在一種可能的實施方式中,目標識別庫更新模組還用於:判斷至少一個未識別靶心圖表像是否滿足預設圖像品質條件;將新的身份標識和滿足預設圖像品質條件的未識別靶心圖表像對應存入目標識別庫。In a possible implementation, the target recognition library update module is further used to: determine whether at least one unrecognized bull's-eye image satisfies a preset image quality condition; The image of the recognized bull's-eye chart is correspondingly stored in the target recognition library.

在一種可能的實施方式中,目標識別庫更新模組還用於:根據第一靶心圖表像或第一靶心圖表像的特徵值對目標識別庫中的第一目標的特徵資料進行動態更新。In a possible implementation manner, the target recognition library update module is further configured to: dynamically update the characteristic data of the first target in the target recognition library according to the first bull's-eye image or the feature value of the first bull's-eye image.

在一種可能的實施方式中,目標識別庫更新模組還用於:根據目標識別庫中的每個目標的特徵資料對應的來源時間和當前時間的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的特徵資料對應的全域位置和每個目標的當前全域位置的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的多個特徵資料之間的特徵相似度,對目標識別庫進行替換更新。In a possible implementation, the target recognition library update module is also used to: replace and update the target recognition library according to the comparison result of the source time corresponding to the characteristic data of each target in the target recognition library and the current time; and /or, according to the comparison result of the global position corresponding to the feature data of each target in the target recognition library and the current global position of each target, the target recognition library is replaced and updated; and/or, according to each target in the target recognition library The feature similarity between multiple feature data of a target is used to replace and update the target recognition library.

在一種可能的實施方式中,目標識別庫更新模組還用於:任意一個目標的特徵資料的數量超過預設閾值之後,啟動替換更新。In a possible implementation manner, the target recognition library update module is further configured to: start a replacement update after the quantity of feature data of any one target exceeds a preset threshold.

協力廠商面,提供一種目標重識別裝置,包括:一個或者多個多核處理器;記憶體,用於存儲一個或多個程式;當所述一個或多個程式被所述一個或者多個多核處理器執行時,使得所述一個或多個多核處理器實現:如第一方面的方法。In terms of third parties, a target re-identification device is provided, including: one or more multi-core processors; memory for storing one or more programs; when the one or more programs are processed by the one or more multi-cores When the processor is executed, the one or more multi-core processors are made to implement: the method in the first aspect.

第四方面,提供一種電腦可讀存儲介質,所述電腦可讀存儲介質存儲有程式,當所述程式被多核處理器執行時,使得所述多核處理器執行如第一方面的方法。In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method according to the first aspect.

本申請實施例採用的上述至少一個技術方案能夠達到以下有益效果:本實施例中,檢測監控區域內的全域目標數量,通過檢測到的全域目標數量對新的身份標識的創建和分配進行控制,能夠很好地保證身份標識的分配準確,保證目標重識別的準確度和穩定性。The above at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects: In this embodiment, the number of global targets in the monitoring area is detected, and the creation and distribution of new identities are controlled by the detected number of global targets, It can well guarantee the accuracy of the distribution of identity marks, and ensure the accuracy and stability of target re-identification.

應當理解,上述說明僅是本發明技術方案的概述,以便能夠更清楚地瞭解本發明的技術手段,從而可依照說明書的內容予以實施。為了讓本發明的上述和其它目的、特徵和優點能夠更明顯易懂,以下特舉例說明本發明的具體實施方式。It should be understood that the above description is only an overview of the technical solution of the present invention, so as to understand the technical means of the present invention more clearly, so as to be implemented according to the contents of the description. In order to make the above and other objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention are illustrated below.

下面將參照附圖更詳細地描述本公開的示例性實施例。雖然附圖中顯示了本公開的示例性實施例,然而應當理解,可以以各種形式實現本公開而不應被這裡闡述的實施例所限制。相反,提供這些實施例是為了能夠更透徹地理解本公開,並且能夠將本公開的範圍完整的傳達給本領域的技術人員。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

在本申請實施例的描述中,應理解,諸如“包括”或“具有”等術語旨在指示本說明書中所公開的特徵、數位、步驟、行為、部件、部分或其組合的存在,並且不旨在排除一個或多個其他特徵、數位、步驟、行為、部件、部分或其組合存在的可能性。In the description of the embodiments of the present application, it should be understood that terms such as "comprising" or "having" are intended to indicate the existence of the features, numbers, steps, acts, components, parts or combinations thereof disclosed in the specification, and do not It is intended to exclude the possibility of the existence of one or more other features, figures, steps, acts, parts, parts or combinations thereof.

除非另有說明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”僅僅是一種描述關聯物件的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。Unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, which means that there can be three relationships, for example, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone.

術語“第一”、“第二”等僅用於描述目的,而不能理解為指示或暗示相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”等的特徵可以明示或者隱含地包括一個或者更多個該特徵。在本申請實施例的描述中,除非另有說明,“多個”的含義是兩個或兩個以上。The terms "first", "second", etc. are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, a feature defined as "first", "second", etc. may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

本申請中的所有代碼都是示例性的,本領域技術人員根據所使用的程式設計語言,具體的需求和個人習慣等因素會在不脫離本申請的思想的條件下想到各種變型。All codes in this application are exemplary, and those skilled in the art will think of various modifications without departing from the idea of this application according to factors such as the programming language used, specific needs and personal habits.

目標即時跟蹤方法,其特徵在於,包括:獲取設置於監控區域內的多個攝像頭採集的多個當前幀;根據所述多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;根據每個攝像頭捕獲到的所述靶心圖表像進行數量檢測,得到全域目標數量;根據所述靶心圖表像和目標識別庫進行目標重識別,其中所述目標識別庫包括至少一個目標的身份標識和特徵資料;當檢測到所述全域目標數量符合預設增加條件時,根據所述目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識對所述至少一個未識別靶心圖表像進行標記;根據所述新的身份標識和所述至少一個未識別靶心圖表像的特徵資料更新所述目標識別庫。The target real-time tracking method is characterized in that, comprising: obtaining a plurality of current frames collected by a plurality of cameras arranged in the monitoring area; performing target detection according to the plurality of current frames, and determining a bull's-eye image captured by each camera; Perform quantity detection according to the bull's-eye image captured by each camera to obtain the number of targets in the whole area; perform target re-identification according to the bull's-eye image and a target recognition library, wherein the target recognition library includes at least one target identity and Feature data; when it is detected that the number of targets in the whole domain meets the preset increase condition, at least one unrecognized bull's-eye image is determined according to the result of the target re-identification, and a new identity is created for the at least one unrecognized bull's-eye image Marking; updating the target recognition library according to the new identity and the feature data of the at least one unrecognized bull's-eye image.

另外還需要說明的是,在不衝突的情況下,本發明中的實施例及實施例中的特徵可以相互組合。下面將參考附圖並結合實施例來詳細說明本發明。In addition, it should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.

圖1為根據本申請一實施例的即時目標跟蹤方法的流程示意圖,用於跟蹤預設場景內的指定目標,在該流程中,從設備角度而言,執行主體可以是一個或者多個電子設備;從程式角度而言,執行主體相應地可以是搭載於這些電子設備上的程式。Fig. 1 is a schematic flow diagram of a real-time target tracking method according to an embodiment of the present application, which is used to track a specified target in a preset scene. In this process, from the perspective of equipment, the execution subject may be one or more electronic devices ; From a program point of view, the execution subject can be a program carried on these electronic devices accordingly.

如圖1所示,該方法100包括:As shown in Figure 1, the method 100 includes:

步驟101、獲取設置於監控區域內的多個攝像頭採集的多個當前幀;Step 101, obtaining multiple current frames captured by multiple cameras set in the monitoring area;

具體地,監控區域是指多個攝像頭的取景區域的總和,多個攝像頭包括至少兩個攝像頭,並且上述多個攝像頭的取景區域彼此相鄰接或至少部分地重疊,從而待跟蹤的目標能夠在監控區域中移動進而出現在任意一個或多個攝像頭的取景區域內。其中,從多個攝像頭的監控視頻中分別提取多個攝像頭的當前幀,其中每個攝像頭的當前幀具有相同的採集時間。可選地,本公開中的跟蹤目標優選為行人,本領域技術人員可以理解,上述跟蹤目標也可以是其他可移動的物體,比如動物、車輛等,本公開對此不作具體限制。Specifically, the monitoring area refers to the sum of the viewing areas of multiple cameras, the multiple cameras include at least two cameras, and the viewing areas of the multiple cameras are adjacent to each other or at least partially overlapped, so that the target to be tracked can be in Move in the monitoring area and appear in the viewing area of any one or more cameras. Wherein, the current frames of the multiple cameras are respectively extracted from the surveillance videos of the multiple cameras, wherein the current frames of each camera have the same acquisition time. Optionally, the tracking target in the present disclosure is preferably a pedestrian. Those skilled in the art can understand that the above tracking target can also be other movable objects, such as animals, vehicles, etc., which is not specifically limited in the present disclosure.

例如,在複雜監控場景下,比如在樓道、大型商場、機房等場所,通常會使用大量的攝像頭對各個區域進行監控,並得到多路監控視頻。圖2示出一種示意性監控場景,在該監控場景中設置有攝像頭201和攝像頭202,如圖3示出上述攝像頭201和攝像頭202的取景畫面。其中,攝像頭201採集的監控視頻可解析為圖像幀序列

Figure 02_image001
,攝像頭202採集的監控視頻可解析為圖像幀序列
Figure 02_image003
,其中上述解析可以即時線上進行或離線進行。基於此,可以按時序從上述多個圖像幀序列中依次提取兩個攝像頭的當前幀
Figure 02_image005
Figure 02_image007
以進行本公開所示出的即時目標跟蹤,其中,下標n的取值可以是
Figure 02_image009
。 For example, in complex monitoring scenarios, such as in corridors, large shopping malls, computer rooms and other places, a large number of cameras are usually used to monitor various areas and obtain multiple monitoring videos. FIG. 2 shows a schematic monitoring scene, in which a camera 201 and a camera 202 are set, and FIG. 3 shows a viewfinder picture of the above-mentioned camera 201 and camera 202 . Wherein, the surveillance video collected by the camera 201 can be parsed into a sequence of image frames
Figure 02_image001
, the surveillance video collected by the camera 202 can be parsed into a sequence of image frames
Figure 02_image003
, wherein the above analysis can be performed online or offline in real time. Based on this, the current frames of the two cameras can be sequentially extracted from the above multiple image frame sequences in sequence
Figure 02_image005
and
Figure 02_image007
To carry out the real-time target tracking shown in this disclosure, wherein, the value of the subscript n can be
Figure 02_image009
.

如圖1所示,該方法100可以包括:As shown in Figure 1, the method 100 may include:

步驟102、根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;Step 102, perform target detection according to multiple current frames, and determine the bull's-eye image captured by each camera;

具體地,靶心圖表像可以是當前幀中包含目標特徵的局部圖像。例如,如圖4所示,示出了攝像頭201和攝像頭202的當前幀

Figure 02_image005
Figure 02_image007
,然後,在任意基於深度學習的目標檢測模型中輸入預處理後的當前幀
Figure 02_image005
Figure 02_image007
進行檢測,輸出針對每個攝像頭的一系列行人圖像(靶心圖表像的一種示例)。目標檢測模型比如可以是YOLO(統一即時目標檢測,You Only Look Once)模型等,本公開對此不作具體限制。如圖5所示,示出了對多個當前幀
Figure 02_image005
Figure 02_image007
進行檢測得到的多個目標(行人)檢測框,可以理解,根據目標(行人)檢測框從當前幀中可以截取到目標(行人)圖像,其中攝像頭201捕獲到的目標(行人)圖像包括
Figure 02_image011
,攝像頭202捕獲到的目標(行人)包括圖像
Figure 02_image013
。可以將截取出的目標(行人)圖像進行歸一化處理,以便於後續的跟蹤展示。 Specifically, the bull's-eye chart image may be a partial image containing target features in the current frame. For example, as shown in Figure 4, the current frames of the camera 201 and the camera 202 are shown
Figure 02_image005
and
Figure 02_image007
, and then input the preprocessed current frame into any deep learning-based target detection model
Figure 02_image005
and
Figure 02_image007
Detection is performed, outputting a sequence of pedestrian images for each camera (an example of a bull's-eye chart image). The target detection model may be, for example, a YOLO (You Only Look Once) model, etc., which is not specifically limited in the present disclosure. As shown in Figure 5, it shows that for multiple current frames
Figure 02_image005
and
Figure 02_image007
The multiple target (pedestrian) detection frames obtained by detection can be understood that the target (pedestrian) image can be intercepted from the current frame according to the target (pedestrian) detection frame, wherein the target (pedestrian) image captured by the camera 201 includes
Figure 02_image011
, the target (pedestrian) captured by the camera 202 includes the image
Figure 02_image013
. The intercepted target (pedestrian) image can be normalized for subsequent tracking display.

進一步地,在一種可能的實施方式中,為了更準確地檢測到靶心圖表像,步驟102還可以包括:將多個當前幀輸入經訓練的目標檢測模型,以提取出每個攝像頭捕獲到的靶心圖表像;其中,目標檢測模型為基於YOLOv4-tiny網路創建的人體檢測模型。Further, in a possible implementation manner, in order to detect the bull's-eye image more accurately, step 102 may also include: inputting multiple current frames into the trained target detection model to extract the bull's-eye captured by each camera Diagram image; Among them, the target detection model is a human detection model created based on the YOLOv4-tiny network.

具體地,可以基於深度學習的即時目標檢測演算法YOLOV4-TINY進行改進得到YOLOV4-TINY-P(YOLOv4-tiny-People),並訓練生成人體檢測模型,利用該人體檢測模型可以針對行人整體特徵進行識別,且不受佩戴口罩等臉部遮擋的影響。此外,無需專業的人臉攝像頭,利用多個普通的監控攝像頭就可以直接完成上述目標檢測。Specifically, the instant target detection algorithm YOLOV4-TINY based on deep learning can be improved to obtain YOLOV4-TINY-P (YOLOv4-tiny-People), and trained to generate a human body detection model, which can be used to target the overall characteristics of pedestrians. Recognition, and is not affected by facial occlusions such as wearing a mask. In addition, without a professional face camera, the above-mentioned target detection can be directly completed by using multiple ordinary surveillance cameras.

可選地,也可以採用基於其他目標檢測演算法,比如faster-rcnn目標檢測演算法、yolov4目標檢測演算法等,本申請對此不作具體限制。Optionally, other target detection algorithms may also be used, such as the faster-rcnn target detection algorithm, yolov4 target detection algorithm, etc., which are not specifically limited in this application.

可選地,針對諸如車輛檢測、動物檢測等其他目標檢測場景,可以對應採用其他目標檢測模型,本申請對此不作具體限制。Optionally, for other target detection scenarios such as vehicle detection and animal detection, other target detection models may be used correspondingly, which is not specifically limited in the present application.

進一步地,在一些實施方式中,為了使目標檢測模型針對具體監控場景時仍可以保持高準確度,還可以執行以下步驟以獲取上述目標檢測模型:根據監控區域內的真實採集圖像對YOLOv4-tiny網路進行訓練,得到目標檢測模型。Further, in some implementations, in order to make the target detection model maintain high accuracy for specific monitoring scenarios, the following steps can also be performed to obtain the above-mentioned target detection model: according to the real collected images in the monitoring area, pair YOLOv4- The tiny network is trained to obtain a target detection model.

例如,當應用于機房場景時,可以對諸如機房的實際場景中的行人進行針對性訓練,基於實際場景增設目標正負樣本,例如,椅子、背包、伺服器等物品為負樣本,行人為正樣本,從而避免由於光線原因將遠處的背包和椅子雜物等物體誤識別成不同形態的行人的情況。訓練資料採用可以採用實際機房場景資料、PASCAL VOC2007和VOC2012等目標檢測資料集聯合訓練,進一步提升模型檢測能力。For example, when applied to a computer room scene, targeted training can be performed on pedestrians in actual scenes such as a computer room, and target positive and negative samples are added based on the actual scene. For example, chairs, backpacks, servers, etc. are negative samples, and pedestrians are positive samples. , so as to avoid the misidentification of objects such as backpacks and chair sundries in the distance as pedestrians of different forms due to light reasons. The training data can be jointly trained with the actual computer room scene data, PASCAL VOC2007 and VOC2012 and other target detection data sets to further improve the model detection ability.

如圖1所示,該方法100還包括:As shown in Figure 1, the method 100 also includes:

步驟103、根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量。Step 103 , performing quantity detection according to the bull's-eye image captured by each camera, to obtain the quantity of targets in the whole area.

可以利用任何可能的目標統計方法進行上述數量檢測,本申請對此不作具體限制。Any possible target statistical method can be used to perform the above quantitative detection, which is not specifically limited in the present application.

比如,可以先單獨檢測每個攝像頭中的局部目標數量,將多個局部目標數量累加後再分析出不同攝像頭中捕獲到得到重合的靶心圖表像,並進行對應刪減。參考圖5,在攝像頭201捕獲到三個目標(行人)圖像,包括

Figure 02_image011
,攝像頭202捕獲到的一個目標(行人)圖像,包括
Figure 02_image013
,將局部目標數量累加,由於不同攝像頭之間存在取景範圍的交叉,因此必然存在由不同攝像頭拍攝到了同一目標的不同角度的靶心圖表像的情況,可以通過位置分析判斷攝像頭201捕獲到的
Figure 02_image015
與攝像頭202捕獲到的
Figure 02_image013
重合,從局部目標數量累加結果中刪減重合的數量,由此可以得到全域目標數量為3個。 For example, the number of local targets in each camera can be detected separately, and then the number of multiple local targets can be accumulated to analyze the overlapped bull's-eye images captured by different cameras, and correspondingly deleted. Referring to FIG. 5, three target (pedestrian) images are captured by the camera 201, including
Figure 02_image011
, a target (pedestrian) image captured by the camera 202, including
Figure 02_image013
, add up the number of local targets, because there is an intersection of viewing ranges between different cameras, there must be a situation where different cameras capture the bull’s-eye images of the same target at different angles, and the location analysis can be used to judge the captured by the camera 201
Figure 02_image015
Captured with camera 202
Figure 02_image013
Overlap, the number of overlaps is deleted from the accumulation result of the number of local targets, so that the number of global targets can be obtained as 3.

在一些實施方式中,為了準確獲取監控區域內的全域目標數量,步驟103還可以包括以下步驟:根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,得到每個攝像頭捕獲到的靶心圖表像對應的全域位置;確定由不同攝像頭各自捕獲的靶心圖表像的全域位置重合度,根據全域位置重合度對靶心圖表像進行篩選;根據篩選後保留的靶心圖表像的數量確定監控區域內的全域目標數量。In some implementations, in order to accurately obtain the number of global targets in the monitoring area, step 103 may also include the following steps: performing position conversion on the captured bull's-eye chart image according to the viewing position of each camera to obtain the target number captured by each camera. The global position corresponding to the bull's-eye chart image; determine the global position coincidence degree of the bull's-eye chart image captured by different cameras, and screen the bull's-eye chart image according to the global position coincidence degree; determine the monitoring area according to the number of bull's-eye chart images retained after screening The number of global targets for .

可以理解,靶心圖表像為當前幀中包含目標特徵的局部圖像,通過局部圖像和當前幀的位置關係以及對應攝像頭的取景範圍進行簡單的位置計算,即可獲知靶心圖表像的全域位置和監控區域內的全域目標數量。It can be understood that the bull's-eye image is a partial image containing target features in the current frame, and the global position and Monitors the number of global targets in the area.

參考圖5,在攝像頭201捕獲到靶心圖表像

Figure 02_image011
,攝像頭202捕獲到的靶心圖表像
Figure 02_image013
,根據攝像頭201的取景位置對捕獲到的靶心圖表像
Figure 02_image011
進行位置轉換,根據攝像頭202的取景位置對捕獲到的靶心圖表像
Figure 02_image017
進行位置轉換,得到圖6示出的每個靶心圖表像的全域位置,可以看出,攝像頭201捕獲到的靶心圖表像
Figure 02_image015
和攝像頭202捕獲到的靶心圖表像
Figure 02_image019
的全域位置重合度很高,假設其超過預設的重合度閾值,即可認為靶心圖表像
Figure 02_image015
Figure 02_image019
實際為同一目標,可以僅保留一個,進而可以判斷監控區域中的全域目標數量為3個。 Referring to Fig. 5, the bull's-eye chart image is captured by the camera 201
Figure 02_image011
, the bulls-eye image captured by the camera 202
Figure 02_image013
, according to the viewfinder position of the camera 201, the captured bull's-eye chart image
Figure 02_image011
Carry out position conversion, according to the viewfinder position of camera 202 to the captured bull's-eye chart image
Figure 02_image017
Perform position conversion to obtain the global position of each bull's-eye chart image shown in FIG. 6 . It can be seen that the bull's-eye chart image captured by the camera 201
Figure 02_image015
and the bull's-eye chart image captured by the camera 202
Figure 02_image019
The coincidence degree of the global position of is very high. Assuming that it exceeds the preset coincidence degree threshold, the bull's-eye image can be considered as
Figure 02_image015
and
Figure 02_image019
It is actually the same target, only one can be reserved, and then it can be judged that the number of global targets in the monitoring area is 3.

在一些實施方式中,進一步地,由於監控區域中可能出現背景遮擋目標的情況,從而導致檢測到的全域目標數量相較於實際數量減少的情況,基於此,還可以執行以下步驟:當數量檢測的結果少於在先全域目標數量時,則根據多個攝像頭採集的多個當前幀和多個當前幀的上一幀,判斷是否存在從預定區域離開監控區域的目標;其中,若不存在從預定區域離開監控區域的目標,則仍然保留在先全域目標數量作為本次確定的全域目標數量;若存在從預定區域離開監控區域的目標,則將數量檢測的結果作為本次確定的全域目標數量;In some implementations, further, since background occlusion targets may appear in the monitoring area, the number of detected global targets may decrease compared with the actual number. Based on this, the following steps may also be performed: when the number is detected When the result of is less than the number of previous global targets, then according to the multiple current frames collected by multiple cameras and the previous frame of multiple current frames, it is judged whether there is a target that leaves the monitoring area from the predetermined area; if there is no target from the If the target in the predetermined area leaves the monitoring area, the number of previous global targets will still be retained as the number of global targets determined this time; if there are targets that leave the monitoring area from the predetermined area, the result of the number detection will be used as the number of global targets determined this time ;

其中,在先全域目標數量是根據對多個上一幀進行目標檢測和數量檢測得到。具體地,將步驟101-步驟103中的多個當前幀替換為多個當前幀的上一幀,即可利用相同的方案獲得該在先全域目標數量,本申請不再贅述。Wherein, the number of previous global targets is obtained based on target detection and number detection on multiple previous frames. Specifically, by replacing the multiple current frames in steps 101 to 103 with the previous frame of the multiple current frames, the same solution can be used to obtain the number of previous global objects, which will not be repeated in this application.

例如,假設在對多個攝像頭採集的多個當前幀的上一幀進行目標即時跟蹤時,檢測到監控區域中的全域目標數量為5,也即總共包括5個目標物件。在對多個攝像頭採集的多個當前幀進行目標即時跟蹤時,數量檢測的結果指示監控區域內僅包含4個目標物件,相較於上一幀發生了數量減少,則需要考慮是否存在暫時的目標遮擋情況。具體可以將諸如監控區域的出口區域劃分為預定區域,判斷是否存在一個目標,根據多個當前幀的上一幀能夠確定該目標位於該出口區域,且根據多個當前幀能夠確定該目標從該出口區域消失。如果存在這樣的目標,則可以認為真實發生了目標離開監控區域的情況,可以將上述數量檢測的結果作為全域目標數量。相反,如果不存在這樣的目標物件,則可以認為存在目標遮擋等情況,仍然保留在先全域目標數量作為本次確定的全域目標數量。For example, it is assumed that when real-time target tracking is performed on the last frame of multiple current frames collected by multiple cameras, the number of global targets detected in the monitoring area is 5, that is, 5 target objects are included in total. When performing real-time target tracking on multiple current frames captured by multiple cameras, the result of the quantity detection indicates that there are only 4 target objects in the monitoring area. Compared with the previous frame, the number of objects has decreased, and it is necessary to consider whether there is a temporary Target occlusion. Specifically, the exit area such as the monitoring area can be divided into predetermined areas, and it is judged whether there is a target. According to the last frame of a plurality of current frames, it can be determined that the target is located in the exit area, and according to a plurality of current frames, it can be determined that the target is located in the exit area. The exit area disappears. If there are such targets, it can be considered that the target has actually left the monitoring area, and the result of the above number detection can be used as the number of targets in the whole domain. On the contrary, if there is no such target object, it can be considered that there is a situation such as target occlusion, and the previous number of global targets is still reserved as the number of global targets determined this time.

在一些實施方式中,根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,還包括:根據每個攝像頭的取景位置對當前幀中的靶心圖表像的底部中心點進行投影變換,從而確定每個靶心圖表像的地面座標。這樣,可以將每個攝像頭取景範圍內捕獲的待識別目標群組合到統一的坐標系中。In some implementations, performing position conversion on the captured bull's-eye chart image according to the viewfinder position of each camera further includes: performing projective transformation on the bottom center point of the bull's-eye chart image in the current frame according to the viewfinder position of each camera, The ground coordinates of each bull's-eye chart image are thereby determined. In this way, the target groups to be recognized captured within the viewing range of each camera can be combined into a unified coordinate system.

例如,可以獲取圖5中每個攝像頭捕獲的每個靶心圖表像的底部中心點位置,對該每個靶心圖表像的底部中心點進行轉換,得到待識別目標在監控場景中的實際地面位置,圖6示出了通過投影轉換獲得的每個靶心圖表像對應的地面座標。具體而言,可以看出,每個攝像頭視角下的地面過道是一個近似梯形區域,因此針對每個攝像頭捕獲的靶心圖表像,首先可以通過梯形-矩形轉換得到每個靶心圖表像的底部中心點在標準矩形區域中的座標,其次根據監控場景的實際佈局對標準矩形區域進行旋轉,通過旋轉矩陣計算得到每個靶心圖表像的底部中心點的旋轉後座標,最後根據監控場景的實際佈局對旋轉後座標進行平移和縮放,得到最終的地面座標位置。For example, the position of the bottom center point of each bull's-eye chart image captured by each camera in Figure 5 can be obtained, and the bottom center point of each bull's-eye chart image can be converted to obtain the actual ground position of the target to be identified in the monitoring scene, Fig. 6 shows the ground coordinates corresponding to each bull's-eye chart image obtained by projective transformation. Specifically, it can be seen that the ground aisle under the perspective of each camera is an approximately trapezoidal area, so for the bull's-eye image captured by each camera, firstly, the bottom center of each bull's-eye image can be obtained through trapezoid-rectangular transformation The coordinates of the point in the standard rectangular area, and then rotate the standard rectangular area according to the actual layout of the monitoring scene, and calculate the rotated coordinates of the bottom center point of each bull's-eye chart image through the calculation of the rotation matrix, and finally according to the actual layout of the monitoring scene. After rotation, the coordinates are translated and scaled to obtain the final ground coordinate position.

進一步地,在一些實施方式中,可以預先訓練獲得目標數量檢測模型,以用於即時檢測監控區域的全域目標數量的,在執行目標即時跟蹤方法時,將多個當前幀輸入經訓練的目標數量檢測模型以執行目標檢測和數量檢測,直接得到全域目標數量。Further, in some embodiments, the target number detection model can be pre-trained to be used for real-time detection of the global target number in the monitoring area. When performing the target real-time tracking method, multiple current frames are input into the trained target number Check the model to perform object detection and count detection, and directly get the number of objects in the whole domain.

例如,可以通過改進基於深度學習的即時目標檢測演算法YOLOV4-TINY,提出改進的人數統計演算法YOLOv4-TINY-PC(YOLOv4-tiny-People Counting),其中YOLOV4-TINY演算法不具備多攝像頭的人數統計能力,YOLOv4-TINY-PC可以即時得到監控區域內人數資訊以統計人流量。具體地,該目標數量檢測模型可以通過行人檢測演算法(YOLOv4-TINY-P)得到各個攝像頭識別的靶心圖表像,對靶心圖表像進行位置轉換,得到在整體監控區域內的全域位置座標。對機房內各個攝像頭區域進行劃分,對機房攝像頭分為主攝像頭和輔攝像頭,對各個攝像頭的數量檢測結果進行篩選,使得彼此無重合,得到最終當前幀的所有攝像頭中的目標數量,即為全域目標數量。For example, an improved people counting algorithm YOLOv4-TINY-PC (YOLOv4-tiny-People Counting) can be proposed by improving the real-time target detection algorithm YOLOV4-TINY based on deep learning, in which the YOLOV4-TINY algorithm does not have multi-camera capabilities Capable of counting people, YOLOv4-TINY-PC can get real-time information on the number of people in the monitoring area to count the flow of people. Specifically, the target number detection model can obtain the bull's-eye chart image recognized by each camera through the pedestrian detection algorithm (YOLOv4-TINY-P), and perform position conversion on the bull's-eye chart image to obtain the global position coordinates in the overall monitoring area. Divide the areas of each camera in the computer room, divide the cameras in the computer room into main cameras and auxiliary cameras, and filter the number detection results of each camera so that there is no overlap with each other, and finally get the number of targets in all cameras in the current frame, which is the whole domain target quantity.

在本實施例中,目標數量檢測模型為基於YOLOv4-tiny網路創建的行人數量檢測模型。可選地,也可以基於諸如faster-rcnn、yolov4其他網路創建行人數量檢測模型。可選地,也可以針對其他應用場景創建諸如車輛數量檢測模型、動物數量檢測模型的目標數量檢測模型。In this embodiment, the target number detection model is a pedestrian number detection model created based on the YOLOv4-tiny network. Optionally, a pedestrian number detection model can also be created based on other networks such as faster-rcnn and yolov4. Optionally, target number detection models such as vehicle number detection models and animal number detection models can also be created for other application scenarios.

如圖1所示,該方法還包括:As shown in Figure 1, the method also includes:

步驟104、根據靶心圖表像和目標識別庫進行目標重識別。Step 104, perform target re-identification according to the bull's-eye image and the target recognition library.

其中,目標識別庫包括至少一個目標的身份標識和特徵資料。例如,目標識別庫可以包括{目標1:特徵資料1,…,特徵資料N};{目標2:特徵資料1,…,特徵資料N},諸如此類。Wherein, the target identification database includes at least one target identification and characteristic data. For example, the object recognition library may include {object 1: signature data 1, . . . , signature data N}; {object 2: signature data 1, . . . , signature data N}, and so on.

進一步地,在一種可能的實施方式中,在步驟104之後,還可以包括:計算靶心圖表像與目標識別庫中的特徵資料之間的相似度,並依據計算得到的相似度,對靶心圖表像進行目標重識別;當目標重識別的結果指示第一靶心圖表像與目標識別庫中的第一目標匹配時,對第一靶心圖表像標識第一目標的身份標識。Further, in a possible implementation manner, after step 104, it may also include: calculating the similarity between the bull's-eye chart image and the feature data in the target recognition library, and according to the calculated similarity, the bull's-eye chart image Carry out target re-identification; when the result of target re-identification indicates that the first bull's-eye chart image matches the first target in the target recognition library, mark the identity of the first target on the first bull's-eye chart image.

例如,參考圖5,計算示出的行人圖像b和目標識別庫包含的每個目標的特徵資料之間的相似度,假設行人圖像b和目標1的特徵資料之間的相似度最高,且該相似度超過預設匹配閾值,則可以認為目標重識別的結果指示行人圖像b與目標識別庫中的目標1匹配,進一步可以將該行人圖像b標識為目標1。基於相似的做法,行人圖像

Figure 02_image021
匹配到目標識別庫中的目標2並進行標識。行人圖像
Figure 02_image015
同樣匹配目標識別庫中的目標1並進行標識。 For example, referring to FIG. 5, the similarity between the shown pedestrian image b and the feature data of each target contained in the target recognition library is calculated, assuming that the similarity between the pedestrian image b and the feature data of target 1 is the highest, And if the similarity exceeds the preset matching threshold, it can be considered that the result of target re-identification indicates that the pedestrian image b matches the target 1 in the target recognition library, and the pedestrian image b can be further identified as target 1. Based on a similar approach, pedestrian images
Figure 02_image021
Match to target 2 in the target recognition library and identify it. Pedestrian image
Figure 02_image015
Also match and identify target 1 in the target recognition library.

如圖1所示,該方法還包括:As shown in Figure 1, the method also includes:

步驟105、當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識(以下簡稱新ID)對至少一個未識別靶心圖表像進行標記。Step 105. When it is detected that the number of global targets meets the preset increase conditions, determine at least one unrecognized bull's-eye image according to the result of target re-identification, and create a new identity (hereinafter referred to as new ID) for at least one unrecognized bull's-eye image. to mark.

可以理解,當新的目標進入監控區域時,需要為該新的目標分配一個新ID,業界通常採用計算靶心圖表像和目標識別庫中的特徵資料之間的特徵相似度的方法來判斷是否創建並分配新ID,而有些場景下,由於目標遮擋、拍攝角度等問題會對上述判斷的準確度造成較大的影響。比如,當已經處於監控區域內的某個目標由於其靶心圖表像的拍攝品質較差,導致其目標識別庫中的對應特徵資料無法匹配,則容易將其誤認為是新的目標。與本實施例中,只有當檢測到的全域目標數量符合預設增長條件時,比如當全域目標數量相較於根據多個當前幀的前一幀進行目標數量檢測得到的先前目標數量增加時,才會生成新的ID,通過全域目標數量對新ID的創建和分配進行控制,能夠很好保證身份標識數量的增長準確,保證穩定性。It can be understood that when a new target enters the monitoring area, a new ID needs to be assigned to the new target. The industry usually uses the method of calculating the feature similarity between the bull's-eye image and the feature data in the target recognition library to determine whether to create And assign a new ID, and in some scenarios, the accuracy of the above judgment will be greatly affected due to problems such as target occlusion and shooting angle. For example, when a target already in the monitoring area has poor shooting quality of the bull’s-eye image and the corresponding feature data in the target recognition library cannot be matched, it is easy to mistake it for a new target. Compared with this embodiment, only when the detected number of global targets meets the preset growth condition, for example, when the number of global targets increases compared with the previous number of targets obtained by detecting the number of targets based on the previous frame of multiple current frames, Only then will new IDs be generated, and the creation and distribution of new IDs can be controlled through the number of global targets, which can well ensure the accurate growth of the number of IDs and ensure stability.

基於此,當檢測到的全域目標數量符合預設增長條件時,進一步根據目標重識別的結果確定至少一個未識別靶心圖表像。例如,參考圖5,假設目標識別庫可以包括{目標1:特徵資料1,…,特徵資料N};{目標2:特徵資料1,…,特徵資料N},該目標重識別的結果指示行人圖像b匹配到目標1並進行標識。行人圖像

Figure 02_image021
匹配到目標2並進行標識。行人圖像
Figure 02_image015
同樣匹配到目標1並進行標識。此時,行人圖像
Figure 02_image023
並未匹配到目標識別庫中的任何一個目標,也即行人圖像
Figure 02_image023
為上述目標重識別過程中確定的未識別靶心圖表像,進一步地,可以根據創建新ID(比如目標3)並對該行人圖像
Figure 02_image023
進行標記。由此可以實現為新的目標分配一個新ID。 Based on this, when the number of detected global targets meets the preset growth condition, at least one unrecognized bull's-eye image is further determined according to the result of target re-identification. For example, referring to Fig. 5, it is assumed that the object recognition library may include {target 1: feature data 1, ..., feature data N}; Image b is matched to target 1 and identified. Pedestrian image
Figure 02_image021
Match to target 2 and identify it. Pedestrian image
Figure 02_image015
Also match to target 1 and identify it. At this time, the pedestrian image
Figure 02_image023
Did not match any target in the target recognition library, that is, the pedestrian image
Figure 02_image023
For the unrecognized bull's-eye image determined in the above target re-identification process, further, a new ID (such as target 3) can be created and the pedestrian image
Figure 02_image023
to mark. This makes it possible to assign a new ID to a new object.

值得注意的是,由於目標識別庫是不斷進行淘汰更新的,上述新的目標是指當前的目標識別庫中未存放與其相匹配的身份標識和特徵資料的目標。換言之,如果一個行人在先前進入過該監控區域並離開,仍然可能在下次進入該監控區域時作為新的目標,需要重新為該新的目標分配新創建的身份標識並相應存入特徵資料。It is worth noting that since the target recognition database is constantly being eliminated and updated, the above-mentioned new targets refer to targets that do not have matching identification and feature information stored in the current target recognition database. In other words, if a pedestrian has entered the monitoring area before and left, it may still be used as a new target when entering the monitoring area next time, and it is necessary to assign a newly created identity to the new target and store the characteristic data accordingly.

在一種可能的實施方式中,進一步地,步驟105還可以包括檢測全域目標數量是否符合預設增加條件的步驟,具體包括:若當前幀為非首幀,且當前幀對應的全域目標數量相較於多個當前幀的前一幀對應的在先全域目標數量增加時,則全域目標數量符合預設增加條件。若當前幀為首幀時,預設全域目標數量符合預設增加條件。具體地,已經在前文中描述了該在先全域目標數量,此處不再贅述。In a possible implementation, further, step 105 may also include the step of detecting whether the number of global objects meets the preset increase condition, specifically including: if the current frame is not the first frame, and the number of global objects corresponding to the current frame is compared with When the number of previous global objects corresponding to the previous frame of the plurality of current frames increases, the number of global objects meets a preset increase condition. If the current frame is the first frame, the number of preset global targets meets the preset increase conditions. Specifically, the number of previous global objects has been described above, and will not be repeated here.

如圖1所示,該方法還包括:As shown in Figure 1, the method also includes:

步驟106、根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫。Step 106, update the target recognition library according to the new identity and the feature data of at least one unrecognized bull's-eye image.

在一種實施方式中,為了提升新ID的識別準確性,步驟106可以具體包括:判斷至少一個未識別靶心圖表像是否滿足預設圖像品質條件;將新的身份標識和滿足預設圖像品質條件的未識別靶心圖表像對應存入目標識別庫。In one embodiment, in order to improve the recognition accuracy of the new ID, step 106 may specifically include: judging whether at least one unrecognized bull's-eye image satisfies the preset image quality condition; Conditional unrecognized bull's-eye chart images are correspondingly stored in the target recognition library.

可以理解,由於在目標識別庫中,新ID對應的特徵資料較少,為了保證後續涉及新ID的目標重識別準確度,需要對新ID對應的首項特徵資料進行較為嚴格的品質控制。比如,某個新ID對應的至少一個未識別靶心圖表像來源自不同的攝像頭,可能某些未識別靶心圖表像存在原始圖像尺寸較小,採集模糊、環境遮擋等圖像品質問題,判斷新ID對應的未識別靶心圖表像是否滿足預設圖像品質條件,從而綜合判斷其是否滿足成為新ID的首個特徵資料。這樣,可以過濾掉拍攝不完整,遮擋等情況,提升新ID識別的準確性。It can be understood that in the target recognition database, there are few feature data corresponding to the new ID, in order to ensure the accuracy of subsequent target re-identification involving the new ID, stricter quality control is required for the first feature data corresponding to the new ID. For example, at least one unrecognized bullseye image corresponding to a new ID comes from a different camera. Some unrecognized bullseye images may have image quality problems such as small original image size, blurred collection, and environmental occlusion. Whether the unrecognized bull's-eye image corresponding to the ID satisfies the preset image quality conditions, so as to comprehensively judge whether it meets the first characteristic data of the new ID. In this way, incomplete shooting, occlusion, etc. can be filtered out to improve the accuracy of new ID recognition.

在一種實施方式中,進一步地,在上述步驟103之後,為了保證該目標識別庫的即時性和避免冗餘,上述方法還可以包括:根據第一靶心圖表像或第一靶心圖表像的特徵值對目標識別庫中的第一目標的特徵資料進行動態更新。這樣可以利用即時性較高的特徵資料進行特徵匹配,有利於提升識別準確度。In one embodiment, further, after the above step 103, in order to ensure the immediacy of the target recognition library and avoid redundancy, the above method may further include: The feature data of the first target in the target recognition library is dynamically updated. In this way, the feature data with high real-time characteristics can be used for feature matching, which is conducive to improving the recognition accuracy.

可以理解,當採用靶心圖表像的特徵值替代靶心圖表像進行更新後,在後續計算中可以直接採用特徵值,避免重複計算,極大減少了運算時間,保證了即時效果。It can be understood that when the eigenvalues of the bull's-eye image are used instead of the bull's-eye image for updating, the eigenvalues can be directly used in subsequent calculations, avoiding repeated calculations, greatly reducing the calculation time, and ensuring immediate results.

在一種實施方式中,為避免目標識別庫產生特徵冗餘,方法還包括對目標識別庫進行替換更新,具體包括以下三種替換更新的場景:(1)根據目標識別庫中的每個目標的特徵資料對應的來源時間和當前時間的比較結果,對目標識別庫進行替換更新。比如,可以將當前時間的指定時間長度之前獲取的全部特徵資料予以刪除。也可以針對特徵資料數量超過閾值的一個或多個目標,將其在另一指定時間長度之前獲取的全部特徵資料予以刪除。由此可以保證目標識別庫的即時性,有利於後續的目標重識別。(2)根據目標識別庫中的每個目標的特徵資料對應的全域位置和每個目標的當前全域位置的比較結果,對目標識別庫進行替換更新。比如,可以理解,特徵資料的來源為先前獲得的靶心圖表像,因此特徵資料可以根據其來源的靶心圖表像對應到某個全域位置,針對一個或多個目標,可以將距離目標當前全域位置超過一定範圍的特徵資料進行刪除。(3)根據目標識別庫中的每個目標的多個特徵資料之間的特徵相似度,對目標識別庫進行替換更新。比如,針對目標識別庫中的每個目標,對特徵相似程高於預設值的兩個或以上特徵資料進行刪減,以減少目標識別庫中的特徵重複。In one embodiment, in order to avoid feature redundancy in the target recognition library, the method further includes replacing and updating the target recognition library, specifically including the following three replacement and updating scenarios: (1) According to the characteristics of each target in the target recognition library The source time corresponding to the data is compared with the current time, and the target recognition library is replaced and updated. For example, all feature data acquired before the specified time length of the current time may be deleted. It is also possible to delete all characteristic data acquired before another specified time period for one or more targets whose characteristic data amount exceeds a threshold value. In this way, the immediacy of the object recognition library can be guaranteed, which is beneficial to subsequent object re-identification. (2) According to the comparison result of the global position corresponding to the characteristic data of each target in the target recognition database and the current global position of each target, the target recognition database is replaced and updated. For example, it can be understood that the source of the feature data is the previously obtained bull's-eye chart image, so the feature data can correspond to a certain global position according to the bull's-eye chart image from which it originated, and for one or more targets, the distance from the target's current global position can be more than A certain range of feature data is deleted. (3) According to the feature similarity between multiple feature data of each target in the target recognition library, replace and update the target recognition library. For example, for each target in the target recognition library, two or more feature data whose feature similarity is higher than a preset value are deleted, so as to reduce feature duplication in the target recognition library.

在一種實施方式中,方法還包括:任意一個目標的特徵資料的數量超過預設閾值之後,啟動替換更新。例如,設置該預設閾值為100,在目標識別庫中,每個目標的特徵資料數量超過100之後,開始進行上述實施例描述的替換更新,在保證特徵資料足量的同時有效避免出現冗餘。In an implementation manner, the method further includes: after the quantity of the feature data of any one target exceeds a preset threshold, starting a replacement update. For example, if the preset threshold is set to 100, in the target recognition library, after the number of feature data of each target exceeds 100, the replacement and update described in the above embodiment will be started to effectively avoid redundancy while ensuring sufficient feature data .

關於本申請實施例的方法流程圖,將某些操作描述為以一定循序執行的不同的步驟。這樣的流程圖屬於說明性的而非限制性的。可以將在本文中所描述的某些步驟分組在一起並且在單個操作中執行、可以將某些步驟分割成多個子步驟、並且可以以不同于在本文中所示出的順序來執行某些步驟。可以由任何電路結構和/或有形機制(例如,由在電腦設備上運行的軟體、硬體(例如,處理器或晶片實現的邏輯功能)等、和/或其任何組合)以任何方式來實現在流程圖中所示出的各個步驟。Regarding the method flowchart of the embodiment of the present application, some operations are described as different steps performed in a certain order. Such flowcharts are illustrative and not restrictive. Certain steps described herein can be grouped together and performed in a single operation, can be divided into multiple sub-steps, and can be performed in an order different than that shown herein . Can be implemented in any way by any circuit structure and/or tangible mechanism (for example, by software running on a computer device, hardware (for example, logic functions implemented by a processor or a chip), etc., and/or any combination thereof) The individual steps are shown in the flowchart.

基於相同的技術構思,本發明實施例還提供一種目標重識別裝置,用於執行上述任一實施例所提供的目標重識別方法。圖7為本發明實施例提供的一種目標重識別裝置結構示意圖。Based on the same technical concept, an embodiment of the present invention further provides an object re-identification device, configured to implement the object re-identification method provided in any of the above-mentioned embodiments. Fig. 7 is a schematic structural diagram of an object re-identification device provided by an embodiment of the present invention.

如圖7所示,目標重識別裝置700包括:As shown in Figure 7, the target re-identification device 700 includes:

獲取模組701,用於獲取設置於監控區域內的多個攝像頭採集的多個當前幀;Obtaining module 701, used to obtain a plurality of current frames collected by a plurality of cameras arranged in the monitoring area;

目標檢測模組702,用於根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;The target detection module 702 is used for performing target detection according to a plurality of current frames, and determining the bull's-eye chart image captured by each camera;

數量檢測模組703,用於根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量;Quantity detection module 703, is used for carrying out quantity detection according to the bull's-eye chart image captured by each camera, obtains the quantity of global target;

目標重識別模組704,用於根據靶心圖表像和目標識別庫進行目標重識別,目標識別庫包括至少一個目標的身份標識和特徵資料;The target re-identification module 704 is used to perform target re-identification according to the bull's-eye image and the target recognition library, and the target recognition library includes at least one target identification and characteristic data;

身份標識模組705,用於當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識對至少一個未識別靶心圖表像進行標記;The identity identification module 705 is configured to determine at least one unrecognized bull's-eye image according to the result of target re-identification when it is detected that the number of targets in the whole domain meets the preset increase condition, and create a new identity to carry out at least one unidentified bull's-eye image. mark;

目標識別庫更新模組706,用於根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫。The target recognition database updating module 706 is configured to update the target recognition database according to the new identity and the feature data of at least one unrecognized bull's-eye image.

在一種可能的實施方式中,目標檢測模組,還用於:將多個當前幀輸入經訓練的目標檢測模型,以提取出每個攝像頭捕獲到的靶心圖表像;其中,目標檢測模型為基於YOLOv4-tiny網路創建的人體檢測模型。In a possible implementation, the target detection module is also used to: input multiple current frames into the trained target detection model to extract the bull's-eye image captured by each camera; wherein, the target detection model is based on A human detection model created by the YOLOv4-tiny network.

在一種可能的實施方式中,目標檢測模組,還用於:根據監控區域內的真實採集圖像對YOLOv4-tiny網路進行訓練,得到目標檢測模型。In a possible implementation manner, the target detection module is also used to: train the YOLOv4-tiny network according to the real collected images in the monitoring area to obtain a target detection model.

在一種可能的實施方式中,靶心圖表像為當前幀中包含目標特徵的局部圖像,數量檢測模組還用於:根據每個攝像頭的取景位置對捕獲到的靶心圖表像進行位置轉換,得到每個攝像頭捕獲到的靶心圖表像對應的全域位置;確定由不同攝像頭各自捕獲的靶心圖表像的全域位置重合度,根據全域位置重合度對不同攝像頭各自捕獲的靶心圖表像進行篩選,檢測篩選後保留的靶心圖表像的數量。In a possible implementation manner, the bull's-eye image is a partial image containing target features in the current frame, and the quantity detection module is also used to: perform position conversion on the captured bull's-eye image according to the viewing position of each camera to obtain The global position corresponding to the bull's-eye chart image captured by each camera; determine the global position coincidence degree of the bull's-eye chart image captured by different cameras, and filter the bull's-eye chart images captured by different cameras according to the global position coincidence degree, and detect and filter The number of bullseye chart images to keep.

在一種可能的實施方式中,數量檢測模組還用於:當數量檢測的結果少於在先全域目標數量時,則根據多個攝像頭採集的多個當前幀和多個當前幀的上一幀,判斷是否存在從預定區域離開監控區域的目標;若不存在目標,則仍然保留在先全域目標數量作為本次確定的全域目標數量;若存在目標,則將數量檢測的結果作為本次確定的全域目標數量;其中,在先全域目標數量根據對多個當前幀的上一幀進行目標檢測和數量檢測得到。In a possible implementation manner, the number detection module is also used for: when the result of the number detection is less than the number of previous global objects, then according to the multiple current frames collected by multiple cameras and the last frame of the multiple current frames , to determine whether there is a target that leaves the monitoring area from the predetermined area; if there is no target, the number of previous global targets is still retained as the number of global targets determined this time; if there is a target, the result of the number detection is used as the determined The number of global objects; wherein, the number of previous global objects is obtained by performing object detection and number detection on previous frames of multiple current frames.

在一種可能的實施方式中,數量檢測模組還用於:根據每個攝像頭的取景位置對當前幀中的靶心圖表像的底部中心點進行投影變換,從而確定每個靶心圖表像的地面座標。In a possible implementation, the number detection module is also used for: performing projective transformation on the bottom central point of the bull's-eye image in the current frame according to the viewing position of each camera, so as to determine the ground coordinates of each bull's-eye image.

在一種可能的實施方式中,裝置還用於:將多個當前幀輸入經訓練的目標數量檢測模型,以執行目標檢測和數量檢測,得到全域目標數量;其中,目標數量檢測模型為基於YOLOv4-tiny網路創建的行人數量檢測模型。In a possible implementation, the device is also used to: input multiple current frames into the trained target quantity detection model to perform target detection and quantity detection to obtain the global target quantity; wherein, the target quantity detection model is based on YOLOv4- Pedestrian count detection model created by tiny network.

在一種可能的實施方式中,目標重識別模組還用於:計算靶心圖表像與目標識別庫中的特徵資料之間的相似度,並依據計算得到的相似度,對靶心圖表像進行目標重識別;當目標重識別的結果指示第一靶心圖表像與目標識別庫中的第一目標匹配時,根據第一目標的身份標識對第一靶心圖表像進行標記。In a possible implementation, the target re-identification module is also used to: calculate the similarity between the bull's-eye chart image and the feature data in the target recognition library, and perform target re-targeting on the bull's-eye chart image according to the calculated similarity. Recognition: when the result of target re-identification indicates that the first bull's-eye chart image matches the first target in the target recognition library, mark the first bull's-eye chart image according to the identity of the first target.

在一種可能的實施方式中,身份標識模組還用於:若當前幀為非首幀,且當前幀對應的全域目標數量相較於上一幀對應的全域目標數量增加時,則全域目標數量符合預設增加條件;若當前幀為首幀時,預設全域目標數量符合預設增加條件。In a possible implementation, the identification module is also used to: if the current frame is not the first frame, and the number of global objects corresponding to the current frame increases compared with the number of global objects corresponding to the previous frame, then the number of global objects Meet the preset increase conditions; if the current frame is the first frame, the preset number of global targets meets the preset increase conditions.

在一種可能的實施方式中,目標識別庫更新模組還用於:判斷至少一個未識別靶心圖表像是否滿足預設圖像品質條件;將新的身份標識和滿足預設圖像品質條件的未識別靶心圖表像對應存入目標識別庫。In a possible implementation, the target recognition library update module is further used to: determine whether at least one unrecognized bull's-eye image satisfies a preset image quality condition; The image of the recognized bull's-eye chart is correspondingly stored in the target recognition library.

在一種可能的實施方式中,目標識別庫更新模組還用於:根據第一靶心圖表像或第一靶心圖表像的特徵值對目標識別庫中的第一目標的特徵資料進行動態更新。In a possible implementation manner, the target recognition library update module is further configured to: dynamically update the characteristic data of the first target in the target recognition library according to the first bull's-eye image or the feature value of the first bull's-eye image.

在一種可能的實施方式中,目標識別庫更新模組還用於:根據目標識別庫中的每個目標的特徵資料對應的來源時間和當前時間的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的特徵資料對應的全域位置和每個目標的當前全域位置的比較結果,對目標識別庫進行替換更新;和/或,根據目標識別庫中的每個目標的多個特徵資料之間的特徵相似度,對目標識別庫進行替換更新。In a possible implementation, the target recognition library update module is also used to: replace and update the target recognition library according to the comparison result of the source time corresponding to the characteristic data of each target in the target recognition library and the current time; and /or, according to the comparison result of the global position corresponding to the feature data of each target in the target recognition library and the current global position of each target, the target recognition library is replaced and updated; and/or, according to each target in the target recognition library The feature similarity between multiple feature data of a target is used to replace and update the target recognition library.

在一種可能的實施方式中,目標識別庫更新模組還用於:任意一個目標的特徵資料的數量超過預設閾值之後,啟動替換更新。In a possible implementation manner, the target recognition library update module is further configured to: start a replacement update after the quantity of feature data of any one target exceeds a preset threshold.

需要說明的是,本申請實施例中的目標重識別裝置可以實現前述目標重識別方法的實施例的各個過程,並達到相同的效果和功能,這裡不再贅述。It should be noted that the object re-identification device in the embodiment of the present application can realize the various processes of the foregoing object re-identification method embodiment, and achieve the same effect and function, which will not be repeated here.

圖8為根據本申請一實施例的目標重識別裝置,用於執行圖1所示出的目標重識別方法,該裝置包括:至少一個處理器;以及,與至少一個處理器通信連接的記憶體;其中,記憶體存儲有可被至少一個處理器執行的指令,指令被至少一個處理器執行,以使至少一個處理器能夠執行上述實施例所述的方法。Fig. 8 is an object re-identification device according to an embodiment of the present application, which is used to execute the object re-identification method shown in Fig. 1 , the device includes: at least one processor; and a memory communicatively connected to at least one processor ; Wherein, the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor, so that at least one processor can execute the methods described in the above-mentioned embodiments.

根據本申請的一些實施例,提供了目標重識別方法的非易失性電腦存儲介質,其上存儲有電腦可執行指令,該電腦可執行指令設置為在由處理器運行時執行:上述實施例所述的方法。According to some embodiments of the present application, a non-volatile computer storage medium of a target re-identification method is provided, on which computer-executable instructions are stored, and the computer-executable instructions are configured to be executed when run by a processor: the above-mentioned embodiment the method described.

本申請中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於裝置、設備和電腦可讀存儲介質實施例而言,由於其基本相似於方法實施例,所以其描述進行了簡化,相關之處可參見方法實施例的部分說明即可。Each embodiment in the present application is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the embodiments of the apparatus, equipment and computer-readable storage medium, since they are basically similar to the method embodiments, the descriptions thereof are simplified, and relevant parts can be referred to part of the description of the method embodiments.

本申請實施例提供的裝置、設備和電腦可讀存儲介質與方法是一一對應的,因此,裝置、設備和電腦可讀存儲介質也具有與其對應的方法類似的有益技術效果,由於上面已經對方法的有益技術效果進行了詳細說明,因此,這裡不再贅述裝置、設備和電腦可讀存儲介質的有益技術效果。The device, device, and computer-readable storage medium provided in the embodiments of the present application correspond to the method one by one. Therefore, the device, device, and computer-readable storage medium also have beneficial technical effects similar to their corresponding methods. The beneficial technical effect of the method has been described in detail, therefore, the beneficial technical effect of the device, equipment and computer-readable storage medium will not be repeated here.

本領域內的技術人員應明白,本發明的實施例可提供為方法、系統或電腦程式產品。因此,本發明可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有電腦可用程式碼的電腦可用存儲介質(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) having computer-usable program code embodied therein .

本發明是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方框圖來描述的。應理解可由電腦程式指令實現流程圖和/或方框圖中的每一流程和/或方框、以及流程圖和/或方框圖中的流程和/或方框的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理設備的處理器以產生一個機器,使得通過電腦或其他可程式設計資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的裝置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and a combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing equipment to produce a machine so that the instructions executed by the processor of the computer or other programmable data processing equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

這些電腦程式指令也可存儲在能引導電腦或其他可程式設計資料處理設備以特定方式工作的電腦可讀記憶體中,使得存儲在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer readable memory produce an article of manufacture including the instruction means , the instruction device implements the functions specified in one or more procedures of the flow chart and/or one or more blocks of the block diagram.

這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理設備上,使得在電腦或其他可程式設計設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的步驟。These computer program instructions may also be loaded into a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce computer-implemented The instructions executed above provide steps for implementing the functions specified in the procedure or procedures of the flowchart and/or the block or blocks of the block diagram.

在一個典型的配置中,計算設備包括一個或多個處理器 (CPU)、輸入/輸出介面、網路介面和記憶體。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

記憶體可能包括電腦可讀介質中的非永久性記憶體,隨機存取記憶體 (RAM) 和/或非易失性記憶體等形式,如唯讀記憶體 (ROM) 或快閃記憶體(flash RAM)。記憶體是電腦可讀介質的示例。Memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or nonvolatile memory in the form of read only memory (ROM) or flash memory ( flash RAM). The memory is an example of a computer readable medium.

電腦可讀介質包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊存儲。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的存儲介質的例子包括,但不限於相變記憶體 (PRAM)、靜態隨機存取記憶體 (SRAM)、動態隨機存取記憶體 (DRAM)、其他類型的隨機存取記憶體 (RAM)、唯讀記憶體 (ROM)、電可擦除可程式設計唯讀記憶體 (EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體 (CD-ROM)、數位多功能光碟 (DVD) 或其他光學存儲、磁盒式磁帶,磁帶磁磁片存儲或其他磁性存放裝置或任何其他非傳輸介質,可用於存儲可以被計算設備訪問的資訊。此外,儘管在附圖中以特定順序描述了本發明方法的操作,但是,這並非要求或者暗示必須按照該特定順序來執行這些操作,或是必須執行全部所示的操作才能實現期望的結果。附加地或備選地,可以省略某些步驟,將多個步驟合併為一個步驟執行,和/或將一個步驟分解為多個步驟執行。Computer-readable media includes both permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for computers include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM) , read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital multifunction Compact disc (DVD) or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage device or any other non-transmission medium used to store information that can be accessed by a computing device. In addition, while operations of the methods of the present invention are depicted in the figures in a particular order, there is no requirement or implication that these operations must be performed in that particular order, or that all illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution.

雖然已經參考若干具體實施方式描述了本發明的精神和原理,但是應該理解,本發明並不限於所公開的具體實施方式,對各方面的劃分也不意味著這些方面中的特徵不能組合以進行受益,這種劃分僅是為了表述的方便。本發明旨在涵蓋所附權利要求的精神和範圍內所包括的各種修改和等同佈置。Although the spirit and principles of the invention have been described with reference to a number of specific embodiments, it should be understood that the invention is not limited to the specific embodiments disclosed, nor does division of aspects imply that features in these aspects cannot be combined to achieve optimal performance. Benefit, this division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

100:方法 101:獲取設置於監控區域內的多個攝像頭採集的多個當前幀 102:根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像 103:根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量 104:根據靶心圖表像和目標識別庫進行目標重識別 105:當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識(以下簡稱新ID)對至少一個未識別靶心圖表像進行標記 106:根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫 201、202:攝像頭 700:目標重識別裝置 701:獲取模組 702:目標檢測模組 703:數量檢測模組 704:目標重識別模組 705:身份標識模組 706:目標識別庫更新模組 100: method 101: Obtain multiple current frames collected by multiple cameras set in the monitoring area 102: Perform target detection based on multiple current frames, and determine the bull's-eye image captured by each camera 103: Quantity detection is performed according to the bull's-eye image captured by each camera, and the number of global targets is obtained 104: Target re-identification based on bull's-eye image and target recognition library 105: When it is detected that the number of global targets meets the preset increase conditions, determine at least one unrecognized bull's-eye image according to the result of target re-identification, and create a new identity (hereinafter referred to as the new ID) for at least one unrecognized bull's-eye image. mark 106: Update the target recognition library according to the new identity and at least one characteristic data of the unrecognized bull's-eye chart image 201, 202: camera 700: Target re-identification device 701: Get module 702: Target detection module 703: Quantity detection module 704: Target re-identification module 705: Identity module 706: Object recognition library update module

通過閱讀下文的示例性實施例的詳細描述,本領域普通技術人員將明白本文所述的優點和益處以及其他優點和益處。附圖僅用於示出示例性實施例的目的,而並不認為是對本發明的限制。而且在整個附圖中,用相同的標號表示相同的部件。在附圖中:The advantages and benefits described herein, as well as other advantages and benefits, will be apparent to those of ordinary skill in the art upon reading the following detailed description of the exemplary embodiments. The drawings are only for the purpose of illustrating exemplary embodiments and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to denote the same parts. In the attached picture:

[圖1]為根據本發明一實施例的目標重識別方法的流程示意圖; [圖2]為根據本發明一實施例的監控區域的地面示意圖; [圖3]為根據本發明一實施例的多個攝像頭的取景畫面示意圖; [圖4]為根據本發明一實施例的多個攝像頭的當前幀的示意圖; [圖5]為根據本發明一實施例的多個攝像頭捕獲的靶心圖表像的示意圖; [圖6]為根據本發明一實施例的多個攝像頭捕獲的靶心圖表像的全域位置的示意圖; [圖7]為根據本發明一實施例的目標重識別裝置的結構示意圖; [圖8]為根據本發明另一實施例的目標重識別裝置的結構示意圖。 [Fig. 1] is a schematic flow chart of a target re-identification method according to an embodiment of the present invention; [Fig. 2] is a ground schematic diagram of a monitoring area according to an embodiment of the present invention; [FIG. 3] is a schematic diagram of a viewfinder screen of multiple cameras according to an embodiment of the present invention; [Fig. 4] is a schematic diagram of a current frame of multiple cameras according to an embodiment of the present invention; [Fig. 5] is a schematic diagram of a bull's-eye image captured by multiple cameras according to an embodiment of the present invention; [Fig. 6] is a schematic diagram of the global position of the bull's-eye image captured by multiple cameras according to an embodiment of the present invention; [Fig. 7] is a schematic structural diagram of a target re-identification device according to an embodiment of the present invention; [ Fig. 8 ] is a schematic structural diagram of an object re-identification device according to another embodiment of the present invention.

在附圖中,相同或對應的標號表示相同或對應的部分。In the drawings, the same or corresponding reference numerals denote the same or corresponding parts.

100:方法 100: method

101:獲取設置於監控區域內的多個攝像頭採集的多個當前幀 101: Obtain multiple current frames collected by multiple cameras set in the monitoring area

102:根據多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像 102: Perform target detection based on multiple current frames, and determine the bull's-eye image captured by each camera

103:根據每個攝像頭捕獲到的靶心圖表像進行數量檢測,得到全域目標數量 103: Quantity detection is performed according to the bull's-eye image captured by each camera, and the number of global targets is obtained

104:根據靶心圖表像和目標識別庫進行目標重識別 104: Target re-identification based on bull's-eye image and target recognition library

105:當檢測到全域目標數量符合預設增加條件時,根據目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識(以下簡稱新ID)對至少一個未識別靶心圖表像進行標記 105: When it is detected that the number of global targets meets the preset increase conditions, determine at least one unrecognized bull's-eye image according to the result of target re-identification, and create a new identity (hereinafter referred to as the new ID) to perform at least one unrecognized bull's-eye image. mark

106:根據新的身份標識和至少一個未識別靶心圖表像的特徵資料更新目標識別庫 106: Update the target recognition library according to the new identity and at least one characteristic data of the unrecognized bull's-eye chart image

Claims (12)

一種目標重識別裝置,其中,包括:獲取模組,用於獲取設置於監控區域內的多個攝像頭採集的多個當前幀;目標檢測模組,用於根據所述多個當前幀進行目標檢測,確定每個攝像頭捕獲到的靶心圖表像;數量檢測模組,用於根據每個攝像頭捕獲到的所述靶心圖表像進行數量檢測,得到全域目標數量,當所述數量檢測的結果少於在先全域目標數量時,則根據所述多個攝像頭採集的所述多個當前幀和所述多個當前幀的上一幀,判斷是否存在從預定區域離開所述監控區域的目標;若不存在所述目標,則仍然保留所述在先全域目標數量作為本次確定的所述全域目標數量;若存在所述目標,則將所述數量檢測的結果作為本次確定的所述全域目標數量;其中,所述在先全域目標數量根據對所述多個當前幀的上一幀進行所述目標檢測和所述數量檢測得到;目標重識別模組,用於根據所述靶心圖表像和目標識別庫進行目標重識別,所述目標識別庫包括至少一個目標的身份標識和特徵資料;身份標識模組,用於當檢測到所述全域目標數量符合預設增加條件時,根據所述目標重識別的結果確定至少一個未識別靶心圖表像,創建新的身份標識對所述至少一個未識別靶心圖表像進行標記;目標識別庫更新模組,用於根據所述新的身份標識和所述至少一個未識別靶心圖表像的特徵資料更新所述目標識別庫。 A target re-identification device, including: an acquisition module for acquiring a plurality of current frames collected by a plurality of cameras arranged in a monitoring area; a target detection module for performing target detection according to the plurality of current frames , to determine the bull’s-eye chart image captured by each camera; the quantity detection module is used to perform quantity detection according to the bull’s-eye chart image captured by each camera, to obtain the number of targets in the whole area, when the result of the quantity detection is less than the First, when the number of targets in the whole area is present, then according to the plurality of current frames collected by the plurality of cameras and the last frame of the plurality of current frames, it is judged whether there is a target leaving the monitoring area from the predetermined area; if not For the target, the number of the previous global target is still retained as the number of the global target determined this time; if the target exists, the result of the number detection is used as the number of the global target determined this time; Wherein, the number of previous global targets is obtained according to the target detection and the number detection of the last frame of the plurality of current frames; the target re-identification module is used to identify the target according to the bull's-eye image and the target The library performs target re-identification, the target identification library includes at least one target identity and characteristic data; the identity identification module is used to re-identify according to the target when it detects that the number of targets in the entire domain meets the preset increase condition As a result of determining at least one unrecognized bull's-eye chart image, creating a new identity mark to mark the at least one unrecognized bull's-eye chart image; the target recognition library update module is used for according to the new identity mark and the at least one The feature data of the unrecognized bull's-eye image is updated to the target recognition library. 如請求項1所述的目標重識別裝置,其中,所述目標檢測模組,還用於: 將所述多個當前幀輸入經訓練的目標檢測模型,以提取出每個攝像頭捕獲到的所述靶心圖表像;其中,所述目標檢測模型為基於YOLOv4-tiny網路創建的人體檢測模型。 The target re-identification device according to claim 1, wherein the target detection module is also used for: The multiple current frames are input into the trained target detection model to extract the bull's-eye image captured by each camera; wherein the target detection model is a human body detection model created based on the YOLOv4-tiny network. 如請求項1所述的目標重識別裝置,其中,所述目標檢測模組,還用於:根據所述監控區域內的真實採集圖像對所述YOLOv4-tiny網路進行訓練,得到所述目標檢測模型。 The target re-identification device according to claim 1, wherein the target detection module is also used to: train the YOLOv4-tiny network according to the real collected images in the monitoring area to obtain the Object detection model. 如請求項2所述的目標重識別裝置,其中,所述靶心圖表像為所述當前幀中包含目標特徵的局部圖像,所述數量檢測模組還用於:根據每個攝像頭的取景位置對捕獲到的所述靶心圖表像進行位置轉換,得到每個攝像頭捕獲到的所述靶心圖表像對應的全域位置;確定由不同攝像頭各自捕獲的所述靶心圖表像的全域位置重合度,根據所述全域位置重合度對不同攝像頭各自捕獲的所述靶心圖表像進行篩選,檢測篩選後保留的所述靶心圖表像的數量。 The target re-identification device according to claim 2, wherein the bullseye image is a partial image containing target features in the current frame, and the quantity detection module is also used for: according to the viewing position of each camera Perform position conversion on the captured bull's-eye image to obtain the global position corresponding to the bull's-eye image captured by each camera; determine the global position coincidence of the bull's-eye images captured by different cameras, The bull's-eye chart images captured by different cameras are screened according to the coincidence degree of the global position, and the number of the bull-eye chart images retained after screening is detected. 如請求項1所述的目標重識別裝置,其中,所述數量檢測模組還用於:根據每個攝像頭的取景位置對所述當前幀中的所述靶心圖表像的底部中心點進行投影變換,從而確定所述每個所述靶心圖表像的地面座標。 The target re-identification device according to claim 1, wherein the number detection module is further configured to: perform projection transformation on the bottom central point of the bull's-eye chart image in the current frame according to the viewing position of each camera , so as to determine the ground coordinates of each of the bull's-eye chart images. 如請求項1-5項中任意一項所述的目標重識別裝置,其中,所述裝置還用於:將所述多個當前幀輸入經訓練的目標數量檢測模型,以執行所述目標檢測和所述數量檢測,得到所述全域目標數量; 其中,所述目標數量檢測模型為基於YOLOv4-tiny網路創建的行人數量檢測模型。 The target re-identification device according to any one of claims 1-5, wherein the device is further configured to: input the multiple current frames into a trained target quantity detection model to perform the target detection and the quantity detection to obtain the quantity of the global target; Wherein, the target number detection model is a pedestrian number detection model created based on the YOLOv4-tiny network. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述目標重識別模組還用於:計算所述靶心圖表像與所述目標識別庫中的特徵資料之間的相似度,並依據計算得到的相似度,對所述靶心圖表像進行目標重識別;當所述目標重識別的結果指示第一靶心圖表像與所述目標識別庫中的第一目標匹配時,根據所述第一目標的身份標識對所述第一靶心圖表像進行標記。 The object re-identification device according to any one of claims 1-5, wherein the object re-identification module is further used to: calculate the distance between the bull's-eye image and the feature data in the object recognition library similarity, and perform target re-identification on the bull's-eye chart image according to the calculated similarity; when the result of the target re-identification indicates that the first bull's-eye chart image matches the first target in the target recognition library, The first bull's-eye image is marked according to the identity of the first target. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述身份標識模組還用於:若所述當前幀為非首幀,且當前幀對應的所述全域目標數量相較於上一幀對應的所述全域目標數量增加時,則所述全域目標數量符合所述預設增加條件;若所述當前幀為首幀時,預設所述全域目標數量符合所述預設增加條件。 The target re-identification device according to any one of claim items 1-5, wherein the identity identification module is also used for: if the current frame is not the first frame, and the current frame corresponds to the number of targets in the whole domain When the number of global objects corresponding to the previous frame increases, the number of global objects meets the preset increase condition; if the current frame is the first frame, the preset number of global objects meets the preset Add conditions. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述目標識別庫更新模組還用於:判斷所述至少一個未識別靶心圖表像是否滿足預設圖像品質條件;將所述新的身份標識和滿足所述預設圖像品質條件的所述未識別靶心圖表像對應存入所述目標識別庫。 The object re-identification device according to any one of claims 1-5, wherein the object recognition library update module is further used to: determine whether the at least one unrecognized bull's-eye image satisfies a preset image quality condition ; Correspondingly storing the new identity mark and the unrecognized bull's-eye image meeting the preset image quality condition into the target recognition library. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述目標識別庫更新模組還用於: 根據所述第一靶心圖表像或所述第一靶心圖表像的特徵值對所述目標識別庫中的所述第一目標的特徵資料進行動態更新。 The target re-identification device according to any one of claim items 1-5, wherein the target recognition library update module is also used for: The feature data of the first target in the target recognition library is dynamically updated according to the first bull's-eye chart image or the feature value of the first bull's-eye chart image. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述目標識別庫更新模組還用於:根據所述目標識別庫中的每個目標的所述特徵資料對應的來源時間和當前時間的比較結果,對所述目標識別庫進行替換更新;和/或,根據所述目標識別庫中的每個目標的所述特徵資料對應的全域位置和每個所述目標的當前全域位置的比較結果,對所述目標識別庫進行替換更新;和/或,根據所述目標識別庫中的每個目標的多個特徵資料之間的特徵相似度,對所述目標識別庫進行替換更新。 The target re-identification device according to any one of claims 1-5, wherein the target recognition library update module is further configured to: according to the feature data corresponding to each target in the target recognition library The target recognition library is replaced and updated according to the comparison result of the source time and the current time; and/or, according to the global position corresponding to the characteristic data of each target in the target recognition library and the location of each target According to the comparison result of the current global position, replace and update the target recognition library; and/or, according to the feature similarity between multiple feature data of each target in the target recognition library, update the target recognition library Make a replacement update. 如請求項1-5中任一項所述的目標重識別裝置,其中,所述目標識別庫更新模組還用於:任意一個所述目標的所述特徵資料的數量超過預設閾值之後,啟動所述替換更新。 The object re-identification device according to any one of claims 1-5, wherein the object recognition library update module is further configured to: after the quantity of the feature data of any one of the objects exceeds a preset threshold, Start said replacement update.
TW110133172A 2021-01-25 2021-09-07 Target re-identification method, device, and computer readable storage medium TWI798815B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110095415.1 2021-01-25
CN202110095415.1A CN112906483B (en) 2021-01-25 2021-01-25 Target re-identification method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
TW202230215A TW202230215A (en) 2022-08-01
TWI798815B true TWI798815B (en) 2023-04-11

Family

ID=76118765

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110133172A TWI798815B (en) 2021-01-25 2021-09-07 Target re-identification method, device, and computer readable storage medium

Country Status (3)

Country Link
CN (1) CN112906483B (en)
TW (1) TWI798815B (en)
WO (1) WO2022156234A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112906483B (en) * 2021-01-25 2024-01-23 中国银联股份有限公司 Target re-identification method, device and computer readable storage medium
CN113887270B (en) * 2021-06-24 2024-10-01 安徽农业大学 Mask wearing detection method based on improved YOLOv-tiny model
CN113723361A (en) * 2021-09-18 2021-11-30 西安邮电大学 Video monitoring method and device based on deep learning
CN114022806A (en) * 2021-10-18 2022-02-08 北京贝思科技术有限公司 Method and device for re-identifying lost face image after capture in complex environment and electronic equipment
CN117423051B (en) * 2023-10-18 2024-03-26 广州元沣智能科技有限公司 Information monitoring and analyzing method based on place moving object
CN117974718A (en) * 2024-02-02 2024-05-03 北京视觉世界科技有限公司 Target detection tracking method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI692728B (en) * 2018-02-08 2020-05-01 香港商阿里巴巴集團服務有限公司 Method and device for detecting entry and exit states
TW202018594A (en) * 2018-11-09 2020-05-16 香港商阿里巴巴集團服務有限公司 People flow condition estimation method and device for designated area
CN111623791A (en) * 2020-05-28 2020-09-04 识加科技(上海)有限公司 Method, apparatus, device and medium for navigating in public area
TWI705383B (en) * 2019-10-25 2020-09-21 緯創資通股份有限公司 Person tracking system and person tracking method

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105518744B (en) * 2015-06-29 2018-09-07 北京旷视科技有限公司 Pedestrian recognition methods and equipment again
GB2545900B (en) * 2015-12-21 2020-08-12 Canon Kk Method, device, and computer program for re-identification of objects in images obtained from a plurality of cameras
WO2017150899A1 (en) * 2016-02-29 2017-09-08 광주과학기술원 Object reidentification method for global multi-object tracking
CN107346409B (en) * 2016-05-05 2019-12-17 华为技术有限公司 pedestrian re-identification method and device
US9607402B1 (en) * 2016-05-09 2017-03-28 Iteris, Inc. Calibration of pedestrian speed with detection zone for traffic intersection control
US10395385B2 (en) * 2017-06-27 2019-08-27 Qualcomm Incorporated Using object re-identification in video surveillance
CN109697391A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Personage knows method for distinguishing, system and terminal device again in closing place
CN108399381B (en) * 2018-02-12 2020-10-30 北京市商汤科技开发有限公司 Pedestrian re-identification method and device, electronic equipment and storage medium
CN108875588B (en) * 2018-05-25 2022-04-15 武汉大学 Cross-camera pedestrian detection tracking method based on deep learning
CN109740413B (en) * 2018-11-14 2023-07-28 平安科技(深圳)有限公司 Pedestrian re-identification method, device, computer equipment and computer storage medium
CN109902573B (en) * 2019-01-24 2023-10-31 中国矿业大学 Multi-camera non-labeling pedestrian re-identification method for video monitoring under mine
CN110175527B (en) * 2019-04-29 2022-03-25 北京百度网讯科技有限公司 Pedestrian re-identification method and device, computer equipment and readable medium
CN110309717A (en) * 2019-05-23 2019-10-08 南京熊猫电子股份有限公司 A kind of pedestrian counting method based on deep neural network
CN110826415A (en) * 2019-10-11 2020-02-21 上海眼控科技股份有限公司 Method and device for re-identifying vehicles in scene image
CN110991283A (en) * 2019-11-21 2020-04-10 北京格灵深瞳信息技术有限公司 Re-recognition and training data acquisition method and device, electronic equipment and storage medium
CN111159475B (en) * 2019-12-06 2022-09-23 中山大学 Pedestrian re-identification path generation method based on multi-camera video image
CN111145213A (en) * 2019-12-10 2020-05-12 中国银联股份有限公司 Target tracking method, device and system and computer readable storage medium
CN111160275B (en) * 2019-12-30 2023-06-23 深圳元戎启行科技有限公司 Pedestrian re-recognition model training method, device, computer equipment and storage medium
CN111274992A (en) * 2020-02-12 2020-06-12 北方工业大学 Cross-camera pedestrian re-identification method and system
CN111382751B (en) * 2020-03-11 2023-04-18 西安应用光学研究所 Target re-identification method based on color features
CN111680551B (en) * 2020-04-28 2024-06-11 平安国际智慧城市科技股份有限公司 Method, device, computer equipment and storage medium for monitoring livestock quantity
CN111783570A (en) * 2020-06-16 2020-10-16 厦门市美亚柏科信息股份有限公司 Method, device and system for re-identifying target and computer storage medium
CN111882586B (en) * 2020-06-23 2022-09-13 浙江工商大学 Multi-actor target tracking method oriented to theater environment
CN112183431A (en) * 2020-10-12 2021-01-05 上海汉时信息科技有限公司 Real-time pedestrian number statistical method and device, camera and server
CN112906483B (en) * 2021-01-25 2024-01-23 中国银联股份有限公司 Target re-identification method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI692728B (en) * 2018-02-08 2020-05-01 香港商阿里巴巴集團服務有限公司 Method and device for detecting entry and exit states
TW202018594A (en) * 2018-11-09 2020-05-16 香港商阿里巴巴集團服務有限公司 People flow condition estimation method and device for designated area
TWI705383B (en) * 2019-10-25 2020-09-21 緯創資通股份有限公司 Person tracking system and person tracking method
CN111623791A (en) * 2020-05-28 2020-09-04 识加科技(上海)有限公司 Method, apparatus, device and medium for navigating in public area

Also Published As

Publication number Publication date
TW202230215A (en) 2022-08-01
CN112906483A (en) 2021-06-04
CN112906483B (en) 2024-01-23
WO2022156234A1 (en) 2022-07-28

Similar Documents

Publication Publication Date Title
TWI798815B (en) Target re-identification method, device, and computer readable storage medium
WO2021043073A1 (en) Urban pet movement trajectory monitoring method based on image recognition and related devices
WO2019218824A1 (en) Method for acquiring motion track and device thereof, storage medium, and terminal
CN107093171B (en) Image processing method, device and system
US7693310B2 (en) Moving object recognition apparatus for tracking a moving object based on photographed image
CN110866466B (en) Face recognition method, device, storage medium and server
WO2021174789A1 (en) Feature extraction-based image recognition method and image recognition device
WO2015070764A1 (en) Face positioning method and device
Lee et al. Place recognition using straight lines for vision-based SLAM
CN107545256B (en) Camera network pedestrian re-identification method combining space-time and network consistency
CN105608209B (en) Video annotation method and video annotation device
WO2018058530A1 (en) Target detection method and device, and image processing apparatus
CN109214324A (en) Most face image output method and output system based on polyphaser array
Guo et al. Enhanced camera-based individual pig detection and tracking for smart pig farms
CN114428875A (en) Pedestrian re-identification database building method and device, computer equipment and storage medium
TW202042113A (en) Face recognition system, establishing data method for face recognition, and face recognizing method thereof
CN115272967A (en) Cross-camera pedestrian real-time tracking and identifying method, device and medium
CN112541403A (en) Indoor personnel falling detection method utilizing infrared camera
WO2020155486A1 (en) Facial recognition optimization method and apparatus, computer device and storage medium
CN108875488B (en) Object tracking method, object tracking apparatus, and computer-readable storage medium
TWI728655B (en) Convolutional neural network detection method and system for animals
CN114494358A (en) Data processing method, electronic equipment and storage medium
CN110751065B (en) Training data acquisition method and device
JP7374632B2 (en) Information processing device, information processing method and program
Nithin et al. Multi-camera tracklet association and fusion using ensemble of visual and geometric cues