图片处理
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.1.2002614.tar.gz
(151.7 kB
view details)
Built Distribution
File details
Details for the file image_app-0.0.1.2002614.tar.gz
.
File metadata
- Download URL: image_app-0.0.1.2002614.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 | 8de59b0be2baf1600400a6405e789caba21d96b6bde75c382a7cd4dd3924a249 |
|
MD5 | 56dbbdc42145a73407f6b0013a672ae9 |
|
BLAKE2b-256 | 1ae5882b30da10888dc6cd580f3f2d90896e7ac5f53891e2bfb8ab46ff8a89fe |
File details
Details for the file image_app-0.0.1.2002614-py3-none-any.whl
.
File metadata
- Download URL: image_app-0.0.1.2002614-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 | e8b6c75130863b1a846b5c7c21e10de967c4dfc29e76f7845789342a802d7e71 |
|
MD5 | b9633119a1a150745b001b45eea0c11f |
|
BLAKE2b-256 | f12cf7024ca9edc77c14c6389b8c914ec646c934d20fd5c54b19d5051f69e45a |