Cara menginstall opencv 3.4.4 di ubuntu 18.04


Berikut adalah cara saya menginstall opencv 3.4.4 di ubuntu 18.04 saya, saya sudah mencobanya sendiri, silahkan diikuti step by step nya Happy Coding dan salam ngoprek

#update ubuntu anda

sudo apt-get update
sudo apt-get upgrade -y

#masuk directory home
cd ~/

#install dependencies
sudo apt-get install build-essential cmake unzip pkg-config

sudo apt-get install libjpeg-dev libpng-dev libtiff-dev

sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev

sudo apt-get install libxvidcore-dev libx264-dev

sudo apt-get install libgtk-3-dev

sudo apt-get install libatlas-base-dev gfortran

sudo apt-get install python3-dev

#buat folder opencv
mkdir opencv
cd opencv
#download opencv di github saya pakai yang 3.4.4 silahkan kalau mau coba versi diatasnya
wget -O opencv.zip https://github.com/opencv/opencv/archive/3.4.4.tar.gz
#extract 
tar -xzvf 3.4.4.tar.gz 
#setelah diextract pindahkan isinya ke /home/<username>/opencv
mv 3.4.4/* /home/<username>/opencv

#buat folder opencv_contrib
mkdir opencv_contrib
cd opencv_contrib
#download opencv_contrib
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/3.4.4.tar.gz
#extract 
tar -xzvf 3.4.4.tar.gz 
#setelah diextract pindahkan isinya ke /home/<username>/opencv
mv 3.4.4/* /home/<username>/opencv_contrib

#download pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py

#install virtualenwrapper
sudo pip install virtualenv virtualenvwrapper
sudo rm -rf ~/get-pip.py ~/.cache/pip

#edit .bashrc
echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.bashrc
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc

#buat virutalenv
mkvirtualenv cv -p python3
workon cv

#install numpy
pip install numpy

#ok buat install file
nano install.sh

#paste code dibawah ini didalam install.sh

Continue reading Cara menginstall opencv 3.4.4 di ubuntu 18.04

Advertisements

phpmyadmin login problem root@localhost access denied


Ada yang mengalami problem pada saat menginstall phpmyadmin di ubuntu 18.04 salah satu caranya kalau kalian mendapati error ini

#1698 - Access denied for user 'root'@'localhost'

caranya adalah sebagai berikut

masuk ke mysql lewat terminal lalu ketikkan perintah dibawah ini

sudo mysql -u root -p

use mysql

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password root mysql kalian';

FLUSH PRIVILEGES;

exit

Selesai silahkan login ke phpmyadmin kalian

Salam ngoprek

Happy Coding

Mqtt publish wemos D1 Mini + dht22 in platform io


This is my weekend project using wemos D1 mini for publishing data to mqtt broker using platform io in visual studio code, here we go the code

https://github.com/susiloharjo/dht22_wemosd1_mqtt_platformio

Salam ngoprek

Happy Coding

 

Fixing eagle problem not run in Ubuntu


Cara memperbaiki eagle yang tidak mau terbuka di Ubuntu 18.04 LTS karena error

./eagle: symbol lookup error: /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0: undefined symbol: xcb_dri3_get_supported_modifiers

caranya gampang tinggal delete file libxcb di dalam lib eagle, detailnya silahkan lihat screenshot dibawah

Screenshot from 2019-04-08 13-46-36

dan sekarang coba jalankan Insya Allah bisa kalau masalahnya seperti milik saya

Salam ngoprek dan Happy Coding

 

Access microsoft exchange di Ubuntu 18.06


Ternyata ada cara mudah untuk mengakses mail exchange kita di ubuntu caranya adalah dengan menggunakan aplikasi mail bernama evolution, caranya cukup mudah pertama tama adalah tentu saja menginstall evolution dan evolution-ews nah kuncinya sebenarnya adalah di evolution-ewsnya ini karena ini adalah plugin untuk terhubung ke exchange

install evolution

sudo apt-get install evolution evolution-ews

 

Kemudian aktifkan mail exhange nya di bagian setting > online Accounts > Microsoft Exchange, setelah selesai tinggal buka evolution and voila semua langsung aktif.

Selamat mencoba dan salam ngoprek

 

 

Playing with node-red and firebase


Screenshot from 2019-03-13 08-53-48

[{"id":"b4b35eea.927f1","type":"firebase modify","z":"1998deec.25e9e1","name":"","firebaseconfig":"","childpath":"data/level2","method":"set","value":"msg.payload","priority":"msg.priority","x":562,"y":285,"wires":[[]]},{"id":"d1031a34.0b5af8","type":"firebase modify","z":"1998deec.25e9e1","name":"","firebaseconfig":"","childpath":"data/level/","method":"set","value":"msg.payload","priority":"msg.priority","x":564,"y":200,"wires":[[]]},{"id":"5f50c27e.cc4b3c","type":"inject","z":"1998deec.25e9e1","name":"","topic":"","payload":"200","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":158,"y":200,"wires":[["d1031a34.0b5af8"]]},{"id":"a271ad16.9eab5","type":"inject","z":"1998deec.25e9e1","name":"","topic":"","payload":"{\"dev_id\":\"coba\",\"height\":200}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":158,"y":282,"wires":[["b4b35eea.927f1"]]},{"id":"6d4975ae.f1823c","type":"firebase.on","z":"1998deec.25e9e1","name":"","firebaseconfig":"","childpath":"data","atStart":true,"eventType":"value","queries":[],"x":258,"y":380,"wires":[["35856d82.641bb2"]]},{"id":"35856d82.641bb2","type":"debug","z":"1998deec.25e9e1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":614,"y":378,"wires":[]}]

Fixing Vue EACCES: permission denied


Edit yourΒ ~/.bashrcΒ orΒ ~/.zshrc, add the following

export NPM_PACKAGES=$HOME/.npm
export MANPATH=$NPM_PACKAGES/share/man:$(manpath)
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export PATH=$NPM_PACKAGES/bin:$HOME/bin:$PATH

Then
$ source .bashrc

Done ,

Selamat coding …

Salam Ngoprek …