[go: up one dir, main page]

TWI768641B - Monitoring method, electronic equipment and storage medium - Google Patents

Monitoring method, electronic equipment and storage medium Download PDF

Info

Publication number
TWI768641B
TWI768641B TW110100321A TW110100321A TWI768641B TW I768641 B TWI768641 B TW I768641B TW 110100321 A TW110100321 A TW 110100321A TW 110100321 A TW110100321 A TW 110100321A TW I768641 B TWI768641 B TW I768641B
Authority
TW
Taiwan
Prior art keywords
area
target object
living body
detection result
body detection
Prior art date
Application number
TW110100321A
Other languages
Chinese (zh)
Other versions
TW202134940A (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 TW202134940A publication Critical patent/TW202134940A/en
Application granted granted Critical
Publication of TWI768641B publication Critical patent/TWI768641B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • G01K13/20Clinical contact thermometers for use with humans or animals
    • G01K13/223Infrared clinical thermometers, e.g. tympanic
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Image Analysis (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Radiation Pyrometers (AREA)
  • Image Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Alarm Systems (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

The embodiments of the present disclosure relate to a monitoring method, electronic equipment and storage medium, the method includes: performing target area recognition on the visible light image to obtain a first area where the target object is located and a second area where a preset part is located; performing live detection on the target object according to the size of the first area and the third area corresponding to the first area in the infrared image to obtain a live detection result; when the result of the living body detection is a living body, performing identity recognition on the first area to obtain identity information, and performing temperature detection on the fourth area corresponding to the second area in the infrared image to obtain temperature information; generating first warning information according to the identity information when the temperature information is greater than or equal to a preset threshold.

Description

監測方法、電子設備和儲存介質Monitoring method, electronic device and storage medium

本發明關於電腦視覺技術領域,關於一種監測方法、電子設備和儲存介質。The present invention relates to the technical field of computer vision, and relates to a monitoring method, an electronic device and a storage medium.

在呼吸道類病毒疫情防控中,早發現,早隔離是最原始且極為有效措施。早發現代指採用醫學診測手段儘早發現可疑人員,其中可包括體溫檢測。早隔離代指減小病毒攜帶患者與他人接觸,減少交叉感染的風險,其中可包括無接觸式體溫檢測,帶口罩等措施。In the prevention and control of respiratory virus epidemics, early detection and early isolation are the most primitive and extremely effective measures. Early detection refers to the early detection of suspicious persons by means of medical diagnosis and testing, which may include temperature detection. Early isolation refers to reducing the contact between virus-carrying patients and others and reducing the risk of cross-infection, which can include measures such as non-contact temperature detection and wearing masks.

在相關技術中,可通過體溫計、熱成像圖等方式進行體溫檢測,但體檢檢測過程繁瑣,難以適應人流量較大的場所,且檢測到具有發熱症狀的疑似病例時,難以核實疑似病例的身份資訊。In related technologies, body temperature can be detected by means of thermometers, thermal imaging, etc., but the physical examination and detection process is cumbersome and difficult to adapt to places with large traffic, and when a suspected case with fever symptoms is detected, it is difficult to verify the identity of the suspected case News.

本發明實施例提出了一種監測方法、電子設備和儲存介質。Embodiments of the present invention provide a monitoring method, an electronic device, and a storage medium.

根據本發明實施例的一方面,提供了一種監測方法,包括:對監測區域的可見光圖像進行目標區域識別,獲得所述可見光圖像中目標對象所在的第一區域以及所述目標對象的預設部位所在的第二區域;根據所述第一區域的尺寸資訊,以及所述第一區域在所述監測區域的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果;在活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,並對所述第二區域在所述紅外圖像中對應的第四區域進行溫度檢測處理,獲得所述目標對象的溫度資訊;在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。According to an aspect of the embodiments of the present invention, a monitoring method is provided, including: performing target area identification on a visible light image of a monitoring area, and obtaining a first area where a target object is located in the visible light image and a pre-determined target area of the target object. Set the second area where the part is located; according to the size information of the first area and the third area corresponding to the first area in the infrared image of the monitoring area, perform live detection on the target object, and obtain The living body detection result; in the case that the living body detection result is a living body, the identification processing is performed on the first area, the identity information of the target object is obtained, and the corresponding information of the second area in the infrared image is obtained. The fourth area performs temperature detection processing to obtain the temperature information of the target object; when the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object.

根據本發明的實施例的監測方法,可基於紅外圖像進行活體檢測和溫度檢測,可快速檢測圖像中目標對象的體溫,提高體溫檢測的效率,適用於人流量較大的場所。且可通過可見光圖像識別目標對象的身份資訊,有助於確定疑似病例的身份資訊,提高防疫效率。The monitoring method according to the embodiment of the present invention can perform live detection and temperature detection based on infrared images, can quickly detect the body temperature of the target object in the image, improve the efficiency of body temperature detection, and is suitable for places with large traffic. In addition, the identity information of the target object can be identified through the visible light image, which is helpful to determine the identity information of the suspected case and improve the efficiency of epidemic prevention.

在一種可能的實現方式中,根據所述第一區域的尺寸資訊,以及所述第一區域在所述紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果,包括:根據所述第一區域的尺寸資訊,確定所述目標對象與獲取所述可見光圖像的圖像獲取裝置之間的距離;根據所述距離,確定活體檢測策略;根據所述第一區域在可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置;根據所述活體檢測策略,對紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果。In a possible implementation manner, according to the size information of the first area and the third area corresponding to the first area in the infrared image, the target object is subjected to living body detection to obtain a living body detection result , comprising: determining the distance between the target object and the image acquisition device that acquires the visible light image according to the size information of the first area; determining a living body detection strategy according to the distance; The position of the region in the visible light image is determined, and the position of the third region is determined in the infrared image; according to the living body detection strategy, the third region in the infrared image is subjected to living body detection processing to obtain the obtained The results of the live test.

通過這種方式,可通過第一區域的尺寸確定活體檢測策略,並基於活體檢測策略進行活體檢測,可利用等溫分析提升在遠紅外圖像中的活體檢測精確度。In this way, the living body detection strategy can be determined by the size of the first region, and the living body detection can be performed based on the living body detection strategy, and the isothermal analysis can be used to improve the living body detection accuracy in the far-infrared image.

在一種可能的實現方式中,根據所述距離,確定活體檢測策略,包括以下中的一種:在所述距離大於或等於第一距離閾值的情況下,將所述活體檢測策略確定為基於人體形態的活體檢測策略;在所述距離大於或等於第二距離閾值且小於所述第一距離閾值的情況下,將所述活體檢測策略確定為基於頭頸形態的活體檢測策略;在所述距離小於所述第二距離閾值的情況下,將所述活體檢測策略確定為基於面部形態的活體檢測策略。In a possible implementation manner, determining the living body detection strategy according to the distance, including one of the following: when the distance is greater than or equal to a first distance threshold, determining the living body detection strategy as based on human body shape the living body detection strategy; when the distance is greater than or equal to the second distance threshold and less than the first distance threshold, the living body detection strategy is determined as a living body detection strategy based on head and neck morphology; In the case of the second distance threshold, the living body detection strategy is determined as a facial morphology-based living body detection strategy.

在一種可能的實現方式中,根據所述活體檢測策略,對所述第三區域進行活體檢測處理,獲得所述活體檢測結果,包括:根據所述活體檢測策略,對所述第三區域進行形態檢測處理,獲得形態檢測結果;在所述形態檢測結果為活體形態的情況下,對所述第三區域中的面部區域進行等溫分析處理,獲得等溫分析結果;根據所述活體檢測策略,確定形態檢測結果的第一權重和所述等溫分析結果的第二權重;根據所述第一權重、所述第二權重、所述形態檢測結果和所述等溫分析結果,確定所述活體檢測結果。In a possible implementation manner, according to the living body detection strategy, performing a living body detection process on the third area to obtain the living body detection result, including: according to the living body detection strategy, performing a morphology on the third area detection processing to obtain a shape detection result; if the shape detection result is a living body shape, perform isothermal analysis processing on the face region in the third area to obtain an isothermal analysis result; according to the living body detection strategy, determining a first weight of the morphological detection result and a second weight of the isothermal analysis result; determining the living body according to the first weight, the second weight, the morphological detection result and the isothermal analysis result Test results.

在一種可能的實現方式中,所述方法還包括,在活體檢測結果為活體的情況下,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,其中,所述預設目標包括對面部的部分區域進行遮擋的物品,在活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,包括:在活體檢測結果為活體的情況下,根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊。In a possible implementation manner, the method further includes, in the case that the living body detection result is a living body, detecting whether a preset target is included in the first area, and obtaining the first detection result, wherein the preset target is obtained. Suppose that the target includes an item that blocks a part of the face, and in the case of a living body detection result being a living body, performing identification processing on the first area to obtain the identity information of the target object, including: when the living body detection result is In the case of a living body, an identification process is performed on the first area according to the first detection result to obtain the identity information of the target object.

通過這種方式,可根據是否存在預設目標來選擇身份識別方法,可提升身份識別的準確度。In this way, the identification method can be selected according to whether there is a preset target, and the accuracy of identification can be improved.

在一種可能的實現方式中,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,包括:對所述第一區域中的面部區域進行檢測處理,確定所述面部區域的特徵缺失結果;在所述特徵缺失結果為預設特徵缺失的情況下,檢測所述面部區域內是否包括預設目標,獲得所述第一檢測結果。In a possible implementation manner, detecting whether the first area includes a preset target, and obtaining the first detection result, includes: performing detection processing on the facial area in the first area, and determining the facial area If the feature missing result is a preset feature missing, detect whether a preset target is included in the face area, and obtain the first detection result.

在一種可能的實現方式中,根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,包括以下中的一種:在所述第一檢測結果為不存在所述預設目標的情況下,對所述第一區域中的面部區域進行第一身份識別處理,獲得所述目標對象的身份資訊;在所述第一檢測結果為存在所述預設目標的情況下,對所述第一區域中的面部區域進行第二身份識別處理,獲得所述目標對象的身份資訊,其中,所述第二身份識別處理中面部的未遮擋區域的特徵的權重大於第一身份識別處理中對應區域的特徵的權重。In a possible implementation manner, performing identification processing on the first area according to the first detection result to obtain the identity information of the target object, including one of the following: when the first detection result is: In the case where the preset target does not exist, perform a first identification process on the face area in the first area to obtain the identity information of the target object; if the first detection result is that the preset exists In the case of a target, a second identity recognition process is performed on the face area in the first area to obtain the identity information of the target object, wherein the weight of the feature of the unoccluded area of the face in the second identity recognition process Greater than the weight of the feature of the corresponding area in the first identification process.

在一種可能的實現方式中,所述方法還包括:在所述第一檢測結果為不存在所述預設目標的情況下,生成第二預警資訊。In a possible implementation manner, the method further includes: when the first detection result is that the preset target does not exist, generating second early warning information.

在一種可能的實現方式中,所述方法還包括:獲取所述目標對象的性別資訊;根據所述性別資訊,確定所述預設溫度閾值。In a possible implementation manner, the method further includes: acquiring gender information of the target object; and determining the preset temperature threshold according to the gender information.

在一種可能的實現方式中,所述方法還包括:將所述第一區域或所述第三區域的位置資訊、所述目標對象的溫度資訊和所述目標對象的身份資訊,與所述可見光圖像和/或紅外圖像進行疊加處理,獲得檢測圖像。In a possible implementation manner, the method further includes: combining the position information of the first area or the third area, the temperature information of the target object and the identity information of the target object with the visible light The images and/or infrared images are superimposed to obtain detection images.

根據本發明實施例的一方面,提供了一種監測系統,包括:可見光圖像獲取部分、紅外圖像獲取部分、處理部分,所述處理部分被配置為:對可見光圖像獲取部分獲取的監測區域的可見光圖像進行目標區域識別,獲得所述可見光圖像中目標對象所在的第一區域以及所述目標對象的預設部位所在的第二區域;根據所述第一區域的尺寸資訊,以及所述第一區域在紅外圖像獲取部分獲取的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果;在活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,並對所述第二區域在所述紅外圖像中對應的第四區域進行溫度檢測處理,獲得所述目標對象的溫度資訊;在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。According to an aspect of the embodiments of the present invention, a monitoring system is provided, comprising: a visible light image acquisition part, an infrared image acquisition part, and a processing part, wherein the processing part is configured to: monitor a monitoring area acquired by the visible light image acquisition part The visible light image is used to identify the target area, and the first area where the target object is located in the visible light image and the second area where the preset part of the target object is located is obtained; according to the size information of the first area, and the The first region corresponds to the third region in the infrared image obtained by the infrared image acquisition part, and the target object is subjected to living body detection to obtain a living body detection result; in the case that the living body detection result is a living body, the third Perform identification processing on an area to obtain the identity information of the target object, and perform temperature detection processing on the fourth area corresponding to the second area in the infrared image to obtain the temperature information of the target object; When the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object.

在一種可能的實現方式中,所述處理部分進一步被配置為:根據所述第一區域的尺寸資訊,確定所述目標對象與獲取所述可見光圖像的圖像獲取裝置之間的距離;根據所述距離,確定活體檢測策略;根據所述第一區域在可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置;根據所述活體檢測策略,對紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果。In a possible implementation manner, the processing part is further configured to: determine the distance between the target object and the image acquisition device that acquires the visible light image according to the size information of the first area; According to the distance, a living body detection strategy is determined; according to the position of the first region in the visible light image, the position of the third region is determined in the infrared image; according to the living body detection strategy, the infrared image is determined. The third region in the in vivo detection process is performed to obtain the in vivo detection result.

在一種可能的實現方式中,所述處理部分進一步被配置為:在所述距離大於或等於第一距離閾值的情況下,將所述活體檢測策略確定為基於人體形態的活體檢測策略;或者在所述距離大於或等於第二距離閾值且小於所述第一距離閾值的情況下,將所述活體檢測策略確定為基於頭頸形態的活體檢測策略;或者在所述距離小於所述第二距離閾值的情況下,將所述活體檢測策略確定為基於面部形態的活體檢測策略。In a possible implementation manner, the processing part is further configured to: when the distance is greater than or equal to a first distance threshold, determine the living body detection strategy as a human body shape-based living body detection strategy; or When the distance is greater than or equal to the second distance threshold and less than the first distance threshold, the living body detection strategy is determined as a living body detection strategy based on head and neck morphology; or when the distance is less than the second distance threshold In the case of , the living body detection strategy is determined as a facial morphology-based living body detection strategy.

在一種可能的實現方式中,所述處理部分進一步被配置為:根據所述活體檢測策略,對所述第三區域進行形態檢測處理,獲得形態檢測結果;在所述形態檢測結果為活體形態的情況下,對所述第三區域中的面部區域進行等溫分析處理,獲得等溫分析結果;根據所述活體檢測策略,確定形態檢測結果的第一權重和所述等溫分析結果的第二權重;根據所述第一權重、所述第二權重、所述形態檢測結果和所述等溫分析結果,確定所述活體檢測結果。In a possible implementation manner, the processing part is further configured to: perform shape detection processing on the third region according to the living body detection strategy to obtain a shape detection result; when the shape detection result is a living body shape In this case, perform isothermal analysis processing on the face area in the third area to obtain an isothermal analysis result; according to the living body detection strategy, determine the first weight of the morphological detection result and the second weight of the isothermal analysis result. Weight; according to the first weight, the second weight, the morphological detection result and the isothermal analysis result, determine the living body detection result.

在一種可能的實現方式中,所述處理部分還被配置為:在活體檢測結果為活體的情況下,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,其中,所述預設目標包括對面部的部分區域進行遮擋的物品,所述處理部分進一步被配置為:在活體檢測結果為活體的情況下,根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊。In a possible implementation manner, the processing part is further configured to: in the case that the living body detection result is a living body, detect whether a preset target is included in the first area, and obtain the first detection result, wherein, The preset target includes an item that shields a partial area of the face, and the processing part is further configured to: in the case that the living body detection result is a living body, according to the first detection result, perform an operation on the first area. The identity recognition process obtains the identity information of the target object.

在一種可能的實現方式中,所述處理部分進一步被配置為:對所述第一區域中的面部區域進行檢測處理,確定所述面部區域的特徵缺失結果;在所述特徵缺失結果為預設特徵缺失的情況下,檢測所述面部區域內是否包括預設目標,獲得所述第一檢測結果。In a possible implementation manner, the processing part is further configured to: perform detection processing on the facial region in the first region, and determine a feature missing result of the facial region; when the feature missing result is a preset In the case of missing features, it is detected whether the face area includes a preset target, and the first detection result is obtained.

在一種可能的實現方式中,所述處理部分進一步被配置為:在所述第一檢測結果為不存在所述預設目標的情況下,對所述第一區域中的面部區域進行第一身份識別處理,獲得所述目標對象的身份資訊;或者在所述第一檢測結果為存在所述預設目標的情況下,對所述第一區域中的面部區域進行第二身份識別處理,獲得所述目標對象的身份資訊,其中,所述第二身份識別處理中面部的未遮擋區域的特徵的權重大於第一身份識別處理中對應區域的特徵的權重。In a possible implementation manner, the processing part is further configured to: in the case that the first detection result is that the preset target does not exist, perform a first identification on the face area in the first area identification processing to obtain the identity information of the target object; or in the case that the first detection result is that the preset target exists, perform a second identification processing on the facial area in the first area to obtain the The identity information of the target object, wherein the weight of the feature of the unoccluded area of the face in the second identity recognition process is greater than the weight of the feature of the corresponding area in the first identity recognition process.

在一種可能的實現方式中,所述處理部分還被配置為:將所述第一區域或所述第三區域的位置資訊、所述目標對象的溫度資訊和所述目標對象的身份資訊,與所述可見光圖像和/或紅外圖像進行疊加處理,獲得檢測圖像。In a possible implementation manner, the processing part is further configured to: combine the location information of the first area or the third area, the temperature information of the target object and the identity information of the target object with The visible light image and/or the infrared image are superimposed to obtain a detection image.

在一種可能的實現方式中,所述處理部分還被配置為:獲取所述目標對象的性別資訊;根據所述性別資訊,確定所述預設溫度閾值。In a possible implementation manner, the processing part is further configured to: acquire gender information of the target object; and determine the preset temperature threshold according to the gender information.

在一種可能的實現方式中,所述處理部分還被配置為:在所述第一檢測結果為不存在所述預設目標的情況下,生成第二預警資訊。In a possible implementation manner, the processing part is further configured to generate second warning information when the first detection result is that the preset target does not exist.

根據本發明實施例的一方面,提供了一種電子設備,包括:處理器;用於儲存處理器可執行指令的記憶體;其中,所述處理器被配置為:執行上述監測方法。According to an aspect of the embodiments of the present invention, an electronic device is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the above monitoring method.

根據本發明實施例的一方面,提供了一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述監測方法。According to an aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above monitoring method when executed by a processor.

根據本發明的一方面,提供了一種電腦程式,包括電腦可讀代碼,當所述電腦可讀代碼在電子設備中運行時,所述電子設備中的處理器執行用於實現上述監測方法。According to an aspect of the present invention, a computer program is provided, including computer-readable codes, when the computer-readable codes are executed in an electronic device, the processor in the electronic device executes the above-mentioned monitoring method.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本發明實施例。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of embodiments of the present invention.

根據下面參考附圖對示例性實施例的詳細說明,本發明的其它特徵及方面將變得清楚。Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

以下將參考附圖詳細說明本發明的各種示例性實施例、特徵和方面。附圖中相同的附圖標記表示功能相同或相似的組件。儘管在附圖中示出了實施例的各種方面,但是除非特別指出,不必按比例繪製附圖。Various exemplary embodiments, features and aspects of the present invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote components that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

在這裡專用的詞“示例性”意為“用作例子、實施例或說明性”。這裡作為“示例性”所說明的任何實施例不必解釋為優於或好於其它實施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.

本文中術語“和/或”,僅僅是一種描述關聯對象的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。另外,本文中術語“至少一種”表示多種中的任意一種或多種中的至少兩種的任意組合,例如,包括A、B、C中的至少一種,可以表示包括從A、B和C構成的集合中選擇的任意一個或多個元素。The term "and/or" in this article is only an association relationship to describe associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. three conditions. In addition, the term "at least one" herein refers to any combination of any one of a plurality or at least two of a plurality, for example, including at least one of A, B, and C, and may mean including those composed of A, B, and C. Any one or more elements selected in the collection.

另外,為了更好的說明本發明實施例,在下文的實施方式中給出了眾多的細節。本領域技術人員應當理解,沒有某些細節,本發明實施例同樣可以實施。在一些實例中,對於本領域技術人員熟知的方法、手段、組件和電路未作詳細描述,以便於凸顯本發明實施例的主旨。In addition, in order to better illustrate the embodiments of the present invention, numerous details are given in the following embodiments. It should be understood by those skilled in the art that the embodiments of the present invention may also be practiced without certain details. In some instances, methods, means, components and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the embodiments of the present invention.

圖1示出根據本發明實施例的圖像處理方法的流程圖,如圖1所示,所述方法包括: 在步驟S11中,對監測區域的可見光圖像進行目標區域識別,獲得所述可見光圖像中目標對象所在的第一區域以及所述目標對象的預設部位所在的第二區域; 在步驟S12中,根據所述第一區域的尺寸資訊,以及所述第一區域在所述監測區域的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果; 在步驟S13中,在活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,並對所述第二區域在所述紅外圖像中對應的第四區域進行溫度檢測處理,獲得所述目標對象的溫度資訊; 在步驟S14中,在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。FIG. 1 shows a flowchart of an image processing method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes: In step S11, the target area identification is performed on the visible light image of the monitoring area, and the first area where the target object is located in the visible light image and the second area where the preset part of the target object is located is obtained; In step S12, according to the size information of the first area and the third area corresponding to the first area in the infrared image of the monitoring area, the target object is subjected to living body detection to obtain a living body detection result ; In step S13, in the case that the living body detection result is a living body, perform identification processing on the first area, obtain the identity information of the target object, and correspond to the second area in the infrared image The temperature detection process is performed in the fourth area of to obtain the temperature information of the target object; In step S14, when the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object.

根據本發明的實施例的監測方法,可基於紅外圖像進行活體檢測和溫度檢測,可快速檢測圖像中目標對象的體溫,提高體溫檢測的效率,適用於人流量較大的場所。且可通過可見光圖像識別目標對象的身份資訊,有助於確定疑似病例的身份資訊,提高防疫效率。The monitoring method according to the embodiment of the present invention can perform live detection and temperature detection based on infrared images, can quickly detect the body temperature of the target object in the image, improve the efficiency of body temperature detection, and is suitable for places with large traffic. In addition, the identity information of the target object can be identified through the visible light image, which is helpful to determine the identity information of the suspected case and improve the efficiency of epidemic prevention.

在一種可能的實現方式中,所述監測方法可以由終端設備或其它處理設備執行,其中,終端設備可以為使用者設備(User Equipment,UE)、移動設備、使用者終端、終端、蜂窩電話、無線電話、個人數位助理(Personal Digital Assistant,PDA)、手持設備、計算設備、車載設備、可穿戴設備等。其它處理設備可為伺服器或雲端伺服器等。在一些可能的實現方式中,該監測方法可以通過處理器調用記憶體中儲存的電腦可讀指令的方式來實現。In a possible implementation manner, the monitoring method may be performed by a terminal device or other processing device, where the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, Wireless phones, Personal Digital Assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc. Other processing devices may be servers, cloud servers, or the like. In some possible implementations, the monitoring method may be implemented by the processor calling computer-readable instructions stored in the memory.

在一種可能的實現方式中,所述監測方法可用於前端監測設備中,例如,前端監測設備可以是將處理器、攝影頭等部分集成為一體的設備,可通過處理器控制攝影頭等部分,獲取監測區域的圖像,並通過處理器執行所述監測方法。在一種可能的實現方式中,所述監測方法也可用於伺服器(例如,執行監測方法的處理器位於伺服器,處理器與攝影頭等部分並未封裝成為一體,而是分佈於監測區域和後端處理器中,組成監測系統)中,伺服器可接收在監測區域的攝影頭拍攝的圖像,並對該圖像執行所述監測方法。In a possible implementation manner, the monitoring method can be used in front-end monitoring equipment. For example, the front-end monitoring equipment can be a device that integrates parts such as a processor and a camera head, and the parts such as the camera head can be controlled by the processor, An image of the monitoring area is acquired, and the monitoring method is executed by the processor. In a possible implementation manner, the monitoring method can also be used in a server (for example, the processor that executes the monitoring method is located in the server, and the processor and the camera head are not packaged into one body, but are distributed in the monitoring area and In the back-end processor, which constitutes a monitoring system), the server may receive an image captured by a camera in the monitoring area, and execute the monitoring method on the image.

在一種可能的實現方式中,所述處理器可以是系統級晶片(System on a Chip,SoC),所述攝影頭可包括用於獲取紅外圖像的紅外攝影頭,以及用於獲取可見光圖像的攝影頭。在一種可能的實現方式中,可使用氧化釩非製冷紅外焦平面探測器等特殊感測器來捕獲空間光信號,該感測器可用於遠紅外攝影頭中,以獲取生命光線,進行溫度監測。In a possible implementation manner, the processor may be a System on a Chip (SoC), and the camera may include an infrared camera for acquiring infrared images and an infrared camera for acquiring visible light images camera. In a possible implementation, special sensors such as vanadium oxide uncooled infrared focal plane detectors can be used to capture spatial light signals, which can be used in far-infrared cameras to obtain life rays and monitor temperature. .

在一種可能的實現方式中,攝影頭可拍攝到監控區域的視頻,該視頻的視頻幀即為可見光圖像和紅外圖像。紅外攝影頭和可見光攝影頭可設置在相近的位置,例如,紅外攝影頭和可見光攝影頭可相鄰設置、並列設置等,或者可將兩個攝影頭設置為一體等,本發明實施例對設置方式不做限制。因此,兩個攝影頭在同一時刻拍攝到的圖像中,各目標對象的位置是近似的,即,同一目標對象在可將光圖像及對應的紅外圖像中的位置偏差較小,且該偏差可根據兩個攝影頭的位置關係進行糾偏,例如,可根據可見光圖像中的第一區域(即,目標對象所在區域)的位置,確定該目標對象在紅外圖像中的第三區域的位置。In a possible implementation manner, the camera can capture a video of the monitoring area, and the video frame of the video is a visible light image and an infrared image. The infrared camera and the visible light camera can be arranged in close positions. For example, the infrared camera and the visible light camera can be arranged adjacently, side by side, etc., or the two cameras can be arranged as a whole, etc. The method is not limited. Therefore, in the images captured by the two cameras at the same time, the positions of each target object are approximate, that is, the position deviation of the same target object in the light image and the corresponding infrared image is small, and The deviation can be corrected according to the positional relationship of the two cameras. For example, the third region of the target object in the infrared image can be determined according to the position of the first region in the visible light image (that is, the region where the target object is located). s position.

在一種可能的實現方式中,攝影頭拍攝到的圖像可能存在圖像品質較差的情況,例如,成像模糊、焦距誤差、攝影頭被污染或遮擋等情況。可首先對圖像進行圖像品質的檢測。例如,可對可見光圖像進行圖像品質檢測,例如,可檢測可將光圖像的紋理、邊界的清晰度。在清晰度大於或等於清晰度閾值的情況下,則可認為圖像品質較好,可進行下一步的位置檢測等處理。在清晰度小於清晰度閾值的情況下,可認為圖像品質較差,可同時刪除該可見光圖像和該可見光圖像對應的紅外圖像。In a possible implementation manner, the image captured by the camera may have poor image quality, for example, image blur, focus error, and the camera is polluted or blocked. The image quality can be detected first. For example, image quality detection can be performed on the visible light image, for example, the texture and boundary clarity of the visible light image can be detected. When the sharpness is greater than or equal to the sharpness threshold, it can be considered that the image quality is good, and processing such as the next position detection can be performed. When the sharpness is less than the sharpness threshold, it may be considered that the image quality is poor, and the visible light image and the infrared image corresponding to the visible light image may be deleted at the same time.

在一種可能的實現方式中,在步驟S11中,可對可見光圖像進行目標區域識別,可獲得目標對象所在的第一區域,所述第一區域可以是目標對象的人臉區域和/或目標對象的人體區域。該處理可以得到目標對象所在的第一區域的位置座標,或者包含第一區域的檢測框的位置座標。In a possible implementation manner, in step S11, target area recognition may be performed on the visible light image, and a first area where the target object is located may be obtained, and the first area may be the face area of the target object and/or the target The body area of the subject. In this process, the position coordinates of the first region where the target object is located, or the position coordinates of the detection frame including the first region can be obtained.

在一種可能的實現方式中,在溫度檢測的過程中,可對額頭等區域的溫度進行測量,例如,可通過紅外圖像的圖元值來確定額頭區域的溫度,進而獲得目標對象的體溫。因此,可在可見光圖像中檢測預設部位(例如,額頭等區域)所在的第二區域,進而可確定預設部位在紅外圖像中的第四區域,可預先建立紅外圖像的圖元值與溫度之間的對應關係,進而可根據第四區域中的圖元值來確定目標對象的體溫。In a possible implementation, in the process of temperature detection, the temperature of the forehead and other regions can be measured. For example, the temperature of the forehead region can be determined through the primitive value of the infrared image, and then the body temperature of the target object can be obtained. Therefore, the second area where the preset part (for example, the forehead and other areas) is located can be detected in the visible light image, and then the fourth area of the preset part in the infrared image can be determined, and the primitives of the infrared image can be pre-established The corresponding relationship between the value and the temperature, and then the body temperature of the target object can be determined according to the primitive value in the fourth area.

在一種可能的實現方式中,活體是由具備生命特徵的人體表現出的具有生物活性,真實存在的生物模態。而假體是仿照活體所具有的生物特徵所製作的,與活體相似的模型(例如,照片、面具、頭套等)。通常,在活體檢測過程中,採用人臉的近紅外圖像進行活體檢測。其主要基於近紅外光下活體與假體間的成像特徵不同,例如,光流、紋理、顏色等特徵差異從而實現活體與假體區分。然而,在溫度監測過程中,遠紅外攝影獲取到紅外圖像為遠紅外圖像(即,基於生命光線的圖像),並非通常使用的近紅外光圖像,因此,可通過目標對象所在的第一區域的尺寸,確定活體檢測策略,提高活體檢測的精確度。In a possible implementation manner, a living body is a biologically active and real biological mode exhibited by a human body with life characteristics. A prosthesis is a model that is similar to a living body (eg, photos, masks, headgear, etc.) Usually, in the process of living body detection, a near-infrared image of a human face is used for living body detection. It is mainly based on the difference in imaging characteristics between the living body and the prosthesis under near-infrared light, for example, the difference in characteristics such as optical flow, texture, and color, so as to realize the distinction between the living body and the prosthesis. However, in the process of temperature monitoring, the infrared images obtained by far-infrared photography are far-infrared images (that is, images based on life rays), not the commonly used near-infrared images. The size of the first region determines the liveness detection strategy and improves the accuracy of liveness detection.

在一種可能的實現方式中,步驟S12可包括:根據所述第一區域的尺寸資訊,確定所述目標對象與獲取所述可見光圖像的圖像獲取裝置之間的距離;根據所述距離,確定活體檢測策略;根據所述第一區域在可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置;根據所述活體檢測策略,對紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果。In a possible implementation manner, step S12 may include: determining the distance between the target object and the image acquisition device that acquires the visible light image according to the size information of the first area; according to the distance, determining a living body detection strategy; determining the position of the third region in the infrared image according to the position of the first region in the visible light image; The third region performs a living body detection process to obtain the living body detection result.

在一種可能的實現方式中,第一區域為可見光圖像中的目標對象所在區域,例如,可以是目標對象的人臉區域,該區域的尺寸可與目標對象與獲取所述可見光圖像的圖像獲取裝置(可見光攝影頭)之間的距離負相關,即,該區域尺寸越大,所述距離越小,該區域尺寸越小,所述距離越大。進一步地,活體以特有的生命特徵表徵於紅外圖像中(例如,基於生命光線的遠紅外圖像)。人體血管遍佈肌體(例如,人體、人臉、頸肩等部位),但回應於目標對象與在可見光圖像中的位置較近的情況,使其在可見光圖像中僅呈現出部分肌體,例如,僅呈現面部、頭頸等,但面部特徵更清晰。距離越遠,其面部特徵量越少,人體特徵量越多。基於不同的距離,組合不同的活體檢測策略,提高活體檢測準確率,適用於不同距離使用。In a possible implementation manner, the first region is the region where the target object is located in the visible light image, for example, it may be the face region of the target object, and the size of the region may be the same as that of the target object and the image obtained by acquiring the visible light image. The distance between image acquisition devices (visible light cameras) is negatively correlated, that is, the larger the area size, the smaller the distance, and the smaller the area size, the larger the distance. Further, living bodies are characterized in infrared images with unique life characteristics (eg, far-infrared images based on life rays). Human blood vessels are all over the body (for example, the human body, face, neck and shoulders, etc.), but in response to the target object being close to the position in the visible light image, it only shows part of the body in the visible light image, for example, Only the face, head and neck are shown, but the facial features are clearer. The farther the distance is, the smaller the facial feature amount and the more human body feature amount. Based on different distances, different live detection strategies are combined to improve the accuracy of live detection and are suitable for use at different distances.

可以預先建立圖像中的基準尺寸與基準距離之間的對應關係,根據目標對象所在區域的尺寸與基準尺寸之間的比例關係,以及基準距離,來確定目標對象與攝影頭之間的距離。The correspondence between the reference size and the reference distance in the image can be established in advance, and the distance between the target object and the camera can be determined according to the proportional relationship between the size of the area where the target object is located and the reference size, and the reference distance.

圖2示出根據本發明實施例的活體檢測的示意圖,如圖2所示,可根據第一區域的尺寸資訊來確定目標對象與攝影頭之間的距離,並根據距離選擇活體檢測策略。可根據可見光圖像中的第一區域,確定紅外圖像中對應的第三區域。例如,所述第一區域為可見光圖像中目標對象A的人臉區域(例如,目標對象A與攝影頭距離較近,僅可拍攝到目標對象A的人臉區域),則第三區域為紅外圖像中目標對象A的人臉區域。第一區域為可見光圖像中目標對象B的頭頸區域(例如,可拍攝到目標對象B的人臉和肩頸部區域,或上半身區域等),則第三區域為紅外圖像中目標對象B的頭頸區域。第一區域為可見光圖像中目標對象C的人體區域(例如,目標對象C與攝影頭距離較遠,可拍攝到目標對象C的人體區域),則第三區域為紅外圖像中目標對象C的人體區域。2 shows a schematic diagram of living body detection according to an embodiment of the present invention. As shown in FIG. 2 , the distance between the target object and the camera can be determined according to the size information of the first area, and the living body detection strategy can be selected according to the distance. The corresponding third area in the infrared image may be determined according to the first area in the visible light image. For example, the first area is the face area of the target object A in the visible light image (for example, the distance between the target object A and the camera is relatively close, and only the face area of the target object A can be photographed), then the third area is The face area of target object A in the infrared image. The first area is the head and neck area of the target object B in the visible light image (for example, the face, shoulder and neck area of the target object B, or the upper body area, etc. can be photographed), and the third area is the target object B in the infrared image. the head and neck area. The first area is the human body area of the target object C in the visible light image (for example, the target object C is far away from the camera, and the human body area of the target object C can be photographed), then the third area is the target object C in the infrared image. body area.

在一種可能的實現方式中,根據所述目標對象的距離,確定活體檢測策略,包括以下中的一種:在所述距離大於或等於第一距離閾值的情況下,將所述活體檢測策略確定為基於人體形態的活體檢測策略;在所述距離大於或等於第二距離閾值且小於所述第一距離閾值的情況下,將所述活體檢測策略確定為基於頭頸形態的活體檢測策略;在所述距離小於所述第二距離閾值的情況下,將所述活體檢測策略確定為基於面部形態的活體檢測策略。In a possible implementation manner, determining a living body detection strategy according to the distance of the target object, including one of the following: when the distance is greater than or equal to a first distance threshold, determining the living body detection strategy as A living body detection strategy based on human body shape; when the distance is greater than or equal to the second distance threshold and less than the first distance threshold, the living body detection strategy is determined as a living body detection strategy based on head and neck morphology; in the When the distance is less than the second distance threshold, the living body detection strategy is determined as a facial morphology-based living body detection strategy.

在一種可能的實現方式中,第一距離閾值和第二距離閾值可根據攝影頭檢測區域的範圍、焦距等參數來確定。例如,在目標對象與攝影頭的距離大於或等於第一距離閾值的情況下,則攝影頭拍攝到的畫面中,可包括目標對象的全身,或大部分身體,則可選擇基於人體形態的活體檢測策略。在目標對象與攝影頭的距離小於第一距離閾值且大於或等於第二距離閾值的情況下,則攝影頭拍攝到的畫面中,無法包括目標對象的全身,但可包括目標對象的人臉和肩頸部區域,或上半身區域,則可選擇基於頭頸形態的活體檢測策略。在目標對象與攝影頭的距離小於第二距離閾值的情況下,則攝影頭拍攝到的畫面中,僅包括目標對象的人臉區域,則可選擇基於面部形態的活體檢測策略。In a possible implementation manner, the first distance threshold and the second distance threshold may be determined according to parameters such as the range and focal length of the detection area of the camera. For example, when the distance between the target object and the camera is greater than or equal to the first distance threshold, the picture captured by the camera may include the entire body, or most of the body of the target object, and a living body based on human body shape may be selected. detection strategy. In the case where the distance between the target object and the camera is less than the first distance threshold and greater than or equal to the second distance threshold, the picture captured by the camera cannot include the whole body of the target object, but can include the face and face of the target object. For the shoulder and neck area, or the upper body area, you can choose a living detection strategy based on the shape of the head and neck. When the distance between the target object and the camera is less than the second distance threshold, the picture captured by the camera only includes the face area of the target object, and a facial morphology-based living detection strategy can be selected.

在一種可能的實現方式中,根據所述第一區域在可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置。在示例中,可見光圖像中可包括一個或多個目標對象,即,包括一個或多個第一區域,可根據紅外攝影頭和可見光攝影頭質檢的位置關係,以及第一區域的位置,確定第三區域在紅外圖像中的位置。In a possible implementation manner, the position of the third region is determined in the infrared image according to the position of the first region in the visible light image. In an example, the visible light image may include one or more target objects, that is, include one or more first regions. According to the positional relationship between the infrared camera and the visible light camera for quality inspection, and the position of the first region, Determine the location of the third region in the infrared image.

在一種可能的實現方式中,由於紅外攝影頭可獲取用於檢測生命光線的遠紅外圖像,並非用於檢測圖像特徵的近紅外圖像,直接在遠紅外圖像中檢測目標對象所在的第三區域的準確率可能較低。並且在存在多個目標對象的情況下,在紅外圖像中直接檢測目標對象所在的第三區域,則各第三區域與可見光圖像中各第一區域之間的對應關係難以明確。因此,可根據可見光圖像中第一區域的位置以及上述兩個攝影頭之間的位置關係,獲得與第一區域對應的第三區域的位置。類似地,可通過可見光圖像中的第二區域的位置,獲取紅外圖像中的對應的第四區域的位置。In a possible implementation, since the infrared camera can obtain far-infrared images for detecting life rays, not near-infrared images for detecting image features, the location of the target object is directly detected in the far-infrared images. The accuracy of the third region may be lower. In addition, when there are multiple target objects, if the third region where the target object is located is directly detected in the infrared image, the correspondence between each third region and each first region in the visible light image is difficult to clarify. Therefore, the position of the third region corresponding to the first region can be obtained according to the position of the first region in the visible light image and the positional relationship between the two cameras. Similarly, the position of the corresponding fourth region in the infrared image can be obtained through the position of the second region in the visible light image.

在一種可能的實現方式中,在確定活體檢測策略後,可利用所選擇的活體檢測策略對紅外圖像中的第三區域進行活體檢測處理。根據所述活體檢測策略,對所述第三區域進行活體檢測處理,獲得所述活體檢測結果,包括:根據所述活體檢測策略,對所述第三區域進行形態檢測處理,獲得形態檢測結果;在所述形態檢測結果為活體形態的情況下,對所述第三區域中的面部區域進行等溫分析處理,獲得等溫分析結果;根據所述活體檢測策略,確定形態檢測結果的第一權重和所述等溫分析結果的第二權重;根據所述第一權重、所述第二權重、所述形態檢測結果和所述等溫分析結果,確定所述活體檢測結果。In a possible implementation manner, after the living body detection strategy is determined, the selected living body detection strategy may be used to perform living body detection processing on the third region in the infrared image. According to the living body detection strategy, performing a living body detection process on the third area to obtain the living body detection result includes: according to the living body detection strategy, performing a shape detection process on the third area to obtain a shape detection result; In the case that the shape detection result is a living body shape, perform isothermal analysis processing on the face region in the third area to obtain an isothermal analysis result; according to the living body detection strategy, determine the first weight of the shape detection result and the second weight of the isothermal analysis result; according to the first weight, the second weight, the morphological detection result and the isothermal analysis result, the living body detection result is determined.

在一種可能的實現方式中,可基於活體檢測策略,對第三區域進行形態檢測。In a possible implementation manner, morphology detection may be performed on the third region based on a living body detection strategy.

在一種可能的實現方式中,在基於人體形態的活體檢測策略中,第三區域中可包括目標對象的人臉區域和人體區域,人體特徵量較多,可通過神經網路等方式進行特徵提取處理,以獲取人體特徵量進行形態檢測處理,判斷目標對象的人體形態是否為活體形態(例如,可根據目標對象的姿勢、動作、形狀等特徵來判斷目標對象的形態是否為活體形態)。In a possible implementation manner, in the living body detection strategy based on human body shape, the third area may include the face area and the human body area of the target object, and there are many human body features, which can be extracted by neural networks and other methods. The processing is to perform shape detection processing by obtaining the human body feature amount, and determine whether the human body shape of the target object is a living body shape (for example, it can be judged whether the shape of the target object is a living body shape according to the characteristics of the target object's posture, movement, shape, etc.).

在一種可能的實現方式中,在基於頭頸形態的活體檢測策略中,第三區域中可包括目標對象的人臉和肩頸部區域,或上半身區域,可通過神經網路等方式進行特徵提取處理,以獲取人臉和肩頸部區域特徵量進行形態檢測處理,判斷目標對象的頭頸部形態是否為活體形態(例如,可根據目標對象的姿勢、動作、形狀等特徵來判斷目標對象是否為活體形態)。In a possible implementation, in the head and neck morphology-based living detection strategy, the third region may include the face, shoulder and neck region of the target object, or the upper body region, and feature extraction processing may be performed by means of neural networks and the like , to obtain the feature quantities of the face, shoulder and neck region, and perform shape detection processing to determine whether the shape of the head and neck of the target object is a living body (for example, it can be judged whether the target object is a living body according to the characteristics of the target object's posture, movement, shape, etc. form).

在一種可能的實現方式中,在基於面部形態的活體檢測策略中,第三區域中可包括目標對象的人臉區域,人體特徵量較少,人臉特徵量較多,可通過神經網路等方式進行特徵提取處理,以獲取人臉區域特徵量進行形態檢測處理,判斷目標對象的面部形態是否為活體形態(例如,可根據目標對象面部的表情、紋理等特徵來判斷目標對象是否為活體形態)。In a possible implementation manner, in the face shape-based living detection strategy, the third region may include the face region of the target object, with fewer human body features and more face features, which can be obtained through neural networks, etc. The feature extraction process is carried out in order to obtain the feature amount of the face area and perform the shape detection process to determine whether the facial shape of the target object is a living shape (for example, whether the target object is a living shape can be judged according to the facial expression, texture and other features of the target object) ).

在一種可能的實現方式中,上述形態檢測處理的形態檢測結果可以是分數形式的結果。例如,在形態檢測的分數大於或等於第一分數閾值的情況下,可認為形態檢測結果為活體形態。本發明實施例對形態檢測結果的形式不做限制。In a possible implementation manner, the shape detection result of the shape detection process described above may be a result in the form of a fraction. For example, in the case where the score of the morphology detection is greater than or equal to the first score threshold, the morphology detection result may be regarded as a living body morphology. The embodiment of the present invention does not limit the form of the morphological detection result.

在一種可能的實現方式中,在所述形態檢測結果為活體形態的情況下,對所述第三區域中的人臉區域進行等溫分析處理,獲得等溫分析結果。In a possible implementation manner, in the case that the shape detection result is a living body shape, isothermal analysis processing is performed on the face region in the third region to obtain an isothermal analysis result.

在一種可能的實現方式中,可通過等溫分析來確定人臉區域是否為活體,例如,目標對象的真實的面部具有均勻的血管分佈,而如果目標對象戴面具、頭套等假體,由於假體沒有血管分佈,其等溫線和真實面部的等溫線具有差異,可根據等溫分析來確定面部區域是否為活體。In a possible implementation, isothermal analysis can be used to determine whether the face area is a living body. For example, the real face of the target object has a uniform distribution of blood vessels, and if the target object wears a mask, headgear and other prostheses, due to false There is no blood vessel distribution in the body, and its isotherm is different from that of the real face. It can be determined whether the face area is a living body according to the isotherm analysis.

在一種可能的實現方式中,等溫分析結果可以是分數形式的結果,例如,在等溫分析的分數大於或等於第二分數閾值的情況下,可認為等溫分析結果為活體。本發明實施例對等溫分析結果的形式不做限制。In a possible implementation manner, the isothermal analysis result may be a result in the form of a fraction. For example, if the isothermal analysis fraction is greater than or equal to the second fractional threshold, the isothermal analysis result may be considered as a living body. The embodiment of the present invention does not limit the form of the isothermal analysis result.

在一種可能的實現方式中,由於在不同的活體檢測策略中,面部區域的特徵量所占比例不同(例如,在基於人體形態的活體檢測策略中,第三區域中包括人臉區域和人體區域,則人臉區域所占比例較小,而在基於面部形態的活體檢測策略中,第三區域中僅包括人臉區域,則人臉區域所占比例較大)。可根據活體檢測策略,確定形態檢測結果的第一權重和等溫分析結果的第二權重。In a possible implementation, since in different living detection strategies, the proportions of the features of the face area are different (for example, in the living detection strategy based on human shape, the third area includes the face area and the human body area. , the proportion of the face area is small, and in the face shape-based living detection strategy, the third area only includes the face area, and the proportion of the face area is large). The first weight of the morphological detection result and the second weight of the isothermal analysis result may be determined according to the living body detection strategy.

例如,在基於人體形態的活體檢測策略中,由於面部區域所占比例較小,則基於面部區域的等溫分析結果的第二權重可較小,形態檢測結果的第一權重可較大。例如,在基於面部形態的活體檢測策略中,由於面部區域所占比例較大,則基於面部區域的等溫分析結果的第二權重可較大,形態檢測結果的第一權重可較小。例如,在基於頭頸形態的活體檢測策略中,第二權重和第一權重可接近或相等。本發明實施例對第一權重和第二權重的取值不做限制。For example, in the living body detection strategy based on human shape, since the proportion of the face area is small, the second weight of the isothermal analysis result based on the face area may be smaller, and the first weight of the shape detection result may be larger. For example, in the face shape-based living detection strategy, since the face area occupies a large proportion, the second weight of the isothermal analysis result based on the face area may be larger, and the first weight of the shape detection result may be smaller. For example, in a head and neck morphology-based in vivo detection strategy, the second weight and the first weight may be close or equal. The embodiments of the present invention do not limit the values of the first weight and the second weight.

在一種可能的實現方式中,可根據第一權重和第二權重,分別對形態檢測結果和等溫分析結果進行加權求和處理,獲得活體檢測結果。在一種可能的實現方式中,活體檢測結果可以是分數形式的結果,在活體檢測結果大於或等於活體分數閾值的情況下,可認為目標對象為活體;在活體檢測結果小於活體分數閾值的情況下,可認為目標對象為假體,或非人體,無需進行後續處理。In a possible implementation manner, the morphological detection result and the isothermal analysis result may be weighted and summed according to the first weight and the second weight, respectively, to obtain the living body detection result. In a possible implementation manner, the living body detection result may be a result in the form of a score. In the case that the living body detection result is greater than or equal to the living body score threshold, the target object may be considered as a living body; in the case where the living body detection result is less than the living body score threshold value , it can be considered that the target object is a prosthesis, or a non-human body, and no subsequent processing is required.

通過這種方式,可通過第一區域的尺寸確定活體檢測策略,並基於活體檢測策略進行活體檢測,可利用等溫分析提升在遠紅外圖像中的活體檢測精確度。In this way, the living body detection strategy can be determined by the size of the first region, and the living body detection can be performed based on the living body detection strategy, and the isothermal analysis can be used to improve the living body detection accuracy in the far-infrared image.

在一種可能的實現方式中,在步驟S13中,可在目標對象為活體的情況下,對目標對象進行身份識別處理。在一種可能的實現方式中,在醫療衛生場所(例如醫院、手術室等)或者在疫情期間的公共場所,通常需要佩戴防護用具(例如,口罩,護目鏡等),然而在佩戴後,會對面部區域造成一定程度的遮擋,因此,需要監測目標對象是否佩戴口罩等預設物品,並根據檢測結果來確定身份識別的方式。In a possible implementation manner, in step S13, when the target object is a living body, an identity recognition process may be performed on the target object. In a possible implementation, in medical and health places (such as hospitals, operating rooms, etc.) or public places during the epidemic, it is usually necessary to wear protective equipment (such as masks, goggles, etc.). The facial area causes a certain degree of occlusion. Therefore, it is necessary to monitor whether the target object wears preset items such as masks, and determine the identification method according to the detection results.

圖3示出根據本發明的實施例的身份識別處理的示意圖。所述方法還包括:在活體檢測結果為活體的情況下,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,其中,所述預設目標包括對面部的部分區域進行遮擋的物品,所述第一檢測結果即為目標對象是否佩戴口罩等能夠遮擋面部區域的物品。進一步地,可根據第一檢測結果進行身份識別,步驟S13可包括:在活體檢測結果為活體的情況下,根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊。Figure 3 shows a schematic diagram of an identity recognition process according to an embodiment of the present invention. The method further includes: in the case that the living body detection result is a living body, detecting whether a preset target is included in the first area, and obtaining the first detection result, wherein the preset target includes a partial area of the face For the item to be covered, the first detection result is whether the target object wears a mask or other item that can block the face area. Further, the identification may be performed according to the first detection result, and step S13 may include: in the case that the living body detection result is a living body, performing identification processing on the first area according to the first detection result, and obtaining the The identity information of the target object.

在一種可能的實現方式中,可首先確定目標對象的面部是否存在預設目標(例如,口罩等物品)。檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,包括:對所述第一區域中的面部區域進行檢測處理,確定所述面部區域的特徵缺失結果;在所述特徵缺失結果為預設特徵缺失的情況下,檢測所述面部區域內是否包括預設目標,獲得所述第一檢測結果。In a possible implementation, it may be first determined whether there is a preset target (for example, an item such as a mask) on the face of the target object. Detecting whether a preset target is included in the first area, and obtaining the first detection result, includes: performing detection processing on the facial area in the first area, and determining a feature missing result of the facial area; When the feature missing result is that the preset feature is missing, it is detected whether a preset target is included in the face region, and the first detection result is obtained.

在一種可能的實現方式中,可通過神經網路對第一區域中的面部區域進行檢測處理,例如,可通過卷積神經網路獲取面部區域的特徵圖,在目標對象佩戴口罩等能夠遮擋面部的物品(預設目標)的情況下,則面部區域的特徵圖中存在特徵的缺失,例如,目標對象佩戴口罩,則無法檢測到目標對象口鼻部的特徵,即,口鼻部特徵缺失,在目標對象佩戴墨鏡的情況下,則無法檢測到眼部特徵,即,眼部特徵缺失。In a possible implementation, the facial region in the first region can be detected and processed through a neural network. For example, a feature map of the facial region can be obtained through a convolutional neural network, and wearing a mask on the target object can cover the face. In the case of the object (preset target), there is a lack of features in the feature map of the face area. For example, if the target object wears a mask, the features of the target object's nose and mouth cannot be detected, that is, the nose and mouth features are missing, When the target object wears sunglasses, eye features cannot be detected, ie, eye features are missing.

在一種可能的實現方式中,在預設特徵(例如,口鼻部特徵或眼部特徵等)缺失的情況下,則目標對象可能佩戴口罩、墨鏡等物品,還可進行進一步的檢測,例如,可通過卷積神經網路等方法監測目標對象的面部是否存在口罩等預設目標,例如,可檢測口罩的形狀、紋理等特徵,以識別口罩等物品,並排除目標對象用手遮擋面部或由於其他人的遮擋等情況。In a possible implementation manner, in the case where the preset features (for example, the features of the nose and mouth or the features of the eyes, etc.) are missing, the target object may be wearing masks, sunglasses and other items, and further detection can be performed, for example, Whether there are preset targets such as masks on the face of the target object can be monitored by methods such as convolutional neural networks. For example, the shape, texture and other characteristics of the mask can be detected to identify items such as masks, and exclude the target object from covering the face with his hands or due to occlusion by others, etc.

在一種可能的實現方式中,在預設特徵(例如,口鼻部特徵或眼部特徵等)未缺失(即,面部特徵完整)的情況下,則不存在口罩等預設目標。如果監控區域為醫院等醫療衛生場所,或者疫情期間的公共場所,則不戴口罩可能屬於違規行為。所述方法還包括:在所述第一檢測結果為不存在所述預設目標的情況下,生成第二預警資訊。進一步地,還可通過警告器件或顯示器輸出第二警告消息,以提醒目標對象佩戴口罩。例如,警告器件可包括音響、報警燈等器件,可以以聲音或燈光等方式輸出第二預警資訊,或者,可在顯示器上顯示該目標對象未佩戴口罩的資訊。本發明實施例對第二預警資訊的輸出方式不做限制。In a possible implementation, in the case where the preset features (for example, the features of the nose and mouth or the eyes, etc.) are not missing (that is, the facial features are complete), there is no preset target such as a mask. If the monitoring area is a medical and health place such as a hospital, or a public place during the epidemic, not wearing a mask may be a violation. The method further includes: when the first detection result is that the preset target does not exist, generating second warning information. Further, a second warning message can also be output through a warning device or a display to remind the target object to wear a mask. For example, the warning device may include a device such as a sound, an alarm light, etc., and the second warning information may be output in the form of sound or light, or the information that the target object is not wearing a mask may be displayed on the display. The embodiment of the present invention does not limit the output mode of the second early warning information.

在一種可能的實現方式中,還可根據第一檢測結果(即,目標對象是否佩戴可遮擋面部的物品),確定身份識別的方法。根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,包括以下中的一種:在所述第一檢測結果為不存在所述預設目標的情況下,對所述第一區域中的面部區域進行第一身份識別處理,獲得所述目標對象的身份資訊;在所述第一檢測結果為存在所述預設目標的情況下,對所述第一區域中的面部區域進行第二身份識別處理,獲得所述目標對象的身份資訊,其中,所述第二身份識別處理中面部的未遮擋區域的特徵的權重大於第一身份識別處理中對應區域的特徵的權重。In a possible implementation manner, the identity recognition method may also be determined according to the first detection result (that is, whether the target object wears an item that can cover the face). According to the first detection result, performing identification processing on the first area to obtain the identity information of the target object, including one of the following: when the first detection result is that the preset target does not exist In this case, perform a first identification process on the face area in the first area to obtain the identity information of the target object; in the case that the first detection result is that the preset target exists, perform the first identification process on the target object. The facial area in the first area is subjected to a second identity recognition process to obtain the identity information of the target object, wherein the weight of the feature of the unoccluded area of the face in the second identity recognition process is greater than the corresponding weight in the first identity recognition process. The weights of the features of the region.

在一種可能的實現方式中,可使用神經網路進行身份識別處理,其中,用於第一身份識別處理的神經網路與用於第二身份識別處理的神經網路不同。在示例中,在目標對象的面部區域被部分遮擋,則僅有未遮擋區域可用於身份識別的面部區域的情況下,在神經網路訓練的過程中,對未遮擋區域的特徵所占權重較大,例如,將神經網路的注意力機制集中於未遮擋區域的特徵,並利於未遮擋區域的特徵進行身份識別。In a possible implementation manner, a neural network may be used to perform the identity recognition process, wherein the neural network used for the first identity recognition process is different from the neural network used for the second identity recognition process. In the example, in the case that the face area of the target object is partially occluded, and only the unoccluded area can be used for the facial area of identification, in the process of neural network training, the weight of the features of the unoccluded area is relatively high. Large, for example, focuses the attention mechanism of the neural network on the features of the unoccluded regions, and facilitates the identification of the features of the unoccluded regions.

在一種可能的實現方式中,在目標對象的面部區域未受遮擋,則面部區域的特徵均可用於身份識別處理的情況下,神經網路可根據面部區域的全部特徵進行身份識別。In a possible implementation, in the case that the facial region of the target object is not blocked, and the features of the facial region can be used for identification processing, the neural network can perform identification based on all the features of the facial region.

例如,在目標對象佩戴口罩,則神經網路僅可獲取眼部和眉部的特徵(口鼻部特徵缺失)的情況下,神經網路可在訓練中增加眼部和眉部特徵的權重,以根據眼部和眉部特徵進行身份識別。在目標對象未佩戴口罩,神經網路可獲取面部區域的全部特徵的情況下,神經網路可根據面部區域的全部特徵進行身份識別。For example, when the target object wears a mask, the neural network can only obtain the features of the eyes and eyebrows (the features of the nose and mouth are missing), the neural network can increase the weight of the features of the eyes and eyebrows during training, for identification based on eye and brow features. In the case that the target object does not wear a mask, the neural network can obtain all the features of the face area, and the neural network can perform identification based on all the features of the face area.

例如,神經網路可確定眼部和眉部特徵與資料庫中的參考特徵(眼部和眉部的參考特徵)之間的相似度,並將相似度大於或等於相似度閾值的參考特徵所對應的身份資訊確定為目標對象的身份資訊。類似地,神經網路可確定面部特徵與資料庫中的參考特徵(面部參考特徵)之間的相似度,並將相似度大於或等於相似度閾值的參考特徵所對應的身份資訊確定為目標對象的身份資訊。For example, the neural network can determine the similarity between eye and brow features and reference features in the database (reference features for eyes and brows), and assigns the reference features whose similarity is greater than or equal to a similarity threshold. The corresponding identity information is determined as the identity information of the target object. Similarly, the neural network can determine the similarity between the facial features and the reference features in the database (face reference features), and determine the identity information corresponding to the reference features whose similarity is greater than or equal to the similarity threshold as the target object. identity information.

例如,在資料庫中不存在與目標對象的特徵相似度大於或等於相似度閾值的參考特徵(即,目標對象與資料庫中現有的身份資訊均不匹配)的情況下,可將目標對象的特徵儲存於資料庫中,並為目標對象添加身份標識(例如,身份編碼等)。本發明實施例對身份識別的方法不做限制。For example, if there is no reference feature in the database whose feature similarity with the target object is greater than or equal to the similarity threshold (that is, the target object does not match the existing identity information in the database), the Features are stored in the database and add an identity (eg, identity code, etc.) to the target object. The embodiments of the present invention do not limit the method for identification.

通過這種方式,可根據是否存在預設目標來選擇身份識別方法,可提升身份識別的準確度。In this way, the identification method can be selected according to whether there is a preset target, and the accuracy of identification can be improved.

在一種可能的實現方式中,還可識別目標對象的性別。在一種可能的實現方式中,男女的平均體溫有一定差異,因此,可根據性別,設定的預設溫度閾值不同,例如,女性平均體溫高於男性0.3℃,在溫度監測中,可根據性別來設置預設溫度閾值,例如男性37度,女性37.3度。所述方法還包括:獲取所述目標對象的性別資訊;根據所述性別資訊,確定所述預設溫度閾值。In one possible implementation, the gender of the target object may also be identified. In a possible implementation manner, there is a certain difference in the average body temperature of men and women. Therefore, the preset temperature thresholds can be set differently according to gender. For example, the average body temperature of women is 0.3°C higher than that of men. Set preset temperature thresholds, such as 37 degrees for men and 37.3 degrees for women. The method further includes: acquiring gender information of the target object; and determining the preset temperature threshold according to the gender information.

在一種可能的實現方式中,可根據目標對象的面部特徵判斷目標對象的性別資訊,例如,在目標對象未佩戴口罩的情況下,可根據目標對象的面部的所有特徵確定目標對象的性別,在目標對象佩戴口罩的情況下,則可根據目標對象的眼部和眉部特徵確定目標對象的性別。或者,在目標對象的面部特徵或者眼部和眉部特徵與資料庫中的參考特徵匹配的情況下,則可根據資料庫中參考特徵對應的身份資訊中記錄的性別來確定目標對象的性別。本發明實施例對性別的確定方法不做限制。In a possible implementation manner, the gender information of the target object can be determined according to the facial features of the target object. For example, when the target object does not wear a mask, the gender of the target object can be determined according to all the features of the target object's face. When the target object wears a mask, the gender of the target object can be determined according to the characteristics of the target object's eyes and eyebrows. Alternatively, when the facial features or the eye and eyebrow features of the target object match the reference features in the database, the gender of the target object can be determined according to the gender recorded in the identity information corresponding to the reference features in the database. The embodiments of the present invention do not limit the method for determining gender.

在一種可能的實現方式中,可根據性別資訊,確定預設溫度閾值,例如,女性平均體溫高於男性平均體溫,則針對女性的預設溫度閾值可高於針對男性的預設溫度閾值。本發明實施例對預設溫度閾值的確定方法不做限制。In a possible implementation manner, the preset temperature threshold may be determined according to gender information. For example, if the average body temperature of women is higher than the average body temperature of men, the preset temperature threshold for women may be higher than the preset temperature threshold for men. This embodiment of the present invention does not limit the method for determining the preset temperature threshold.

在一種可能的實現方式中,在步驟S13中,還可對紅外圖像中預設部位(例如,額頭)所在的第四區域(與可見光圖像中預設部位所在的第二區域對應)進行溫度檢測處理,確定目標對象的溫度資訊(例如,體溫)。例如,紅外圖像中圖元點的圖元值可表示色溫值,可利用色溫值來確定目標對象的額頭區域的溫度,本發明實施例對確定溫度資訊的方式不做限制。In a possible implementation manner, in step S13, the fourth area (corresponding to the second area where the preset part is located in the visible light image) in the infrared image where the preset part (for example, the forehead) is located may also be performed. The temperature detection process determines the temperature information (eg, body temperature) of the target object. For example, the primitive value of the primitive point in the infrared image can represent the color temperature value, and the color temperature value can be used to determine the temperature of the forehead area of the target object. The embodiment of the present invention does not limit the method of determining the temperature information.

在一種可能的實現方式中,在步驟S14中,在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。例如,在疫情期間,發熱屬於疑似症狀,可重點監控存在發生症狀的目標對象。經檢測,在目標對象的體溫大於或等於預設溫度閾值的情況下,則認為目標對象存在發熱症狀,可根據目標對象的身份資訊生成第一預警資訊,例如,可在顯示器上顯示目標對象的身份資訊以及體溫,以便重點監控該目標對象,又例如,可通過音響等設備發出第一預警資訊,以提示防疫人員重點關注目標對象,或將目標對象進行隔離等處理。本發明實施例對第一預警資訊的輸出方式不做限制。In a possible implementation manner, in step S14, when the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object. For example, during the epidemic, fever is a suspected symptom, and the target objects with symptoms can be monitored. After detection, when the body temperature of the target object is greater than or equal to the preset temperature threshold, it is considered that the target object has fever symptoms, and the first warning information can be generated according to the identity information of the target object. Identity information and body temperature, in order to focus on monitoring the target object, and for example, the first warning information can be issued through audio and other equipment to remind the epidemic prevention personnel to focus on the target object, or to isolate the target object. The embodiment of the present invention does not limit the output mode of the first warning information.

在一種可能的實現方式中,所述方法還包括:將所述第一區域或所述第三區域的位置資訊、所述目標對象的溫度資訊和所述目標對象的身份資訊,與所述可見光圖像和/或紅外圖像進行疊加處理,獲得檢測圖像。In a possible implementation manner, the method further includes: combining the position information of the first area or the third area, the temperature information of the target object and the identity information of the target object with the visible light The images and/or infrared images are superimposed to obtain detection images.

在一種可能的實現方式中,可通過顯示器對可見光圖像和/或紅外圖像進行顯示,並可在可見光圖像和/或紅外圖像中目標對象所在位置顯示目標對象的身份資訊和/或溫度資訊。例如,可將目標對象的身份資訊和/或溫度資訊疊加在可見光圖像中的目標對象所在的第一區域,即,在第一區域中顯示目標對象的身份資訊和/或溫度資訊。類似地,可在紅外圖像的第三區域中顯示目標對象的身份資訊和/或溫度資訊。本發明實施例對顯示方式不做限制。In a possible implementation manner, the visible light image and/or the infrared image may be displayed on the display, and the target object's identity information and/or the position of the target object in the visible light image and/or the infrared image may be displayed. temperature information. For example, the identity information and/or temperature information of the target object may be superimposed on the first area in the visible light image where the target object is located, that is, the identity information and/or temperature information of the target object is displayed in the first area. Similarly, the identity information and/or temperature information of the target object may be displayed in the third area of the infrared image. The embodiment of the present invention does not limit the display manner.

根據本發明的實施例的監測方法,可通過第一區域的尺寸確定活體檢測策略,並基於活體檢測策略進行活體檢測,可利用等溫分析提升在遠紅外圖像中的活體檢測精確度,並可根據是否存在預設目標來選擇身份識別方法,提升身份識別的準確度。進一步地,可對預設部位進行溫度檢測,可快速檢測圖像中目標對象的體溫,提高體溫檢測的效率,適用於人流量較大的場所。且可通過可見光圖像識別目標對象的身份資訊,有助於確定疑似病例的身份資訊,提高防疫效率。According to the monitoring method of the embodiment of the present invention, the living body detection strategy can be determined by the size of the first region, and the living body detection can be performed based on the living body detection strategy, and the isothermal analysis can be used to improve the living body detection accuracy in the far-infrared image, and The identification method can be selected according to whether there is a preset target to improve the accuracy of identification. Further, the temperature detection can be performed on a preset part, the body temperature of the target object in the image can be quickly detected, the efficiency of body temperature detection can be improved, and it is suitable for places with a large flow of people. In addition, the identity information of the target object can be identified through the visible light image, which is helpful to determine the identity information of the suspected case and improve the efficiency of epidemic prevention.

圖4A和圖4B示出根據本發明的實施例的監測方法的應用示意圖,如圖4A所示,所示監測方法可用於對監測區域實施監控的系統中,該監控系統可包括用於採集生命光線以獲得紅外圖像的紅外攝影頭1,用於獲取可見光圖像的可見光攝影頭2,處理器3(例如,系統級晶片SoC)。該系統還可包括在光照條件較差的環境中使用的補光單元4,用於顯示可見光圖像、紅外圖像和/或預警資訊的顯示器5,用於傳輸預警資訊、溫度資訊等資訊的通信單元6,用於輸出預警資訊的警告單元7,以及用於輸入指令的交互單元8等。4A and 4B show schematic diagrams of application of a monitoring method according to an embodiment of the present invention. As shown in FIG. 4A , the shown monitoring method can be used in a system for monitoring a monitoring area, and the monitoring system may include a system for collecting vital signs. Infrared camera 1 for acquiring infrared images, visible light camera 2 for acquiring visible light images, and processor 3 (eg, a system-on-a-chip SoC). The system may also include a supplementary light unit 4 for use in environments with poor lighting conditions, a display 5 for displaying visible light images, infrared images and/or warning information, and a communication for transmitting warning information, temperature information and other information Unit 6, warning unit 7 for outputting warning information, and interactive unit 8 for inputting instructions, etc.

在一種可能的實現方式中,如圖4B所示,紅外攝影頭1和可見光攝影頭2可拍攝監控區域的視頻幀,例如,可見光圖像AF(AF1-AF25)和紅外圖像BF(BF1-BF25)。並可對可見光圖像AF和紅外圖像BF進行位置糾偏,即,可根據可見光圖像AF中第一區域的位置確定紅外圖像BF中第三區域的位置。In a possible implementation, as shown in FIG. 4B , the infrared camera 1 and the visible light camera 2 can capture video frames of the monitoring area, for example, the visible light image AF (AF1-AF25) and the infrared image BF (BF1-AF25) BF25). The visible light image AF and the infrared image BF can be subjected to positional deviation correction, that is, the position of the third region in the infrared image BF can be determined according to the position of the first region in the visible light image AF.

在一種可能的實現方式中,處理器3可對可見光圖像AF進行圖像品質的檢測,例如,檢測可將光圖像的紋理、邊界的清晰度,並刪除圖像品質較差的可見光圖像以及對應的紅外圖像。進一步地,在可見光圖像中沒有目標對象的情況下,刪除該可見光圖像及對應的紅外圖像。例如,監控區域中沒有人,也可刪除該可見光圖像及對應的紅外圖像。In a possible implementation manner, the processor 3 can perform image quality detection on the visible light image AF, for example, the detection can improve the texture of the light image, the sharpness of the boundary, and delete the visible light image with poor image quality and corresponding infrared images. Further, when there is no target object in the visible light image, the visible light image and the corresponding infrared image are deleted. For example, if there is no one in the monitoring area, the visible light image and the corresponding infrared image can also be deleted.

在一種可能的實現方式中,處理器3可對可見光圖像AF進行位置檢測處理,獲得目標對象所在的第一區域,還可獲得目標對象的額頭所在的第二區域。根據第一區域和第二區域在可見光圖像中的位置,可確定目標對象在紅外圖像中所在的第三區域的位置以及目標對象的額頭在紅外圖像中所在的第四區域的位置。In a possible implementation manner, the processor 3 may perform position detection processing on the visible light image AF to obtain the first area where the target object is located, and also obtain the second area where the target object's forehead is located. According to the positions of the first area and the second area in the visible light image, the position of the third area where the target object is located in the infrared image and the location of the fourth area where the target object's forehead is located in the infrared image can be determined.

在一種可能的實現方式中,處理器3可根據第一區域的尺寸資訊來確定目標對象與攝影頭之間的距離,並基於距離來確定活體檢測策略。In a possible implementation manner, the processor 3 may determine the distance between the target object and the camera according to the size information of the first area, and determine the living body detection strategy based on the distance.

在一種可能的實現方式中,在目標對象的距離大於或等於第一距離閾值的情況下,將活體檢測策略確定為基於人體形態的活體檢測策略。可對紅外圖像中的第三區域進行形態檢測,獲得形態檢測分數。並對紅外圖像中面部區域進行等溫分析,獲得等溫分析分數。進一步地,可根據基於人體形態的活體檢測策略,為形態檢測分數分配較大的第一權重,為等溫分析分數分配較小的第二權重,加權求和後,可獲得活體檢測結果。In a possible implementation manner, when the distance of the target object is greater than or equal to the first distance threshold, the living body detection strategy is determined as a living body detection strategy based on human body shape. Morphological detection can be performed on the third area in the infrared image to obtain a morphological detection score. And perform isothermal analysis on the face area in the infrared image to obtain isothermal analysis scores. Further, according to the living body detection strategy based on human body shape, a larger first weight can be assigned to the shape detection score, and a smaller second weight can be assigned to the isothermal analysis score. After the weighted summation, the living body detection result can be obtained.

在一種可能的實現方式中,在目標對象的距離小於第一距離,且大於或等於第二距離閾值的情況下,將活體檢測策略確定為基於頭頸形態的活體檢測策略。可對紅外圖像中的第三區域進行形態檢測,獲得形態檢測分數。並對紅外圖像中面部區域進行等溫分析,獲得等溫分析分數。進一步地,可根據基於頭頸形態的活體檢測策略,為形態檢測分數分配和等溫分析分數分配相近的權重,加權求和後,可獲得活體檢測結果。In a possible implementation manner, when the distance of the target object is less than the first distance and greater than or equal to the second distance threshold, the living body detection strategy is determined as a living body detection strategy based on the shape of the head and neck. Morphological detection can be performed on the third area in the infrared image to obtain a morphological detection score. And perform isothermal analysis on the face area in the infrared image to obtain isothermal analysis scores. Further, according to the in vivo detection strategy based on head and neck morphology, similar weights can be assigned to the morphology detection score and the isothermal analysis score, and after the weighted summation, the in vivo detection result can be obtained.

在一種可能的實現方式中,在目標對象的距離小於第二距離閾值的情況下,將活體檢測策略確定為基於面部形態的活體檢測策略。可對紅外圖像中的第三區域進行形態檢測,獲得形態檢測分數。並對紅外圖像中面部區域進行等溫分析,獲得等溫分析分數。進一步地,可根據基於面部形態的活體檢測策略,為形態檢測分數分配較小的第一權重,為等溫分析分數分配較大的第二權重,加權求和後,可獲得活體檢測結果。In a possible implementation manner, when the distance of the target object is less than the second distance threshold, the living body detection strategy is determined as a facial morphology-based living body detection strategy. Morphological detection can be performed on the third area in the infrared image to obtain a morphological detection score. And perform isothermal analysis on the face area in the infrared image to obtain isothermal analysis scores. Further, according to the facial morphology-based living detection strategy, a smaller first weight can be assigned to the morphology detection score, and a larger second weight can be assigned to the isothermal analysis score. After the weighted summation, the living body detection result can be obtained.

在一種可能的實現方式中,處理器3可在可見光圖像的第一區域中檢測目標對象是否佩戴口罩,在目標對象未佩戴口罩的情況下,可生成第二預警資訊,並通過顯示器5顯示第二預警資訊,或者通過警告單元7播放第二預警資訊。In a possible implementation manner, the processor 3 can detect whether the target object wears a mask in the first area of the visible light image, and when the target object does not wear a mask, can generate second warning information and display it on the display 5 The second early warning information, or the second early warning information is played by the warning unit 7 .

在一種可能的實現方式中,處理器3可根據目標對象是否佩戴口罩,確定身份識別的方法,例如,在目標對象未佩戴口罩的情況下,可根據目標對象的所有面部特徵與資料庫中的參考特徵進行比對,確定目標對象的身份資訊。在目標對象佩戴口罩的情況下,可根據目標對象的眼部和眉部特徵與資料庫中的參考特徵進行比對,確定目標對象的身份資訊。進一步地,第二預警資訊還可包括目標對象的身份資訊,例如,可在顯示器5顯示XXX(姓名)未帶口罩等。In a possible implementation manner, the processor 3 may determine the identification method according to whether the target object wears a mask. The reference features are compared to determine the identity information of the target object. When the target object wears a mask, the identity information of the target object can be determined by comparing the eye and eyebrow features of the target object with the reference features in the database. Further, the second early warning information may also include the identity information of the target object, for example, it may be displayed on the display 5 that XXX (name) does not wear a mask, etc.

在一種可能的實現方式中,處理器3可識別目標對象的性別,例如,可根據目標對象的面部特徵識別目標對象的性別,或者根據目標對象的身份資訊獲取目標對象的性別。進一步地,可根據目標對象的性別,分別確定男性目標的預設溫度閾值和女性目標的預設溫度閾值。或者,還可通過交互單元8輸入預設溫度閾值,本發明實施例對預設溫度閾值的設定方式不做限制。In a possible implementation manner, the processor 3 can identify the gender of the target object, for example, can identify the gender of the target object according to the facial features of the target object, or obtain the gender of the target object according to the identity information of the target object. Further, the preset temperature threshold for male objects and the preset temperature threshold for female objects can be determined respectively according to the gender of the target object. Alternatively, the preset temperature threshold may also be input through the interaction unit 8, and the embodiment of the present invention does not limit the setting manner of the preset temperature threshold.

在一種可能的實現方式中,可對第四區域(即,紅外圖像中的額頭所在區域)進行溫度監測,獲得目標對象的體溫。在體溫超過預設溫度閾值的情況下,處理器3可生成第一預警資訊。並通過顯示器5顯示第一預警資訊,或通過警告單元7播放第一預警資訊。進一步地,可將發熱的目標對象的身份資訊、體溫和攝影頭的位置資訊(即,發熱的目標對象出現的位置)通過通信單元6傳輸至後臺資料庫或伺服器,便於對疑似病例的跟蹤以及對疑似病例的活動軌跡的確定。In a possible implementation manner, the temperature of the fourth area (ie, the area where the forehead is located in the infrared image) may be monitored to obtain the body temperature of the target object. When the body temperature exceeds the preset temperature threshold, the processor 3 may generate first warning information. And display the first warning information through the display 5 , or play the first warning information through the warning unit 7 . Further, the identity information, body temperature, and location information of the camera (that is, the location where the fever target appears) can be transmitted to the background database or server through the communication unit 6 to facilitate the tracking of suspected cases. And the determination of the activity trajectories of suspected cases.

在一種可能的實現方式中,可將目標對象的身份資訊和體溫疊加在可見光圖像中的第一區域,或紅外圖像中的第三區域,並在顯示器5上進行顯示,以直觀地觀測監控區域中各目標對象的溫度資訊及身份資訊,並可將疊加後的圖像進行儲存。In a possible implementation, the identity information and body temperature of the target object can be superimposed on the first area in the visible light image or the third area in the infrared image, and displayed on the display 5 for intuitive observation The temperature information and identity information of each target object in the monitoring area can be stored, and the superimposed images can be stored.

在一種可能的實現方式中,所述監測方法可使用可見光圖像和紅外圖像即可進行溫度監測,可減少攝影頭的硬體成本,還可降低資料處理壓力。並可監測各目標對象是否佩戴口罩。可用於衛生醫療場所的監控或防疫監控等領域中。本發明實施例對所述監測方法的應用領域不做限制。In a possible implementation manner, the monitoring method can use visible light images and infrared images to perform temperature monitoring, which can reduce the hardware cost of the camera and reduce the data processing pressure. It can also monitor whether each target object wears a mask. It can be used in fields such as monitoring of health care places or monitoring of epidemic prevention. The embodiments of the present invention do not limit the application field of the monitoring method.

圖5示出根據本發明的實施例的監測系統的方塊圖,如圖5所示,所述系統包括:紅外圖像獲取部分11、可見光圖像獲取部分12、處理部分13。FIG. 5 shows a block diagram of a monitoring system according to an embodiment of the present invention. As shown in FIG. 5 , the system includes: an infrared image acquisition part 11 , a visible light image acquisition part 12 , and a processing part 13 .

所述處理部分13被配置為: 對可見光圖像獲取部分12獲取的監測區域的可見光圖像進行目標區域識別,獲得所述可見光圖像中目標對象所在的第一區域以及所述目標對象的預設部位所在的第二區域; 根據所述第一區域的尺寸資訊,以及所述第一區域在紅外圖像獲取部分11獲取的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果; 在活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,並對所述第二區域在所述紅外圖像中對應的第四區域進行溫度檢測處理,獲得所述目標對象的溫度資訊; 在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。The processing section 13 is configured to: Perform target area identification on the visible light image of the monitoring area acquired by the visible light image acquisition part 12, and obtain the first area where the target object is located in the visible light image and the second area where the preset part of the target object is located; According to the size information of the first area, and the corresponding third area of the first area in the infrared image acquired by the infrared image acquisition part 11 , perform living body detection on the target object, and obtain a living body detection result; In the case that the living body detection result is a living body, perform identification processing on the first area to obtain the identity information of the target object, and perform an identification process on the fourth area corresponding to the second area in the infrared image. temperature detection processing to obtain temperature information of the target object; When the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object.

在一種可能的實現方式中,所述處理部分13可包括處理器(例如,圖4A中的處理器3),紅外圖像獲取部分11可包括紅外攝影頭(例如,圖4A中的紅外攝影頭1),可見光圖像獲取部分12可包括可見光攝影頭(例如,圖4A中的可見光攝影頭2)。In a possible implementation, the processing part 13 may include a processor (eg, the processor 3 in FIG. 4A ), and the infrared image acquisition part 11 may include an infrared camera (eg, the infrared camera in FIG. 4A ) 1), the visible light image acquisition part 12 may include a visible light camera (eg, the visible light camera 2 in FIG. 4A ).

在一種可能的實現方式中,所述處理部分進一步被配置為: 根據所述第一區域的尺寸資訊,確定所述目標對象與獲取所述可見光圖像的圖像獲取裝置之間的距離; 根據所述距離,確定活體檢測策略; 根據所述第一區域在可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置; 根據所述活體檢測策略,對紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果。In a possible implementation, the processing part is further configured to: determining the distance between the target object and the image acquisition device that acquires the visible light image according to the size information of the first area; According to the distance, determine the living body detection strategy; determining the position of the third region in the infrared image according to the position of the first region in the visible light image; According to the living body detection strategy, a living body detection process is performed on the third region in the infrared image to obtain the living body detection result.

在一種可能的實現方式中,所述處理部分進一步被配置為: 在所述距離大於或等於第一距離閾值的情況下,將所述活體檢測策略確定為基於人體形態的活體檢測策略;或者 在所述距離大於或等於第二距離閾值且小於所述第一距離閾值的情況下,將所述活體檢測策略確定為基於頭頸形態的活體檢測策略;或者 在所述距離小於所述第二距離閾值的情況下,將所述活體檢測策略確定為基於面部形態的活體檢測策略。In a possible implementation, the processing part is further configured to: In the case that the distance is greater than or equal to the first distance threshold, determine the living body detection strategy as a body shape-based living body detection strategy; or In the case that the distance is greater than or equal to the second distance threshold and less than the first distance threshold, determining the living body detection strategy as a head and neck morphology-based living body detection strategy; or In the case that the distance is smaller than the second distance threshold, the living body detection strategy is determined as a facial morphology-based living body detection strategy.

在一種可能的實現方式中,所述處理部分進一步被配置為: 根據所述活體檢測策略,對所述第三區域進行形態檢測處理,獲得形態檢測結果; 在所述形態檢測結果為活體形態的情況下,對所述第三區域中的面部區域進行等溫分析處理,獲得等溫分析結果; 根據所述活體檢測策略,確定形態檢測結果的第一權重和所述等溫分析結果的第二權重; 根據所述第一權重、所述第二權重、所述形態檢測結果和所述等溫分析結果,確定所述活體檢測結果。In a possible implementation, the processing part is further configured to: According to the living body detection strategy, perform shape detection processing on the third region to obtain a shape detection result; In the case that the shape detection result is a living body shape, performing isothermal analysis processing on the face region in the third region to obtain an isothermal analysis result; determining a first weight of the morphological detection result and a second weight of the isothermal analysis result according to the in vivo detection strategy; The living body detection result is determined according to the first weight, the second weight, the morphology detection result, and the isothermal analysis result.

在一種可能的實現方式中,所述處理部分還被配置為: 在活體檢測結果為活體的情況下,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,其中,所述預設目標包括對面部的部分區域進行遮擋的物品; 所述處理部分進一步被配置為: 在活體檢測結果為活體的情況下,根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊。In a possible implementation manner, the processing part is further configured to: In the case that the living body detection result is a living body, detecting whether the first area includes a preset target, and obtaining the first detection result, wherein the preset target includes an item that blocks a part of the face; The processing section is further configured to: In the case that the living body detection result is a living body, an identity recognition process is performed on the first area according to the first detection result, and the identity information of the target object is obtained.

在一種可能的實現方式中,所述處理部分進一步被配置為: 對所述第一區域中的面部區域進行檢測處理,確定所述面部區域的特徵缺失結果; 在所述特徵缺失結果為預設特徵缺失的情況下,檢測所述面部區域內是否包括預設目標,獲得所述第一檢測結果。In a possible implementation, the processing part is further configured to: Perform detection processing on the facial area in the first area, and determine the feature missing result of the facial area; In the case that the feature missing result is a preset feature missing, it is detected whether a preset target is included in the face region, and the first detection result is obtained.

在一種可能的實現方式中,所述處理部分進一步被配置為: 在所述第一檢測結果為不存在所述預設目標的情況下,對所述第一區域中的面部區域進行第一身份識別處理,獲得所述目標對象的身份資訊;或者 在所述第一檢測結果為存在所述預設目標的情況下,對所述第一區域中的面部區域進行第二身份識別處理,獲得所述目標對象的身份資訊,其中,所述第二身份識別處理中面部的未遮擋區域的特徵的權重大於第一身份識別處理中對應區域的特徵的權重。In a possible implementation, the processing part is further configured to: If the first detection result is that the preset target does not exist, perform a first identification process on the face area in the first area to obtain the identity information of the target object; or In the case where the first detection result is that the preset target exists, a second identity recognition process is performed on the face area in the first area to obtain the identity information of the target object, wherein the second The weights of the features of the unoccluded regions of the face in the identification process are greater than the weights of the features of the corresponding regions in the first identification process.

在一種可能的實現方式中,所述處理部分還被配置為: 將所述第一區域或所述第三區域的位置資訊、所述目標對象的溫度資訊和所述目標對象的身份資訊,與所述可見光圖像和/或紅外圖像進行疊加處理,獲得檢測圖像。In a possible implementation manner, the processing part is further configured to: Superimpose the position information of the first area or the third area, the temperature information of the target object and the identity information of the target object with the visible light image and/or infrared image to obtain detection image.

在一種可能的實現方式中,所述處理部分還被配置為: 獲取所述目標對象的性別資訊; 根據所述性別資訊,確定所述預設溫度閾值。In a possible implementation manner, the processing part is further configured to: obtain the gender information of the target object; The predetermined temperature threshold is determined according to the gender information.

在一種可能的實現方式中,所述處理部分還被配置為: 在所述第一檢測結果為不存在所述預設目標的情況下,生成第二預警資訊。In a possible implementation manner, the processing part is further configured to: When the first detection result is that the preset target does not exist, second warning information is generated.

可以理解,本發明實施例提及的上述各個方法實施例,在不違背原理邏輯的情況下,均可以彼此相互結合形成結合後的實施例,限於篇幅,本發明實施例不再贅述。It can be understood that the foregoing method embodiments mentioned in the embodiments of the present invention can be combined with each other to form a combined embodiment without violating the principle and logic.

此外,本發明實施例還提供了監測系統、電子設備、電腦可讀儲存介質、程式,上述均可用來實現本發明實施例提供的任一種監測方法,相應技術方案和描述和參見方法部分的相應記載,不再贅述。In addition, the embodiments of the present invention also provide monitoring systems, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any monitoring method provided by the embodiments of the present invention. record, without further elaboration.

本領域技術人員可以理解,在實施方式的上述方法中,各步驟的撰寫順序並不意味著嚴格的執行順序而對實施過程構成任何限定,各步驟的執行順序應當以其功能和可能的內在邏輯確定。Those skilled in the art can understand that in the above method of the embodiments, the writing order of each step does not mean a strict execution order but constitutes any limitation to the implementation process, and the execution order of each step should be based on its function and possible internal logic. Sure.

在一些實施例中,本發明實施例提供的裝置具有的功能或包含的部分可以被配置為執行上文方法實施例描述的方法,其實現可以參照上文方法實施例的描述,為了簡潔,這裡不再贅述。In some embodiments, the functions or included parts of the apparatus provided in the embodiments of the present invention may be configured to execute the methods described in the above method embodiments. For implementation, reference may be made to the above method embodiments. For brevity, here No longer.

本發明實施例還提出一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行的情況下實現上述方法。電腦可讀儲存介質可以是非易失性電腦可讀儲存介質。An embodiment of the present invention also provides a computer-readable storage medium, which stores computer program instructions, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

本發明實施例還提出一種電子設備,包括:處理器;被配置為儲存處理器可執行指令的記憶體;其中,所述處理器被配置為上述方法。An embodiment of the present invention further provides an electronic device, including: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to perform the above method.

本發明實施例還提供了一種電腦程式產品,包括電腦可讀代碼,當電腦可讀代碼在設備上運行時,設備中的處理器執行用於實現如上任一實施例提供的監測方法的指令。Embodiments of the present invention also provide a computer program product, including computer-readable codes. When the computer-readable codes are run on a device, a processor in the device executes instructions for implementing the monitoring method provided in any of the above embodiments.

本發明實施例還提供了另一種電腦程式產品,用於儲存電腦可讀指令,指令被執行時使得電腦執行上述任一實施例提供的監測方法的操作。Embodiments of the present invention further provide another computer program product for storing computer-readable instructions, and when the instructions are executed, the computer executes the operations of the monitoring method provided by any of the above embodiments.

電子設備可以被提供為終端、伺服器或其它形態的設備。The electronic device may be provided as a terminal, server or other form of device.

圖6是根據一示例性實施例示出的一種電子設備800的方塊圖。例如,電子設備800可以是行動電話,電腦,數位廣播終端,消息收發設備,遊戲控制台,平板設備,醫療設備,健身設備,個人數位助理等終端。FIG. 6 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

參照圖6,電子設備800可以包括以下一個或多個組件:處理組件802,記憶體804,電源組件806,多媒體組件808,音頻組件810,輸入/輸出(Input/Output,I/ O)的介面812,感測器組件814,以及通信組件816。6, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812 , sensor component 814 , and communication component 816 .

處理組件802通常控制電子設備800的整體操作,諸如與顯示,電話呼叫,資料通信,相機操作和記錄操作相關聯的操作。處理組件802可以包括一個或多個處理器820來執行指令,以完成上述的方法的全部或部分步驟。此外,處理組件802可以包括一個或多個子部分,便於處理組件802和其他組件之間的交互。例如,處理組件802可以包括多媒體子部分,以方便多媒體組件808和處理組件802之間的交互。The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more subsections that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia subsection to facilitate interaction between multimedia component 808 and processing component 802.

記憶體804被配置為儲存各種類型的資料以支援在電子設備800的操作。這些資料的示例包括用於在電子設備800上操作的任何應用程式或方法的指令,連絡人資料,電話簿資料,消息,圖片,視頻等。記憶體804可以由任何類型的易失性或非易失性存放裝置或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可擦除可程式設計唯讀記憶體(EEPROM),可擦除可程式設計唯讀記憶體(EPROM),可程式設計唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁片或光碟。The memory 804 is configured to store various types of data to support the operation of the electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or CD.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。Power supply assembly 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .

多媒體組件808包括在所述電子設備800和使用者之間的提供一個輸出介面的螢幕。在一些實施例中,螢幕可以包括液晶顯示器(Liquid Crystal Display,LCD)和觸摸面板(Touch panel,TP)。在螢幕包括觸摸面板的情況下,螢幕可以被實現為觸控式螢幕,以接收來自使用者的輸入信號。觸摸面板包括一個或多個觸摸感測器以感測觸摸、滑動和觸摸面板上的手勢。所述觸摸感測器可以不僅感測觸摸或滑動動作的邊界,而且還檢測與所述觸摸或滑動操作相關的持續時間和壓力。在一些實施例中,多媒體組件808包括一個前置攝影頭和/或後置攝影頭。當電子設備800處於操作模式,如拍攝模式或視訊模式的情況下,前置攝影頭和/或後置攝影頭可以接收外部的多媒體資料。每個前置攝影頭和後置攝影頭可以是一個固定的光學透鏡系統或具有焦距和光學變焦能力。Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). Where the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音頻組件810被配置為輸出和/或輸入音頻信號。例如,音頻組件810包括一個麥克風(microphone,MIC),當電子設備800處於操作模式,如呼叫模式、記錄模式和語音辨識模式的情況下,麥克風被配置為接收外部音頻信號。所接收的音頻信號可以被進一步儲存在記憶體804或經由通信組件816發送。在一些實施例中,音頻組件810還包括一個揚聲器,被配置為輸出音頻信號。Audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a calling mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker configured to output audio signals.

I/ O介面812為處理組件802和週邊介面部分之間提供介面,上述週邊介面部分可以是鍵盤,點擊輪,按鈕等。這些按鈕可包括但不限於:主頁按鈕、音量按鈕、啟動按鈕和鎖定按鈕。The I/O interface 812 provides an interface between the processing component 802 and peripheral interface portions, which may be keyboards, click wheels, buttons, and the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

感測器組件814包括一個或多個感測器,用於為電子設備800提供各個方面的狀態評估。例如,感測器組件814可以檢測到電子設備800的打開/關閉狀態,組件的相對定位,例如所述組件為電子設備800的顯示器和小鍵盤,感測器組件814還可以檢測電子設備800或電子設備800一個組件的位置改變,使用者與電子設備800接觸的存在或不存在,電子設備800方位或加速/減速和電子設備800的溫度變化。感測器組件814可以包括接近感測器,被配置用來在沒有任何的物理接觸的過程中檢測附近物體的存在。感測器組件814還可以包括光感測器,如(Complementary Metal Oxide Semiconductor,互補金屬氧化物半導體)或CCD(Charge-coupled Device,電荷耦合組件)圖像感測器,被配置為在成像應用中使用。在一些實施例中,該感測器組件814還可以包括加速度感測器,陀螺儀感測器,磁感測器,壓力感測器或溫度感測器。Sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 . For example, the sensor assembly 814 can detect the open/closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or Changes in the position of a component of the electronic device 800 , presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 814 may also include a light sensor, such as a Complementary Metal Oxide Semiconductor (Complementary Metal Oxide Semiconductor) or a CCD (Charge-coupled Device, Charge Coupled Device) image sensor, configured for imaging applications used in. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信組件816被配置為便於電子設備800和其他設備之間有線或無線方式的通信。電子設備800可以接入基於通信標準的無線網路,如Wi-Fi,2G(2-Generation wireless telephone technology,第二代移動通信技術)或3G(3-Generation wireless telephone technology,第三代移動通信技術),或它們的組合。在一個示例性實施例中,通信組件816經由廣播通道接收來自外部廣播管理系統的廣播信號或廣播相關資訊。在一個示例性實施例中,所述通信組件816還包括近場通信(Near Field Communication,NFC)部分,以促進短程通信。例如,在NFC部分可基於射頻識別(Radio Frequency Identification,RFID)技術,紅外資料協會(Infrared Data Association,IrDA)技術,超寬頻(Ultra Wide Band,UWB)技術,藍牙(Bluetooth,BT)技術和其他技術來實現。Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G (2-Generation wireless telephone technology, second generation mobile communication technology) or 3G (3-Generation wireless telephone technology, third generation mobile communication technology) technology), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a Near Field Communication (NFC) portion to facilitate short-range communication. For example, the NFC part can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (Bluetooth, BT) technology and other technology to achieve.

