TWI777689B - Method of object identification and temperature measurement - Google Patents

Method of object identification and temperature measurement Download PDF

Info

Publication number
TWI777689B
TWI777689B TW110127364A TW110127364A TWI777689B TW I777689 B TWI777689 B TW I777689B TW 110127364 A TW110127364 A TW 110127364A TW 110127364 A TW110127364 A TW 110127364A TW I777689 B TWI777689 B TW I777689B
Authority
TW
Taiwan
Prior art keywords
image
identification
pixel
face
recognition
Prior art date
Application number
TW110127364A
Other languages
Chinese (zh)
Other versions
TW202305653A (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 國立臺北科技大學
Priority to TW110127364A priority Critical patent/TWI777689B/en
Application granted granted Critical
Publication of TWI777689B publication Critical patent/TWI777689B/en
Publication of TW202305653A publication Critical patent/TW202305653A/en

Links

Images

Landscapes

  • Radiation Pyrometers (AREA)
  • Crystals, And After-Treatments Of Crystals (AREA)

Abstract

The present invention is a method of object identification and temperature measurement, comprising the following steps: receiving the original image transmitted by the imaging device, converting the original image into a grayscale image, performing blur processing on the grayscale image into blurred image, extracting the object from the blurred image into an object image, performing binarization processing on the object image to form a binarized image, performing expansion and erosion processing on the binarized image to form a recognition image, using a machine learning and training recognition model extracts the characteristic area to be selected in the recognition image, capturing the contour of the characteristic area, setting a contour frame around the contour of the characteristic area corresponding to the original image, detecting the object by a temperature sensor, making the sensing result of the temperature sensor around the contour frame of the original image to form a temperature sensing image.

Description

物件辨識暨體溫量測方法Object identification and body temperature measurement method

本發明係有關於物件辨識的方法,尤指一種物件辨識暨其體溫測方法。The present invention relates to a method for object identification, in particular to a method for object identification and body temperature measurement.

近期受到新冠肺炎疫情的影響,人們出入捷運車站、百貨公司、辦公大樓、超市、便利商店等公共場所,都需要量測體溫,若有人體溫超過疫情警戒溫度,將會禁止他進入公共場所,以確保或至少減少可能染疫的人員進入公共場所。Affected by the new crown pneumonia epidemic recently, people need to measure their body temperature when entering and leaving public places such as MRT stations, department stores, office buildings, supermarkets, and convenience stores. In order to ensure or at least reduce the access of people who may be infected to public places.

一般而言,在公共場所量測進出人員的體溫之方法,通常是規劃指定進出入線,並且在入口以下幾種方式量測人員的體溫,其一在人員進出較少的地點,較常是以指派專人在入口處手持額溫量測工具,針對進出的人員逐一量測體溫,其二也是人員進出較少的地點,在入口出擺設立式測溫機,由進入公共場所的人員自主地前往立式測溫機的擺設位置前,將額頭、手掌或者手背…等其中之一個人體體表靠近立式測溫機的紅外線感測器前,即可完成體溫量測,其三,通常是使用在較多人進出的公共場所,同樣也是擺設在入口處,使用的設備通常是紅外線熱顯像人臉辨識儀器,顧名思義紅外線熱顯像人臉辨識儀器,就是當人們經過偵測區域時,它會偵測出每個經過偵測區域的所有人員的人臉位置,同時會自動進行溫度的量測,且會將量測到的溫度標示在人臉的周圍,也是目前較佳且較有效率可以同時量測多人體溫的方法。Generally speaking, the method of measuring the body temperature of people entering and exiting in public places is usually to plan a designated entry and exit line, and measure the body temperature of people in the following ways at the entrance. Assign a special person to hold a forehead temperature measuring tool at the entrance to measure the body temperature of the people entering and exiting one by one. The second is also a place where there are few people entering and leaving. A temperature measuring machine is set up at the entrance and exit, and those who enter the public place go to the public place autonomously. Before the vertical temperature measuring machine is placed, place one of the human body surface, such as the forehead, palm or back of the hand, before the infrared sensor of the vertical temperature measuring machine to complete the temperature measurement. In public places where many people come and go, it is also placed at the entrance. The equipment used is usually an infrared thermal imaging face recognition device. It will detect the face position of all people passing through the detection area, and will automatically measure the temperature, and will mark the measured temperature around the face, which is currently the best and more efficient. A method that can measure the temperature of multiple people at the same time.

但是紅外線熱顯像人臉辨識儀器的售價高,其原因主要在於紅外線熱顯像的部分價格高,再加上需要辨識物件的計算能力需要較高,而造成價格居高不下,另外,大部分紅外線熱顯像人臉辨識儀器只適用辨識人臉,並無法作為辨識其他物件使用,而且大部分的紅外線熱顯像人臉辨識儀器也無法搭配其他設備使用,而且也只能在固定的位置上使用,這些都侷限了溫度偵測的應用領域及便利性。However, the price of infrared thermal imaging face recognition instruments is high. Some infrared thermal imaging face recognition instruments are only suitable for recognizing faces and cannot be used to identify other objects, and most infrared thermal imaging face recognition instruments cannot be used with other devices, and can only be used in a fixed position. However, these limit the application field and convenience of temperature detection.

此外,也有一些廠商研發出一些不同的溫度感測方案,例如:中國發明專利第CN108760053A號公開案(發明名稱:一種額溫檢測方法和裝置),其摘要提到「在識別到人臉時,獲取所述人臉中額頭區域輻射出的紅外能量資料;然後,基於所述紅外能量資料確定使用者的額溫。本申請通過將紅外測溫功能集成到移動終端上,以在使用者進行人臉識別解鎖,或者,其他可捕捉到人臉的場景中,採集額頭區域輻射的紅外能量資料,進而計算出使用者的額溫。與現有技術中需要額外的紅外測溫設備進行測溫的方案相比,具有方便快捷的優點。」,但是專利前案只能適用在個人使用移動終端(例如:智慧型行動電話),並不適用於公共場所需要同時針對多人進行溫度監控的情境。In addition, some manufacturers have developed some different temperature sensing solutions, such as: Chinese Invention Patent Publication No. CN108760053A (name of invention: a forehead temperature detection method and device), the abstract mentions that "when a face is recognized, Obtain the infrared energy data radiated from the forehead area in the face; then, determine the user's forehead temperature based on the infrared energy data. The present application integrates the infrared temperature measurement function into the mobile terminal, so that the user can perform human Face recognition unlocking, or, in other scenes where faces can be captured, the infrared energy data radiated from the forehead area is collected, and then the user's forehead temperature is calculated. The solution that requires additional infrared temperature measurement equipment to measure temperature in the prior art Compared with this, it has the advantages of convenience and speed.” However, the previous patent case can only be applied to personal use of mobile terminals (such as smart mobile phones), and is not applicable to the situation where temperature monitoring for multiple people is required at the same time in public places.

又例如發明專利第WO2020024553A1號公開案(發明名稱:人體健康檢測系統),其摘要提到「一種人體健康檢測系統,包括:人臉檢測模組(1),用於檢測待檢區域內被檢測者的人臉圖像;溫度感應模組(2),用於檢測被檢測者的人臉溫度;特徵提取模組(3),用於提取人臉圖像中所包含的人臉特徵;身份確認模組(4),用於確定被檢測者的身份資訊;判斷模組(5),用於判斷人臉溫度是否超出正常體溫範圍,並在人臉溫度超出正常體溫範圍時,觸發中央處理模組(6);中央處理模組(6),用於發送回饋資料至被檢測者的身份資訊對應的資訊異常回饋端,在被檢測者的體溫異常時,及時通知相關人員,以使被檢測者能及時得到醫治。其人臉辨識及溫度感測都是既有技術,因此可以推知此專利前案的技術改良重點在於當量測到人體體溫異常時,可以即時通報,但是並未說明如何辨識人臉及溫度感測的具體技術特徵。Another example is Invention Patent Publication No. WO2020024553A1 (name of invention: human health detection system), the abstract of which mentions "a human health detection system, including: a face detection module (1), used to detect the detected area in the to-be-detected area. The temperature sensing module (2) is used to detect the face temperature of the detected person; the feature extraction module (3) is used to extract the facial features contained in the face image; the identity The confirmation module (4) is used to determine the identity information of the tested person; the judgment module (5) is used to determine whether the face temperature exceeds the normal body temperature range, and when the face temperature exceeds the normal body temperature range, the central processing is triggered The module (6); the central processing module (6) is used to send feedback data to the abnormal information feedback terminal corresponding to the identity information of the tested person. Detectors can be treated in time. Face recognition and temperature sensing are both existing technologies, so it can be inferred that the technical improvement of the previous patent case is that when abnormal body temperature is detected, it can be notified immediately, but it is not specified. How to identify the specific technical features of face and temperature sensing.

因此,如果能夠有一種不需要紅外線熱顯像人臉辨識儀器,而且能提供具體明確而且簡單可以快速辨識物件的方式,而不是只能辨識人臉,並且可以適用在靜態(將檢測儀器擺放在固定位置進行辨識及量測體溫)或動態(檢測儀器在移動狀態可以進行辨識及量測體溫)的使用環境,將是一件亟待解決的問題。Therefore, if there is a face recognition device that does not require infrared thermal imaging, and can provide a specific and simple way to quickly recognize objects, instead of only recognizing faces, and it can be applied to static (place the detection device) Identifying and measuring body temperature in a fixed position) or dynamic (detecting instruments can identify and measure body temperature in a moving state) use environment will be an urgent problem to be solved.

