ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
| % LaTeX Template for short student reports. | |
| % Citations should be in bibtex format and go in references.bib | |
| \documentclass[a4paper, 11pt]{article} | |
| \usepackage[top=3cm, bottom=3cm, left = 2cm, right = 2cm]{geometry} | |
| \geometry{a4paper} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage{textcomp} | |
| \usepackage{graphicx} | |
| \usepackage{amsmath,amssymb} | |
| \usepackage{bm} |
| RAR registration data | |
| WinRAR | |
| Unlimited Company License | |
| UID=4b914fb772c8376bf571 | |
| 6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d | |
| cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717 | |
| 7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565 | |
| b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd | |
| 982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190 | |
| 6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9 |
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| import matplotlib.pylab as plt | |
| import cv2 | |
| import numpy as np | |
| image = cv2.imread('road.jpg') | |
| image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) | |
| print(image.shape) | |
| height = image.shape[0] | |
| width = image.shape[1] |
| #include<iostream> | |
| #include<queue> | |
| using namespace std; | |
| struct Node{ | |
| int data; | |
| struct Node* left; | |
| struct Node* right; | |
| }; | |
| Node* newNode(int val){ | |
| Node *temp = new Node(); |
| //MERGE SORT | |
| #include<stdio.h> | |
| #include<conio.h> | |
| int merge(int a[],int lower1,int upper1,int lower2,int upper2) | |
| { | |
| int p,q,j,n,d[100]; | |
| p=lower1; | |
| q=lower2; | |
| n=0; | |
| while((p<=upper1) && (q<=upper2)) |