在示例性實施例中,電子設備800可以被一個或多個應用專用積體電路(Application Specific Integrated Circuit,ASIC)、數位訊號處理器(Digital Signal Processing,DSP)、數位信號處理設備(Digital signal processing device,DSPD)、可程式設計邏輯器件(programmable logic device,PLD)、現場可程式設計閘陣列(Field Programmable Gate Array,FPGA)、控制器、微控制器、微處理器或其他電子組件實現,用於執行上述方法。In an exemplary embodiment, the electronic device 800 may be implemented by one or more of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing (DSP), a Digital Signal Processing Device (Digital Signal Processing) device, DSPD), programmable logic device (PLD), field programmable gate array (Field Programmable Gate Array, FPGA), controller, microcontroller, microprocessor or other electronic components to achieve, with to execute the above method.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體804,上述電腦程式指令可由電子設備800的處理器820執行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions executable by the processor 820 of the electronic device 800 to accomplish the above method.

圖7是根據一示例性實施例示出的一種電子設備1900的方塊圖。例如,電子設備1900可以被提供為一伺服器。參照圖7,電子設備1900包括處理組件1922,其進一步包括一個或多個處理器,以及由記憶體1932所代表的記憶體資源,用於儲存可由處理組件1922的執行的指令,例如應用程式。記憶體1932中儲存的應用程式可以包括一個或一個以上的每一個對應於一組指令的模組。此外,處理組件1922被配置為執行指令,以執行上述方法。FIG. 7 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. 7, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions executable by the processing component 1922, such as applications. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.

