• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-06-17
  • 语言: Python
  • 标签: opencv  机器学习  

资源简介

机器学习-使用OpenCV和Python进行智能图像处理相关资料

资源截图

代码片段和文件信息

import os

import nbformat
from nbformat.v4.nbbase import new_markdown_cell

from generate_contents import iter_notebooks NOTEBOOK_DIR


BOOK_COMMENT = “


BOOK_INFO = BOOK_COMMENT + “““
yle=“width: 76px; height: 100px; background: white; padding: 1px; border: 1px solid black; margin-right:10px;“>
*This notebook contains an excerpt from the book [Machine Learning for OpenCV](https://www.packtpub.com/big-data-and-business-intelligence/machine-learning-opencv) by Michael Beyeler.
The code is released under the [MIT license](https://opensource.org/licenses/MIT)
and is available on [GitHub](https://github.com/mbeyeler/opencv-machine-learning).*

*Note that this excerpt contains only the raw code - the book is rich with additional explanations and illustrations.
If you find this content useful please consider supporting the work by
[buying the book](https://www.packtpub.com/big-data-and-business-intelligence/machine-learning-opencv)!*“““


def add_book_info():
    for nb_name in iter_notebooks():
        nb_file = os.path.join(NOTEBOOK_DIR nb_name)
        nb = nbformat.read(nb_file as_version=4)

        is_comment = lambda cell: cell.source.startswith(BOOK_COMMENT)

        if is_comment(nb.cells[0]):
            print(‘- amending comment for {0}‘.format(nb_name))
            nb.cells[0].source = BOOK_INFO
        else:
            print(‘- inserting comment for {0}‘.format(nb_name))
            nb.cells.insert(0 new_markdown_cell(BOOK_INFO))
        nbformat.write(nb nb_file)


if __name__ == ‘__main__‘:
    add_book_info()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-05 16:59  opencv-machine-learning-master\
     文件        1069  2019-02-05 16:59  opencv-machine-learning-master\.gitignore
     文件        1072  2019-02-05 16:59  opencv-machine-learning-master\LICENSE
     文件       17611  2019-02-05 16:59  opencv-machine-learning-master\README.md
     文件         265  2019-02-05 16:59  opencv-machine-learning-master\environment.yml
     目录           0  2019-02-05 16:59  opencv-machine-learning-master\notebooks\
     文件        9177  2019-02-05 16:59  opencv-machine-learning-master\notebooks\00.00-Preface.ipynb
     文件        5544  2019-02-05 16:59  opencv-machine-learning-master\notebooks\00.01-Foreword-by-Ariel-Rokem.ipynb
     文件       19857  2019-02-05 16:59  opencv-machine-learning-master\notebooks\01.00-A-Taste-of-Machine-Learning.ipynb
     文件        7990  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.00-Working-with-Data-in-OpenCV.ipynb
     文件       20143  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.01-Dealing-with-Data-Using-Python-NumPy.ipynb
     文件        6708  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.02-Loading-External-Datasets-in-Python.ipynb
     文件       27196  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.03-Visualizing-Data-Using-Matplotlib.ipynb
     文件       20645  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.04-Visualizing-Data-from-an-External-Dataset.ipynb
     文件        5688  2019-02-05 16:59  opencv-machine-learning-master\notebooks\02.05-Dealing-with-Data-Using-the-OpenCV-TrainData-Container-in-C++.ipynb
     文件        6310  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.00-First-Steps-in-Supervised-Learning.ipynb
     文件       61881  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.01-Measuring-Model-Performance-with-Scoring-Functions.ipynb
     文件       67078  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.02-Understanding-the-k-NN-Algorithm.ipynb
     文件      119750  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.03-Using-Regression-Models-to-Predict-Continuous-Outcomes.ipynb
     文件      118739  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.04-Applying-Lasso-and-Ridge-Regression.ipynb
     文件       53171  2019-02-05 16:59  opencv-machine-learning-master\notebooks\03.05-Classifying-Iris-Species-Using-Logistic-Regression.ipynb
     文件        7479  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.00-Representing-Data-and-Engineering-Features.ipynb
     文件       15096  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.01-Preprocessing-Data.ipynb
     文件      173471  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.02-Reducing-the-Dimensionality-of-the-Data.ipynb
     文件        7573  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.03-Representing-Categorical-Variables.ipynb
     文件        7058  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.04-Represening-Text-Features.ipynb
     文件      689193  2019-02-05 16:59  opencv-machine-learning-master\notebooks\04.05-Representing-Images.ipynb
     文件        8741  2019-02-05 16:59  opencv-machine-learning-master\notebooks\05.00-Using-Decision-Trees-to-Make-a-Medical-Diagnosis.ipynb
     文件      104526  2019-02-05 16:59  opencv-machine-learning-master\notebooks\05.01-Building-Our-First-Decision-Tree.ipynb
     文件       69109  2019-02-05 16:59  opencv-machine-learning-master\notebooks\05.02-Using-Decision-Trees-to-Diagnose-Breast-Cancer.ipynb
     文件       41335  2019-02-05 16:59  opencv-machine-learning-master\notebooks\05.03-Using-Decision-Trees-for-Regression.ipynb
............此处省略59个文件信息

评论

共有 条评论