- Login into the server
ssh user@ip- Run this command to start Jupyter notebook at port 8888 with no-browser mode
nohup jupyter-notebook --no-browser --port=8888 &| import cv2 | |
| # Using OpenCV | |
| def _dct(image): | |
| result = cv2.dct(np.float32(image)/255.0) | |
| return (result * 255.0) | |
| # Using Scipy | |
| from scipy.fftpack import dctn | |
| dctn(image, norm = "ortho") |