電子設備1900還可以包括一個電源組件1926被配置為執行電子設備1900的電源管理,一個有線或無線網路介面1950被配置為將電子設備1900連接到網路,和一個輸入輸出(I/O)介面1958。電子設備1900可以操作基於儲存在記憶體1932的作業系統,例如Windows ServerTM,Mac OS XTM,UnixTM, LinuxTM,FreeBSDTM或類似。The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) Interface 1958. Electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體1932,上述電腦程式指令可由電子設備1900的處理組件1922執行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions executable by the processing component 1922 of the electronic device 1900 to accomplish the above method.

本發明實施例可以是系統、方法和/或電腦程式產品。電腦程式產品可以包括電腦可讀儲存介質,其上載有用於使處理器實現本發明實施例的各個方面的電腦可讀程式指令。Embodiments of the present invention may be systems, methods and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the embodiments of the present invention.

電腦可讀儲存介質可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存介質例如可以但不限於是電存放裝置、磁存放裝置、光存放裝置、電磁存放裝置、半導體存放裝置或者上述的任意合適的組合。電腦可讀儲存介質的例子(非窮舉的列表)包括:可擕式電腦盤、硬碟、隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read Only Memory,ROM)、可擦式可程式設計唯讀記憶體(Electrical Programmable Read Only Memory,EPROM或快閃記憶體)、靜態隨機存取記憶體(Static Random Access Memory,SRAM)、可擕式壓縮磁碟唯讀記憶體(Compact Disc Read-Only Memory,CD-ROM)、數位多功能盤(Digital Video Disc,DVD)、記憶棒、軟碟、機械編碼設備、例如其上儲存有指令的打孔卡或凹槽內凸起結構、以及上述的任意合適的組合。這裡所使用的電腦可讀儲存介質不被解釋為暫態信號本身,諸如無線電波或者其他自由傳播的電磁波、通過波導或其他傳輸媒介傳播的電磁波(例如,通過光纖電纜的光脈衝)、或者通過電線傳輸的電信號。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. Examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (Electrical Programmable Read Only Memory, EPROM or flash memory), static random access memory (Static Random Access Memory, SRAM), portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), Digital Video Disc (DVD), memory sticks, floppy disks, mechanically encoded devices, such as punch cards or recessed protrusions on which instructions are stored structure, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or Electrical signals carried by wires.

