Skip to main content

No project description provided

Project description

Nuclei Image Processing Program

This python program processes and counts nuclei in images. The following sections detail how to use the various command-line arguments available in the program.

Setup

On windows-based systems, you may use one of the pre-built executable files provided in releases; this does not require installation of python. However, if you wish to modify the code, you must clone this repository and build or run the program from source.

NOTE: Due to using pyinstaller to package this code as a windows executable, this file may be flagged as a virus or as malware. This is unfortunately common for software built using pyinstaller. If your antivirus blocks the file, you'll need to flag it as safe when downloading it.

Requirements

To build or run this program as a python script, ensure you have python 3.10 or later installed on your system. Then clone this repository by downloading and extracting the zip file or by using git.

Project installation

This library uses a PEP-518 compliant pyproject.toml file to manage project dependencies. To install this library locally, you may use your preferred python package manager (e.g., poetry) or run the following from the repository root:

pip install -e .

This will install all project dependencies and allow you to run the project as a python script from the command line. If you've downloaded the executable file, replace python count_nuclei.py with count_nuclei.exe; all command line options remain the same.

Program usage

To use this program, open a terminal and change your working directory into \nuclei_counter where count_nuclei.py exists. You may run the python program with the command line arguments as described; note that only --img_dir is required; other arguments may be omitted.

1. Image Directory (--img_dir) (REQUIRED)

Specify the directory containing the images you wish to process.

Usage:

python count_nuclei.py --img_dir "path/to/your/image/directory"

2. Output Directory (--output_dir) (OPTIONAL)

Defines where the results files should be saved. If not specified, results will be saved in a folder named results in the current working directory.

Usage:

python count_nuclei.py --img_dir "path/to/your/image/directory" --output_dir "path/to/your/output/directory"

3. Save Transformed Images (--save_images) (OPTIONAL)

Include this flag if you wish to save the transformed images used during the counting process. This flag is optional and excluding it will not save a copy of the transformed images.

Usage:

python count_nuclei.py --img_dir "path/to/your/image/directory" --save_images

4. Output Count Filename (--output_count_filename) (OPTIONAL)

Specify the filename of the resulting CSV that contains the count of nuclei. If not provided, it will default to count_results.csv.

Usage:

python count_nuclei.py --img_dir "path/to/your/image/directory" --output_count_filename "your_desired_filename.csv"

Default: count_results.csv

Full Example:

To use all the arguments in one command:

python count_nuclei.py --img_dir "path/to/images" --output_dir "path/to/output" --save_images --output_count_filename "results.csv"

License

See the LICENSE file for license rights and limitations (MIT).

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

nuclei_counter-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

nuclei_counter-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file nuclei_counter-0.1.0.tar.gz.

File metadata

  • Download URL: nuclei_counter-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.6 Windows/10

File hashes

Hashes for nuclei_counter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78bd557ab61e47ed9cdfb1d58fe000b0fc96a45f8a4199a7bab55f453e4a9ccb
MD5 4b2bcc74816ddecde1c02676e2ac0786
BLAKE2b-256 6338a49b5102e1d5f25c221538d78af10179875f9617051f345fbac7a5be2816

See more details on using hashes here.

File details

Details for the file nuclei_counter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nuclei_counter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.6 Windows/10

File hashes

Hashes for nuclei_counter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec598cf96fc9bc3aa599af09ff139e5b8e6492d53e612bf6c86cb6e8fad87ca5
MD5 db8ce1713af43d2c1159968d98bc7cb4
BLAKE2b-256 70cd6ebb712d4a0440d59186c029d73e1b95677495138fb040800aa9af43f740

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