官术网_书友最值得收藏!

Dealing with data using OpenCV and Python

Although raw data can come from a variety of sources and in a wide range of formats, it will help us to think of all data fundamentally as arrays of numbers. For example, images can be thought of as simply 2D arrays of numbers representing pixel brightness across an area. Sound clips can be thought of 1D arrays of intensity over time. For this reason, efficient storage and manipulation of numerical arrays is absolutely fundamental to machine learning.

If you have mostly been using OpenCV's C++ application programming interface (API) and plan on continuing to do so, you might find that dealing with data in C++ can be a bit of a pain. Not only will you have to deal with the syntactic overhead of the C++ language, but you will also have to wrestle with different data types and cross-platform compatibility issues.

This process is radically simplified if you use OpenCV's Python API because you automatically get access to a large number of open-source packages from the Scientific Python (SciPy) community. Case in point is the Numerical Python (NumPy) package, around which most scientific computing tools are built.

主站蜘蛛池模板: 舟曲县| 穆棱市| 呼图壁县| 静乐县| 定结县| 惠州市| 当涂县| 晋城| 雷州市| 乐清市| 山阳县| 哈尔滨市| 平江县| 塘沽区| 华安县| 天水市| 扎兰屯市| 海安县| 离岛区| 丘北县| 娱乐| 阜新| 咸丰县| 安溪县| 麦盖提县| 防城港市| 赤壁市| 洮南市| 马尔康县| 漳州市| 五指山市| 康平县| 江安县| 原阳县| 西昌市| 霍林郭勒市| 惠州市| 合肥市| 庆安县| 玉龙| 江永县|