這裡所描述的電腦可讀程式指令可以從電腦可讀儲存介質下載到各個計算/處理設備,或者通過網路、例如網際網路、局域網、廣域網路和/或無線網下載到外部電腦或外部存放裝置。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換機、閘道電腦和/或邊緣伺服器。每個計算/處理設備中的網路介面卡或者網路介面從網路接收電腦可讀程式指令,並轉發該電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存介質中。The computer-readable program instructions described herein may be downloaded from computer-readable storage media to various computing/processing devices, or downloaded to external computers or external storage over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network device. Networks may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. A network interface card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage stored in each computing/processing device in the medium.

用於執行本發明實施例操作的電腦程式指令可以是彙編指令、指令集架構(Industry Standard Architecture,ISA)指令、機器指令、機器相關指令、微代碼、固件指令、狀態設置資料、或者以一種或多種程式設計語言的任意組合編寫的原始程式碼或目標代碼,所述程式設計語言包括對象導向的程式設計語言—諸如Smalltalk、C++等,以及常規的過程式程式設計語言—諸如“C”語言或類似的程式設計語言。電腦可讀程式指令可以完全地在使用者電腦上執行、部分地在使用者電腦上執行、作為一個獨立的套裝軟體執行、部分在使用者電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。在涉及遠端電腦的情形中,遠端電腦可以通過任意種類的網路—包括局域網(local area network,LAN)或廣域網路(Wide Area Network,WAN)—連接到使用者電腦,或者,可以連接到外部電腦(例如利用網際網路服務提供者來通過網際網路連接)。在一些實施例中,通過利用電腦可讀程式指令的狀態資訊來個性化定制電子電路,例如可程式設計邏輯電路、現場可程式設計閘陣列(FPGA)或可程式設計邏輯陣列(programmable logic array,PLA),該電子電路可以執行電腦可讀程式指令,從而實現本發明實施例的各個方面。The computer program instructions for carrying out the operations of the embodiments of the present invention may be assembly instructions, Industry Standard Architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or in one or Source or object code written in any combination of a variety of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or Similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely remotely. run on a client computer or server. In the case of a remote computer, the remote computer can be connected to the user computer via any kind of network—including a local area network (LAN) or a wide area network (WAN)—or, can be connected to to an external computer (eg using an Internet service provider to connect via the Internet). In some embodiments, electronic circuits are personalized by utilizing state information of computer readable program instructions, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays, PLA), the electronic circuit can execute computer-readable program instructions to implement various aspects of the embodiments of the present invention.

