GithubHelp home page GithubHelp logo

kacpermayday / imagepy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.25 MB

A simple utility tool for image analysis, implemented in Python with a minimum of external dependencies.

License: MIT License

Python 98.74% Makefile 1.26%

imagepy's Introduction

ImagePy

About

ImagePy is a GUI utility tool for performing basic image analysis. It was developed as part of Image processing algorithms (pl: Algorytmy przetwarzania obrazów) subject during the third year of Computer Science studies. The tool is implemented in Python 3.11 with minimal external dependencies.

Installation

For now, application is not published on https://pypi.org/, so it has to be installed manually from this repository.

Inside your virtual environment:

  1. Install Python package: pip install git+https://github.com/KacperMayday/ImagePy.git
  2. Run: imagepy

Check Usage section to see how to compile and execute application as .exe file.

Documentation

Documentation was uploaded as PDF file in docs/ in this repository. Documentation is written in Polish, but has lots of screenshots which may be helpful. If you encounter any problems, check FAQ section or report an Issue.

Usage

It is recommended to use make to get started. If you do not have make or do not want to use it, you may invoke all commands manually in your local Python environment.

Compile to EXE file

Compilation to executable file is done with PyInstaller. Compilation configuration is in ImagePy/imagepy.spec file.

Using make (recommended)

  1. Clone Git repository: git clone https://github.com/KacperMayday/ImagePy.git
  2. Go to project root directory: cd ImagePy
  3. Run: make build
  4. Compiled EXE file will be saved in newly created dist/ directory.

Manual setup

  1. Install build dependencies: pip install "imagepy[pyinstaller] @ git+https://github.com/KacperMayday/ImagePy.git"
  2. Compile EXE file: pyinstaller ImagePy/app.spec
  3. Compiled EXE will be saved in newly created dist/ directory.

Development setup

Development setup consists of installing external dependencies, linters, pre-commit setup.

Using make (recommended)

  1. Clone Git repository: git clone https://github.com/KacperMayday/ImagePy.git
  2. Go to project root directory: cd ImagePy
  3. Create development virtual environment: make install-dev
  4. Just before committing your changes run: make lint

FAQ

1. I open an image, select one of the options and nothing happens. Is this a correct behaviour?

Yes, some options aren't applicable for every image format. Currently, all options are available for users to select, regardless image attributes, but clicking them has no effect (i.e. binary operations will not work when selected image is in RGB colorscale). Refer to the documentation which options are available for your image format.

2. When invoking pyinstaller on Windows I get an alert about a virus:

Sometimes PyInstaller conflicts with Windows antivirus software. To solve this issue, add your project directory as an exception in Windows Security component. Reference: https://stackoverflow.com/questions/77266764/i-get-a-virus-alert-when-i-convert-my-py-file-into-an-exe-file-how-do-i-fix-i

3. EXE file created on one machine does not work on another one:

Executable file created with PyInstaller is platform dependent. This means that if you create an .exe file on Windows machine, it won't work on Linux. For each platform you need to create separate EXE file.

imagepy's People

Contributors

kacpermayday avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.