有鑑於先前技術的問題,本發明之一目的,係提供物件的辨識方法,進一步是可以辨識物件的輪廓,並且在辨識出輪廓之時,可以對物件的表面進行偵測,確定物件的溫度,甚至可以追蹤物件,達到物件辨識及量測體溫的目的,而且此方法可以很容易地移植到各種具有計算能力的設備使用。In view of the problems of the prior art, an object of the present invention is to provide a method for identifying objects, further identifying the contour of the object, and when the contour is identified, the surface of the object can be detected to determine the temperature of the object, It can even track objects to achieve object recognition and body temperature measurement, and this method can be easily transplanted to various computing-capable devices.

根據本發明之一目的,係提供一種物件辨識暨體溫量測方法,包括下列步驟,接收影像拍攝設備所傳來的原始圖像,將原始圖像轉換成灰階圖像,將灰階圖像進行模糊處理轉換成模糊圖像,對模糊圖像提取物件成為物件圖像,對物件圖像進行二值化處理形成二值化圖像,再對二值化圖像進行膨脹與侵蝕處理形成辨識圖像,利用機器學習訓練的辨識模型提取辨識圖像所要選取的特徵區域,再捕捉特徵區域的輪廓,並在原始圖像對應的特徵區域的輪廓周圍設置輪廓框,溫度感測器對物件進行感測,將溫度感測器的感測結果標記在原始圖像的輪廓框周圍產生溫度感測圖像。According to an object of the present invention, it is to provide a method for object recognition and body temperature measurement, which includes the following steps: receiving an original image transmitted by an image capturing device, converting the original image into a grayscale image, and converting the grayscale image into a grayscale image. Convert the blurred image into a blurred image, extract the object from the blurred image to become an object image, perform binarization processing on the object image to form a binarized image, and then perform dilation and erosion processing on the binarized image to form an identification Image, use the recognition model trained by machine learning to extract the feature area to be selected for identifying the image, then capture the contour of the feature area, and set a contour frame around the contour of the feature area corresponding to the original image, and the temperature sensor will detect the object. Sensing, marking the sensing result of the temperature sensor around the outline frame of the original image to generate a temperature sensing image.