這裡參照根據本發明實施例的方法、裝置(系統)和電腦程式產品的流程圖和/或方塊圖描述了本發明實施例的各個方面。應當理解,流程圖和/或方塊圖的每個方塊以及流程圖和/或方塊圖中各方塊的組合,都可以由電腦可讀程式指令實現。Aspects of embodiments of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

這些電腦可讀程式指令可以提供給通用電腦、專用電腦或其它可程式設計資料處理裝置的處理器,從而生產出一種機器,使得這些指令在通過電腦或其它可程式設計資料處理裝置的處理器執行時,產生了實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的裝置。也可以把這些電腦可讀程式指令儲存在電腦可讀儲存介質中,這些指令使得電腦、可程式設計資料處理裝置和/或其他設備以特定方式工作,從而,儲存有指令的電腦可讀介質則包括一個製造品,其包括實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的各個方面的指令。These computer readable program instructions may be provided to the processor of a general purpose computer, special purpose computer or other programmable data processing device to produce a machine for execution of the instructions by the processor of the computer or other programmable data processing device When, means are created that implement the functions/acts specified in one or more of the blocks in the flowchart and/or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium, the instructions causing the computer, programmable data processing device and/or other equipment to operate in a particular manner, so that the computer readable medium storing the instructions Included is an article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

