sudo chmod 666 /dev/ttyS5
stty -F /dev/ttyS5 -a
stty -F /dev/ttyS5 sane 9600
https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/
| # Reference https://www.learnopencv.com/install-opencv-4-on-macos/ | |
| # compiled scripts, modified to get it working for custom python path | |
| brew install python3 | |
| brew install cmake | |
| brew install qt5 | |
| QT5PATH=/usr/local/Cellar/qt/5.11.2_1 | |
| cwd=$(pwd) | |
| cvVersion="3.4.4" |
| cmake_minimum_required(VERSION 3.1) | |
| # Enable C++11 | |
| set(CMAKE_CXX_STANDARD 11) | |
| set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | |
| SET(OpenCV_DIR /Users/user/opencv/installation/OpenCV-3.4.5/share/OpenCV) | |
| project( DisplayImage ) | |
| find_package( OpenCV REQUIRED ) | |
| add_executable( DisplayImage DisplayImage.cpp ) | |
| target_link_libraries( DisplayImage ${OpenCV_LIBS} ) |
| cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
| -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-3.4.5 \ | |
| -D INSTALL_C_EXAMPLES=ON \ | |
| -D INSTALL_PYTHON_EXAMPLES=ON \ | |
| -D WITH_TBB=ON \ | |
| -D WITH_V4L=ON \ | |
| -D OPENCV_SKIP_PYTHON_LOADER=ON \ | |
| -D CMAKE_PREFIX_PATH=$QT5PATH \ | |
| -D CMAKE_MODULE_PATH="$QT5PATH"/lib/cmake \ | |
| -D OPENCV_PYTHON3_INSTALL_PATH=/miniconda3/envs/cv282/lib/python3.6/site-packages \ |
| __author__ = 'bunkus' | |
| from kivy.app import App | |
| from kivy.uix.widget import Widget | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.image import Image | |
| from kivy.clock import Clock | |
| from kivy.graphics.texture import Texture | |
| import cv2 |
| # logging | |
| import logging | |
| # Configure logger | |
| #logging.basicConfig(filename="test.log", format='%(filename)s: %(message)s', filemode='w') | |
| logPath = "." | |
| fileName = "test" | |
| logging.basicConfig( | |
| level=logging.ERROR, |
sudo chmod 666 /dev/ttyS5
stty -F /dev/ttyS5 -a
stty -F /dev/ttyS5 sane 9600
https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/
| fig = plt.figure(figsize=(12, 5), dpi= 80, facecolor='w', edgecolor='k') | |
| ax1 = fig.add_subplot(1,2,1) | |
| ax1.imshow(cv.cvtColor(library1_img, cv.COLOR_BGR2RGB)) | |
| ax2 = fig.add_subplot(1,2,2) | |
| ax2.imshow(cv.cvtColor(library2_img, cv.COLOR_BGR2RGB)) |
| #!/usr/bin/env python | |
| from PySide.QtCore import * | |
| from PySide.QtGui import * | |
| import cv2 | |
| import sys | |
| class MainApp(QWidget): | |
| def __init__(self): |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
| # Saving gist for "frozen" script. Originally from https://github.com/tsunrise/colab-github | |
| def github_auth(persistent_key: bool): | |
| """ | |
| Authenticate with GitHub to access private repo. This function will | |
| detect if there is `id_ed25519` key SSH profile. If not, it will create | |
| one. | |
| - `persistent_key`: Store private key in Google Drive. | |
| """ | |
| import os |