Skip to main content

Remove text/noise from grayscale uranium photos

Project description

Uranium Image Cleanup


This package was developed to process grayscale uranium images in a specified directory to remove text/labels.

You should already have installed Python 2.7 - 4.0 with PIP. Python will need to be added as an environment variable.

On Window's start Command Prompt or PowerShell. On Linux open up a terminal.

To install:

    >>> pip install uranium-image-cleanup

Run on Windows:

Type "uic".

    >>> uic
    >>>
    >>> *** Uranium Image Cleanup  ***
    >>> Enter Image/s Retrieval Directory:

How to find the uic.exe on Windows:

In case you wanted to move it to the desktop for easy access.

    >>> where uic
    #Output: C:\Users\your_username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.       9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\uic.exe
    >>>

Alternative way of running:

On Window's start Command Prompt or PowerShell. On Linux open up a terminal.

Run python.

    >>> python

Import the package then call main.

    >>> import uic_package as uic
    >>> 
    >>> uic.main()
    >>>
    >>> *** Uranium Image Cleanup  ***
    >>> Enter Image/s Retrieval Directory:

This package is also capable of:

  • Removing text/noise on a single image of uranium.
  • Detecting white pixels on a single image.

Below are examples on how to implement these.

Remove labels on a single image:
    >>> import uranium_image_cleanup_package as uic
    >>> import opencv as cv2
    >>>
    >>> image uranium_nucleus_10593520                  
    >>> result_image = uic.removeLabel(uranium_nucleus_10593520)

Detect white pixels on a single image:
    >>> import uranium_image_cleanup_package as uic
    >>> import opencv as cv2
    >>>
    >>> image uranium_nucleus_10593520                  
    >>> white_pixel_image = uic.detectWhite(img)

For more info and access to all the methods available, consult the removeLabel.py script found in the uic_package folder.


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

uranium_image_cleanup-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

uranium_image_cleanup-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file uranium_image_cleanup-1.0.0.tar.gz.

File metadata

  • Download URL: uranium_image_cleanup-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for uranium_image_cleanup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e22b9531ca3464f5b580f9fa99d7b70377a66535fde81fc58e87941fd25961f5
MD5 b6d5fb0de50966ca10f0f6d6c83b6442
BLAKE2b-256 39f55ca8440ae3928f29e2af4a47cc175696a8010652ad73d55296324154a636

See more details on using hashes here.

File details

Details for the file uranium_image_cleanup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: uranium_image_cleanup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for uranium_image_cleanup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc0da193a6e4c5d1beb9eeca971570ef31c3b58a161c6e843a5049330fd0f045
MD5 581ea48b353b5e3d117ce952b0f9b033
BLAKE2b-256 60bd45a877030924e83058c2a5966fe44a0d47aa7856835ee0d3c4f92a286f9f

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