Skip to main content

A simple Python package used by me and a friend at the university in the course 'Advanced Image, Video and Motion Analysis'

Project description

ZAOWR Package


This is a ZAOWR (Zaawansowana Analiza Obrazu, Wideo i Ruchu, eng. Advanced Image, Video, and Motion Analysis) Python package used by me and a friend at the university.

PyPI link to the package: MAIN PyPI, TEST PyPI.



Table of contents

  1. Windows tutorial

  2. RTFM - Use Cases for zaowr_polsl_kisiel and the importance of docstrings

  3. Installing the package on Linux using pip

  4. Removing the package on Linux using pip

  5. Creating virtual environment and installing the package

  6. Testing the installation

  7. Automation: building and uploading with Makefile - DEV Tutorial

  8. Building package - DEV Tutorial based on official DOCS

  9. TODO for tracking issues / backlog / progress

  10. Code requirements

  11. Sources



Windows tutorial

The Windows tutorial can be found here



RTFM - Use Cases for zaowr_polsl_kisiel and the importance of docstrings

RTFM here



Installing the package on Linux using pip

  1. PyPI MAIN

    python3 -m pip install --upgrade zaowr-polsl-kisiel
    

  2. TestPyPI

    python3 -m pip install --index-url https://test.pypi.org/simple/ --upgrade zaowr-polsl-kisiel
    


Removing the package on Linux using pip


python3 -m pip uninstall zaowr-polsl-kisiel


Creating virtual environment and installing the package


[!NOTE]

Complete instructions on managing Python virtual environments

can be found here.


  1. Create project directory and open it (directory where you will create your files and where the venv will be created). Below is an example of how to do it through Bash - you can also do it through file explorer

    testDir=/home/user/test
    
    mkdir -p $testDir
    
    cd $testDir
    

  2. Create venv

    python -m venv ENV_NAME
    

  3. [!NOTE]

    ENV_NAME is the name of your venv, so you can change it however you like


  4. Activate the venv (while in the project directory)

    source ENV_NAME/bin/activate
    

    or

    . ENV_NAME/bin/activate
    

  5. Install the package from PyPI

    python3 -m pip install --upgrade zaowr-polsl-kisiel
    

  6. (ADDITIONAL COMMAND) If you want to deactivate the currently active venv

    deactivate
    

  7. (ADDITIONAL COMMAND) To reactivate the venv, navigate to the path where you created the venv and source it again (command shown above in section number 3)


Testing the installation


  • Activate the venv (while in the project directory) - Skip this step if you are not using a virtual environment

    source ENV_NAME/bin/activate
    

    or

    . ENV_NAME/bin/activate
    

  • Launch python

    python3
    

  • Import the package

    from zaowr_polsl_kisiel import load_calibration
    

  • Locate the file with calibration params in tests folder and download it (link below)

    ./tests/calibration_params/calibration_params.json


  • Try reading the params from file

    # remember to provide appropriate path to the calibration params
    calibrationParams = load_calibration("../../tests/calibration_params/calibration_params.json")
    

  • Display the MSE value to test if the load succeeded

    print(calibrationParams["mse"])
    


Code requirements

The code fulfills all the requirements necessary to pass the course. Detailed descriptions of the requirements for each lab are provided in the ./docs/code_requirements directory in the form of images (in Polish).



Sources

This package has been prepared following this tutorial.

The publishing to PyPI was created with this tutorial

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

zaowr_polsl_kisiel-0.0.26.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

zaowr_polsl_kisiel-0.0.26-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file zaowr_polsl_kisiel-0.0.26.tar.gz.

File metadata

  • Download URL: zaowr_polsl_kisiel-0.0.26.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for zaowr_polsl_kisiel-0.0.26.tar.gz
Algorithm Hash digest
SHA256 3a0dce6915981e1a9c9c7302a3b16ac1f13adf0dbfef8fadb0b016fbe99c88ad
MD5 b7be54e271d0960b8987a606c40572a8
BLAKE2b-256 8b47c0fefb8a384b9d2d0d6c001261f1a4441e05d170739ddb86731afeb528ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for zaowr_polsl_kisiel-0.0.26.tar.gz:

Publisher: create_release.yml on revalew/zaowr-py-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zaowr_polsl_kisiel-0.0.26-py3-none-any.whl.

File metadata

File hashes

Hashes for zaowr_polsl_kisiel-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 94f2aae7dd54d9532bfe7b3cfae5c0c92f3fb29673a123d26a2238316ccb3940
MD5 8b0b3f0edaaae0b4da22ebfa04307b77
BLAKE2b-256 fa4e9955457bd1497acba7a9b13f76085685b99a3628897097d87bb5f46b31c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zaowr_polsl_kisiel-0.0.26-py3-none-any.whl:

Publisher: create_release.yml on revalew/zaowr-py-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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