其中,依照前述步驟循環產生的複數個溫度感測圖像係轉換成網路傳輸圖像,利用網路傳輸協議傳送到遠端網頁裝置進行同步顯示。Wherein, the plurality of temperature sensing images cyclically generated according to the foregoing steps are converted into network transmission images, and transmitted to the remote web device for synchronous display by using the network transmission protocol.

其中,影像拍攝設備係可為網路攝影機或智慧型行動裝置所設置的攝影模組,而原始圖像係為彩色影像。又模糊處理係為高斯模糊處理。Wherein, the image capturing device can be a camera module set by a network camera or a smart mobile device, and the original image is a color image. And the fuzzy processing is Gaussian fuzzy processing.

其中,物件係可為人,特徵區域係可為人臉。Wherein, the object can be a person, and the feature area can be a human face.

其中,將模糊圖像提取物件的步驟,包括當前的模糊圖像的像素陣列與前一個模糊圖像的像素陣列相減得到一像素變化陣列差值,比較像素變化陣列差值是否大於移動信心值,當像素變化陣列差值大於移動信心值表示當前的模糊圖像的像素陣列中有發生變化的部分為物件,即可將當前的模糊圖像的像素陣列中有發生變化的部分提取作為物件圖像,否則將當前的模糊圖像作為物件圖像。The step of extracting objects from the blurred image includes subtracting the pixel array of the current blurred image and the pixel array of the previous blurred image to obtain a pixel change array difference, and comparing whether the pixel change array difference is greater than the movement confidence value , when the difference value of the pixel change array is greater than the movement confidence value, it means that the changed part of the pixel array of the current blurred image is an object, and the changed part of the pixel array of the current blurred image can be extracted as the object map image, otherwise use the current blurred image as the object image.

其中,對物件圖像進行二值化處理形成二值畫圖像的步驟,包括比較物件圖像中的每一個像素點是否大於灰階標準值,物件圖像中的各個大於灰階標準值的像素轉換成白點,物件圖像中的各個小於灰階標準值的像素轉換成黑點,即形成二值化圖像。The step of performing binarization processing on the object image to form a binary painting image includes comparing whether each pixel in the object image is greater than the grayscale standard value, and each pixel in the object image is greater than the grayscale standard value. The pixels are converted into white points, and the pixels in the object image that are smaller than the grayscale standard value are converted into black points, that is, a binarized image is formed.

其中,二值化圖像進行侵蝕與膨脹處理形成辨識圖像的步驟,包括膨脹處理係將物件圖像中破碎不連續的像素以周圍的像素填補,使得物件圖像的輪廓被連接起來形成膨脹圖像,膨脹圖像再侵蝕處理係消除被過度填補的像素形成辨識圖像,使得辨識圖像可以盡量接近物件真正的輪廓。Wherein, the binarized image is subjected to erosion and expansion processing to form the step of identifying the image, including the expansion processing of filling the broken and discontinuous pixels in the object image with surrounding pixels, so that the contours of the object image are connected to form expansion Image, dilated image and re-erosion processing eliminates over-filled pixels to form a recognition image, so that the recognition image can be as close to the real outline of the object as possible.

其中,利用機器學習訓練的辨識模型提取辨識圖像所要選取的特徵區域,Among them, the identification model trained by machine learning is used to extract the feature area to be selected for the identification image,

其中,捕捉特徵區域的輪廓的步驟,係以邊緣偵測法求出特徵區域的輪廓,進一步而言係以特徵區域的亮度的二階導數的零交叉點來求邊緣點,較佳者係以馬爾(Marr)-希爾德勒斯(Hildreth)邊緣偵測法。Wherein, the step of capturing the contour of the feature area is to obtain the contour of the feature area by using the edge detection method, and further, to obtain the edge point by the zero-cross point of the second derivative of the luminance of the feature area, preferably in Marr (Marr)-Hildreth edge detection method.

據上所述,本發明係將原始圖像進行資訊簡化成辨識圖像,再以辨識圖像取得原始圖像中的物件位置並標記輪廓框,大幅的減少運算量,使得此方法可以運用在計算能力不高的電子裝置,使得本發明可以很容易地擴展到各種場所。According to the above, the present invention simplifies the information of the original image into a recognition image, and then uses the recognition image to obtain the position of the object in the original image and mark the outline frame, which greatly reduces the amount of calculation, so that this method can be used in Electronic devices with low computing power allow the invention to be easily extended to various places.

為了使本發明的目的、技術方案及優點更加清楚明白,下面結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅用以解釋本發明,但並不用於限定本發明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

