Install this simple tool ncdu for linux
sudo apt install ncdu
After this simply run the command:
sudo ncdu -x /
| { | |
| "pushitbot": "558fc32f64b2adaf889bc29bb97d8150" | |
| } |
| import cv2 | |
| def VideoCapture(uri, width, height, latency): | |
| gst_str = ('rtspsrc location={} latency={} ! ' | |
| 'rtph264depay ! h264parse ! omxh264dec ! ' | |
| 'nvvidconv ! ' | |
| 'video/x-raw, width=(int){}, height=(int){}, ' | |
| 'format=(string)BGRx ! ' | |
| 'videoconvert ! appsink').format(uri, latency, width, height) | |
| return cv2.VideoCapture(gst_str, cv2.CAP_GSTREAMER) |
Reference: ubuntu-change-hostname-command
modify the /etc/hostname file and change the hostname to as per your choice.
sudo vim /etc/hostname
Find all the available mountable file drives on your system:
sudo fdisk -loutput:
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectorstmux is a ssh session logging/sharing tool which we can use to reconnect to a ssh session even if we lost the connection in between.
First we need to install it in the remote machine, to do so ssh into the remote machine and run this command
sudo apt-get install tmux
For Example:
| import numpy as np | |
| import cv2 | |
| import textwrap | |
| img = np.zeros((500,500,3), dtype='uint8') | |
| print(img.shape) | |
| height, width, channel = img.shape | |
| text_img = np.ones((height, width)) |
| import cv2 | |
| import sys | |
| import imutils | |
| #-----Reading the image----------------------------------------------------- | |
| img = cv2.imread('1.jpg') | |
| #img = imutils.resize(img, width=400) | |
| #cv2.imshow("img",img) | |
| #-----Converting image to LAB Color model----------------------------------- |
The PyPi package index is one of the properties that makes python so powerful, with just a simple command, you get access to thousands of cool libraries, ready for you to use. I am going to show you how you can upload your own package.
To create a package, create a folder that is named exactly how you want your package to be named. Place all the files and classes that you want to ship into this folder.