Giter VIP home page Giter VIP logo

colab_opencv_display's Introduction

Colab_OpenCV_Display

如果在Colab中執行OpenCV並顯示影像及視頻,解決imshow, videocapture無法作用問題。

範例程式說明

  1. 將欲存取的檔案自行上傳到雲端硬碟(Google Drive)
  2. 掛載自己的Google Drive
  3. 選擇習慣之影像顯示方式
    方法1.1 透過matplotlib show()顯示
    方法1.2 透過IPython.display及PIL顯示
    方法1.3 以Colab自帶cv2_imshow()函式顯示
  4. 選擇習慣之視頻顯示方式
    方法2.1 透過IPython.display HTML()及base64 b64encode()函式庫顯示視頻
    方法2.2 利用ffmpeg處理OpenCV VideoWriter()產出視頻播放問題

請將測試影像、視頻及範例程式 Colab_OpenCV_Display.ipynb 複製到自己的雲端硬碟 Google Drive上,開啟*.ipynb後即可執行。

或者直接點擊下列連結直接運行,但請依指示將圖檔及影片置於個人Google Drive中。
https://colab.research.google.com/github/OmniXRI/Colab_OpenCV_Display/blob/main/Colab_OpenCV_Display.ipynb

colab_opencv_display's People

Contributors

omnixri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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