請參閱圖1所示,本發明係一種物件辨識暨體溫量測方法,係使用具備計算能力的電子裝置,進行下列步驟: (S101)接收影像拍攝設備所傳來的原始圖像(如圖2所示去除輪廓框及溫度標記的部分); (S102)將原始圖像轉換成灰階圖像; (S103)將灰階圖像進行模糊處理轉換成模糊圖像; (S104)對模糊圖像提取物件成為物件圖像; (S105)對物件圖像進行二值化處理形成二值化圖像; (S106)再對二值化圖像進行閉合運算處理形成辨識圖像; (S107)利用機器學習訓練的辨識模型提取辨識圖像所要選取的特徵區域; (S108)捕捉特徵區域的輪廓; (S109)在原始圖像對應的特徵區域的輪廓周圍設置輪廓框; (S110)溫度感測器對物件進行感測; (S111)將溫度感測器的感測結果標記在原始圖像的輪廓框周圍產生溫度感測圖像(如圖2所示)。 Please refer to FIG. 1 , the present invention is an object identification and body temperature measurement method, which uses an electronic device with computing capability to perform the following steps: (S101) Receive the original image transmitted by the image capturing device (as shown in FIG. 2, the part of the outline frame and the temperature mark is removed); (S102) converting the original image into a grayscale image; (S103) blurring the grayscale image and converting it into a blurred image; (S104) extracting an object from the blurred image to become an object image; (S105) binarizing the object image to form a binarizing image; (S106) performing a closed operation process on the binarized image to form a recognition image; (S107) utilize the identification model of machine learning training to extract the feature area to be selected by the identification image; (S108) capturing the outline of the feature area; (S109) setting a contour frame around the contour of the feature region corresponding to the original image; (S110) The temperature sensor senses the object; ( S111 ) Mark the sensing result of the temperature sensor around the outline frame of the original image to generate a temperature sensing image (as shown in FIG. 2 ).

在本發明中,依照前述步驟循環產生的複數個溫度感測圖像係轉換成網路傳輸圖像,利用網路傳輸協議傳送到遠端網頁裝置進行同步顯示。進一步而言,係網路傳輸圖像係可為聯合圖像專家小組(JPEG)格式的影像,網路傳輸協議係可為超文本標記語言(英語:Hyper Text  Markup  Language,簡稱:HTML),並可以使用網頁編輯軟體,例如燒杯套件(Flask)編輯而成,用以將各個網路傳輸圖像上傳到網路中所指定的儲存空間中,並可以同步輸出網路傳輸圖像,如此,使用者就可以在遠端觀看監控並記錄監控結果。In the present invention, the plurality of temperature sensing images cyclically generated according to the foregoing steps are converted into network transmission images, and transmitted to the remote web device for synchronous display by using the network transmission protocol. Further, the network transmission image may be an image in Joint Photographic Experts Group (JPEG) format, the network transmission protocol may be Hyper Text Markup Language (English: Hyper Text Markup Language, HTML for short), and It can be edited with web editing software, such as the beaker kit (Flask), to upload each network transmission image to the designated storage space in the network, and can output the network transmission image synchronously, so, use The user can watch the monitoring and record the monitoring results at the remote end.

在本發明中,影像拍攝設備係可為網路攝影機或智慧型行動裝置所設置的攝影模組,而原始圖像係為彩色影像,也可以是灰階影像,若是灰階影像則本發明可以直接從步驟S103開始,由於,本發明是採用的是彩色影像或灰階影像,因此就不需要高成本的紅外線熱像儀,只要是可以擷取影像的各式設備就可以完成辨識,甚至可以提供追蹤的效果。In the present invention, the image capturing device can be a camera module set in a network camera or a smart mobile device, and the original image is a color image or a grayscale image. If it is a grayscale image, the present invention can Starting directly from step S103, since the present invention uses color images or grayscale images, high-cost infrared thermal imaging cameras are not required, as long as various devices that can capture images can complete the identification, or even Provides tracking effects.

在本發明中,具備計算能力的電子裝置係可為具有單晶片處理器(single-chip microcomputer)或微處理器(microcontroller unit)之嵌入式系統,甚至更高階的具有中央處理器之桌上型電腦、伺服器…等。模糊處理係為高斯模糊處理,用以簡化影像處理的複雜度及消除雜訊,更進一步而言係為雙側濾波模糊處理,用以保留灰階影像中的輪廓資訊,不會模糊輪廓的平滑模糊方法。又,在本發明中物件係可為人,特徵區域係可為人臉。In the present invention, the electronic device with computing capability may be an embedded system with a single-chip microcomputer or a microprocessor unit, or even a higher-end desktop type with a central processing unit. Computers, servers...etc. Blur processing is Gaussian blur processing, which is used to simplify the complexity of image processing and eliminate noise. Furthermore, it is double-sided filtering blur processing, which is used to preserve the contour information in the grayscale image without blurring the smoothness of the contour. Fuzzy method. In addition, in the present invention, the object can be a person, and the characteristic area can be a human face.

在本發明中,請參閱圖3所示,將模糊圖像提取物件的步驟,包括下列步驟: (S201)當前的模糊圖像的像素陣列與前一個模糊圖像的像素陣列相減得到一像素變化陣列差值; (S202)比較像素變化陣列差值是否大於移動信心值,若是進行下列步驟(S203),否則進行步驟(S204); (S203)當像素變化陣列差值大於移動信心值,則表示當前的模糊圖像的像素陣列中有發生變化的部分為物件,即可將當前的模糊圖像的像素陣列中有發生變化的部分提取作為物件圖像,此一步驟的用意是在減少後續步驟進行處理的資訊量,以期本發明可以利用更低的運算能力之電子裝置即可以完成後續步驟; (S204)當像素變化陣列差值未大於移動信心值,將當前的模糊圖像作為物件圖像,並繼續後續步驟。 In the present invention, referring to FIG. 3, the step of extracting objects from the blurred image includes the following steps: (S201) The pixel array of the current blurred image is subtracted from the pixel array of the previous blurred image to obtain a pixel change array difference; (S202) Compare whether the pixel change array difference is greater than the movement confidence value, and if so, perform the following steps (S203), otherwise, perform the step (S204); (S203) When the pixel change array difference value is greater than the movement confidence value, it means that the changed part in the pixel array of the current blurred image is an object, and the changed part in the pixel array of the current blurred image can be determined Extracting an image as an object, the purpose of this step is to reduce the amount of information processed in the subsequent steps, so that the present invention can use an electronic device with lower computing power to complete the subsequent steps; (S204) When the pixel change array difference is not greater than the movement confidence value, the current blurred image is used as the object image, and the subsequent steps are continued.

