- AI Shift
- 社内SQL研修のために作った資料を公開します - (2021/06/21)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- リモートワークのための質問力向上研修を実施しました - (2021/12/07)
- CyberZ
- 良いコードとは何か - エンジニア新卒研修 スライド公開 - (2021/04/27)
- DMM.com(旧DMM.comラボ含む)
- DMM.comラボ16新卒エンジニア研修 - (2016/08/24)
I had many driver installed I my virtual machine , so It was actually the reason why I was having the error.
To fix it I had first to remove all driver I have installed before using :
sudo apt-get purge nvidia-*
sudo apt-get update
-sudo apt-get autoremove
After that I when a head and installed the latest version of it nvidia driver:
I did :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
fourcc = cv2.VideoWriter_fourcc(*'MP4V') | |
out = cv2.VideoWriter('out.mp4',fourcc, 20.0, (640,480)) | |
#dinstance function | |
def distance(x,y): | |
import math | |
return math.sqrt((x[0]-y[0])**2+(x[1]-y[1])**2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |