Skip to main content

SEM Image Analysis Tool for Automatic Particle Segmentation and Size Analysis

Project description

ParticleAnalyzer

LIVE Application Slow Demo? PyPI Version Monthly Downloads

ParticleAnalyzer Is A Computer Vision-Based Tool for Automatic Segmentation and Size Analysis of Nanoparticles in Scanning Electron Microscope (SEM) and Transmission Electron Microscope (TEM) Images.


🎬 Demonstration

Video demonstrations:
▶️ Local video (MP4) | ▶️ YouTube demonstration

Example


🛠 Installation Guide

1. 📥 Install PyTorch with CUDA support

Make sure your system has an NVIDIA GPU with CUDA. Install PyTorch using the appropriate CUDA version (e.g., CUDA 11.8):

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

If you do not have a CUDA-capable GPU, use the CPU version instead—however, in this case, ParticleAnalyzer will run significantly slower:

pip install torch torchvision torchaudio

🧪 2. Install Detectron2 (Optional)

If you want to enable advanced instance segmentation, install Detectron2:

pip install 'git+https://github.com/facebookresearch/detectron2.git'

[!WARNING] There may be problems installing Detectron2. Use the official documentation.

📦 3. Install ParticleAnalyzer

Finally, install ParticleAnalyzer from PyPI:

pip install --upgrade ParticleAnalyzer

✅ Now you're ready to run the application:

ParticleAnalyzer run

Open in browser: http://127.0.0.1:8000

You can specify the port if necessary:

ParticleAnalyzer run --port 5000

Launch with LLM support (OpenRouter or Hugging Face API key required):

ParticleAnalyzer run --port 5000 --api-key YOUR_OPENROUTER_API_KEY

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

particleanalyzer-1.3.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

particleanalyzer-1.3.2-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file particleanalyzer-1.3.2.tar.gz.

File metadata

  • Download URL: particleanalyzer-1.3.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for particleanalyzer-1.3.2.tar.gz
Algorithm Hash digest
SHA256 8d171d463fdb93170ec51801163fd72c948b1888cc23e2d4c4d1c5e9338bc135
MD5 fc834c81a6065983406ae55ed7c97575
BLAKE2b-256 86b161eda6008097721a2ee86f0fb41d6332ad86d78bcc8adf58e028b0d610b9

See more details on using hashes here.

File details

Details for the file particleanalyzer-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for particleanalyzer-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 816326fbe684b0c8c644c601e1912888cffc830eaefcb22a55245c38b3c7fbab
MD5 1e1a24a6b8d407f4794c3b2eb8b61d73
BLAKE2b-256 c9b4445ba0e4461b58fa4bf366ff99c241940554f6d0e3ddbf63aef042926dff

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