在本發明中,對物件圖像進行二值化處理形成二值畫圖像的步驟,包括比較物件圖像中的每一個像素點是否大於灰階標準值(例如:灰階度為128),物件圖像中的各個大於灰階標準值的像素轉換成白點(灰階度為255),物件圖像中的各個小於灰階標準值的像素轉換成黑點(灰階度為0),即形成二值化圖像。對於灰階標準值的選擇可以進一步將物件圖像的所有灰階度進行平均或者是從所有灰階度的直方圖分布中有明顯獲最大的波峰或波谷的位置也是一個合適的灰階標準值,但本發明在實際實施時,並不限於此。In the present invention, the step of performing a binarization process on the object image to form a binary painting image includes comparing whether each pixel in the object image is greater than a grayscale standard value (for example, the grayscale is 128), Each pixel in the object image that is greater than the grayscale standard value is converted into a white point (grayscale is 255), and each pixel in the object image that is smaller than the grayscale standard value is converted into a black point (grayscale is 0), That is, a binarized image is formed. For the selection of the grayscale standard value, all grayscales of the object image can be averaged, or the position of the largest peak or trough from the histogram distribution of all grayscales is also a suitable grayscale standard value. , but the present invention is not limited to this in actual implementation.

在本發明中,請參閱圖4所示,二值化圖像進行閉合運算處理形成辨識圖像的步驟,包括: (S301)將物件圖像中破碎不連續的像素進行膨脹處理,換言之,將物件圖像中破碎不連續的像素,利用其周圍的像素填補,使得物件圖像的輪廓被連接起來,而形成膨脹圖像; (S302)膨脹圖像再進行侵蝕處理係消除被過度填補的像素形成辨識圖像,使得辨識圖像可以盡量接近物件圖像真正的輪廓。進行此步驟的原因在於,膨脹圖像相當於使得物件圖像擴大,在利用侵蝕處理係為了消除膨脹後的雜訊,使得辨識圖像與物件圖像相似大小更相近,但辨識圖像的邊緣更容易被後續處理辨識。 In the present invention, please refer to FIG. 4 , the steps of performing a closed operation on the binarized image to form a recognition image include: (S301) Dilation processing is performed on the broken and discontinuous pixels in the object image, in other words, the broken and discontinuous pixels in the object image are filled with the surrounding pixels, so that the contours of the object image are connected to form an expansion image; (S302) The dilated image is then subjected to erosion processing to eliminate over-filled pixels to form a recognition image, so that the recognition image can be as close to the real outline of the object image as possible. The reason for this step is that expanding the image is equivalent to expanding the object image. In order to eliminate the noise after the expansion, the identification image is similar in size to the object image, but the edge of the identification image is more similar. Easier to be identified by subsequent processing.

在本發明中,利用機器學習訓練的辨識模型提取辨識圖像所要選取的特徵區域,以辨識圖像的物件為人體,而欲選取的目標為人體的人臉位置,辨識模型係從辨識圖像找到人臉的關鍵位置,例如:人臉的五官,之後再利用關鍵位置將辨識圖像盡量地轉換成對齊標準人臉的方位,最後再透過人臉特徵向量(例如 128 維的向量),最後再通過聚類(Clutering)、相似性偵測(Similarity detection)、分類(Classification)等方法辨識出物件的人臉所在位置,在此需要陳明的是,本發明透過辨識人臉的位置,而未辨識此人臉是否為特定的人,因此本發明的人臉位置的運算量比起真正的人臉辨識可以區別是哪一個人的運算量明顯可以減少許多。但是本發明在實際實施時,仍然可以進一步辨識人臉是否為特定的人,並且進行人臉追蹤。In the present invention, the identification model trained by machine learning is used to extract the characteristic area to be selected for the identification image, the object of the identification image is the human body, and the target to be selected is the face position of the human body, and the identification model is based on the identification image. Find the key positions of the face, such as the facial features of the face, and then use the key positions to convert the recognition image into the orientation aligned with the standard face as much as possible, and finally pass the face feature vector (such as a 128-dimensional vector), and finally Then, the location of the face of the object is identified by methods such as clustering, similarity detection, and classification. It is not recognized whether the face is a specific person, so the calculation amount of the face position of the present invention can be significantly reduced compared with the real face recognition which can distinguish which person is. However, when the present invention is actually implemented, it can still further identify whether the face is a specific person, and perform face tracking.

在本發明中,捕捉特徵區域的輪廓的步驟,係以邊緣偵測法求出特徵區域的輪廓,進一步而言係以特徵區域的亮度的二階導數的零交叉點來求邊緣點,較佳者係以馬爾(Marr)-希爾德勒斯(Hildreth)邊緣偵測法。但本發明實際實施時,並不限於此。In the present invention, the step of capturing the contour of the feature area is to obtain the contour of the feature area by using the edge detection method, and further, to obtain the edge point by the zero-cross point of the second derivative of the luminance of the feature area, preferably It is based on the Marr-Hildreth edge detection method. However, when the present invention is actually implemented, it is not limited to this.