也可以把電腦可讀程式指令載入到電腦、其它可程式設計資料處理裝置、或其它設備上,使得在電腦、其它可程式設計資料處理裝置或其它設備上執行一系列操作步驟,以產生電腦實現的過程,從而使得在電腦、其它可程式設計資料處理裝置、或其它設備上執行的指令實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作。Computer readable program instructions can also be loaded into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to generate a computer Processes of implementation such that instructions executing on a computer, other programmable data processing apparatus, or other device implement the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

附圖中的流程圖和方塊圖顯示了根據本發明的多個實施例的系統、方法和電腦程式產品的可能實現的體系架構、功能和操作。在這點上,流程圖或方塊圖中的每個方塊可以代表一個模組、程式段或指令的一部分,所述模組、程式段或指令的一部分包含一個或多個用於實現規定的邏輯功能的可執行指令。在有些作為替換的實現中,方塊中所標注的功能也可以以不同於附圖中所標注的順序發生。例如,兩個連續的方塊實際上可以基本並行地執行,它們有時也可以按相反的循序執行,這依所涉及的功能而定。也要注意的是,方塊圖和/或流程圖中的每個方塊、以及方塊圖和/或流程圖中的方塊的組合,可以用執行規定的功能或動作的專用的基於硬體的系統來實現,或者可以用專用硬體與電腦指令的組合來實現。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions that contains one or more logic for implementing the specified logic Executable instructions for the function. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by dedicated hardware-based systems that perform the specified functions or actions. implementation, or may be implemented in a combination of special purpose hardware and computer instructions.

