semvec/pypi-packages huggingface dataset:
dulu 0.1.4
A Python library for OCR
Requires Python: >=3.6

# Dulu

Dulu is a small python library for doing OCR on image. Under the hood it uses florence model from microsoft, which is a state of the art vision model for many downstream tasks including OCR.


## Installation

```
pip install dulu

```


### Example Code

Here is a snippet of the code used in the notebook:

```python
from dulu import OCR
from PIL import Image

# Load the image
image = Image.open("./sample_image.png")
image

# Initialize the OCR object
ocr = OCR()

# Recognize text without bounding boxes
text = ocr.recognize_text("./sample_image.png", bbox=False)
print(text)

# Recognize text with bounding boxes
text_with_bbox = ocr.recognize_text("./sample_image.png")
print(text_with_bbox)
```

### List of models 

| Model Id                  | Model size | Model Description                                      |
|-------------------------|------------|--------------------------------------------------------|
| Florence-2-base     | 0.23B      | Pretrained model with FLD-5B                           |
| Florence-2-large    | 0.77B      | Pretrained model with FLD-5B                           |
| Florence-2-base-ft  | 0.23B      | Finetuned model on a collection of downstream tasks    |
| Florence-2-large-ft | 0.77B      | Finetuned model on a collection of downstream tasks    |

By default we use `Florence-2-base-ft` model, you can over ride this with any other above in the list when
instantiating `OCR(model_name="microsoft/{model_id})`


## Acknowledgments

- [Florence2 model](https://arxiv.org/abs/2311.06242)
yaml-config-reader 3.0.1
Package for reading configs from yml files
Requires Python: >=3.8

# Yaml config

The package gives object like access for config files in yaml format

## Using

`yaml_config` - root package.

### open_config

The function for configuration an object from a file.

The function accepts an unlimited number of arguments. Each argument is a path to the intended configuration file.
The function iterates through all paths in the order in which they were passed to the function. The config that was found first will be used. If the arguments run out and the file is not found, an error will be called.

The function returns the configuration as an python `dict`.

### cut_protocol

The function truncates the protocol at the passed url.

The function takes a url in string format as an argument.

The function returns clear domain without protocol.

## Developing

### Running tests

`pytest`

### Updating

* Writing new code
* Updating version in `setup.py`
* Running `python -m build` for build
* Setup `$HOME/.pypirc` [link](https://pypi.org/help/#apitoken).
* Pushing to pypi via `python -m twine upload --repository yaml-config-reader dist/*`
eptools 8.8.3
EasyPost Tools
Requires Python: >=3.6

# EasyPost Tools

## How to deploy to PyPi

Reference: https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56


Manually change with new number in setup.cfg (increment it)

Upload to PyPi
 cd c:\EasypostLibrary\eptools
 python -m build
 python -m twine upload dist/*

Afterwards install it globaly:
> pip install eptools==&lt;version&gt;

E.g. "pip install -U eptools"


add config.py of with following methods!
    - slacktoken