Skip to main content

No project description provided

Project description

Face Detection on Thermal Image

Python PyTorch

Sample


Installation

Before installing, make sure the following packages are available:

  • Numpy
  • PyTorch (I recommend to install your PyTorch from following website)
  • PIL
  • OpenCV

To Install, run the following command:

pip install mctthermalface

Only available in PIP, not in Conda

Usage

For 3 channels image (8-bit)

import mctthermalface
from PIL import Image

detector = mctthermalface.Detector('thermal_face_detection.pt')
img = Image.open("img_path.png")
bbox = detector.detect(img)

Fpr 1 channels image (16-bit) stored in csv

import mctthermalface
import cv2
import numpy as np

detector = mctthermalface.Detector('thermal_face_detection.pt')

img_1channel = np.loadtxt("img_path.csv", delimiter=",")
img_1channel = cv2.normalize(img_1channel, None, 0, 255, cv2.NORM_MINMAX, cv2.CV_8U)
bbox = detector.detect(img_1channel)

Bounding Box Format

bbox = [xmax, xmin, ymax, ymin]

Model Download

Click Here To Download thermal_face_detection.pt


Sample Usage

Check this notebook


Credits

Original Works by: Diza Febriyan Hasal on his Bachelor Thesis about Detecting Face in Thermal Image. Reworked by Martin Clinton Manullang to adjust the performance, adaptability, and compatibility (2023).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mctthermalface-0.2.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mctthermalface-0.2.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mctthermalface-0.2.2.tar.gz.

File metadata

  • Download URL: mctthermalface-0.2.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for mctthermalface-0.2.2.tar.gz
Algorithm Hash digest
SHA256 32f44a161b7917eb4243b8f731f710870bbd2fd9fa80036898d7cbb5120d8515
MD5 bdd61ca166ccf35233b15894552582c2
BLAKE2b-256 f167145aa8f17d48628010e400ff1405ab1b10c8495db4137cd38c1e93faf567

See more details on using hashes here.

File details

Details for the file mctthermalface-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mctthermalface-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for mctthermalface-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0d167c544ea3ff4fb62745690889f4379777e3033a40f552f3496821689dac
MD5 a707715502da4ff89a268923fb24eb58
BLAKE2b-256 80108d8598cb36839b964bac50a98f9a0ad9fb69888165acb4e5994576ff8372

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page