Metadata-Version: 2.1
Name: image-app
Version: 0.0.3.20041619
Summary: 图片处理
Home-page: https://github.com/BingerYang/image_app
Author: binger
Author-email: <xuehen_521@126.com>
Maintainer: binger
Maintainer-email: <xuehen_521@126.com>
License: MITT
Platform: all
Requires-Python: >=3.4
Description-Content-Type: text/x-rst

image_app
=========

Documentation
-------------

The documentation is hosted at https://github.com/BingerYang/image_app

Installation
------------

.. code:: shell

     pip install image_app

Usage
-----

在一张图中找到连续相似的一片片长方向区域

.. code:: python

    # -*- coding: utf-8 -*-
    import os
    from image_app import load_smooth_area
    import cv2
    path = os.path.abspath("1.jpg")
    image = cv2.imread(path)
    rects = load_smooth_area(image)
    for rect in rects:
        cv2.rectangle(image, (rect[0], rect[1]), (rect[2], rect[3]), (120, 78, 255), 2)
    cv2.imwrite('test.jpg', image)
    cv2.imshow("test", image)
    cv2.waitKey(3000)



