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

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.

主站蜘蛛池模板: 通许县| 呼玛县| 通河县| 横山县| 丽江市| 绥阳县| 宁远县| 泗阳县| 浑源县| 岐山县| 日土县| 清新县| 拜泉县| 东安县| 鲜城| 陆良县| 南阳市| 珠海市| 梨树县| 曲麻莱县| 始兴县| 达州市| 石楼县| 蓝山县| 清镇市| 突泉县| 醴陵市| 泽普县| 宁海县| 大新县| 青海省| 灵丘县| 梁平县| 克拉玛依市| 东安县| 菏泽市| 宁都县| 苍山县| 渑池县| 五大连池市| 新乡县|