[Learning OpenCV 4] Using Random Numbers and Generating Random Lines
C and C++ provide the rand() and srand() functions for generating random numbers, and they can also be used when writing OpenCV code in C++. OpenCV also provides its own RNG class for generating random numbers, which is very convenient to use. This article mainly introduces how to use RNG and how to draw random lines based on the random numbers it generates.