再者,本發明係可應用在固定位置進行辨識,影像拍攝設備係可為網路攝影機,溫度感測器係可為紅外線感測器,並將網路攝影機及紅外線感測器擺放在一般場所的入口處,再透過有線或無線傳輸的方式,將原始圖像及紅外線感測訊號傳送到遠端的電子設備進行處理,或者可以將影像拍攝設備及溫度感測器安裝在無人機上,並且可以追蹤、移動或定點的獲得原始圖像及紅外線感測訊號,當然若是安裝影像拍攝設備及溫度感測器在無人機上,必然需要使用無線傳輸設備,將原始圖像及紅外線感測訊號傳送到遠端的電子設備進行處理。Furthermore, the present invention can be applied to a fixed position for identification, the image capturing device can be a network camera, the temperature sensor can be an infrared sensor, and the network camera and the infrared sensor are placed in a common location. At the entrance of the venue, through wired or wireless transmission, the original image and infrared sensing signal are transmitted to the remote electronic equipment for processing, or the image shooting equipment and temperature sensor can be installed on the drone, And it can track, move or point to obtain the original image and infrared sensing signal. Of course, if the image capture equipment and temperature sensor are installed on the drone, wireless transmission equipment must be used to convert the original image and infrared sensing signal. sent to a remote electronic device for processing.

承上述,當本發明應用在固定位置進行辨識時,適用前述的步驟(S202)~(S204),即可辨識出移動的物件,其原因在於此時背景完全不動,因此當有人經過影像拍攝設備的拍攝區域,前後時間的模糊圖像的像素陣列,必將有發生變化,而發生變化的部分應當為物件,因此可以將變化的部分提取作為圖像,而若是人臉靠近影像拍攝設備,通常人並不會有太大的移動,因此,在影像拍攝設備前方的人臉也幾乎沒有移動,因此就需要將整個模糊圖像作為物件圖像。Based on the above, when the present invention is applied to a fixed position for identification, the aforementioned steps ( S202 ) to ( S204 ) can be applied to identify a moving object. In the shooting area, the pixel array of the blurred image before and after the time will definitely change, and the changed part should be an object, so the changed part can be extracted as an image, and if the face is close to the image shooting device, usually People don't move much, so the face in front of the image capture device hardly moves, so the entire blurred image needs to be taken as the object image.

然而當本發明應用在無人機在移動狀態下進行辨識時,則需要將前述的步驟(S202)~(S204)做些更動,其原因在於,當人體移動時同時無人機也在移動,此時人體及拍攝區域不斷的變化,或者是人體不同,但是無人機在動,此時,人體沒有變化,但是拍攝區域不斷的變化,因此在此種情況下,步驟(S203)需要更改為,當像素變化陣列差值大於移動信心值,則表示當前的模糊圖像的像素陣列中有發生變化的部分為背景,即可將當前的模糊圖像的像素陣列中沒有發生變化的部分提取作為物件圖像,而若像素變化陣列差值小於移動信心值,則表示人體及拍攝區域都在移動,將當前的模糊圖像作為物件圖像,並繼續後續步驟。However, when the present invention is applied to the identification of the drone in a moving state, the aforementioned steps (S202) to (S204) need to be changed. The reason is that when the human body moves, the drone is also moving. The human body and the shooting area are constantly changing, or the human body is different, but the drone is moving. At this time, the human body does not change, but the shooting area is constantly changing. Therefore, in this case, step (S203) needs to be changed to, when the pixel If the difference value of the change array is greater than the movement confidence value, it means that the changed part of the pixel array of the current blurred image is the background, and the unchanged part of the pixel array of the current blurred image can be extracted as the object image , and if the pixel change array difference value is smaller than the movement confidence value, it means that both the human body and the shooting area are moving, the current blurred image is used as the object image, and the subsequent steps are continued.

綜上所述,本發明可以利用一般的影像拍攝設備加上低成本的溫度感測器,提供原始圖像及紅外線感測值給遠端的電子設備進行計算,並且可以同步傳送到網路上給觀測者直接觀看,而且電子設備可以使用較低成本具有運算能力的單晶片處理器(single-chip microcomputer)或微處理器(microcontroller unit)之嵌入式系統即可使用,並不需要特定高單價的設備即可以完成物件辨識暨體溫量測的目的。To sum up, the present invention can use a common image capturing device plus a low-cost temperature sensor to provide the original image and infrared sensing value to the remote electronic device for calculation, and can transmit it to the network synchronously. The observer can watch directly, and the electronic equipment can be used with a low-cost single-chip microcomputer or embedded system of a microprocessor unit, which does not require a specific high unit price. The device can complete the purpose of object recognition and body temperature measurement.

上列詳細說明係針對本發明的可行實施例之具體說明,惟前述的實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。The above detailed descriptions are for specific descriptions of feasible embodiments of the present invention, but the foregoing embodiments are not intended to limit the scope of the patent of the present invention. Any equivalent implementation or modification that does not depart from the technical spirit of the present invention shall be included in the within the scope of the patent in this case.

S101~S111:步驟流程 S201~S204:步驟流程 S301~S302:步驟流程 S101~S111: Step flow S201~S204: Step flow S301~S302: Step flow

