semvec/pypi-packages huggingface dataset:
tree-disk-pith 0.2.1
A package for tree disk pith detection in images
License: MIT
Requires Python: >=3.10
Keywords: tree, pith, image processing

# Tree Disk Pith Detection

[![PyPI - Version](https://img.shields.io/pypi/v/tree-disk-pith)](https://pypi.org/project/tree-disk-pith/)

A Python package for analyzing tree rings in cross-sectional images. Originally forked from [hmarichal93/apd](https://github.com/hmarichal93/apd).

## Installation

```bash
pip install tree-disk-pith
```

## Usage

### Python API

```python
import treediskpith

# Configure the analyzer
treediskpith.configure(
    input_image="input/tree-disk4.png",
    model_path="models/apd_dl.h5",
    save_results=True,
)

# Run the detection
(
    img_in,          # Original input image
    img_pre,         # Preprocessed image
    pith,  # Center of the tree disk
) = treediskpith.run()
```

### Command Line Interface (CLI)

Basic usage:
```bash
tree-disk-pith --input_image ./input/tree-disk4-seg.jpg --model_path ./models/yolo11s-det-pith.pt
```

Advanced usage with custom parameters:
```bash
tree-disk-pith \
    --input_image input/tree-disk3.png \
    --model_path ./models/yolo11s-det-pith.pt \
    --output_dir custom_output/ \
    --new_shape 640 \
    --save_results \
    --debug
```

## CLI Arguments

| Argument | Type | Required | Default | Description |
|----------|------|----------|---------|-------------|
| `--input_image` | str | Yes | - | Input image file path |
| `--output_dir` | str | Yes | ./output | Output directory path |
| `--model_path` | str | No | - | Path to the weights file (required if using apd_dl method) |
| `--new_shape` | int | No | 0 | New shape for resizing the input image. If 0, no resizing is done |
| `--debug` | flag | No | False | Enable debug mode to save intermediate images and outputs |
| `--save_results` | flag | No | False | Save intermediate images, labelme and config file |

## Development

### Setting up Development Environment

1. Create and activate virtual environment:
```bash
poetry config virtualenvs.in-project true
poetry env use python
```

```bash
poetry install
eval $(poetry env activate)
```

2. Running tests:
```bash
pytest
```

3. fetch dataset
```bash
python fetch_dataset.py
```

4. Download pretrained model
```bash
python fetch_pretrained_model.py
```
llm-apigateway 0.1.1
Debug your AI programs with ease through a web-based interface. Modify inputs and outputs, and leverage the power of custom Python filters.
License: MIT
Requires Python: >=3.6.0


<p align="right">
   <a href="./README_CN.md">中文</a> | <strong>English</strong>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/songquanpeng/one-api/main/web/default/public/logo.png" width="150" height="150" alt="api logo">
</p>
<div align="center">
# LLM API Gateway
_✨ Debug your AI program through a web page, modify request information and send it to a designated upstream. Supports custom filtering programs to save your tokens under certain conditions. ✨_
</div>
<p align="center">
  <a href="https://raw.githubusercontent.com/jiangmuran/llm-apigateway/main/LICENSE">
    <img src="https://img.shields.io/github/license/jiangmuran/llm-apigateway?color=brightgreen" alt="license">
  </a>
</p>
## Quick Start
```bash
pip install llm-apigateway
apigateway 
```
You can enable the local debugging environment with just two simple commands without any other requirements.
## Project Plan
The project plans to use Python as the development language and release it as a pip package so that developers can install and use it easily. The project is still under development, and we hope you can give it a star to support the developers.
## Development Timeline
- ~~Release pip package~~
- Set up a server compatible with the OpenAI API format
- Implement functions to add upstreams and send to upstream interfaces
- Implement functions to modify information and customize responses
- Develop web UI
- Add plugin functionality
- Enable public deployment and access control
- Multi-user support
### Development Log
- Project initiated on 2025/02/26
## Notice
This project is open-source under the MIT license. **On this basis**, you must retain attribution and a link to this project at the bottom of the page. If you do not want to retain attribution or wish to use it for **commercial** purposes, you must first obtain authorization.
The same applies to secondary projects based on this project.
In accordance with the MIT license, users must undertake the risks and responsibilities of using this project at their own cost, and the developers of this open-source project are not involved.