該電腦程式產品可以通過硬體、軟體或其結合的方式實現。在一個可選實施例中,所述電腦程式產品體現為電腦儲存介質,在另一個可選實施例中,電腦程式產品體現為軟體產品,例如軟體發展包(Software Development Kit,SDK)等等。The computer program product can be implemented in hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

以上已經描述了本發明的各實施例,上述說明是示例性的,並非窮盡性的,並且也不限於所披露的各實施例。在不偏離所說明的各實施例的範圍和精神的情況下,對於本技術領域的普通技術人員來說許多修改和變更都是顯而易見的。本文中所用術語的選擇,旨在最好地解釋各實施例的原理、實際應用或對市場中的技術改進,或者使本技術領域的其它普通技術人員能理解本文披露的各實施例。Various embodiments of the present invention have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

1:紅外攝影頭 2:可見光攝影頭 3:處理器 4:補光單元 5:顯示器 6:通信單元 7:警告單元 8:交互單元 11:紅外圖像獲取部分 12:可見光圖像獲取部分 13:處理部分 800:電子設備 802:處理組件 804:記憶體 806:電源組件 808:多媒體組件 810:音頻組件 812:輸入/輸出介面 814:感測器組件 816:通信組件 820:處理器 1900:電子設備 1922:處理組件 1926:電源組件 1932:記憶體 1950:網路介面 1958:輸入輸出介面 S11~S14:步驟1: Infrared camera 2: Visible light camera 3: Processor 4: fill light unit 5: Display 6: Communication unit 7: Warning unit 8: Interactive unit 11: Infrared image acquisition part 12: Visible light image acquisition part 13: Processing part 800: Electronics 802: Process component 804: memory 806: Power Components 808: Multimedia Components 810: Audio Components 812: Input/Output Interface 814: Sensor Assembly 816: Communication Components 820: Processor 1900: Electronic equipment 1922: Processing components 1926: Power Components 1932: Memory 1950: Web Interface 1958: Input and output interface S11~S14: Steps

此處的附圖被併入說明書中並構成本說明書的一部分,這些附圖示出了符合本發明實施例的實施例,並與說明書一起用於說明本發明實施例的技術方案。 圖1示出根據本發明實施例的圖像處理方法的流程圖; 圖2示出根據本發明實施例的活體檢測的示意圖; 圖3示出根據本發明的實施例的身份識別處理的示意圖; 圖4A和圖4B示出根據本發明的實施例的監測方法的應用示意圖; 圖5示出根據本發明的實施例的監測系統的方塊圖; 圖6示出根據本發明的實施例的電子設備的方塊圖; 圖7示出根據本發明的實施例的電子設備的方塊圖。The accompanying drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the embodiments of the present invention, and together with the description, serve to explain the technical solutions of the embodiments of the present invention. 1 shows a flowchart of an image processing method according to an embodiment of the present invention; FIG. 2 shows a schematic diagram of living body detection according to an embodiment of the present invention; FIG. 3 shows a schematic diagram of an identity recognition process according to an embodiment of the present invention; 4A and 4B show schematic diagrams of application of the monitoring method according to an embodiment of the present invention; Figure 5 shows a block diagram of a monitoring system according to an embodiment of the present invention; 6 shows a block diagram of an electronic device according to an embodiment of the present invention; 7 shows a block diagram of an electronic device according to an embodiment of the present invention.

S11~S14:步驟S11~S14: Steps

Claims (10)