圖1係本發明之流程示意圖。 圖2係本發明之溫度感測圖像之示意圖。 圖3係本發明之模糊圖像提取物件的流程示意圖。 圖4係本發明之二值化圖像進行閉合運算處理形成辨識圖像的流程示意圖。 FIG. 1 is a schematic flow chart of the present invention. FIG. 2 is a schematic diagram of a temperature sensing image of the present invention. FIG. 3 is a schematic flowchart of the blurred image extraction object of the present invention. FIG. 4 is a schematic flow chart of the present invention, which is a process flow diagram of performing a closed operation process on a binarized image to form a recognition image.

S101~S111:步驟流程 S101~S111: Step flow

Claims (7)

一種物件辨識暨體溫量測方法,使用具備計算能力的一電子裝置進行下列步驟:接收一影像拍攝設備所傳來的一原始圖像;當該原始圖像為一灰階圖像,則直接進行模糊處理轉換成一模糊圖像;對該模糊圖像提取物件成為一物件圖像;對該物件圖像進行二值化處理形成一二值化圖像;再對該二值化圖像進行膨脹與侵蝕處理形成一辨識圖像;利用機器學習訓練的一辨識模型提取該辨識圖像所要選取的一特徵區域;再捕捉該特徵區域的輪廓;並在該原始圖像對應的該特徵區域的輪廓周圍設置一輪廓框;利用一溫度感測器對該物件進行感測;將該溫度感測器的感測結果標記在該原始圖像的該輪廓框周圍產生一溫度感測圖像;其中當該原始圖像為彩色圖像,則先將該彩色圖像轉換為該灰階圖像,再進行模糊處理;其中進一步依照前述步驟循環產生的複數個溫度感測圖像係轉換成網路傳輸圖像,利用網路傳輸協議傳送到遠端網頁裝置進行同步顯示;其中將模糊圖像提取物件的步驟,包括:當前的該模糊圖像的像素陣列與前一個該模糊圖像的像素陣列相減得到一像素變化陣列差值;比較該像素變化陣列差值是否大於一移動信心值; 當該像素變化陣列差值大於該移動信心值,則表示當前的該模糊圖像的像素陣列中有發生變化的部分為一物件,即可將當前的該模糊圖像的像素陣列中有發生變化的部分提取作為該物件圖像;當該像素變化陣列差值小於該移動信心值,則將當前的該模糊圖像作為該物件圖像。 A method for object identification and body temperature measurement, using an electronic device with computing capability to perform the following steps: receiving an original image from an image capturing device; when the original image is a grayscale image, directly performing the following steps: The blurring process is converted into a blurred image; the object is extracted from the blurred image to become an object image; the object image is binarized to form a binarized image; and the binarized image is expanded and Erosion processing to form a recognition image; using a recognition model trained by machine learning to extract a feature area to be selected from the recognition image; capturing the contour of the feature area again; and surrounding the contour of the feature area corresponding to the original image setting an outline frame; using a temperature sensor to sense the object; marking the sensing result of the temperature sensor around the outline frame of the original image to generate a temperature sensing image; wherein when the If the original image is a color image, the color image is first converted into the grayscale image, and then the blurring process is performed; the plurality of temperature sensing images generated in a loop according to the above steps are further converted into network transmission images The image is transmitted to a remote web device for synchronous display using a network transmission protocol; wherein the step of extracting objects from the blurred image includes: subtracting the pixel array of the current blurred image from the pixel array of the previous blurred image Obtaining a pixel change array difference; comparing whether the pixel change array difference is greater than a movement confidence value; When the difference value of the pixel change array is greater than the movement confidence value, it means that the changed part in the pixel array of the current blurred image is an object, and the change in the pixel array of the current blurred image can be determined. The part of the image is extracted as the object image; when the pixel change array difference value is less than the movement confidence value, the current blurred image is used as the object image. 如請求項1所述的物件辨識暨體溫量測方法,其中該模糊處理係為高斯模糊處理。 The object recognition and body temperature measurement method according to claim 1, wherein the blurring processing is Gaussian blurring processing. 如請求項1所述的物件辨識暨體溫量測方法,其中該物件係可為人體,該特徵區域係可為人臉。 The object identification and body temperature measurement method according to claim 1, wherein the object can be a human body, and the characteristic area can be a human face. 如請求項1所述的物件辨識暨體溫量測方法,其中對該物件圖像進行二值化處理形成該二值畫圖像的步驟,包括:比較物件圖像中的每一個像素點是否大於一灰階標準值,該物件圖像中的各個大於該灰階標準值的像素轉換成白點,該物件圖像中的各個小於該灰階標準值的像素轉換成黑點,即形成該二值化圖像。 The object identification and body temperature measurement method according to claim 1, wherein the step of performing a binarization process on the object image to form the binary image includes: comparing whether each pixel in the object image is larger than A grayscale standard value, each pixel in the object image greater than the grayscale standard value is converted into a white point, and each pixel in the object image smaller than the grayscale standard value is converted into a black point, that is, the two Valued image. 如請求項1所述的物件辨識暨體溫量測方法,其中該二值化圖像進行進行閉合運算處理形成辨識圖像的步驟,包括:將物件圖像中破碎不連續的像素進行膨脹處理,將物件圖像中破碎不連續的像素以周圍的像素填補,使得物件圖像的輪廓被連接起來形成一膨脹圖像;該膨脹圖像再進行侵蝕處理,係消除被過度填補的像素形成該辨識圖像。 The object identification and body temperature measurement method according to claim 1, wherein the step of performing a closed operation process on the binarized image to form an identification image includes: performing expansion processing on broken and discontinuous pixels in the object image, The broken and discontinuous pixels in the object image are filled with surrounding pixels, so that the contours of the object image are connected to form an expanded image; the expanded image is then eroded to eliminate the excessively filled pixels to form the identification image. 如請求項1所述的物件辨識暨體溫量測方法,其中利用機器學習訓練的該辨識模型提取該辨識圖像所要選取的該特徵區域,進一步該辨識圖 像的物件為一人體,而欲選取的目標為該人體的一人臉位置,辨識模型係從辨識圖像找到人臉的關鍵位置,該關鍵位置為人臉的五官,之後再利用該關鍵位置將該辨識圖像轉換成對齊一標準人臉的方位,最後再透過該辨識模型以人臉特徵向量、聚類、相似性偵測、分類等過程辨識出該物件的該人臉位置。 The object identification and body temperature measurement method according to claim 1, wherein the identification model trained by machine learning is used to extract the characteristic region to be selected in the identification image, and further the identification image The object of the image is a human body, and the target to be selected is the face position of the human body. The recognition model finds the key position of the face from the identification image, and the key position is the facial features of the face. The recognition image is converted into a position aligned with a standard face, and finally the face position of the object is recognized by the recognition model through processes such as face feature vector, clustering, similarity detection, and classification. 如請求項1所述的物件辨識暨體溫量測方法,其中捕捉該特徵區域的輪廓的步驟,係以邊緣偵測法求出特徵區域的輪廓。 The object identification and body temperature measurement method according to claim 1, wherein the step of capturing the contour of the characteristic area is to obtain the contour of the characteristic area by an edge detection method.
TW110127364A 2021-07-26 2021-07-26 Method of object identification and temperature measurement TWI777689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110127364A TWI777689B (en) 2021-07-26 2021-07-26 Method of object identification and temperature measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110127364A TWI777689B (en) 2021-07-26 2021-07-26 Method of object identification and temperature measurement

