Skip to content

Instantly share code, notes, and snippets.

View Adithya2018's full-sized avatar
🎯
Focusing

Adithyan S Raj Adithya2018

🎯
Focusing
View GitHub Profile
@ronekko
ronekko / opencv_imshow_fullscreen.py
Last active May 7, 2024 03:09
Python example to show an image in full screen by opencv
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 22 16:44:27 2017
@author: sakurai
"""
import numpy as np
import cv2
@docPhil99
docPhil99 / opencv_qt_label.md
Last active August 31, 2024 13:14
How to display opencv video in pyqt apps

The code for this tutorial is here

Opencv provides are useful, but limited, method of building a GUI. A much more complete system could be acheived using pyqt. The question is, how do we display images. There are quite a few possible routes but perhaps the easiest is to use QLabel since it has a setPixmap function. Below is some code that creates two labels. It then creates a grey pixmap and displays it one of the labels. code: staticLabel1.py

from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QVBoxLayout
from PyQt5.QtGui import QPixmap, QColor
import sys