semvec/pypi-packages huggingface dataset:
xml-augmenter 0.1.0
Simple XML file augmentation handler for segmentation based CV tasks

# XML_Augment

## Overview

`XML_Augment` is a Python library for augmenting images and their corresponding XML annotations, typically used in object detection and image segmentation tasks. It includes functionalities for visualizing annotations, brightening images, translating images, and rotating images while updating the XML annotations accordingly.

## Features

- **Visualize Annotations**: Display the annotated polygons and bounding boxes on the image.
- **Brighten Images**: Randomly adjust the brightness of the image.
- **Translate Images**: Randomly translate (shift) the image and update the annotations.
- **Rotate Images**: Randomly rotate the image and update the annotations.[ROTATION NOT SUPPORTED YET VERSION<=0.0.2]

## Installation

To use this project, ensure you have the following libraries installed:

```bash
pip install xml_augmenter
```
## Usage

### Requirements

- Python 3.x
- OpenCV
- NumPy

## Example

#### Import necessary libraries
```bash
import cv2 as cv
import xml.etree.ElementTree as ET
import numpy as np
```
#### Define the path to your image and XML annotation file
```bash
impath = "path/to/your/image.jpg"
anpath = "path/to/your/annotations.xml"
```
#### Create an instance of XML_Augment
```bash
xa = XML_Augment(anpath, impath)
```
#### Visualize annotations with custom text size
```bash
xa.visualize_annotaitons(text_size=0.3)
```
#### Apply translation augmentation with a maximum translation percent
```bash
xa.translate(0.2)
```
#### Apply brightness augmentation with a maximum brightness value
```bash
xa.brighten(100)
```
#### Apply rotation augmentation with a maximum rotation offset [ROTATION NOT SUPPORTED AS OF VERSION 0.0.2]
```bash
xa.rotate(45)
```
#### Visualize annotations again after augmentations
```bash
xa.visualize_annotaitons(text_size=0.3)
```
#### Show the final image with augmentations
```bash
cv.imshow('image', xa.image)
cv.waitKey()
cv.destroyAllWindows()
```
pible 0.4.1
A Python library for working with Bible books and verses.

# pible

A Python library for working with Bible books and verses.

## Example Usage

```python

from pible import Bible

bible = Bible()

john = bible["John"]

favorite_verse = john[3][16]

print(favorite_verse)
# For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.

john_3_17 = favorite_verse.next_verse()
```

## Translations

### King James Version

The library includes the [text of the KJV](https://github.com/aruljohn/Bible-kjv), which is public domain. 

### English Standard Version

Support is planned for using Crossway's [ESV API](https://api.esv.org/). ESV content is copyrighted by Crossway, and you will have to agree to their terms and conditions when applying for your API key in order to use the ESV within pible.

### Others

Interested in adding support for another translation? PRs welcome 🙂️