Git Product home page Git Product logo

pyopengl's Introduction

Prerequisite

Anaconda install instructions

  • 安裝指令
conda create -n Pyopengl3.7 python=3.7
conda activate Pyopengl3.7

pip install dotmap

conda install -c anaconda numpy
conda install -c conda-forge opencv

pip install pyrealsense2
pip install PyOpenGL PyOpenGL_accelerate
pip install openmesh
pip install pillow

pip install PyQt5

pip install wxPython

pip install scikit-image
pip install scipy
pip install open3d

  • 範例程式
python app/wxApp.py
python app/qtApp.py

GUI

  • wxPython tutorial

  • wxFormBuilder

    • 設定name,code_generation = python
    • 新增component Palette/Forms/Frame後可編輯物件
    • 物件name會是之後程式中使用的class,property可直接做更改
    • 儲存專案後按F8及會生成.py
  • QtDesinger

    • pip install pyqt5-tools

    • pyuic5 -x untitled.ui -o untitled.py

    • 讓 layout 依視窗大小縮放 : Form/Layout in a Grid

    • 固定子元件在 layout 中 50%-50%:

      • code
      graphicsView->setSizePolicy( QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
      raphicsView2->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
      
      • 或在QtDesigner將layout右鍵morph into QWidget再從屬性欄中調整

Tutorial

Develop

  • 輸出環境 conda env export > enviroment.yml

pyopengl's People

Contributors

dada97 avatar tsengyushiang 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.