Giter Club home page Giter Club logo

bildverarbeitung's Introduction

Bildverarbeitung

This repository follows Bildverarbeitung FS2023 for Geomatik bachelor students at ETH Zurich. Lectures and recordings can be found in Moodle.

Contact

If you have any questions, please let us know:

Dependencies

This code has been test on

  • Python 3.7 and Python 3.8, MacOS and Linux

As the first step, please git clone this repository to your local machine by running:

git clone https://github.com/prs-eth/Bildverarbeitung.git

Then, please run the following commands to create virtual environment and install dependencies:

virtualenv vildverarbeitung
source vildverarbeitung/bin/activate
pip install numpy PyQt5 opencv_python scikit-image

Next, please install QT Designer

  • For windows and Linux user, you can install by running:
pip install PyQt5_tools
  • For MacOS user, please choose 5.12.x Offline Installers and install from here

Now you can open the GUI by running:

python main.py

and you will see sth like:

gui

Known issues

  • If you run into errors like

    QObject::moveToThread: Current thread (0x2ab1aa0) is not the object's thread (0x312d4d0).
    Cannot move to target thread (0x2ab1aa0)
    
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/scratch2/shengyu/predator/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
    
    Aborted
    

    Please uninstall opencv_python and instead opencv_python_headless instead:

    pip uninstall opencv_python
    pip install opencv-python-headless
    

    If this also doesn't work for you, please try:

    pip uninstall opencv_python
    pip install opencv-contrib-python
    
  • If you have problems with installing libs. on MacOS system, please first check if you can successfully install scipy, if not, you might have to install gcc first by running:

    brew install gcc
    
  • If you are a Mac user and have problems with install PyQt5 via pip install, please consider using conda install instead, you can still use pip install under an anaconda environment by first running:

conda install pip

Instructions

This GUI is built on QT, to make any modifications, please first open qt designer/creator:

  • For linux and windows user, please run:
pyqt5-tools designer
  • For MacOS user, please just open QT Creator after installation.

Then please open assets/gui.ui and make modifications.

qt

Afterwards, you can first save the modifications and run

pyuic5 -o libs/gui.py assets/gui.ui

to update associated python files. You will see the new GUI by running

python main.py

bildverarbeitung's People

Contributors

d33pk3rn3l avatar shengyuh avatar

Stargazers

 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.