https://gettocode.com/2017/02/07/opencv-installation-on-windows-and-maybe-linux/
Update 2017/10/24
can't use opencv through the aforehead link on Ubuntu16.04, but get it work using the way https://github.com/conda-forge/opencv-feedstock
Another thought: compile OpenCV source code on Ubuntu16.04 is simply suicide, tried a lot of ways, never got one work. It always gets error while installing img_proc libraries. Desperate doing this. Never want to try it again.