Publications (2)

Publication Number Publication Date
TWI777689B true TWI777689B (en) 2022-09-11
TW202305653A TW202305653A (en) 2023-02-01

Family

ID=84958116

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110127364A TWI777689B (en) 2021-07-26 2021-07-26 Method of object identification and temperature measurement

Country Status (1)

Country Link
TW (1) TWI777689B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304779A (en) * 2023-05-25 2023-06-23 济宁市健达医疗器械科技有限公司 Intelligent measuring system for extracorporeal circulation temperature

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201234284A (en) * 2011-02-01 2012-08-16 Avit Corp Power-saving based on the human recognition device and method
TW201919382A (en) * 2017-11-13 2019-05-16 鄭宇傑 Image tracking device and image tracking method thereof
CN111178333A (en) * 2020-02-14 2020-05-19 路邦康建有限公司 Body temperature monitoring assistance monitoring system and monitoring method thereof
CN112258718A (en) * 2020-09-27 2021-01-22 中国建设银行股份有限公司 Human body temperature measurement and personnel identification method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201234284A (en) * 2011-02-01 2012-08-16 Avit Corp Power-saving based on the human recognition device and method
TW201919382A (en) * 2017-11-13 2019-05-16 鄭宇傑 Image tracking device and image tracking method thereof
CN111178333A (en) * 2020-02-14 2020-05-19 路邦康建有限公司 Body temperature monitoring assistance monitoring system and monitoring method thereof
CN112258718A (en) * 2020-09-27 2021-01-22 中国建设银行股份有限公司 Human body temperature measurement and personnel identification method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304779A (en) * 2023-05-25 2023-06-23 济宁市健达医疗器械科技有限公司 Intelligent measuring system for extracorporeal circulation temperature
CN116304779B (en) * 2023-05-25 2023-09-01 济宁市健达医疗器械科技有限公司 Intelligent measuring system for extracorporeal circulation temperature

Also Published As

Publication number Publication date
TW202305653A (en) 2023-02-01

Similar Documents

Publication Publication Date Title
CN106446873B (en) Face detection method and device
CN109858371B (en) Face recognition method and device
JP4216668B2 (en) Face detection / tracking system and method for detecting and tracking multiple faces in real time by combining video visual information
WO2019033572A1 (en) Method for detecting whether face is blocked, device and storage medium
CN103514438A (en) Face judgment system and method
CN207264409U (en) The testimony of a witness veritifies device
CN102004906A (en) Face identification system and method
CN107491728A (en) A kind of human face detection method and device based on edge calculations model
KR20190068000A (en) Person Re-identification System in Multiple Camera Environments
KR20220042301A (en) Image detection method and related devices, devices, storage media, computer programs
CN112396011A (en) Face recognition system based on video image heart rate detection and living body detection
CN111582118A (en) Face recognition method and device
TW202011284A (en) Eye state detection system and method for operating an eye state detection system
JP2020518879A (en) Detection system, detection device and method thereof
CN112183219A (en) Public safety video monitoring method and system based on face recognition
JP2009059073A (en) Unit and method for imaging, and unit and method for person recognition
CN111539348A (en) Face living body detection method based on polarization imaging
TWI777689B (en) Method of object identification and temperature measurement
CN114821647A (en) Sleeping post identification method, device, equipment and medium
KR20200119425A (en) Apparatus and method for domain adaptation-based object recognition
CN113537071A (en) Static and dynamic target detection method and device based on event camera
US10990859B2 (en) Method and system to allow object detection in visual images by trainable classifiers utilizing a computer-readable storage medium and processing unit
CN111144260A (en) Detection method, device and system of crossing gate
CN111985331B (en) Detection method and device for preventing trade secret from being stolen
CN113111777A (en) Indoor personnel density detection system and detection method based on ARM platform

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent