Skip to main content

This library contains various Audio and Video Signal Processing utilities

Project description

pyshine

A collection of simply yet high level utilities for Python.

Installation

Installing dependencies

Provided the below python packages are installed, pyshine is completely pip installable.

Installing pyshine

pip install pyshine

To upgrade to the newest version pip install --upgrade pyshine

pyshine.putBText()

putBText(): Put Background Box with Text

Inputs:
img: cv2 image img
text_offset_x, text_offset_x: X,Y location of text start
vspace, hspace: Vertical and Horizontal space between text and box boundries
font_scale: Font size
background_RGB: Background R,G,B color
text_RGB: Text R,G,B color
font: Font Style e.g. cv2.FONT_HERSHEY_DUPLEX,cv2.FONT_HERSHEY_SIMPLEX,cv2.FONT_HERSHEY_PLAIN,cv2.FONT_HERSHEY_COMPLEX
      cv2.FONT_HERSHEY_TRIPLEX, etc
thickness: Thickness of the text font
alpha: Opacity 0~1 of the box around text
gamma: 0 by default

Output:
img: CV2 image with text and background

usage

import pyshine as ps
import cv2
image = cv2.imread('lena.jpg')
text  =  'HELLO WORLD!'
image =  ps.putBText(image,text,text_offset_x=20,text_offset_y=20,vspace=10,hspace=10, font_scale=1.0,background_RGB=(228,225,222),text_RGB=(1,1,1))
cv2.imshow('Output', image)
cv2.waitKey(0)

License

© 2020 PyShine

This repository is licensed under the MIT license. See LICENSE for details.

Project details


Download files

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

Source Distribution

pyshine-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyshine-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pyshine-0.0.2.tar.gz.

File metadata

  • Download URL: pyshine-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.4

File hashes

Hashes for pyshine-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2ef6ef1e2fe3cab9145c9561db7fb28c9712b9c2e21eb1668d858ec1d8a902b7
MD5 83857da23a294b437581d6df58db1fe2
BLAKE2b-256 1122247c31f7d3bc4590cee51d4993f6411ee428631c42105e96d147e833e941

See more details on using hashes here.

File details

Details for the file pyshine-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyshine-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.4

File hashes

Hashes for pyshine-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5121ecb416bf52d72a2871aee566cf2a5e0886943b97db845e0c64f32fc0b522
MD5 40e0c602e4c1faf438c94bec9a52cc1c
BLAKE2b-256 310c5cf7599f56c410b1592252373359b411d7f974a2e4c221099119bb48b0cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page