This is the module for detecting and classifying text on rama pictures
Project description
danila_lib
python library for Danila
To install project made
pip install danila-lib
To use in your project
from danila.danila import Danila
All use methods are in
class Danila
returns string - class of rama using CNN network
img - openCV frame
def rama_classify(self, img):
additional classes
neuro-model classe
in package data/neuro there is module Rama_classify_class
class Rama_classify_class
reads CNN taught model and includes it in class example
def __init__():
makes NumPy Array(1,512,512) of doubles[0..1] from openCV image - make it 512-512 and grey
def prepare_img(img : openCV frame): NumPy Array(1,512,512)[0..1]
classify openCV img with CNN, returns list with double[0..1] values
def work_img(img : openCV frame): Double[0..1] list
classify openCV img with CNN, returns Class_im
def classify(img : openCV frame): Class_im
result classes
in package data/result Class_im
class Class_im(Enum):
rama_no_spring = 0
rama_spring = 1
exapmles of using you can find
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
danila-lib-1.1.5.tar.gz
(7.2 kB
view hashes)
Built Distribution
danila_lib-1.1.5-py3-none-any.whl
(243.5 kB
view hashes)
Close
Hashes for danila_lib-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 200ed824ded8760ed3e4d38c60d675196eb7b8e3bdc59ec17409740ae4318b41 |
|
MD5 | 6d9e8f379ea1e5a6d5900963d7092c81 |
|
BLAKE2b-256 | 1415b13b2d35e1b50c7191d64e248fc98216a3901e84c5909407138984fa8040 |