Skip to main content

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

https://github.com/Arseniy-Zhuck/danila_lib_demo

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.4.tar.gz (211.5 kB view details)

Uploaded Source

Built Distribution

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

danila_lib-1.1.4-py3-none-any.whl (243.5 kB view details)

Uploaded Python 3

File details

Details for the file danila-lib-1.1.4.tar.gz.

File metadata

  • Download URL: danila-lib-1.1.4.tar.gz
  • Upload date:
  • Size: 211.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for danila-lib-1.1.4.tar.gz
Algorithm Hash digest
SHA256 ed06aa0c46c7e6fb1079ded2c7ebb61bb2d82f4fe2ed09fa89cabe60727ec7eb
MD5 8e6fe8de7993eda54f42b0f3fe5e3057
BLAKE2b-256 295f0622f2322aa3b2915a3279552c6d6b1a38133204ecf46ef3bce7ec57187b

See more details on using hashes here.

File details

Details for the file danila_lib-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: danila_lib-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 243.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for danila_lib-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fc9bfa355825daf7db83f0bf931605151a0c48c9cd7e54dd4047248bbe59bafa
MD5 52e0ce21b1e689ee460c541e5d84c6c1
BLAKE2b-256 154dd106d0baa60fc769407e94588428192afc88b266cb2f16aadd8026e4b57c

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