- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version
- go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python
- check installation by entering the Python REPL:
py
- import tha library:
import cv2
- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version
- go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python
- check installation by entering the Python REPL:
py
- import tha library:
import cv2
This file contains 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
// | |
// a simple echo server using epoll in linux | |
// | |
// 2009-11-05 | |
// 2013-03-22:修改了几个问题,1是/n格式问题,2是去掉了原代码不小心加上的ET模式; | |
// 本来只是简单的示意程序,决定还是加上 recv/send时的buffer偏移 | |
// by sparkling | |
// | |
#include <sys/socket.h> | |
#include <sys/epoll.h> |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft