图片处理
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
image_app-0.0.2.2002617.tar.gz
(151.7 kB
view details)
Built Distribution
File details
Details for the file image_app-0.0.2.2002617.tar.gz
.
File metadata
- Download URL: image_app-0.0.2.2002617.tar.gz
- Upload date:
- Size: 151.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea82a07bbf6c62bf8a34a774127f89851c017f246d42f2687530980721b4dec |
|
MD5 | f890a2f7b2fac4510da79aa191f2dd35 |
|
BLAKE2b-256 | 006629a31f674aa873df4ac08d888c6d8b920b63373280b5947c75c63a6cdd0b |
File details
Details for the file image_app-0.0.2.2002617-py3-none-any.whl
.
File metadata
- Download URL: image_app-0.0.2.2002617-py3-none-any.whl
- Upload date:
- Size: 151.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c68334dc820a341c555114e09efb65a2f5254ce42093be9ef175391da859a0 |
|
MD5 | 79395646258e13ef5e6808bc6b92e9f4 |
|
BLAKE2b-256 | 22fb83b5a7b7d09fc978eba262b5fdd789e431f2df46129c2b6b88aa934c0728 |