Skip to main content

unzip compressed files that contain plant images, and covert the images into numpy arrays

Project description

# GreenhouseEI Documentation # SD2019-Plant Phenotyping ## Dependencies * numpy * opencv

## Functionality 1. info(plant_ID, date, path) * input: plant_ID, date, path * output: print types of images that are available * example: `"JS39-65", "2018-04-11", "/Users/john/PycharmProjects/Library_SD/output")` 2. unzip(plant_ID, date, image_type, path): * input: plant_ID, date, image_type, path * output: the folder of images that match plant ID, date, and image type. * example: `tools.unzip("JS39-65", "2018-04-11", "Nir", "/Users/john/PycharmProjects/Library_SD/output")` 3. preprocess(plant_ID, date, path): * input: plant_ID, date, path * output: numpy arrays of Hyperspectral images * example: `tools.preprocess("JS39-65", "2018-04-11", "/Users/john/PycharmProjects/Library_SD/output")` 4. zip2np(plant_ID, date, path) * input: plant_ID, date, path * output: numpy arrays of Hyperspectral images from zip files. * example: `tools.zip2np("JS39-65", "2018-04-11", "/Users/john/PycharmProjects/Library_SD/output")`

## Running the library 1. Warnings * the plant_ID should be in a format like “JS39-65”, the date should be in a format like “2018-04-11” * the possible image types are Hyp, Nir, Vis, Fluo, IR * Hyperspectral images should be reconstructed first, before running the “preprocess” to produce the numpy array 2. import the module as a Python package * from greenhouseEI import tools *[plant_ID], [date], [path]) * tools.unzip([plant name], [date], [image type], [path]) * tools.preprocess([plant name], [date], [path]) * tools.zip2np([plant name], [date], [path]) 3. running the module in terminal * python3 -m info -n JS39-65 -d 2018-04-11 -p /Users/john/PycharmProjects/Library_SD/output * python3 -m unzip -n JS39-65 -d 2018-04-11 -t Hyp -p /Users/john/PycharmProjects/Library_SD/output * python3 -m preprocess -n JS39-65 -d 2018-04-11 -p /Users/john/PycharmProjects/Library_SD * python3 -m zip2np -n JS39-65 -d 2018-04-11 -p /Users/john/PycharmProjects/Library_SD/output

## Demonstration ![](

Project details

Download files

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

Files for GreenHouseEI, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size GreenHouseEI-0.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page