一種監測方法,所述方法應用於電子設備,其中,所述方法包括:對監測區域的可見光圖像進行目標區域識別,獲得所述可見光圖像中目標對象所在的第一區域以及所述目標對象的預設部位所在的第二區域;其中,所述目標對象的預設部位至少包括所述目標對象的額頭;根據所述第一區域的尺寸資訊,確定所述目標對象與獲取所述可見光圖像的圖像獲取裝置之間的距離;在所述距離大於或等於第一距離閾值的情況下,確定活體檢測策略為基於人體形態的活體檢測策略;在所述距離大於或等於第二距離閾值且小於所述第一距離閾值的情況下,確定活體檢測策略為基於頭頸形態的活體檢測策略;在所述距離小於所述第二距離閾值的情況下,確定活體檢測策略確定為基於面部形態的活體檢測策略;根據所述活體檢測策略,以及所述第一區域在所述監測區域的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果;在所述活體檢測結果為活體的情況下,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,並對所述第二區域在所述紅外圖像中對應的第四區域進行溫度檢測處理,獲得所述目標對象的溫度資訊;在所述溫度資訊大於或等於預設溫度閾值的情況下,根據所述目標對象的身份資訊生成第一預警資訊。 A monitoring method, the method is applied to an electronic device, wherein the method comprises: performing target area identification on a visible light image of a monitoring area, and obtaining a first area where a target object is located in the visible light image and the target object The second area where the preset part of the target object is located; wherein, the preset part of the target object includes at least the forehead of the target object; according to the size information of the first area, the target object is determined and the visible light map is obtained. The distance between the image acquisition devices of the images; when the distance is greater than or equal to the first distance threshold, the living body detection strategy is determined to be a living body detection strategy based on human body shape; when the distance is greater than or equal to the second distance threshold value and less than the first distance threshold, determine that the living body detection strategy is a living body detection strategy based on head and neck morphology; when the distance is less than the second distance threshold, determine that the living body detection strategy is determined to be based on facial morphology. a living body detection strategy; according to the living body detection strategy and the third area corresponding to the first area in the infrared image of the monitoring area, perform living body detection on the target object, and obtain a living body detection result; In the case that the living body detection result is a living body, the identification processing is performed on the first area, the identity information of the target object is obtained, and the temperature of the fourth area corresponding to the second area in the infrared image is obtained. In the detection process, temperature information of the target object is obtained; in the case that the temperature information is greater than or equal to a preset temperature threshold, first warning information is generated according to the identity information of the target object. 根據請求項1所述的方法,其中,所述根據所述活體檢測策略,以及所述第一區域在所述監測區域的紅外圖像中對應的第三區域,對所述目標對象進行活體檢測,獲得活體檢測結果,包括:根據所述第一區域在所述可見光圖像中的位置,在所述紅外圖像中確定所述第三區域的位置;根據所述活體檢測策略,對所述紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果。 The method according to claim 1, wherein the target object is subjected to living body detection according to the living body detection strategy and a third area corresponding to the first area in the infrared image of the monitoring area , obtaining a living body detection result, comprising: determining the position of the third region in the infrared image according to the position of the first region in the visible light image; The third region in the infrared image is subjected to living body detection processing to obtain the living body detection result. 根據請求項2所述的方法,其中,所述根據所述活體檢測策略,對所述紅外圖像中的所述第三區域進行活體檢測處理,獲得所述活體檢測結果,包括:根據所述活體檢測策略,對所述第三區域進行形態檢測處理,獲得形態檢測結果;在所述形態檢測結果為活體形態的情況下,對所述第三區域中的面部區域進行等溫分析處理,獲得等溫分析結果;根據所述活體檢測策略,確定所述形態檢測結果的第一權重和所述等溫分析結果的第二權重;根據所述第一權重、所述第二權重、所述形態檢測結果和所述等溫分析結果,確定所述活體檢測結果。 The method according to claim 2, wherein, according to the living body detection strategy, performing a living body detection process on the third region in the infrared image to obtain the living body detection result comprises: according to the The living body detection strategy is to perform morphological detection processing on the third area to obtain a morphological detection result; if the morphological detection result is a living body form, perform isothermal analysis processing on the face area in the third area to obtain isothermal analysis result; according to the living detection strategy, determine the first weight of the morphology detection result and the second weight of the isothermal analysis result; according to the first weight, the second weight, the morphology The detection result and the isothermal analysis result determine the in vivo detection result. 根據請求項1所述的方法,還包括:在所述活體檢測結果為活體的情況下,檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,其中,所述預設目標包括對面部的部分區域進行遮擋的物品; 所述對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,包括:根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊。 The method according to claim 1, further comprising: in the case that the living body detection result is a living body, detecting whether a preset target is included in the first area, and obtaining the first detection result, wherein the preset target is obtained. Set the target to include items that occlude part of the face; The performing identity recognition processing on the first area to obtain the identity information of the target object includes: performing identity recognition processing on the first area according to the first detection result to obtain the identity of the target object News. 根據請求項4所述的方法,其中,所述檢測所述第一區域內是否包括預設目標,獲得所述第一檢測結果,包括:對所述第一區域中的面部區域進行檢測處理,確定所述面部區域的特徵缺失結果;在所述特徵缺失結果為預設特徵缺失的情況下,檢測所述面部區域內是否包括所述預設目標,獲得所述第一檢測結果。 The method according to claim 4, wherein the detecting whether a preset target is included in the first area and obtaining the first detection result includes: performing detection processing on the face area in the first area, Determine a feature missing result of the facial region; in the case that the feature missing result is a preset feature missing, detect whether the preset target is included in the facial region, and obtain the first detection result. 根據請求項4所述的方法,其中,所述根據所述第一檢測結果,對所述第一區域進行身份識別處理,獲得所述目標對象的身份資訊,包括以下中的一種:在所述第一檢測結果為不存在所述預設目標的情況下,對所述第一區域中的面部區域進行第一身份識別處理,獲得所述目標對象的身份資訊;在所述第一檢測結果為存在所述預設目標的情況下,對所述第一區域中的面部區域進行第二身份識別處理,獲得所述目標對象的身份資訊,其中,所述第二身份識別處理中面部的未遮擋區域的特徵的權重大於第一身份識別處理中對應區域的特徵的權重。 The method according to claim 4, wherein the performing identification processing on the first area according to the first detection result to obtain the identity information of the target object includes one of the following: When the first detection result is that the preset target does not exist, perform a first identity recognition process on the face area in the first area to obtain the identity information of the target object; when the first detection result is In the presence of the preset target, a second identity recognition process is performed on the face area in the first area to obtain the identity information of the target object, wherein the face is not occluded in the second identity recognition process The weight of the feature of the region is greater than the weight of the feature of the corresponding region in the first identification process. 根據請求項4所述的方法,還包括: 在所述第一檢測結果為不存在所述預設目標的情況下,生成第二預警資訊。 The method according to claim 4, further comprising: When the first detection result is that the preset target does not exist, second warning information is generated. 根據請求項1至7任一項所述的方法,還包括:將所述第一區域或所述第三區域的位置資訊、所述目標對象的溫度資訊和所述目標對象的身份資訊,與所述可見光圖像和/或所述紅外圖像進行疊加處理,獲得檢測圖像。 The method according to any one of claims 1 to 7, further comprising: combining the location information of the first area or the third area, the temperature information of the target object and the identity information of the target object with The visible light image and/or the infrared image are superimposed to obtain a detection image. 一種電子設備,包括:處理器;被配置為儲存處理器可執行指令的記憶體;其中,所述處理器被配置為:執行請求項1至8中任意一項所述的方法。 An electronic device, comprising: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to: execute the method described in any one of request items 1 to 8. 一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現請求項1至8中任意一項所述的方法。A computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the method described in any one of claim 1 to 8.
TW110100321A 2020-03-13 2021-01-05 Monitoring method, electronic equipment and storage medium TWI768641B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010177537.0 2020-03-13
CN202010177537.0A CN111414831B (en) 2020-03-13 2020-03-13 Monitoring method and system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
TW202134940A TW202134940A (en) 2021-09-16
TWI768641B true TWI768641B (en) 2022-06-21

Family

ID=71493042

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110100321A TWI768641B (en) 2020-03-13 2021-01-05 Monitoring method, electronic equipment and storage medium

Country Status (5)

Country Link
JP (1) JP2022526207A (en)
CN (1) CN111414831B (en)
SG (1) SG11202106842PA (en)
TW (1) TWI768641B (en)
WO (1) WO2021179624A1 (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414831B (en) * 2020-03-13 2022-08-12 深圳市商汤科技有限公司 Monitoring method and system, electronic device and storage medium
CN112057074A (en) * 2020-07-21 2020-12-11 北京迈格威科技有限公司 Respiration rate measuring method, respiration rate measuring device, electronic equipment and computer storage medium
CN111985377A (en) * 2020-08-13 2020-11-24 深圳市商汤科技有限公司 Temperature measurement method and device, electronic equipment and storage medium
CN112131976B (en) * 2020-09-09 2022-09-16 厦门市美亚柏科信息股份有限公司 Self-adaptive portrait temperature matching and mask recognition method and device
CN112215113A (en) * 2020-09-30 2021-01-12 张成林 Face recognition method and device
CN112232186B (en) * 2020-10-14 2024-02-27 盈合(深圳)机器人与自动化科技有限公司 Epidemic prevention monitoring method and system
CN114445869A (en) * 2020-10-21 2022-05-06 中企网络通信技术有限公司 Temperature monitoring system and related operations
CN112287798A (en) * 2020-10-23 2021-01-29 深圳市商汤科技有限公司 Temperature measurement method and device, electronic equipment and storage medium
CN112525355A (en) * 2020-12-17 2021-03-19 杭州海康威视数字技术股份有限公司 Image processing method, device and equipment
CN112750278A (en) * 2021-01-18 2021-05-04 上海燊义环保科技有限公司 Full-intelligent network nursing system
CN112883856B (en) * 2021-02-05 2024-03-29 浙江华感科技有限公司 Monitoring method, monitoring device, electronic equipment and storage medium
CN113158877A (en) * 2021-04-16 2021-07-23 上海云从企业发展有限公司 Imaging deviation analysis and biopsy method, imaging deviation analysis and biopsy device, and computer storage medium
CN113496564A (en) * 2021-06-02 2021-10-12 山西三友和智慧信息技术股份有限公司 Park artificial intelligence management and control system
CN113420629B (en) * 2021-06-17 2023-04-28 浙江大华技术股份有限公司 Image processing method, device, equipment and medium
CN113420667B (en) * 2021-06-23 2022-08-02 工银科技有限公司 Face living body detection method, device, equipment and medium
CN113432720A (en) * 2021-06-25 2021-09-24 深圳市迈斯泰克电子有限公司 Temperature detection method and device based on human body recognition and temperature detection instrument
CN113687370A (en) * 2021-08-05 2021-11-23 上海炬佑智能科技有限公司 Detection method, device, electronic device and storage medium
CN113989695B (en) * 2021-09-18 2022-05-20 北京远度互联科技有限公司 Target tracking method and device, electronic equipment and storage medium
CN114166358B (en) * 2021-11-19 2024-04-16 苏州超行星创业投资有限公司 Robot inspection method, system, equipment and storage medium for epidemic prevention inspection
CN114427915A (en) * 2022-01-21 2022-05-03 深圳市商汤科技有限公司 Temperature control method, temperature control device, storage medium and electronic equipment
CN114742974A (en) * 2022-04-26 2022-07-12 北京市商汤科技开发有限公司 Player determination method and device, electronic equipment and storage medium
CN114894337B (en) * 2022-07-11 2022-09-27 深圳市大树人工智能科技有限公司 Temperature measurement method and device for outdoor face recognition
CN115471984B (en) * 2022-07-29 2023-09-15 青岛海尔科技有限公司 Alarm event execution method and device, storage medium and electronic device
CN116849613B (en) * 2023-07-12 2024-07-26 北京鹰之眼智能健康科技有限公司 A trigeminal nerve function status monitoring system
CN116628560A (en) * 2023-07-24 2023-08-22 四川互慧软件有限公司 Method and device for identifying snake damage case data based on clustering algorithm and electronic equipment
CN116863645A (en) * 2023-07-25 2023-10-10 中国第一汽车股份有限公司 Method, device and equipment for reminding personnel forgetting in vehicle and storage medium
CN117297550B (en) * 2023-10-30 2024-05-03 北京鹰之眼智能健康科技有限公司 Information Processing System
CN120107766A (en) * 2025-02-27 2025-06-06 亨斯迈(杭州)电力技术有限公司 A method and system for detecting environment of power distribution room

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101793562A (en) * 2010-01-29 2010-08-04 中山大学 Face detection and tracking algorithm of infrared thermal image sequence
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN102855496A (en) * 2012-08-24 2013-01-02 苏州大学 Method and system for authenticating shielded face
CN107595254A (en) * 2017-10-17 2018-01-19 黄晶 A kind of infrared ray health monitor method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005100193A (en) * 2003-09-26 2005-04-14 King Tsushin Kogyo Kk Invasion monitoring device
JP5339476B2 (en) * 2011-05-09 2013-11-13 九州日本電気ソフトウェア株式会社 Image processing system, fever tracking method, image processing apparatus, control method thereof, and control program
CN105912908A (en) * 2016-04-14 2016-08-31 苏州优化智能科技有限公司 Infrared-based real person living body identity verification method
CN106372601B (en) * 2016-08-31 2020-12-22 上海依图信息技术有限公司 Living body detection method and device based on infrared visible binocular images
US9693695B1 (en) * 2016-09-23 2017-07-04 International Business Machines Corporation Detecting oral temperature using thermal camera
CN108288028A (en) * 2017-12-29 2018-07-17 佛山市幻云科技有限公司 Campus fever monitoring method, device and server
CN108710841B (en) * 2018-05-11 2021-06-15 杭州软库科技有限公司 Human face living body detection device and method based on MEMs infrared array sensor
CN110647955A (en) * 2018-06-26 2020-01-03 义隆电子股份有限公司 Authentication method
CN110411570B (en) * 2019-06-28 2020-08-28 武汉高德智感科技有限公司 Infrared human body temperature screening method based on human body detection and human body tracking technology
CN111414831B (en) * 2020-03-13 2022-08-12 深圳市商汤科技有限公司 Monitoring method and system, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101793562A (en) * 2010-01-29 2010-08-04 中山大学 Face detection and tracking algorithm of infrared thermal image sequence
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN102855496A (en) * 2012-08-24 2013-01-02 苏州大学 Method and system for authenticating shielded face
CN107595254A (en) * 2017-10-17 2018-01-19 黄晶 A kind of infrared ray health monitor method and system

Also Published As

Publication number Publication date
JP2022526207A (en) 2022-05-24
CN111414831B (en) 2022-08-12
TW202134940A (en) 2021-09-16
CN111414831A (en) 2020-07-14
SG11202106842PA (en) 2021-10-28
WO2021179624A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
TWI768641B (en) Monitoring method, electronic equipment and storage medium
CN109040824B (en) Video processing method and device, electronic equipment and readable storage medium
CN109376592B (en) Living body detection method, living body detection device, and computer-readable storage medium
JP7295936B2 (en) Motion recognition method, electronic device and storage medium
JP6550460B2 (en) System and method for identifying eye signals, and continuous biometric authentication
KR102296396B1 (en) Apparatus and method for improving accuracy of contactless thermometer module
US9600688B2 (en) Protecting display of potentially sensitive information
US20170249500A1 (en) Identification and de-identification within a video sequence
CN109086726A (en) A kind of topography's recognition methods and system based on AR intelligent glasses
EP2991027B1 (en) Image processing program, image processing method and information terminal
CN103927250B (en) A method for detecting user posture of a terminal device
WO2020020022A1 (en) Method for visual recognition and system thereof
KR101754152B1 (en) Thermal Patient Monitering System by Using Multiple Band Camera and Method thereof
WO2017000491A1 (en) Iris image acquisition method and apparatus, and iris recognition device
JP2019047234A (en) Information processing device, information processing method, and program
CN111724361B (en) Method and device for displaying focus in real time, electronic equipment and storage medium
CN111588354A (en) Body temperature detection method, body temperature detection device and storage medium
CN112784655A (en) Living body detection method and device based on gazing information and detection equipment
CN114740966A (en) Multimodal image display control method, system and computer equipment
HK40026866A (en) Monitoring nethod and system, electronic equipment and storage medium
WO2023083279A1 (en) Photographing method and apparatus
CN107657235A (en) Recognition methods and device based on augmented reality
JP2012186821A (en) Face image processing device, face image processing method, electronic still camera, digital image processing device and digital image processing method
CN113066084A (en) Physical condition detection method and device, electronic equipment and storage medium
CN115766927B (en) Polygraph method, device, mobile terminal and storage medium