Skip to main content

图片处理

Project description

Documentation

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

Installation

pip install image_app

Usage

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

# -*- 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for image-app, version 0.0.3.20041619
Filename, size File type Python version Upload date Hashes
Filename, size image_app-0.0.3.20041619-py3-none-any.whl (152.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size image_app-0.0.3.20041619.tar.gz (153.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page